LinuxQuestions.org
Register a domain and help support LQ
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 04-22-2004, 07:29 PM   #1
jhelpme1212
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
Editing config files in CUI


Help i am having video problems with xfree how do i edit the config file in /etc/X11
 
Old 04-22-2004, 07:34 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
from a terminal

su -<enter>
password <root password>

pico /etc/X11/XF86Config

pico is a text editor usable from the terminal. what problems are you having?
 
Old 04-22-2004, 08:49 PM   #3
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
or u could enter :
su
password
cd /etc/X11
kedit XF86Config

or u could download a script called "Edit as Root" that will make an option to edit as root if u right click on the file

http://www.kde-apps.org/content/show.php?content=11998
 
Old 04-23-2004, 12:08 AM   #4
jhelpme1212
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks but i am now getting a error
kedit: cannot connect to X server
 
Old 04-23-2004, 12:29 AM   #5
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
are u running it within kde ?

if u cant start kde or anyother WM then u have to use vi or pico

Last edited by heema; 04-23-2004 at 12:38 AM.
 
Old 04-23-2004, 12:33 AM   #6
jhelpme1212
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Original Poster
Rep: Reputation: 0
how would i do that lol
 
Old 04-24-2004, 02:53 AM   #7
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
See PEACEDOGs post (the 1st reply in this thread)

There are lots of esitors you can use, you haight not have all of them installed, and some you might like better than others.

Examples are:

pico
nano
vim
emacs

If you get command not found when you try 'pico' then change 'pico' for 'nano', and repeat until you find one that works.
 
Old 04-24-2004, 09:05 AM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Or do 'man -k edit' and look through the (mostly complete and not too irrelevant) list instead of guessing.

There's also 'mcedit' which is really easy and, if you've got mc, you've got it. And joe. And so on.
 
  


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
editing the kernel config file slzckboy Linux - General 4 09-24-2005 02:48 PM
manually editing firewall config file student04 Linux - Networking 3 09-03-2004 01:03 PM
editing config files.. embarassingly basic question adhara Linux - Newbie 3 12-23-2003 08:27 AM
editing config-2.4.22-10mdk? what i must know debloxie Mandriva 1 12-08-2003 07:33 AM
editing wine config file.... Shantesh Linux - Software 1 09-14-2003 07:59 AM


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