# be careful with this wildcard please! sudo apt autoremove elixir erlang* #login as akkoma user sudo -su akkoma # go to home (/var/lib/akkoma) and create the folders and files you need cd mkdir -p .local/bin mkdir .asdf touch .tool-versions # https://github.com/asdf-vm/asdf/releases/tag/v0.16.5 # download the latest release of asdf from their github and put the `asdf` binary in # /var/lib/akkoma/.local/bin chmod +x .local/bin/asdf $EDITOR .bashrc # add the following two lines at the bottom of .bashrc here export PATH="$PATH:$HOME/.local/bin" export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH" # We're relaunching the shell, now check $PATH is correct exec $SHELL echo $PATH # it should include a bit about asdf at the start of PATH # Installing and pinning erland and elixir asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.gitexport export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac" asdf install erlang 26.2.5.4 # the next command is incorrect on the akkoma docs, but correct here asdf plugin add elixir https://github.com/asdf-vm/asdf-elixir.git asdf install elixir 1.17.3-otp-26 $EDITOR .tool-versions # add the following two lines to .tool-versions erlang 26.2.5.4 elixir 1.17.3-otp-26 #make sure the version is right elixir --version #if it isn't pinned properly then the asdf shims aren't loading, it will tell you # that the version isn't set properly when you invoke elixir here. check the $PATH really is set #do this stuff but don't start akkoma, it won't launch yet #https://docs.akkoma.dev/stable/administration/updating/#for-from-source-installations-using-git $EDITOR /etc/systemd/system/akkoma.service # search /etc/systemd/system/akkoma.service for "asdf" and READ which lines to change # (one to comment, two to uncomment) # also change the Environment to include /var/lib/akkoma/.local/bin sudo systemctl daemon-reload sudo systemctl start akkoma