Sunday, July 12, 2009

miscellaneous vnc problems

I had miscellaneous vnc problems with the server running Suse. Unable to use smb4k to mount windows shares and rdesktop not opening using the VNC connection. Error mesg was
rdesktop server-ip
Autoselected keyboard map en-us
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 1 (X_CreateWindow)

Thought it might have something to do with the window manager - twm and not KDE. According to this page, I could change it by editing ~/.vnc/xstartup to
#!/bin/sh
/usr/bin/startkde
But that did not help. Then thought it might be the colour depth. Changed the colour depth to 16 as
vncserver -geometry 800x600 -depth 16 :68
That did the trick.

Next, vncserver was getting into a loop or something when I try to run it from a putty session, but not when I run it from a terminal in Linux! This turned out to be some sort of vnc allergy to ssh tunnels - when I used putty without any tunnels, vncserver created desktops without complaints.

Then P solved the issue with smb4k:
In settings -> configure Smb4k -> super user
checked the boxes which say "Use super user privileges to mount and unmount shares", and also for 'force unmounting', gave the su pw when asked. Now it mounts.

No comments:

Post a Comment