TigetVNC Setup
TigetVNC Setup
- I set up the FreeUPA Client to have a graphical environment (GNOME in this case):
sudo dnf group install -y "Server with GUI" - I set the default target into
graphicalmode:systemctl set-default graphical - I installed the
tigervncpackage:sudo dnf install -y tigervnc-server - For the
service, I set the display number as3:sudo cp /usr/lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:3.service - Under
vncserver.usersI added my two FreeIPA Server users and assigned each of them to display3:cat << "EOF" | sudo tee -a /etc/tigervnc/vncserver.users :3=root EOF - I set the
vncpasswd:vncpasswd - Selected
nat the prompt forview-onlypassword. - Taking user
test-no-1as an example, I ran the following configuration: - I set the
gnome-sessionto be the current session:echo gnome-session > /root/.session - I generated the
vncdirectory:mkdir /root/.vnc - I created the
vncconfiguration file:cat << "EOF" | tee -a /root/.vnc/config session=gnome securitytypes=vncauth,tlsvnc geometry=1920x1080 EOF - Then as
rootI started thevncserver:sudo systemctl enable --now vncserver@:3.service - I added the appropriate firewall rules:
sudo firewall-cmd --permanent --add-service=vnc-server sudo firewall-cmd --permanent --add-port=5902/tcp sudo firewall-cmd --reload