I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / I-Opener Areas / I-Opener Technical Stuff
Starting Jailbait Linux to X without a login
Jailbait Linux Customization

New MessageStarting Jailbait Linux to X without a login (modified 0 times) northstar
Profile | Email
Does anyone have the information available that they could share to have X automatically start without any login when just turning on the iOpener
12-18-2000 11:35:19

New MessageRE:Starting Jailbait Linux to X without a login (modified 0 times) no_nick
Profile
Northstar: I had that in the last thread you were reading (http://www.linux-hacker.net/cgi-bin/UltraBoard/UltraBoard.pl?Action=ShowPost&Board=technical&Post=1832&Idle=0&Sort=0&Order=Descend&Page=0&Session= )!

Scroll down to just before halfway. Since the user running X will have no password anyway, you might want to just go ahead an add in a whole new user to /etc/passwd so that you still have a regular non-root user (without startx as a a "shell") to log in with if you want to (although I never use the one I left for myself).

To ass a new user, just remount / read-write and use vi to add another line with the right number of fields. You could even copy the line from the above link, so long as the user ID number doesn't conflict with the other user on the system.

12-18-2000 14:09:23

New MessageRE:Starting Jailbait Linux to X without a login (modified 0 times) northstar
Profile | Email
I tried what you suggested, but you still must enter some thing at the login prompt with a keyboard (or am I missing something??). I would like X to start (and my application which is not a problem to do) without any keyboard strokes.

Just turn on the iOpener and X and the application start.

12-18-2000 14:52:00

New MessageRE:Starting Jailbait Linux to X without a login (modified 0 times) no_nick
Profile
You didn't read the whole of my post. In addition to editing /etc/passwd, you also have to edit /etc/inittab. I defined a new runlevel, number 3 (IIRC, JB6 uses 2 as the default runlevel). For this run level, I don't run a getty, but rather have it log directly in as the username with no password, i.e.:

1:3:respawn:/bin/su - username

I'm not at a linux box now (stuck at work with windows), but I think before it had something like

1:23:respawn:/bin/getty

or something like that. That means that on console 1, it used to start a getty (i.e. a login manager) for runlevels 2 and 3. Now, with the changes I made, when it boots into run level 3 (set in inittab on the default line, forget exact syntax, but is usually the first non-comment line) it will not start a getty but rather log in username, who, according to /etc/passwd runs X as its "shell", so there you go.

If you keep hitting tab during the BIOS' POST, you will get the LILO prompt. If you enter "hdb init 2" instead of letting it go to a default of 3, then you won't boot into X. Nor will you have a getty on the first console, but that is no problem since you can just alt-F2 over to the next one and log in as root there and fix whatever is broken.

12-18-2000 15:08:12

New MessageRE:Starting Jailbait Linux to X without a login (modified 0 times) northstar
Profile | Email
perfect! I relooked at my inittab script and the change to run level 3 must not have been saved.

Works Great!

Are any of the start-up rc scripts not sym links? - Where would I put my program start line if all the rc scripts are links?

12-18-2000 20:20:28

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3