WhatPulse Forums
[Ubuntu] Simple way to run WP at start-up - Printable Version

+- WhatPulse Forums (http://whatpulse.org/forums)
+-- Forum: Support (/forumdisplay.php?fid=38)
+--- Forum: Client software (/forumdisplay.php?fid=58)
+--- Thread: [Ubuntu] Simple way to run WP at start-up (/showthread.php?tid=2288)



[Ubuntu] Simple way to run WP at start-up - DePhille - 01-04-2013 02:39 PM

Hi there,

Is there a simple way to run WhatPulse automatically at start-up in Ubuntu 12.04 (LTS)? I've tried putting it in "Settings => Startup Applications" but then WhatPulse complains it isn't able to find a tray bar and stops. Also, it would have to run with root permissions (doens't seem to be able to capture any keys otherwise).

Thanks in advance!


RE: [Ubuntu] Simple way to run WP at start-up - drdamour - 01-04-2013 08:17 PM

you need to add whatpulse to your whitelist for tray. install unsettings and add it using that GUI, the command line is a pain cause there's no append and the whitelist already has entries. The whitelist config is in the Panel tab of unsettings


RE: [Ubuntu] Simple way to run WP at start-up - dl1000v - 01-04-2013 11:39 PM

Give this a shot to fix the start problem...
Change your command in startup manager, replacing your location with where it actually resides on your computer, to this:

Code:
sh -c "sleep 15 && /home/username/Documents/whatpulse"

As for the root permissions, there's an sh script around here somewhere that will set everything up for you. Go here: http://http://jmrk.whatpulse.org/
and get the setup permissions file, you don't have to run it as root.


RE: [Ubuntu] Simple way to run WP at start-up - DePhille - 01-05-2013 06:00 PM

Thanks!

All is working perfectly well now. I didn't alter the tray whitelist because WhatPulse ran fine when I opened it manually, so the whitelist wasn't the problem. The weird thing is that now suddenly WhatPulse added itself to my Startup list (I ran it a few times before, weird that it didn't do this before). The Startup entry is the same as the one I created except for the "onstartup" parameter which was added, probably this also fixes the problem with the tray.

So, in short, in order to have it run at startup (without having to go into init.d and all) you have to add this to your "Startup applications":
/home/username/whatpulse onstartup

The permissions script indeed gave my user permissions to read the input devices so now I'm able to run WhatPulse without being root. Also, for those who stumble upon this topic at a later date, Bjarno posted a script that installs (and sets correct permissions for the network device as well, which the earlier mentioned permissions script doesn't do) WhatPulse all for you:

Quote:For those of you who still got problems with installing and setting up WhatPulse I wrote a small script that installs the necessary packages, downloads setup-permissions.sh and executes it, downloads and unpacks WhatPulse to ~/.whatpulse-bin and make it executable. It will also configure libpcap correctly. I haven't tested it thoroughly yet but I will make changes if needed. If this script worked for you... please leave a comment or send a message (trough Whatpulse or any other way). So I'm sure that there are no problems.

Links:
32-bit:
http://dl.bjarno.be/direct/install-whatpulse_32bit.sh
64-bit:
http://dl.bjarno.be/direct/install-whatpulse_64bit.sh

Still problems?
Follow the comments of lucb1e Wink



RE: [Ubuntu] Simple way to run WP at start-up - nimd4 - 01-05-2013 07:15 PM

(01-04-2013 02:39 PM)DePhille Wrote:  Ubuntu 12.04 (LTS)

You shouldn't need to do anything, WP has an option to auto-start....

(01-05-2013 06:00 PM)DePhille Wrote:  Links

The new client comes with its own script now, packaged with the download.


RE: [Ubuntu] Simple way to run WP at start-up - nzecheru - 07-27-2013 04:18 PM

(01-04-2013 11:39 PM)dl1000v Wrote:  Give this a shot to fix the start problem...
Change your command in startup manager, replacing your location with where it actually resides on your computer, to this:

Code:
sh -c "sleep 15 && /home/username/Documents/whatpulse"

As for the root permissions, there's an sh script around here somewhere that will set everything up for you. Go here: http://http://jmrk.whatpulse.org/
and get the setup permissions file, you don't have to run it as root.

Thanks, it works on Mint 15!


RE: [Ubuntu] Simple way to run WP at start-up - nimd4 - 08-10-2013 02:32 PM

(07-27-2013 04:18 PM)nzecheru Wrote:  
(01-04-2013 11:39 PM)dl1000v Wrote:  Go here: http://http://jmrk.whatpulse.org/

Thanks, it works on Mint 15!

Lol @
the amount of spam (and confusion, for new users) you managed to create with one (bad) quote.


RE: [Ubuntu] Simple way to run WP at start-up - smitmartijn - 08-10-2013 09:47 PM

(08-10-2013 02:32 PM)nimd4 Wrote:  Lol @
the amount of spam

You mean sorta like your post here? ;-)