| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 26817 | 2002-11-06 01:28:00 | Trying to get onto the internet with Knoppix | Kame (312) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 96427 | 2002-11-06 01:28:00 | I know how to get on the internet using the Network Configurator but I'm trying to do it in a console. I am using an ethernet router which is connected to my NIC. The things I've done at a root prompt which I thought would have made my browser work were: ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255 up route add default gw 192.168.1.1 netmask 255.255.255.0 `sudo emacs /etc/resolv.conf` # where I edited it to have nameserver 203.96.152.4 nameserver 203.96.152.12 I tried `sudo emacs /etc/hosts` so I could give my NIC a host name but it was read-only so I couldn't save changes. Have I missed something? I'm still very new to Linux and like doing things in the konsole rather than GUI. I'm just messing around with Knoppix till I save up enough to get another hard drive. I had to remove RH7.3 because I was running out of room on my drives. |
Kame (312) | ||
| 96428 | 2002-11-06 01:40:00 | Since it is based on debian I imagine that the following works: /etc/resolv.conf search paradise.net.nz nameserver 203.96.152.4 nameserver 203.96.152.12 and in another wee file /etc/network/interfaces # The loopback interface #auto lo iface lo inet loopback # The first network card - this entry was created during the Debian installation # (network, broadcast and gateway are optional) # auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.1 This should work or you could use DHCP etc if available. |
gibler (49) | ||
| 96429 | 2002-11-06 02:41:00 | Experimenting is great fun ... but it's nice to be able to save things. I haven't tried this, but you ought to be able to make a disk partition (or even a MSDOS directory) which you can copy the /etc/ tree to. Having done this you can mount it at /etc . You will need to mount it manually each time you boot Knoppix, but it will give you a bit of continbuity between playing sessions. |
Graham L (2) | ||
| 96430 | 2002-11-06 03:00:00 | Hey thanks for the info. I did do the above as suggested but found I still could not connect. So I did what I should have done and that should have been use the network card configurator and find out what it changed. Basically I had all the right places to change the problem was with route add default gw 192.168.1.1 netmask 255.255.255.0 the netmask should have been 0.0.0.0 as I saw when checking the route table but I put 255.255.255.0 thinking it would have to be the same as my networks subnet. I think 0.0.0.0 is considered as all subnets. Now I just have to learn why it wasn't working with the netmask 255.255.255.0 One happy Knoppix User!!! Thanks again KK |
Kame (312) | ||
| 96431 | 2002-11-06 03:04:00 | You can also apparently remaster the CD image i.e with your custom /etc files www.linuxtag.org |
gibler (49) | ||
| 96432 | 2002-11-06 03:13:00 | The gateway is the port to the rest of the world. A mask of 255.255.255.0 will allow it to access only your local network. So it won't be a gateway. ;-) Give it 0.0.0.0, and the world is your oyster. TCP/IP is totally logical. Frustrating, isn't it? |
Graham L (2) | ||
| 96433 | 2002-11-06 03:32:00 | hehe... thanks again Graham. I hate (and also like) how you finally figure out how to do something, it's like beating a game and you'll never go back to playing it again since you've already done what you wanted to accomplish. There's loads of things I can experience using Linux but what happens when you finish all that? Well I can't think of anything to do right now since I've got the net sorted so I think I'll hit those Linux Howtos at http://www.tldp.org and find out anything else I can do. There's also a problem with that link gibler. 'a' and 'c' have a space between it for the word 'action'. Just in case anyone else wants to know how to remaster their Knoppix CD. |
Kame (312) | ||
| 96434 | 2002-11-06 03:55:00 | Hmm... weird. Knoppix is running at 1024x768 and that link appeared all on the one line with the space between 'a' and 'c' but now I'm back on windows and running it at 800x600 and half the link is on another line seperated at the 'a'. Anyway, there is a problem with how many characters fit in a box and I assume the bigger your resolution the more it will fit in a box. |
Kame (312) | ||
| 1 | |||||