Install in Ubuntu

NOTE: OpenProximity is not compatible with Ubuntu 11.04 yet, please stick to 10.04LTS while we fix the problem

Install in Ubuntu 11.04 (natty)

Installing in Ubuntu 11.04 is possible now, but not yet through our PPA, you may still need to add our PPA to provide some dependencies.

You will get it installed by running this commands in the terminal

wget http://proximitymarketing.googlecode.com/files/openproximity2_1rc1-aircable2_all.deb
sudo dpkg -i openproximity2_1rc1-aircable2_all.deb

If it fails then try with adding our PPA. Note that after adding the PPA you will get notifications telling you there's an upgrade for OpenProximity, by now that's fake.

Install in Ubuntu 9.04 (jaunty)

Ubuntu 9.04 is the latest Ubuntu we support by now.

Installing in Ubuntu is quite easy because we provide ready to use Ubuntu Packages, the way to do it is:

  1. Add our PPA to your sources.list
  2. Optional add our devel PPA (with testing packages)
  3. Install our PPA key
  4. apt-get update
  5. apt-get upgrade
  6. apt-get install

What you have to do is summarized as:

echo "deb http://ppa.launchpad.net/manuel-aircable/ppa/ubuntu jaunty main " | sudo tee -a /etc/apt/sources.list
# optional if you want to get devel version uncomment the next line.
# echo "deb http://ppa.launchpad.net/manuel-aircable/openproximity-devel/ubuntu jaunty main " | sudo tee -a /etc/apt/sources.list

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B85B0133

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install python-gobject python-dbus libglib2.0-data openproximity2

After this steps you should reboot, and that will get you OpenProximity2 up and running.

Install in Ubuntu 9.10 (karmic)

OpenProximity PPA packages can be used in karmic you only need to run an extra command before rebooting:

sudo chmod 755 /etc/init.d/openproximity2
sudo update-rc.d openpriximity2 defaults

MobileServerXR from AIRcable.net

AcerNetbook.jpg

If you already have an installed Unbuntu system with an older version of OpenProximity2 installed, you can use the Synaptic package manager.

Make sure you click on "RELOAD" first, then the package OpenProximity2 can be marked as update. Clock "APPLY" and you have the new version.

Installing on Ubuntu Netbook Remix 9.10

Screen-Install-Ubuntu-Software-sources-Menu.png

Add PPA to sources.list

Note that even if source is defined for Jaunty (9.04), it works with Karmic (9.10)

Install packages from key and sources

  • Open a command line console
  • Switch to Super-User mode :sudo bash
  • Execute commands above :
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B85B0133

apt-get update
apt-get upgrade

sudo apt-get install python-gobject python-dbus libglib2.0-data openproximity2

Start OpenProximity2

Screen-Install-Ubuntu-Restart-Error-111.png
  • Now you can restart
  • Go to menu Other | OpenProximity .
  • It runs Mozilla Firefox with local Web server : http://localhost/

It's not working fine : Error message : (111, 'Connection refused')
Some servers are not running.

Starting servers manually and debugging

If you want to make it working, you have to start several servers (from console, on several consoles) :

cd /opt/openproximity2/

sudo DEBUG=yes bash server.sh // if web server is not running
sudo DEBUG=yes bash rpc.sh // if RPC Server is running = false
sudo DEBUG=yes bash pairing.sh // to get pairing support
sudo DEBUG=yes bash run_rpc.sh scanner // if Scanners Connected = 0
sudo DEBUG=yes bash run_rpc.sh uploader // if Uploaders Connected = 0
Screen-Install-Ubuntu-RPC_scanner.png

To keep all messages when a server is launched, open a new tab in console with right-click | New Tab.

In the "Known Dongles" table, a dongle can be seen as "Scanner enabled", as "Is uploader", but not "Uploader Enabled". To make it uploader Enabled, access to Configure and validate Upload checkbox.

Starting servers automatically

One script can start all needed servers : /etc/init.d/openproximity2

This script has to be run at each Ubuntu start. This can be configured by :

sudo chmod 755 /etc/init.d/openproximity2 // if not correct
sudo update-rc.d openpriximity2 defaults

Configuring campaigns

Debugging

Basic Linux commands

# Managing tasks
ps aux|grep Open // List all tasks and find rpc server task-id
kill <task-id> // Kill task

# Managing servers
netstat -anpe
netstat -anpe | grep 80 // to find web server listening port 80

OpenProximity commands

cd /opt/openproximity2/
openproximity2 start 
openproximity2 restart 
openproximity2 stop
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License