English Turkish
$ su - USER_1
$ vncpasswd
Password:
Verify:
$ su - USER_2
$ vncpasswd
Password:
Verify:
$ vncviewer -via USER_2@192.168.2.101:3
$ 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 192.168.0.4:3#
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