Linux - Newbie This 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! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-21-2014, 07:52 AM
|
#1
|
LQ Newbie
Registered: Apr 2014
Posts: 19
Rep: 
|
shell scripting
Could any one please suggest me on which boot level or /etc/rc.x folder should I include my shell script so that it runs automatically immediately after login or just before the system prompts for login in Ubuntu LTS 12.04
Thanks
|
|
|
05-21-2014, 07:55 AM
|
#2
|
Member
Registered: Jul 2004
Location: Chennai, India
Posts: 952
|
/etc/rc2.d
|
|
|
05-21-2014, 08:33 AM
|
#3
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,345
|
user specific scripts should be put into ~/.bashrc or ~/.bash_profile, not into /etc/rc2.d, see man bash and invocation. Please specify what do you want to achieve
|
|
|
05-21-2014, 08:43 AM
|
#4
|
LQ Newbie
Registered: Apr 2014
Posts: 19
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
user specific scripts should be put into ~/.bashrc or ~/.bash_profile, not into /etc/rc2.d, see man bash and invocation. Please specify what do you want to achieve
|
I just want t start the xwindows GUI automatically when the system boots up. I am working on an embedded board running on a linux kernel based on ubuntu 12.04
|
|
|
05-21-2014, 08:45 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,345
|
you should install a display manager (like gdm3 or lightdm), that will be put into /etc/rcX.d
|
|
|
05-21-2014, 09:56 AM
|
#7
|
Member
Registered: Apr 2014
Location: Colombo, Sri Lanka
Distribution: Arch Linux
Posts: 69
Rep:
|
There're lot of ways to autostart scripts. Read this wiki page too for understanding.
|
|
|
All times are GMT -5. The time now is 08:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|