LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-22-2004, 07:45 AM   #1
Gaz85
LQ Newbie
 
Registered: Feb 2004
Distribution: Redhat 9
Posts: 1

Rep: Reputation: 0
Need help on a basic command


Hi guys i am a newbie to linux so please be nice.

I have installed my linux driver for my Vnidia graphics card and now i need to edit the X86CONIF file. I know i need to go in the terminal and be logged in as root nd i know the DIR that its in but what command is it to actualy open the file.

I got all the information ready for editing the file.

I am running redhat 9.

Cheers.

Last edited by Gaz85; 02-22-2004 at 07:54 AM.
 
Old 02-22-2004, 08:22 AM   #2
jib2
Member
 
Registered: Sep 2003
Location: Paris, France
Distribution: Arch x86_64
Posts: 221

Rep: Reputation: 30
from your terminal, su as root then make a backup copy of your XF86Config :
Code:
cd /etc/X11
cp XF86Config XF86Config.old
then type
Code:
vim XF86Config
vim is a text editor ; type i to switch to edit mode;
when you've finished editing the file, press Esc then :wq (colon, w q) to save and quit.
 
Old 02-22-2004, 08:28 AM   #3
closet geek
Member
 
Registered: Apr 2003
Location: England
Posts: 146

Rep: Reputation: 15
Well I'd also use Vim myself, but considering you're a total n00b perhaps you should use kedit instead (again as root) type: kedit XF86Config

If you do want to use Vim then I would just press Esc, then ZZ to save and exit, saves you one key press

cg
 
Old 02-22-2004, 03:31 PM   #4
mary
Member
 
Registered: Sep 2003
Distribution: Gentoo
Posts: 135

Rep: Reputation: 15
Pico is a good CLI text editor for newbies...

pico /etc/X11/XF86Config

But kedit is still easier, if you are using a gui.

Kedit comes up as "command not found" as root for me, another way to start it as root is:

kdesu kedit /etc/X11/XF86Config
 
Old 02-22-2004, 03:37 PM   #5
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
well, you really only need to install the driver whilst X is shutdown; the editing can still be done within the gui (since the old module will still be used); so you can do startx, then in a terminal do su -, (enter root password), gedit /etc/X11/XF86Config (or it might be XF86Config-4)

however, i definitely recommend you use vi or vim (it is a very good editor)

so in a terminal, do vi /etc/X11/XF86Config (or with the -4) and make sure to delete all instances of nv, vesa, Dri, and GLcore

then put in nvidia where nv or vesa used to be and ensure that glx is loading (do /glx to make sure the line is uncommented); before saving, hit ESC, then do shift ZZ to save and exit
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic help on a command Colinux_Tlinux_noob Linux - Newbie 13 10-14-2005 08:43 AM
Basic ls command cookie_ie Linux - Newbie 9 03-22-2005 05:38 PM
command line help - pretty basic Chuck23 Linux - Hardware 6 01-13-2005 10:30 AM
sources of linux basic command digitalbrutus Linux - Software 1 11-03-2004 01:50 PM
Find Command - Basic Question tlb04 Linux - General 3 05-06-2003 08:45 PM

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

All times are GMT -5. The time now is 10:58 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
Open Source Consulting | Domain Registration