From dfb931e10d29fb54cc6c327ab80bfd20a818a0a7 Mon Sep 17 00:00:00 2001 From: Michael Stephenson Date: Sat, 2 Nov 2013 18:12:04 +0000 Subject: [PATCH 1/2] 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' --- VPS.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/VPS.md b/VPS.md index 0011baa4e..31751f87a 100644 --- a/VPS.md +++ b/VPS.md @@ -14,6 +14,19 @@ The first step is installing some essential dependencies from your VPS's package On CentOS after installing Postgres, I needed to run these commands, Fedora likely the same. service postgresql initdb && service postgresql start + +#### Arch Linux + + pacman -S git postgresql base-devel libxml2 libxslt curl sqlite readline postgresql-libs + +Here are ome Arch specific instructions for setting up postgres + + systemd-tmpfiles --create postgresql.conf + chown -c -R postgres:postgres /var/lib/postgres + sudo su - postgres -c "initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data'" + systemctl start postgresql + systemctl enable postgresql + Set up the database =================== @@ -31,8 +44,10 @@ Create your stringer user 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. - adduser stringer --shell /bin/bash - su stringer + useradd stringer -m -s /bin/bash + su -l stringer + +Always use -l switch when you switch user to your stringer user, without it your modified .bash_profile or .profile file will be ignored. Install Ruby for your stringer user =================================== From 2abd1bcd93bce26ba93de390e69bf1802d349aa0 Mon Sep 17 00:00:00 2001 From: Michael Stephenson Date: Sat, 2 Nov 2013 18:51:48 +0000 Subject: [PATCH 2/2] Fixed Typo --- VPS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VPS.md b/VPS.md index 31751f87a..2eeea07be 100644 --- a/VPS.md +++ b/VPS.md @@ -19,7 +19,7 @@ On CentOS after installing Postgres, I needed to run these commands, Fedora like pacman -S git postgresql base-devel libxml2 libxslt curl sqlite readline postgresql-libs -Here are ome Arch specific instructions for setting up postgres +Here are some Arch specific instructions for setting up postgres systemd-tmpfiles --create postgresql.conf chown -c -R postgres:postgres /var/lib/postgres