Last active
September 17, 2018 01:35
-
-
Save thomelane/c941f65f3e6c6b46398ff74ac72fb7c5 to your computer and use it in GitHub Desktop.
GLX on P3
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
# dependencies | |
sudo apt install x11-apps | |
sudo apt install xorg | |
sudo apt install x11vnc | |
# for basic gui | |
sudo /usr/bin/X :0 & | |
DISPLAY=:0 xclock & | |
x11vnc -passwd testtest -display :0 | |
# connect with vnc client (avaliable at localhost:5900 if ssh with port forwarding) | |
# kill clock | |
# for glx gui | |
# glx utils | |
sudo apt install mesa-utils | |
# nvidia dependencies | |
wget http://us.download.nvidia.com/tesla/396.44/nvidia-diag-driver-local-repo-ubuntu1604-396.44_1.0-1_amd64.deb | |
sudo dpkg -i nvidia-diag-driver-local-repo-ubuntu1604-396.44_1.0-1_amd64.deb | |
sudo apt-key add /var/nvidia-diag-driver-local-repo-396.44/7fa2af80.pub | |
sudo apt-get update | |
sudo apt install cuda-drivers | |
# create xorg.conf | |
nano /etc/X11/xorg.conf | |
# copy in contents of file | |
sudo reboot | |
# add drivers to path | |
export LD_LIBRARY_PATH=/usr/lib/nvidia-396/:$LD_LIBRARY_PATH | |
DISPLAY=:0 glxgears & > /dev/null | |
x11vnc -passwd testtest -display :0 | |
# kill glxgears | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment