CKAN (Comprehensive Knowledge Archive Network) is an open-source platform for data management, specifically for open data initiatives. In this tutorial, you will learn how to install CKAN on Ubuntu Server Latest.
First, update/upgrade Ubuntu to ensure that you have the latest packages.
sudo apt update
sudo apt upgrade
Install the required packages for CKAN.
sudo apt install -y python-dev python-pip postgresql-12 postgresql-server-dev-12 solr-jetty openjdk-11-jre-headless
Install CKAN with pip.
sudo pip install ckan
Create a PostgreSQL database and user for CKAN.
sudo su - postgres
createuser -S -D -R -P ckanuser
createdb -O ckanuser ckan_default
exit
Edit the CKAN configuration file to match your setup.
sudo nano /etc/ckan/default/development.ini
[DEFAULT]
# ...
sqlalchemy.url = postgresql://ckanuser:pass@localhost/ckan_default
# ...
solr_url = http://127.0.0.1:8983/solr
Initialize the CKAN database.
sudo ckan db init
Start the CKAN and Solr services.
sudo systemctl start ckan.service
sudo systemctl start solr-jetty.service
Enable the CKAN and Solr services to start at boot.
sudo systemctl enable ckan.service
sudo systemctl enable solr-jetty.service
You have successfully installed CKAN on Ubuntu Server Latest. You can now use CKAN for your data management needs.
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!