Click to See Complete Forum and Search --> : Auto Staratup VNC?


klnyc
04-06-2004, 10:35 PM
Hiya guys.

Its there a way to make my VNC startup automatically?
It's pain in the budd, esp me, cuz my Linux box in the basement and im in the 2nd floor. So, if I need to reboot, I can, but I also would like my VNC startup at the same time w/o having run down to the basement and re-enter the command over again..... :(
Any great help are welcome and appreciated.


kl

serz
04-06-2004, 10:47 PM
Writting the command you use in the ~/.xinitrc or whatever you use should work.

hlrguy
04-06-2004, 11:34 PM
You might want to start sshd so that you can ssh in after reboot and do anything you want remotely. Restart VNC, start downloads, compiles, etc. I guess you do that through VNC, but this would be a failsafe.

hlrguy

knute
04-07-2004, 01:29 AM
Originally posted by klnyc
Hiya guys.

Its there a way to make my VNC startup automatically?
It's pain in the budd, esp me, cuz my Linux box in the basement and im in the 2nd floor. So, if I need to reboot, I can, but I also would like my VNC startup at the same time w/o having run down to the basement and re-enter the command over again..... :(
Any great help are welcome and appreciated.


kl

Yes, there is a way.

mdwatts
04-07-2004, 11:20 AM
Check your distros documentation as they should have something on setting up VNC server to startup on boot. SuSE does which is done through YaST/Network Services/Network Services (inetd) and enabling VNC.

klnyc
04-07-2004, 08:40 PM
Yep, I do see it start up [OK] in the post. I wondering why I cant vnc to it..Hmmm.
Let try out the SSH.

mdwatts
04-08-2004, 11:28 AM
Originally posted by klnyc
Yep, I do see it start up [OK] in the post. I wondering why I cant vnc to it.

Have you verified that the VNC server is indeed running?

ps ax | grep vnc

What error messages are you getting on the client when using vncviewer?

klnyc
04-09-2004, 04:45 PM
Originally posted by mdwatts
Have you verified that the VNC server is indeed running?

ps ax | grep vnc

What error messages are you getting on the client when using vncviewer?

this what I got:
admin 5651 1 0 Apr07 ? 00:00:00 Xvnc :4 -desktop UnixPly:4 (admin) -httpd /usr/share/vnc/classes -auth /home/admin/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /home/admin/.vnc/passwd -rfbport 5904 -pn
root 5892 1 0 Apr07 ? 00:02:17 Xvnc :3 -desktop UnixPly:3 (root) -httpd /usr/share/vnc/classes -auth /root/.xauthz4T85I -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5903 -pn
admin 6329 1 0 Apr07 ? 00:00:00 Xvnc :7 -desktop UnixPly:7 (admin) -httpd /usr/share/vnc/classes -auth /home/admin/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /home/admin/.vnc/passwd -rfbport 5907 -pn
admin 8472 1 0 16:53 ? 00:00:00 Xvnc :1 -desktop UnixPly:1 (admin) -httpd /usr/share/vnc/classes -auth /home/admin/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /home/admin/.vnc/passwd -rfbport 5901 -pn
root 8673 8638 0 16:59 pts/3 00:00:00 grep vnc
[root@UnixPly admin]#

mdwatts
04-10-2004, 10:49 AM
The VNC server seems to be running.

Originally posted by mdwatts

What error messages are you getting on the client when using vncviewer?

So what error messages are you getting with vncviewer on the client?

klnyc
04-10-2004, 02:35 PM
Originally posted by mdwatts
The VNC server seems to be running.



So what error messages are you getting with vncviewer on the client?

MD,

I got connection failed to the server.
Im trying connect from my XP box. The strange thing is last week I got it running and I reboot, I never can connected again.

klnyc
04-10-2004, 02:53 PM
Originally posted by mdwatts
The VNC server seems to be running.



So what error messages are you getting with vncviewer on the client?

Ok , I went into the log and this what I see.

Xvnc version 4.0b4 - built Sep 19 2003 09:32:30
Underlying X server release 40300000, The XFree86 Project, Inc


Fri Apr 9 23:34:08 2004
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5904
vncext: Listening for HTTP connections on port 5804
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!
SESSION_MANAGER=local/UnixPly:/tmp/.ICE-unix/3469
Window manager warning: Log level 32: could not find XKB extension.
AUDIT: Fri Apr 9 23:34:18 2004: 3467 Xvnc: client 8 rejected from local host

What this can be? :(