How to launch the server in Linux and additional information?

Launching the server in Linux (specially in Ubuntu)

Download and extract the server for Unix systems.

Launching from terminal (recommended):

cd path-to-server's-directory
java -jar Remote\ PC\ Server.jar

If you want to use Power commands, you will change the command to:

cd path-to-server's-directory
sudo java -jar Remote\ PC\ Server.jar

Power commands are based on the shutdown command which must have appropriate root privileges.

From GUI: Click on Remote PC Server.jar (be sure it's associated with Sun Java or OpenJDK Java).

Warning:

If you launch the server from GUI, it'll be created a configuration file (data.cfg) in user's home (~/.). Also it isn't shown the application's System Tray icon and Desktop service not working. It's highly recommended to launch from terminal or create a bash starter.

Ubuntu 11.04 and newer with Ubuntu Unity: System Tray icon problem

Ubuntu Unity environment (since Ubuntu 11.04 default GUI) doesn't allow System Tray icon no longer. So you have to configure manually Unity Panel. Here you will find detailed tutorial A or tutorial B.

Ubuntu: Unity Panel

Linux error: libbluetooth.so: cannot open shared object file

Developer's description of this problem: BlueCove "doesn't work" with Bluez v 4.x.

SOLUTION

sudo yum install bluecove bluez-libs
     (This command is only for Fedora, CentOS or if you haven't already
             installed BlueZ. Ubuntu 11.10 should have BlueZ 4.x.)
cd /usr/lib/
ls | grep libbluetooth
     (Detection of libbluetooth.so.2 or libbluetooth.so.3 library.)
sudo ln -s /usr/lib/libbluetooth.so.x /usr/lib/libbluetooth.so
     (Creation of BlueZ's symbolic link.)

Source: Ubuntu 11.04 Bluetooth problem [page 2]

Error: Bluecove library bluecove not available

SYMPTOMS

During launching the Bluetooth connection, the server shows the message:

Bluetooth is not available. The server can not be launched.
{BlueCove library bluecove not available;
load resource [/tmp/bluecove_xxxx_0/libbluecove_x64.so] /tmp/bluecove_xxxx_0/libbluecove_x64.so: libbluetooth.so...

or

Native Library bluecove_x64 not available
BluetoothStateException (setDiscoverable): Bluecove library
bluecove not available

SOLUTION for Ubuntu 12.10

Install libbluetooth-dev package from Ubuntu software center.

SOLUTION

If you own Linux x64 like me (Ubuntu 12.04 "Precise Pangolin") and your OS has got Bluez 4.X, you will follow these steps:

Open a terminal and type:

ls /usr/lib/x86_64-linux-gnu/ | grep libbluetooth

It'll show you libbluetooth.so.3 or libbluetooth.so.2. Then according to the obtained library:

sudo ln -s /usr/lib/x86_64-linux-gnu/libbluetooth.so.X
/usr/lib/x86_64-linux-gnu/libbluetooth.so

Source: in our forum - thread [Ubuntu 11.10 + Bluetooth] Error when running the server

How to create a bash alias

Modified your ~/.bashrc and add this at the end:

alias remotepcserver='cd /home/user/path-to-server's-directory/;
sudo java -jar Remote\ PC\ Server.jar'

Then if you run a terminal and type "remotepcserver" [enter], It'll launch the server.

Deprecated warning: BTStateException (setDiscoverable): Bluetooth Device is not ready.

This problem does only some of deprecated servers. Terminal error output:

BlueCove version 2.1.1-SNAPSHOT on bluez
BluetoothStateException (setDiscoverable): Bluetooth Device is not ready. [1]
Operation not permitted

The explanation why you must run the application with superuser privileges: BlueCove supported stacks => Linux BlueZ: JSR-82 Limitations.

...
sudo java -jar Remote\ PC\ Server.jar
     (sudo is exvivalent for: su -l)