一、安装桌面和依赖
安装桌面和一些依赖软件:
1 | sudo apt update |
二、安装Nvidia显卡驱动和CUDA
1 | wget https://developer.download.nvidia.com/compute/cuda/11.5.0/local_installers/cuda_11.5.0_495.29.05_linux.run |
参考:
- https://developer.nvidia.com/cuda-downloads
- https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
- https://docs.microsoft.com/en-us/azure/virtual-machines/linux/n-series-driver-setup
三、安装VirtualGL
1 | sudo apt install -y libegl1-mesa |
参考:
四、安装TurboVNC
1 | sudo dpkg -i turbovnc_2.2.6_amd64.deb |
注意,需要安装相应的window版本进行远程登陆
下载地址:https://sourceforge.net/projects/turbovnc/files/
五、安装libjpeg-turbo
1 | sudo dpkg -i libjpeg-turbo-official_2.1.1_amd64.deb |
下载地址: https://sourceforge.net/projects/libjpeg-turbo/
六、配置
1 | sudo nvidia-xconfig --query-gpu-info # 查看busid |
重启后,检查安装的是否ok1
2xdpyinfo -display :0
/opt/VirtualGL/bin/glxinfo -display :0 -c
手动启动vncserver,也可以配置成开机启动1
sudo /opt/TurboVNC/bin/vncserver # 启动vnc服务,第一次启动时需要配置密码,使用window远程的时候需要输入
远程桌面登陆到服务上,使用vglrun命令启动应用程序1
2chmod +x ./Presenter.x86_64
vglrun ./Presenter.x86_64
七、参考
- https://virtualgl.org/Documentation/HeadlessNV
- 如何在 Ubuntu 服务器上安装桌面环境(GUI)
- Running CARLA without Display and Selecting GPUs
- ubuntu18.04安装虚拟显示器,不接显示器可远程桌面
- doc
1 | Closing an issue just means that the issue was resolved or was not something that needs to be addressed in VirtualGL. Continuing to discuss the same topic in the comments is OK, even if the issue is closed. |
- 本文作者: killf
- 本文链接: http://www.killf.info/Linux/Ubuntu18.04安装VirtualGL和TurboVNC/
- 版权声明: 本博客所有文章除特别声明外,均采用 Apache License 2.0 许可协议。转载请注明出处!