Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am running Centos 5 and am moving from an all windows server running open source software, to running Centos 5 with all of my software. My problem is i need to run some commands at boot, such as starting hamachi and starting a vnc user. I did try to use rc scripts, and i did get it to work.....kinda. When i boot it says bad command line interpreter. Is this an easier way to do this? RC scripts do seem to be more "getting into the guts of things", so if i could do it that way that would be great. Thank you.
The simple hack is to make a script, put all the commandline stuff in there which works when you type it into the console, make it executable, and add the path to the script to the bottom of /etc/rc.local
It will run at login.
IIRC: CentOS also has a GUI for running programs at startup.
Well i did find that the test file was created by root. So something else is wrong. What i am trying to do is run a tightVNC user and start hamachi. The vnc user starts but the display is all messed up, and hamachi gives me an error saying that a setup file is missing. But if i run all of these same exact commands after login as root everything works great. That my problem in a nutshell
Now i found something wierd the vnc server works fine if i type it in manually but if i run the same exact command from a script the display is messed up.
Hamachi requires one time initialization (per Linux user account).
This step generates cryptographic key pair and creates ~/.hamachi
directory where Hamachi stores the keys, the configuration and the
state. To perform this initialization run
This is what hamachi can not find when i run it from the rc.local. I have run this command, as i said earlier the hamachi commands do work if i run them after login as root. Hope that helps you. Also btw greatful for all the help.