How To Install

From GeoSharing

Jump to: navigation, search
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|150px]]
+
<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|150px]]
+
<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.
-
\begin{enumerate}
 
-
\item On the computer, edit the file \texttt{/etc/sysctl.conf}
 
-
\begin{lstlisting}
 
-
$ gedit /etc/sysctl.conf
 
-
\end{lstlisting}
 
-
\item Look for the following line in this file:
+
1) On the computer, edit the file '''/etc/sysctl.conf'''
-
\begin{lstlisting}
+
-
#net.ipv4.conf.default.forwarding=1
+
-
\end{lstlisting}
+
-
and uncomment it (remove the \# character if not already done).% This change will be effective at the next reboot of the computer.
+
$ gedit /etc/sysctl.conf
-
%\item The following command can be use to make the previous change effective directly:
+
2) Look for the following line in this file:
-
%\begin{lstlisting}
+
-
%$ sudo sysctl -w net.ipv4.conf.default.forwarding = 1
+
-
%\end{lstlisting}
+
-
\item 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 \texttt{/etc/rc.local}:
+
#net.ipv4.conf.default.forwarding=1
-
\begin{lstlisting}
+
and uncomment it (remove the \# character if not already done).
-
$ gedit /etc/rc.local
+
-
\end{lstlisting}
+
-
and add these lines at the end of the file:
+
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''':
-
\begin{lstlisting}
+
$ gedit /etc/rc.local
-
/sbin/iptables -P FORWARD ACCEPT
+
-
/sbin/iptables --table nat -A POSTROUTING -s 192.168.0.202/32 -o iface -j MASQUERADE
+
-
\end{lstlisting}
+
-
where iface corresponds to the interface of the computer connected to the internet (wlan0, eth0, eth1, ...). %These changes also take effect only after a reboot. To make them effective directly, type the same command in a terminal by replacing \textbf{/sbin/} by \textbf{sudo}.
+
and add these lines at the end of the file:
-
\item The computer have now to be rebooted.
+
-
\end{enumerate}
+
-
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:
+
/sbin/iptables -P FORWARD ACCEPT
 +
/sbin/iptables --table nat -A POSTROUTING -s 192.168.0.202/32 -o iface -j MASQUERADE
-
\begin{lstlisting}
+
where iface corresponds to the interface of the computer connected to the internet (wlan0, eth0, eth1, ...).  
-
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
+
-
(...)
+
-
\end{lstlisting}
+
 +
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
-
\newpage
+
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
 +
(...)
-
\section{GeoSharing project installation}\label{app:geosharing+on+neo}
+
== 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.

Revision as of 12:29, 13 June 2011

Personal tools
Namespaces
Variants
Actions
Navigation
GeoSharing
Misc
Toolbox