feat: update setup to CKAN 2.11.3, remove unnecessary steps, add password suggestion

This commit is contained in:
rzmk 2025-08-11 11:58:00 -04:00
parent 31b0b6a187
commit 256ea1582b

View file

@ -4,7 +4,7 @@ sidebar_position: 4
# 📊 CKAN Setup
In this section we'll go over how to install [CKAN](https://ckan.org) v2.10.6 and get it running on your Ubuntu VM.
In this section we'll go over how to install [CKAN](https://ckan.org) v2.11.3 and get it running on your Ubuntu VM.
## 📝 Written Tutorial
@ -147,7 +147,7 @@ sudo chown `whoami` /usr/lib/ckan/default
python3 -m venv /usr/lib/ckan/default
. /usr/lib/ckan/default/bin/activate
pip install --upgrade pip
pip install -e 'git+https://github.com/ckan/ckan.git@ckan-2.10.6#egg=ckan[requirements]'
pip install -e 'git+https://github.com/ckan/ckan.git@ckan-2.11.3#egg=ckan[requirements]'
deactivate
. /usr/lib/ckan/default/bin/activate
sudo mkdir -p /etc/ckan/default
@ -156,22 +156,7 @@ ckan generate config /etc/ckan/default/ckan.ini
ln -s /usr/lib/ckan/default/src/ckan/who.ini /etc/ckan/default/who.ini
```
Next you must modify the CKAN config at `/etc/ckan/default/ckan.ini`:
```ini
debug = true
ckan.debug_supress_header = False
```
Also replace the following values to this:
```bash
ckan.devserver.threaded = true
ckan.max_resource_size = 10000
ckan.max_image_size = 5
```
Continue to step 7 while in the virtual environment (replace `rzmk` with your group then username for the `chown` command and your CKAN details for the CKAN sysadmin account generation command). You may be prompted to add a sysadmin username and password (the password may need to be at least 8 characters).
Let's continue to step 7 while in the virtual environment (replace `rzmk` with your group then username for the `chown` command and your CKAN details for the CKAN sysadmin account generation command). You may be prompted to add a sysadmin username and password (the password should be at least 8 characters such as `password` since we're using this instance for development locally and not exposing it to the Internet).
```bash
cd /usr/lib/ckan/default/src/ckan