LinuxQuestions.org
Help answer threads with 0 replies.
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 02-16-2005, 08:41 AM   #1
Ermen
Member
 
Registered: Nov 2004
Location: The Netherlands
Posts: 34

Rep: Reputation: 15
Open config


Hello,

I changed my video card driver in the config file but something went wrong, so now when I boot X won't start. So I have to change the config file again here comes my question; Witch command do i have to use to open it. And what command do I need to save it. Thanks..

Ermen
 
Old 02-16-2005, 09:04 AM   #2
elmafiacs
LQ Newbie
 
Registered: Apr 2004
Posts: 27

Rep: Reputation: 15
Easy.

If you have GNU Emacs installed, try typing 'emacs' in the console and it will start.
Then, type C-x C-f (that is, Control-X then Control-F) and write the path to the config file (usually /etc/XF86Config). Emacs will open it. Then edit what you need to. When you're done, type C-x C-s and Emacs will save it. Then type C-x C-c to exit.

If you don't have Emacs installed, I'm sorry because I don't know how to use vi.
 
Old 02-16-2005, 09:31 AM   #3
Ermen
Member
 
Registered: Nov 2004
Location: The Netherlands
Posts: 34

Original Poster
Rep: Reputation: 15
I Don't believe I have installed Emacs..
I'm even sure I didn't..
There is a very simple command for it but I forgot; such as edit in DOS only for Linux
 
Old 02-16-2005, 09:35 AM   #4
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
hai do this....
$vi filename
or
#vi filename

vi and vim both are same...
i hope this work
 
Old 02-16-2005, 09:37 AM   #5
Ermen
Member
 
Registered: Nov 2004
Location: The Netherlands
Posts: 34

Original Poster
Rep: Reputation: 15
Does that also works for Fedora? or only Mandrake
 
Old 02-16-2005, 09:44 AM   #6
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
hai, i hope that will work in fedora core
but not sure...if that worked use the command to save it

1)after open the file press i to edit the lines.
2)after editing,press ESC and then give the colen( i mean use shift semicolen.
3)type wq for save that file..
 
Old 02-16-2005, 09:48 AM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
VI/VIM and Emacs should be installed on most distros by default, so hopefully the commands will work. If the editors are not there, you can always use alternatives like PICO/NANO.
 
Old 02-16-2005, 09:52 AM   #8
Ermen
Member
 
Registered: Nov 2004
Location: The Netherlands
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bruse
hai, i hope that will work in fedora core
but not sure...if that worked use the command to save it

1)after open the file press i to edit the lines.
2)after editing,press ESC and then give the colen( i mean use shift semicolen.
3)type wq for save that file..
Your a genius, It worked.. Thanks a lot
 
Old 02-16-2005, 09:56 AM   #9
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Also, Nano/Pico are somewhat easier to use than vi(m). You have the commands shown in the lower part of the screen, keyboard shortcuts like Ctrl-X are represented by '^X'.
 
  


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
can't open redhat-samba-config need help nvoke Linux - Networking 7 11-14-2004 06:09 PM
audio device fails to open on arch linux, even after alsa config sether Linux - Hardware 1 10-07-2004 01:43 AM
unable to open firewall-config Baracuda Linux - Security 1 07-29-2004 07:47 PM
How to open config-network in RH 7.1 Foreseeen Linux - Networking 2 07-29-2003 10:06 PM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 01:16 PM


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