whatpulse instalacja pod Ubuntu 10.04

Problemy dotyczące innych systemów operacyjnych
El NIno
Posty: 5
Rejestracja: 21 czerwca 2010, 15:36

whatpulse instalacja pod Ubuntu 10.04

Post autor: El NIno »

Witam.
Jestem nowym użytkownikiem forum, jak i systemu Linux.

Mam taki problem, gdy chcę zainstalować whatpulse (program liczy stuknięcia w klawiaturę, kliknięcia myszą, przejechany dystans, fajna sprawa, używam pod Windows), w każdym razie wyświetla się komunikat:

Kod: Zaznacz cały

Failed to open device /dev/input/event0! Make sure you have set up appropriate read permissions.
O co tu chodzi? Tłumaczyłem na polski, ale nadal nie bardzo wiem.
Pozdrawiam
pavbaranov
Senior Member
Posty: 2156
Rejestracja: 29 lipca 2007, 18:06

Post autor: pavbaranov »

Komunikat zrozumiały, natomiast pytanie jest inne - skąd i jak instalowałeś Whatpulse (bo chyba taka jest prawidłowa nazwa tego programu); na stronie jest skrypt instalacyjny dla linuksa?
El NIno
Posty: 5
Rejestracja: 21 czerwca 2010, 15:36

Post autor: El NIno »

Jest skrypt, ale szczerze mówiąc to jestem tak zielony, że nie wiem co z nim zrobić?

Kod: Zaznacz cały

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

read temp

if [ "`whoami`" != "root" ] ; then
    echo "This script must be run as root (e.g. using sudo). Will now exit."
    exit
fi

# set up persistent settings

if [ -r /etc/udev/rules.d/99-whatpulse-input.rules ] ; then
    echo "/etc/udev/rules.d/99-whatpulse-input.rules already exists. Will not change it."
else
    echo "KERNEL==\"event*\",       NAME=\"input/%k\", MODE=\"640\", GROUP=\"input\"" >> /etc/udev/rules.d/99-whatpulse-input.rules
    if [ $? != 0 ] ; then
        echo "There was some error creating the udev rule file. Sorry. Quitting."
        exit
    fi
    echo "UDEV rules file has been set up."
fi

if [ -n "`cat /etc/group | grep -e ^input:`" ] ; then
    echo "Group 'input' already exists!"
else
    groupadd input
    echo "Created group 'input'."
fi

echo "Please enter the username that should get added to the group:"
read username

if [ -z "$username" ] ; then
    echo "What do you mean by an empty username? Quitting."
    exit
fi

if [ -z "`cat /etc/passwd | grep -e ^$username:`" ] ; then
    echo "This username doesn't exist. Quitting."
    exit
fi

gpasswd -a $username input &> /dev/null
if [ $? != 0 ] ; then
    # maybe this is openSUSE (or a similar system)
    usermod -A input $username &> /dev/null
    if [ $? != 0 ] ; then
        echo "There was a problem adding your username to the group 'input'.
Please add your user to the 'input' group yourself."
    else
        echo "Added user '$username' to group 'input', using the special openSUSE method."
    fi
else
    echo "Added user '$username' to group 'input'."
fi
echo " "
echo "Setup of persistent permission settings complete."

# apply non-persistent settings so that no reboot is necessary :-)

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

read temp

find /dev/input/ -iname 'event*' -exec chmod 644 {} \;

echo "All done, have fun using WhatPulse!"
Tak to wygląda, pobrałem go, co dalej zrobić?
pavbaranov
Senior Member
Posty: 2156
Rejestracja: 29 lipca 2007, 18:06

Post autor: pavbaranov »

To w jaki sposób instalowałeś program?
Skrypt - należy prawdopodobnie zmienić go w wykonywalny (jeśli nie jest) i prawdopodobnie jako root odpalić w konsoli. Nigdzie na stronie nie ma instrukcji?
Przeczytaj też materiały dla początkujących na forum. Przydadzą się.
El NIno
Posty: 5
Rejestracja: 21 czerwca 2010, 15:36

Post autor: El NIno »

Do ściągnięcia była również wersja instalacyjna, z niej instalowałem.
Na stronie instrukcji nie ma, zresztą nawet gdyby była, to na niewiele by się zdała, kiepsko u mnie z angielskim.
Co do zmiany skryptu na wykonalny, jak tego dokonać?
A co do materiałów to zapoznam się, z całą pewnością, dziękuję za wszystkie dotychczasowe rady.
fnmirk
Senior Member
Posty: 8321
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

&quot pisze:Na stronie instrukcji nie ma, zresztą nawet gdyby była, to na niewiele by się zdała, kiepsko u mnie z angielskim.
To dlaczego nie przedstawisz odnośników do strony programu, z której go pobrałeś.
El NIno
Posty: 5
Rejestracja: 21 czerwca 2010, 15:36

Post autor: El NIno »

fnmirk
Senior Member
Posty: 8321
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

El NIno, teraz się pochwal jakiej wersji Debiana lub innego Linuksa używasz. Na stronie, do której odnośnik przedstawiłeś jest kilka wersji tego programu.
Jeżeli oczekujesz pomocy to zacznij poważnie i konkretnie zadawać pytania. Jak dotąd nie dostarczyłeś żadnych konkretnych informacji.

Przejrzyj dokładnie: http://rtfm.killfile.pl/ przyda się w przyszłości.

A teraz dostarcz informacji o swoim systemie i którą konkretnie wersję programu próbujesz zainstalować.
El NIno
Posty: 5
Rejestracja: 21 czerwca 2010, 15:36

Post autor: El NIno »

Używam Ubuntu 10.04, 32 bitowy, a mówisz, że kilka wersji jest, ktoś z nas musi nie dowidzieć, bo ja widzę tam co najwyżej dwie, a to nie kilka, tylko para.
fnmirk
Senior Member
Posty: 8321
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

El NIno, masz do odbioru prywatną wiadomość. Nie śmieć pisząc nie na temat.
ODPOWIEDZ