LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to modify the XFree file. (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-modify-the-xfree-file-67519/)

|mS|Neo 06-23-2003 02:30 PM

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.

tangle 06-23-2003 02:54 PM

You have to do it while looged in as root.

|mS|Neo 06-23-2003 02:56 PM

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?

tangle 06-23-2003 02:59 PM

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.

|mS|Neo 06-23-2003 03:06 PM

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.

contrasutra 06-23-2003 04:27 PM

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.

tangle 06-23-2003 08:08 PM

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!.

DrOzz 06-23-2003 09:16 PM

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


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