LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2003, 02:30 PM   #1
|mS|Neo
LQ Newbie
 
Registered: Jun 2003
Location: Bergen, Norway
Posts: 4

Rep: Reputation: 0
Unhappy How to modify the XFree config file. (nvidia driver)


Hi all.

Im a n00b in Linux. I've just installed the nVidia drivers, but when im editing the file i cant save it. It says i dont have the right to, even when im root. How shall i edit the X86Free config file? Im using Mandrake 9.1....

Thx for any answers.

Last edited by |mS|Neo; 06-23-2003 at 02:51 PM.
 
Old 06-23-2003, 02:54 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
You have to do it while looged in as root.
 
Old 06-23-2003, 02:56 PM   #3
|mS|Neo
LQ Newbie
 
Registered: Jun 2003
Location: Bergen, Norway
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by tangle
You have to do it while looged in as root.
I dont have a password on my root acount, how can i login as root then? Isn't it enough to write SU in concole?
 
Old 06-23-2003, 02:59 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Yeah, if you su, you assume root privileges. So you are root. If you don't have a password for you root account then just hit enter when promped. Also make a password for you root account. It can be done with the command passwd root.
 
Old 06-23-2003, 03:06 PM   #5
|mS|Neo
LQ Newbie
 
Registered: Jun 2003
Location: Bergen, Norway
Posts: 4

Original Poster
Rep: Reputation: 0
I still cant do it! Is it a way to open the text editor from concole? When i SU it does not aflict the text editor.. So i still cant edit it!
Can u give me what to write in the concole?
thx in advance.
 
Old 06-23-2003, 04:27 PM   #6
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
You have to use a console text editor.

I suggest PICO. Its part of the PINE packages (so install it if the command doesnt work).

Change to the directory you want to edit, and type:

"pico filename"

though if you want to use a GUI editor, as root:

"gedit filename" or

"kwrite filename" should work.
 
Old 06-23-2003, 08:08 PM   #7
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
You can also use vi. CD to the directory then type vi XF86Config. To delete use the delete key, if you want to insert some text hit the I key once and to stop inserting hit the escape key. To exit and save type :wq to exit without saving type :q!.
 
Old 06-23-2003, 09:16 PM   #8
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
so you are using mdk9.1.
so are you sure you are editing the file --> XF86Config-4 <--
with a text editor of your choice?
 
  


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
How to modify a file? kornerr Programming 4 08-08-2005 09:08 AM
modify /etc/network file 08260068 Linux - Newbie 1 03-11-2005 04:47 PM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM
how to modify .bashrc file amadan_in Linux - Newbie 1 01-01-2003 03:55 AM
want to modify xf86config file gonus Linux - Hardware 1 11-07-2002 10:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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