Autostarting VNC fails


Forum: HD Install
Topic: Autostarting VNC fails
started by: EvilLawnGnome

Posted by EvilLawnGnome on July 22 2006,23:36
So, i saw in another topic about a user who wanted to autostart firefox when the machine booted. I followed the instructions and modified .xinitrc to have a line beneath the dillo line that says:

vncviewer -fullscreen 192.168.2.50:1

and then i reboot. Boot process goes fine, and then it stalls when it whould be drawing the local desktop. Instead, i get the classic gray background and X cursor, and no indication as to whats going on.

Has anyone tried to do this before? Any tips?

Posted by ^thehatsrule^ on July 23 2006,00:24
did you try adding a " &" to the end of that line?
Posted by EvilLawnGnome on July 23 2006,01:43
Aha! Thanks for the tip. I've never edited the xinitrc file before. :D

Anyway, it seems like im closer, but not there yet, im still getting hung locally. It draws the desktop background and the "start menu bar" (not sure what this is called), but there are no icons, and right clicking does nothng. And, as i said, it doesnt open the VNCViewer either.

Currently, i have the default dillo line commented out, and i have put this VNC viewer line directly beneath it. Should i be putting it somewhere else, perhaps at the end of the file?

Posted by ^thehatsrule^ on July 23 2006,04:40
Does taking out the vncviewer line allow everything to startup properly?

Maybe you should paste your whole .xinitrc ..
and  check the file permissions on it - it might be required to be executable.

Posted by EvilLawnGnome on July 23 2006,09:57
Yeah, commenting out the vncviewer line makes everything boot properly. I think the problem is that vncviewer needs to ask for a password. If i open up ATerm, and type in:

vncviewer -fullscreen 192.168.2.50:1

the first thing it will come back with is:
Password:
on the very next line. I think this is where the problem is, all though im not wuite sure how to fix it. Also, pasting my entire .xinitrc file would be a lot of work, its on a different comp, etc etc. :D Ill give you, verbatim, the changes i have made.


-------above this everything is unchanged--------
#dillo etc etc etc &
vncviewer -fullscreen 192.168.2.50:1 &
-------below this everything is unchanged--------

Now, something tells me that i need to be doing something with pipes and STDIN to grab that password prompt and route it appropriately, but i cant say for sure. And i also cant say that im even using the right terms.

You've been very helpful so far, i hope im giving you the information you need to help some more. :D

Posted by ^thehatsrule^ on July 23 2006,12:01
Ah that would be the problem I see... because it asks for a password in the current terminal? In that case, you could try to look up vncviewer's help for a password switch.  The only problem with that would be that your password could be visible.

Another solution is to launch another aterm that then launches vncviewer - probably a better solution so that it won't lock up the current script.  Look in ~/.fluxbox/menu for examples.

Posted by mikshaw on July 23 2006,14:32
I haven't used vncviewer in DSL, but in other distros you can create a password file with the vncpasswd program, and then use
Code Sample
vncviewer -passwd filename
to launch vncviewer.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.