SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running SUSE 10.1, and the vncserver is configured and up and running. Works fine.
The first time I started the vncserver (yast2->remote administration) I didn't put a password in when it prompted me (kickin myself!). Now, it NEVER asks for a password. It will let anybody connect to it, and give them a login prompt!
I've tried everything I can think of. Used vncpasswd as root and my normal login. I've edited xinetd startup for the vnc1 session. I've even un/reinstalled tightvnc and the xorg*vnc. No luck.
This is driving me nuts!
If I connect using the java interface (browser pointed to port 5801) it DOES ask for a vnc password, before connecting to a login session.
If I connect to 5901, it refuses.
If I connect to port 1, it connects! and doesn't ask for a password.
The docs say the password is stored in $HOME/.vnc/passwd. The service runs as nobody, however there is NO /home/nobody directory. I tried making a /home/nobody/.vnc/passwd file but no luck DOH!
I've seen other people post this very same question, but I haven't found any of them answered.
I don't know about Yast thing, but you can start vncserver as a regular user. First set up a password:
vncpasswd
Copy xinit script of your favourite Window Manager into ~/.vnc/xstartup. I use fluxbox, so my xstartup looks like this:
Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Start the window manager:
eval `ssh-agent`
exec /usr/X11R6/bin/startfluxbox
Then, start a server:
vncserver
Nobody will be able to connect without a password.
There's 2 ways to enable VNC via GUI (KDE or GNOME).
Yast > Remote Administration (which starts a separate session for each remote login) and yes you have to manually setup a password using steps below.
second way:
Yast > Display and Monitor (X monitor setup) and just enable VNC (which lets you log into the existing session visible on X). That will also give you a password option right there and not have to go through the troubles above.
FYI - make sure you open the firewall port for the one you want (5900 or 5800 - java). Or be smart and do VNC through SSH tunnel (no firewall port opening required, except for SSH).
The "second way" is what I was actually looking to do, which is to remote control the current X session, just like I do on my windows servers.
However, when I enabled that option, it does wierd things. It works, I can connect to it from a remote vnc client, but the video is scrambled (interlaced) and the keyboard on the server becomes disabled. DOH! I have to view from the server, and key from the remote client heh. Oh well, disabled that for now.
I sure wish suse/Novell had some documentation on this stuff. The various online help resources dont even mention the display->vnc option. When enabled, its deactivating the local keyboard... dont see any options to configure that.
Hmm, I had a similar problem like that with a previous machine. I remember that you have to go into your X11 config file to change it. There will be an entry for your existing keyboard and mouse but there will be another entry for your VNC keyboard and VNC mouse. Check it out and see if you see anything wrong. It should be in /etc/X11/xorg.conf if I remember correctly. You should enable that VNC option using the GUI config before looking at the xorg.conf file, otherwise you wont see the VNC entries.
If you display your conf file, I might be able to help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.