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

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