-
-
Save tgmerritt/92cf25f40d4ac66f62a7c2c1256b0736 to your computer and use it in GitHub Desktop.
Commands ran against Ubuntu 18.04 AMI with G4 GPU to start Avatarify remote worker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(avatarify) ubuntu@ip-172-31-44-117:~/avatarify$ history | |
1 sudo apt-get update | |
2 sudo apt-get install -y libsm6 libxext6 libxrender-dev | |
3 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
4 ls | |
5 bash Miniconda3-latest-Linux-x86_64.sh | |
6 git clone https://github.com/alievk/avatarify.git | |
7 cd avatarify/ | |
8 bash scripts/install.sh --no-vcam | |
9 cd .. | |
10 ls | |
11 rm Miniconda3-latest-Linux-x86_64.sh | |
12 ls | |
13 source $HOME/miniconda3/bin/activate | |
14 conda --help | |
15 cd avatarify/ | |
16 bash scripts/install.sh --no-vcam | |
17 conda activate avatarify | |
18 sudo apt-get update -y | |
19 cd .. | |
20 sudo reboot | |
21 sudo apt-get install -y gcc make linux-headers-$(uname -r) | |
22 cat << EOF | sudo tee --append /etc/modprobe.d/blacklist.conf | |
23 blacklist vga16fb | |
24 blacklist nouveau | |
25 blacklist rivafb | |
26 blacklist nvidiafb | |
27 blacklist rivatv | |
28 EOF | |
29 sudo vim /etc/default/grub | |
30 sudo update-grub | |
31 aws s3 cp --recursive s3://nvidia-gaming/linux/latest/ . | |
32 sudo apt install awscli | |
33 aws configure | |
34 aws s3 cp --recursive s3://nvidia-gaming/linux/latest/ . | |
35 ls | |
36 sudo apt-get install unzip | |
37 unzip GRID-445.48-Apr2020-vGaming-Linux-Guest-Drivers.zip | |
38 ls | |
39 rm GRID-445.48-Apr2020-vGaming-Linux-Guest-Drivers.zip | |
40 df | |
41 cd Linux/ | |
42 ls | |
43 chmod +x NVIDIA-Linux-x86_64*.run | |
44 sudo ./NVIDIA-Linux-x86_64*.run | |
45 cat << EOF | sudo tee -a /etc/nvidia/gridd.conf | |
46 vGamingMarketplace=2 | |
47 EOF | |
48 sudo curl -o /etc/nvidia/GridSwCert.txt "https://nvidia-gaming.s3.amazonaws.com/GridSwCert-Archive/GridSwCert-Linux_2020_04.cert" | |
49 sudo reboot | |
50 ls | |
51 history | |
52 cd avatarify/ | |
53 conda activate avatarify | |
54 bash run.sh --is-worker | |
55 nvidia-smi | |
56 bash run.sh --is-worker | |
57 history | |
(avatarify) ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi can you make an AMI, that would make it so much easier for people to use.