Monday, August 19, 2024

Install TigerVNC server on Linux Mint 22 Wilma

Install TigerVNC server on Linux Mint 22 Wilma

Install TigerVNC package
$: sudo apt install tigervnc-standalone-server
Configure/create ~/.vnc/xstartup file
$: mkdir -p ~/.vnc
touch ~/.vnc/xstartup
chmod +x ~/.vnc/xstartup
Check what is the exec command to start the Cinamon session
$: ls /usr/share/xsessions/
It should show somethig like:
u1@m0:~/.vnc$ ls /usr/share/xsessions/
cinnamon2d.desktop  cinnamon.desktop
Let's use cinnamon.desktop and check the contents
$:  /usr/share/xsessions/cinnamon.desktop
It should show somethig like:
[Desktop Entry]
Name=Cinnamon
Comment=This session logs you into Cinnamon
Exec=cinnamon-session-cinnamon
TryExec=/usr/bin/cinnamon
Icon=
Type=Application
The Exec command is cinnamon-session-cinnamon. Edit ~/.vnc/xstartup, and add contents below. Note we are using cinnamon-session--cinnamon:
#!/bin/bash
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec cinnamon-session-cinnamon
Now run vncserver. On the first time you run it, it will ask to define the server password.
$: vncserver -localhost no :1 -geometry 1024x768
This runs the server and listens on all interfaces on port :1 (or 5901) with a screen dimension of 1024x768.

No comments:

Installing QNX 6.4.1 on Ubuntu 20.04

Installing QNX 6.4.1 on Ubuntu 20.04 Install pre-requisites $: sudo dpkg --add-architecture i386 $: sudo apt update $: sudo apt install li...