systems-guide/applications.md
2025-11-18 14:44:53 +01:00

42 lines
1000 B
Markdown

# Installing applications and their dependencies
## Put your apps in `/srv/`
Do not just install stuff in `/home/` dirs.
Rather `git clone` the repos to your home and then move it to `/srv/` partition.
```sh
sudo mv your_repo /srv/your_repo
```
This way other users of the system can also access and use your app without letting them into your $HOME.
## Installing NodeJS
Install NVM
```sh
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
```
Restart the shell session (or exit / reconnect to ssh) to use `nvm`.
Install and set the latest LTS (long term support) NodeJS.
```sh
nvm install --lts
```
## Installing Rust
```sh
# Install required packages
# openssl-devel is optional, but you will need it for web stuff such as Axum server
sudo dnf install curl epel-release cmake gcc make openssl-devel -y
# Install Rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
Restart the shell session (or exit / reconnect to ssh) to use Rust.