Created
September 10, 2019 03:31
-
-
Save kyeshmz/31a3a58d1e32412a3a726b7a8e42ab9e to your computer and use it in GitHub Desktop.
postinstall && setup install
This file contains hidden or 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
| #!/bin/bash | |
| nvidia-smi | |
| sudo apt-get install --no-install-recommends \ | |
| cuda-10-0 \ | |
| libcudnn7=7.4.1.5-1+cuda10.0 \ | |
| libcudnn7-dev=7.4.1.5-1+cuda10.0 | |
| nvidia-smi | |
| sudo reboot |
This file contains hidden or 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
| #!/bin/bash | |
| sudo apt update -y | |
| sudo apt upgrade -y | |
| sudo apt-get install -y | |
| openssh-server \ | |
| git wget curl cmake\ | |
| make apt-transport-https \ | |
| ca-certificates iperf3\ | |
| software-properties-common htop ethtool\ | |
| #install docker | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) \ | |
| stable" | |
| sudo apt-get update | |
| sudo apt-get install docker-ce -y | |
| touch ~/.hushlogin | |
| sudo -S groupadd docker && sudo gpasswd -a $USER docker && sudo systemctl restart docker | |
| dconf write /org/gnome/desktop/remote-access/prompt-enabled false | |
| dconf write /org/gnome/desktop/remote-access/authentication-methods "['vnc']" | |
| dconf write /org/gnome/desktop/remote-access/enabled true | |
| dconf write /org/gnome/desktop/remote-access/require-encryption false | |
| dconf write /org/gnome/desktop/remote-access/vnc-password \"\'$(echo -n rzm | base64)\'\" | |
| cd /Documents | |
| wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb | |
| sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb | |
| sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | |
| sudo apt-get update -y | |
| wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb | |
| sudo apt install ./nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb | |
| sudo apt-get update -y | |
| sudo apt-get install --no-install-recommends nvidia-driver-418 -y | |
| sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment