LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-20-2003, 11:42 AM   #1
teamstatic84
Member
 
Registered: Jul 2003
Posts: 123

Rep: Reputation: 15
modifiying XF86Config


I want to modify the /usr/lib/X11/XF86Config file. I want to uncomment the line:

# Option "no_accel"

to:

Option "no_accel"

can someone show me how to do this completely from the commmand prompt, I've done it in X before, but it is no longer possible for me to do that. I was wondering how to do it with gawk or edlin.

Last edited by teamstatic84; 07-20-2003 at 12:00 PM.
 
Old 07-20-2003, 12:10 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Re: modifiying XF86Config

Quote:
Originally posted by teamstatic84
I want to modify the /usr/lib/X11/XF86Config file. I want to uncomment the line:

# Option "no_accel"

to:

Option "no_accel"

can someone show me how to do this completely from the commmand prompt, I've done it in X before, but it is no longer possible for me to do that. I was wondering how to do it with gawk or edlin.
i don't know those editors, but i can tell you how to do it with vim.

first cd to the directory, then open the file with vim XF86Config

scroll down and put the cursor directly over the #, and press the x key. that will delete the comment (#). then do :wq and press <enter>. done. (then go learn vi/vim with vi tutor ).
 
Old 07-20-2003, 12:10 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i use "vi" to edit text files from the command line...

for example,

vi /usr/lib/X11/XF86Config

or

cd /usr/lib/X11/

vi XF86Config

then just hit "i" to get you into "insert" mode... edit what you need to edit, hit ESC, then "ZZ" to write the changes and quit... you'll most likely need to be "root" in this case.

http://www.ctssn.com/linux/lesson4.html

http://www.yolinux.com/TUTORIALS/Lin...vanced_vi.html
 
Old 07-20-2003, 12:25 PM   #4
teamstatic84
Member
 
Registered: Jul 2003
Posts: 123

Original Poster
Rep: Reputation: 15
I used

vi XF86Config

and took out the '#' by pressing 'x' on it.

I then pressed 'w' to save and on the bottom of the screen it says 'recording'.

I then sit there and nothing else happens.

I press 'q' and it does nothing.

I tried pressing esc and it only beeps. How do I get out and save the change?

Last edited by teamstatic84; 07-20-2003 at 12:31 PM.
 
Old 07-20-2003, 12:33 PM   #5
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
look more closely. you have to press the colon first before the w (write) and q (quit):

:wq

the colon is those two little dots before the w.
 
Old 07-20-2003, 12:34 PM   #6
teamstatic84
Member
 
Registered: Jul 2003
Posts: 123

Original Poster
Rep: Reputation: 15
thank you for the condescension and sarcasm to go along with your help.
 
Old 07-20-2003, 12:37 PM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
to write your changes to the file and quit use this:

ZZ

you could also use:

:wq

and then hit "enter"...

you must hit ESC after being in "insert" mode for write and quit commands to work...

if you wanted to quit without saving:

:q

and then hit "enter"...

vi can be kinda weird at first, but once you get the hang of it, you'll use it to configure almost everything via the command line...
 
Old 07-20-2003, 12:38 PM   #8
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
not trying to be sarcastic or condescending, only as clear as possible so you can have success with your objective. sorry if you took it another way. best regards
 
Old 07-20-2003, 01:04 PM   #9
teamstatic84
Member
 
Registered: Jul 2003
Posts: 123

Original Poster
Rep: Reputation: 15
it workerd thanks anyway
 
Old 07-20-2003, 02:00 PM   #10
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Quote:
Originally posted by teamstatic84
it workerd thanks anyway
cool.
 
  


Reply



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 On
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
modifiying ./configure script on apache instalation jmoulinier Linux - Software 0 11-04-2004 04:19 PM
where is the XF86config-4 or XF86config file in the fedora? u2911 Fedora 4 07-24-2004 08:38 PM
Diff btw XF86Config-4 and XF86Config BorgKing Linux - Newbie 1 06-12-2002 01:31 PM
Samba modifiying Win NT file dates: Why twopence Linux - Software 1 10-19-2001 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration