How To Install
From GeoSharing
Line 22: | Line 22: | ||
The easiest way to set up the connection with the Openmoko is to create a new connection (called Openmoko here) in the wired networks tab of the computer network manager. For this new connection, choose a static (manual) IP address: '''192.168.0.200'''. | The easiest way to set up the connection with the Openmoko is to create a new connection (called Openmoko here) in the wired networks tab of the computer network manager. For this new connection, choose a static (manual) IP address: '''192.168.0.200'''. | ||
+ | <div style="text-align: center;"> | ||
[[File:Screenshot-Editing Openmoko.png|350px]] | [[File:Screenshot-Editing Openmoko.png|350px]] | ||
+ | </div> | ||
==== Without the network manager ==== | ==== Without the network manager ==== | ||
Line 58: | Line 60: | ||
3) The application is now running and the interface looks like: | 3) The application is now running and the interface looks like: | ||
- | [[File:Neotool-1.png| | + | <div style="text-align: center;"> |
+ | [[File:Neotool-1.png|350px]] | ||
+ | </div> | ||
4) On the computer, download the latest version of the SHR operating system. The version of SHR used to realise this manual is the version SHR-testing 2.6.29-oe11. Images of the SHR operating system can be found at http://build.shr-project.org/shr-testing/images/om-gta02/. Two files are required: | 4) On the computer, download the latest version of the SHR operating system. The version of SHR used to realise this manual is the version SHR-testing 2.6.29-oe11. Images of the SHR operating system can be found at http://build.shr-project.org/shr-testing/images/om-gta02/. Two files are required: | ||
Line 66: | Line 70: | ||
5) In neoTool (which is running on the computer), select the second item '''Flash your Neo''' and click '''OK'''. The interface looks like: | 5) In neoTool (which is running on the computer), select the second item '''Flash your Neo''' and click '''OK'''. The interface looks like: | ||
- | [[File:Neotool-2.png| | + | <div style="text-align: center;"> |
+ | [[File:Neotool-2.png|170px]] | ||
+ | </div> | ||
On the next screen, don't change anything and click `OK'. | On the next screen, don't change anything and click `OK'. | ||
Line 75: | Line 81: | ||
8) When the process is done, the Neo FreeRunner restarts automatically and the new operating system is ready to be used. | 8) When the process is done, the Neo FreeRunner restarts automatically and the new operating system is ready to be used. | ||
- | |||
=== Internet connectivity === | === Internet connectivity === | ||
When the operating system is installed and running, the configuration steps required in order to share the internet connectivity of the computer with the Neo FreeRunner via the USB cable are the followings. These steps must be done on the computer connected to the Neo FreeRunner. | When the operating system is installed and running, the configuration steps required in order to share the internet connectivity of the computer with the Neo FreeRunner via the USB cable are the followings. These steps must be done on the computer connected to the Neo FreeRunner. | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | + | 1) On the computer, edit the file '''/etc/sysctl.conf''' | |
- | + | ||
- | + | ||
- | + | ||
- | + | $ gedit /etc/sysctl.conf | |
- | + | 2) Look for the following line in this file: | |
- | + | ||
- | + | ||
- | + | ||
- | + | #net.ipv4.conf.default.forwarding=1 | |
- | \ | + | and uncomment it (remove the \# character if not already done). |
- | + | ||
- | + | ||
- | and | + | 3) The iptables of the computer must be configured such that the computer behaves as a simple router for the Openmoko. The computer must forward packets coming from the Neo FreeRunner to the internet and the other way around. Edit the file '''/etc/rc.local''': |
- | + | $ gedit /etc/rc.local | |
- | / | + | |
- | + | ||
- | + | ||
- | + | and add these lines at the end of the file: | |
- | + | ||
- | + | ||
- | + | /sbin/iptables -P FORWARD ACCEPT | |
+ | /sbin/iptables --table nat -A POSTROUTING -s 192.168.0.202/32 -o iface -j MASQUERADE | ||
- | + | where iface corresponds to the interface of the computer connected to the internet (wlan0, eth0, eth1, ...). | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | 4) The computer have now to be rebooted. | ||
+ | |||
+ | The internet connection of the computer is now shared with the Neo FreeRunner. In order to check if the sharing of the internet connection is well configured, from the Neo FreeRunner, perform a \texttt{ping} to \texttt{www.google.com} and the results should look like this: | ||
- | + | root@om-gta02 ~ # ping www.google.com | |
- | + | PING www.google.com (66.102.13.103): 56 data bytes | |
- | + | 64 bytes from 66.102.13.103: seq=0 ttl=55 time=19.548 ms | |
+ | 64 bytes from 66.102.13.103: seq=1 ttl=55 time=35.519 ms | ||
+ | (...) | ||
- | + | == GeoSharing project installation} == | |
Since the GeoSharing project is based on the OLSRd Linux d\ae mon and on tangoGPS, it is mandatory to compile and install those two applications as well as the GeoSharing application. | Since the GeoSharing project is based on the OLSRd Linux d\ae mon and on tangoGPS, it is mandatory to compile and install those two applications as well as the GeoSharing application. | ||