headless_ubuntu_server_with_a_thin_vnc_gui
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| headless_ubuntu_server_with_a_thin_vnc_gui [2010/04/29 17:47] – tkbletsc | headless_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: | ||
| + | |||
| + | < | ||
| + | # apt-get update | ||
| + | # apt-get dist-upgrade | ||
| + | # apt-get install --no-install-recommends xfce4 tightvncserver xfce4-terminal xfonts-base xubuntu-icon-theme | ||
| + | |||
| + | </ | ||
| + | |||
| + | To run with default resolution: | ||
| + | |||
| + | '' | ||
| + | |||
| + | To run with a specific resolution: | ||
| + | |||
| + | '' | ||
| + | |||
| + | **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 " | ||
| + | |||
| ===== Ubuntu 10.04 ===== | ===== Ubuntu 10.04 ===== | ||
| As root, do: | As root, do: | ||
| + | |||
| < | < | ||
| # 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 |
| </ | </ | ||
| + | |||
| + | 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 '' | ||
| Edit '' | Edit '' | ||
| Line 14: | Line 42: | ||
| vncserver -kill $DISPLAY | vncserver -kill $DISPLAY | ||
| exit | exit | ||
| + | |||
| </ | </ | ||
| + | |||
| 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: | ||
| + | |||
| < | < | ||
| $ vncserver | $ vncserver | ||
| + | |||
| </ | </ | ||
| - | 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:// | + | 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:// |
| < | < | ||
| + | |||
| client$ ssh -X server | client$ ssh -X server | ||
| server$ xfce4-terminal & | server$ xfce4-terminal & | ||
| (it appears!) | (it appears!) | ||
| + | |||
| </ | </ | ||
| ===== Ubuntu 9.04 ===== | ===== Ubuntu 9.04 ===== | ||
| - | Install Ubuntu. | + | Install Ubuntu. I used 9.04. Then, as root, do: |
| < | < | ||
| # 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 | ||
| + | |||
| </ | </ | ||
| Line 43: | Line 79: | ||
| vncserver -kill $DISPLAY | vncserver -kill $DISPLAY | ||
| exit | exit | ||
| + | |||
| </ | </ | ||
| + | |||
| 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: | ||
| + | |||
| < | < | ||
| $ vncserver | $ vncserver | ||
| + | |||
| </ | </ | ||
| + | |||
headless_ubuntu_server_with_a_thin_vnc_gui.1272588426.txt.gz · Last modified: by tkbletsc
