S.L.A.M dunk ethernet setup


#1

Hi, Guys.

I really really hope to connect the internet using USB2ethernet cable.

I use NEXT-1100CA(i think smsc7500.) cable, and I have the driver, but I do not have GCC compiler.

How do I connect to the internet?

regard.


SLAM Dunk Wifi with WPA
#2

I got this working.

How I did it:

Hook the slamdunk to a windows 7 laptop via usb
Make sure the USB ethernet driver installs from windows update
On the PC, share your internet connection to the USB ethernet adapter that showed up when you plugged the SLAM Dunk in through ICS.
add the following route on the SD: where you see brackets add the actual IP

$ sudo route add default gw [ip of laptop on the parrot Ethernet adapter]

then you need to edit your /etc/resolv.conf to this in vi:

nameserver 127.0.0.1
nameserver 8.8.8.8

nameserver 127.0.1.1
nameserver 8.8.4.4
search parrot.biz
</ code>

To do this you type:

sudo vi /etc/resolv.conf

then you might need to type

:set modifiable

then you will need to cursor to where you want to edit and type

:i (Enter)

then type the line you want to add, type (enter) and then press (ctrl c)

then the screen should update

to save and quit type:

:x (enter)
:q! (enter)

More vi info here: http://www.lagmonster.org/docs/vi.html

then you should have network access and you can run:

> sudo apt-get update > sudo apt-get upgrade > sudo apt-get install wireless-tools

Also I would highly recommend you install the nano text editor…

sudo apt-get install nano

This is not a perm fix. Every time you reboot the SLAM Dunk you will need to re-edit the resolv.conf file. Having it like this is somewhat nice because you aren’t making any changes to the setup of the SLAM Dunk. There is probably a better way but I don’t know it.

I am not good at explaining things so could someone clean this up and add it to the wiki? It would help a lot of people.


#3

Hi, Koopa.

Thank you for your answer.

but I failed.:frowning:

So, I have some question.

  1. I installed USB ethernet adapter driver for windows7 of my PC(not Laptop)
    And I connected the S.L.A.M Dunk using USB cable, So, I checked the S.L.A.M Dunk’s IP Address(192.168.45.1, I can connect telnet)
    But I cannot connect internet… :frowning:

What should i do …

Thanks

Regard.


#4

Good.

Did you share your internet via windows ICS from your adapter with internet to the adapter the SLAM dunk created?

If so,

You need to figure out the IP address of your PC on the Ethernet adapter that the SD created. Then run the route script to add that as a gateway so your SD knows where to look for internet.

$ sudo route add default gw [ip of PC on the parrot Ethernet adapter]

After that, try pinging google

$ping 8.8.8.8

if that works, you then need to modify your /etc/resolv.conf so you can get DNS.

You need to use vi the first time which is not user friendly. Make one of the first things you do installing nano. It makes the process easier.


#5

I understand you want to connect ethernet on slamdunk. and fixed ip address.

In slamdunk,
$sudo vi /etc/network/interfaces

and you can edit it.

then write like this.


The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

auto eth0
iface eth0 inet static
address (ip address)
gateway (gateway addr)
netmask (netmask)
network (network)
broadcast (broadcast)
dns-nameservers (dns server)

Include files from /etc/network/interfaces.d:

source-directory /etc/network/interfaces.d


then press ‘esc’ , and ZZ(shift+z,z)

now you set the ip address.

finally,

$ sudo ifdown eth0
$ sudo ifup eth0

do this.


#6

Hi. Koopa.

I finished share my internet via windows ICS from my slamdunk and my wifi network.

In this figure, 1 is my slamdunk’s ip address, and 2 is my wifi address.

You said that the “sudo route add default gw [ip of PC on the parrot ethernet adapter]”, But i cannot understand.
What input the IP? my wifi address? or my slamdunk’s address?
(I try to 2 ip address in slamdunk, but “SIOCADDRT: Network is unreachable” error.)

so, i cannot connect the internet…


#7

Hi. KevinAhn.

I want connect the internet via USB to Ethernet cable.
But, I cannot install my USB to Ethernet cable driver.

So, I share my laptop’s internet using connect USB cable of slamdunk for the internet.

Thank you.


#8

I can’t read the descriptions of the adapters.

You want to put the ip address that your windows pc has on the network adapter that shows up when you plug the SLAM dunk in. Not the wifi or wired ethernet adapters native to your pc.


#9

In my case, no cable driver was needed.