Common scripts for various tasks
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/provision_root_base.sh | bash
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/provision_root_redis.sh | bash
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/provision_root_dogcat.sh | bash
- Redis Server: 127.0.0.1:6379
- Prometheus Node Exporter: http://localhost:9100/metrics
- Prometheus Redis Exporter: http://localhost:9121/metrics
- Prometheus MongoDB Exporter: http://localhost:9001/metrics
Or on GEX44
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/provision_root_base_gex44.sh | bash
and follow instructions at https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=24.04&target_type=deb_network and also run sudo apt install nvidia-cuda-toolkit
or PATH won't be set. Also add export TERM=putty
at front of .bashrc (between "for examples" and "# If").
Then to add the first user (replace me
)
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/provision_root_adduser.sh | bash -s me
To add sudo
access through password:
usermod -aG sudo me
passwd me
To add sudo
access without password (on DigitalOcean):
usermod -aG sudo me
echo 'me ALL=(ALL) NOPASSWD:ALL' | sudo EDITOR='tee -a' visudo -f /etc/sudoers.d/90-cloud-init-users
Ensure that /etc/ssh/sshd_config
has PasswordAuthentication no
!
git config --global user.name "Jan Boon"
git config --global user.email "[email protected]"
git config --global push.default simple
git config --global user.name "NO-BREAK SPACE OÜ"
git config --global user.email "[email protected]"
git config --global push.default simple
git config --global user.name "JanDo Games"
git config --global user.email "[email protected]"
git config --global push.default simple
cat ~/.ssh/id_rsa.pub
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/maintenance_root_redis.sh | bash
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/maintenance_root_dogcat.sh | bash
Fix broken npm
apt install aptitude
aptitude reinstall nodejs
To get missing git submodules
git submodule update --init