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 02-22-2010, 01:42 PM   #1
alexkmoore
LQ Newbie
 
Registered: Feb 2008
Location: Alliston, ON
Distribution: Vista Home (Trying to install Ubuntu)
Posts: 8

Rep: Reputation: 0
Can't Launch GUI from Command Line


I'm have much computer experience but am new to Ubuntu.

I typed in sudo apt-get install ubuntu-desktop and it tells me it's already installed. Good. So it should work. I type sudo/etc/init.d/gdm start and the screen goes blank for 8 seconds three times in a row and then back to the command line. I have also tried gdm start without the path before and it says GDM already running. Aborting!

I have 8.10 and it's a valid disk (no errors).

Can someone help please?
 
Old 02-22-2010, 01:49 PM   #2
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,787

Rep: Reputation: 211Reputation: 211Reputation: 211
Try...

You are logged in, I trust, that is you have a prompt with your user name?

Then try the command "init 5" which should take you to the GUI if the X window manager is running. Otherwise, try "startx" for which you may have to have root privileges .

Last edited by thorkelljarl; 02-22-2010 at 01:52 PM.
 
Old 02-22-2010, 01:52 PM   #3
alexkmoore
LQ Newbie
 
Registered: Feb 2008
Location: Alliston, ON
Distribution: Vista Home (Trying to install Ubuntu)
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the quick reply. I'll try it and will brb
 
Old 02-22-2010, 01:59 PM   #4
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by alexkmoore View Post
I'm have much computer experience but am new to Ubuntu.

I typed in sudo apt-get install ubuntu-desktop and it tells me it's already installed. Good. So it should work. I type sudo/etc/init.d/gdm start and the screen goes blank for 8 seconds three times in a row and then back to the command line. I have also tried gdm start without the path before and it says GDM already running. Aborting!

I have 8.10 and it's a valid disk (no errors).

Can someone help please?
If it's already running try
Code:
sudo /etc/init.d/gdm restart
Also, the GUI is normally on tty7. You can switch to that with CTRL+ALT+F7. This would normally be if you were in the desktop environment and switched ttys with CTRL+ALT+F[1-6].

Quote:
Originally Posted by thorkelljarl
Otherwise, try "startx" for which you may have to have root privileges .
You should not be root when running startx. (Unless you want to run X as root, which you shouldn't do.) Also, startx parses the file ~/.xinitrc, so you would need to have that setup to run your desktop environment. I don't know if Ubuntu has that setup by default, but the basic method would just be to have in it
Code:
exec gnome-session
 
Old 02-22-2010, 02:11 PM   #5
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,787

Rep: Reputation: 211Reputation: 211Reputation: 211
Stand corrected...

I meant "sudo", but if I have correctly read the information posted, it seems that X is indeed running.

Last edited by thorkelljarl; 02-22-2010 at 02:12 PM.
 
Old 02-22-2010, 02:14 PM   #6
alexkmoore
LQ Newbie
 
Registered: Feb 2008
Location: Alliston, ON
Distribution: Vista Home (Trying to install Ubuntu)
Posts: 8

Original Poster
Rep: Reputation: 0
Ok I tried a few things with no effect.

When I typed sudo /etc/init.d/gdm restart it stopped Gnome Display Manager and restarted it, in which case the screen would go black for 8 seconds 3 times in a row again.

I typed exec gnome-session and nothing happened. No error message or anything. I simply was brought back to the prompt.

I also hit CRL+ALT+F7 and all the text went away except for the letter e at the top of the screen on the left.

Not sure what's going on.
 
Old 02-22-2010, 02:15 PM   #7
alexkmoore
LQ Newbie
 
Registered: Feb 2008
Location: Alliston, ON
Distribution: Vista Home (Trying to install Ubuntu)
Posts: 8

Original Poster
Rep: Reputation: 0
Oh yeah init 5 did nothing and brought me back to the prompt
 
Old 02-22-2010, 02:16 PM   #8
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Couple of other questions...

If you installed the normal Ubuntu version (the default download) you should be plopped into the GUI right off the bat. Only the Ubuntu Server edition does not do that by default.

If that failed right off the bat, then it is likely something to do with your video card/graphics driver. (which would also explain why GDM is failing.)

From the command line, do
Code:
lspci | grep -i vga
Post the output; it should give you your graphics card. Ubuntu has a safe graphics mode option you should try booting into as well. Should be an option for that right as you begin to boot somewhere.
 
Old 02-22-2010, 02:17 PM   #9
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Also, Ubuntu 8.10 is going to reach end of life in April, just a couple of months. You might consider trying to install 9.10. That may also solve whatever troubles you're having.
 
Old 02-22-2010, 02:30 PM   #10
alexkmoore
LQ Newbie
 
Registered: Feb 2008
Location: Alliston, ON
Distribution: Vista Home (Trying to install Ubuntu)
Posts: 8

Original Poster
Rep: Reputation: 0
01:00.0 VGA Compatible Controller: ATI Technology Inc Mobility Radeon HD 2400. It has run on my system about six months ago when I told it to install Ubuntu without any changes to my computer so I do know that it is capable of displaying the desktop.

Ok this may be a dumbass move on my part but everytime I restart the computer I have the disc in the tray and hit install Ubuntu. I know I should reboot and select my Ubuntu partition but there is no boot loader screen. It will just load Windows 7 automatically. So when I hit install Ubuntu it then it takes me to the command line after a minute or so of a mostly blank screen with the exception of some error that flashes really quick about starting x manager failed or something like that.

Would it really make a difference if I were to restart without the disc in and set the boot order to my Ubuntu partition? Or could I even be able to do that considering I see no boot loader ever?
 
Old 02-22-2010, 02:43 PM   #11
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Ok, so tell me if I have this right.

1) You installed Ubuntu 8.10 onto your harddisk. Windows 7 was already installed on the harddisk? Or you installed Windows 7 afterwards? If the latter, Windows will overwrite the linux bootloader and you will not be able to boot to Ubuntu until you reinstall GRUB or other linux bootloader.

2) Currently, you are just booting to a live CD. The live CD is giving an error regarding the display, and dropping you to the console.

Given that, the issue is almost certainly to do with the Radeon card. I would try safe graphics mode as I mentioned above, and again, the latest Ubuntu might resolve the problem, since the open source driver for your card has changed quite a bit since 8.10 was released. And, if you install 9.10, you can setup the dual boot again, so you have an option to choose between Ubuntu and Windows.
 
Old 02-22-2010, 03:05 PM   #12
alexkmoore
LQ Newbie
 
Registered: Feb 2008
Location: Alliston, ON
Distribution: Vista Home (Trying to install Ubuntu)
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the tip. You're right about how I should be updating to the newest version. And I did not realise that Micro$oft would wipe out my boot loader. I'll download the new version and give it a shot. Thanks for your time to everyone and the fast replies.

On this website I get replies so much faster than anywhere else.

Alex
 
Old 02-22-2010, 03:20 PM   #13
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,787

Rep: Reputation: 211Reputation: 211Reputation: 211
Do it again...

http://apcmag.com/how_to_dualboot_vi...lled_first.htm
 
Old 02-22-2010, 04:48 PM   #14
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
I recommend 9.04 as it has better support then 8.10 but it is not as unstable like 9.10.
 
Old 02-22-2010, 04:56 PM   #15
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
I have also heard of some unsavory thing about 9.10. I recommend 9.04 as well as it seems much more stable.
 
  


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
How to launch Krfb using the command line? bnj Linux - Networking 5 11-06-2009 09:08 AM
Finding the command line to launch an application from a terminal. cricballa Linux - Newbie 5 09-25-2009 06:08 PM
How do I launch a Java applet using the command line? jacatone Linux - Software 1 01-18-2009 12:01 AM
How do you launch Mozilla Firefox from the command line ? pppaaarrrkkk Linux - Newbie 1 10-07-2005 03:06 PM
How to find the command line to launch app ScreeminChikin Linux - General 2 09-19-2002 12:39 AM


All times are GMT -5. The time now is 06:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration