I am trying to get vncserver running on a RH7.3 box. I ran the "vncserver" command and it created the .vnc directory and it appears to be running. However, can I use my windows vnc viewer with the Linux vncserver? It is failing. Also do I need to configure the /etc/sysconfig/vncserver file? I tried this but when I try and do "/etc/init.d/vncserver" it fails. Also for the http side do I need apache? It appears to be running httpd. Doug
The Windows VNCVIEWER works great with the Linux VNCSERVER and vice-versa. They are using the same protocols.
Their is a systemV init script for Linux (kind of like a souped up part of "Autoexec.bat")
that is called "vncserver" in /etc/rc.d/init.d. That init script reads the file /etc/sysconfig/vncserver
at boot time (if it is configured to start at boot time). Try running "chkconfig --list" and "chkconfig --help"
The /etc/sysconfig/vncserver file has a simple syntax that tells the server at boot time to start one
or more vnc desktops for specific user accounts. (Unlike Windows, VNCserver on Linux uses
a virtual desktop/keyboard/mouse for each vnc-shared display (except for KDE3.1, but don't get
confused we aren't talking about that here)). So, under linux you can have one machine with
MANY desktops for many different users, all in use at the same time.
If you run "vncserver" from the command line you are probably hitting against the server itself.
It will try to start up a virtual desktop for you. You have to have a $HOME/.vnc/passwd file
first. You can create that by typing "cd ; mkdir .vnc; cd .vnc; vncpasswd passwd" and then entering your
passwd twice.
Then you can run vncserver from the command line "vncserver"
followed by a display number, your desktop geometry, the color bpp depth, the desktop name.
for example: "vncserver :3 -geometry 1280x1024 -depth 16 -name MyDesktop"
Now, go to your windows box, run your vncviewer, and connect to "servername:3"
Enter your password, you should be up and running.
Now let's say that you wanted your Linux box to always start your desktop whenever it boots.
Assume that your user account on your linux box is "dsimpson"
You would edit /etc/sysconfig/vncserver
and add the line:
VNCSERVERS="3:dsimpson"
If you want to set specific geometry and color depth and display name you will
have to edit the /etc/rc.d/init.d/vncserver script
If you need help with that, then write back and I will give you a sample of what I have
done for several users who use different display sizes, and are on different network
speed connections.
-Ben.
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list