LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 03-15-2005, 08:15 AM   #1
jbclarkman
LQ Newbie
 
Registered: Jan 2005
Posts: 27

Rep: Reputation: 15
Boot to Command Prompt


Unfortunatly my linux box is setup to boot to GUI. I can get it to goto a command prompt by switching the VTY's once the GUI is booted. I know the root password and whenever I log in and issue a startx on the root side I get an error saying it is alreadying running.

I cannot use the GUI to log into root because it only shows the available username as being the user that is already created.

Does anyone know how I can get the system to boot just into a command prompt, log in as root, and than startx and do my config changes???
 
Old 03-15-2005, 08:23 AM   #2
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
assuming you are using grub then
when the menu is show enter p it will prompt for a passord enter that
then type e and it will allow you to edit the command line
on the command line you append 3.
This will allow you to goto runlevel 3 where you can login as root and do the rest
--
if you want things to be permanent like this edit the /etc/inittab
change the line
id:5:initdefault:
to
id:3:initdefault:
--
if you are already started X and still want another X session then switch to the terminal and use
startx -- :1
you should be able to switch between the 2 X servers using alt+F7 and alt+F8

Last edited by zeropash; 03-15-2005 at 08:24 AM.
 
Old 03-15-2005, 08:27 AM   #3
jbclarkman
LQ Newbie
 
Registered: Jan 2005
Posts: 27

Original Poster
Rep: Reputation: 15
pressing p didn't work.... any other ideas?
 
Old 03-15-2005, 08:38 AM   #4
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
Ok p is required only if the grub password is configured.
so when you see the grub menu type e. it may show you cuople of lines select the line starting with the kernel and again press e
goto the end of line and add a 3
so the line should look like
kernel ....... 3
now press enter
type b
this should start booting.

Last edited by zeropash; 03-15-2005 at 08:40 AM.
 
Old 03-15-2005, 08:56 AM   #5
jbclarkman
LQ Newbie
 
Registered: Jan 2005
Posts: 27

Original Poster
Rep: Reputation: 15
couldn't get that to work, but i got the whole startx -- :1 to work fine.. However now I get an error saying cannot find dev/mouse no device exsist.... ARRGGGness....
 
Old 03-15-2005, 09:29 AM   #6
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
if you can tell me exactly what is happening when you try that I can help you.
 
Old 03-15-2005, 09:37 AM   #7
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
There is actually a simple way to make root available for gui logon in Mandrake.

Go to the "Configure Your Desktop" app. (In 10.1 it is "Start --> System --> Configuration --> Configure your desktop".) Open the '+' button beside "System" in the Index on the left. Click on "Login Manager". In the panel on the right, click the button at the bottom labeled "Administrator Mode". Enter your root password in the dialog box. Then select the tab "Users". In the middle is a panel listing all users. UN-check the box beside "root" to enable it to be displayed by the login manager.

Click "Apply", close the window, log out, and you should have the option of "root" now available.

Edit: On the other hand, you should not normally log in as root, anyway. Major security hole! The *best* way is to open a terminal window in your gui, and do a "su" command. Then, from that window, as root, do your editing, wither directly in the window using "vi", or "nano", or whatever editor you like, or by issuing a command like "kwrite <filename>" to edit <filename> in a KWrite window. Or you could use the command "kdesu kwrite" to run kwrite as root, from your login.

Last edited by Padma; 03-15-2005 at 09:44 AM.
 
Old 03-15-2005, 09:43 AM   #8
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
Be advised that logging in as root in X is not such a nice idea and hence is not done as default.
 
  


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
Prompt command to...? Kelphyr Slackware 10 10-03-2004 04:42 PM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 07:14 PM
Boot to command prompt tobythelard Linux - Software 4 03-08-2004 02:24 AM
Boot to command prompt directly josejohn Red Hat 5 11-26-2003 07:24 PM
How to recall an old command at the command prompt? J_Szucs Linux - Newbie 9 03-07-2003 12:29 AM


All times are GMT -5. The time now is 04:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration