<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mactalla</id>
	<title>LinuxMCE - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mactalla"/>
	<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php/Special:Contributions/Mactalla"/>
	<updated>2026-07-22T01:27:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Unsupported_Disked_MD&amp;diff=18594</id>
		<title>Unsupported Disked MD</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Unsupported_Disked_MD&amp;diff=18594"/>
		<updated>2009-04-17T00:11:33Z</updated>

		<summary type="html">&lt;p&gt;Mactalla: New page: &amp;#039;&amp;#039;&amp;#039;NOTE: Disked MDs are unsupported in 710 and 810.  If you pursue these instructions, keep your questions/comments here and don&amp;#039;t ask the devs for help.  They&amp;#039;re plenty busy working to ge...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: Disked MDs are unsupported in 710 and 810.  If you pursue these instructions, keep your questions/comments here and don&#039;t ask the devs for help.  They&#039;re plenty busy working to get the other parts ready.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In the ideal situation, each MD should be diskless and boot over the network.  This simplifies matters for configuration, upgrading, etc.  Not to mention it&#039;s the supported method.  There is one case in particular where this is not feasible.  Namely when you want an MD in a room where you cannot run a cable and must connect wirelessly.&lt;br /&gt;
&lt;br /&gt;
Bear in mind that this setup is&lt;br /&gt;
* slower&lt;br /&gt;
* error prone&lt;br /&gt;
* not upgraded automatically&lt;br /&gt;
* not supported&lt;br /&gt;
&lt;br /&gt;
I created this setup using a 810 Alpha2 installation.  It&#039;s likely very similar for 710, but that&#039;s not tested.&lt;br /&gt;
&lt;br /&gt;
=Overview=&lt;br /&gt;
The way we set this up is to install a full-blown hybrid on the MD, disable the core services to trim it down to MD-only, then manually make the connections between the true core and the new MD.  The final step configures wireless to connect on boot.  If you&#039;re not connecting wirelessly, there&#039;s no point in doing this disked setup.&lt;br /&gt;
&lt;br /&gt;
=Setup=&lt;br /&gt;
Follow [[LinuxMCE-0810_alpha2]] to install a hybrid on the new MD.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/inittab and make sure the only uncommented line (no &#039;#&#039; at the beginning) is id:5  We&#039;ll be using runlevel 5 for our setup.&lt;br /&gt;
&lt;br /&gt;
Go to /etc/rc5.d and delete the following files (if they exist):&lt;br /&gt;
* S17mysql-ndb-mgm&lt;br /&gt;
* S18mysql-ndb&lt;br /&gt;
* S19autofs&lt;br /&gt;
* S19mysql&lt;br /&gt;
* S20nfs-common&lt;br /&gt;
* S20nfs-kernel-server&lt;br /&gt;
* S21asterisk&lt;br /&gt;
* S28NetworkManager (we&#039;ll be configuring the wireless manually)&lt;br /&gt;
* S99core&lt;br /&gt;
* S99kdm&lt;br /&gt;
* S99launch-manager&lt;br /&gt;
&lt;br /&gt;
Edit /etc/init.d/launch-manager to contain the following:&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
         if [[ &amp;quot;$1&amp;quot; == start ]]; then&lt;br /&gt;
                 rm /usr/pluto/locks/pluto_spawned_local_devices.txt&lt;br /&gt;
                 /usr/pluto/bin/Start_X.sh&lt;br /&gt;
                 sleep 5&lt;br /&gt;
                 /usr/pluto/bin/lmce_launch_manager.sh &amp;amp;&lt;br /&gt;
         fi&lt;br /&gt;
And create a link&lt;br /&gt;
 sudo ln -s /etc/init.d/launch-manager /etc/rc5.d/S99zlaunch-manager&lt;br /&gt;
&lt;br /&gt;
Now we create an MD on the core.  Using the webadmin, add a new MD.  Give it the MAC address of the wireless card (use ifconfig to find it).  Note what device number it was assigned.&lt;br /&gt;
&lt;br /&gt;
Edit the file /etc/pluto.conf on the disked MD and change the following lines:&lt;br /&gt;
 DCERouter = &amp;lt;your core machine here&amp;gt;&lt;br /&gt;
 MySqlHost = &amp;lt;your core machine here&amp;gt;&lt;br /&gt;
 PK_Device = &amp;lt;the device number assigned to the MD you created on the web admin&amp;gt;&lt;br /&gt;
 AutostartCore = 0&lt;br /&gt;
 AutostartMedia = 1&lt;br /&gt;
&lt;br /&gt;
Edit the file /etc/fstab on the disked MD and add the following lines:&lt;br /&gt;
 &amp;lt;core machine&amp;gt;:/usr/pluto/orbiter /usr/pluto/orbiter nfs intr,udp,rsize=32768,wsize=32768,retrans=10,timeo=50 1 1&lt;br /&gt;
 &amp;lt;core machine&amp;gt;:/home /home nfs intr,udp,rsize=32768,wsize=32768,retrans=10,timeo=50 1 1&lt;br /&gt;
 &amp;lt;core machine&amp;gt;:/mnt/device/79 /mnt/device/79 nfs intr,udp,rsize=32768,wsize=32768,retrans=10,timeo=50 1 1&lt;br /&gt;
&lt;br /&gt;
The last line is if your core machine mounts some media at /mnt/device/## in the case above it&#039;s a RAID array containing my media, so I need access to it on the MD.  You can find out if you need this by running&lt;br /&gt;
 ls -l /home/public/data/videos&lt;br /&gt;
on the core (or MD after you&#039;ve mounted /home) and check for a link to /mnt/device/##&lt;br /&gt;
&lt;br /&gt;
Now we configure the wireless.&lt;br /&gt;
Use ifconfig to find the interface name for your wireless card (common ones are eth1, wlan0, ra0).&lt;br /&gt;
Edit /etc/network/interfaces and add the following:&lt;br /&gt;
 auto &amp;lt;wireless interface&amp;gt;&lt;br /&gt;
 iface &amp;lt;wireless interface&amp;gt; inet dhcp&lt;br /&gt;
 wpa-driver wext&lt;br /&gt;
 wpa-conf /etc/wpa_supplicant.conf&lt;br /&gt;
&lt;br /&gt;
Finally we&#039;ll create the /etc/wpa_supplicant.conf file&lt;br /&gt;
 network={&lt;br /&gt;
   ssid=&amp;quot;&amp;lt;Your access point ssid&amp;gt;&amp;quot;&lt;br /&gt;
   psk=&amp;quot;&amp;lt;Your encryption key&amp;gt;&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Reboot and cross your fingers!&lt;br /&gt;
&lt;br /&gt;
=Problems?=&lt;br /&gt;
It&#039;s quite possible I forgot something.  Post here and we&#039;ll try to sort it out.&lt;/div&gt;</summary>
		<author><name>Mactalla</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Nintendo_WiiMote&amp;diff=18455</id>
		<title>Nintendo WiiMote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Nintendo_WiiMote&amp;diff=18455"/>
		<updated>2009-04-14T21:48:00Z</updated>

		<summary type="html">&lt;p&gt;Mactalla: Alternate wminputd to avoid frame drops in video&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
[[Category: Hardware]]&lt;br /&gt;
[[Category: Input]]&lt;br /&gt;
[[Category:Infrared]]&lt;br /&gt;
[[category: tutorials]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Wiimote.jpg|right|thumb|The Nintendo Wiimote]]&lt;br /&gt;
&lt;br /&gt;
This device is not out of the box supported by LinuxMCE, but it is known to work [https://help.ubuntu.com/community/CWiiD] [http://forum.linuxmce.com/index.php?topic=1246.0] [http://forum.linuxmce.org/index.php?topic=2411.msg11435].&lt;br /&gt;
&lt;br /&gt;
== Wiimote setup ==&lt;br /&gt;
&lt;br /&gt;
I will try to explain what i have done to make the wiimote work with linuxmce.&lt;br /&gt;
&lt;br /&gt;
The wiimote is a cheap gyration device which could work for linuxmce instead of the chief remote from fiire which i find too expensive!!&lt;br /&gt;
&lt;br /&gt;
= Setup =&lt;br /&gt;
&lt;br /&gt;
Login ([[Logging_In]]) as root to the media director which has a bluetooth stick with ssh.&lt;br /&gt;
Install the cwiid driver as follows&lt;br /&gt;
 apt-get install libcwiid0&lt;br /&gt;
 apt-get install wminput&lt;br /&gt;
&lt;br /&gt;
Make sure the uinput kernel module is loaded at boot-time:&lt;br /&gt;
 echo &amp;quot;uinput&amp;quot; &amp;gt;&amp;gt;/etc/modules&lt;br /&gt;
Load it manually in the mean time:&lt;br /&gt;
 modprobe uinput&lt;br /&gt;
&lt;br /&gt;
create the daemon&lt;br /&gt;
 cat &amp;gt;/usr/sbin/wminputd &amp;lt;&amp;lt;&amp;quot;EOF&amp;quot;&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #read the config file&lt;br /&gt;
 . /etc/wminputd.conf&lt;br /&gt;
 export DISPLAY=:0&lt;br /&gt;
 &lt;br /&gt;
 while true&lt;br /&gt;
 do&lt;br /&gt;
         #check if the Orbiter/OrbiterGL is already running!&lt;br /&gt;
         if [ &amp;quot;$(pidof OrbiterGL)$(pidof Orbiter)&amp;quot; ]&lt;br /&gt;
         then&lt;br /&gt;
 &lt;br /&gt;
                 #check if the wiimote is already connected&lt;br /&gt;
                 if [ -z &amp;quot;$(hcitool con|grep $WIIMOTE_BDADDR)&amp;quot; ]&lt;br /&gt;
                 then&lt;br /&gt;
                         PID=$(pidof wminput)&lt;br /&gt;
                         if [ &amp;quot;$PID&amp;quot; ]&lt;br /&gt;
                         then&lt;br /&gt;
                                 kill -9 $PID&lt;br /&gt;
                         fi&lt;br /&gt;
                         #mouse acceleration, adjust to your liking&lt;br /&gt;
                         #see also: &amp;quot;man xset&amp;quot; and/or &amp;quot;xset -h&amp;quot;&lt;br /&gt;
 #                       xset m 1/2 3&lt;br /&gt;
                         wminput -c ir_ptr $WIIMOTE_BDADDR &amp;amp;&lt;br /&gt;
                 fi&lt;br /&gt;
 &lt;br /&gt;
        fi&lt;br /&gt;
 &lt;br /&gt;
        sleep 5&lt;br /&gt;
 &lt;br /&gt;
 done&lt;br /&gt;
 &lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
Make it executable&lt;br /&gt;
 chmod 755 /usr/sbin/wminputd&lt;br /&gt;
&lt;br /&gt;
*Create the config file ([http://en.wikipedia.org/wiki/Vi vi commands])&lt;br /&gt;
 vi /etc/wminputd.conf&lt;br /&gt;
&lt;br /&gt;
 #this is the config file for the wminputd&lt;br /&gt;
 #enter the wiimote mac address, you can find it with&lt;br /&gt;
 #hcitool scan  and then press the red button&lt;br /&gt;
 #besides the battery&#039;s off the wiimote&lt;br /&gt;
 #Then place the show&#039;n mac address as follows&lt;br /&gt;
 WIIMOTE_BDADDR=&amp;quot;00:AA:00:BB:AA:FF&amp;quot;&lt;br /&gt;
&lt;br /&gt;
you can find your address with hcitool scan&lt;br /&gt;
&lt;br /&gt;
*Edit the file /etc/cwiid/wminput/buttons&lt;br /&gt;
&lt;br /&gt;
 vi /etc/cwiid/wminput/buttons&lt;br /&gt;
And make it suitable to your needs&lt;br /&gt;
below is mine&lt;br /&gt;
 #buttons&lt;br /&gt;
 &lt;br /&gt;
 Wiimote.A       = BTN_LEFT&lt;br /&gt;
 Wiimote.B       = BTN_RIGHT&lt;br /&gt;
 Wiimote.Up      = KEY_UP&lt;br /&gt;
 Wiimote.Down    = KEY_DOWN&lt;br /&gt;
 Wiimote.Left    = KEY_LEFT&lt;br /&gt;
 Wiimote.Right   = KEY_RIGHT&lt;br /&gt;
 Wiimote.Minus   = KEY_F7&lt;br /&gt;
 Wiimote.Plus    = KEY_F8&lt;br /&gt;
 Wiimote.Home    = KEY_F3&lt;br /&gt;
 Wiimote.1       = KEY_F1&lt;br /&gt;
 Wiimote.2       = KEY_F6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* create the init file&lt;br /&gt;
 vi /etc/init.d/wminputd&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Start/stop the wminputd daemon.&lt;br /&gt;
 #&lt;br /&gt;
 ### BEGIN INIT INFO&lt;br /&gt;
 # Provides:          wminputd&lt;br /&gt;
 # Required-Start:    $syslog $time&lt;br /&gt;
 # Required-Stop:     $syslog $time&lt;br /&gt;
 # Default-Start:     2 3 4 5&lt;br /&gt;
 # Default-Stop:      0 1 6&lt;br /&gt;
 # Short-Description: mousemodule&lt;br /&gt;
 # Description:       wminputd&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 ### END INIT INFO&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/sbin/wminputd || exit 0&lt;br /&gt;
 . /lib/lsb/init-functions&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
 start)  log_daemon_msg &amp;quot;Starting wii-remote mousemodule&amp;quot; &amp;quot;wminputd&amp;quot;&lt;br /&gt;
         start-stop-daemon -b --start --quiet --pidfile /var/run/wminputd.pid --name wminputd --startas /usr/sbin/wminputd -- $LSBNAMES&lt;br /&gt;
         log_end_msg $?&lt;br /&gt;
         ;;&lt;br /&gt;
 stop)   log_daemon_msg &amp;quot;Stopping wii-mote mousemodule&amp;quot; &amp;quot;wminputd&amp;quot;&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/wminputd.pid --name wminputd&lt;br /&gt;
         log_end_msg $?&lt;br /&gt;
         ;;&lt;br /&gt;
 restart) log_daemon_msg &amp;quot;Restarting wii-mote mousemdule&amp;quot; &amp;quot;wminputd&amp;quot;&lt;br /&gt;
         start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/wminputd.pid --name wminputd&lt;br /&gt;
         start-stop-daemon -b --start --quiet --pidfile /var/run/wminputd.pid --name wminputd --startas /usr/sbin/wminputd -- $LSBNAMES&lt;br /&gt;
         log_end_msg $?&lt;br /&gt;
         ;;&lt;br /&gt;
 *)      log_action_msg &amp;quot;Usage: /etc/init.d/wminputd {start|stop|restart}&amp;quot;&lt;br /&gt;
         exit 2&lt;br /&gt;
         ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
Make it executable&lt;br /&gt;
 chmod 755 /etc/init.d/wminputd&lt;br /&gt;
&lt;br /&gt;
run the script and push the red button beside the battery and your wiimote is ready to go&lt;br /&gt;
&lt;br /&gt;
enable the script so that it will start at boot time&lt;br /&gt;
 update-rc.d wminputd defaults&lt;br /&gt;
now start the script and see if it works&lt;br /&gt;
 /etc/init.d/wminputd start&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
*Q: When i reload the router then the wiimote will be slow&lt;br /&gt;
*A: Just push the red button besides the wiimote so it will connect again&lt;br /&gt;
&lt;br /&gt;
*Q: Using a sensor bar (ir_ptr), and the cursor is limited to the bottom left corner of the screen&lt;br /&gt;
*A: Make the following changes to the /etc/X11/xorg.conf file on the Media Director and then restarting the Media Director:&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
&lt;br /&gt;
    Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Wiimote&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Name&amp;quot;          &amp;quot;Nintendo Wiimote&amp;quot;&lt;br /&gt;
    EndSection&lt;br /&gt;
&lt;br /&gt;
Add this line to the ServerLayout section:&lt;br /&gt;
&lt;br /&gt;
    InputDevice     &amp;quot;Wiimote&amp;quot; &amp;quot;AlwaysCore&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This was taken from the ubuntu forums: https://help.ubuntu.com/community/CWiiD&lt;br /&gt;
&lt;br /&gt;
= Added 3-30-2008 =&lt;br /&gt;
I tried this and it works beautifully!&lt;br /&gt;
&lt;br /&gt;
A couple of other notes...&lt;br /&gt;
&lt;br /&gt;
Its a pain to get to the little red button by the battery. Instead, you can press and hold the &#039;1&#039; and &#039;2&#039; buttons at the same time for the same effect.&lt;br /&gt;
The power button will not start the system, but once the system is started (with either the Red button or the button 1+2 being held down together), holding the power button for a couple of seconds will turn the wiimote off and break the connection.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubles Experienced ==&lt;br /&gt;
*I have a Targus bluetooth doggle.  The system recognizes the adapter, but it would not allow the Wiimote to connect.  What I need to do to get it to work is get to a command prompt and execute &#039;&#039;&#039;hciconfig hci0 down; hciconfig hci0 up; hciconfig hci0 piscan&#039;&#039;&#039;.  Then I am able to press the 1 &amp;amp; 2 buttons then it works. An additional change that I need to make was in /usr/sbin/wminputd.  Had the change the line &#039;&#039;wminput -c ir_ptr $WIIMOTE_BDADDR &amp;amp;&#039;&#039; to &#039;&#039;wminput $WIIMOTE_BDADDR &amp;amp;&#039;&#039;.  Otherwise I could not move the cursor, but the buttons works.  Then I also mapped the buttons to how I wanted them.  If I come up with a fix/workaround for executing the hciconfig commands I will update this.  Thanks!&lt;br /&gt;
*On my system, each call to wminput would cause a frame drop which meant that watching a video with no wiimote connected would have dropped frames every ~8sec.  The following wminputd avoids the problem, though it won&#039;t stop with /etc/init.d/wminputd stop.  As I want it to run indefinitely, that point is moot.&lt;br /&gt;
 #!/bin/bash                             &lt;br /&gt;
 #read the config file                   &lt;br /&gt;
 . /etc/wminputd.conf                    &lt;br /&gt;
 export DISPLAY=:0                       &lt;br /&gt;
 while [ -z &amp;quot;$(pidof OrbiterGL)$(pidof Orbiter)&amp;quot; ]&lt;br /&gt;
 do&lt;br /&gt;
         sleep 5&lt;br /&gt;
 done&lt;br /&gt;
 wminput -r -w -c ir_ptr&lt;/div&gt;</summary>
		<author><name>Mactalla</name></author>
	</entry>
</feed>