All notes
Vnc

Usual commands

vncserver

References

Virtual (headless) server, which is similar to the standard X server, but has a virtual screen rather than a physical one. The virtual server runs completely parallel to the physical X server should one be running.

# Start one virtual server, starting from :1
vncserver

vncserver -list

vncserver -kill :1

vncserver [:display#] [-name desktop-name] [-geometry widthxheight] [-depth depth] [-pixelformat format] [-fp font-path] [-fg] [-autokill] [Xvnc-options...]

xstartup


#!/bin/bash
export XKL_XMODMAP_DISABLE=1
exec gnome-session

config


# See the following manpages for more: vncserver(1) Xvnc(1).

securitytypes=tlsvnc
desktop=sandbox
geometry=1200x700
dpi=96
# localhost # This is xvnc option.
alwaysshared
ZlibLevel=7

x0vncserver

x0vncserver is a TigerVNC Server. Unlike Xvnc, it does not create a virtual display but just shares an existing X server (typically, that one connected to the physical screen).


x0vncserver -display :0 -passwordfile ~/.vnc/passwd

vino

ArchBBS. Vino is a VNC (Virtual Network Computing) server allowing remote connection to your actual desktop. It is a default component of the GNOME Desktop environment.

If you are having problems regarding security and encryption you could try disabling it first on the server:


gsettings set org.gnome.Vino require-encryption false

NOTE: do this over SSH or from a text-mode terminal where the DISPLAY environment variable isn't set, you will get "dconf-WARNING **: failed to commit changes to dconf".

TigerVNC in different distros

CentOS

Installation

Ref.


yum groupinstall Desktop
yum install gnome-core xfce4 firefox
yum install tigervnc-server

# Now make the service on after every reboot
chkconfig vncserver on

# Set your password.
su myName
vncpasswd

# Set your config file as below.

service vncserver restart

Config file

/etc/sysconfig/vncservers.

VNCSERVERS="1:yourName 2:herName 3:myName"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1024x768"
VNCSERVERARGS[3]="-geometry 1024x768"

It means, port comes to be 5901 and 1024x768 resolution for the user "yourName". And so on for the other users.

/home/srijan/.vnc/xstartup


[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
export LANG
export SYSFONT
vncconfig -iconic &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [  = 'Linux' ]; then
  case "" in
    *gnome*)
      if [ -e /etc/SuSE-release ]; then
        PATH=:/opt/gnome/bin
        export PATH
      fi
      ;;
  esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
  exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
  exec sh /etc/X11/xinit/xinitrc
fi
[ -r /.Xresources ] && xrdb /.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title " Desktop" &
#twm &
exec gnome-session &    

Authentication is required to set the network proxy used for downloading packages

Ref. Run gnome-session-properties and un-checked PackageKit Update Applet. This works only for that one user account.

Arch


sudo pacman -S tigervnc
# Secure ~/.vnc just like ~/.ssh.
chmod 700 ~/.vnc

# Run this to start a server at port 5901.
vncserver
# You will require a password to access your desktops.
# Password:
# Verify:
# New 'mars:1 (facade)' desktop is mars:1
# Creating default startup script /home/facade/.vnc/xstartup
# Starting applications specified in /home/facade/.vnc/xstartup
# Log file is /home/facade/.vnc/mars:1.log

vncserver -geometry 1440x900 -alwaysshared -dpi 96 :1

# Shut it down
vncserver -kill :1

FAQ

Exit FullScreen Mode

realVNC support: how can I enter and exit fullscreen.

Press F8. TigerVNC and RealVNC have the same shortuts on this.

Ctl+Alt+F. ThightVNC users try this.