LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-05-2003, 05:54 PM   #1
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Rep: Reputation: 30
How to fix my XF86Config-4 file??


Just when I thought I had linux figured out, I turn around and screw up startx. Here's what happened:

-Changed the mouse resolution to 1600 in the config-4 file.
-I also added a line that was supposed to increase the acceleration of the mouse to two or something. This was directly copy pasted from some online material offering hack tips.


I saved the file and restarted the computer. It then loads up linux like normally, but goes directly to the prompt. I log in as root and type in startx.

Apparantly, the second line that I added had a command (XSET or something like that, I cant remember) which in the verbose said that couldn't be recognized as a command..orr something like that.

So now I can't log into startx or anything. Although I do know what the exact problem is.

My question is this:

Is there any way I could edit or overwrite the file with something workable through the prompt? Or does anybody know an alternative way to get my mandrake working again?

-Thanks

Last edited by flamesrock; 09-05-2003 at 05:56 PM.
 
Old 09-05-2003, 06:01 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
why do you need to start X to edit your config file? just log in as user as usual, then su, vim (or pico or whatever you use) /etc/X11/XF86Config-4. make your changes, and then start X. (edit: ps. you don't need to reboot every time after changing your config file, just start/restart X.)

Last edited by synaptical; 09-05-2003 at 06:05 PM.
 
Old 09-05-2003, 06:04 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,694

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you have DOS experience? If you do, you probably remember Norton Commander. There's something similar in Linux, called Midnight Commander, the command is 'mc' (even if you don't know it, try it, it makes everything easier). If you don't have it installed use
urpmi mc

Then you can navigate to /etc/X11 and edit the file.
 
Old 09-05-2003, 07:15 PM   #4
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
Thanks guys!

It works now. Midnight commander is great.
 
Old 09-05-2003, 07:28 PM   #5
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
 
Old 09-05-2003, 08:31 PM   #6
twinkers
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 153

Rep: Reputation: 30
I wasn't having any problems but did wanna try that mc thing. Indeed it works very nice.

Thanx for the tip
 
  


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
Howto fix split horiz screen in XF86Config Nice-n-Slow Linux - Software 0 11-29-2004 07:10 PM
XF86Config file masterweaver Linux - Software 3 09-16-2004 01:34 PM
where is the XF86config-4 or XF86config file in the fedora? u2911 Fedora 4 07-24-2004 08:38 PM
Wrong monitor settings in XF86config-4 and cant see to fix it meshsmooth Linux - Newbie 4 05-13-2004 07:52 AM
Can i see someone XF86Config File? Kane Linux - Software 1 08-18-2002 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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