elw3
ƐʍlƎ
- Joined
- Aug 10, 2010
- Messages
- 1,859
How to mount the pandora over usb and share network with it. Tested on Ubuntu 14.04.
1. On the pandora, edit the file /etc/network/interfaces.
You need to uncomment or add the usb section:
auto usb0
iface usb0 inet static
address 10.0.1.3
netmask 255.255.255.02. Load the module
This can be automated on each boot via Menu -> Settings -> Startup -> Enable/Disable services on boot.Check start USB Network on bootup.
3. Connect the Pandora with your desktop.
4. Enable the connection
sudo ifconfig usb0 up 5. On you desktop you should now see the Pandora connected as wired connection in the network icon.
Right click the icon and edit said connection, you need to go to the IPv4 Tab and set "Method" to sharing with other computers.
6. Back on the Pandora:
sudo dhclient usb0You should now be connected to the net, ping google to make sure
7. (Optional) We need to set a fixed mac address or the network icon ads a new entry every time we plug the pandora in.
On the Pandora do:
dmesg | grep usb0We need the two lines with "MAC" and "HOST MAC".Now open the file /etc/modprobe.conf as root and ad the following line to the end:
options g_cdc dev_addr=XX:XX:XX:XX:XX:XX host_addr=YY:YY:YY:YY:YY:YYWhere X is to be replaced by what we had after "MAC" and Y is "HOST MAC".
8. Next we need to start the ssh client
sudo dropbearAgain this can be automated via boot settings, check "start dropbear".
9. Now we need the right IP, with
ip awe find it behind "inet" under the usb0 entry.With that you could log in now from you desktop using
ssh USERNAME_ON_PANDORA@THE_IPfor example
for me.
10. Now lets mount the whole Pandora as a network drive.
On you desktop install the tool "gigolo", open it and hit connect. Fill in:
Type SSH
Server the IP we had before.
Port 0 (not importand it seems)
and your username.
Thats it, the Pandora should now appear as a network drive within your file manager.
Orginal post:
1. On the pandora, edit the file /etc/network/interfaces.
You need to uncomment or add the usb section:
auto usb0
iface usb0 inet static
address 10.0.1.3
netmask 255.255.255.02. Load the module
Code:
sudo modprobe g_cdc
3. Connect the Pandora with your desktop.
4. Enable the connection
sudo ifconfig usb0 up 5. On you desktop you should now see the Pandora connected as wired connection in the network icon.
Right click the icon and edit said connection, you need to go to the IPv4 Tab and set "Method" to sharing with other computers.
6. Back on the Pandora:
sudo dhclient usb0You should now be connected to the net, ping google to make sure
Code:
ping 8.8.8.8
On the Pandora do:
dmesg | grep usb0We need the two lines with "MAC" and "HOST MAC".Now open the file /etc/modprobe.conf as root and ad the following line to the end:
options g_cdc dev_addr=XX:XX:XX:XX:XX:XX host_addr=YY:YY:YY:YY:YY:YYWhere X is to be replaced by what we had after "MAC" and Y is "HOST MAC".
8. Next we need to start the ssh client
sudo dropbearAgain this can be automated via boot settings, check "start dropbear".
9. Now we need the right IP, with
ip awe find it behind "inet" under the usb0 entry.With that you could log in now from you desktop using
ssh USERNAME_ON_PANDORA@THE_IPfor example
Code:
ssh elw@10.42.0.91
10. Now lets mount the whole Pandora as a network drive.
On you desktop install the tool "gigolo", open it and hit connect. Fill in:
Type SSH
Server the IP we had before.
Port 0 (not importand it seems)
and your username.
Thats it, the Pandora should now appear as a network drive within your file manager.
Orginal post:
Two little things that i wanted to set up for a long time already but always remitted to later:
First i want the pandora to use my computers internet over USB. Connecting it already shows something in nm-applet but being a noob with network stuff i have no idea what to click next. So if someone knows better please point me to where to click or what to do.
Next i want to access the SD cards over usb but without setting it into cardreader mode i always end up damaging my Files with it due to beeing too lazy to properly unmount.
I assume a network shared folder works for that, i just have no idea how to set it up.
If someone could share some experiences on that that would be very helpful.
First i want the pandora to use my computers internet over USB. Connecting it already shows something in nm-applet but being a noob with network stuff i have no idea what to click next. So if someone knows better please point me to where to click or what to do.
Next i want to access the SD cards over usb but without setting it into cardreader mode i always end up damaging my Files with it due to beeing too lazy to properly unmount.
I assume a network shared folder works for that, i just have no idea how to set it up.
If someone could share some experiences on that that would be very helpful.
Last edited by a moderator: