| |
@@ -37,7 +37,7 @@
|
| |
|
| |
[subs="attributes"]
|
| |
----
|
| |
- ~]#{nbsp}dnf install tigervnc-server
|
| |
+ # dnf install tigervnc-server
|
| |
----
|
| |
|
| |
[[s3-configuring-vnc-server]]
|
| |
@@ -50,17 +50,17 @@
|
| |
[subs="macros, attributes"]
|
| |
----
|
| |
|
| |
- ~]#{nbsp}pass:quotes[`cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service`]
|
| |
+ # 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`.
|
| |
+ 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`.
|
| |
+
|
| |
[subs="quotes, macros"]
|
| |
----
|
| |
@@ -77,18 +77,18 @@
|
| |
[subs="macros, attributes"]
|
| |
----
|
| |
|
| |
- ~]#{nbsp}pass:quotes[`systemctl daemon-reload`]
|
| |
+ # 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.
|
| |
+ that you need to switch from `root` to _USER_ first.
|
| |
+
|
| |
[subs="macros, attributes"]
|
| |
----
|
| |
|
| |
- ~]#{nbsp}su - pass:quotes[_USER_]
|
| |
- ~]${nbsp}pass:quotes[`vncpasswd`]
|
| |
+ # su - pass:quotes[_USER_]
|
| |
+ $ pass:quotes[`vncpasswd`]
|
| |
Password:
|
| |
Verify:
|
| |
|
| |
@@ -111,20 +111,20 @@
|
| |
create different template-type service files, one for each user.
|
| |
|
| |
. 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.
|
| |
+ and `vncserver-_USER_2_pass:attributes[{blank}]@.service`.
|
| |
+ In both these files substitute _USER_ with the correct user name.
|
| |
|
| |
. Set passwords for both users:
|
| |
+
|
| |
[subs="macros, attributes"]
|
| |
----
|
| |
|
| |
- ~]${nbsp}su - USER_1
|
| |
- ~]${nbsp}pass:quotes[`vncpasswd`]
|
| |
+ $ su - USER_1
|
| |
+ $ vncpasswd
|
| |
Password:
|
| |
Verify:
|
| |
- ~]${nbsp}su - USER_2
|
| |
- ~]${nbsp}pass:quotes[`vncpasswd`]
|
| |
+ $ su - USER_2
|
| |
+ $ vncpasswd
|
| |
Password:
|
| |
Verify:
|
| |
|
| |
@@ -141,7 +141,7 @@
|
| |
[subs="attributes"]
|
| |
----
|
| |
|
| |
- ~]#{nbsp}systemctl start vncserver@:display_number.service
|
| |
+ # systemctl start vncserver@:display_number.service
|
| |
|
| |
----
|
| |
|
| |
@@ -150,7 +150,7 @@
|
| |
[subs="attributes"]
|
| |
----
|
| |
|
| |
- ~]#{nbsp}systemctl enable vncserver@:display_number.service
|
| |
+ # systemctl enable vncserver@:display_number.service
|
| |
|
| |
----
|
| |
|
| |
@@ -166,8 +166,8 @@
|
| |
[subs="attributes"]
|
| |
----
|
| |
|
| |
- ~]#{nbsp}systemctl start vncserver-USER_1@:3.service
|
| |
- ~]#{nbsp}systemctl start vncserver-USER_2@:5.service
|
| |
+ # systemctl start vncserver-USER_1@:3.service
|
| |
+ # systemctl start vncserver-USER_2@:5.service
|
| |
|
| |
----
|
| |
|
| |
@@ -180,7 +180,7 @@
|
| |
[subs="attributes"]
|
| |
----
|
| |
|
| |
- ~]#{nbsp}systemctl disable vncserver@:display_number.service
|
| |
+ # systemctl disable vncserver@:display_number.service
|
| |
|
| |
----
|
| |
|
| |
@@ -190,7 +190,7 @@
|
| |
[subs="attributes"]
|
| |
----
|
| |
|
| |
- ~]#{nbsp}systemctl stop vncserver@:display_number.service
|
| |
+ # systemctl stop vncserver@:display_number.service
|
| |
|
| |
----
|
| |
|
| |
@@ -212,7 +212,7 @@
|
| |
|
| |
[subs="attributes"]
|
| |
----
|
| |
- ~]#{nbsp}dnf install tigervnc
|
| |
+ # dnf install tigervnc
|
| |
----
|
| |
|
| |
[[s6-connecting-vnc-viewer]]
|
| |
@@ -238,7 +238,7 @@
|
| |
[subs="quotes, macros, attributes"]
|
| |
----
|
| |
|
| |
- [command]#~]${nbsp}vncviewer 192.168.0.4:3#
|
| |
+ [command]#$ vncviewer 192.168.0.4:3#
|
| |
|
| |
----
|
| |
|
| |
@@ -264,12 +264,12 @@
|
| |
[[proc-Enabling_VNC_Service_in_firewalld]]
|
| |
.Enabling VNC Service in firewalld
|
| |
. Run the following command to see the information concerning `firewalld`
|
| |
- settings:
|
| |
+ settings:
|
| |
+
|
| |
[subs="quotes, macros, attributes"]
|
| |
----
|
| |
|
| |
- [command]#~]${nbsp}firewall-cmd --list-all#
|
| |
+ [command]#$ firewall-cmd --list-all#
|
| |
|
| |
----
|
| |
|
| |
@@ -277,7 +277,7 @@
|
| |
+
|
| |
[subs="attributes"]
|
| |
----
|
| |
- ~]#{nbsp}firewall-cmd --add-rich-rule='rule family="ipv4" source address="192.168.122.116" service name=vnc-server accept'
|
| |
+ # firewall-cmd --add-rich-rule='rule family="ipv4" source address="192.168.122.116" service name=vnc-server accept'
|
| |
success
|
| |
----
|
| |
+
|
| |
@@ -287,7 +287,7 @@
|
| |
+
|
| |
[subs="attributes"]
|
| |
----
|
| |
- ~]#{nbsp}firewall-cmd --list-all
|
| |
+ # firewall-cmd --list-all
|
| |
public (default, active)
|
| |
interfaces: bond0 bond0.192
|
| |
sources:
|
| |
@@ -308,7 +308,7 @@
|
| |
+
|
| |
[subs="attributes"]
|
| |
----
|
| |
- ~]#{nbsp}firewall-cmd --zone=public --add-port=5904/tcp
|
| |
+ # firewall-cmd --zone=public --add-port=5904/tcp
|
| |
success
|
| |
----
|
| |
|
| |
@@ -316,7 +316,7 @@
|
| |
+
|
| |
[subs="attributes"]
|
| |
----
|
| |
- ~]#{nbsp}firewall-cmd --zone=public --list-ports
|
| |
+ # firewall-cmd --zone=public --list-ports
|
| |
5904/tcp
|
| |
----
|
| |
|
| |
@@ -334,7 +334,7 @@
|
| |
[subs="attributes"]
|
| |
----
|
| |
|
| |
- ~]${nbsp}vncviewer -via user@host:display_number
|
| |
+ $ vncviewer -via user@host:display_number
|
| |
|
| |
----
|
| |
|
| |
@@ -347,7 +347,7 @@
|
| |
[subs="attributes"]
|
| |
----
|
| |
|
| |
- ~]${nbsp}vncviewer -via USER_2@192.168.2.101:3
|
| |
+ $ vncviewer -via USER_2@192.168.2.101:3
|
| |
|
| |
----
|
| |
|
| |