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
home_server:home_server_setup:vnc_setup [2022-01-08 Sat wk01 19:24] – [VNC Server] baumkphome_server:home_server_setup:vnc_setup [2025-05-20 Tue wk21 12:48] (current) – [Newer references] baumkp
Line 1: Line 1:
-{{tag>linux server ubuntu vnc setup vncserver tigervnc gnome xfce}} +{{tag>linux server debian vnc setup vncserver tigervnc gnome xfce}} 
-=====VNC Server=====+======VNC Server=====
 +<fc #ff0000>This section is a bit of a mess and needs a clean up.....</fc>
  
-++++Old| For 18.04 I decided to go with TigerVNC according to Linuxize [[https://linuxize.com/post/how-to-install-and-configure-vnc-on-ubuntu-18-04/|How to Install and Configure VNC on Ubuntu 18.04]]. The main difference is that I can not be bothered using a secure link in my home private network. So to allow a direct connection add ''-localhost no'' to the TigerVNC command line to allow direct connection, see GitHub TigerVNC notes unable to connect to socket: [[https://github.com/TigerVNC/tigervnc/issues/117|Connection refused(10061) #117]]+I want a simple server GUI VNC system.  Sadly most the instructions on the net do not seem to meet my needs. 
 +  * Install a GUI 
 +    * A light desktop system, e.g. xfce 
 +    * The x11 windows manager system 
 +    * A display manager, optional 
 +    * ''sudo apt install --no-install-recommends xfce4 xserver-xorg'', xfce-goodies is an option package 
 +After setting up a basic Debian server I do the following. 
 + 
 +Some additional confusing notes: 
 +  * ''vncserver -list'' on server to check running server sessions 
 +  * ''vncserver -kill :1'' to kill the :1 server listed 
 +  * ''vncserver -localhost no -geometry 800x600 -depth 24'', use the ''-localhost no'' option to allow remote connection. 
 + 
 +I had a lot of problems getting tigervncserver to work with xfce.  The site [[https://unix.stackexchange.com/questions/762533/tigervnc-xfce-startup-failing-on-new-debian-12-bookworm-install-another-sessio|TigerVNC Xfce startup failing on new Debian 12 bookworm install. "Another session manager is already running"]] 
 +This recommended the following ''~.vnc/xstartup'' configuration that simply worked, it took a long time to find a solution: 
 +<code>#!/bin/bash 
 +[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup 
 +[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources 
 +vncconfig -iconic & 
 +dbus-launch --exit-with-session xfce4-session</code> 
 + 
 +The parameter ''vncconfig -iconic'' is for X clipboard support. 
 + 
 +My ''~./vnc/config'': 
 +<code share>session=xfce 
 +geometry=2000x1200 
 +localhost=false</code> 
 + 
 +The ''localhost=false'' parameter means that you do not need ssh to access.  As this is on my LAN only I do not see the need for SSH.  (If i need WAN access I can Wireguard VPN into my local LAN.) 
 + 
 +When I finally got tigervncserver with xfce on Debian 12 the XFCE session came up with an annoying authorisation request that I found a resolution at [[https://www.geekdecoder.com/how-to-fix-authentication-is-required-to-create-a-color-profile-managed-device-on-ubuntu-22-04/|How to fix “Authentication is required to create a color profile/managed device”]] 
 + 
 + 
 +  * sudo systemctl status tigervncserver@:1.service 
 +  * sudo systemctl start: tigervncserver@:1.service 
 + 
 +====Newer references==== 
 +  *How to Forge [[https://www.howtoforge.com/how-to-install-vnc-server-on-debian-12/|How to Install VNC Server on Debian 12]] 
 +  *[[https://shape.host/resources/how-to-set-up-and-install-vnc-server-on-debian-12|How to Set Up and Install VNC Server on Debian 12]] 
 +  *[[https://computingforgeeks.com/install-and-configure-tigervnc-vnc-server-on-debian/|Install and Configure TigerVNC VNC on Debian 12/11/10]] 
 +  *[[https://github.com/novnc/noVNC|Github noVNC]] 
 +  *[[https://novnc.com/info.html|noVNC]] 
 +  *[[https://guacamole.apache.org/|Apache Guacamole]] 
 +    *[[https://guacamole.apache.org/doc/gug/using-guacamole.html|Using Guacamole]] 
 +  *[[https://www.howtoforge.com/how-to-use-apache-guacamole-to-create-a-vnc-connection/|How to use Apache Guacamole to create a VNC Connection]] 
 +  *[[https://medium.com/@anshumaansingh10jan/unlocking-remote-access-a-comprehensive-guide-to-installing-and-configuring-apache-guacamole-on-30a4fd227fcd|Unlocking Remote Access: A Comprehensive Guide to Installing and Configuring Apache Guacamole on Ubuntu]] 
 +  *[[https://www.smarthomebeginner.com/install-guacamole-on-docker/|Install Guacamole on Docker – VNC, SSH, SFTP, and RDP like a Boss!]] 
 + 
 +++++Old, tl;dr;| 
 +====Old VNC Setup Notes==== 
 +For 18.04 I decided to go with TigerVNC according to Linuxize [[https://linuxize.com/post/how-to-install-and-configure-vnc-on-ubuntu-18-04/|How to Install and Configure VNC on Ubuntu 18.04]]. The main difference is that I can not be bothered using a secure link in my home private network. So to allow a direct connection add ''-localhost no'' to the TigerVNC command line to allow direct connection, see GitHub TigerVNC notes unable to connect to socket: [[https://github.com/TigerVNC/tigervnc/issues/117|Connection refused(10061) #117]]
  
 The basic set up is given in have the know how [[http://www.havetheknowhow.com/Configure-the-server/Install-VNC.html|Ubuntu Sever install VNC]], with more detailed startup details given in [[http://www.havetheknowhow.com/Configure-the-server/Run-VNC-on-boot.html|Ubuntu Server: How to run VNC on startup]]. The basic set up is given in have the know how [[http://www.havetheknowhow.com/Configure-the-server/Install-VNC.html|Ubuntu Sever install VNC]], with more detailed startup details given in [[http://www.havetheknowhow.com/Configure-the-server/Run-VNC-on-boot.html|Ubuntu Server: How to run VNC on startup]].
Line 43: Line 94:
  (I elected not to use the systemd setup described in the Digitalocean set instructions as I normally run 2 vncservers with different geometries to allow better performance on tablet/laptop/desktop computers.)  (I elected not to use the systemd setup described in the Digitalocean set instructions as I normally run 2 vncservers with different geometries to allow better performance on tablet/laptop/desktop computers.)
  
 +If connection is refused may need to use option ''-localhost no'', e.g. ''vncserver -localhost no''
  
-===Some preferred graphical programs:===+++++ 
 + 
 +====Some preferred graphical programs:====
   *Synaptic package manager - a graphical package manager; package: synaptic (To use: ''gksudo synaptic &'', will only work with root privileges.)   *Synaptic package manager - a graphical package manager; package: synaptic (To use: ''gksudo synaptic &'', will only work with root privileges.)
-  *Virtual machine manager - a graphical virtual machine manager; package: virt-manager +  *[[https://virt-manager.org/|Virtual machine manager]] - a graphical virtual machine manager; package: virt-manager 
-  *XnView - a photo display manipulation program +  *[[https://www.xnview.com/en/|XnView]] - a photo display manipulation program 
-  *Byobu - a fancy terminal; package byobu+  *[[https://www.byobu.org/|Byobu]] - a fancy terminal; package byobu
   *Gnome file manager; package: nautilus. (CLI: ''gksudo nautilus &'', but be very careful if using in root...)   *Gnome file manager; package: nautilus. (CLI: ''gksudo nautilus &'', but be very careful if using in root...)
   *Gnome disk utility; package: gnome-disk-utility. (CLI: ''gksudo gnome-disk &'', but be care if using in root...)   *Gnome disk utility; package: gnome-disk-utility. (CLI: ''gksudo gnome-disk &'', but be care if using in root...)
-  *Gnome disk usage utility; package: boabab. (CLI: boabab &++++ +  *Gnome disk usage utility; package: boabab. (CLI: boabab &) 
-  *+
 ++++Home Server Index|<pagelist&header> ++++Home Server Index|<pagelist&header>
 *[[home_server:home_server_setup:summary]] *[[home_server:home_server_setup:summary]]