English Turkish
$ su - USER_1
$ vncpasswd
$ su - USER_2
$ vncpasswd
$ vncviewer -via USER_2@
$ vncviewer -via user@host:display_number
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`:
A port can be removed using the [command]#firewall-cmd --zone=pass:attributes[{blank}]_zone_ --remove-port=pass:attributes[{blank}]_number/protocol_pass:attributes[{blank}]# command.
At this point, other users are able to use a VNC viewer program to connect to the VNC server using the display number and password defined. Provided a graphical desktop is installed, an instance of that desktop will be displayed. It will not be the same instance as that currently displayed on the target machine.
A window with a remote desktop appears on your screen.
[command]#$ firewall-cmd --list-all#
[command]#$ vncviewer
Configuring the Firewall for VNC
Configuring the first VNC connection
Configuring VNC Server
Configuring VNC Server for Two Users
Configuring VNC Server for Two Users and Two Different Displays
Connecting to VNC Server
Connecting to VNC Server Using SSH
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service
Create two service files, for example `vncserver-_USER_1_pass:attributes[{blank}]@.service` and `vncserver-_USER_2_pass:attributes[{blank}]@.service`. In both these files substitute _USER_ with the correct user name.
# dnf install tigervnc
# dnf install tigervnc-server