Last active
August 22, 2025 06:33
-
Star
(108)
You must be signed in to star a gist -
Fork
(26)
You must be signed in to fork a gist
-
-
Save cyberang3l/422a77a47bdc15a0824d5cca47e64ba2 to your computer and use it in GitHub Desktop.
Revisions
-
cyberang3l revised this gist
Nov 18, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -35,7 +35,7 @@ sudo dpkg -i virtualgl_*.deb service lightdm stop /opt/VirtualGL/bin/vglserver_config # Go through the questions until the configuration is done. sudo reboot # Sanity check for restricted access to 3D X Server xauth merge /etc/opt/VirtualGL/vgl_xauth_key -
cyberang3l revised this gist
Nov 18, 2017 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,10 +30,12 @@ sudo dpkg -i virtualgl_*.deb * Shutdown the display manager and configure virtualgl server: ``` # login as root # If you are using KDE, install lightdm (sudo apt-get install lightdm) # otherwise the following configuration steps do not work with SDDM (yet) service lightdm stop /opt/VirtualGL/bin/vglserver_config # Go through the questions until the configuration is done. service lightdm start # Sanity check for restricted access to 3D X Server xauth merge /etc/opt/VirtualGL/vgl_xauth_key @@ -81,11 +83,9 @@ For the TurboVNC clients, you can find them at the same [address](http://sourcef * Kill the started VNC server with the command `vncserver -kill :1`. Change the `:1` with the `X DISPLAY` value returned by the `vncserver -list` command earlier. * Make sure that the commands `xfce4-panel` and `xfce4-session` exist in your system (if not install them), and append the following line at the end of the file `~/.vnc/xstartup.turbovnc`. ``` xfce4-session & ``` * Now start the vncserver again: -
cyberang3l revised this gist
Nov 18, 2017 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,10 +30,10 @@ sudo dpkg -i virtualgl_*.deb * Shutdown the display manager and configure virtualgl server: ``` # login as root service lightdm stop # Or 'systemctl stop sddm.service' if you are using KDE /opt/VirtualGL/bin/vglserver_config # Go through the questions until the configuration is done. service lightdm start # Or 'systemctl start sddm.service' if you are using KDE # Sanity check for restricted access to 3D X Server xauth merge /etc/opt/VirtualGL/vgl_xauth_key @@ -51,8 +51,8 @@ For the TurboVNC clients, you can find them at the same [address](http://sourcef ### Use * Launch `/opt/TurboVNC/bin/vncserver` on the server. Possible options: * -otp: enable One Time Password * -geometry <width>x<height>: specify size of the window * Connect using TurboVNC client (`/opt/TurboVNC/bin/vncviewer`). (The screen will appear black but X is launched) * In a terminal on the server -
cyberang3l revised this gist
Nov 18, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,10 +30,10 @@ sudo dpkg -i virtualgl_*.deb * Shutdown the display manager and configure virtualgl server: ``` # login as root service lightdm stop # Or systemctl stop sddm.service if you are using KDE /opt/VirtualGL/bin/vglserver_config # Go through the questions until the configuration is done. service lightdm start # Or systemctl start sddm.service if you are using KDE # Sanity check for restricted access to 3D X Server xauth merge /etc/opt/VirtualGL/vgl_xauth_key -
cyberang3l revised this gist
Oct 11, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -65,6 +65,8 @@ For the TurboVNC clients, you can find them at the same [address](http://sourcef # Example command vglrun glxgears ``` ### Tips * To get a window manager up and running (in order to not have the black screen) do the following: * With the command `vncserver -list` find the started vnc server. This command will give you an output that looks like this: @@ -91,8 +93,6 @@ For the TurboVNC clients, you can find them at the same [address](http://sourcef /opt/TurboVNC/bin/vncserver ``` * Export PATH variables: ``` export PATH=/opt/TurboVNC/bin:$PATH -
cyberang3l revised this gist
Oct 11, 2017 . 1 changed file with 25 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -66,6 +66,31 @@ For the TurboVNC clients, you can find them at the same [address](http://sourcef vglrun glxgears ``` * To get a window manager up and running (in order to not have the black screen) do the following: * With the command `vncserver -list` find the started vnc server. This command will give you an output that looks like this: ``` $ vncserver -list TurboVNC server sessions: X DISPLAY # PROCESS ID :1 8972 ``` * Kill the started VNC server with the command `vncserver -kill :1`. Change the `:1` with the `X DISPLAY` value returned by the `vncserver -list` command earlier. * Make sure that the commands `x-window-manager`, `gnome-panel` and `gnome-terminal` exist in your system (if not install them), and append the following three lines at the end of the file `~/.vnc/xstartup.turbovnc`. ``` x-window-manager & gnome-panel & gnome-terminal & ``` * Now start the vncserver again: ``` /opt/TurboVNC/bin/vncserver ``` ### Tips * Export PATH variables: -
cyberang3l revised this gist
Oct 11, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -54,7 +54,7 @@ For the TurboVNC clients, you can find them at the same [address](http://sourcef * Launch the `vncserver` on the server. Possible options: * -opt: enable One Time Password * -geometry <width>x<height>: specify size of the window * Connect using TurboVNC client (`/opt/TurboVNC/bin/vncviewer`). (The screen will appear black but X is launched) * In a terminal on the server * export the DISPLAY variable to the value used by vncserver ``` -
cyberang3l revised this gist
Oct 11, 2017 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ https://github.com/aancel/admin/wiki/VirtualGL-on-Ubuntu https://virtualgl.org/About/Introduction https://www.turbovnc.org ## VirtualGL -
cyberang3l created this gist
Oct 11, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,72 @@ https://github.com/aancel/admin/wiki/VirtualGL-on-Ubuntu https://virtualgl.org/About/Introduction https://www.turbovnc.org ## VirtualGL When you use ssh with X forwarding, you might have noticed that you cannot execute programs that require 3D acceleration. That's where VirtualGL comes into play. VirtualGL is an open source toolkit that gives any Unix or Linux remote display software the ability to run OpenGL applications with full 3D hardware acceleration. With VirtualGL, the OpenGL commands and 3D data are instead redirected to a 3D graphics accelerator (AKA "graphics processing unit" or "GPU") in the application server, and only the rendered 3D images are sent to the client machine. ### Inititalization Download the following packages for the server: * The .deb package for VirtualGL on [sourceforge](http://sourceforge.net/projects/virtualgl/files/) * The .deb package for TurboVNC on [sourceforge](http://sourceforge.net/projects/turbovnc/files/) ### Installation * Make sure you have installed the proprietary drivers for your graphics card (at least for Nvidia that I have tested this setup). * Install virtualgl on Ubuntu, by installing the deb file you already downloaded: ``` sudo dpkg -i virtualgl_*.deb ``` * Shutdown the display manager and configure virtualgl server: ``` # login as root service lightdm stop /opt/VirtualGL/bin/vglserver_config # Go through the questions until the configuration is done. service lightdm start # Sanity check for restricted access to 3D X Server xauth merge /etc/opt/VirtualGL/vgl_xauth_key xdpyinfo -display :0 /opt/VirtualGL/bin/glxinfo -display :0 -c # Check that the Graphic card is indeed used and not Mesa ``` * Install TurboVNC: ``` sudo dpkg -i turbovnc_*.deb ``` For the TurboVNC clients, you can find them at the same [address](http://sourceforge.net/projects/turbovnc/files) ### Use * Launch the `vncserver` on the server. Possible options: * -opt: enable One Time Password * -geometry <width>x<height>: specify size of the window * Connect using TurboVNC client. (The screen will appear black but X is launched) * In a terminal on the server * export the DISPLAY variable to the value used by vncserver ``` export DISPLAY=:1 # if your vncserver started in DISPLAY :1 ``` * Launch an X App (with vglrun to have 3D acceleration) ``` # Example command vglrun glxgears ``` ### Tips * Export PATH variables: ``` export PATH=/opt/TurboVNC/bin:$PATH ```