Skip to content

Commit dfb931e

Browse files
Added Arch instructions to VPS.md
* Added list of needed Arch packages * Added Arch specific instructions * Switched to using useradd instead of adduser as it is more distro agnostic (adduser is not * Instructed users to always use '-l' switch when they 'su'
1 parent bded6eb commit dfb931e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

VPS.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ The first step is installing some essential dependencies from your VPS's package
1414
On CentOS after installing Postgres, I needed to run these commands, Fedora likely the same.
1515

1616
service postgresql initdb && service postgresql start
17+
18+
#### Arch Linux
19+
20+
pacman -S git postgresql base-devel libxml2 libxslt curl sqlite readline postgresql-libs
21+
22+
Here are ome Arch specific instructions for setting up postgres
23+
24+
systemd-tmpfiles --create postgresql.conf
25+
chown -c -R postgres:postgres /var/lib/postgres
26+
sudo su - postgres -c "initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data'"
27+
systemctl start postgresql
28+
systemctl enable postgresql
29+
1730

1831
Set up the database
1932
===================
@@ -31,8 +44,10 @@ Create your stringer user
3144

3245
We will run stringer as it's own user for security, also we will be installing a specific version of ruby to stringer user's home directory, this saves us worrying whether the version of ruby and some dependencies provided by your distro are compatible with Stringer.
3346

34-
adduser stringer --shell /bin/bash
35-
su stringer
47+
useradd stringer -m -s /bin/bash
48+
su -l stringer
49+
50+
Always use -l switch when you switch user to your stringer user, without it your modified .bash_profile or .profile file will be ignored.
3651

3752
Install Ruby for your stringer user
3853
===================================

0 commit comments

Comments
 (0)