This page contains a wide range of common scripts / application setups for Ubuntu

MongoDB 3.4 on Ubuntu 23.10

sudo apt install ./libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb
sudo apt-key adv --keyserver hkp:// --recv 7F0CEB10

echo "deb precise/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list

Now edit /etc/apt/sources.list.d/mongodb-org-3.4.list:

deb [trusted=yes] precise/mongodb-org/3.4...

Then finish things up:

sudo apt-get update --allow-unauthenticated
sudo apt-get install -y mongodb-org

sudo mkdir -p /data/db
sudo chmod -R 777 /data/db

Redis 6.0.7 on Ubuntu 23.10

sudo apt-get install build-essential tcl
cd /tmp
curl -O
tar xzvf redis-6.0.7.tar.gz
cd redis-6.0.7

Install redis:

make test
sudo make install

sudo mkdir /etc/redis
sudo cp /tmp/redis-6.0.7redis.conf /etc/redis

Edit /etc/redis/redis.conf with the following changes:

  • supervised systemd
  • dir /var/lib/redis

Create systemd unit file for redis: /etc/systemd/system/redis.service:

Description=Redis In-Memory Data Store

ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
ExecStop=/usr/local/bin/redis-cli shutdown


Final steps:

sudo adduser --system --group --no-create-home redis
sudo mkdir /var/lib/redis
sudo chown redis:redis /var/lib/redis
sudo chmod 770 /var/lib/redis

Ruby 2.7.2 with rbenv on Ubuntu 23.10

Edit the /etc/apt/sources.list file:

deb [trusted=yes] bionic-security main

Then run sudo apt-get update. After completion, install libssl1.0-dev:

sudo apt-get install libssl1.0-dev