VNC
GUI autologin and VNC server autostart
sudo firewall-cmd --add-service=vnc-server --permanent
sudo firewall-cmd --reload
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
- /etc/gdm/custom.conf
# GDM configuration storage
[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false
AutomaticLoginEnable=True
AutomaticLogin=your-vpn-user
[security]
[xdmcp]
[chooser]
[debug]
# Uncomment the line below to turn on debugging
#Enable=true
dnf install x11vnc
su - your-vpn-user
mkdir .vnc
chmod 0700 .vnc
x11vnc -storepasswd MYPASSWORD .vnc/passwd
- /home/your-vpn-user/.config/autostart/forticlient.desktop
[Desktop Entry]
Type=Application
Name=FortiClient
Exec=/usr/bin/forticlient gui
X-GNOME-Autostart-enabled=true
- ~/.config/autostart/x11vnc.desktop
[Desktop Entry]
Type=Application
Name=x11vnc
Exec=x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/your-vpn-user/.vnc/passwd -rfbport 5900 -shared
NoDisplay=false
dnf config-manager --add-repo https://repo.fortinet.com/repo/forticlient/7.4/centos/8/os/x86_64/fortinet.repo
dnf install -y forticlient