This is an old revision of the document!
Install the following packages
sudo apt-get install joystick sudo apt-get install jstest-gtk