Hi,I want to start the VNCServer when my machine boots. I do not have a monitor on the computer and need VNCViewer running to show the Vector desktop on a remote computer.

In a terminal window I type "vncserver" to start it. I tried to add "vncserver" at the end of the rc.local file but the computer seems to just wait for me to login. (I can't login until vncserver is running and I can see it on the remote computer.) Maybe I need to add more then "vncserver" to rc.local.

lagagnon: That won't work for him. He has a system without a monitor and isn't logging in. Xfce will never run in that situation. HE's effectively setting up a headless server.

The path variable is probably not set when rc.local is called during the boot process. Instead of just vncserver you probably need to put the full path to the application. I don't have vncserver installed on my system but if you go into a terminal window and type in:

We still dunno what is the purpose of the machines, he want to set up as a server or workstation?

For workstation with Xfce as WM, you can follow lagagnon's advise, either using manual login or autologin. (But then it seem the chances of being a workstation is low as phrenon's statement...)

Quote

I want to start the VNCServer when my machine boots. I do not have a monitor on the computer and need VNCViewer running to show the Vector desktop on a remote computer.

For server, setup X11 forwarding via SSH. It work for me so far using VL5.9 as a samba server in my office. It will not have the full function as VNC but with a little bit of CLI command it do work nicely....beside you can try x11vnc too.....

Hi Folks,I want to run the VNC server on a Vector machine with no monitor. this means.>The machine needs to boot up and run vncserver on power up.>There should be no required login *or* the login can occur after vnc is running and I can connect on a remote machine using vnc.>The Vector machine has no monitor, mouse, or keyboard.

The executable is vncserver and it is in /usr/bin/.I am using Xfce.

What exactly do I add to rc.local to make this work? Is rc.local the correct file or is one of the other rc.* files better? Can I disable a login or force an auto login?

There is sooo much information out there. Part ofthe beauty of Linux and Open source is that you do not need to reinvent the wheel, or answering the samequestions thousands of times. Information is shared in this environment not horded.

If the answer to my question is out there, my many searches could not find the complete answer.

I suspect I need to tell Vector Linux to auto-login; edit a rc. file like rc.local to find the executable vncserver; and then start it. I need someone to describe auto-login in Vector and then how to edit whatever file to find and start vncserver at boot. I can't find this in searches of the Vector forums or anywhere else.

Is that correct? You apparently have two seperateposts for the same thing. Which is hard to follow.

You are stuck on one way of doing things which is Windows,not Linux. One problem is that you are not understanding the way a true mutli user system works. Many users at the same exact time using system, not logging in and switching users. That is why you need to specify a user in the rc.local file sinceeverything there will be started as root.

Why not just do the autologin and the start the process from XFCE?

There are many ways to accomplish the same task in Linux. The reason that it is that is so that someone can customize it for themselves,and to adapt it for specific needs. Just like your need of controlling severalcomputers from the same Desktop.

Just to add some fun for you why not look at synergy, that is another great way to accomplish what you want.

I posted in this forum ..."I want to start the VNCServer when my machine boots. I do not have a monitor on the computer and need VNCViewer running to show the Vector desktop on a remote computer.

In a terminal window I type "vncserver" to start it. I tried to add "vncserver" at the end of the rc.local file but the computer seems to just wait for me to login. (I can't login until vncserver is running and I can see it on the remote computer.) Maybe I need to add more then "vncserver" to rc.local.

Any ideas what the solution would be?"

That is quit different from my other forum post where I figured out how to download vnc and get it to run.

You keep answering my post in the "Migrating" forum.

New question; I am getting closer to an answer on my own ... need to run the Linux chkconfig command but it doesn't work in Vector. What it does is ...

chkconfig provides a simple command-line tool for maintaining the /etc/rc[0-6].d directory hierarchy by relieving system administrators of the task of directly manipulating the numerous symbolic links in those directories.

This implementation of chkconfig was inspired by the chkconfig command present in the IRIX operating system. Rather than maintaining configuration information outside of the /etc/rc[0-6].d hierarchy, however, this version directly manages the symlinks in /etc/rc[0-6].d. This leaves all of the configuration information regarding what services init starts in a single location.

chkconfig has five distinct functions: adding new services for management, removing services from management, listing the current startup information for services, changing the startup information for services, and checking the startup state of a particular service.

By the way, Synergy doesn't do anything close to my question. It just shares keyboard and mouse but requires monitors on every computer.

chkconfig is an SGI thing used by *some* Linux distributions (i.e.: Red Hat) to turn on and off services. The majority of Linux distros don't hve or use chkconfig. Even if we did have chkconfig you would need to write your own control script for vncserver in order for chkconfig to act upon it. You just don't need to do that.

Adding:

/usr/bin/vncserver <switches>

to /etc/rc.d/rc.local should do it. <switches> is not to be typed in literally. It's where you enter whatever switched or options TightVNC needs to run in the background as a daemon. Since I don't have TightVNC on this box I don't have the ability to walk you through it right now, nor do I have the time to set it up here at the moment.

I have read all of them. My point was you have comments about the same program in more than one post. The other post has that you have this already working. I degress.

Synergy comment (I stand corected)

Solution one is to have autologin forXFCE, then in the XFCE config start the vncserver.This will also keep the user you have setup without having files everywhere. I am sure that with you knowthat using the root account for this or any other use besidesconfiguration is not recommended.

Solution two use ssh with Xforwarding start a local X server and export the screen from the headless machine to the machine you are using.

Many solutions for the same problem. Your last response was to add a command to the rc.scripts using chkconfig, that tool is a RedHat tool, although you can adapt the Vector system to use it, you will need to setup the RedHatstyle boot up system (This was a workaround for vmware 1 or 2 versions ago).

Thanks for your suggestions. I will read up on autologin on Xfce and Xfce config.

I am not familiar enough or expert enough on ssh and x to do try that yet. I have been using vnc on all of my other machines and this seemed the path of least resistance. Also, the Linux vnc server looks great in the vnc viewer on my main machine. Much better then the windows servers.

Caitlyn ... adding "/usr/bin/vncserver - start" to rd.local does not start the vnc server on bootup. "vncserver" is in /usr/bin and will start from a terminal window.