LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-08-2004, 04:59 PM   #1
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Rep: Reputation: 30
Question Deleted /etc/X11 directory, help needed


I was playing around with the XF86 config files, and set something wrong that wouldnt let my x server start. So I deleted /etc/X11 and started up the slackware install CD, said to install all programs from the 'X window system' group. After I boot, I can run startx, but it says it cannot locate /etc/X11/XF86Config, and I cant find the X11 directory in /etc/ either. How can I get it back other than doing a full re-install?
 
Old 03-08-2004, 05:08 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
That's a lot of files that are usually stored there, but reinstalling them should replace the missing files. You may have to recreate the /etc/X11 directory first.

Among the programs that store configuration files there are XFree86 (what a surprise ), font servers (xfs, fs-xtt), some display managers (xdm) and their Session files, and so on. First off you need to recreate the XF86Config-4 file that takes care of XFree86 configuration. xf86cfg is one of the apps that can help you with that.

To cut it short - I don't think a system reinstall is necessary, but it may take some time to get working again. But, to look at it from the bright side - you will probably learn a lot!

Håkan
 
Old 03-08-2004, 05:43 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Alternatively as a second-to-last resort, and if you have a broadband connection, you could download the XFree86 binaries from www.xfree86.org and install them...that should recreate what you need.
 
Old 03-08-2004, 05:44 PM   #4
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Afaik, /etc generally contains configuration files, not programs. This is one reason that reinstalling X wouldn't restore /etc/X11/XF86Config (or /etc/X!!/XF86Config-4)-- X does not come with a "base" configuration file to use as a default no matter what your system (or every distribution wouldn't have an X configuration tool at the end of its install process).

So having deleted the configuration file for X (amazing!), you won't be able to start it until you create a new one.

As noted, /usr/X11R6/bin/xf86config is a program that will help you do that, or -- since this is, after all, Slackware, which is one of the few distros that does not assume you want or will be using X-- you can use the various console based tools to do so manually. I would suggest lynx for Internet searches via Google, man for information on the file itself, and pico to create the text file (pico is installed with pine, a console based mail program, if you don't have it, try vim instead).
 
Old 03-09-2004, 08:02 AM   #5
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Original Poster
Rep: Reputation: 30
I have been running xf86config, but I dont know any of the specifics of my laptop LCD, it was just automatically configured before. I have run it a couple of times with different options, but each time when I try to start X I get something about how the virtual height (0) is too small for the hardware. it needs to be at least 1.

I guess I will just reinstall, I only did the first install 2 days ago, so I wont be losing much.

Thank you
 
  


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
X11 Expert Needed hilltop*Tech Linux - Hardware 4 06-10-2005 10:11 AM
Deleted directory error gfem Linux - Newbie 2 08-25-2004 01:06 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM
Deleted a directory! Can I recover it? 360 Linux - General 2 02-11-2003 12:23 PM
Deleted Directory, how to Recover ?? GT I.N.C Linux - General 5 11-19-2002 09:20 AM


All times are GMT -5. The time now is 11:48 AM.

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