CKAN is an open source data portal platform which can be used for managing and sharing datasets. This tutorial will guide you through the installation process of CKAN on Fedora CoreOS Latest. Follow the steps below to get started.
Before installing CKAN, you need to make sure that the following requirements are met:
dnf update
To install CKAN on Fedora CoreOS, you need to install some dependencies. The following packages need to be installed:
dnf install postgresql postgresql-server postgresql-devel python3 python3-pip python3-devel gcc gcc-c++ git libxml2-devel libxslt-devel -y
Once the packages are installed successfully, start the PostgreSQL server and enable it to run on boot.
systemctl enable postgresql
systemctl start postgresql
We will install CKAN using pip, which is a package manager for Python. Run the following command to install CKAN:
pip3 install -e git+https://github.com/ckan/ckan.git#egg=ckan
Once the installation is completed, create a default CKAN configuration file using the following command:
paster make-config ckan /etc/ckan/default.ini
Configure PostgreSQL so that CKAN can access the database. Create a new database user by running the following commands:
su - postgres
createuser -P ckan_default
Enter a password for the database user when prompted.
Next, we need to create a new database for CKAN. Run the following commands:
createdb -O ckan_default ckan_default -E utf-8
exit
Edit the /etc/ckan/default.ini
file and update the following section with the database details:
sqlalchemy.url = postgresql://ckan_default:{{ password_of_ckan_default }}@localhost/ckan_default
To run the CKAN server, run the following command:
paster serve /etc/ckan/default.ini
CKAN should now be accessible at http://localhost:5000.
In this tutorial, we have covered the installation process of CKAN on Fedora CoreOS Latest. You should now be able to access the CKAN web interface and start managing your datasets.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!