On Sunday 09 Nov 2003 8:46 pm, Kaj Haulrich wrote:
> On Sunday 09 November 2003 07:16 pm, Katherine Catalano wrote:
> > Thanks Richard. I do need further help with this. I know very
> > little about Linux so far.
> > Is this done in bash?
> >
> > Katherine
>
> Katherine, to edit configuration files you can open a terminal
> (console), type "su" (without the " marks) to become root
> (system administrator). When prompted, give your root password.
>
> Now you'll need a text editor to browse and edit your files.
> There are plenty of those already on your system. For example,
> type : "kwrite" or "kate" or "mc" or ........ "emacs" (if you
> are courageous). Then browse to /etc/X11/XF86Config-4 and edit
> as you like. - But save it first under a different name, i.e. :
> "XF86Config-4.old" , just in case. Then, save and exit. To have
> your changes take effect, log out and in again.
>
> Personally, I prefer "Midnight Commander". This is a nice "Norton
> Utilities clone" with lots of options. It is not installed by
> default, but it is on your cd's. Just (in your root console)
> type : "urpmi mc" , and you are done. Then, from a root console,
> type "mc" and enjoy !

Or in good old bash:

    cd /etc/X11
to go to the right directory.

    cp XF86Config-4 XF86Config-4.old
to do the backup of the current version.

Now you can't get into X windows, so kwrite etc are not going to work for you. 
There are several text-mode editors out there, but you would have to install 
them. Emacs and Vi are in the normal install. I prefer emacs, but it's a lot 
more complex to get to grips with, so:

    vi XF86Config-4
to edit the file.

The commands you need to know (all I ever bothered to learn):

cursor keys   - move around the file
i    - enter insert mode; anything you type gets inserted into the file until:
Esc   - leave insert mode
x    - delete next character (or use delete and backspace in insert mode)
:q!<enter>   - exit vi without saving the file
ZZ   - exit vi and save the file.
:help<enter>   - to get help on using vi.

I hope this helps.

-- 
Richard Urwin

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to