I have 6 computers around my home that the family uses. They are all networked through my local router both wired and wireless. I use VNC so I can access the desktop of each machine. VNC allow a user to see and use a remote machine desktop using a local computers display, mouse, and keyboard.
I have just begun to explore Linux and chose to learn it using an old HP PIII box with a 40 gig drive and 384 MB memory. In my searches about Linux I leaned that Vector would be a good choice for older computers. I installed an old NVidia card 32 mb card and an old network card as well. I wanted to add VNC on Vector so I can stuff this machine under a desk with no monitor, keyboard, or display but use it from any computer in
the house. (All of my computers have both the vnc server and vnc viewer. So any computer can see and controll any other computer with a vnc server running.
(After much tortured hand holding by a dozen patient Vector forum folks.)
What I needed to accomplish was ...
>Download and install VNC into Vector Linux.
>Tell Linux to auto-login on power-up.
>Tell Linux to start the VNC server after auto-login so I can see the Vector desktop on my remote Windows machine.
Here is how I did it. (Painfully detailed, like I needed it.)
Download and Install VNC.
I used Gslapt to download TightVNC. The file is named "1.3.8-i586-4vl58.tlz". (I did not realize at this point that I could right click on the downloaded file and select install. I could have used Gslapt install it as well. Nube error.)
I used "installpkg tightvnc-1.3.8-i586-4vl58.tlz" to install it. (It installs the server and viewer as well as docs.)
Open a terminal window and type "vncserver" to start it. (VNC is installed in /user/bin which is already in path.)
VNC asks you to set and verify a password.
I had already downloaded the VNC Viewer on my windows box. I can view any VNC Server on any machine directly, or through an internet browser like Firefox. If you use a browser as a vnc viewer it automatically loads JAVA to start it and then it rips.
When I opened the Vector desktop on my Windows laptop, using Firefox, in the address line as "192.168.2.9:5801". VNC uses port 5800 on the server side (my Vector machine) for html, use 580X where X is the display number. (VNC tells you the display number when it starts. You don't need to use a port number in the IP address if you are using the vnc viewer on the remote machine to view the Linux machine.)
Your browser will then ask for the password you had set on the VNC server. Enter that.
Depending on your window manager (I think) it *may* work great.
If it does not give you a very pretty Vector desktop then ...
(My browser gave me a plain gray display with a Vector Terminal Window in it. Not very useful. I want to see the Vector desktop and be able to use it completely, including running apps and transfering files from my windows box.)
In a terminal window on the Vector box type "ps -aux" to get the process number of the vnc process you just started, type "kill xxxx" where xxx is the process number. This stops the vnc server.
To get a perfect display of Vector in on your browser or windows viewer you must edit the xstartup file in your .vnc folder in your Linux Home directory.
Go to your Home directory, in the view menu select "View Hidden Files". You wil see a .vnc directory.
Navigate into .vnc.
You will see the xstartup file. right click on it and open it with Abiword.
Make the contents of xstartup look like this...
[ -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" &
Save this file and restart vnc in a terminal window like you did earlier using "vncserver".
Now go back to your windows VNC viewer or browser, type in the Vector box IP address, and there is the pretty Vector desktop.
Now you will need to set up Linux to Auto-Login on power-up.
Open a new terminal window and login as root, (type su and it will ask for root password.)
Start Abiword. (type abiword, it will start.)
Edit the file /usr/share/config/kdm/kdmrc,(It appears Vector 5.9 standard gold uses KDM as your login manager by default.), change three lines, (undo the comments):
AutoLoginUser= <-- insert user name
PreselectUser= <-- insert user name
Save the file. If you try to edit this file in Abiwird as a normal user it will give you an error when you try to save it.
To auto-start the vnc server after your machine has booted and finished auto-login.
Make sure you are still logged in as root.
Start Abiword as above.
edit /etc/rc.d/rc.local to add to the end of the file ...
su - username -c "/usr/bin/vncserver" &
Be careful to type this in exactly. The spaces after the "-" matter.
Save the file.
Restart the Vector machine and on a remote machine on your network, fire up the vnc viewer and type in the IP address of the vector machine.
YeeHaa! There's the Vector desktop.
That's it I think. Solving this in Vector allowed me to learn a bunch about Linux and Vector. Frustrating and satisfying. I will keep at it.