LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't Start X (https://www.linuxquestions.org/questions/linux-software-2/cant-start-x-95574/)

ch4s3r 09-22-2003 01:44 PM

Can't Start X
 
when i type "startx" in console this is what happens:
-------------------------------------------------------------------------
XFree86Version 4.3.0
Release Date: 27 February 2003
Xprotocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.21.0.13mkdsmp i686 [ELF]
Build Date: 12 March 2003
Module Loader Present
Markers: (--)Probed, (**)From config file, (++) Default Setting
(++)from command line, (!!)notice, (II) informational,
(ww)Warning, (EE)error, (NI)not implimented, (??)Unkown

(==)Logfile: "/ver/log/XFree86.0.log, time <gives time>
(==)Using Config file "etc/X11/XF86Config-4"
Parse Error on line 77 of sections Screen in file /etc/X11/XF86config-4
The DefauldDepth Keword requires a number to follow it
(EE)Problem parsing the config file
(EE)Error from xf86 Handel ConfigFile ()
Fatal Server error:
No Screens found

XI0: fatal IO error 104 (connection-reset by peer on X server ":0.0"
---------------------------------------------------------------------------------

I want to fix this so i can get back to the gui so i can start to learn linux! I have no idea how to use linux but i did have a gui before and all of a sudden when i try it this happens. please help i F*ing hate using windows.

tangle 09-22-2003 01:55 PM

Type xf86config at the command line, it will setup X. After that type startx to start X (the GUI).

You will need to know your graphics card make, model and amount of ram. You will also need to know your horizonal and vertical refresh rates.

Mara 09-22-2003 02:01 PM

You have an error in /etc/XF86Config-4 file, line 77. It seems that you have something like:
DefaultDepth
but there should be something like
DefaultDepth 24
You need to edit the file and fix it. I don't know which ones you have, but you should have 2-3 different text mode editors.
Log in as root, then try one of the following:
vim /etc/X11/XF86Config-4
joe /etc/X11/XF86Config-4
mc
To run vim correctly, you need an introduction to its commands (and shortcuts), so get one before trying.
Joe is easier to use, you move using arrows, save using ctrl+ks, save & exit ctrl+kx.
MC is a file manager with a build in editor. If you have it installed, it should be the easiest. Run it, browse to /etc/X11, then press F4 when you're on XF86Config-4. You save using F2.

ch4s3r 09-22-2003 03:10 PM

thanks a lot for your help

ch4s3r 09-29-2003 10:06 PM

I've been trying for weeks to get the xf86config to setup my startx. I go through the whole process of setting up everything and i end up with the same original result! i need some guidance please!

linuxetcx11 09-29-2003 11:55 PM

If you're trying for weeks to get 1 thing to work that too long. Here's what i would do and what I did. Get a copy of Redhat 9. Install it, if you mess it up, install it again, and so on, and so on. This way you'll eventually learn what makes linux tick, and what stops it in it's tracks. At least using this method you'll have a working system to start with, you wont have to mess with setting up xfree86 right off the bat.

And just incase you want to try to fix your XF86Config file. I've included a copy of mine so you can cross reference.

# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
# Load "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
Option "Resolution" "800"
EndSection

Section "InputDevice"

# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
Option "Buttons" "5"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Unprobed Monitor"
HorizSync 31.0 - 130.0
VertRefresh 48.0 - 170.0
ModeLine "1600x1200" 162.0 1600 1680 1872 2160 1200 1201 1204 1250 -hsync +vsync
ModeLine "1152x864" 143.4 1152 1248 1376 1568 864 865 868 915 -hsync +vsync
ModeLine "1024x768" 139.1 1024 1120 1232 1408 768 769 772 823 -hsync +vsync
ModeLine "800x600" 84.0 800 872 960 1088 600 601 604 643 -hsync +vsync
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 4 (generic)"
VideoRam 131072
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection


All times are GMT -5. The time now is 09:15 PM.