LinuxQuestions.org
Register a domain and help support LQ
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 04-04-2008, 07:04 PM   #1
goatfromwinnipeg
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Rep: Reputation: 0
How to load KDE(or any gui) from command line


Hello guys, this is my first post and also my very first linux installation. I'm running a dual boot xp pro and mandriva 2008 system with the KDE environment installed. When I boot into linux, I login as the user I created(not my root), and it goes directly into the command prompt. How can I load the GUI??? I have not learned or been able to find a command list for this OS. Any info is appreciated as I would love to start using this OS and learning how to use it.
 
Old 04-04-2008, 07:09 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I think you use startx or startkde.

But usually, with a fresh install of something like Mandriva, you should get a GUI by default, unless your video card drive is borked. So I would look at the output of dmesg | more and look at the logfiles in /var/log, probably syslog and xorg.log
 
Old 04-04-2008, 07:20 PM   #3
goatfromwinnipeg
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Original Poster
Rep: Reputation: 0
-bash: startkde: command not found

is my response to either startkde and simliar to startx
 
Old 04-04-2008, 07:35 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Have you poked at the log for xorg yet? Mandriva is usually very newbie friendly, so I suspect the driver isn't loading properly.
 
Old 04-04-2008, 07:40 PM   #5
goatfromwinnipeg
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Original Poster
Rep: Reputation: 0
how do i check the log?? Sorry I am the utmost of newbies here please understand.
 
Old 04-04-2008, 07:49 PM   #6
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
To change directories, use cd. The root of the filesystem is "/". So to change to the bottom of the tree, type cd /. To list contents, type ls. You should see /var as one of the options. If you were to continue using cd and ls, you could "cd" your way to the right directory. To go quick, just do cd /var/log/. Then list the contents with ls. There should be a file called xorg.log (or maybe Xorg.0.log). To read it, just type more Xorg.0.log. Spacebar will move you through toward the ends of the file.

Try reading the output and look for something that looks like "Failed to load" or whatnot. You may just need to alter the video driver used.
 
Old 04-04-2008, 07:54 PM   #7
goatfromwinnipeg
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Original Poster
Rep: Reputation: 0
the only logs I have available in that directory /var/log/ are auth.log, drakxtools.log, security.log, user.log, boot.log, lastlog, prcsys.log, syslog, faillog, and tallylog.

X*.log isn't there.
 
Old 04-04-2008, 08:01 PM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
It sounds like you might not have the Xorg server or KDE installed. Use your package manager and search for packages with xorg in their name.

Otherwise, you could simply enable init level 5 as the default. You can do that in mcc or you can edit the /etc/inittab file.

example:
Code:
sudo sed -i '/:initdefault/s/id:[35]:initdefault:/id:5:initdefault/' /etc/inittab
If xorg, kde & kdm (or gdm) are installed, you can try starting the graphical system on a one shot basis with "sudo /sbin/init 5".

Last edited by jschiwal; 04-04-2008 at 08:03 PM.
 
Old 04-04-2008, 09:05 PM   #9
goatfromwinnipeg
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Original Poster
Rep: Reputation: 0
when i try those codes you suggested I get -bash: sudo: command not found
 
Old 04-05-2008, 03:34 AM   #10
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 252

Rep: Reputation: 66
Sounds like you have an incomplete or corrupted installation. What disc did you use to install - ONE, Free? Did you check the md5sum of the ISO you downloaded? Did you set your burning software to verify the burned disc? This link may help:

http://wiki.mandriva.com/en/Docs/Ins..._does_not_work

Jim

Last edited by jkerr82508; 04-05-2008 at 03:36 AM.
 
Old 04-05-2008, 06:08 PM   #11
Doctorzongo
Member
 
Registered: Mar 2008
Distribution: Fedora 11
Posts: 72

Rep: Reputation: 15
Quote:
Originally Posted by goatfromwinnipeg View Post
Hello guys, this is my first post and also my very first linux installation. I'm running a dual boot xp pro and mandriva 2008 system with the KDE environment installed. When I boot into linux, I login as the user I created(not my root), and it goes directly into the command prompt. How can I load the GUI??? I have not learned or been able to find a command list for this OS. Any info is appreciated as I would love to start using this OS and learning how to use it.
Welcome to Linux!

To boot into a GUI (This holds true for most distrobutions), type
Code:
startx
For me, that was a blank screen and then text again -- loads of text, and it printed out 'Depth of 8 not supported by driver.'

If that happens, go into root (type 'su') and edit your xorg.conf file. To do this, type
Code:
vim /path/of/xorg.conf
where /path/of equals your xorg.conf file (I cannot remember where that is, sorry.)

To edit with vim, though, you will need to know the following commands:
Code:
i = insert mode. When you are in insert mode, you can type text. Press the escape key to exit.

:w X = write file as name X.

:q! = Exit from editing (if you have not saved, this will not do anything to the file)

:x = Saves and Exits. DO NOT USE A CAPITAL X!!!
Then, find the line:
Code:
driver: XX
(XX equals your driver -- for me it was fglrx)

Replace it with:
Code:
driver: vesa
Also, you may want to correct your screen resolution. It's a good idea to put a comment by anything you change, saying what the original item was. Do this by putting a # in front of your text.

Then type 'exit' to get out of Root.

Type 'startx' again and it should work.

Good luck!

Edit: A good book for Linux commands is Linux System Commands. Here is the Amazon page for it: http://www.amazon.com/Linux-System-C.../dp/0764546694

Last edited by Doctorzongo; 04-05-2008 at 06:39 PM.
 
Old 04-05-2008, 06:14 PM   #12
Doctorzongo
Member
 
Registered: Mar 2008
Distribution: Fedora 11
Posts: 72

Rep: Reputation: 15
Quote:
Originally Posted by goatfromwinnipeg View Post
when i try those codes you suggested I get -bash: sudo: command not found
I haven't used Mandriva too much ... but if it's like other Distro's, your not in the sudoers file.
Go into root (command: su) and edit the sudoers file.

It's located at: /etc/sudoers, but it needs to be done by type the 'visudo' command.
 
Old 04-06-2008, 04:23 PM   #13
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
If you try to run startx, and get file not found, su to root and install the startx package:
Code:
[user@localhost ~]$ su
Password: (enter your root password here)
[root@localhost user]# urpmi startx
If the startx command fails, or can not be installed, you can run mcc (as root) from the command line. You will get a text based menu on screen. Press the tab key to move the cursor to the list of actions, then the down arrow key to navigate to the Display menu item. Press the tab key to move the cursor to the Yes choice and press the Enter key to open xfDrake (the Mandriva Xorg configuration utility), then follow the prompts to configure you video card.

HTH,
 
Old 04-24-2008, 11:48 AM   #14
Bill Johns
Member
 
Registered: Mar 2005
Distribution: Zenwalk for now
Posts: 82

Rep: Reputation: 15
In my good old Mandrake 10.1 which is what I think became mandriva years ago, I just type KDE at the command line.
There is a start up script, but since its been along time playing with linux I forget where, you just put the kde command in there and then it will automaticly start at boot time.
 
  


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
command line vs gui resnostyle Linux - Newbie 19 05-19-2006 08:24 AM
Suse 9.1 GUI will not load: Only command line atif-1 Linux - General 1 09-29-2005 07:22 PM
command line and GUI kpachopoulos Linux - Newbie 3 08-22-2004 10:13 AM
Command line to GUI Jon84 Slackware 34 03-12-2003 09:54 PM
Need help getting to GUI from command line Negativ13 Linux - Newbie 6 02-25-2003 04:20 PM


All times are GMT -5. The time now is 03:26 PM.

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