Skip to content

Instantly share code, notes, and snippets.

@sio2boss
Last active February 21, 2017 23:02
Show Gist options
  • Save sio2boss/5a84ec4a7530387ac79df1f30843d9d8 to your computer and use it in GitHub Desktop.
Save sio2boss/5a84ec4a7530387ac79df1f30843d9d8 to your computer and use it in GitHub Desktop.
Install Mate on Ubuntu 16.04
#!/bin/bash
# install Ubuntu Mate desktop
sudo apt-add-repository ppa:ubuntu-mate-dev/xenial-mate
sudo apt-get update
sudo apt-get install mate-desktop-environment-extras
sudo apt-get install xserver-xorg-legacy Xvfb
sudo dpkg-reconfigure xserver-xorg-legacy # Select all users
sudo systemctl disable lightdm
# install nomachine
mkdir -p .nx/config
cp -p .ssh/authorized_keys .nx/config/authorized.crt
# install cuda (need to have a login for wget)
sudo add-apt-repository ppa:graphics-drivers/ppa
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda
# setup display
sudo nvidia-xconfig -a --use-display-device=None --virtual=1280x1024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment