This is a way to have a VCN server with multiple logins without having to configure a session for each user
What you need:
- TigerVNC
- Xinetd
- xorg-x11-fonts-type1 (optional)
- XDMCP/GDM
Edit /etc/gdm/custom.conf and add or change the following
[security]
AllowRemoteRoot=true
DisallowTCP=false
[xdmcp]
Enable=true
MaxSessions=30
Add a file named vncserver or something else to /etc/xinetd.d/ with the following code:
service vncserver This is the name of the service and can be whatever we want
{
disable = no
socket_type = stream
protocol = tcp
group = any group that exist
wait = no
user = nobody
server = /user/bin/Xvnc
server_args = -inetd -once -query localhost -geometry 1920x1080 -depth 24 -securitytypes none -desktop VNC-Remote-Access
log_on_failure += USERID
}
geometry is the screen resolution
Depth is color depth and can be 8, 16, 24.
Restart Xinetd
Create VNC service by adding the following to the end of the file /etc/services
vncserver 5900/tcp # VNC and GDM
Restart Xinetd
Create VNC service by adding the following to the end of the file /etc/services
vncserver 5900/tcp # VNC and GDM
Add firewall rules to allow the VNC connection
[root@server ~]# firewall-cmd --permanent --zone=public --add-port=5900/tcp
[root@server ~]# firewall-cmd --reload
And reboot.
No comments:
Post a Comment