summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbt <bt@web>2024-01-18 13:41:54 -0500
committerIkiWiki <ikiwiki.info>2024-01-18 13:41:54 -0500
commit10d21d80b4822180a090265c2f6f9c6817c1d26a (patch)
tree6168734bbe65bb2dce8b43306a096e4f3c11f3dd
parent49084f67cf91d8c2d354a6860d00fc043599fc8e (diff)
-rw-r--r--wiki/ubuntu.mdwn77
1 files changed, 77 insertions, 0 deletions
diff --git a/wiki/ubuntu.mdwn b/wiki/ubuntu.mdwn
new file mode 100644
index 0000000..6b8573c
--- /dev/null
+++ b/wiki/ubuntu.mdwn
@@ -0,0 +1,77 @@
+This page contains a wide range of common scripts / application setups for Ubuntu
+
+## MongoDB 3.4 on Ubuntu 23.10
+
+ wget http://launchpadlibrarian.net/668089858/libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb
+ sudo apt install ./libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb
+ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
+
+ echo "deb http://repo.mongodb.org/apt/ubuntu 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] http://repo.mongodb.org/apt/ubuntu 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 http://download.redis.io/releases/redis-6.0.7.tar.gz
+ tar xzvf redis-6.0.7.tar.gz
+ cd redis-6.0.7
+
+Install redis:
+
+ make
+ 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`:
+
+ [Unit]
+ Description=Redis In-Memory Data Store
+ After=network.target
+
+ [Service]
+ User=redis
+ Group=redis
+ ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
+ ExecStop=/usr/local/bin/redis-cli shutdown
+ Restart=always
+
+ [Install]
+ WantedBy=multi-user.target
+
+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] http://security.ubuntu.com/ubuntu bionic-security main
+
+Then run `sudo apt-get update`. After completion, install `libssl1.0-dev`:
+
+ sudo apt-get install libssl1.0-dev
+