Install Pilot-ICE Server on Linux
=================================

Install Linux Prerequisites packages
------------------------------------

 **** Debian, Ubuntu, and derivatives **** 

Add the Mono Project GPG signing key and the package repository to your system:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

Run a package upgrade to upgrade existing packages to the latest available. Then install Mono as described:

sudo apt-get update
sudo apt-get install sqlite3
sudo apt-get install mono-complete

Read more about mono installation at:
	http://www.mono-project.com/docs/getting-started/install/linux/


 **** CentOS, Fedora, and derivatives **** 

Add the Mono Project GPG signing key and the package repository in a _root_shell_ with:

rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
yum-config-manager --add-repo http://download.mono-project.com/repo/centos/

Run a package upgrade to upgrade existing packages to the latest available. Then install Mono as described:

yum update
yum install sqlite3
yum install mono-complete

Read more about mono installation at:
	http://www.mono-project.com/docs/getting-started/install/linux/


Unpack and install Pilot-ICE Server 
-----------------------------------

Download the latest Pilot-ICE Server release. Use the command cd to navigate to the correct folder.
Extract the files with one of the commands:

tar xjf pilot-server_*.*-xxx.tar.bz2

 **** Debian, Ubuntu, and derivatives **** 

Install packaged directly from the command line:
sudo dpkg -i pilot-server_*.*-xxx.deb


Configure Pilot-ICE Server 
--------------------------

Add server administrator with 'root' login and 'root' password:

mono Ascon.Pilot.Daemon.exe --admin ./settings.xml root root

Configure demo databases:

mono Ascon.Pilot.Daemon.exe --db ./settings.xml "pilot-ice_ru" "/<your installation path>/pilot-ice_ru/base.dbp" "/<your installation path>/pilot-ice_ru/FileArchive"
mono Ascon.Pilot.Daemon.exe --db ./settings.xml "pilot-ice_en" "/<your installation path>/pilot-ice_en/base.dbp" "/<your installation path>/pilot-ice_en/FileArchive"


Run Pilot-ICE Server
--------------------

Run it as a background process like this:

nohup mono Ascon.Pilot.Daemon.exe ./settings.xml &