NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

#!/bin/bash
TOKEN="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"
#basic uprade and install
sudo apt update
sudo apt-get upgrade
sudo apt install -y python-is-python3
sudo apt install -y python3-pip
cd /opt
git clone https://[email protected]/hertz-ai/auto_dns.git
cd auto_dns
python startup.py doctr azure

cd /opt/

#install nvidia-drivers
sudo apt update && sudo apt install -y ubuntu-drivers-common
sudo apt install -y ubuntu-drivers-common
sudo ubuntu-drivers install --gpgpu nvidia:535-server
sudo apt install nvidia-utils-535-server

#install docker
sudo apt install docker.io
cd /opt/


#install nvidia container toolkit
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
&& curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
&& curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit && sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker

#monitor
cd /opt
git clone https://[email protected]/hertz-ai/vm_monitor.git
cd vm_monitor
sudo bash start.sh

#clone repo
cd /opt/
sudo mkdir hzai-doctr
sudo mkdir hzai-doctr/repo
cd hzai-doctr/repo
git clone https://[email protected]/hertz-ai/doctr.git
cd doctr
git checkout worker
sudo ufw allow 5050
sudo ufw allow 5050/tcp
sudo ufw allow 6380
sudo ufw allow 6380/tcp
sudo ufw allow 5998
sudo ufw allow 5998/tcp
sudo bash start.sh

sudo docker start $(docker ps -a -q)
sudo tee /etc/systemd/system/docker-start-containers.service > /dev/null <<EOL
[Unit]
Description=Start all Docker containers
After=docker.service
Wants=docker.service

[Service]
Type=oneshot
ExecStart=/usr/bin/bash -c '/usr/bin/docker start $(/usr/bin/docker ps -a -q)'
RemainAfterExit=true

[Install]
WantedBy=multi-user.target
EOL

# Enable and start the service
sudo systemctl daemon-reload
sudo systemctl enable docker-start-containers.service
sudo systemctl start docker-start-containers.service
sudo systemctl status docker-start-containers.service



cd /opt/

#install nvidia-drivers
sudo apt-get update
sudo apt-get upgrade -y
lspci | grep -i nvidia
sudo apt-get install build-essential dkms
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo sh -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt-get update
sudo apt-get install nvidia-driver-535 -y # or the appropriate driver version for L4

#sudo apt update && sudo apt install -y ubuntu-drivers-common
#sudo apt install -y ubuntu-drivers-common
#sudo ubuntu-drivers install --gpgpu nvidia:535-server
#sudo apt install -y nvidia-utils-535-server

#install docker
sudo apt install docker.io
cd /opt/


#install nvidia container toolkit
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
&& curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
&& curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit && sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker






#!/bin/bash
sudo apt-get --purge remove cuda* -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo apt-get --purge remove nvidia-* -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo apt update && sudo apt install -y ubuntu-drivers-common
sudo apt install -y ubuntu-drivers-common
sudo ubuntu-drivers install --gpgpu nvidia:535-server
sudo apt install nvidia-utils-535-server
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
&& curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
&& curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit && sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.