Difference between revisions of "User:Evilgold/remote"
Jump to navigation
Jump to search
(New page: ==Install a vncserver== pacman -S tightvnc ==Setup VNC Server== firstrun to set password vncserver :1 then stop the server vncserver -kill :1 edit xstartup file, this file works jus...) |
|||
Line 1: | Line 1: | ||
==Install a vncserver== | ==Install a vncserver== | ||
+ | for arch: | ||
pacman -S tightvnc | pacman -S tightvnc | ||
+ | |||
+ | for debian/ubuntu/mint: | ||
+ | apt-get install tightvncserver | ||
==Setup VNC Server== | ==Setup VNC Server== |
Latest revision as of 13:20, 25 October 2010
Install a vncserver
for arch:
pacman -S tightvnc
for debian/ubuntu/mint:
apt-get install tightvncserver
Setup VNC Server
firstrun to set password
vncserver :1
then stop the server
vncserver -kill :1
edit xstartup file, this file works just like .xinitrc
nano ~/.vnc/xstartup
example xstartup file
#!/bin/sh export XKL_XMODMAP_DISABLE=1 xrdb $HOME/.Xresources xsetroot -solid grey exec ck-launch-session startlxde
SSH and VNC
connect over ssh and run the vnc server. This example uses compression (-C) and forwards (-L) port 8900 on the local machine to to port 5801(the vnc port) on the remote host. Geometry can be changed as needed (320x480 for my android phone).
ssh -C user@ipaddress -L 8900/localhost/5901 vncserver -geometry 1024x768 -alwaysshared -dpi 96 :1
connect to the vnc server on the local machine using port 8900
vncviewer localhost:8900
see 'man vncviewer' for more information and to get the most out of your connection. If the connection seems too slow, try using a higher jpeg compression level or less color.