documentation icon indicating copy to clipboard operation
documentation copied to clipboard

mastodon user creation & ruby install

Open cmdr-nova opened this issue 2 years ago • 2 comments

I'm submitting this issue because there are multiple issues with the current install from source Mastodon instructions.

Firstly, if you're running things on Digital Ocean and installing Ubuntu, you're going to be a couple of versions ahead of what the guide says they're using. I'm assuming this means that some stuff detailed in the install instructions will not work, or be broken. I only assume this, because at this point, I am definitely not going to go back and wipe my entire droplet just to try and install an older version of Ubuntu.

Anyway.

When you get to the section that says

adduser --disabled-login mastodon

That works completely fine (and may I note that I'm speaking from having done this as root with sudo).

But then when you get to the very next instruction, still followed absolutely to the T, that instruction being:

su - mastodon

It will fail. This doesn't work. You have to instead use:

sudo -su mastodon

and then switch to the mastodon user's home directory.

Once you've done that, you're instructed to clone ruby, and then install the correct ruby version, but upon attempting to do so you'll get:

rbenv: no such command `install'
rbenv: version `3.2.3' not installed

And in order to remedy this, you'll need to ... clone the install function, like so:

git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build

After doing this, the install instructions move forward with ease, or at least they appear to. I will return to this issue if it fails beyond this point.

Further issues:

Once you reach the point where it's time to install Mastodon, the instructions will again ask you to

su - mastodon

Do not do this.

Use the method from before, and then type in

cd ~/

Then, and only then, clone Mastodon.

cmdr-nova avatar Jan 27 '24 15:01 cmdr-nova

(The su problem was also reported in #1372.)

aaaaalbert avatar Jan 30 '24 10:01 aaaaalbert