Skip to content

nbspou/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts

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

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 "jan.boon@kaetemi.be"
git config --global push.default simple
git config --global user.name "NO-BREAK SPACE OÜ"
git config --global user.email "support@no-break.space"
git config --global push.default simple
git config --global user.name "JanDo Games"
git config --global user.email "jan@jandogames.com"
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

About

Common scripts for various tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages