LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   X won't start after fresh Debian install (http://www.linuxquestions.org/questions/linux-newbie-8/x-wont-start-after-fresh-debian-install-518757/)

Rahiiyja 01-12-2007 03:47 PM

X won't start after fresh Debian install
 
Hi.
I have recently installed Debian 3.1, after using Slackware 11.0 for some time. The reason I decided to migrate to Debian was mainly apt.
Anyway, I started the installer and chose "desktop environment" as the only package option, since I don't use my computer as a server in any way. Everything went fine and I finally got to the prompt, but when I typed: 'startx' I got the message that X doesn't exist.

Since I did a beginner install and everything went fine I believe that I am just accustomed to using Slackware, should I type something else than 'startx'?

pljvaldez 01-12-2007 04:59 PM

Did you hit the spacebar so that there was a[*] in front of the Desktop option? If not, you installed just a base system with no X.

The nice thing about apt/aptitude is that you don't need to reinstall (although you can if you want). Instead, you can do aptitude install x-window-system-core kdebase I think kdebase is a stripped down version of KDE without games, koffice, etc. If you want full kde, you would use "kde" instead.

Or you can use apt-cache search string to find the package name of the desktop environment you want.

I personally like to build my systems from the ground so that they're lean and mean. I can always add what I want later w/ aptitude.

rickh 01-12-2007 05:01 PM

Most likely you need to type "aptitude install gnome-core gdm" ... assuming you want Gnome. You'd have been way better off to install Etch instead of Sarge.

pljvaldez 01-12-2007 05:03 PM

Quote:

Originally Posted by rickh
Most likely you need to type "aptitude install gnome-core gdm" ... assuming you want Gnome. You'd have been way better off to install Etch instead of Sarge.

He's right. You can do a dist-upgrade before adding your desktop with minimal pain. Just edit /etc/apt/sources.list and change every "stable" or "sarge" to "etch". Then type aptitude update && aptitude dist-upgrade as root.

Quakeboy02 01-12-2007 05:28 PM

"Anyway, I started the installer and chose "desktop environment" as the only package option, since I don't use my computer as a server in any way."

I did this on one of my laptops and got exactly what you describe. I reinstalled with both the top (server) and bottom(desktop) options enabled and it came out OK. I don't know what's going on, other than to note that those two are the default options in the installer.

justin_p 01-12-2007 06:28 PM

What is the output when you type "startx"? Having just completed a fresh etch install last week I had the same error. Once you get the error, post it back.

JimBass 01-12-2007 06:53 PM

It is also posible that aptitude didn't install. Aptitude is a modified version of the command apt-get. First, you should not be running stable. That is not for desktops, stable is ancient, and is designed for servers that you never want to change. For a desktop system, the choices are testing or unstable. I use unstable exclsively on my desktop and laptop. In any case, change every sarge or stable in your /etc/apt/sources.list file to testing. Then you should run:
Code:

apt-get update
apt-get dist-upgrade
apt-get install kde (or gnome, or xfce, or whatever you like)

Also, check out the stickied thread on the Debian forums on how to set up a machine from the base install http://www.linuxquestions.org/questi...d.php?t=224547
peace,
JimBass

craigevil 01-12-2007 09:10 PM

I would go with Etch, newer kernel and way newer apps.

Debian 4.0 Installation Guide
http://d-i.alioth.debian.org/manual/

Sarge is ancient, testing or even unstable is the way to go for a desktop system.

at a text prompt as root use nano /etc/apt/sources.list to edit your sources.list to point to etch

A quick read of the Etch release notes will help you avoid any upgrade issues.
Release Notes for Debian GNU/Linux 4.0 ("etch"), Intel x86 - Upgrades from previous releases
http://www.debian.org/releases/testi...rading.en.html

Quakeboy02 01-13-2007 02:03 AM

"I reinstalled with both the top (server) and bottom(desktop) options enabled and it came out OK."

Don't know what I was thinking of when I posted this. I've just done a fresh etch install to a hard disk I'm messing with, and here is what I did to setup xorg after the Debian install.

1. apt-get install xserver-xorg

When I did step 1, the display suggested that I install these packages, so I did.

2. apt-get install xfonts-100dpi
3. apt-get install xfonts-75dpi
4. apt-get install xfonts-scalable
5. apt-get install xserver-xorg-video-all

The system asked me which video resolutions I wanted to use.

6. apt-get install xserver-xorg-input-all
7. apt-get install xresprobe
8. apt-get install mdetect
9. apt-get install discover1
10. apt-get install discover
11. apt-get install xfonts-base

Restarted the hung gdm with the following
1. /etc/init.d/gdm stop
2. /etc/init.d/gdm start

Magic happened, and I got the graphical login. :)

Hope this helps.

Rahiiyja 01-13-2007 08:11 AM

Hello everybody, thanks for all the help.
Since I cannot install my NIC using the Debian installer (onboard NIC), it is impossible for me to add Etch content at the moment. I am downloading Etch through jigdo and burning it to dvd now.

I see now that Sarge doesn't have X or Gnome, so I guess problem is solved after I've installed Etch. ;-)
I just went with Sarge because "stable" sounded better than "testing".

JimBass 01-13-2007 09:45 AM

The 14 CD set of Sarge has X, but the single CD does not. That is also true of testing. Debian installs with the asumption that you have an ethernet connectionl and grabs all the updates you ask for online.

Testing (Etch) comes with a 2.6.17 kernel now I believe, so it should detect your NIC without a problem. Of course you say DVD install, they might pack all of the 14 CDs onto 2 Dvds, but it is much easier just to get the 150 Mb net install image, and let that rock.

Peace,
JimBass

Rahiiyja 01-14-2007 07:59 AM

JimBass:

Strange, I downloaded the 2 DVD set of Sarge, which I think corresponds with the 14 CD set when it comes to size? But there was no X installed.

rickh 01-14-2007 09:41 AM

Go back and follow the advice given by PJValdez and me in the first two responses. It will install from your DVDs. If that doesn't work, then Sarge is probably too old for your hardware.

It can still be fixed, but Sarge is still a bad idea.


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