You are not logged in.

#1 2014-04-22 10:31:20

hifi25nl
Member
Registered: 2011-05-07
Posts: 240
Website

[REQUEST] Unified Remote - the best mobile remote server

Unified Remote server I think is the best remote for mobile phone and tablet ever made. I have been using it for long time in Windows.

Now there is a Linux server with some packages for debian, ubuntu and a portable package.

See
http://www.unifiedremote.com/
http://www.unifiedremote.com/download

I have it working now in a archlinux system with lxde.

However, I had problems to make a systemd service file working.

I hope someone more expert would make a PKGBUILD for aur.

Offline

#2 2014-04-30 19:24:20

Peaceseeker
Member
Registered: 2012-04-27
Posts: 23

Re: [REQUEST] Unified Remote - the best mobile remote server

I needed this package as well, I created a PKGBUILD and uploaded it to AUR here: https://aur.archlinux.org/packages/unif … te-server/. I added the configuration file switch to the service file, it don't seem to effect the server unless a file actually exists, so the user has the option to create one if they want.

Offline

#3 2014-04-30 19:44:51

hifi25nl
Member
Registered: 2011-05-07
Posts: 240
Website

Re: [REQUEST] Unified Remote - the best mobile remote server

The problem is the systemd service. I cannot make one working. I have written this to unified remote developers, but they have never used systemd:

I would like to start urserver silently without opening a terminal window,  possibly using a systemd service.

This is an example systemd urserver.service:
****
[Unit]
Description=Unified Remote Server
After=network.target

[Service]
ExecStart=/usr/bin/urserver

[Install]
WantedBy=multi-user.target
****

However this is not working, the service will start but immediately it will exit...
tried everything...
Some suggestions?

Offline

#4 2014-04-30 21:10:52

Peaceseeker
Member
Registered: 2012-04-27
Posts: 23

Re: [REQUEST] Unified Remote - the best mobile remote server

I have included one in the package I uploaded to AUR, almost the same as your file, just add 'Type=forking' under '[Service]', hopefully that will do the trick.

Offline

#5 2014-05-01 10:24:44

hifi25nl
Member
Registered: 2011-05-07
Posts: 240
Website

Re: [REQUEST] Unified Remote - the best mobile remote server

Ok, thank you!

Your package is working.

Offline

#6 2015-01-30 11:39:46

piotroxp
Member
Registered: 2008-08-04
Posts: 66

Re: [REQUEST] Unified Remote - the best mobile remote server

Hey guys, I need your help, as I've an issue with urserver. The systemd service file looks like this:

[Unit]
Description=Unified Remote Server
After=network.target

[Service]
ExecStart=/opt/urserver/urserver
Type=forking

[Install]
WantedBy=multi-user.target

The result of enabling and running this are the following:

 
piotro@p1ohost in ~ >> :sudo systemctl status urserver
● urserver.service - Unified Remote Server
   Loaded: loaded (/usr/lib/systemd/system/urserver.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since pią 2015-01-30 12:30:25 CET; 11s ago
  Process: 2659 ExecStart=/opt/urserver/urserver (code=exited, status=0/SUCCESS)

sty 30 12:30:24 p1ohost urserver[2659]: bluetooth interface could not start (check log)
sty 30 12:30:24 p1ohost urserver[2659]: http interface started
sty 30 12:30:24 p1ohost urserver[2659]: discovery interface started
sty 30 12:30:24 p1ohost urserver[2659]: access manager at: http://172.16.0.136:9510/web
sty 30 12:30:24 p1ohost urserver[2659]: ready (waiting for connection or debug command)
sty 30 12:30:24 p1ohost urserver[2659]: enter 'help' to see a list of available commands
sty 30 12:30:24 p1ohost urserver[2659]: enter 'exit' to terminate server
sty 30 12:30:24 p1ohost urserver[2659]: > stopping server...
sty 30 12:30:25 p1ohost urserver[2659]: exiting...
sty 30 12:30:25 p1ohost systemd[1]: Started Unified Remote Server.

The version of the package is unified-remote-server 3.1.2.594-2 (Fri, 30 Jan 2015, 12:36:56 CET) . I've read about the issues with the "forking" target, and looked around my system for some information, also there is nothing in the logs. I've also pinned it down to starting the service via systemd as an erroneous operation, because if you use the regular path (ex: /opt/urserver/urserver --daemon) then it's working correctly. Any help will be greatly appreciated.


I invented EM Field Patterns and fixed Feynmann's Diagrams so they are physical.

Offline

#7 2015-01-30 12:30:07

hifi25nl
Member
Registered: 2011-05-07
Posts: 240
Website

Re: [REQUEST] Unified Remote - the best mobile remote server

I was experimenting with this also. (Save as urserver@.service and start it with "systemctl start urserver@user" , change "user" with your user name) but it is not working.

I have tried also a systemd --user service with --daemon or not with forking or simple. It will not work.
For this reason the systemd service is not in the package.

[Unit]
Description=Unified Remote Server
After=network.target

[Service]
User=%I
RemainAfterExit=true
ExecStart=/opt/urserver/urserver --daemon

[Install]
WantedBy=network.target

Last edited by hifi25nl (2015-01-30 12:30:40)

Offline

#8 2015-01-30 14:54:43

hifi25nl
Member
Registered: 2011-05-07
Posts: 240
Website

Re: [REQUEST] Unified Remote - the best mobile remote server

This one is working

[Unit]
Description=Unified Remote Server
After=network.target

[Service]
RemainAfterExit=yes
ExecStart=/bin/bash /opt/urserver/urserver-start
ExecStop=/bin/bash /opt/urserver/urserver-stop

[Install]
WantedBy=network.target

However the same systemd service, if I add "User=%I", will not work. And it will not work also as systemd user service. As a consequence urserver will start correctly only as root (as systemd service).
This is strange. If I call "/opt/urserver/urserver-start" from a user console it is working.

Systemd enigmas...

P.S. I have added urserver.service to the package

Last edited by hifi25nl (2015-01-30 15:09:44)

Offline

#9 2015-01-31 18:50:15

hybrid
Member
Registered: 2007-02-05
Posts: 236

Re: [REQUEST] Unified Remote - the best mobile remote server

Or just simply start it with your X server, for example through your .xinitrc.
You wouldn't be able to send keyboard events to a tty anyways (this would be the only reason I can think of why it would be useful to even try to start a program for X through systemd).
Especially if that means to have urserver run as root which is totally unnecessary and potentially dangerous in various ways.

Offline

#10 2015-06-02 08:35:24

ziv667
Member
Registered: 2012-05-24
Posts: 14

Re: [REQUEST] Unified Remote - the best mobile remote server

I used the /opt/urserver/urserver-{start,stop} scripts, and it's working.
dont know if these scripts are from a new version, but this works for me

urserver@.service

[Unit]
Description=Unified Remote Server
After=network.target

[Service]
User=%I
RemainAfterExit=true
ExecStart=/opt/urserver/urserver-start --daemon
ExecStop=/opt/urserver/urserver-stop

[Install]
WantedBy=network.target

and apparently there is a service file supplied with the aur package.

Last edited by ziv667 (2015-06-02 08:37:36)

Offline

Board footer

Powered by FluxBB