LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-07-2004, 07:49 PM   #1
Fear58
Member
 
Registered: Feb 2004
Location: Reno, Nevada
Distribution: Mandrake 9.2
Posts: 221

Rep: Reputation: 30
Can't edit /etc/X11/XF86Config file in ANY editor under root! please help


This is bizarre, I've tryed using the default editor in Mandrake 10.1 official, I just can't hit backspace or enter any new character in the file..... I've done this trying it in my normal user and root, I've also tryed VI in console, it just gives me the error,
"cant find /etc/ as a direct path" or something like that. Please help! I need to edit this one line in the file so I can do my NVIDIA video driver install.
 
Old 12-07-2004, 07:58 PM   #2
EchO
Member
 
Registered: Jan 2002
Location: NY
Posts: 42

Rep: Reputation: 15
as root

nano /etc/X11/XF86Config-4

if you dont have nano try pico

vi as a last resort, in my opinion.
 
Old 12-08-2004, 05:03 AM   #3
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
do you get into edit mode before trying to make your edit? try this, if you're not doing it already....

in terminal as root type........ vim /etc/X11/XF86Config-4 (or xorg.conf, whichever you're using)

hit enter

that will open up the config file in the editor as view only. then hit the i key for insert mode.

now use the page up/page down or arrow keys to navigate to the lines you want to edit. use backspace to remove lines. when you're done editing, hit the esc key to get out of edit mode.

to save the changes & exit, type...... :wq (hit enter)

to exit without saving, type........ :q!

otis
 
Old 12-08-2004, 07:32 AM   #4
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
you should exit any X progs and change to a lower Runtime level

CTRL+ALT+F1
login as root
vi /etc/X11/XF86config-4

(i) to start editing

EsC then ZZ to save and exit
Reboot is best or init 5 should work

when in KDE GNOME
run Tuxracer or
glxgears (in Konsole)

if either fail try installl NViDIA drivers again
 
Old 12-08-2004, 03:58 PM   #5
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally posted by EchO
as root

nano /etc/X11/XF86Config-4

if you dont have nano try pico

vi as a last resort, in my opinion.
Whats wrong with
vi??

it's on every installl? color coded and gets the job done
it's even in Mandrake minimum install why not just get the hang of using it.
 
Old 12-12-2004, 01:10 AM   #6
EchO
Member
 
Registered: Jan 2002
Location: NY
Posts: 42

Rep: Reputation: 15
Quote:
Originally posted by carl0ski
Whats wrong with
vi??

it's on every installl? color coded and gets the job done
it's even in Mandrake minimum install why not just get the hang of using it.
hehe im not very apt at using it ;p
 
Old 12-12-2004, 02:19 AM   #7
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Quote:
Reboot is best or init 5 should work
Not really needed...

service dm stop

edit file

service dm start.
 
  


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
how to edit a file without logging in as root? osat3ch Fedora 3 08-22-2004 12:16 AM
How do i manually edit xf86config file in Debian Delarama Linux - Newbie 9 06-28-2004 03:29 AM
How do I edit XF86Config-4 file? akihandyman Linux - Newbie 2 03-06-2004 07:18 PM
cant edit xf86config file slivuh Linux - Newbie 3 02-26-2004 09:34 PM
How to edit XF86config file with new driver Fear58 Linux - Games 3 02-15-2004 02:10 AM


All times are GMT -5. The time now is 12:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration