Skip to content

Instantly share code, notes, and snippets.

@ynshung
Last active June 21, 2021 03:46
Show Gist options
  • Save ynshung/0b94c2807f78390b16b849236fa0177f to your computer and use it in GitHub Desktop.
Save ynshung/0b94c2807f78390b16b849236fa0177f to your computer and use it in GitHub Desktop.
#!/bin/bash
wget -nc "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.93/blender-2.93.0-linux-x64.tar.xz"
mkdir 2.93
tar -xkf blender-2.93.0-linux-x64.tar.xz -C ./2.93 --strip-components=1
rm blender-2.93.0-linux-x64.tar.xz
sudo apt update
sudo apt install -y python3-pip libx11-dev libxxf86vm-dev libxcursor-dev libxi-dev libxrandr-dev libxinerama-dev libglew-dev
pip3 install gdown
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt update
sudo apt -y install cuda
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
sudo dpkg --install chrome-remote-desktop_current_amd64.deb
sudo apt install --assume-yes --fix-broken
sudo DEBIAN_FRONTEND=noninteractive \
apt install --assume-yes xfce4 desktop-base
sudo bash -c 'echo "exec /etc/X11/Xsession /usr/bin/xfce4-session" > /etc/chrome-remote-desktop-session'
sudo apt install --assume-yes xscreensaver
sudo systemctl disable lightdm.service
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg --install google-chrome-stable_current_amd64.deb
sudo apt install --assume-yes --fix-broken
rm google-chrome-stable_current_amd64.deb
rm chrome-remote-desktop_current_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment