Cant install the linux client

[code]atouba@ideapad:~/Arbeitsfläche$ sudo ./whatpulse
QGtkStyle was unable to detect the current GTK+ theme.
Database check: “ok”
“/home/atouba/.local/share/data/WhatPulse/whatpulse.db”
Starting AsyncDatabase
Starting AsyncDatabase
Creating device listener for “/dev/input/event0”
Creating device listener for “/dev/input/event1”
Creating device listener for “/dev/input/event10”
Creating device listener for “/dev/input/event11”
Couldn’t open device “/dev/input/event11” ! error: Die Operation ist nicht erlaubt

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event12”
Creating device listener for “/dev/input/event2”
Creating device listener for “/dev/input/event3”
Creating device listener for “/dev/input/event4”
Creating device listener for “/dev/input/event5”
Creating device listener for “/dev/input/event6”
Creating device listener for “/dev/input/event7”
Creating device listener for “/dev/input/event8”
Creating device listener for “/dev/input/event9”
Starting NetworkMonitor…
NetworkMonitor: Starting interface 2
Can’t get netmask for device “eth0” : eth0: no IPv4 address assigned
WhatPulse has started
Unable to find videocard in our database with vendor “8086” , device “A011” and subsys “17AA3908”
QPropertyAnimation: you’re trying to animate a non-existing property opacity of your QObject
QPixmap: It is not safe to use pixmaps outside the GUI thread
[/code]

I don’t think it’s possible with the current version. It needs the X-Server to capture the inputs and I think it’s hard linked against qt for the gui. To get it running “headless” you would have to either make the gui optional, provide a cli-gui or split the software in two separate processes - core and gui. I think, this is something for the low-prio-nice-to-have-list :wink:

WhatPulse is a desktop program, so there is no headless client. Don’t think there will every be one as well.

You can’t start whatpulse at system start (e.g. before your GUI-Session).
You can however start it after you’ve logged into your GNOME or Unity-Session. On my machines, whatpulse “installed” itself to do so. There is an administrative program called “startup applications” in the english version, at the moment I can’t look how it’s called in german. You can define programs that are launched directly after you login, whatpulse might be there (and does not start because it only runs as root) or will have to be put there by you. Do you get a “no system tray found”-message after logging in? That might be whatpulse starting to early before the system tray is available. You would to delay it.

Also… do you get an error message in the console when starting whatpulse as your non-root-user? You should never have to run non-system-programs as root, that’s kind of dangerous…

And… “Desktop” is “Desktop” in the english version… :wink:
Your english is actually not that bad. I think I can perfectly understand what you mean, and I’m not a native speaker, too. We could talk in German, but let’s stick to English for the benefit of all the others… :wink:
[hr]

okay, now I see why it won’t run without root :slight_smile:

→ try chown-ing the directory “/home/atouba/.local/share/data/WhatPulse/” and it’s contents to your own user, it might belong to root.
In the future, you might want to do a “sudo su -” first (don’t forget the - at the end) and then start the program with “./whatpulse”.

Beware, if you choose the same Whatpulse-Account + Computer while running as root, you will definitely get token-errors and lose stats.

As for the network problems:
You’re connected by WLAN to the internet and not by ethernet cable?
If so, then the interface is not recognized by whatpulse. This is either a permission problem or because it is some very unique wlan adaptor. In both cases it’s impossible for me to advise… :-/

Apparently WhatPulse doesn’t like being run on a remote Gnome-desktop. System-tray error comes up but the application does run nicely. Quite a few errors in terminal which I still need to look into. One thing I did notice but unsure if it’s due to the errors or the remote desktop; it doesn’t count keys/clicks. Not that I really need but would be nice to have.

@smitmartijn: I do understand that it’s a desktop application but then again “we” need to run it partially with root-access AND need network-monitoring software for our bandwidth. Both hook into the deepest part of the kernel (either Windows or Unix) so in some future wish-list I would like a headless client; even it was only for my bandwidth-statistics & uptime.

And something I don’t understand; Whatpulse for Linux (64bit client) uses 2GB of Reserved Memory when I look at “top”; bit much?

Right, errors currently present:

[quote][size=x-small]desktop@server:~/whatpulse-linux-64bit-2.0$ sudo setcap cap_net_raw,cap_net_admin=eip ./whatpulse
desktop@server:~/whatpulse-linux-64bit-2.0$ ./whatpulseDatabase check: “ok”
“/home/desktop/.local/share/data/WhatPulse/whatpulse.db”
Starting AsyncDatabase
Starting AsyncDatabase
Unable to open savefile
No input devices (/dev/input/*) found! WhatPulse cannot count your keys/clicks.
Starting NetworkMonitor…
Failed to open: “/sys/class/net/tunl0/device/vendor”
Failed to open: “/sys/class/net/sit0/device/vendor”
Failed to open: “/sys/class/net/dummy0/device/vendor”
Failed to open: “/sys/class/net/ip6tnl0/device/vendor”
Failed to open: “/sys/class/net/bond0/device/vendor”
NetworkMonitor: Starting interface 4
pcap thread started on interface “eth0” false
WhatPulse has started
Error opening file for reading: Permission denied
Unable to find videocard in our database with vendor “8086” , device “0BE2” and subsys “80862012”
QPropertyAnimation: you’re trying to animate a non-existing property opacity of your QObject
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
NetworkMonitor: Starting interface 2
Can’t get netmask for device “bond0” : bond0: no IPv4 address assigned
NetworkMonitor: Starting interface 3
Can’t get netmask for device “dummy0” : dummy0: no IPv4 address assigned
NetworkMonitor: Starting interface 5
Can’t get netmask for device “tunl0” : tunl0: no IPv4 address assigned
NetworkMonitor: Starting interface 6
Can’t get netmask for device “sit0” : sit0: no IPv4 address assigned
NetworkMonitor: Starting interface 7
Can’t get netmask for device “ip6tnl0” : ip6tnl0: no IPv4 address assigned
QPropertyAnimation: you’re trying to animate a non-existing property opacity of your QObject[/size][/quote]

I downloaded "Startup Applications via the Lubuntu Software Center but cant find it in my programms. However, I tried du uncheck the “Launch when computer starts” box, saved and checked it again. Not, WhatPulse starts after the login, but it dont counts keys or clicks (because it starts without root rights). The overview is also resettet (total keycount, total clickcount, etc.).

No, I dont get this message. I got this error with my old Unbuntu 10.x and the old WP Linux Client.

When I start WP without Root Rights, the following error occoures:

[code]atouba@ideapad:~/Arbeitsfläche$ ./whatpulse
QGtkStyle was unable to detect the current GTK+ theme.
Database check: “ok”
“/home/atouba/.local/share/data/WhatPulse/whatpulse.db”
Starting AsyncDatabase
Starting AsyncDatabase
Creating device listener for “/dev/input/event0”
Couldn’t open device “/dev/input/event0” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event1”
Couldn’t open device “/dev/input/event1” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event10”
Couldn’t open device “/dev/input/event10” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event11”
Couldn’t open device “/dev/input/event11” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event12”
Couldn’t open device “/dev/input/event12” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event2”
Couldn’t open device “/dev/input/event2” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event3”
Couldn’t open device “/dev/input/event3” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event4”
Couldn’t open device “/dev/input/event4” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event5”
Couldn’t open device “/dev/input/event5” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event6”
Couldn’t open device “/dev/input/event6” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event7”
Couldn’t open device “/dev/input/event7” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event8”
Couldn’t open device “/dev/input/event8” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event9”
Couldn’t open device “/dev/input/event9” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
No input devices (/dev/input/*) found! WhatPulse cannot count your keys/clicks.
Starting NetworkMonitor…
NetworkMonitor: Starting interface 2
Can’t get netmask for device “eth0” : eth0: no IPv4 address assigned
WhatPulse has started
Unable to find videocard in our database with vendor “8086” , device “A011” and subsys “17AA3908”
QPropertyAnimation: you’re trying to animate a non-existing property opacity of your QObject
QPixmap: It is not safe to use pixmaps outside the GUI thread
atouba@ideapad:~/Arbeitsfläche$ ./whatpulse
QGtkStyle was unable to detect the current GTK+ theme.
Database check: “ok”
“/home/atouba/.local/share/data/WhatPulse/whatpulse.db”
Starting AsyncDatabase
Starting AsyncDatabase
Creating device listener for “/dev/input/event0”
Couldn’t open device “/dev/input/event0” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event1”
Couldn’t open device “/dev/input/event1” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event10”
Couldn’t open device “/dev/input/event10” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event11”
Couldn’t open device “/dev/input/event11” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event12”
Couldn’t open device “/dev/input/event12” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event2”
Couldn’t open device “/dev/input/event2” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event3”
Couldn’t open device “/dev/input/event3” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event4”
Couldn’t open device “/dev/input/event4” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event5”
Couldn’t open device “/dev/input/event5” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event6”
Couldn’t open device “/dev/input/event6” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event7”
Couldn’t open device “/dev/input/event7” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event8”
Couldn’t open device “/dev/input/event8” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
Creating device listener for “/dev/input/event9”
Couldn’t open device “/dev/input/event9” ! error: Keine Berechtigung

Make sure you have permission to read that file.

Error: true
No input devices (/dev/input/*) found! WhatPulse cannot count your keys/clicks.
Starting NetworkMonitor…
NetworkMonitor: Starting interface 2
Can’t get netmask for device “eth0” : eth0: no IPv4 address assigned
WhatPulse has started
Unable to find videocard in our database with vendor “8086” , device “A011” and subsys “17AA3908”
QPropertyAnimation: you’re trying to animate a non-existing property opacity of your QObject
QPixmap: It is not safe to use pixmaps outside the GUI thread
[/code]

After that, WP starts but dont counts keys (like after the login).

I dont know what “chown-ing” is, but I looked into that directory. The folder and both files “whatpulse.db” and “whatpulse.wpw” got on the “Owner” and “Group” my Username, not root.

At this point, I got the WhatPulse program on my desktop, press the right button and start it with gksudo, enter my password and then it starts correctly. Of course, this is not the perfect solution…

Yeah, its WLAN. But I think, I can live with that. I dont have big traffic use on my netbook (only for surfing, some youtube videos, mails…).

Thanks anyway! :slight_smile:

Any solution, how I can start WP without root rights?

@BladeX

sudo chown atouba:atouba -R /home/atouba/.local/share/data/WhatPulse

If your user is NOT atouba but john, make is john:john

Also, you could add your user to the /etc/sudoers file. It will have root access to perform operations (and a bit more) but still belong to the regular user-groups. In the end, for some operations you still need to start the command with sudo and on some directories/files you probably won’t have permissions.

I had the same errors, but they disappeared after running the permission script that was originally for the old client – and that should fix the “need to be run as root”, too.
you find it here:
http://jmrk.whatpulse.org/ (5th link on the page)

Sure.

To check, use getcap --help

~$ sudo getcap ~/bin/whatpulse /home/kgbme/bin/whatpulse = cap_net_admin,cap_net_raw+eip

Nope. :slight_smile:

PS.

[quote=“MAX3400, post:27, topic:10659”]sudo chown atouba:atouba -R /home/atouba/.local/share/data/WhatPulse

If your user is NOT atouba but john, make is john:john[/quote]

Easier way would be:

sudo chown -R $USER:$USER

and to see the permissions:

ls -al

This is NOT a good idea for new(bie) users.

PPS.
Just a reminder, to install and use WhatPulse, check this for requirements and one way to have it is:

sudo cp whatpulse /opt/whatpulse sudo ln -s /opt/whatpulse /usr/local/bin/whatpulse sudo setcap cap_net_raw,cap_net_admin=eip /opt/whatpulse whatpulse

Ive done this with my whole “atouba” folder (found this in another forum, after using google ;))

Perfect, now it works without root and directly after login. Thanks a lot! :slight_smile:

Some of the files in your home folder might’ve had a different owner, but not necessarily. It’s always a bad idea to use -R recursive if you’re not 110% what you’re doing, just btw.

@nimd: that why I pointed to the sudoers… Yes, it might be a bad(dish) idea for newcomers but with some googling/tutorials, it’s very easy to make a mortal user able to do certain advanced things on a Linux-machine. It’s indeed not necessary to have full root access but then again neither does the root-user, imho.

The WhatPulse folder seems quite harmless to use -R; other folders on a system can pose a bigger problem especially when compiling from source-files. The problem is (unreleased??) documentation on the end of the developers. Not that they need to supply documentation but it could help a lot of more advanced users to see and maybe troubleshoot better how the Linux-client works.

Tnx, my mistake, edited; && still think that it’s an absolutely horrible idea to (have new users) enable root by editing the Sudoers file :stuck_out_tongue: ;d but, I just didn’t wanna stress the issue. :slight_smile: