-
Senior Member
registered user
--VNC gets more responsive when you:
o Load a more lightweight Windowmanager (such as Icewm)
o Use SSH with portforwarding and compression.
Example: Put this in ~/.vnc/Xsession:
Code:
# initialize variables for use by all session scripts
OPTIONFILE=/etc/X11/Xsession.options
SYSMODMAP=/etc/X11/Xmodmap
USRMODMAP=$HOME/.Xmodmap
SYSRESOURCES=/etc/X11/Xresources
USRRESOURCES=$HOME/.Xresources
SYSSESSIONDIR=/etc/X11/Xsession.d
STARTUP=$HOME/.xsession
ALTSTARTUP=$HOME/.Xsession
ERRFILE=$HOME/.xsession-errors
#xinit /usr/bin/sawfish
xrdb
rxvt &
# -display :3 &
/usr/bin/sawfish &
--Here is an example script that I use to start VNC on the server side:
BEGIN remotex
Code:
#!/bin/sh
#vncserver -cc 3 &
# cc 3 == pseudocolor visual
vncserver :2 -geometry 900x700
# -cc 3 -geometry 1024x768 -fp /usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/ -fn -misc-fixed-bold-r-normal--13-100-100-100-c-70-iso8859-1
# Use font -misc-fixed-bold-r-normal--13-100-100-100-c-70-iso8859-1
# Connect using vncviewer p233:5902 || http://p233:5802
#vncserver -kill :2
# if ssh -2 -C -L 5992:p233:5902 p233
# THEN vncviewer localhost:5992
--Here is how to port-forward with compression (Note the VNC server hostname on my network is p233.)
BEGIN ssh-vncserver
Code:
#!/bin/bash
ssh -2 -C -X -c blowfish \
-l dave \
-L 5992:p233:5902 \
10.0.0.2 $*
--The above code forwards port 5902 on the vnc server to port 5992 on the client box, with compression. Connect the VNC viewer to localhost:5992 after starting the remote X session, and it will use the compressed port connection.
--You can also play with the VNC viewer's Options and experiment with different ways to re-draw the screen. 
--Note that you will have to assign a password to the VNC session the first time you run it... Best of luck.

Originally Posted by
garyng
thanks. VNC is actually a more suitable solution for me but just that the multiple xserver(which is what xvncserver does) on the server scares me a bit in terms of resource. Didn't test it though.
However, it seems that VNC is slower than X, at least in my limited test situation on a local 100Mbps network, especially when I hold the scrollbar and drag. This is understandable as VNC need to sort of redraw the screen in a pixel by pixel for each small movement. The difference is though quite noticeable.
Similar Threads
-
By jjmac in forum Hardware & Booting
Replies: 0
Last Post: 05-16-2005, 11:34 AM
-
By francisgirard in forum General Support
Replies: 13
Last Post: 02-01-2005, 07:53 PM
-
By el_supremo in forum Hardware & Booting
Replies: 2
Last Post: 07-26-2004, 05:28 PM
-
By IsaacKuo in forum Networking
Replies: 0
Last Post: 05-18-2004, 04:05 PM
-
By bkw1a in forum Customising & Remastering
Replies: 2
Last Post: 03-19-2003, 03:29 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

2-Bay/4-Bay Hard Drive Enclosure for 3.5"/2.5'' SATA HDD/SSD 10Gbps USB-C 3.2
$75.99

OWC Mercury Elite Pro 2 Bay RAID Enclosure with USB 3.2 for Dual 3.5 inch HDDs
$87.99

Broadcom 9600-24i RAID Controller PCIe Gen 4.1 Tri-Mode NEW 05-50111-01004
$649.99

Areca ARC-1882IX-24 (16i4e)24-Port RAID Controller Card w/BBU /HDD Monitor Board
$300.00

WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5/3.5'' SSD HDD Enclosure
$119.99

Acasis USB 3.2 2 Bay HDD RAID Enclosure for 2.5/3.5" SATA Drives External Array
$55.00

G-Technology G-RAID 24TB Dual-Drive External HDD TB3 USB 3.1 7200RPM Silver
$299.99

Dell PowerEdge HBA330 LP PCI-E 12GBs RAID SAS Controller Adapter J7TNV
$18.95

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD
$265.00

CalDigit VR minin 2 Portable Raid Storage On The Go
$75.00