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.
Distribution: Mint 17.1 KDE on workstation, CentOS 6.x on servers
make stuff run at startup (in a seperate console)
I was told I can edit the /root/.rcbash file or whatever to run stuff at startup, but the problem with that is it uses the "main" console. So let's say I logon to ssh, any started programs will be there. I want it to run as a seperate process, and maybe even popup a console on the server or something as if I would have manually opened it. In windows I would simply drag a shortcut to the program in the startup folder and bang, done. So when I would get into windows, a console or the program would come up, but not take over windows either.
In general, stuff doesn't run in terminals if it is to run at boot time. It runs as a regular process, and has a log file that it prints the output to. You then read the file to see the output. This way it won't stop when you close the terminal.
Also, you need to understand that XFree86 is not the core of linux, it is just another program. If you get something to start at boot, then it will start before XFree86 does, so it can't pop a window up. If you (say) had a database server, then you would not run X on it because that would make the database slower....
Assuming you are running Red Hat, I suggest you find and read documentation specific to that distribution, in particular documentation about how redhat boots. You need to understand it before you can really start changing stuff. You will need to write scripts.....
OK. The simplest way is to put the command into this file:
This file is run everytime the system is started, after all other initialization scripts have run. However this won't take care of nicely stopping the database when you shut down or switch run levels. You will need to learn how the System V init stuff works for that....