[SOLVED] How To Edit Hosts File?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] How To Edit Hosts File?

Postby Kramer » Jul 14th, '12, 21:43

Really dumb question but I can't figure it out. I am new to this distro but not to Linux, must be having a brain fart. I know I can add entries using the mcc but prefer to add all the entries at once instead of one at a time. Thanks!
Last edited by Kramer on Jul 15th, '12, 00:36, edited 1 time in total.
Kramer
 
Posts: 3
Joined: Jul 14th, '12, 21:39

Re: How To Edit Hosts File?

Postby alf » Jul 14th, '12, 21:54

try this
Code: Select all
mcedit /etc/hosts
for windows problems reboot; for linux problems be root
alf
 
Posts: 326
Joined: Apr 1st, '11, 23:07
Location: DE Paderborn

Re: How To Edit Hosts File?

Postby Kramer » Jul 14th, '12, 22:24

Nope, didn't work. Just says command not found.
Kramer
 
Posts: 3
Joined: Jul 14th, '12, 21:39

Re: How To Edit Hosts File?

Postby jkerr82508 » Jul 14th, '12, 22:36

Provided you become root, then you should be able to use any text editor. (To use mcedit you would need to install the midnight commander package.)

Code: Select all
su -
urpmi mc
mcedit /etc/hosts

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: How To Edit Hosts File?

Postby Ken-Bergen » Jul 14th, '12, 22:41

For what it's worth mcedit is a cli tool so just
Code: Select all
su
will do. :)
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: *Solved* How To Edit Hosts File?

Postby Kramer » Jul 15th, '12, 00:37

Thanks for the help guys, I got it sorted thanks to you.
Kramer
 
Posts: 3
Joined: Jul 14th, '12, 21:39


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest