LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2006, 12:17 AM   #1
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Rep: Reputation: 30
Cool desktop GUI mode


Hi all,
my machine os:linux opensuse 10.1 could not start in desktop GUI mode, it starts in CLI mode. I startx but still it goes to cli mode. Could someone help to let the machine goes directory to GUI mode ?
... thanx
Mohammed Hammam
 
Old 06-21-2006, 12:33 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Can you actually start the X server when you run "startx", or is it giving you errors and dropping you back to the console? If so, please post those errors.

If you can "startx" successfully, then you need to change your default runlevel in /etc/inittab. For most distros, I belive it's runlevel 5 for a GUI, so look for the line that says

id:3:initdefault:

and change the number accordingly. At the top of the file, there should be some comments about the runlevels, so use that to determine whether it should be 5 or not.
 
Old 06-21-2006, 12:33 AM   #3
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
you should search the forums as the solution has been given AFAIK.
 
Old 06-21-2006, 12:35 AM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
What error messages do you get when doing [b]startx[b]? If nothing, then read /var/log/Xorg.0.log (or if I recall the file name wrong, cd into /var/log and check out what it was).

There's something preventing the X server from starting, it seems. Have you upgraded your software, drivers or hardware perhaps? Anything that might have anything to do with your display?

Though this will most probably not work, you can try this: most of the Linuxes I've seen use runlevel 5 for graphical use and runlevel 3 for CLI; you could try switching back and forth (to 3 to 5 again) to see if the error comes up again. Also if you try to fix something, this way you can see if it helps; probably you'll need to edit your /etc/X11/Xorg.conf configuration file. To change the runlevels:

Code:
init 3
whis will get you to runlevel 3, command line, and
Code:
init 5
should get you to GUI environment, but if the config is incorrect or there is some other problem, this will just bring you back to console and give some errors (which are useful in solving the situation).

Post here the errors you get when X comes down (after startx for example).

EDIT: oh man I dislike this; there are 3-10 persons viewing a thread, everybody writing a "quick reply" simultaneously and then there suddenly are 10 almost identical posts, which takes up space and won't help anybody..I wonder why they still haven't made any warning/locking system to this, even a small pop-up OK-box telling you somebody else is just writing an answer..and yes, I've added that to the "wishlist"

Last edited by b0uncer; 06-21-2006 at 12:38 AM.
 
Old 06-21-2006, 12:44 AM   #5
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
when i typed startx it reurned me back to the console saying No startx installed. Even I went /etc but I could not run edit. by the way I did change to line /de/hdc7 in fstab, saved and then reboot and here the problem arises.
 
Old 06-21-2006, 12:45 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What on Earth do you mean by "I did change to line /dev/hdc7 in fstab"? What did you change and why? :/
 
Old 06-21-2006, 12:53 AM   #7
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
I have a dual system in my machine 1-winxp 2-opensuse 10.1
I ran out of spaces in linux named / So I format a patition in winxp from linux /dev/hdc7 and I changed a line in /etc/fstab and saved then reboot ...
 
Old 06-21-2006, 12:54 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What changes did you make to the file?
 
Old 06-21-2006, 12:58 AM   #9
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
I change a line in /etc/fstab called /dev/hdc7
to
/dev/hdc7 /usr ext3 default 1.1
Could I edit the fstab through console ?
 
Old 06-21-2006, 01:02 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Yes, of course you can edit fstab from the console. Use any console based text editor, e.g. pico (or nano), or vi.

Are there any files on that partition? If not, that'd explain why startx can't be found (it usually lives in /usr/X11R6/bin). You might want to revert the file to what it was before and see if that helps.
 
Old 06-21-2006, 01:28 AM   #11
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
how to delete characters in line, save in vi
 
Old 06-21-2006, 01:30 AM   #12
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Not sure about deleting stuff, but to save, I believe it's ":w" (and to save and quit, ":wq"). Look around for a vi tutorial.
 
Old 06-21-2006, 01:45 AM   #13
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
dd deletes a line
cc changes a line
yy copies a line
p pastes a line below cursor
P pastes a line above cursor
d2 deletes 2 lines below cursor
y2 copies 2 lines below cursor
yx copies x lines below cursor
dx deletes x lines below cursor

..

hope you get an idea.
 
Old 06-21-2006, 01:52 AM   #14
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
it seems that the file fstab has been corrupted, how I return it back.
Now there is login screen shown when I entered my user id and password another screen show says 'Could not star kstartconfig. Check your installation', when I press ok it returned back to the same login screen.
How I handle this pls instead of re-install opensuse 10.1 ?
 
Old 06-21-2006, 01:56 AM   #15
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Usually when you edit a file, a backup is created with the same name, but followed by a tilde (~). So, check if you have a file called "fstab~" and just restore that, with "mv fstab~ fstab".
 
  


Reply



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
Change from GUI mode to text mode alexr186 Linux - Software 4 01-08-2009 06:56 AM
Remote desktop software to control desktop GUI? Phaethar Linux - Software 3 06-27-2008 09:30 AM
How do i swith from GUI mode to CLI mode in fedora core 3 tinfocoms Fedora 5 09-08-2005 07:23 AM
cannot login to gui mode.. aaru_ali Linux - Newbie 3 11-08-2004 08:23 AM
Graphical mode to GUI Mode mikeshn Linux - General 5 04-10-2002 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:46 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
Open Source Consulting | Domain Registration