English Italian
`TigerVNC` (Tiger Virtual Network Computing) is a system for graphical desktop sharing which allows you to remotely control other computers.
`TigerVNC` works on the client-server network: a *server* shares its output (`vncserver`) and a *client* (`vncviewer`) connects to the server.
Unlike in Fedora 15 and Red{nbsp}Hat Enterprise{nbsp}Linux{nbsp}6, `TigerVNC` in {MAJOROS} uses the `systemd` system management daemon for its configuration. The `/etc/sysconfig/vncserver` configuration file has been replaced by `/etc/systemd/system/vncserver@.service`.
VNC Server
`vncserver` is a utility which starts a VNC (Virtual Network Computing) desktop. It runs [application]*Xvnc* with appropriate options and starts a window manager on the VNC desktop. `vncserver` allows users to run separate sessions in parallel on a machine which can then be accessed by any number of clients from anywhere.
Installing VNC Server
To install the [application]*TigerVNC* server, issue the following command as `root`:
# dnf install tigervnc-server
Configuring VNC Server
Configuring the first VNC connection
A configuration file named `/etc/systemd/system/vncserver@.service` is required. To create this file, copy the `/lib/systemd/system/vncserver@.service` file as `root`:
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service
There is no need to include the display number in the file name because `systemd` automatically creates the appropriately named instance in memory on demand, replacing `'%i'` in the service file by the display number. For a single user it is not necessary to rename the file. For multiple users, a uniquely named service file for each user is required, for example, by adding the user name to the file name in some way. See xref:TigerVNC.adoc#configuring-vncserver-2users[Configuring VNC Server for Two Users] for details.
Edit `/etc/systemd/system/vncserver@.service`, replacing _USER_ with the actual user name. Leave the remaining lines of the file unmodified. The [option]`-geometry` argument specifies the size of the VNC desktop to be created; by default, it is set to `1024x768`.
ExecStart=/sbin/runuser -l _USER_ -c "/usr/bin/vncserver %i -geometry 1280x1024"
Save the changes.
To make the changes take effect immediately, issue the following command:
# pass:quotes[`systemctl daemon-reload`]
Set the password for the user or users defined in the configuration file. Note that you need to switch from `root` to _USER_ first.