[svlug] SuSE-9.1 and vnc
Richard Gardner
noeffort at comcast.net
Wed Sep 29 01:18:48 PDT 2004
Roland,
You can also check out the following URL
http://www.tightvnc.com/
http://www.tightvnc.com/docs.html
which as well as providing the source for one of the more popular cross
platform vnc servers by the same name, has pretty good documentation.
run the following command in SuSe
rpm -qa |grep -i vnc
and see if it returns just vncserver and vncclient,
documentation - http://www.realvnc.com/v4/man/vncserver.html
or if it returns tightvnc
As William pointed out quite nicely, it is merely a framework from which to
access the X windows environment. On your localhost, X windows starts by
default on the 7th virtual console, or CTRL+ALT+F7 on the "first" display, or
as correctly noted, the <ip address>:0 display. The full notation for X
windows on your VC7 would be
localhost:0.0 or 127.0.0.1:0.0 or :0 for short
When you start vncserver for someone other than the localhost to connect to,
it will usually start up on display number - or <ip address>:1
see the following output when you start vncserver:
***********
[root at fedora root]# vncserver
You will require a password to access your desktops.
Password:
Verify:
New 'fedora.testing.com:1 (root)' desktop is fedora.testing.com:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/fedora.testing.com:1.log
***************
when sitting on the second machine, and wishing to connect, you would use
[user at secondhost]# vncviewer 192.168.0.1:1
of course, I just ran that as root - a big no no... but you get the idea now?
The defaults for the vnc X environment you will get when you connect is in the
~/.vnc/xstartup script, which you can edit.
here is the default -
************
[root at fedora root]# cat .vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
**********
I like fluxbox, so I would simply change that last line from
twm &
to:
fluxbox &
That's it...!
The actual port it is listening on for your machine may be 5900, and that may
be starting via the startup scripts. Run
chkconfig --list |grep -i vnc
to see if it is turned on by default.... it most likely IS, and is most
likely running on display :1
You can check your ~/.vnc/<hostname>:1.log to see more details, like:
Xvnc version 4.0b4 - built Apr 14 2004 12:42:18
Underlying X server release 40300000, The XFree86 Project, Inc
Wed Sep 29 01:15:21 2004
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: Listening for HTTP connections on port 5801
vncext: created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from
list!
That may be WAY more than you need, but hopefully covers all you may be
wondering.
Enjoy!
Richard.
On Tuesday 28 September 2004 11:33 am, Roland Krause wrote:
> Hi folks,
> I set up a little server running SuSE-9.1 over the weekend and I
> noticed when trying to start vncserver :0 that there is supposedly
> already one running. A "ps -ef|grep -i vnc" didn't produce any more
> info and now I am wondering who/what is running a vncserver (X?) and
> how do I connect to it?
>
> Can anyone please shed some light on this?
>
> Roland
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
More information about the svlug
mailing list