PDA

View Full Version : can't Ping in Root Console to update packages



Drezliok
04-01-2004, 03:12 AM
http://www.knoppix.net/docs/index.php/KnoppixRemasteringHowto

I was following the insturctions, I restarted and remount the drive to get rid of some errors. The dev null one that prevents you from chrooting. Anyways I mounted the drive again after restart and chrooted.

I then mounted the proc part for internet
mount -t proc /proc proc

I tried piing google with ping google.com and god unknown host.

I use cable internet with a linksys router.

I don't know what to put into the resolv.conf file, it's the same as the one thats working to let me post here while I'm trying to figure this out.

Drezliok
04-01-2004, 03:28 AM
Also, I can't remove stuff

apt-get remove <wine>
bash: systax error near unexpected token `newline'


I'm new to bash, very very new.

pythonholumm
04-01-2004, 07:45 AM
quit the root shell then open it again

sbkryan
04-01-2004, 08:11 AM
did you add your DNS to the

/etc/resolv.conf?

Drezliok
04-01-2004, 04:21 PM
quit the root shell then open it again

If I do that I have to re-chroot, is that normal??


did you add your DNS to the

/etc/resolv.conf?

DNS?
I don't know what that is.
ALSO, I can't edit it anyways, it doesn't let me save, am I to open it inside the root shell or in Konquerer/kwrite?

sbkryan
04-01-2004, 11:04 PM
if you mounted the new filesystem using

mount -rw /dev/hda* /mnt/hda*

the * being woteva partion your using - also the a may be b depending on how many hard disks you have

once you have mounted the filesystem you are editing you need to chroot into it

chroot /mnt/hda*/knx/source/KNOPPIX

you then need to mount the proc

mount -t proc /proc proc

once you have done this you will need to add your Domain Name Server(DNS) to the /etc/resolv.conf

If your computer is within a network then your Network Administrator will know the IP address for the DNS. If its a computer at home that is directly connected to the internet you will more than likely need to contact your ISP (Internet Service Provider) for your DNS IP Address

If it a home computer network just use the IP Address of the computer which is connected to the internet

to add it to the /etc/resolv.conf type:-

vi /etc/resolv.conf
then press insert
type nameserver IP of DNS
press ESC
type :wq

this will edit the file using a txt editor vi

to check it is there use step 1 to access the file then you should see the nameserver you typed

press ESC and type :q

~~~~TRY THIS FIRST~~~~

to test to see if you have an internet connection at all while in the chroot enviroment

ping 216.239.59.99

that is an IP Address for www.google.com if you successfully recieve replies then the fault is defiently with your DNS address.

hope it helps

Ryan