Difference between revisions of "Installation/Linux"

From PaparazziUAV
Jump to navigation Jump to search
 
Line 1: Line 1:
This page has not yet been transfered from the former site.
== LiveCd ==
Please see: http://www.recherche.enac.fr/paparazzi/doc/moin.cgi/UserManual
 
The LiveCD is the easiest way to start with Paparazzi: no installation is required and no changes are made to your computer.  Simply burn the image as a boot CD and reboot!  The LiveCD includes the complete paparazzi binary package (code source, tools and cross compilers). Usage is described in the next section.
The CD image is available from the [[Downloads|Downloads]] page.
 
The Paparazzi demo is launchable on the Live CD from the Paparazzi icon.
 
Knoppix allows for all the user data to be saved on a hard disk partition (most file systems are supported) or on a removable device (typically a USB pendrive). Note that this action is not destructive: the user data tree is compressed and stored on your file system as a single file (<tt>knoppix.img</tt>).
* From the Knoppix menu (second from bottom left), choose '''Configure''', '''Create a persistent KNOPPIX disk image'''
* Choose your media (be sure to connect your USB pendrive before booting!)
* Choose if you want an encrypted filesystem (to protect your flight plan designed for the next MAV competition :-) )
* Choose the size of your home directory (100Mb is recommended)
On the next reboot, this saved state will be automatically located and loaded.
 
Using this persistent feature, the Paparazzix Live CD can really be used to configure, simulate and fly an aircraft with the Paparazzi system.
 
The Live CD can also be used to install a Debian system on the hard disk, using the <tt>knoppix-installer</tt> command. Be sure to backup the hard disk before trying ...
 
== Installation on Debian ==
 
Paparazzi is packaged for debian as well as all of its dependencies. The [http://www.recherche.enac.fr/paparazzi/debian repository] hosted at ENAC holds their latest version.
 
==== Manual package installation ====
Just add
<tt>deb http://www.recherche.enac.fr/paparazzi/debian sarge main
#if needed deb http://www.recherche.enac.fr/paparazzi/debian etch main</tt>
to your repository list (<tt>/etc/apt/sources.list</tt>). Then, update and install the package you are interested in:
<tt>apt-get update
apt-get install paparazzi-bin</tt>
 
==== GUI package installation ====
* Launch ''Synaptic Package Manager'' (''Applications/System'' Tools Menu)
* In '''Settings/Repositories''', add a new repository on URI = '''<nowiki>http://www.recherche.enac.fr/paparazzi/debian</nowiki>''', Distribution = '''sarge''', Section = '''main'''
* Search for paparazzi-bin package (To find it easily, use ''Search'' Button)
* Mark it for installation (Right-click on package name)
* Left-click on ''Apply''
 
=== System wide install ===
 
The <tt>paparazzi-bin</tt> package contains the airborne source code and the tools you need to configure and control the UAV. It provides 3 main commands:
* <tt>paparazzi-make</tt> to compile the aircraft (and run the demo);
* <tt>paparazzi</tt> to run the ground control station supervision;
* <tt>paparazzi-gcs</tt> to run the flight plan editor.
 
Start with <tt>paparazzi-make init</tt> to initialize your configuration directory (<tt>~/paparazzi</tt>) and
<tt>paparazzi-make demo</tt> to run the demo.
You will have to also install the
<tt>paparazzi-avr</tt> or <tt>paparazzi-arm7</tt> packages which contain the cross compiler and architecture dependent tools needed to produce and upload the airborne programs on avr or arm7 architectures.
 
=== Source code install ===
 
Users who want to look at and modify the source code can install the required dependencies and download the code independently.
 
Installation of the meta-package '''paparazzi-dev''' will pull along all required dependencies.
 
After the packages is installed the paparazzi source code needs to be downloaded.
This can be done using CVS. See the [http://savannah.nongnu.org/cvs/?group=paparazzi project page] at savannah for details:
<tt>cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/paparazzi co paparazzi3</tt>
 
A nightly tarball can also be fetched from the [[Downloads|Downloads]] page.
 
After extraction, go to the root of the source code and use <tt>make</tt> to compile it and <tt>make demo</tt> to run the demo.
 
 
== Installation on non Debian GNU/Linux ==
 
You will have to compile and install the paparazzi package from the sources. Unfortunately no configure facilities is included in the package: you will have to figure out what is needed. The list of dependencies of the Debian package (listed in the <tt>debian/control</tt>) file is the best start.

Revision as of 12:21, 13 December 2006

LiveCd

The LiveCD is the easiest way to start with Paparazzi: no installation is required and no changes are made to your computer. Simply burn the image as a boot CD and reboot! The LiveCD includes the complete paparazzi binary package (code source, tools and cross compilers). Usage is described in the next section.

The CD image is available from the Downloads page.

The Paparazzi demo is launchable on the Live CD from the Paparazzi icon.

Knoppix allows for all the user data to be saved on a hard disk partition (most file systems are supported) or on a removable device (typically a USB pendrive). Note that this action is not destructive: the user data tree is compressed and stored on your file system as a single file (knoppix.img).

  • From the Knoppix menu (second from bottom left), choose Configure, Create a persistent KNOPPIX disk image
  • Choose your media (be sure to connect your USB pendrive before booting!)
  • Choose if you want an encrypted filesystem (to protect your flight plan designed for the next MAV competition :-) )
  • Choose the size of your home directory (100Mb is recommended)

On the next reboot, this saved state will be automatically located and loaded.

Using this persistent feature, the Paparazzix Live CD can really be used to configure, simulate and fly an aircraft with the Paparazzi system.

The Live CD can also be used to install a Debian system on the hard disk, using the knoppix-installer command. Be sure to backup the hard disk before trying ...

Installation on Debian

Paparazzi is packaged for debian as well as all of its dependencies. The repository hosted at ENAC holds their latest version.

Manual package installation

Just add

deb http://www.recherche.enac.fr/paparazzi/debian sarge main
#if needed deb http://www.recherche.enac.fr/paparazzi/debian etch main

to your repository list (/etc/apt/sources.list). Then, update and install the package you are interested in:

apt-get update
apt-get install paparazzi-bin

GUI package installation

  • Launch Synaptic Package Manager (Applications/System Tools Menu)
  • In Settings/Repositories, add a new repository on URI = http://www.recherche.enac.fr/paparazzi/debian, Distribution = sarge, Section = main
  • Search for paparazzi-bin package (To find it easily, use Search Button)
  • Mark it for installation (Right-click on package name)
  • Left-click on Apply

System wide install

The paparazzi-bin package contains the airborne source code and the tools you need to configure and control the UAV. It provides 3 main commands:

  • paparazzi-make to compile the aircraft (and run the demo);
  • paparazzi to run the ground control station supervision;
  • paparazzi-gcs to run the flight plan editor.

Start with paparazzi-make init to initialize your configuration directory (~/paparazzi) and paparazzi-make demo to run the demo.

You will have to also install the paparazzi-avr or paparazzi-arm7 packages which contain the cross compiler and architecture dependent tools needed to produce and upload the airborne programs on avr or arm7 architectures.

Source code install

Users who want to look at and modify the source code can install the required dependencies and download the code independently.

Installation of the meta-package paparazzi-dev will pull along all required dependencies.

After the packages is installed the paparazzi source code needs to be downloaded. This can be done using CVS. See the project page at savannah for details:

cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/paparazzi co paparazzi3

A nightly tarball can also be fetched from the Downloads page.

After extraction, go to the root of the source code and use make to compile it and make demo to run the demo.


Installation on non Debian GNU/Linux

You will have to compile and install the paparazzi package from the sources. Unfortunately no configure facilities is included in the package: you will have to figure out what is needed. The list of dependencies of the Debian package (listed in the debian/control) file is the best start.