FedoraThis forum is for the discussion of the Fedora Project.
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'm hoping someone can give me some advice on how to fire off some scripts that open in a window after the desktop has finished loading on bootup on a FC2 box. I have a bunch of shell scripts set up on the desktop that constantly monitor some folders for incoming files. I have a script to launch them, and have launchers set up on the desktop to open them in a terminal window so I can see the progress as well as any errors that come up. What I'd like to do is find a way to run these launchers on bootup.
So far, I've tried putting the script info in the rc.d file, as well as the .bash_profile file. Either they don't run at all in the case, or they run too early and don't allow the system to finish booting.
Is there someplace that I can get this set up to have them start up after everything else has loaded?
Do you want these scripts to run only when using a kde session. There is a startup folder in ~/.kde. I think you need to create a .desktop kde link in this folder to run them there ( by right clicking in file browser is one way to do this. )
There is also a .xinitrc file that could source these scripts whenever logging in to an xsession. This would have the advantage of allowing you to run different desktop environment.
Perhaps you could write the script to run as a service and use cron or anacron to check periodically if they need to be run.
Which startup file or script you use should be determined by when you want it to run. I.E. only when using kde, only when a particular user is logged in. The .bashrc is run whenever starting a new shell so this one is out. The .bash_profile is run when logging in but is specific to the bash shell. If you use a different default shell, it may not be sourced when logging in. Be sure to check the default shell listed in the /etc/passwd file.
You may want to look at using Superkaramba for the monitoring functions.
~/.xinitrc would be the answer. it can launch your script after starting up the window manager.
Could you go into a little more detail on this please? I see the script.. just not anyplace to add items to be started after everything else. I tried just throwing it at the end of the script, but nothing happened..
jschiwal, I'm looking for these scripts to fire off for a particular user, and I'm using only Gnome at this point. I have to believe there's some way to get something like this to start up after everything else comes up. I can't really have it start as a service, because I need to see it start up in a terminal window (or xterm) so I can see any errors that show up, and watch the progress as well.
Thanks again for the help so far on this.. hopefully we can figure out a way to get this to work.
I installed x11vnc to run when I type "x11vncstart start"
and BAMN, it starts... I want this to execute at startup... I have a Mandrake 10 linuxbox with ONE user that AUTOLOGS IN... So, where in his home directory can I add this line? I tried .bash_profile and the box booted up to a blue screen with no icons but with a mouse cursor and VNC attachted fine, but It stays at the useless blue screen...
I want this to be the VERY last thing that runs... I basically want to keep the machine in a closet and connect via VNC whenever I need...
I've got the same damb problem. but Im using realvnc.
I added the vncserver line to /ect/rc.local and it worked but my user for the remote was root.
This is definatly not good for the situation I am in. not tomention the the vnc startup commands were not executed since the was no commands set for the root user.
Is there a .login like the old days (when xwinows wasn't a thorn in my side) anywhere........?
Ahh you see my situations a bit perculular. and I dont think that link will work for me.
What I wish is do is have vnc start only when a particular user logs in.
The idea is that that user account is automaticly logged in after 30 seconds
if no one else logs in at the welcome screen when the system starts up.
Kindava a default to vnc option.
The box is required to run a specific detection/processing algorithem over large chunks of medical data sent to it sporaticaly.
Due to the sensitive nature of data being sent to the machiene and the non-trusted nature of my uni network the box will be powered off wile not in use. This is done to prevent the kind of misshaps that almost cost some of my colleges there jobs.....