blob: 89d3b344ae238292e0f689748b08fc5d8470add7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
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.7/redis.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
Install `rbenv` and be sure to include the following in `.zshrc`:
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
|