I was wondering if anyone has a workaround for VNC remote not working with Ubuntu running compiz. From what I can tell it works if I disable compiz effects, but who's not a fan of eye candy? Anyway, it's not a huge deal if there's no work around anyone knows because I've been using nx server instead to remote connect to my desktop. I was just wondering if there's a way to get VNC working because I have an app on my ipod touch that can VNC, but there's no NX client for the itouch.
Ubuntu – VNC remote doesn’t work with Ubuntu
compizvnc
Related Solutions
The current VNC server in System/Preferences/Remote Desktop is called vino-server. It doesn't currently support operation when Compiz (Desktop Effects) is enabled.
To work around this, you have to use a replacement vnc server. I use x11vnc.
sudo apt-get install x11vnc
Crucially, you have to specifiy -noxdamage when you start the x11vnc server if you're intending to run Compiz.
First, initialise x11vnc with a password :
x11vnc -usepw
and follow the prompts. Then here's an example of how I run my vnc server:
x11vnc -usepw -forever -noxdamage -scale 4/5 -avahi -nolookup -q
- avahi will mean that the server will advertise itself using avahi (multicast dns)
- scale 4/5 will mean that a 1900x1200 screen will fit on a 1280x1024 screen.
- nolookup means that the server won't try to lookup the client. No long pauses.
- q will suppress some of the output to console. Or use -logfile instead.
- noxdamage will get your compiz effects working.
- forever just means that the server will keep running after a client disconnects.
If you do a "man x11vnc", you'll see that there's a raft of additional options. But the ones specified above should get you running.
If you need to run this on startup, I personally run this in /etc/rc.local, but I'm sure there are better ways. EDIT : And there are easier ways, detailed on this very site : How to run scripts on start up?. So, I suppose the easiest is the crontab -e option, but you could also save the command as a script somewhere, then just specify it in system/preferences/startup apps.
Laying them out left-to-right is not the xrandr default, but the gnome-settings-daemon default. From gnome-settings-daemon 2.32 onwards, the last configuration should just be loaded from monitors.xml; so if you've done the vertical layout once, then next time it would automatically pick that up without kicking out Compiz.
So are you running 10.04 Lucid by any chance? In that case, you can follow these instructions to enable this feature in gnome-settings-daemon 2.30.1.
1) open a terminal
2) get the source:
mkdir src
cd src
apt-get source gnome-settings-daemon
3) edit src/gnome-settings-daemon-2.30.1/plugins/xrandr/gsd-xrandr-manager.c, at line 1349, change
#if 1
to
#if 0
4) in the terminal, install build dependencies:
sudo apt-get install build-dep gnome-settings-daemon
5) give your package a new version number:
dch -i "enable monitor.xml default values"
6) build and install your package:
debuild
cd ..
sudo dpkg -i gnome-settings-daemon*.deb
Please let me know if this works for you, I reproduced the steps from memory. Also, let me know if you had to do extra steps, so that I can update this answer.
Best Answer
I have the same issue. I don't know how to fix it, but I came up with a decent work-around. I added a launcher on the top panel to switch to the Metacity window manager.
When I log in remotely, the first thing I do is click the Metacity launcher, and the screen starts updating correctly.
I have fusion-icon installed, so I use it to switch back instead of making a launcher for Compiz. If you want to use a launcher to switch back to Compiz, follow the same steps for Metacity, but use the command "compiz --replace".