Surf The Web With Gp2x


techFreak

Member
Joined
Dec 10, 2005
Messages
487
Location
Istanbul, TR
Website
Visit site
Hello All,

I know it's been done before but i couldn't find a complete guide to connect your GP2X to Internet with USB network function and use Opera to surf the web.

1. Go to Setting/System and select "ON" from Menu Extension option.

2. Select ON or ALWAYS ON from USB Network from advanced settings. No need to set up IP address. We will do it with a bash script later.

3. Connect the USB cable to your GP2X and PC. Windows XP will recognize the device as Linux USB Ethernet. Set up the device and continue next step.

4. Go to Network settings and choose the internet connection that connects your computer to Internet. right click and go to properities. Select Advanced tab. Thick "Other users can connect Internet using this computer's connection" (I'm not sure because I don't use English version of XP) Select network connection belongs to Linux USB Ethernet device. IP will be changed to 192.168.0.1 automatically.

5. Now you have to give an approprite IP address to GP2X and show the route to Internet:

Code:
#!/bin/sh

ifconfig usb0 192.168.0.2 netmask 255.255.255.0 up
route add default gw 192.168.0.1

# Return Menu
cd /usr/gp2x
exec ./gp2xmenu

You can download the script here.

Copy the file to your SD card and run it from Utilities menu.

6. You are connected to Internet now. Run Qtopia and browse the web with Opera Web Browser.

Have a nice day! B)
 
Nickmon posted on May 23 2006 at 04:45 PM said:
Thanks great, now we need someone to port a web browser app to the gp2x..
There are ports like Link2x also you can use Qtopia to run Opera. ;)
 
Last edited by a moderator:
techFreak posted on May 23 2006 at 06:36 AM said:
Hello All,

I know it's been done before but i couldn't find a complete guide to connect your GP2X to Internet with USB network function and use Opera to surf the web.

6. You are connected to Internet now. Run Qtopia and browse the web with Opera Web Browser.

Have a nice day! B)

What can you do for those who have a USB LAN adaptor or a Wifi stick? (assuming we have the drivers properly working)

Will those surf with Opera natively without setup?

If you can point me in the right direction that would be neat.
 
Last edited by a moderator:
sure, just set up the interface and add a default route to the gateway/router.
probbly something like
ifconfig eth0 ipinrouterrange up
route add default gw routerip
 
did i hear in another thread that Reesy was working on a browser or was that a dream?..probably a dream..
 
Vimacs posted on May 23 2006 at 05:54 PM said:
sure, just set up the interface and add a default route to the gateway/router.
probbly something like
ifconfig eth0 ipinrouterrange up
route add default gw routerip

I am spinning, I guess I meant can somebody write me a script, or at least break that down, I am a linux nubie (finally my clever name pays off :)).

No rush, I don't have my GP2X yet, I just want to know how.
 
Last edited by a moderator:
I can't get it to work... There is no option for sharing the internet connection under my wireless network connection (do I have to use an eithernet cable?) and the connection for the GP2X is described as "Limited or no connectivity".

Anyone able to offer any help?


EDIT: Nevermind, I restarted my computer, and the option appeared.
 
Linux how to
=========

I can access the internet on my GP2X. My set up is as follows:

PC: eth0 10.0.0.5 usb0 192.168.1.2
Router: 10.0.0.2
GP2X: 192.168.1.1

This is what I did.

1) Start the GP2X with networking on

2) On the PC, set up the interface. As root type:

Code:
ifconfig usb0 192.168.1.2

Alternatively, to set up the interface automatically, add the following to /etc/network/interfaces and restart networking:

Code:
allow-hotplug usb0
auto usb0
iface usb0 inet static
		address 192.168.1.2
		netmask 255.255.255.0

ifconfig should now show an interface usb0 and you should be able to ping 192.168.1.1 from the PC

3) On the GP2X via telnet (or could use a script) type:

Code:
route add default gw 192.168.1.2

This routes all requests to the PC on usb0

4) On the router, add a route to 192.168.1.0 with gateway 10.0.0.5

This routes responses back to the GP2X via the PC

5) Set the PC up as a gateway between the eth0 and usb0 interfaces by typing the following as root:

Code:
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface usb0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward

(Script recommended)

Simple! ;)
 
NoidZ posted on May 23 2006 at 02:46 PM said:
Very Nice! This should be stickied though!


Fishbong posted on May 23 2006 at 02:51 PM said:
Nickmon posted on May 23 2006 at 01:43 PM said:
Thanks great, now we need someone to port a web browser app to the gp2x..
<_< Did you bother reading techFreaks post?
Sure did fishy, I learnt to read years ago !! biggrin.gif

What I should have said is, would be nice if some one ported a browser that runs natively on the machine !
 
Last edited by a moderator:
In my opinion Opera runs very good. Even javascripts and etc works so fine. Page loading time is dependant to your bandwith but it has no difference compared to a standard PC.
 
i can get my gp2x to connect and can telnet it and everything, computer sees it as connected but opera does NOT work, i get a "cannot connect to remote host" or something like that error, anyone got any ideas? and i 100% agree abotu a native opera browser, someone port it please? would be nice to not have to open qtopia just to use opera
 
Opera isn't open source the last I checked. Maybe a firefox browser or some other open source one (as FF has memory 'problems').
 
Back
Top