Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 have a very minimal linux distro I've put together that has no login program or users at all. I'd like to have a certain program of mine loaded automatically when X is started, but since I have no users, where should my .xinitrc file be placed for this to happen? Or is there another file I must edit instead of .xinitrc?
Well, I gave it a shot but it didn't work. Are there any other files X uses that aren't user dependant?
Its probably worth mentioning that I'm using /usr/X11R6/bin/X instead of startx to load up xfree. I'm using X because it has the -allowMouseOpenFail option that lets it load even when there is no mouse (the system I'm working on has no mouse.) If there is some way to let X load up without a mouse using the startx command, then its possible your solution might work.
With the information you provided it's impossible
to assess the situation :)
What exactly is the boot-process doing?
E.g., what happens after rc.local? Are you
booting into init 3 (4,5), which actions are
assigned to that in /etc/inittab?
.xinitrc will be evaluated it the user types
startx on the prompt, .xsession if you use
e.g. kdm with an automatic login.
Originally posted by Tinkster With the information you provided it's impossible
to assess the situation
What exactly is the boot-process doing?
E.g., what happens after rc.local? Are you
booting into init 3 (4,5), which actions are
assigned to that in /etc/inittab?
.xinitrc will be evaluated it the user types
startx on the prompt, .xsession if you use
e.g. kdm with an automatic login.
Cheers,
Tink
I'm using the BusyBox init with a simple inittab that I wrote myself. BusyBox init has no runlevels. Besides basic system configuration the inittab file only starts up an ash shell.
I can't use startx unless I find a way for it to load X without a mouse. I start the server using "X -allowMouseOpenFail" so it still loads, but then it doesn't use /etc/X11/xinit/xinitrc. I need to find a solution to either one
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.