VNC server can be started/stopped with the following commands After starting it you can connect to your server with any VNC client to server-ip:used-port (note that you may probably need to open the used port on the firewall) # Start the serverīasic VNC setup does not use encryption for the exchanged stream, here are 4 commons way of securing a VNC connection: # See the GnuTLS manual for possible values. # GnuTLS priority string that controls the TLS session’s handshake algorithms. # The maximum number of updates per second sent to each client (default=60) # The number of seconds after which an idle VNC connection will be dropped # Terminate when no client has been connected for s seconds (default=0) # Terminate when a client has been connected for s seconds (default0) # Terminate after s seconds of user inactivity (default=0) # Set maximum number of clients (power of two) # Path to the X509 certificate in PEM format (default=) # Path to the key of the X509 certificate in PEM format (default=) # TLSNone, TLSVnc, TLSPlain, X509None, X509Vnc, X509Plain) (default=TLSVnc,VncAuth) # Security, specify which security scheme to use (None, VncAuth, Plain, # If combined with NeverShared then new connections will be refused while # Disconnect existing clients if an incoming connection is non-shared. # Unix socket to listen for RFB protocol (default=) # Use protocol version 3.3 for backwards compatibility # Interface, listen on the specified network address (default=all) # Directory containing files to serve via HTTP (default=) # TCP port to listen for HTTP (default=0) See the following manpages for more: vncserver(1) Xvnc(1). to get the full list of available options we can use Xvnc -help or man Xvnc, here is a config example (also note that on some system like Suse VNC will/may not work if the option geometry is not set): # Supported server options to pass to vncserver upon invocation can be listed Prepare and/or locate the VNC server's config file at: ~/.vnc/config or /etc/vnc/configĪdapt VNC server's settings with the config file. Setup the password (the hashed version will be saved at ~/.vnc/passwd): vncpasswdĮdit the config file (startup script, executed when the server start) ~/.vnc/xstartup as follow: #!/bin/sh Install the TigerVNC X server: # The package name may change depending on the used distroĪpt install tigervnc-standalone-server tigervnc-common Xfce4-whiskermenu-plugin-gtk3 tumbler engrampa Network-manager-applet xfce4-notifyd-gtk3 \ Pacman -S xfce4-gtk3 xfce4-goodies xfce4-terminal \ XFCE or KDE): # OpenSUSE (XFCE)ĭnf -y group install "KDE Plasma Workspaces"ĭnf -enablerepo=epel group -y install "Xfce" "base-x"ĭnf -enablerepo=epel group -y install "KDE Plasma Workspaces"ĭnf -y group install "KDE Plasma Workspaces" "base-x"
0 Comments
Leave a Reply. |