Professional Documents
Culture Documents
Instalar y Configurar VNC
Instalar y Configurar VNC
com/solutions/966063
1 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
Note:
# useradd <username>
# passwd <username>
# useradd testuser1
# passwd testuser1
2 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
$ vncpasswd
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
/etc/systemd/system/vncserver@:1.service
vncserver@:<num>.service
PIDFile /root/.vnc/%H%i.pid
<USER>
“vncserver@:#.service”
ExecStart=
~/.vnc/
3 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
# firewall‐cmd ‐‐reload
# systemctl daemon‐reload
/home/username/.vnc/ .vnc/xstartup
4 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
# cat ~/.vnc/xstartup
#!/bin/sh
[ ‐x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ ‐r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig ‐iconic &
dbus‐launch ‐‐exit‐with‐session gnome‐session &
# cat ~/.vnc/xstartup
#!/bin/sh
[ ‐x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ ‐r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#vncconfig ‐iconic &
#dbus‐launch ‐‐exit‐with‐session gnome‐session &
startkde &
vncviewer
# vncviewer vncserver‐ipaddress:N
5 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
# vncviewer vncserver‐ipaddress::59XX
# vncviewer vncserver‐ipaddress::5901
6 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
7 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
8 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
9 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
cat ~/.vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec /etc/X11/xinit/xinitrc
10 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
11 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
12 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
13 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
# Enable Service
systemctl enable xvnc.socket
systemctl enable xvnc@0.service
#then just poke a hole in the firewall for 5900 tcp (not sure if I also need the localhost one for 177 udp for
xdmcp but I added it anyways)
firewall‐cmd ‐‐permanent ‐‐zone=public ‐‐add‐port 5900/tcp
firewall‐cmd ‐‐permanent ‐‐zone=internal ‐‐add‐port 177/udp
14 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
15 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
16 de 17 23/10/2020 12:57
How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux7 and above ? - R... https://access.redhat.com/solutions/966063
17 de 17 23/10/2020 12:57