Showing posts with label vnc. Show all posts
Showing posts with label vnc. Show all posts

Sunday, May 24, 2026

tigervnc: vncserver@:1.service: Deactivated successfully just after start on gentoo

Tigervnc server starts and then stops immedietly. The solution was to go to /etc/X11/Sessions, and rename Xsession file:

cd /etc/X11/Sessions
mv ./Xsession Xsession_bkp

And restart the vncserver.

Thursday, April 09, 2026

tigervnc with fluxbox example setup

/etc/tigervnc/vncserver-config-mandatory session=startfluxbox
securitytypes=none
geometry=2000x1200
localhost
alwaysshared

Thursday, January 29, 2026

tigvervnc: example vncserver config setup

vncserver-config-mandatory:

session=startfluxbox
securitytypes=none
geometry=1800x1100
localhost
alwaysshared

Friday, January 09, 2026

ssh: LocalForward in ssh config file

Example to forward vnc 5901 port from server to client's 5903 port:
Host myserver
    HostName serverip
    User ubuntu
    IdentityFile ~/.ssh/private.pem
    LocalForward 5903 localhost:5901

tigervnc: on ubuntu example settings

/etc/tigervnc/vncserver-config-mandatory :
$session = "startfluxbox";
$SecurityTypes = "none";
$geometry = "2000x1200";
$localhost = "yes";
$AlwaysShared = "yes";


sudo systemctl enable --now tigervncserver@:1

Monday, December 15, 2025

tigervnc: Service deactivets immedietly after start

cd /etc/X11/Sessions
mv Xsession Xsession.backup
ln -s fluxbox Xsession

from: https://forums.gentoo.org/viewtopic-t-1150142.html

tigervnc: logs location

are in `~/.local/state/tigervnc`

Saturday, November 29, 2025

VNC: Applications in a vnc client (tigervnc) running fluxbox open in a Wayland host instead of the vnc client

In the vnc:

set -e XDG_RUNTIME_DIR
set -e DBUS_SESSION_BUS_ADDRESS


To do it automatically at the start add the following
to `.fluxbox/startup` before `exec fluxbox`:
unset XDG_RUNTIME_DIR
unset DBUS_SESSION_BUS_ADDRESS

exec fluxbox

Niri: share clipboard between Niri and Vnc

https://github.com/dnut/clipboard-sync
https://aur.archlinux.org/packages/clipboard-sync

Sunday, June 19, 2022

VNC: Arch linux autostart vnc

Add /home//.config/systemd/user/myvnc@:1.service [Unit]
Description=My VNC

[Service]
Type=simple
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver %i
ExecStop=/usr/bin/vncserver -kill %i

[Install]
WantedBy=default.target
Then systemctl --user start myvnc@\:1.service and systemctl --user enable myvnc@\:1.service and

tigervnc: Diable vnc password on Arch Linux

Edit /etc/tigervnc/vncserver-config-defaults and add: securitytypes=none

Saturday, October 05, 2019

vnc using systemd in user mode

File: /home/mwo2/.config/systemd/user/myvnc@:1.service [Unit]
Description=My VNC

[Service]
Type=simple
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver -geometry 1920x1080 :%i -xstartup /home/mwo2/.vnc/xstartup -SecurityTypes None -fg
ExecStop=/usr/bin/vncserver -kill :i

[Install]
WantedBy=default.target


-fg and Type=simple are important!

systemctl --user enable myvnc@\:1.service

Thursday, November 22, 2018

PulseAudio: Stream sound from home to work computer over ssh and vnc

1. At work use papref to "Enable network access to local sound devices"and restart computer.

2. Copy pulse cookie from work to home: ~/.config/pulse/cookie so that work and home computer share same secret (cookie).

3. At work start: sudo start-pulseaudio-x11

4. At work open reverse tunnel for pulseadio: ssh -X -R 9998:localhost:4713 home

5. At work use vnc to connect to home.

6. Once connected using vnc to home, start firefox (for example) at home computer using: PULSE_SERVER=localhost:9998 firefox

The instructions are based on this: http://psung.blogspot.com/2011/09/network-audio-with-pulseaudio-made.html

Tuesday, May 29, 2018

vncviewer: Increase compression levels and reduce bandwitch

vncviewer -QualityLevel=7 -FullColor=0 -LowColorLevel=2 -CompressLevel=3 :3

Saturday, September 05, 2015

Ubuntu: vncviewer command line tool install

the vncviewer command program is in this package:sudo apt-get install xtightvncviewer to use it vncviewer with ssh tunnel: vncviewer -via remoteusername@vncserverip localhost:1

Friday, August 28, 2015

Ubuntu: vncviewer through ssh

vncviewer -via remoteusername@vncserverip localhost:1

Saturday, May 29, 2010

Example of SSH tunneling

Example:
ssh -N -L 5904:127.0.0.1:5901 username@remoteserverThe above command forwards everything on localhost port 5904 to the port 5901 on remoteserver. This is what I use to connect to a VNC service on port 5901 on a remoteserver at my job from my home computer. Thus, at home, after establishing the above tunnel I can use a vncviewer as follows:vncviewer :4