LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-20-2004, 06:23 PM   #1
HadesThunder
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281

Rep: Reputation: 30
Text mode from login


Hi. I have root in my login menu but when I login as root it takes me to GUI mode. I want to know how to get it to start in text mode on startup. Also could anyone tell me what command gets me to run root in text mode while in a users GUI. If you can answer just one of the questions I will be very gratefull. Thank you.
 
Old 04-20-2004, 06:27 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
edit your /etc/inittab

and change this line

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

(it might be id:5:initdefault)

to

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:

save and exit.

for root privelige from a user, open a terminal

~$su<enter>
password<enter root password>
 
Old 04-20-2004, 06:28 PM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
You should be able to hit [ctrl]+[alt]+[f#] at anytime, replacing # with 1 - 6 to get to a terminal login. From there, you can login as any user you want, and have a full CLI. You can switch between the terminals with [alt]+[f#]. To get back to the X-login, hit [alt]+[f7].
 
Old 04-20-2004, 07:12 PM   #4
Gamezace
Member
 
Registered: Apr 2004
Location: NOVA, VT
Distribution: gentoo
Posts: 88

Rep: Reputation: 15
If you are at the console, you can also use the "telinit" command, followed by the appropriate ID. Though this only does you good if you want to switch from 3 to 1 for example - because you would already be in the console ^_^
 
Old 04-20-2004, 09:14 PM   #5
KWTm
Member
 
Registered: Jan 2004
Distribution: Kubuntu 10.04 (Dell Linux-preinstalled laptop + a desktop); Maemo 5 (N900 phone computer)
Posts: 116

Rep: Reputation: 21
text mode as root

HadesThunder:

You didn't specify which distribution of Linux you're using. Is it RedHat 8? Mandrake 9? Slackware 11? (That last one doesn't exist yet, so you must be wrong. :P ) It helps to edit your user profile so we know and can give more specific help.

How to get to root text mode from a graphics screen?

Easiest way: hit Ctrl-Alt-F1.

This gets you to "console number 1", and you can log in as root. You can go to "console number 2", too, with Ctrl-Alt-F2. You can go to "console number 3", too, with Ctrl-Alt-F3. See a pattern developing here?

How do you get back? Well, keep going through consoles. Sooner or later (usually "console number 7"), instead of a text screen, you get a graphics screen, the one that you originally came from.

---- ( end of newbie explanation; the following is optional ) ---


Actually, when you don't have the graphics screen, you can use Alt-F2 instead of Ctrl-Alt-F2, etc. But with the graphics screen, Alt-F2 and Alt-F3 etc. already have other uses, so they made it Ctrl-Alt-F2, Ctrl-Alt-F3 etc. to switch between consoles.

If you don't want to leave the graphics display, you should look for a way to run "terminal" or "shell" or "console" or "konsole" (I'm guessing you use KDE). If you use the default install in Mandrake Linux 9.2, which is what I use, go to K-menu > Terminals > Konsole. There's a computer screen (get it? "console"?) with a seashell (get it? "shell"?)

You should get a text window within the graphics screen, with a prompt: you're already logged on as a normal user. From there, to get to root, type the command "su" (short for "switch user"). It will ask you for a password. Type in root's password, and you're in! When you're done, type the "exit" command to go back to being normal user.

If you want to boot up your computer running only text mode, and you know how to get a LILO prompt, I think you can type "linux runlevel=3" (someone check my syntax) and get text mode. If you don't know how to get a LILO prompt, then you should wait till you know Linux a bit more.

Peacedog's suggestion of editing the inittab file is rather advanced, and results in you *automatically* going to text mode every time you boot. I suspect that if you're at the level where that's what you want, and you know how to fiddle with inittab files, you probably wouldn't be posting your question in a newbie forum. (You can tell that Peacedog's pretty advanced, just from the fact that he's running Slackware. )
 
Old 04-21-2004, 02:23 PM   #6
HadesThunder
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281

Original Poster
Rep: Reputation: 30
Okay the newbie explanation helped but optional stuff I knew already. As I use 9.1, can you recommend 9.2?
 
Old 04-21-2004, 05:58 PM   #7
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
As I use 9.1, can you recommend 9.2?
10.0 is out, if i reccomended anything in the mandrake family, it would certainly be the latest and greatest. if i remember my reading correctly, 10.0 has an option for the 2.6.x kernel, as well as, the 2.4.x series. i don't believe the final release is available for download yet though. hope that helps.
good luck.
 
Old 04-21-2004, 08:35 PM   #8
HadesThunder
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281

Original Poster
Rep: Reputation: 30
I will try Mandrake 10 soon. I have only been around linux for 6 months so I did'nt believe a Mandrake 10 came out , as it seemed to skip from 9.2 to 10. But now I see how it works a bit better. Do you know anywhere where I can get a version of Mandrake 10 with wine or preferably winex (i wish) preinstalled?
 
Old 04-22-2004, 07:49 AM   #9
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
i don't think any version of mandrake comes w/wine or winex preinstalled, however, there are some distro's that do. at one time, you could purchase suse w/the wine rack add in (not sure if that's still available). i believe the latest knoppix has wine installed. there are some others i'm not familiar with. take a look at distrowatch.

http://www.distrowatch.com/

they should have some pretty complete lists of what's available.
good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
auto-login to text-mode? kola Fedora 4 06-14-2010 06:46 AM
gui login failed despite users created. but Text mode + root + startx works OK Emmanuel_uk VectorLinux 2 11-21-2005 04:41 PM
Auto login in the text mode JHR Linux - Software 3 04-23-2005 09:47 PM
Convert video mode from 32 to 24 using text login in CMD (no gui) ? HELP !!! jalalmn Linux - General 6 03-19-2005 06:06 AM
Need to login in text mode kkempter Linux - General 2 12-11-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration