The Following 4 Users Say Thank You to hardkorek For This Useful Post: | ||
|
2010-07-29
, 18:10
|
|
Posts: 353 |
Thanked: 166 times |
Joined on Jun 2010
@ India
|
#2
|
|
2010-07-29
, 18:14
|
Posts: 186 |
Thanked: 79 times |
Joined on Feb 2010
|
#3
|
|
2010-07-29
, 18:16
|
|
Posts: 353 |
Thanked: 166 times |
Joined on Jun 2010
@ India
|
#4
|
|
2010-07-29
, 18:21
|
|
Posts: 353 |
Thanked: 166 times |
Joined on Jun 2010
@ India
|
#6
|
|
2010-07-29
, 18:26
|
Posts: 186 |
Thanked: 79 times |
Joined on Feb 2010
|
#7
|
|
2010-07-29
, 18:27
|
|
Posts: 128 |
Thanked: 46 times |
Joined on Mar 2010
@ Switzerland
|
#8
|
|
2010-07-29
, 18:34
|
Posts: 186 |
Thanked: 79 times |
Joined on Feb 2010
|
#9
|
I create a script for myself to connect my N900 to internet via my Ubuntu Laptop when I'm at job. It's poor coded but works.
I hope someone can find it usefull.
Just copy the code to text blank text file, name it how you want, add proper rights (chmod 777 for example) and run it as root.
It is necessary to create adhoc connection on your n900 first.
So go to settings -> connections -> new -> name it as you want choose ad-hoc mode -> go in to advanced -> set ip 192.168.0.2, mask 255.255.255.0, gw 192.168.0.3 (don't need to set dns, they doesn't work for some reason, you need to add them manually - see and of the script).
You need to modify names of your interfaces in the script and your "internet interface" ip adress.
Then connect your linux laptop to ad-hoc network, set the static ip, disable your firewall run sudo ./scriptname and it should work.
Warning: it will disable lot of iptables rules so shouldn't be run on servers. You need to manually run your firewall/masquarade script or reboot after use.