Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm really new to Linux and I've been learning alot from reading the forums.
I've tried Mandrake, RH and Lycoris and I'm sticking with RH for now. (Altho if a new Lycoris comes out, I'm gonna try that.)
I've been able to get a lot of things figured out on my own and by researching, but I'm having a problem.
I have a program sucessfully installed in /usr/bin. I've set it up so I can run it in my user account just fine in a terminal window.
What I want to do is to have this program execute automatically every time I login, in a terminal window. (The program runs in a verbose mode, I want to see what it's doing.)
All the searches I do on this keep leading me to cron. But as I understand it, cron is only for things I want done at certain intervals. I just want this terminal window to appear with my program executing in my user context every time I login.
I guess what I'm really looking for is the Linux version of the Windows Startup folder.
Can anyone give me a point in the right direction?
i'm not exactly suer what you want to do... EVERY single time you open a terminal window you want to load a program? well, if that's really what you want to do then you would add the program to your ~/.bashrc e.g:
programname &
at the end of the file... but.. i'm really struggling to see what good that could do you...
if you aer looking at more of a newbie-ish kde (yuck) thing, then i think that kde does have a startup folder, but i've not sued kde for a long time... you could make an entry that ran
xterm -e programname
which would run the program inside a terminal window which would catch the output.
not sure why you end up at cron.. thats certainly not what you want, like you thought.
and pleeeeeeeeeeease avoid lycoris at all costs... for your sake..
this automaticaly sorts everything out on X including loading the window manager (blackbox here) on the last line. to do what you want, you'd insert that example i gave previusly into there somewhere. i don't use an X login manager tho, never bothered to find out how to do it if you do log in from X, i dare say gnome can do it.
Depends how you log in. Debian users will find that the script ~/.xsession is executed when they log in, users of any system that use startx will find ~/.xinitrc executed. I suspect that non Debian users who use a graphical log in will find ~/.xsession is executed.
The last line of the script should start your window manager.
Would that xinitrc thing be true with all aplications. For example if I wanted to start say Opera (which I don't, but just hypothetically...) would I place:
#
opera &
#
in the ~/.xinitrc file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.