"gcc-6" should just be "gcc" (#379)
* "gcc-6" should just be "gcc" gcc-6 isn't a valid package name * It was `adduser mastodon` for a reason making it with `--system and --disabled-password` breaks the rest of the guide where `su - mastodon` is used. I use this method as it makes maintaining the Mastodon instance easier. * eval "$(rbenv init -)" should be in ~/.bashrc as well otherwise the correct ruby version isn't used * Use sudo su - instead
This commit is contained in:
parent
1e98a53c85
commit
fcab2b3c97
1 changed files with 5 additions and 4 deletions
|
@ -88,7 +88,7 @@ Now you need to install [Yarn](https://yarnpkg.com/en/) plus some more software.
|
||||||
- Other -dev packages, g++ - these are needed for the compilation of Ruby using ruby-build.
|
- Other -dev packages, g++ - these are needed for the compilation of Ruby using ruby-build.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
apt -y install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc-6 autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev nginx redis-server redis-tools postgresql postgresql-contrib letsencrypt yarn libidn11-dev libicu-dev
|
apt -y install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev nginx redis-server redis-tools postgresql postgresql-contrib letsencrypt yarn libidn11-dev libicu-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
### Dependencies That Need To Be Added As A Non-Root User
|
### Dependencies That Need To Be Added As A Non-Root User
|
||||||
|
@ -96,14 +96,14 @@ apt -y install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-co
|
||||||
Let us create this user first:
|
Let us create this user first:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
adduser --system --disabled-password mastodon
|
adduser mastodon
|
||||||
```
|
```
|
||||||
|
|
||||||
Log in as the `mastodon` user:
|
Log in as the `mastodon` user:
|
||||||
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
su - mastodon
|
sudo su - mastodon
|
||||||
```
|
```
|
||||||
|
|
||||||
We will need to set up [`rbenv`](https://github.com/rbenv/rbenv) and [`ruby-build`](https://github.com/rbenv/ruby-build):
|
We will need to set up [`rbenv`](https://github.com/rbenv/rbenv) and [`ruby-build`](https://github.com/rbenv/ruby-build):
|
||||||
|
@ -112,6 +112,7 @@ We will need to set up [`rbenv`](https://github.com/rbenv/rbenv) and [`ruby-buil
|
||||||
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
||||||
cd ~/.rbenv && src/configure && make -C src
|
cd ~/.rbenv && src/configure && make -C src
|
||||||
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
||||||
|
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
|
||||||
# Restart shell
|
# Restart shell
|
||||||
exec bash
|
exec bash
|
||||||
# Check if rbenv is correctly installed
|
# Check if rbenv is correctly installed
|
||||||
|
@ -363,7 +364,7 @@ For this we will switch to the `mastodon` system user:
|
||||||
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
su - mastodon
|
sudo su - mastodon
|
||||||
```
|
```
|
||||||
|
|
||||||
Change directory to `~live` and edit the [Mastodon](https://github.com/tootsuite/mastodon/) application configuration:
|
Change directory to `~live` and edit the [Mastodon](https://github.com/tootsuite/mastodon/) application configuration:
|
||||||
|
|
Loading…
Reference in a new issue