LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-24-2003, 10:52 PM   #1
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Rep: Reputation: 30
/etc/x11/XF86config


When I log in as root and try to run /etc/x11/XF86Config it says
Code:
/etc/x11/xf86config
Could not run specified command.
How can I can I get to it?
 
Old 07-24-2003, 10:54 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Well you don't actually run that file, it's a configuration file for X, so you edit to your needs using a text editor.

Then you startx and test out your changes. Be sure to back up ANYTHING you change, it could always make life easier

Cool
 
Old 07-24-2003, 11:25 PM   #3
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Original Poster
Rep: Reputation: 30
yeah but how do how do I save it out of x?
 
Old 07-24-2003, 11:35 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well an example on making a backup up ( i presume thats what you mean when you say "save it out of x") ..
mv /etc/X11/XF86Config /etc/X11/XF86Config.backup
 
Old 07-24-2003, 11:37 PM   #5
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Original Poster
Rep: Reputation: 30
except I cant cd into the directory it says no such file or directory.
 
Old 07-24-2003, 11:42 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Master got confused :}

xf86config *IS* an executable, it just
doesn't live in /etc/X11 ... ;)

It's
/usr/X11R6/bin/xf86config
and
/etc/X11/XF86Config

As DrOzz suggested, copy the orignal
file (or move it) and then run xf86config.

Cheers,
Tink
 
Old 07-24-2003, 11:42 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
To edit XF86Config, you would just use your favorite text editor. You would want to first exit from X, modify XF86Config, then startx again to test your changes. As already noted, backup the file first.

Could it be that you are confusing this with: /usr/X11R6/bin/xf86config which does take you through a series of configuration questions? -- J.W.
 
Old 07-24-2003, 11:59 PM   #8
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Original Poster
Rep: Reputation: 30
no I log'd outa X and tried gettin to /etc/x11/Xf86config cuz I need to change the vid card driver and a thing w/ my monitor

Ive never really don ne thin like this so how do Iopen a text editor outside of x?
 
Old 07-25-2003, 12:24 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
pico /etc/X11/XF86Config

Of course there's emacs and vi,
but emacs is complex, and vi is
ugly :}

Cheers,
Tink

Last edited by Tinkster; 07-25-2003 at 12:25 AM.
 
Old 07-25-2003, 12:37 AM   #10
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Original Poster
Rep: Reputation: 30
ok I couldent open it with pico so I tried Vi but when I opened it it only had blue ~ <- those things and it said at the bottom /etc/x11/Xf86config[New File] what does it mean "[New File]"? and y did it only have those blue things?
 
Old 07-25-2003, 12:54 AM   #11
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Original Poster
Rep: Reputation: 30
where can I get pico?
 
Old 07-25-2003, 03:23 AM   #12
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Assuming we're talking about RH9 and not slackware

RH9 doesn't have the xf86config program

do

XFree86 -configure

this'll create a file in /root called XF86Config.new

try it out by

XFree86 -xf86config /root/XF86Config.new

If you get a working display and mouse copy the file to

cp /root/XF86Config.new /etc/X11/XF86Config

then

startx

And you can fine tune it using the desktop display manager program thingy

You still might end up having to edit the file manually but try this first, although maybe the reason you're trying to do this at all is cos the initial config failed.

Remember everything is case sensitive so Xf86config isn't the same as XF86Config

Last edited by Looking_Lost; 07-25-2003 at 03:26 AM.
 
Old 07-25-2003, 03:29 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Quote:
Originally posted by SnowSurfAir
where can I get pico?
Pico is installed with pine

And in redhat you've also got Xconfigurator

When you used:
mv /etc/X11/XF86Config /etc/X11/XF86Config.backup (or whatever backup extension you want)
You actually moved the file. I prefer to use cp for that since I'm only editing the file:
cp /etc/X11/XF86Config /etc/X11/XF86Config.backup
And then you'll have the file still there. So now you just need to copy it back:
cp /etc/X11/XF86Config.backup /etc/X11/XF86Config
Assuming again that you used .backup as your "move to" file extension.

Las thing, have you taken a look at:
http://www.linuxquestions.org/questi...ticle&artid=16

HTH

Cool
 
Old 07-25-2003, 03:47 AM   #14
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
As far as I know Xconfigurator isn't supported in RH from 8 onwards I guess that's beside the point anyway they want to edit the file manually
whether it's slack or hat only thing they appear to be doing wrong is forgetting about case sensitivity to get to the right file
 
Old 07-25-2003, 04:01 AM   #15
Sunyard
LQ Newbie
 
Registered: May 2003
Location: american
Posts: 10

Rep: Reputation: 0
i think you should do like that :
#cd /etc/x11/XF86Config
#cp /etc/X11/XF86Config /mnt
Then you edit XF86Config
if you backup file i think it will not recognize your file XF86Config.bk
so you have to save it .
if no you can not startx after.
if get some error i think you get error at FBDEV.
 
  


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
root@localhost:~# xf86config -bash: xf86config: command not found klemen Slackware 17 01-06-2005 02:56 AM
Can't edit /etc/X11/XF86Config file in ANY editor under root! please help Fear58 Mandriva 6 12-12-2004 01:19 AM
Is /etc/X11/XF86Config renamed satimis Fedora 2 08-16-2004 11:04 PM
I edited /etc/X11/XF86config --> How do I refresh it? zepplin611 Linux - Newbie 4 08-09-2004 10:14 AM
I edited my /etc/X11/XF86Config-4 .... AndreL Linux - Newbie 11 02-28-2004 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:44 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