Ckan basic configuration, seeding test data, and uwsgi

Aliases and sysadmin account Once you have ckan installed properly, it is time to do some basic configuration. In order to do this, the first thing is to add a sysadmin account for ckan. This can be done by running the following commands. To make it easier for me, I have created a permanent alias for ckan activation. I have edited my .bashrc file, and at the very end, I have added the following line: Now, source this file to update the current shell session and see if it works. Let’s get rid of the need to add the -c path_to_ckan_ini_file for every command. Update your .bashrc file to add the following: Seeding some test data Let’s create some test data in the system. Unfortunately, the documentation is again outdated here for the latest version. The actual commands that you need are provided below. With the latest version of ckan, we have multiple options to populate test data. You can add multiple forms of data, e.g. You can also clean all the test data by running the following commands. If you do run the clean command, it will drop all database tables in your ckan_default database. This means you will

Continue Reading

Setting up ckan on Ubuntu 18.04 – Python 3 and Amazon Lightsail

Image showing a globe with data points around it

Step 1: Create an Ubuntu 18.04 LTS instance in Amazon Lightsail Create a new instance on Amazon Lightsail. I called mine “ckan” and initiated it on Ubuntu 18.04 LTS. Once you have an instance created, go to Networking tab and create a static IP to associate this instance with. I called mine “ckan-static-ip” and attached it to the “ckan” instance. I also enabled automated snapshots at the ckan instance level. Optionally, at this time, you may want to associate this static IP with a domain name. I have associated this with masudklabs.com in the godaddy DNS panel. Of course, there is nothing running on port 80 at the moment so your browser won’t show anything. At this point, you can go into your account, then in the SSH keys tab, and download the default key associated with your region in which you have created your instance. Mine is created in the Ireland eu-west-1 zone. Once downloaded (in my Downloads folder), copy it to a place which you will ssh from. Name it something simpler if you prefer (I named mine aws-key). The default username for an Ubuntu instance in Amazon Lightsail is ubuntu. Great, so you have an Ubuntu 18.04

Continue Reading

DNS configuration – Ubuntu Server with Static IP

I was trying to install Ubuntu Server 12.10 on my shiny new HP ProLiant Microserver. The installation went smoothly with a couple of hiccups that are as follows: First of all, beware of the tiny grey rectangle that shows at the bottom left of your screen when you boot from a USB disk. I was looking at it wondering why this is happening, is it a hardware issue, a disk issue? I created the Ubuntu Server 12.10 image on multiple disks, tested it on multiple machines, then did the same with Ubuntu Server 12.04 LTE. However, every time I boot from the USB disk, all I see is the small grey rectangle at the bottom left of the screen. A bit of Googling helped and I realised that all you need to do is to leave the grey rectangle on the screen for a couple of minutes, then press “Enter”, then leave the next screen for a couple of minutes, and press “Enter” again, and magically the Ubuntu server installation screen would be in front of you. Ubuntu installation used to be easier than this, and to be fair, the rest of the installation was a breeze. Secondly, as with most server installations, I wanted to assign

Continue Reading

Site Footer

Sliding Sidebar

Blog of Masud Khokhar

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Currently Reading