Configuring bluetooth for AioRemote Server 3.5 on Ubuntu 15.10

If you want control your Linux from your Android device, you can use AioRemote using wifi or bluetooth. If you haven't any wifi AP, is better use bluetooth.

The probem is when you run AioRemote:



If you go to the CLI, you must see this as follows:

$ java -jar AioRemoteDesktop3.5.0.jar 
BlueCove version 2.1.1-SNAPSHOT on bluez
Feb 06, 2016 7:30:41 PM com.allinoneremote.util.BluetoothPcNetworkStrategy listenOnPort
SEVERE: null
javax.bluetooth.ServiceRegistrationException: Can not open SDP session. [13] Permission denied

Mainly, when you have a Permission denied problem, just enough with apply sudo, but not in this case:

$ sudo java -jar AioRemoteDesktop3.5.0.jar 
[sudo] password for dragonx: 
BlueCove version 2.1.1-SNAPSHOT on bluez
Feb 06, 2016 7:31:58 PM com.allinoneremote.util.BluetoothPcNetworkStrategy listenOnPort
SEVERE: null
javax.bluetooth.ServiceRegistrationException: Can not open SDP session. [111] Connection refused

SDP requires deprecated features for some reason, hence you need modify bluetooth daemon to run with compatible mode. Edit /lib/systemd/system/bluetooth.service and add -C to the ExecStart line:
ExecStart=/usr/lib/bluetooth/bluetoothd -C

After, you can reboot the service and execute AioRemote from a shortcut with:
gksudo -k -u root "java -jar ~/AioRemote/AioRemoteDesktop3.5.0.jar"

root user is necessary to access to bluetooth


Comments

Popular posts from this blog

How to fix Android when developer options are not available for this user

Exception: Could not find a default OpenFlow controller in Mininet

v4l2: open /dev/video0: Permission denied