bartman's blog

multi user vncserver

bartman
Table of Contents

Let’s setup an Ubuntu 24.04 Server and give multiple users to it using VNC.

So, I have an Ubuntu 24.04 server in the lab, and I need to get multiple users to VNC in. Not my favourite way to use a UNIX system, but all the hardware tools are graphical, and this is the way design is done.

To keep things light, we will use lightdm greeter and xfce4 desktop.

I’m assuming that you know how to setup Linux user accounts, SSH server, SSH keys, and all that stuff.

Initial System Preparation #

Disable Suspend and Power Management #

Handle Notifications and Snap #

TigerVNC Installation and Configuration #

Firewall Configuration #

Connection #

Working around snaps #

Both Firefox and Chromium in Ubuntu are usually installed with snaps. But snaps were not working, and I had disabled them above because of spamming the logs.

Snaps didn’t work for me in VNC. Here is how I installed firefox.

1sudo snap remove firefox
2sudo add-apt-repository ppa:mozillateam/ppa -y
3echo -e 'Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001' | sudo tee /etc/apt/preferences.d/mozilla-firefox
4echo -e 'Package: firefox*\nPin: version 1:1snap*\nPin-Priority: -1' | sudo tee /etc/apt/preferences.d/mozilla-firefox-snap
5sudo apt update
6sudo apt install firefox -y

This might work for chromium. Didn’t try.

1sudo snap remove chromium
2sudo apt install apt-transport-https software-properties-common wget -y
3echo 'deb http://deb.debian.org/debian bookworm main' | sudo tee /etc/apt/sources.list.d/debian-stable.list
4echo -e 'Package: *\nPin: release a=stable\nPin-Priority: 500' | sudo tee /etc/apt/preferences.d/chromium
5echo -e 'Package: chromium*\nPin: origin deb.debian.org\nPin-Priority: 700' | sudo tee -a /etc/apt/preferences.d/chromium
6sudo apt update
7sudo apt install chromium -y
Tags:
Categories: