Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: whitelines2 on July 04, 2011, 02:39:10 PM
-
I have microcore latest version running on a usb stick. I am using an Ethernet cable, not wireless. When i try something like wget or tce-load i see this:
http://imagebin.org/161417
I took a look in /etc/resolv.conf and it was empty (and read-only). I added nameserver 8.8.8.8 to it but still not working. I do not have nodhcp set as a boot option... anyone have a clue how i can fix this? Thank you.
-
Run the "Network" utility in cpanel.
-
Where is cpanel? I'm using cli only.
-
Right. microcore.
Then you need to use ifconfig to set your ipaddress,
and route to set your default gateway. Then edit /etc/resolv.conf for your nameservers.
-
eth0 doesn't even show up when i do ifconfig...
only have lo.
-
Perhaps your ethernet card requires firmware, or is too new. Check dmesg for a firmware request.
-
Hi whitelines2
Here are the commands I use in a script to set up eth0 on my file server.
pkill udhcpc
ifconfig eth0 192.168.1.47 netmask 255.255.255.0 broadcast 192.168.1.255 up
route add default gw 192.168.1.1
echo nameserver 192.168.1.1 > /etc/resolv.conf
echo nameserver 192.168.1.1 >> /etc/resolv.conf
192.168.1.47 is the address I assign to my network card, adjust the address to match your network.
192.168.1.1 is the address of my router that connects me to the Internet.
If you want to enter them on the command line, precede the commands with the word sudo.
-
There is no reason to put the same nameserver twice in /etc/resolv.conf.
-
Hi gerald_clark
Yeah, I know. I think the script might have come with TC2.1 and I just never removed the extra entry.