Skip to content

Instantly share code, notes, and snippets.

@Disassembler0
Created November 15, 2020 11:16
Show Gist options
  • Save Disassembler0/2fc2f3ec31a07d2daaf342a9fbf7e123 to your computer and use it in GitHub Desktop.
Save Disassembler0/2fc2f3ec31a07d2daaf342a9fbf7e123 to your computer and use it in GitHub Desktop.
dnf install tigervnc-server
sed -e 's/<USER>/username/g' /lib/systemd/system/[email protected] >/etc/systemd/system/vncserver@:0.service
systemctl daemon-reload
systemctl enable vncserver@:0.service
systemctl start vncserver@:0.service
firewall-cmd --permanent --zone=public --add-port=5900/tcp
firewall-cmd --reload
# Run as user
vncserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment