SlackwareThis Forum is for the discussion of Slackware 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 have two clients (laptop and desktop) running Slackware 10.2 and RealVNC 4.1...
1st question
When I use the desktop machine to get into the laptop, I am able to sucessfully VNC in, but I get the TWM and not KDE...
Under my home directory there is .vnc and a xstartup file and
I've made this change
Regarding the connection error, /etc/services is just a list of ports for standar services, some programs get the port they should listen using that list, but that's not the case of VNC.
If you're using a firewall you need to open the port so you can listen incoming connections on that port on the laptop. Outgoing connections may be blocked from the desktop, but it's not the usual setup.
You might find out more by examining the VNC log file at ~/.vnc/<hostname>:<displaynr>.log
Eric
Ok, so I looked under the log...This is coming from the vnc client (desktop which has the hostname of Ladytron) trying to login to the vnc server (laptop which has the hostname of probot)...I noticed that there were no logs under my user on the laptop...
Here is the log from the vnc client
Code:
24/10/06 13:20:02 Xvnc version 3.3.tight1.2.9
24/10/06 13:20:02 Copyright (C) 1999 AT&T Laboratories Cambridge.
24/10/06 13:20:02 Copyright (C) 2000-2002 Constantin Kaplinsky.
24/10/06 13:20:02 All Rights Reserved.
24/10/06 13:20:02 See http://www.uk.research.att.com/vnc for information on VNC
24/10/06 13:20:02 See http://www.tightvnc.com for TightVNC-specific information
24/10/06 13:20:02 Desktop name 'ladytron:2 (cmmiller)' (ladytron:2)
24/10/06 13:20:02 Protocol version supported 3.3
24/10/06 13:20:02 Listening for VNC connections on TCP port 5902
Font directory '/usr/X11R6/lib/X11/fonts/Speedo/' not found - ignoring
xrdb: No such file or directory
xrdb: can't open file '/home/cmmiller/.Xresources'
xset: bad font path element (#37), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
startkde: Starting up...
kbuildsycoca running...
Xlib: extension "DPMS" missing on display ":2.0".
Xlib: extension "MIT-SCREEN-SAVER" missing on display ":2.0".
Xlib: extension "DPMS" missing on display ":2.0".
Xlib: extension "MIT-SCREEN-SAVER" missing on display ":2.0".
kio (KDirWatch): Available methods: Stat, DNotify
kio (KDirWatch): addDir - recursive/watchFiles not supported in KDE 3.0
kio (KDirWatch): Added Dir /home/cmmiller/.kde/share/apps/basket/basket1 [KDirWatch-1]
kio (KDirWatch): Setup DNotify (fd 128) for /home/cmmiller/.kde/share/apps/basket/basket1
kio (KDirWatch): KDirWatch-1 stopped scanning /home/cmmiller/.kde/share/apps/basket/basket1 (now 0 watchers)
kio (KDirWatch): KDirWatch-1 restarted scanning /home/cmmiller/.kde/share/apps/basket/basket1 (now 1 watchers)
kio (KDirWatch): addDir - recursive/watchFiles not supported in KDE 3.0
kio (KDirWatch): Added Dir /home/cmmiller/.kde/share/apps/basket/basket2 [KDirWatch-2]
kio (KDirWatch): Setup DNotify (fd 129) for /home/cmmiller/.kde/share/apps/basket/basket2
kio (KDirWatch): KDirWatch-2 stopped scanning /home/cmmiller/.kde/share/apps/basket/basket1 (now 1 watchers)
kio (KDirWatch): KDirWatch-2 stopped scanning /home/cmmiller/.kde/share/apps/basket/basket2 (now 0 watchers)
kio (KDirWatch): KDirWatch-2 restarted scanning /home/cmmiller/.kde/share/apps/basket/basket2 (now 1 watchers)
Xlib: extension "DPMS" missing on display ":2.0".
Xlib: extension "MIT-SCREEN-SAVER" missing on display ":2.0".
Xlib: extension "DPMS" missing on display ":2.0".
Xlib: extension "MIT-SCREEN-SAVER" missing on display ":2.0".
Xlib: extension "DPMS" missing on display ":2.0".
Xlib: extension "MIT-SCREEN-SAVER" missing on display ":2.0".
1,1
Still working on trying to fix this and didn't want to make a new thread.
Here are some things I've noticed ---
I've setup my laptop and main desktop to run vncserver on startup, and I still have to go in and do ./vncserver...
On my main desktop, this is the message that I get:
Code:
cmmiller@ladytron:/usr/share/realvnc/vnc-4_1_2-x86_linux$ ./vncserver
Warning: ladytron:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server ladytron:1
New 'ladytron:2 (cmmiller)' desktop is ladytron:2
Starting applications specified in /home/cmmiller/.vnc/xstartup
Log file is /home/cmmiller/.vnc/ladytron:2.log
Now from my laptop, I am able to use vncviewer to access the desktop ok...
If I run the same command from my laptop (./vncserver), this is what I get
Code:
cmmiller@probot:/usr/share/realvnc/vnc-4_1_2-x86_linux$ ./vncserver
You will require a password to access your desktops.
cmmiller@probot:/usr/share/realvnc/vnc-4_1_2-x86_linux$
Why am I not getting the hostname:1, when I start the vncserver on my laptop, which I believe is what is keeping me from vncing into it...
thanks again
Last edited by JockVSJock; 10-30-2006 at 06:54 PM.
Well, check if they're really running on startup with ps. If not, you're not running the right command on rc.local.
On your desktop, the server being created is number two, that means you should point to port 5902 instead of 5901 (remember the port is 5900+display number). That lock file may remain from a badly shutdown of your vnc server, if you're not running more than one instance, safely delete it to start the server on display 1.
Remeber, if you want to run the server as your user, you should use in rc.local something like:
Code:
su - user -c 'source /etc/profile; /path/to/vncserver'
Well, check if they're really running on startup with ps. If not, you're not running the right command on rc.local.
I only had in /etc/rc.d/rc.local
Code:
./usr/share/realvnc/realvnc-4_1_2/vncserver
I added you line of code but I'm getting a :/bin/bash error message
Quote:
Originally Posted by gbonvehi
On your desktop, the server being created is number two, that means you should point to port 5902 instead of 5901 (remember the port is 5900+display number). That lock file may remain from a badly shutdown of your vnc server, if you're not running more than one instance, safely delete it to start the server on display 1.
Remeber, if you want to run the server as your user, you should use in rc.local something like:
Code:
su - user -c 'source /etc/profile;
/path/to/vncserver'
How do you point vncserver to run on port 5902? THere is a vncconfig file, but I can't look at it...
From my desktop I still getting the an error when I try to get to my laptop via vnc, and I still don't get from my laptop when I start vncserver:
I meant you should point to port 5902 in the client side, the server listens by default on port 5900+display number, that means, hostname:0 means port 5900, hostname:1 port 5901 and so on.
If you want, you can change that with some parameters when calling vncserver, read it's man page.
If you get that error there's probably some syntax error:
Code:
su - user -c 'source /etc/profile; /usr/share/realvnc/realvnc-4_1_2/vncserver'
That should work, of course, change user to your user
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.