Ok, I have just bashed right into a brickwall. I cant figure out what is wrong.
Permission denied even as root. Lulz. And i rebooted directly after installing libpcap-progs
And rebooted after the denied messages in case it wanted to be rebooted. No success.
[code] kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> chmod +x setup-input-permissions.sh
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> sudo ./setup-input-permissions.sh
root’s password:
This script sets up read permissions for the kernel’s event devices
in order for your user to be able to run WhatPulse. It will create a new
group called ‘input’, add your username to that group, and make the event
devices readable for the group. Press Ctrl+C now if you don’t want this,
or press Return to continue.
/etc/udev/rules.d/99-whatpulse-input.rules already exists. Will not change it.
Group ‘input’ already exists!
Please enter the username that should get added to the group:
kaveh
Added user ‘kaveh’ to group ‘input’.
Setup of persistent permission settings complete.
Since the UDEV rules will only be applied when you restart your
computer, this script will now apply temporary read permissions for all
users to the device files to let you use WhatPulse immediately. You have
the chance to cancel this by pressing Ctrl+C now (which you should do if
you fear that other users on your computer might log your keyboard
events!). Otherwise press Return to continue.
All done, have fun using WhatPulse!
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> sudo cp whatpulse /opt/whatpulse
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> sudo setcap cap_net_raw,cap_net_admin=eip /opt/whatpulse
sudo: setcap: command not found
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> zypper in setcap
Root privileges are required for installing or uninstalling packages.
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> sudo zypper in setcap
Retrieving repository ‘openSUSE-12.3-Update’ metadata …[done]
Building repository ‘openSUSE-12.3-Update’ cache …[done]
Loading repository data…
Reading installed packages…
‘setcap’ not found in package names. Trying capabilities.
No provider of ‘setcap’ found.
Resolving package dependencies…
Nothing to do.
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> sudo setcap cap_net_raw,cap_net_admin=eip /opt/whatpulse
sudo: setcap: command not found
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> su
Password:
linux-8ya7:/home/kaveh/Desktop/whatpulse-linux-32bit-2.2.1 # setcap
If ‘setcap’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf setcap
linux-8ya7:/home/kaveh/Desktop/whatpulse-linux-32bit-2.2.1 # cnf setcap
The program ‘setcap’ can be found in the following package:
- libcap-progs [ path: /sbin/setcap, repository: zypp (openSUSE-12.3-1.7) ]
Try installing with:
zypper install libcap-progs
linux-8ya7:/home/kaveh/Desktop/whatpulse-linux-32bit-2.2.1 # zypper install libcap-progs
Loading repository data…
Reading installed packages…
Resolving package dependencies…
The following NEW package is going to be installed:
libcap-progs
1 new package to install.
Overall download size: 18.7 KiB. After the operation, additional 45.3 KiB will
be used.
Continue? [y/n/?] (y): y
Retrieving package libcap-progs-2.22-7.1.2.i586
(1/1), 18.7 KiB ( 45.3 KiB unpacked)
Retrieving: libcap-progs-2.22-7.1.2.i586.rpm …[done]
(1/1) Installing: libcap-progs-2.22-7.1.2 …[done]
linux-8ya7:/home/kaveh/Desktop/whatpulse-linux-32bit-2.2.1 # exit
exit
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> sudo setcap cap_net_raw,cap_net_admin=eip /opt/whatpulse
sudo: setcap: command not found
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> su
Password:
linux-8ya7:/home/kaveh/Desktop/whatpulse-linux-32bit-2.2.1 # cnf setcap
Program ‘setcap’ is present in package ‘libcap-progs’, which is installed on your system.
Absolute path to ‘setcap’ is ‘/sbin/setcap’, so running it may require superuser privileges (eg. root).
linux-8ya7:/home/kaveh/Desktop/whatpulse-linux-32bit-2.2.1 # setcap cap_net_raw,cap_net_admin=eip /opt/whatpulse
linux-8ya7:/home/kaveh/Desktop/whatpulse-linux-32bit-2.2.1 # ln -s /opt/whatpulse /usr/local/bin/whatpulse
linux-8ya7:/home/kaveh/Desktop/whatpulse-linux-32bit-2.2.1 # exit
exit
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> whatpulse
bash: /usr/local/bin/whatpulse: Permission denied
kaveh@linux-8ya7:~/Desktop/whatpulse-linux-32bit-2.2.1> su
Password:
linux-8ya7:/home/kaveh/Desktop/whatpulse-linux-32bit-2.2.1 # whatpulse
bash: /usr/local/bin/whatpulse: Permission denied
linux-8ya7:/home/kaveh/Desktop/whatpulse-linux-32bit-2.2.1 #[/code]