User Tools

Site Tools


headless_ubuntu_server_with_a_thin_vnc_gui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
headless_ubuntu_server_with_a_thin_vnc_gui [2010/04/29 17:48] tkbletscheadless_ubuntu_server_with_a_thin_vnc_gui [2024/06/22 14:18] (current) tkbletsc
Line 1: Line 1:
 ====== Headless Ubuntu server with a thin VNC GUI ====== ====== Headless Ubuntu server with a thin VNC GUI ======
 +
 +===== Ubuntu 22.04 =====
 +
 +To install, as root, do:
 +
 +<file>
 +# apt-get update
 +# apt-get dist-upgrade
 +# apt-get install --no-install-recommends xfce4 tightvncserver xfce4-terminal xfonts-base xubuntu-icon-theme
 +
 +</file>
 +
 +To run with default resolution:
 +
 +''tightvncserver''
 +
 +To run with a specific resolution:
 +
 +''tightvncserver -geometry 1800x950''
 +
 +**Set a strong password. **
 +
 +As of Ubuntu 22.04, the default setup actually looks complete, so you should be good now. When done, kill it with "tightvncserver -kill :1".
 +
 ===== Ubuntu 10.04 ===== ===== Ubuntu 10.04 =====
  
 As root, do: As root, do:
 +
 <file> <file>
 # apt-get update # apt-get update
 # apt-get dist-upgrade # apt-get dist-upgrade
-# apt-get install --no-install-recommends xfce4 vnc4server xfce4-terminal xfonts-base gksu synaptic+# apt-get install --no-install-recommends xfce4 vnc4server xfce4-terminal xfonts-base xubuntu-icon-theme gksu synaptic 
 </file> </file>
  
-Run vncserver once to create the initial setup.  You can connect to it now and see a pretty minimal interface -- just a terminal window.  Kill it with "vncserver -kill :1".+Run vncserver once to create the initial setup. You can connect to it now and see a pretty minimal interface – just a terminal window. Kill it with ''tightvncserver -kill :1''.
  
 Edit ''~/.vnc/xstartup'', comment out or delete what's there, and put: Edit ''~/.vnc/xstartup'', comment out or delete what's there, and put:
Line 16: Line 42:
 vncserver -kill $DISPLAY vncserver -kill $DISPLAY
 exit exit
 +
 </file> </file>
 +
 This way the VNC session is destroyed when you log out. This way the VNC session is destroyed when you log out.
  
 To run the vnc server: To run the vnc server:
 +
 <file> <file>
 $ vncserver $ vncserver
 +
 </file> </file>
  
-You can also use X-forwarding with SSH to launch GUI apps from the command line.  On Windows, first install an X client such as [[http://sourceforge.net/projects/xming/|Xming]].  Then set PuTTY to connect to the server with "X11 forwarding" enabled within the SSH options.  For Linux clients, connect with the -X option.  Either way, you'll be able to run GUI apps and have them appear on the local machine.+You can also use X-forwarding with SSH to launch GUI apps from the command line. On Windows, first install an X client such as [[http://sourceforge.net/projects/xming/|Xming]]. Then set PuTTY to connect to the server with "X11 forwarding" enabled within the SSH options. For Linux clients, connect with the -X option. Either way, you'll be able to run GUI apps and have them appear on the local machine.
 <file> <file>
 +
 client$ ssh -X server client$ ssh -X server
 server$ xfce4-terminal & server$ xfce4-terminal &
 (it appears!) (it appears!)
 +
 </file> </file>
  
 ===== Ubuntu 9.04 ===== ===== Ubuntu 9.04 =====
  
-Install Ubuntu.  I used 9.04.  Then, as root, do:+Install Ubuntu. I used 9.04. Then, as root, do: 
 <file> <file>
 # apt-get update # apt-get update
 # apt-get dist-upgrade # apt-get dist-upgrade
 # apt-get install --no-install-recommends xfce4 vnc4server xfce4-terminal xfce4-icon-theme gksu synaptic # apt-get install --no-install-recommends xfce4 vnc4server xfce4-terminal xfce4-icon-theme gksu synaptic
 +
 </file> </file>
  
Line 45: Line 79:
 vncserver -kill $DISPLAY vncserver -kill $DISPLAY
 exit exit
 +
 </file> </file>
 +
 This way the VNC session is destroyed when you log out. This way the VNC session is destroyed when you log out.
  
 To run the vnc server: To run the vnc server:
 +
 <file> <file>
 $ vncserver $ vncserver
 +
 </file> </file>
 +
  
headless_ubuntu_server_with_a_thin_vnc_gui.1272588485.txt.gz · Last modified: 2010/04/29 17:48 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki