PDA

View Full Version : Noob question - don't laugh please



Enmity
10-23-2003, 10:36 AM
I'm doing a remaster and I've started it - following the RemasterHowTo in this site.
OK so I'm setting the internet after I chroot - how the heck do I edit /etc/resolv.conf ???? And does it hurt if I'm using an ADSL connection
:oops: I know I am really noobish but I've never had much experience.

rickenbacherus
10-23-2003, 03:59 PM
I would recommend getting yourself familiar with mc. It will make your life easier. So you can simply do mc in a term and then navigate to /etc, arrow down to resolv.conf and hit F4. Make your changes and then F2 to save.

Why do I like mc so much? It's the same whether in text mode or X.

hernan
10-23-2003, 08:19 PM
as long as your connection is not AOL, there is nothing wrong with it.
About editing the file, try eMacs, it's an editing software for terminal.
in the terminal:



emacs /etc/resolv.conf


that'll do it.

ok, bye.

hernan

Enmity
10-24-2003, 11:23 AM
Thanks for the help guys..
I've did what hernan said and tried to edit it while chrooted:

emacs: Cannot connect to X server :0.0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.

So I rebooted and started from scratch BUT editing /<pathofremaster>/etc/resolv.conf BEFORE chrooting. It opened emacs and let me save it after editing.
The internet connection won't work!
I'm sure i got the IP of my ISP's DNS right but when I pinged google I didn't work.
How do I make the internet connection work?
BTW I'm using ADSL/PPPOE configuration script available on the Knoppix 3.2 CD.

Enmity
10-26-2003, 05:19 AM
Might as well bump this or no one will notice :oops:

boochaka
11-04-2003, 11:29 PM
try "emacs -nw /etc/resolv.conf"

or try vi
you'll need to read abit to get vi to work.

or just
echo "nameserver 1.2.3.4" >> /etc/resolv.conf

hope that helps :)

Air-Op
11-07-2003, 10:37 AM
I can't believe I'm responding to this...

nano

is the simplest.
It has the instructions on screen.

If you want to use vim (I'm addicted... but it's not neccisaryily a good thing)

try:
vimtutor
first.