-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jim Hale wrote:
>Got VNC installed, running and everything is hunky dory. I just want to >know if there's a way to start vncserver whenever I login using my root >account and turn it off when I log out. I don't want it started when I >reboot the machine, just when I login as root. I'm not at all sure why you'd want to do that. First, running vncserver as root is asking for trouble. (For that matter, habitually logging in as root is also asking for trouble.) VNC is not, by itself, a secure protocol at all. Second, I don't understand the relationship between being logged in at the console of this machine and desiring a remote connection to the same machine, so I wonder what problem you're solving here. Leaving aside these troublesome questions, the man page for vncserver will show you the -kill option, which you can use in your .bash_logout to shut down the server that you started from .bash_profile. Which brings us to ... >Also - I started on computers back when DOS was all the rage (ok - I'm >showing my age here) - anyway - I got pretty adept at writing batch >files. Is there anything similar to that in Linux, and where/how would I >add something that I DID want to run at startup or by creating an icon >on the desktop? Sounds like you have some reading to do, my friend! Start with a good bash book. You'll find shell programming to have about the same relationship to DOS batch files that a scientific calculator has to an abacus. ;-) As for startup programs, the uninitiated should probably stick to adding things to /etc/rc.d/rc.local, and not mess with the init scripts. But please grab a good Unix administration book (you can get lots of recommendations here if you want them), and be paranoid enough to not expose this box to the internet while you're experimenting. Good luck, and have fun ... -d - -- David Talkington PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Made with pgp4pine 1.75-6 iQA/AwUBPMjBPb9BpdPKTBGtEQKPOwCaAwsqiRuTIhNXNrbFDKnE9ebafNYAnRP3 CoEDD5jGWYP8yc0x9k+fPjFR =1pKT -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list