Skip to content

Instantly share code, notes, and snippets.

View baseely's full-sized avatar
🐧
Break and Build

Shady Baseely baseely

🐧
Break and Build
View GitHub Profile
@baseely
baseely / centos8-vnc-server.sh
Last active January 31, 2023 06:29
Shell script to quickly install a VNC server on a CentOS 8 / RHEL 8 node.
dnf groupinstall -y "Server wuth GUI"
systemctl set-default graphical
set -p "Reboot and proceed"
echo "WaylandEnable=false" >> /etc/gdm/custom.conf
setenforce 0
sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
dnf install tigervnc-server tigervnc-server-module -y
su - vncuser
echo "Enter n for view-only password"
vncpasswd