WhatPulse Forums » Support » Client software v » Cant install the linux client Welcome back, Guest.


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant install the linux client
12-26-2012, 09:53 AM (This post was last modified: 12-26-2012 09:54 AM by BladeX.)
Post: #21
RE: 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
Find all posts by this user
Quote this message in a reply
12-26-2012, 11:04 AM
Post: #22
RE: Cant install the linux client
(12-24-2012 09:41 AM)MAX3400 Wrote:  Still highly unsure how to NOT install the desktop to run Whatpulse.

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
Find all posts by this user
Quote this message in a reply
12-26-2012, 11:12 AM
Post: #23
RE: Cant install the linux client
WhatPulse is a desktop program, so there is no headless client. Don't think there will every be one as well.
Visit this user's website Find all posts by this user
Quote this message in a reply
12-26-2012, 11:15 AM (This post was last modified: 12-26-2012 11:26 AM by FamilienVater.)
Post: #24
RE: Cant install the linux client
(12-25-2012 05:26 PM)BladeX Wrote:  My whatpulse file is on my desktop ("Arbeitsfläche", Workplace(?)).

And one other "problem": WhatPulse is only starting as root (gksudo). Any idea how I can start WP at System Start?

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

(12-26-2012 09:53 AM)BladeX Wrote:  
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

okay, now I see why it won't run without root 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... Undecided
Find all posts by this user
Quote this message in a reply
12-26-2012, 03:20 PM (This post was last modified: 12-26-2012 03:21 PM by MAX3400.)
Post: #25
RE: Cant install the linux client
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: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
Find all posts by this user
Quote this message in a reply
12-26-2012, 06:11 PM
Post: #26
RE: Cant install the linux client
(12-26-2012 11:15 AM)FamilienVater Wrote:  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.

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.).

(12-26-2012 11:15 AM)FamilienVater Wrote:  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...

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

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

(12-26-2012 11:15 AM)FamilienVater Wrote:  -> 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".

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..

(12-26-2012 11:15 AM)FamilienVater Wrote:  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... Undecided

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! Smile

Any solution, how I can start WP without root rights?
Find all posts by this user
Quote this message in a reply
12-26-2012, 06:41 PM
Post: #27
RE: Cant install the linux client
@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.
Find all posts by this user
Quote this message in a reply
12-26-2012, 06:57 PM (This post was last modified: 12-26-2012 06:57 PM by FamilienVater.)
Post: #28
RE: Cant install the linux client
(12-26-2012 06:11 PM)BladeX Wrote:  When I start WP without Root Rights, the following error occoures:

Code:
atouba@ideapad:~/Arbeitsfläche$ ./whatpulse
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.

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

[...]

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

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)
Find all posts by this user
Quote this message in a reply
12-26-2012, 07:40 PM (This post was last modified: 12-29-2012 05:35 PM by nimd4.)
Post: #29
RE: Cant install the linux client
(12-26-2012 12:42 AM)FamilienVater Wrote:  did you try running the client from command line?
Sure.

(12-26-2012 12:42 AM)FamilienVater Wrote:  And yes, setcap doesn't output anything if it works...

To check, use getcap --help
Code:
~$ sudo getcap ~/bin/whatpulse
/home/kgbme/bin/whatpulse = cap_net_admin,cap_net_raw+eip

(12-26-2012 11:15 AM)FamilienVater Wrote:  (and does not start because it only runs as root)

Nope. Smile

[Image: Screenshot_12262012_08_39_05_PM.jpg]

PS.

(12-26-2012 06:41 PM)MAX3400 Wrote:  sudo chown atouba:atouba -R /home/atouba/.local/share/data/WhatPulse

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

Easier way would be:

Code:
sudo chown -R $USER:$USER

and to see the permissions:

Code:
ls -al


(12-26-2012 06:41 PM)MAX3400 Wrote:  Also, you could add your user to the /etc/sudoers file.

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:
Code:
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

[Image: 2itq8g6.png]
^ This was cool xD
[Image: mcdty0-3.png]
Find all posts by this user
Quote this message in a reply
12-26-2012, 07:57 PM
Post: #30
RE: Cant install the linux client
(12-26-2012 06:41 PM)MAX3400 Wrote:  @BladeX

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

Ive done this with my whole "atouba" folder (found this in another forum, after using google Wink)

(12-26-2012 06:57 PM)FamilienVater Wrote:  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)

Perfect, now it works without root and directly after login. Thanks a lot! Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  WhatPulse 64bit install on Lubuntu 19.04 SiKTheGreatOne 0 362 06-30-2019 02:49 AM
Last Post: SiKTheGreatOne
  [SOLVED] Can't run the Linux version [Driver not loaded Driver not loaded] radioz 2 1,045 06-20-2019 11:54 AM
Last Post: radioz
  WhatPulse not opening on Manjaro Linux (Arch distro) tboxley 4 760 05-26-2019 11:30 AM
Last Post: FamilienVater
  Whatpulse won't start, Unable to install crashRpt! Bai.Bing 0 304 05-24-2019 01:02 PM
Last Post: Bai.Bing
  Mac client causing latency every ~10 seconds bryandh 10 2,518 03-09-2017 04:50 PM
Last Post: DJLunacy
Information [CLOSED] Mouse distance counter in Windows client. TigraPolosatiy 1 736 02-27-2017 05:30 PM
Last Post: smitmartijn
  Client crash on launch (v2.7.1) Sovex66 13 2,538 02-27-2017 09:31 AM
Last Post: Dosphal
Bug Client doing an insane amount of writing to disk Formina_Sage 4 1,148 11-04-2016 04:47 PM
Last Post: smitmartijn
  [SOLVED] Client crashes on startup v. 2.7 Win10x64 Lttngblt 11 2,760 10-08-2016 06:43 PM
Last Post: smitmartijn
  [CLOSED] Client Crash macOS Sierra SeeEmAge 3 1,259 09-15-2016 03:42 AM
Last Post: smitmartijn

Forum Jump:


User(s) browsing this thread: 1 Guest(s)