OK all my commands worked except the nameserver one.
better than nothing eh?
what im asking you to do with that command is edit /etc/resolv.conf
/etc/resolv.conf is kind of like a text file in windows.
I need you to edit /etc/resolv.conf so that it says "nameserver 192.168.0.1" If you run the commands below hopefully that will happen
now do this.
sudo ifconfig eth0 up <enter>
sudo ifconfig eth0 192.168.0.46 <enter>
sudo route add default gw 192.168.0.1 <enter>
sudo vi /etc/resolv.conf <enter>
i (YES, just press the letter i!)
<hold down delete until all the text, if any, is gone>
OK, now ill explain what you just did.
sudo ifconfig eth0 up <enter> brings your network interface up.
sudo ifconfig eth0 192.168.0.46 <enter> Assigns the i.p 192.168.0.46 to your computer
sudo route add default gw 192.168.0.1 <enter> Tells the computer that your router is the internet gateway.
sudo vi /etc/resolv.conf <enter> opens up /etc/resolv.conf for editing.
i puts you into "insert" mode.
Holding delete takes all the text out of the file /etc/resolv.conf.
typing nameserver 192.168.0.1 is putting text back into the file /etc/resolv.conf (just like you would if you were typing text into notepad)
pressing escape takes you out of insert mode.
:wq <enter> saves and closes the file /etc/resolv.conf
To test that your internet is up, and I sure hope it is, use this command.
Good Luck I really hope that helps lol.
If not can you show me everything that it said so that I can see where you went wrong.