HOWTO: VNC with Compiz
Browsing the forum I've found this page:
http://bugs.beryl-project.org/ticket/385
That suggests to use x11vnc in order to have vnc working with compiz/beryl enabled..
So I've made a little script to make things a bit easier:
Code:
#!/bin/sh
IP=`zenity --entry --title 'Insert IP' --text 'Connect to server:' --entry-text '192.168.1.'`
login_user=''
#login_user=`zenity --entry --title 'Insert user name' --text 'ssh User Name:' --entry-text $USER`
x11vnc_cmd='x11vnc -once -noxdamage -bg'
if [ -n "$login_user" ]; then
ssh -l $login_user $IP $x11vnc_cmd
else
ssh $IP $x11vnc_cmd
fi
vncviewer $IP
You can change the zenity's "entry-text" parameter to fit better your network settings..
What this script does is:
- popup a input message window that asks the IP the user wants to connect to (with some pre-input text for fastest input)
- launch x11vnc to the remote machine via ssh (if you are not an authorized host you have to run/open the script in terminal and insert the ssh password)
- connect using vncviewer
after you close vncviewer x11vnc will also be closed as the "once" parameter (that anyway should be active by default) is used.
If you need to connect via ssh using a different user just uncomment the line "#login_user=..."
so.. it's a bit tricky but for me it works (on feisty with compiz 0.5.0)
feedback is welcome 
ciao,
Giovanni.
Last edited by Virtual DarKness; June 5th, 2007 at 05:19 PM.
Linux registered user #72162
Bookmarks