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.
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.
- Right click on the panel and click "Add to Panel..."
- Choose "Custom Application Launcher" and click "Add"
- Type whatever you want for the name. I called it "Metacity"
- Type "metacity --replace" (without the quotes) for the command
- Optionally fill in the comment box and choose an icon (I used vinagre.png since I run it from VNC)
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".
If you use x11vnc, you can add "noxdamage" flags to its command line to start up a VNC server which will give you all the pretty compiz effects over VNC (which is probably bad, but there you go).
To install :
sudo apt-get install x11vnc
Then run it in a terminal (one time only, just to set the password)
Then finally stick this command into /etc/rc.local :
x11vnc -usepw -forever -noxdamage -scale 4/5 -avahi -timeout 60 -nolookup -q
-forever will keep the server going after you disconnect. Otherwise, when the first client disconnects, the server will stop running.
-avahi will mean that the server will advertise itself using avahi (multicast dns). Clients like Reminna and Vinagre will search for and show these. Also useful if your client is on a Macintosh, since "bonjour" is really just a made-up Apple brand for zeroconf, of which avahi is the open-source version of.
-scale 4/5 will mean that a 1900x1200 screen will fit on a 1280x1024 screen. Yes, most clients will allow a local-side scale, but this option means that less data is sent by the server in the first place, which may be useful for slower, or internet-based connections.
-nolookup means that the server won't try to lookup the client. No long pauses on connect.
-timeout just specifies how long the server will wait for a client to connect before sleeping again.
The advantage to this method is that there's a host of other options available if you care to take a look (man x11vnc). Very flexible, but sadly no pretty GUI available.
p.s. If you haven't yet tried Reminna as an alternative to Vinagre, I'd suggest you give it a go. It's a superb VNC client which just happens to feature RDP support too.