Update bootstrap.sh
This commit is contained in:
17
bootstrap.sh
17
bootstrap.sh
@@ -5,7 +5,7 @@ locale-gen en_US.UTF-8
|
|||||||
# Set the hostname
|
# Set the hostname
|
||||||
echo "scarif.space" > /etc/hostname
|
echo "scarif.space" > /etc/hostname
|
||||||
|
|
||||||
source /opt/ai-mouse/.env
|
source /opt/mouse/.env
|
||||||
|
|
||||||
echo "------- Generating system users -------"
|
echo "------- Generating system users -------"
|
||||||
useradd -m -p $(echo $USER_PASSWORD | openssl passwd -1 -stdin) chris
|
useradd -m -p $(echo $USER_PASSWORD | openssl passwd -1 -stdin) chris
|
||||||
@@ -20,7 +20,7 @@ echo "------- Setting up SSH -------"
|
|||||||
mkdir -p /home/chris/.ssh
|
mkdir -p /home/chris/.ssh
|
||||||
cp /root/.ssh/authorized_keys /home/chris/.ssh/authorized_keys
|
cp /root/.ssh/authorized_keys /home/chris/.ssh/authorized_keys
|
||||||
rm /etc/ssh/sshd_config
|
rm /etc/ssh/sshd_config
|
||||||
ln -s /opt/ai-mouse/sshd_config /etc/ssh/sshd_config
|
ln -s /opt/mouse/sshd_config /etc/ssh/sshd_config
|
||||||
echo "Welcome to The Mouse!" > /etc/motd
|
echo "Welcome to The Mouse!" > /etc/motd
|
||||||
systemctl restart sshd
|
systemctl restart sshd
|
||||||
|
|
||||||
@@ -30,13 +30,12 @@ ufw default allow outgoing
|
|||||||
ufw allow 629
|
ufw allow 629
|
||||||
ufw --force enable
|
ufw --force enable
|
||||||
|
|
||||||
#echo "------- Install Cuda -------"
|
echo "------- Install Cuda -------"
|
||||||
#apt-key del 7fa2af80
|
apt remove -y vultr-nvidia-client-drivers
|
||||||
#wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu24-4/x86_64/cuda-keyring_1.1-1_all.deb
|
wget -q -O /tmp/vultr_nvidia_driver.zip "http://169.254.169.254/latest/nvidia_linux_driver_installer_url"
|
||||||
#sudo dpkg -i cuda-keyring_1.1-1_all.deb
|
unzip -qq -o /tmp/vultr_nvidia_driver.zip -d /
|
||||||
#sudo apt-get update
|
bash /opt/nvidia/install.sh
|
||||||
#sudo apt-get install cuda-toolkit
|
rm -f /tmp/vultr_nvidia_driver.zip
|
||||||
#sudo apt-get install nvidia-gds
|
|
||||||
|
|
||||||
# echo "------- Starting docker -------"
|
# echo "------- Starting docker -------"
|
||||||
# systemctl enable docker --now
|
# systemctl enable docker --now
|
||||||
|
|||||||
Reference in New Issue
Block a user