LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   HELP!! '/etc/x11/' disappeared!! No GUI!! (https://www.linuxquestions.org/questions/linux-newbie-8/help-etc-x11-disappeared-no-gui-311600/)

gogogadgetearl 04-10-2005 02:18 AM

HELP!! '/etc/x11/' disappeared!! No GUI!!
 
I'm new to Linux and I was trying to set up my nVidia 5900 with TwinView on SuSE 9.2. I logged in as root, made a backup of '/etc/x11/XF86Config', and then proceded to edit the current one. Hit Ctrl+Alt+BkSp and then BANG! console login. I know only enough about the Linux console to look around and maybe copy some stuff. So, I logged into the console as root, and tried 'cd /etc/x11'...no go. Then I tried 'cd /etc' then 'ls' to see what was there...no 'x11' directory at all!! What happen? [Someone set up me the bomb? ;-)]

Any ideas? Will I have to do a reinstall of SuSE to restore the GUI?

Gay R0b0t 04-10-2005 02:50 AM

try running yast from the command line.
eg (as normal user):
Code:

su -c yast
then go to 'install and remove software' and (re)install XFree86 (or xorg, which ever is there, probably XFree86).
once XFree86 is installed, type:
Code:

init 3 && sax2
This will allow you to easily configure your x-server.
Once done, type:
Code:

init 5
This should restart the x-server.

If it didn't restart, go back to your normal user (su your_username_here)
and type startx.

goodluck, xservers are a pain.

edit:
fixed a couple of typos.

makuyl 04-10-2005 06:17 AM

Is this: "/etc/x11" a typo while the dir name is: /etc/X11

gogogadgetearl 04-10-2005 11:27 AM

I didn't see x11 OR X11 when I ran 'ls' on the '/etc/' directory. I'm running YaST under the console right now. (Thanx R0b0t.) Apparently, it uses xorg (I couldn't find anywhere that it mentioned XFree86). So, when I did a search for xorg, it brought back a list of about 20-30 items that have to do with xorg. Do I need to install all of them? Will it automatically download/install any/all dependancies?

masonm 04-10-2005 11:29 AM

Every Linux system I've ever seen it's X11, not x11.

gogogadgetearl 04-10-2005 12:09 PM

Cool, thanx guys. I'm back up and running in KDE now. But, I've been using the Gentoo TwinView Wiki, and I have a few questions.

1) My nVidia 5900 has 1 DVI-out and 1 VGA-out. Currently, the monitor hooked up to the VGA-out is recognized as the Primary Monitor. (I say that because the SuSE login is on the VGA monitor, and so is the KDE Taskbar - I know I can drag it to the other monitor, but I'm a little obsessive-compulsive [aren't we all?], and it would make me fell better.) I would like the monitor on the DVI-out to be the Primary. (DVI monitor is on the left, VGA monitor is on the right.) Anyone know how to do that?

2) The Wiki mentions to edit either 'XF86Config' or 'xorg.conf'. I've found that I have both. Which one is wisest to edit? Does this also mean that I have BOTH XFree86 and xorg on my system? If so, can this cause problems?

makuyl 04-10-2005 02:10 PM

1) First you lift the left monitor out of the way, then you move the right monitor to the left and the one that used to be on the left to the place that's now freed by the one you moved to the left. Sorry, couldn't resist :)

2) Find out which one you're using. Try "top" and see close to the top which one it is or do" pstree|grep X"

gogogadgetearl 04-10-2005 03:58 PM

1)LOL!! Thanx... :rolleyes:


2) I didn't understand what "top" meant (like I said, "I know only enough about the Linux console to look around and maybe copy some stuff."). BUT, I did, on a wild guess, type "pstree|grep X" into Konsole and this is the result--
Code:

├─kdm─┬─X
I have no idea what it means (or if I did it correctly). Can anyone tell me?


3) I've attempted to run the non-Xinerma TwinView, but now I'm only getting output to the VGA-out monitor. Any ideas? Here's the contents of xorg.conf (AND XF86Config - everytime I edit one, the other has magically changed to match :confused: )--
Code:

# /.../
# SaX generated X11 config file
# Created on: 2005-04-10T15:31:31-0500.
#
# Version: 4.8
# Contact: Marcus Schaefer <sax@suse.de>, 2002
#
# Automatically generated by [ISaX] (4.8)
# PLEASE DO NOT EDIT THIS FILE!
#

Section "Files"
  FontPath    "/usr/X11R6/lib/X11/fonts/misc:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/local"
  FontPath    "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/Type1"
  FontPath    "/usr/X11R6/lib/X11/fonts/URW"
  FontPath    "/usr/X11R6/lib/X11/fonts/Speedo"
  FontPath    "/usr/X11R6/lib/X11/fonts/PEX"
  FontPath    "/usr/X11R6/lib/X11/fonts/cyrillic"
  FontPath    "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/latin2/Type1"
  FontPath    "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/kwintv"
  FontPath    "/usr/X11R6/lib/X11/fonts/truetype"
  FontPath    "/usr/X11R6/lib/X11/fonts/uni:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/CID"
  FontPath    "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/hellas/Type1"
  FontPath    "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/xtest"
  FontPath    "/opt/kde3/share/fonts"
EndSection

Section "ServerFlags"
  Option      "AllowMouseOpenFail"
  Option      "RandR" "on"
EndSection

Section "Module"
  Load        "dbe"
  Load        "type1"
  Load        "freetype"
  Load        "extmod"
  Load        "glx"
  Load        "v4l"
EndSection

Section "InputDevice"
  Driver      "kbd"
  Identifier  "Keyboard[0]"
  Option      "Protocol" "Standard"
  Option      "XkbLayout" "us"
  Option      "XkbModel" "pc104"
  Option      "XkbRules" "xfree86"
EndSection


Section "InputDevice"
  Driver      "mouse"
  Identifier  "Mouse[1]"
  Option      "Device" "/dev/input/mice"
  Option      "Name" "Microsoft IntelliMouse?? Explorer"
  Option      "Protocol" "explorerps/2"
  Option      "Vendor" "Sysp"
  Option      "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
  DisplaySize  340 270
  HorizSync    30-83
  Identifier  "Monitor[0]"
  ModelName    "BENQ FP737S-D"
  Option      "DPMS"
  VendorName  "BNQ"
  VertRefresh  43-76
  UseModes    "Modes[0]"
EndSection

Section "Monitor"
  Option      "CalcAlgorithm" "CheckDesktopGeometry"
  HorizSync    30-83
  Identifier  "Monitor[1]"
  ModelName    "BENQ FP737S-D"
  VendorName  "BNQ"
  VertRefresh  43-76
  UseModes    "Modes[1]"
EndSection


Section "Modes"
  Identifier  "Modes[0]"
  Modeline        "1280x1024" 117.45 1280 1368 1504 1728 1024 1025 1028 1062
EndSection

Section "Modes"
  Identifier  "Modes[1]"
  Modeline        "1280x1024" 117.45 1280 1368 1504 1728 1024 1025 1028 1062
EndSection


Section "Screen"
  DefaultDepth 16
 SubSection "Display"
    Depth      16
    Modes      "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      32
    Modes      "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
  EndSubSection
  Device      "Device[0]"
  Identifier  "Screen[0]"
  Monitor      "Monitor[0]"
EndSection

Section "Screen"
  DefaultDepth 16
 SubSection "Display"
    Depth      16
    Modes      "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      32
    Modes      "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
  EndSubSection
  Device      "Device[1]"
  Identifier  "Screen[1]"
  Monitor      "Monitor[1]"
EndSection

Section "Device"
  BoardName    "GeForce FX 5900 Ultra"
  Driver      "nvidia"
  Identifier  "Device[0]"
  Screen      0
  Option      "Rotate" "off"
  VendorName  "NVidia"
EndSection

Section "Device"
  BoardName    "GeForce FX 5900 Ultra"
  Driver      "nvidia"
  Identifier  "Device[1]"
  Screen      1
  Option      "Rotate" "off"
  VendorName  "NVidia"
EndSection


Section "ServerLayout"
  Identifier  "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  Option      "Clone" "off"
  Option      "Xinerama" "off"
  Screen      "Screen[0]"
  Screen      "Screen[1]" RightOf "Screen[0]"
EndSection

Section "DRI"
    Group      "video"
    Mode      0660
EndSection

Section "Extensions"
EndSection

If any of you have ANY suggestions on things to change (or things that have been left out) in this file, PLEASE tell me!! Thanx!!

piscikeeper 04-10-2005 08:23 PM

you could try reversing the ServerLayout to this,it may work.

Screen "Screen[1]"
Screen "Screen[0]" LeftOf "Screen[1]"

you also may want to bump the DefaultDepth to 24 rather than 16.

*edit*just edit the xorg.conf file


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