<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Here is a list of commands to run in a terminal in order to install all
needed packages for wiimote and whiteboard in ubuntu 8.10. It creates
two profiles: multimedia and presentation. <br>
Multimedia is the default and has volume up/down/mute, next, previous.
forward,backward, play/pause and<br>
Presentation is for presentations it supports Slide show (F5), Stop
(Esc), white (w) and volume. You can enable this by running :<br>
sudo ln -fs /etc/cwiid/wminput/presentation /etc/cwiid/wminput/default<br>
<br>
[code]<br>
sudo su<br>
wget -O /tmp/whiteboard_0.3.4.2-0ubuntu2automated_i386.deb
<a class="moz-txt-link-freetext" href="http://linux-whiteboard.googlecode.com/files/whiteboard_0.3.4.2-0ubuntu2automated_i386.deb">http://linux-whiteboard.googlecode.com/files/whiteboard_0.3.4.2-0ubuntu2automated_i386.deb</a><br>
apt-get install wminput wmgui lswm<br>
apt-get install libgtkmm-2.4-1c2a libglademm-2.4-1c2a libcairomm-1.0-1
libglibmm-2.4-1c2a libpangomm-1.4-1<br>
dpkg -i /tmp/whiteboard_0.3.4.2-0ubuntu2automated_i386.deb<br>
rm /tmp/whiteboard_0.3.4.2-0ubuntu2automated_i386.deb<br>
#lswm<br>
grep uinput /etc/modules || echo uinput >> /etc/modules<br>
modprobe uinput<br>
file=/etc/cwiid/wminput/mmedia<br>
echo "Wiimote.A = BTN_LEFT" > $file<br>
echo "Wiimote.B = BTN_RIGHT" >> $file<br>
echo "Wiimote.Up = KEY_PREVIOUSSONG" >> $file<br>
echo "Wiimote.Down = KEY_NEXTSONG" >> $file<br>
echo "Wiimote.Left = KEY_BACK " >> $file<br>
echo "Wiimote.Right = KEY_FORWARD" >> $file<br>
echo "Wiimote.Minus = KEY_VOLUMEDOWN" >> $file<br>
echo "Wiimote.Plus = KEY_VOLUMEUP" >> $file<br>
echo "Wiimote.Home = KEY_MUTE" >> $file<br>
echo "Wiimote.1 = KEY_PROG1" >> $file<br>
echo "Wiimote.2 = KEY_PAUSE" >> $file<br>
echo "Plugin.ir_ptr.X = ABS_X" >> $file<br>
echo "Plugin.ir_ptr.Y = ABS_Y" >> $file<br>
file=/etc/cwiid/wminput/presentation<br>
echo "Wiimote.A = BTN_LEFT" > $file<br>
echo "Wiimote.B = BTN_RIGHT" >> $file<br>
echo "Wiimote.Up = KEY_UP" >> $file<br>
echo "Wiimote.Down = KEY_DOWN" >> $file<br>
echo "Wiimote.Left = KEY_LEFT" >> $file<br>
echo "Wiimote.Right = KEY_RIGHT" >> $file<br>
echo "Wiimote.Minus = KEY_VOLUMEDOWN" >> $file<br>
echo "Wiimote.Plus = KEY_VOLUMEUP" >> $file<br>
echo "Wiimote.Home = KEY_ESC" >> $file<br>
#echo "Wiimote.Home = KEY_MUTE" >> $file<br>
echo "Wiimote.1 = KEY_F5" >> $file<br>
echo "Wiimote.2 = KEY_COMMA" >> $file<br>
#echo "Wiimote.2 = KEY_DOT" >> $file<br>
echo "Plugin.ir_ptr.X = ABS_X" >> $file<br>
echo "Plugin.ir_ptr.Y = ABS_Y" >> $file<br>
ln -fs /etc/cwiid/wminput/mmedia /etc/cwiid/wminput/default<br>
echo "case \"\$1\" in" > /etc/init.d/wiimote<br>
echo " start)" >> /etc/init.d/wiimote<br>
echo " wminput -d &" >> /etc/init.d/wiimote<br>
echo " ;;" >> /etc/init.d/wiimote<br>
echo " stop)" >> /etc/init.d/wiimote<br>
echo " pkill wminput" >> /etc/init.d/wiimote<br>
echo " ;;" >> /etc/init.d/wiimote<br>
echo "esac" >> /etc/init.d/wiimote<br>
chmod +x /etc/init.d/wiimote<br>
update-rc.d wiimote defaults 99<br>
[/code]<br>
<br>
<br>
Is automated and you dont need to do anything but press 1&2 on
wiimote to start using it. It also enables it after each restart.<br>
<br>
<br>
<br>
<br>
Depending on your favorite player you have to change shortcuts in order
to work with it:<br>
<br>
--Amarok<br>
Amarok -> Settings -> Configure Shortcuts<br>
Play/Pause -> Click Custom -> Click on Button -> Click on
Alternate Shortcut Button -> Press Wii Button 2 (It should Add
"Pause")<br>
Seek Backward -> Click Custom -> Click on Button -> Click on
Alternate Shortcut Button -> Press Wii Left Arrow (It should Add
"XF86Back")<br>
Seek Forward -> Click Custom -> Click on Button -> Click on
Alternate Shortcut Button -> Press Wii Right Arrow (It should Add
"XF86Forward")<br>
<br>
--VLC<br>
--some keys do not work <img
src="cid:part1.00080809.04080400@gmail.com" alt="" title="Sad"
class="inlineimg" border="0"><br>
VLC -> Tools -> Preferences -> HotKeys<br>
Next -> Click in Editbox -> Press Wii Down Arrow (It should Add
"Media Next Track") -> Click Set<br>
Previous -> Click in Editbox -> Press Wii Up Arrow (It should Add
"Media Prev Track") -> Click Set<br>
Click Save<br>
</body>
</html>