LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   change runlevel on boot? (https://www.linuxquestions.org/questions/slackware-14/change-runlevel-on-boot-334658/)

Randall Slack 06-17-2005 02:06 PM

change runlevel on boot?
 
hi all,

just a quick question here,

i've been using xdm to log in, but due its lack of features i need something else,
i'm trying GDM now, but apparently some dependancy missing
(thought i would get an error message at boot, or it would jump to xdm,
i admit i didn't check as thorough as i've should)

it hangs when going into X, have setup up runlevel 4 before. and no way to get out.
next thing i'm thinking of is installing the whole gnome section and remove it later on.
but i wonder, since you can manually boot into your default runlevel with

" bare.i root=/dev/hda3 noinitrd ro "

can you boot into a different runlevel, like this? i've been trying a lot of things, but i can't find much on it on google, or just looking in the wrong place.

anyway, hope somebody knows, otherwise i just install the gnome thing.

much obliged!

Ipolit 06-17-2005 02:15 PM

boot the system with your installation disk, login as root (without password)
mount -t reiserfs /dev/hda1 /mnt
cd /mnt/etc
nano inittab - starts nano editor to edit inittab (if you don't have it try with pico - same procedure)
change
# The default runlevel.
id:4:initdefault: to 3
press ctrl+O to save
press ctrl+X to exit
reboot
now you'll boot in text mode
you can start graphical interface with startx

the line for the mounting deppends on your filesystem and the place of your hd

Randall Slack 06-17-2005 02:27 PM

Great Stuff!!

and i'm in my inittab right now with vi,

but have one other problem, think i removed pico and nano is not default i guess, did tried it earlier and liked it.
the only editor i have left that will work (normally do everything with mc, but doesnt work) is vi,
only the keystrokes in vi are not working, can scrol down to 4, but when i try to edit????

what am i doing wrong here?

just found the button to start the "insert mode" (think it was control?)

i still need to get out now!!

jong357 06-17-2005 02:30 PM

If you use LILO, you can change runlevels right there. Been awhile since I used lilo but get to the built-in 'command prompt' somehow.. ESC or whatever, one of the function keys. Something. Then type
Code:

Slackware 3
If "Slackware" is the title that you use for the linux partition. That will boot slackware into init3....

Sorry for the vaugeness... I'm a grub person myself. Grub can do the same thing, I forget how tho... That will save you the hassle of using a Slackware CD...

jong357 06-17-2005 02:32 PM

"i" for insert. Then edit. "ESC" to exit the editing mode. "SHIFT+Z" to save and then "SHIFT+Z" to quit.

Randall Slack 06-17-2005 02:37 PM

Worked like a charm!!!

have a bautifull darkstar login prompt again,

thnx guys, think i can manage from here.

trickykid 06-30-2005 03:30 PM

Quote:

Originally posted by jong357
"i" for insert. Then edit. "ESC" to exit the editing mode. "SHIFT+Z" to save and then "SHIFT+Z" to quit.
How about a 'Shift+ZZ' to save and quit instead of doing it seperatly.. or :wq! works as well..


All times are GMT -5. The time now is 04:40 PM.