<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>debian &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/debian/</link>
	<description>Feed of posts on WordPress.com tagged "debian"</description>
	<pubDate>Mon, 28 May 2012 19:23:46 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[How to add entries to sudoers]]></title>
<link>http://zhegu.wordpress.com/2012/04/24/how-to-add-entries-to-sudoers/</link>
<pubDate>Tue, 24 Apr 2012 17:22:25 +0000</pubDate>
<dc:creator>zhegu</dc:creator>
<guid>http://zhegu.wordpress.com/2012/04/24/how-to-add-entries-to-sudoers/</guid>
<description><![CDATA[Edit the file /etc/sudoers. Note that the file is read-only (even for su). You only need to use :w! ]]></description>
<content:encoded><![CDATA[<p>Edit the file /etc/sudoers. Note that the file is read-only (even for su). You only need to use :w! in vi to force-write.</p>
<blockquote><p># /etc/sudoers<br />
#<br />
# This file MUST be edited with the &#8216;visudo&#8217; command as root.<br />
#<br />
# See the man page for details on how to write a sudoers file.<br />
#</p>
<p>Defaults env_reset</p>
<p># Host alias specification<br />
User_Alias MYADMINS = jdoe</p>
<p># User alias specification</p>
<p># Cmnd alias specification<br />
Cmnd_Alias SHUTDOWN = /sbin/shutdown, /sbin/reboot, /sbin/halt<br />
Cmnd_Alias PKGMGMT = /usr/bin/dpkg, /usr/bin/apt-get, /usr/bin/aptitude</p>
<p># User privilege specification</p>
<p># Users listed above (MYADMINS) can run package managers and reboot the system.<br />
MYADMINS ALL = PKGMGMT, SHUTDOWN</p>
<p># Users in the group wheel can execute any command impersonating any user.<br />
#%wheel ALL= ALL</p>
<p>#Default rule for root.<br />
root ALL=(ALL) ALL</p></blockquote>
<p>(Source: http://wiki.debian.org/sudo)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Ubuntu Command Collection]]></title>
<link>http://shibli049.wordpress.com/2012/04/24/ubuntu-command-collection/</link>
<pubDate>Tue, 24 Apr 2012 10:56:27 +0000</pubDate>
<dc:creator>shibli049</dc:creator>
<guid>http://shibli049.wordpress.com/2012/04/24/ubuntu-command-collection/</guid>
<description><![CDATA[install debian file: sudo dpkg -i package_name.deb install dependency: sudo apt-get -f install insta]]></description>
<content:encoded><![CDATA[<ul>
<li>install debian file:</li>
</ul>
<pre>      sudo dpkg -i package_name.deb</pre>
<ul>
<li>install dependency:</li>
</ul>
<pre>      sudo apt-get -f install</pre>
<ul>
<li>install software:</li>
</ul>
<pre>      sudo apt-get -f install package_name</pre>
<ul>
<li>install bundle file:</li>
</ul>
<pre>       sudo sh file_name.bundle</pre>
<ul>
<li>install bin file:</li>
</ul>
<pre>       chmod +x file_name.bin
            ./file_name.bin</pre>
<ul>
<li>Installing WIRESHARK&#8217;s dumpcap without allowing non-root users to capture packets:</li>
</ul>
<pre>       setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap</pre>
		<div id="geo-post-491" class="geo geo-post" style="display: none">
			<span class="latitude">23.770147</span>
			<span class="longitude">90.366798</span>
		</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Record and share shell activity via shelr.tv]]></title>
<link>http://odoepner.wordpress.com/2012/04/22/record-and-share-shell-activity-via-shelr-tv/</link>
<pubDate>Mon, 23 Apr 2012 02:29:46 +0000</pubDate>
<dc:creator>odoepner</dc:creator>
<guid>http://odoepner.wordpress.com/2012/04/22/record-and-share-shell-activity-via-shelr-tv/</guid>
<description><![CDATA[Shelr.tv allows Unix/Linux command line users to record something interesting from their terminal an]]></description>
<content:encoded><![CDATA[<p><img src="http://odoepner.files.wordpress.com/2012/04/terminal.png" alt="Terminal" style="float:left;margin-right:1.5em;" /></p>
<p><a href="http://shelr.tv/about">Shelr.tv</a> allows Unix/Linux command line users to record something interesting from their terminal and share it to followers.</p>
<p>It is a bit like YouTube for plain text shellcasts. A great feature is that you can copy and paste everything you see.</p>
<p>A nice intro with interesting comments from one of the core developers can be found on <a href="http://linuxaria.com/recensioni/shelr-broadcast-your-linux-shell-on-the-net?lang=en">linuxaria.com</a>.</p>
<p>A <a href="http://mentors.debian.net/package/shelr">Debian package</a> has been proposed through the Debian &#8220;package mentor&#8221; system.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Why Linux Will Never be the Main OS on PC's]]></title>
<link>http://cameronstech.com/2012/04/22/why-linux-wont-sell1/</link>
<pubDate>Sun, 22 Apr 2012 18:41:37 +0000</pubDate>
<dc:creator>camerondryan1</dc:creator>
<guid>http://cameronstech.com/2012/04/22/why-linux-wont-sell1/</guid>
<description><![CDATA[Why Linux won&#8217;t be sold in a store? Because nobody owns it. There is not one person who can st]]></description>
<content:encoded><![CDATA[<p><strong>Why Linux won&#8217;t be sold in a store?</strong> Because nobody owns it. There is not one person who can stand up and say &#8220;I own Linux&#8221;. There is so many different Distributions (or &#8220;Distros&#8221;) of Linux. Another reason is, All [or most] Linux Distro&#8217;s are Free and Open-Source. If someone tried to sell a Linux OS they would make no money because nobody would buy something that you can legally get for free. And it is illegal to sell open-source software.</p>
<p>Can you buy a PC with Linux anywhere?</p>
<p>Yes. <a href="http://ebay.com/" target="_blank">Ebay</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Reorganizing partitions and restoring Grub2]]></title>
<link>http://larjona.wordpress.com/2012/04/22/reorganizing-partitions-and-restoring-grub2/</link>
<pubDate>Sun, 22 Apr 2012 10:29:05 +0000</pubDate>
<dc:creator>larjona</dc:creator>
<guid>http://larjona.wordpress.com/2012/04/22/reorganizing-partitions-and-restoring-grub2/</guid>
<description><![CDATA[I wanted to get rid of my Ubuntu 10.04 partition in my netbook. I wanted to have enough free space t]]></description>
<content:encoded><![CDATA[I wanted to get rid of my Ubuntu 10.04 partition in my netbook. I wanted to have enough free space t]]></content:encoded>
</item>
<item>
<title><![CDATA[Raspberry Pi: Starting Off]]></title>
<link>http://yasinsoliman.wordpress.com/2012/04/22/raspberry-pi-starting-off/</link>
<pubDate>Sun, 22 Apr 2012 10:28:00 +0000</pubDate>
<dc:creator>YSoliman</dc:creator>
<guid>http://yasinsoliman.wordpress.com/2012/04/22/raspberry-pi-starting-off/</guid>
<description><![CDATA[After admiring the engraved logo and great design of the Raspberry Pi, the £23 ($35) microcomputer, ]]></description>
<content:encoded><![CDATA[<p>After admiring the engraved logo and great design of the Raspberry Pi, the £23 ($35) microcomputer, I decided to plug it all in. The only things needed for initial use are a Micro USB charger/power source, a HDMI/composite cable and the usual USB keyboard/mouse. If you have a Model B device an ethernet cable is also needed &#8211; if you want to access the internet. I&#8217;m pleasantly surprised at the performance.  I&#8217;d heard several things about speed, but from plugging the power in, logging in and launching the X GUI (by typing in <strong>startx</strong>) it took less than 45 seconds.</p>
<p>For this I&#8217;m initially using a Panasonic HD Television, switching soon to a HDMI-capable monitor &#8211; using a standard HDMI cable too. I&#8217;m also using an 8GB SDHC Sandisk card with the latest Debian Squeeze image &#8211; downloaded in under 10 minutes from the Raspberry Pi mirror website.</p>
<p>When I saw the login prompt I entered the most recent default credentials: (for Debian) username: <strong>pi </strong>and password: <strong>raspberry </strong>and then was instantly accepted into the CLI screen. It&#8217;s phenomenal.</p>
<p>Images are to come of the initial process of setup in a gallery post later, and then to move on to more advanced stuff &#8211; programming, web servers, VNC and more.</p>
<p>All in all, a great device. The possibilities are endless with the Raspberry Pi. It&#8217;s an under £30 microcomputer with a lot of potential.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Archey &amp; Screenfetch - Debian / Crunchbang]]></title>
<link>http://zachariasblog.wordpress.com/2012/04/21/archey-screenfetch-debian-crunchbang/</link>
<pubDate>Sat, 21 Apr 2012 13:50:00 +0000</pubDate>
<dc:creator>ZACHARiAS</dc:creator>
<guid>http://zachariasblog.wordpress.com/2012/04/21/archey-screenfetch-debian-crunchbang/</guid>
<description><![CDATA[Quer o Archey quer o Screenfetch são scripts de customização do terminal usada para mostrar alguma i]]></description>
<content:encoded><![CDATA[<p>Quer o Archey quer o Screenfetch são scripts de customização do terminal usada para mostrar alguma informação actual do sistema e onde existe uma figura da distribuição que se está actualmente a usar.</p>
<p>Para instalar o Archey, que deriva do <a href="http://www.archlinux.org/" target="_blank">ArchLinux</a>, mas que agora suporta uma boa quantidade de distros, basta correr: </p>
<pre style="background:#f0f0f0;border:1px dashed #CCCCCC;color:black;font-family:arial;font-size:12px;height:auto;line-height:20px;overflow:auto;padding:0;text-align:left;width:99%;"><code style="color:black;word-wrap:normal;">$ sudo apt-get install lsb-release scrot  <br />$ wget http://github.com/downloads/djmelik/archey/archey-0.2.8.deb  <br />$ sudo dpkg -i archey-0.2.8.deb</code></pre>
<p>Para instalar o Screenfetch, basta escreverem:</p>
<pre style="background:#f0f0f0;border:1px dashed #CCCCCC;color:black;font-family:arial;font-size:12px;height:auto;line-height:20px;overflow:auto;padding:0;text-align:left;width:99%;"><code style="color:black;word-wrap:normal;">$ wget http://served.kittykatt.us/projects/screenfetch/screenfetch-2.4.0.deb<br />$ sudo dpkg -i screenfetch-2.4.0.deb</code></pre>
<p>Aqui ficam algumas screeens.</p>
<div class="separator" style="clear:both;text-align:center;"><a href="http://zachariasblog.files.wordpress.com/2012/04/arc2.png" style="margin-left:1em;margin-right:1em;"><img border="0" height="236" src="http://zachariasblog.files.wordpress.com/2012/04/arc2.png?w=400&h=236" width="400" /></a></div>
<p>
<div class="separator" style="clear:both;text-align:center;"><a href="http://zachariasblog.files.wordpress.com/2012/04/screen.png" style="margin-left:1em;margin-right:1em;"><img border="0" height="235" src="http://zachariasblog.files.wordpress.com/2012/04/screen.png?w=400&h=235" width="400" /></a></div>
<p>Se quiserem que alguma destas apps sejam corridas no arranue do sistema, basta para isso adicionarem &#8220;<i>screenfetch</i>&#8221; ou &#8220;<i>archey</i>&#8221; no ficheiro <span style="background-color:#cccccc;">.bashrc</span> em (<span style="background-color:#cccccc;">/home/oteu_username/.bashrc</span>).</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Optimize all your MySQL tables]]></title>
<link>http://ttys1.wordpress.com/2012/04/21/optimize-all-your-mysql-tables/</link>
<pubDate>Sat, 21 Apr 2012 02:03:51 +0000</pubDate>
<dc:creator>ttys1</dc:creator>
<guid>http://ttys1.wordpress.com/2012/04/21/optimize-all-your-mysql-tables/</guid>
<description><![CDATA[Here is a small code snipped I&#8217;m using to optimize (or repair or defragment) mysql tables. Whe]]></description>
<content:encoded><![CDATA[<p>Here is a small code snipped I&#8217;m using to optimize (or repair or defragment) mysql tables.</p>
<p>When for eg. mysqltuner shows something like <em>&#8220;Total fragmented tables: 20&#8243;</em> and you are awake at a very unpopular time (table optimization will lock your tables so it is possible your site is unreachable for a few moments) you can simply paste the following to your shell:</p>
<pre>LOGIN="-u&#60;user&#62; -p&#60;secret&#62;"
mysql $LOGIN &#60;&#60;EOF
$(for db in `mysql $LOGIN -e 'show databases'&#124;sed -e 's/\&#124;//g'&#124;egrep -v '^Database&#124;information_schema&#124;performance_schema'` ; do
echo "USE $db;" ; mysql $LOGIN -D$db -e 'show tables'&#124;sed -e 's/\&#124;//g'&#124;egrep -v '^Tables_in_'&#124;awk '{print "OPTIMIZE TABLE "$1";"}'
done)
EOF</pre>
<p>You have to change your mysql login details or leave it empty if you are using the ~/.my.cnf config file.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Using Debian Linux on IOMEGA StorCenter Pro IX-12]]></title>
<link>http://smallhacks.wordpress.com/2012/04/21/using-debian-linux-on-iomega-storcenter-pro-ix-12/</link>
<pubDate>Fri, 20 Apr 2012 23:33:05 +0000</pubDate>
<dc:creator>sammczk</dc:creator>
<guid>http://smallhacks.wordpress.com/2012/04/21/using-debian-linux-on-iomega-storcenter-pro-ix-12/</guid>
<description><![CDATA[Monitoring and fine tuning In the previous post I covered process of the replacing buggy closed-sour]]></description>
<content:encoded><![CDATA[<h2>Monitoring and fine tuning</h2>
<p>In the previous post I covered process of the replacing buggy closed-source firmware with the Debian Linux on the  IOMEGA StorCenter Pro IX-12 NAS device. But for effective and reliable usage installation process is not enough &#8211; you also need to re-implement hardware and software monitoring. StorCenter Pro IX-12 is pretty standard intel-based box, but it has some vendor-specific customization which we will discuss now. Below is a [possibly incomplete] list:</p>
<p><!--more--></p>
<ul>
<li>Temperature sensors. In the BIOS i found that devices shows temperature for the:
<ul>
<li>CPU temperature</li>
<li>Ambient Temperature</li>
<li>NIC Temperature</li>
<li>Midplane 1 and Midplane 2 temperature</li>
<li>PSU1 and PSU2 temperature</li>
</ul>
</li>
<li>FAN rotation speed:
<ul>
<li>FAN1 &#8211; FAN3 sensors (no idea where they are)</li>
<li>PSU1  fan and PSU2 fan sensors</li>
</ul>
</li>
<li>LEDs and buttons:
<ul>
<li>Power LED (seems to support 2 colours + blinking)</li>
<li>HDD LEDs (every caddy has Status and Activity LEDs, Status could be green, red or blinking)</li>
<li>Power Button (controlled by ACPI, works without modifications)</li>
<li>Reset (or &#8220;Factory Defaults&#8221;?) button near network cable socket.</li>
</ul>
</li>
</ul>
<p>Initially I expected that this functionality is managed using IPMI interface, like in most modern server boards. But I found no IPMI management, so  I decided to look on the original firmware to find how to manage this devices. Old firmware is still existing on the 1GB Flash drive connected to the motherboard, so I mounted it and found that software is living in squashfs file-system in a file (probably to save disk space) and found that it using strange &#8220;/proc/wix/*&#8221; interface to access hardware-specific features. Also I found that module which providing this interface is compiled into the kernel, so according to GNU GPL sources must be provided.</p>
<h2>Reimplementing vendor-specific functionality</h2>
<p>Then I found that there is archive with GPL sources on the IOMEGA site, so I downloaded and extracted it. It was a nice finding &#8211; archive contains not only source of user-land, but also patches to the kernel. I found that all hardware-specific kernel code is open source (hooray!) and is available in the ix12wix_100305v2.patch file. This patch contains kernel configuration for the 2.6.32 kernel, as well as many self-written kernel modules with hardware-specific code. Initially I was thinking to port them to 3.2 kernel, but after looking on the code I decided not to do this. From my personal opinion code is quick &#38; dirty, without attempts to use standard Linux interfaces and subsystems. Also I don`t think that we really need this /proc/wix/* interface (why &#8220;/proc&#8221;, it should be &#8220;/sys&#8221;) .  But sources itself are very important to understand how to deal with this non-standard devices. Some findings:</p>
<ul>
<li>Most of devices are on the I2C bus and kernel modules are working with them directly</li>
<li>PSU units are also connected via I2C</li>
<li>LEDs functionality is implemented in a very tricky way . HDD &#8220;Status&#8221; and &#8220;Fault&#8221; LEDs (1-12) are connected to the 3 different GPIO modules: PCA9552, PCA9539 and PCA9557 (on I2C bus). &#8220;Power&#8221; and &#8220;Sys ID&#8221; LEDs are connected to the Intel ICH9 GPIO (on PCI bus).</li>
<li>There is ICH9 watchdog device, utilized by standard iTCO_wdt driver. Good finding, we can use it in Linux.</li>
<li>Temperature sensors are also on different devices: on every PSU, 2 TMP175 sensors on midplane, and 3 (CPU, NIC and Ambient) on sch5027e controller. All of them are connected via I2C bus.</li>
<li>There is also another watchdog on baseaddr = 0&#215;0500 (referenced as SIOWDTimer) which is used to poweroff the server in case of temperature events.</li>
</ul>
<p>I2C bus is detected and working with standard i2c_i801 module. I am also installed loaded i2c_dev kernel module and i2c-tools package to play with I2C bus.</p>
<p>This is I2C bus detection results and some my comments<br />
<code><br />
0 1 2 3 4 5 6 7 8 9 a b c d e f<br />
00: -- -- -- -- -- 08 -- -- -- -- -- -- --<br />
10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- --<br />
20: -- -- -- -- -- -- 26 -- -- -- -- -- -- -- 2e --<br />
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br />
40: -- -- -- -- 44 -- -- -- -- -- 4a 4b -- -- -- --<br />
50: -- 51 -- 53 54 55 56 57 58 59 -- -- -- -- -- --<br />
60: 60 -- -- -- -- -- -- -- -- 69 -- -- -- -- 6e --<br />
70: -- -- -- -- 74 -- -- -- </code></p>
<p>Comments:<br />
0&#215;08 &#8211; Unknown<br />
0&#215;18 &#8211; pca9557 chip, Fault LEDs, HDD 5-12<br />
0&#215;26 &#8211; pca9535 chip, Hardware alarms (?) for different events<br />
0x2e &#8211; M/B FAN and Temperature monitoring chip<br />
0&#215;44 &#8211; Unknown<br />
0x4a, 0x4b &#8211; tmp75 temperature sensors on midplane<br />
0&#215;51, 0&#215;53 &#8211; DIMM DDR2 SDRAM 1024MB eeprom<br />
0&#215;54, 0&#215;55 &#8211; DELTA DPS-700LB Power Unit eeprom (PSU1, PSU2)<br />
0&#215;56 &#8211; M24C16/08/04/02/01 I2C EEPROM (???)<br />
0&#215;57 &#8211; AT24C02 I2C EEPROM<br />
0&#215;58, 0&#215;59 &#8211; Sensors for the PSU1 and PSU2<br />
0&#215;60 &#8211; pca9552 chip, HDD Status LEDs, HDD1-HDD12<br />
0&#215;69, 0x6e &#8211; Unknown<br />
0&#215;74 &#8211; pca9539 chip, HDD fault leds, HDD1-HDD4</p>
<p>I used i2cdetetect tool to scan I2C bus and wix kernel module sources to find corresponding devices.</p>
<h2>System Temperature and FAN sensors</h2>
<p>The most important is to monitor temperature and FAN status. Temperature may go high because of fan problems or because of external conditions. We have a lot of information sources for the temperature monitoring:</p>
<ul>
<li>3FAN and 3 temperature sensors on sch5027e</li>
<li>2 LM175 temperature monitoring chips installed on midplane.</li>
<li>CPU internal temperature sensors</li>
<li>Hard disk internal temperature sensors</li>
<li>Power Supply Unit fan RPM and temperature sensors</li>
</ul>
<p>Lets see how we can access this data.</p>
<p>I decided not to do one more non-standard interface, but to use lm_sensors software to get the information. sensors-detect tool was able to detect LM85 monitoring chip and suggested to load lm85 module. Also CPU sensors were detected and &#8220;coretemp&#8221; kernel module was recommended to load. I found that LM85 module is, in fact, working with sch5027e chip, so probably they have compatible interfaces. On this stage I was able to get information from CPU and motherboard sensors.</p>
<p>Then I found that LM175 should be supported by &#8220;lm75&#8243; kernel module, but nothing was detected when I loaded it with modprobe. After looking into module source code I found that there is no detection procedure for the LM175, so we need to manually specify sensors addresses. I tried to do this using this 2 commands:</p>
<p><code><br />
echo tmp75 0x4b &#62; /sys/bus/i2c/devices/i2c-0/new_device<br />
echo tmp75 0x4a &#62; /sys/bus/i2c/devices/i2c-0/new_device<br />
</code><br />
And right after this I got 2 new sensors, available with &#8220;sensors&#8221; command or via sysfs interface. I added this commands to /etc/rc.local to detect them on boot. It is possible to view sensors directly using sysfs or (more convenient) with &#8220;sensors&#8221; tool from lm_sensors. I modified default configuration (/etc/sensors.conf) to better reflect ix12 hardware:</p>
<p><code><br />
chip "lm85-*" "lm85b-*" "lm85c-*" "adm1027-*" "adt7463-*" "adt7468-*" "emc6d100-*" "emc6d102-*"<br />
label in1 "Vcore"<br />
label in2 "+3.3V"<br />
label in3 "+5V"<br />
label in4 "+12V"<br />
set in2_min 3.3 * 0.90<br />
set in2_max 3.3 * 1.10<br />
set in3_min 5.0 * 0.90<br />
set in3_max 5.0 * 1.10<br />
# Depending on how your chip is hardwired, you may or may not have<br />
# +12V readings.<br />
set in4_min 12.0 * 0.90<br />
set in4_max 12.0 * 1.10<br />
label temp1 "CPU Temp"<br />
label temp2 "Ambient Temp"<br />
label temp3 "NIC Temp"<br />
ignore fan4</code></p>
<p><code><br />
chip "tmp75-i2c-*-4a"<br />
label temp1 "Midplane Temp 1"<br />
</code></p>
<p><code>chip "tmp75-i2c-*-4b"<br />
label temp1 "Midplane Temp 2"<br />
</code><br />
With this settings after running &#8220;sensors&#8221; I have:<br />
<code><br />
Adapter: ISA adapter<br />
Core 0:      +45.0°C  (high = +78.0°C, crit = +100.0°C)<br />
Core 1:      +45.0°C  (high = +78.0°C, crit = +100.0°C)</code></p>
<p>lm85-i2c-0-2e<br />
Adapter: SMBus I801 adapter at 1100<br />
in0:          +2.51 V  (min =  +0.00 V, max =  +3.32 V)<br />
Vcore:        +1.08 V  (min =  +0.00 V, max =  +2.99 V)<br />
+3.3V:        +3.27 V  (min =  +2.97 V, max =  +3.63 V)<br />
+5V:          +5.16 V  (min =  +4.50 V, max =  +5.50 V)<br />
+12V:        +12.12 V  (min = +10.81 V, max = +13.19 V)<br />
fan1:        3985 RPM  (min =  100 RPM)<br />
fan2:        3913 RPM  (min =  100 RPM)<br />
fan3:        4038 RPM  (min =  100 RPM)<br />
CPU Temp:     +35.0°C  (low  = -127.0°C, high = +127.0°C)<br />
Ambient Temp: +46.0°C  (low  = -127.0°C, high = +127.0°C)<br />
NIC Temp:     +45.0°C  (low  = -127.0°C, high = +127.0°C)<br />
cpu0_vid:    +2.050 V</p>
<p>tmp75-i2c-0-4b<br />
Adapter: SMBus I801 adapter at 1100<br />
Midplane Temp 2: +37.0°C  (high = +66.0°C, hyst = +65.0°C)</p>
<p>tmp75-i2c-0-4a<br />
Adapter: SMBus I801 adapter at 1100<br />
Midplane Temp 1: +35.0°C  (high = +66.0°C, hyst = +65.0°C)</p>
<h2>Power Supply Unit sensors</h2>
<p>As I already notices this device has 2 power supply units (PSU) to provide redundancy. To make it work properly we need to monitor both PSU. Devices itself are DELTA DPS-700LB (you can read name and serial number using I2C). I found no Linux driver for this device in the kernel, but protocol itself is very simple and available in the wix iomega sources, so I decided to use this device from userland.</p>
<p>To query PSU device from Linux i used i2cget command fro the i2c-tools package. Also &#8220;i2c-dev&#8221; kernel module needs to be loaded. Using kernel module functionality i re-implemented PSU monitoring in Perl. Now it is possible to read voltage, fan speed and PSU temperature using psu_read.pl. If running without arguments it will display PSU sensors information in &#8220;sensors&#8221; like mode. Running with &#8220;-n&#8221; will make psu_sensors.pl act as Nagios plugin.  Below is an example of the script output<br />
<code><br />
psu700-i2c-0-59<br />
PSU Temp: 47°C<br />
+12V: +12.0 V<br />
fan1: 6960 RPM</code></p>
<p>psu700-i2c-0-58<br />
PSU Temp: 47°C<br />
+12V: +12.0 V<br />
fan1: 7680 RPM</p>
<h2>Smartmontools</h2>
<p>With smartmontools it is possible to monitor drives physical state and temperature. Smartd also provides monitoring and reporting of the SMART attribute changes. Also i am using smartmontols to setup <a title="Time Limited Error Recovery" href="http://en.wikipedia.org/wiki/Time-Limited_Error_Recovery">ERC</a> value for the all drives installed in the NAS with a command:<br />
<tt>lsscsi &#124;grep ATA&#124;awk '{print $6}'&#124;xargs -n 1 smartctl -l scterc,100,100</tt></p>
<p>I added  this command to the /etc/rc.local file.</p>
<h2>Other server-specific hardware</h2>
<p>It should be possible to use ix12 hdd LEDs from Linux, but this NAS is installed in the remote data center, so i had no chance to play with it. It should be possible to use it with kernel led and gpio subsystems.</p>
<h2>Conclusion</h2>
<p>It was possible to get all information from the non-standard hardware to monitor it state. This is a good example why it is so important to have an access to the source code. Feel free to comment this article.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Nagstamon]]></title>
<link>http://pathiene.wordpress.com/2012/04/20/nagstamon/</link>
<pubDate>Fri, 20 Apr 2012 18:28:15 +0000</pubDate>
<dc:creator>pathiene</dc:creator>
<guid>http://pathiene.wordpress.com/2012/04/20/nagstamon/</guid>
<description><![CDATA[Se você tem um nagios na rede e sempre tem que dar uma espiadinha nele para ver se tem algum alarme ]]></description>
<content:encoded><![CDATA[<p>Se você tem um nagios na rede e sempre tem que dar uma espiadinha nele para ver se tem algum alarme e etc, você pode usar um carinha chamado <a href="http://sourceforge.net/projects/nagstamon/">Nagstamon</a>.</p>
<p>Claro que você pode configurar o Nagios pra enviar email, sms etc. Mas se você não olha emails direto e também não liga muito para os sms que chegam, você instala esse nagstamon e ele fica no canto no Painel da sua máquina e então atualiza constantemente e mostra os alarmes que estão rodando pra você.</p>
<p>Olha só um exemplo simples que ta aqui na minha máquina agora:</p>
<p><a href="http://pathiene.files.wordpress.com/2012/04/nagstamon1.jpg"><img class="wp-image-127 aligncenter" title="nagstamon1" src="http://pathiene.files.wordpress.com/2012/04/nagstamon1.jpg?w=798&h=12" alt="" width="798" height="12" /></a></p>
<p style="text-align:left;">E quando você passa a barra por cima do Warning, ele mostra mais detalhes:</p>
<p style="text-align:left;"><a href="http://pathiene.files.wordpress.com/2012/04/nagstamon2.jpg"><img class="size-full wp-image-128 aligncenter" title="nagstamon2" src="http://pathiene.files.wordpress.com/2012/04/nagstamon2.jpg" alt="" width="614" height="95" /></a></p>
<p>Pra instalar esse cara (to usando Debian), basta executar um <strong>aptitude install nagstamon</strong>.</p>
<p>Depois de instalado vá em <strong>Aplicativos -&#62; Sistema e abra o programa</strong>.</p>
<p>Aparecerá uma tela como essa:</p>
<p><a href="http://pathiene.files.wordpress.com/2012/04/nagstamon3.jpg"><img class="wp-image-129 aligncenter" title="nagstamon3" src="http://pathiene.files.wordpress.com/2012/04/nagstamon3.jpg?w=341&h=233" alt="" width="341" height="233" /></a></p>
<p>Nem vou ficar explicando o que tem que colocar em cada campo, porque são bem sugestivos <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p>E fim! Só dar o OK e nem precisa olhar email nem nada, porque os alarmes irão piscar direto no seu painel!</p>
<p>Pra quem usa firefox, também tem plugins para o nagios para ver alarmes parecidos como esse que mostrei agora <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>See ya</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Installation of FreePBX 2.10 on Debian Wheezy (Kernel 3.2)]]></title>
<link>http://thelamegerman.wordpress.com/2012/04/20/installation-of-freepbx-2-10-on-debian-wheezy-kernel-3-2/</link>
<pubDate>Fri, 20 Apr 2012 14:04:34 +0000</pubDate>
<dc:creator>the lame german</dc:creator>
<guid>http://thelamegerman.wordpress.com/2012/04/20/installation-of-freepbx-2-10-on-debian-wheezy-kernel-3-2/</guid>
<description><![CDATA[During my search for a proper installation guide for the current version FreePBX (April 2012: v2.10)]]></description>
<content:encoded><![CDATA[<p>During my search for a proper installation guide for the current version <a href="http://www.freepbx.org/" rel="nofollow">FreePBX</a> (April 2012: v2.10) on a current Debian (April 2012: Wheezy), I started to grow the idea, that due to the lack of proper how-tos and documentations, i just have to go ahead and create my own, in good hope that others will benefit from it. FreePBX is available as source as well as a fully operational Installation on a CentOS 5 (distro version, installable via ISO file).</p>
<p>First of all, it is necessary to sum up the system and application requirements in order to operate FreePBX. FreePBX is a framework that runs on an Apache/ MySQL/ PHP stack. Therefore, it can be basically installed on any Linux machine. The configuration of Asterisk is maintained by FreePBX in a MySQL database. From the database, FreePBX creates the default dialplan files for Asterisk. FreePBX also configures Asterisk to write CDR data to the MySQL database. Currently, Asterisk developers and the community strongly recommend to use ODBC for the CDR module, yet, FreePBX uses the MySQL function in Asterisk. In order to use the conferencing module, DAHDI needs to be installed on the linux machine. There are basically two ways: install asterisk-dahdi via APT or simply install DAHDI before installing Asterisk from source. Installing Asterisk from source will deliver the most current version of Asterisk, APT repositories for Asterisk of Debian and Ubuntu are slightly behind in providing uptodate packages. Also, when installing from source, one can have &#8220;better&#8221; control over the features required or included (e.g. mp3 support for voice menus). For hardening the system, OpenSSL and OpenVPN can be used to secure HTTP and SIP/RTP traffic.</p>
<p>In the following, you can see a list of actions performed on a current Debian Wheezy 64bit for installing Asterisk and FreePBX</p>
<p>Update sources, include main, contrib and if desired non-free as well</p>
<div>
<pre>vim /etc/apt/sources.list</pre>
</div>
<p>And then.. update!</p>
<div>
<pre>apt-get update</pre>
</div>
<p>And upgrade</p>
<div>
<pre>apt-get upgrade</pre>
</div>
<p>Install OpenSSH Server for remote access during evalutaion and testing</p>
<div>
<pre>apt-get install openssh-server</pre>
</div>
<p>Install OpenVPN server, can be used later on for securing SIP/RTP</p>
<div>
<pre>apt-get install openvpn</pre>
</div>
<p>For more information on how to secure VoIP with OpenVPN on a SNOM phone: <a href="http://wiki.snom.com/Networking/Virtual_Private_Network_%28VPN%29/How_To_for_Debian" rel="nofollow">http://wiki.snom.com/Networking/Virtual_Private_Network_(VPN)/How_To_for_Debian</a></p>
<p>Install MySQL Server. MySQL is used by FreePBX and Asterisk.</p>
<div>
<pre>apt-get install mysql-server mysql-client</pre>
</div>
<p>Note: now you have to set the root password for MySQL as well, take good note of that, you will need it later on&#8230;</p>
<p><strong>IMPORTANT: FreePBX uses Asterisks MySQL DB function for CDR, so don&#8217;t install ODBC if not necessary!!!</strong></p>
<p>Despite my warning, in case you want to install ODBC and the ODBC conncetor for MySQL in case you want to use the DB function in dialplans later on: here&#8217;s an example. It&#8217;s basically copied from this O&#8217;Reilly article: <a href="http://ofps.oreilly.com/titles/9780596517342/asterisk-DB.html" rel="nofollow">http://ofps.oreilly.com/titles/9780596517342/asterisk-DB.html</a></p>
<div>
<pre>apt-get install unixODBC unixODBC-dev
apt-get install libmyodbc</pre>
</div>
<p>For being able to use ODBC, it is necessary to edit the file /etc/odbcinst.ini and set</p>
<div>
<pre>[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so
Setup = /usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so
FileUsage = 1</pre>
</div>
<p>Attention: check the path first before just copying with find -name libmyodbc.so from /usr or /<br />
Check the ODBC configuration with:</p>
<div>
<pre>odbcinst -q -d</pre>
</div>
<p>Now, for Asterisk to be able to use ODBC later on, it is required to set the connectors in /etc/odbc.ini. In this example, i used the database names created later on for FreePBX and a MySQL user created specifically for FreePBX.</p>
<div>
<pre>[asterisk-connector]
Description           = MySQL connection to 'asterisk' database
Driver                = MySQL
Database              = asterisk
Server                = localhost
UserName              = freepbx
Password              = hybris123
Port                  = 3306
Socket                = /var/run/mysqld/mysqld.sock

[asteriskcdrdb-connector]
Description           = MySQL connection to 'asteriskcdrdb' database
Driver                = MySQL
Database              = asteriskcdrdb
Server                = localhost
UserName              = freepbx
Password              = hybris123
Port                  = 3306
Socket                = /var/run/mysqld/mysqld.sock</pre>
</div>
<p><strong>In case you&#8217;ve skipped ODBC, then continue from here</strong></p>
<p>Now install Apache2 and PHP5. FreePBX requires php-cli to be installed, which is part of php-common library</p>
<div>
<pre>apt-get install apache2
apt-get install php5 php5-mysql php5-mcrypt php5-common libapache2-mod-php5</pre>
</div>
<p>Also, FeePBX requires the PEAR DB module to be installed, so install</p>
<div>
<pre>apt-get install php-pear php-db</pre>
</div>
<p>Some of you might think that php-db will offer pear DB, but actually you will need to run</p>
<div>
<pre>pear install DB</pre>
</div>
<p>This will install a &#8220;deprecated&#8221; version of pear DB, but FreePBX relies on that</p>
<p>Now if you like, you can also install perl, python, whatever else you might think could be useful for you. Please note, that your machine might also need some additional hardware drivers for T1/PRI/BRI interface or whatever hardware!!! In case you have enabled SELinux on your machine: FreePBX doesn&#8217;t play well with SELinux, so make sure it&#8217;s either disabled or just don&#8217;t install it.</p>
<p>In the later, in order to install FreePBX you will run a PHP script and in this script the exec() function will be used. Now, in my case, this required SUDO to be installed, which one might think is always installed with a virgin Debian, but actually it&#8217;s not. I ran the script as root, yet SUDO was required!</p>
<div>
<pre>apt-get install sudo</pre>
</div>
<p>Installing asterisk from source offers the latest release, yet it requires to manually install quite a few additional packages before you can get started. For Debian Wheezy, Asterisk 1.8 can be installed from Aptitude repositories. Aptitude will install Asterisk as complete as possible, yet there&#8217;s a bit more one can install from the repositiories, like mp3 support, dahdi for conferences etc.<br />
A very comprehensive installation that is useful for FreePBX can be achieved by getting following packages.</p>
<p>First, install DAHDI hardware drivers, which are needed by app_meetme (conferencing). Then continue with installing Asterisk. DAHDI must be installed from SOURCE from the Asterisk.org Website. DAHDI must be installed as Kernel module, and this is currently (May 2012) not the case when installing DAHDI from APT repositories. DAHDI provides a timing device for synchronizing the voice/sound streams in conferences, music on hold etc.</p>
<div>
<pre>apt-get install libxml2-dev libncurses5-dev subversion g++ make linux-headers-$(uname -r)
cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.0+2.6.0.tar.gz
tar xfvz dahdi-linux-complete-2.6.0+2.6.0.tar.gz
cd dahdi-linux-complete-2.6.0+2.6.0
make all
make install
make config
/etc/init.d/dahdi start</pre>
<div>Then continue to install Asterisk from APT. You will need to install asterisk-dahdi in order to have access to app_meetme for conferencing. This will make use of the installed DAHDI hardware drivers installed previously.</div>
<pre>apt-get install asterisk \
asterisk-dahdi \
asterisk-sounds-main \
asterisk-core-sounds-en-gsm \
asterisk-core-sounds-en-wav \
asterisk-moh-opsound-gsm \
asterisk-moh-opsound-wav \
asterisk-sounds-extra \
asterisk-mp3 \
asterisk-mysql \
asterisk-ooh323 \
asterisk-prompt-de \
asterisk-voicemail \
asterisk-doc \
asterisk-dev \
libasound2-plugins \
jackd2 \
lm-sensors \
snmp-mibs-downloader \
libsox-fmt-all \
speex \
srtp-utils \
vpb-utils</pre>
</div>
<p>This will take some time&#8230;</p>
<p>Once asterisk is installed, you can check if it&#8217;s running properly by entering the CLI mode of Asterisk</p>
<div>
<pre>asterisk \-rvvvvv</pre>
</div>
<p>You should then see somthing like this:</p>
<div>
<pre>Asterisk 1.8.10.1~dfsg-1+b1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer &#60;markster@digium.com&#62; Asterisk comes with ABSOLUTELY NO WARRANTY;
type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses;
you are welcome to redistribute it under certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/extconfig.conf': == Found
Connected to Asterisk 1.8.10.1~dfsg-1+b1 currently running on horse-with-no-name (pid = 8005)
Verbosity is at least 5
horse-with-no-name*CLI&#62;</pre>
</div>
<p>To leave the CLI, simple type exit and then hit return.</p>
<p><strong><span style="color:#ff0000;">SOUND PROBLEMS:</span> </strong>Unfortunately, some sound-packages didn&#8217;t install their sound file to <strong>/var/lib/asterisk/sounds</strong> but to <strong>/usr/share/asterisk/sounds</strong> and sometimes, Asterisk wouldn&#8217;t open sounds in <strong>/var/lib/asterisk/sounds</strong> but instead in <strong>/usr/share/asterisk/sounds</strong>. But: <strong>/usr/share/asterisk/sounds</strong> is a depricated location for soundfiles since Asterisk 1.6. Therefore, if you experience any problems with sound files not playing (look at CLI for hints on this), then you can consider to SOFTLINK the locations from <strong>/var/lib/asterisk/sounds</strong> to <strong>/usr/share/asterisk/sounds</strong>:</p>
<pre>cd /usr/share/asterisk/sounds
ln -s /var/lib/asterisk/sounds/en/ en</pre>
<p>Now that Asterisk is installed, it is a good idea to change the user running the apache2 daemon, because FreePBX requires that Apache is run with the same user that runs Asterisk. Just edit the file /etc/apache2/envvars and replace the user www-data with asterisk.</p>
<div>
<pre>export APACHE_RUN_USER=asterisk
export APACHE_RUN_GROUP=asterisk</pre>
</div>
<p>Next up, it is time to install FreePBX. The source of FreePBX can be obtained from www.freepbx.org, the current version of FreePBX at the time writing this is 2.10 and can be obtained by</p>
<div>
<pre>cd /usr/src
wget [http://mirror.freepbx.org/freepbx-2.10.0.tar.gz]
tar -xvf freepbx-2.10.0.tar.gz</pre>
</div>
<p>So far so good, you&#8217;ve downloaded FreePBX and un-TAR-ed it and all&#8217;s well and you only need to run the install script&#8230; OH NO!!!<br />
It&#8217;s not that simple, i&#8217;ve tried that a few time but i never got a nice and smooth running FreePBX, so what should be done now?</p>
<p>First: makesure the /etc/asterisk directory is empty, FreePBX will need to place new files in there.</p>
<p>In preparation for setting up the database, it&#8217;s not a bad idea to create a MySQL user for FreePBX instead of providing root access, you might even want to use a different database host during installation, but that&#8217;s something different&#8230; Let&#8217;s concentrate on getting things done: create the databases used by FreePBX</p>
<div>
<pre>mysql -u root -p
enter password: ***
mysql&#62; create database asterisk;
Query OK, 1 row affected (0.00 sec)
mysql&#62; create database asteriskcdrdb;
Query OK, 1 row affected (0.00 sec)
mysql&#62; grant all privileges on asterisk.* to "humpty" identified by "dumpty";
Query OK, 1 row affected (0.00 sec)
mysql&#62; grant all privileges on asteriskcdrdb.* to "humpty" identified by "dumpty";
Query OK, 1 row affected (0.00 sec)
mysql&#62; exit;</pre>
</div>
<p>Now run the SQL scripts provided in the source files in the folder SQL in order to setup the databases:</p>
<div>
<pre>mysql -u root -p asterisk &#60; SQL/newinstall.sql
mysql -u root -p asteriskcdrdb &#60; SQL/cdr_mysql_table.sql</pre>
</div>
<p>FreePBX is not yet ready for installation in case you are using PHP 5.4!!!<br />
Why? Because a PHP function in the recording module of FreePBX is using the <strong>$_REQUEST</strong> global variable as argument, and this is invalid in PHP 5.4 and causes the install to throw a bunch of errors. Simply edit the file <strong>amp_conf/htdocs/admin/modules/recordings/functions.inc.php</strong> in your FreePBX source directory and change each occurance of $_REQUEST to $REQUEST in the function recordings_update aroun line 260. For more information, read: <a href="http://www.freepbx.org/trac/ticket/5654" rel="nofollow">http://www.freepbx.org/trac/ticket/5654</a></p>
<p>Also, in PHP 5.4 the default timezone for date() isn&#8217;t set, which needs to be set in following files<br />
<strong>/etc/php5/apache2/php.ini</strong><br />
<strong>/etc/php5/cli/php.ini</strong><br />
Search for the date section and set</p>
<pre>date.timezone = "Europe/Berlin"</pre>
<p>The install script includes several files, which will check on the filesize of the FreePBX installer <strong>logfile</strong>. In case this file does not exist, the PHP filesize() function will throw an E_WARNING type of error. This is harmless, yet you can work your way around this error by replacing</p>
<div>
<pre>$size = sprintf("%u", filesize($amp_conf['FPBXDBUGFILE'])) + strlen($txt);</pre>
</div>
<p>with</p>
<div>
<pre>$size = file_exists($amp_conf['FPBXDBUGFILE']) ? sprintf("%u", filesize($amp_conf['FPBXDBUGFILE'])) + strlen($txt) : 0;</pre>
</div>
<p>on lines <strong>75</strong> and <strong>641</strong> in file <strong>amp_conf/htdocs/admin/libraries/utility.functions.php</strong></p>
<p>Now, preparation is almost done. When evaluating and trying to install FreePBX, i&#8217;ve had some problems each time i ran the install script because i entered Apache Webroot as <strong>/var/www</strong>, which is valid on my Debian. Yet, FreePBX tried to move several files to <strong>/var/www/html</strong>, which is the Apache Webroot on the FreePBX distro. If you&#8217;re like me, lazy and pragmatic, then you would also do</p>
<div>
<pre>mkdir /var/www/html
chown asterisk:asterisk /var/www/html</pre>
</div>
<p>And set the default webroot of Apache to this directory in <strong>/etc/apache2/sites-enabled/000-default</strong></p>
<div>
<pre>&#60;VirtualHost \*:80&#62;
ServerAdmin webmaster@localhost

DocumentRoot /var/www/html
&#60;Directory &#62;&#60;/Directory&#62;
Options FollowSymLinks
AllowOverride None
&#60;/Directory&#62;
&#60;Directory /var/www/html&#62;
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
&#60;/Directory&#62;

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
&#60;Directory "/usr/lib/cgi-bin"&#62;
AllowOverride None
Options \+ExecCGI \-MultiViews \+SymLinksIfOwnerMatch
Order allow,deny
Allow from all
&#60;/Directory&#62;

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
&#60;/VirtualHost&#62;</pre>
</div>
<p><strong>IMPORTANT</strong>: Before you actually start the ./install_amp script, you may need to fix some more errors in the install script. I don&#8217;t want to go into detail, because it&#8217;s been documented already in the FreePBX bugtracker. A description of the errors and the fixes can be found here: <a href="http://www.freepbx.org/trac/ticket/5692" rel="nofollow">http://www.freepbx.org/trac/ticket/5692</a></p>
<p>In particular, see fixes at</p>
<p><a href="http://www.freepbx.org/trac/changeset/14052" rel="nofollow">http://www.freepbx.org/trac/changeset/14052</a><br />
<a href="http://www.freepbx.org/trac/changeset/14054" rel="nofollow">http://www.freepbx.org/trac/changeset/14054</a><br />
<a href="http://www.freepbx.org/trac/changeset/14055" rel="nofollow">http://www.freepbx.org/trac/changeset/14055</a></p>
<p>The check for SELinux in the install script throws an error, so just adapt/edit the code near line 968 in file <strong>install_amp</strong>:</p>
<div>
<pre>$tmpout = exec("getenforce 2&#62;/dev/null", $tmpoutput, $sereturn);
if (isset($tmpoutput[0]) &#38;&#38; trtolower($tmpoutput[0]) === "enabled") {
        // this method seems better because disabled and permissive are the same
        // if a user installs and realizes selinux is running the other method
        // requires a reboot to get selinuxenabled to work after editing the  selinux config
        // this will allow you to use setenforce 0 which turns selinux into permissive mode which
        // doesnt enforce, it just warns.
        fatal("selinux is ENABLED. This is not supported. Please disable selinux before using FreePBX");
}</pre>
</div>
<p><strong>Make sure to apply all fixes on FreePBX 2.10 install_amp script!!</strong></p>
<p>Now preparation is done and the installation can be kicked off by running the install_amp script in the un-tared FreePBX source directory</p>
<div>
<pre>./install_amp</pre>
</div>
<p>The script will now ask for several values, e.g. your Apache Webroot, MySQL database location and credentials and a whole lot of other stuff which will be written to <strong>/etc/amportal.conf</strong>. Also, this script will move the files for the GUI to webroot and set file-ownership etc. If you have any problems and need to undo and fix the PHP scripts or some settings, then you can always undo the script actions by <strong>removing</strong> all files created by the install_amp script</p>
<div>
<pre>rm /etc/amportal.conf
rm /etc/asterisk/*
rm /var/www/html/*
rm /var/lib/asterisk/bin</pre>
</div>
<p>Once installation is done and hasn&#8217;t thrown any errors, then you should be able to login to FreePBX via http://&#60;yourmachine&#62;/admin =&#62; username: admin &#8211; password: admin</p>
<p>Go to menu Reports -&#62; FreePBX System Status to see if FreePBX has detected errors</p>
<p>I&#8217;ve had problems with not symlinked files in the /etc/asterisk directory, in particluar the logger.conf file so just feel free to manually resolve this issue by</p>
<div>
<pre>rm /etc/asterisk/logger.conf
ln -s /var/www/html/admin/modules/core/etc/logger.conf /etc/asterisk/logger.conf</pre>
</div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[A success story for Config::Model]]></title>
<link>http://ddumont.wordpress.com/2012/04/20/a-success-story-for-configmodel/</link>
<pubDate>Fri, 20 Apr 2012 10:57:22 +0000</pubDate>
<dc:creator>dod</dc:creator>
<guid>http://ddumont.wordpress.com/2012/04/20/a-success-story-for-configmodel/</guid>
<description><![CDATA[Hello Here&#8217;s a mail telling how the Config::Model Perl module was used to refactor existing co]]></description>
<content:encoded><![CDATA[<p>Hello</p>
<p>Here&#8217;s a mail telling how the <a href="https://github.com/dod38fr/config-model">Config::Model</a> Perl module was used to refactor existing configuration tools in Perl. Some punctuation and blank lines were added to improve the flow of this text. The full name and mail address of gkr is withheld on his request.</p>
<blockquote><p>    I took over a perl script that was responsible to pull data from several sources and push it after validation and re-packaging including some meta data into one of our production systems.</p>
<p>    The script was never intended to be used for more then a few month. But as things go, we were still using it after a few years. Only now for a lot more sources. Since all the configuration of sources and meta data were contained as a single hash in this script, it became very unwieldy. Although the configuration seldom changed, once it got added it was not an option to keep it like this especially as we decided to prepare a Debian package for faster installation and version tracking. So I had to re-work it and was looking for some library that was allowing me to define how the configuration has to look like, providing sensible hard coded and computed defaults for some of the values.</p>
<p>    This was when I found <a href="https://metacpan.org/module/Config::Model">Config::Model on Cpan</a>. It was, after some digging into the documentation, quite simple to define a rough first version of the complete config, including global default values as ini file and very simple to read in and write out. A more advanced version was not working because the Config::Model in Debian squeeze did not provide needed features.</p>
<p>    Switching to <a href="http://en.wikipedia.org/wiki/YAML">yaml</a> as configuration file format not only increased readability but also worked with the standard Squeeze package. Consistency is checked automatically inside the model so broken configurations are more unlikely in the future.</p>
<p>    Of course I had some work re-factoring the original source but Config::Model allowed an easy addition of a value-checked and documented configuration file. To access the <a href="http://search.cpan.org/dist/Config-Model/lib/Config/Model/Instance.pm">Config::Model::Instance</a> I added small wrapper packages that allowed an easy access of the config elements by name to make the source easier to understand. The re-factoring needed for creating a Debian package for the Script &#8211; which is now a set of modules and a small executable &#8211; was simple once I had Config::Model working, since I was able to add new configuration items effortlessly and remove a lot of hard coded parameters.</p>
<p>    I don&#8217;t use the cli tool yet for configuration editing but that&#8217;s going to be the next step.</p>
</blockquote>
<p>Many thanks to gkr for this feedback. Let&#8217;s hope he will continue to give feedback on his usage of Config::Model.</p>
<p>All the best</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Background Processes in Unix/Linux]]></title>
<link>http://nuwan4u.wordpress.com/2012/04/20/background-processes-in-unixlinux/</link>
<pubDate>Fri, 20 Apr 2012 04:30:28 +0000</pubDate>
<dc:creator>Nuwan</dc:creator>
<guid>http://nuwan4u.wordpress.com/2012/04/20/background-processes-in-unixlinux/</guid>
<description><![CDATA[The &amp; is an important little character in UNIX; it means &#8220;run the command in the backgroun]]></description>
<content:encoded><![CDATA[<p>The <strong>&#38;</strong> is an important little character in UNIX; it means &#8220;run the command in the background&#8221;; i.e., detach it from the window it was started from, so it does not block the command line.</p>
<p>Should the program ever try to read from the terminal window, it will be suspended, until the user &#8220;brings it to the foreground&#8221;; i.e., brings it to the state it would have had without the &#38; to begin with.</p>
<p>To bring a program to the foreground, use <strong>&#8220;fg&#8221;</strong> or <strong>&#8220;%&#8221;</strong>. If you have more than one background job to choose from (&#8220;jobs&#8221; will show you), then use for example <strong>&#8220;%2&#8243;</strong> to choose the second one.</p>
<h3>Important:</h3>
<p>If you forget to give the &#38; at the end of line, and the process blocks the command input to the terminal window, you can put the process in the background &#8220;after the fact&#8221;, by using <strong>Ctrl-Z</strong>. The process is suspended, and you get the command prompt back. The first thing you should do then is probably to give the command &#8220;bg&#8221;, that resumes the process, but now in the background.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Konfigurasi IP Address (Statis) Pada Debian 6]]></title>
<link>http://sebuahdosa.wordpress.com/2012/04/20/107/</link>
<pubDate>Fri, 20 Apr 2012 03:32:24 +0000</pubDate>
<dc:creator>sebuahdosa</dc:creator>
<guid>http://sebuahdosa.wordpress.com/2012/04/20/107/</guid>
<description><![CDATA[IP Address adalah suatu alamat unik yang diberikan ke PC dalam jaringan agar bisa dikenali dalam jar]]></description>
<content:encoded><![CDATA[<p>IP Address adalah suatu alamat unik yang diberikan ke PC dalam jaringan agar bisa dikenali dalam jaringan internet, ada 2 cara pemberian nomor IP Address yaitu dengan cara <strong>Dinamis atau Otomatis (DHCP)</strong> dan <strong>Statis atau Tetap.</strong><br />
Disini saya menggunakan teknik Statis, Kita mengkonfigurasi melalui terminal (Mode Text)</p>
<p>Langkah-langkahnya sebagai berikut:</p>
<p><strong><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis.jpg"><img class="aligncenter size-medium wp-image-108" title="Statis" src="http://sebuahdosa.files.wordpress.com/2012/04/statis.jpg?w=300&h=225" alt="" width="300" height="225" /></a></strong><br />
<!--more--><br />
1. Masuk ke system operasi Linux Debian 6</p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-2.jpg"><img class="aligncenter size-medium wp-image-109" title="Statis-2" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-2.jpg?w=300&h=225" alt="" width="300" height="225" /></a></p>
<p>2. Pilih <strong>Application -&#62; Accessories -&#62; Root Terminal</strong></p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-3.jpg"><img class="aligncenter size-medium wp-image-110" title="Statis-3" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-3.jpg?w=300&h=224" alt="" width="300" height="224" /></a></p>
<p>3. Masukan <strong>Root Password</strong><br />
4. Tekan enter</p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-4.jpg"><img class="aligncenter size-medium wp-image-111" title="Statis-4" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-4.jpg?w=300&h=224" alt="" width="300" height="224" /></a></p>
<p>5. Muncul tampilan terminal<br />
6. Langsung agan ketikkan <strong>lspci</strong> untuk melihat hardware apa sajakah yang tersambung dengan komputer agan</p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-5.jpg"><img class="aligncenter size-medium wp-image-112" title="Statis-5" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-5.jpg?w=300&h=225" alt="" width="300" height="225" /></a></p>
<p>7. Lalu muncul <strong>data-data hardware</strong> yang tersambung dengan komputer agan</p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-6.jpg"><img class="aligncenter size-medium wp-image-113" title="Statis-6" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-6.jpg?w=300&h=224" alt="" width="300" height="224" /></a></p>
<p>8. Selanjutnya ketikan <strong>nano /etc/network/interfaces</strong><br />
9. Tekan enter</p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-7.jpg"><img class="aligncenter size-medium wp-image-114" title="Statis-7" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-7.jpg?w=300&h=224" alt="" width="300" height="224" /></a></p>
<p>10. Muncul isi file dari interfaces, karena sebelumnya sudah saya edit jadi saya langsung keluar<br />
11. Atur atau edit atau tambahkan semua konfigurasi yang diperlukan termasuk <strong>address, netmask, network, broadcast, gateway, dns-nameservers dan dns-search</strong></p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-8.jpg"><img class="aligncenter size-medium wp-image-115" title="Statis-8" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-8.jpg?w=300&h=225" alt="" width="300" height="225" /></a></p>
<p>12. Untuk menyiman konfigurasi tekan <strong>ctrl+x lalu tekan y kemudian tekan enter</strong></p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-9.jpg"><img class="aligncenter size-medium wp-image-116" title="Statis-9" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-9.jpg?w=300&h=224" alt="" width="300" height="224" /></a></p>
<p>13. Selanjutnya restart file tersebut dengan perintah <strong>/etc/init.d/networking restart</strong></p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-10.jpg"><img class="aligncenter size-medium wp-image-117" title="Statis-10" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-10.jpg?w=300&h=225" alt="" width="300" height="225" /></a></p>
<p>14. Jika sukses muncul keterangan <strong>reconfiguring network interfaces&#8230;done</strong></p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-12.jpg"><img class="aligncenter size-medium wp-image-118" title="Statis-12" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-12.jpg?w=300&h=224" alt="" width="300" height="224" /></a></p>
<p>15. Refresh ethernet 0 dengan mengetik <strong>ifup eth0</strong><br />
16. Tekan enter</p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-13.jpg"><img class="aligncenter size-medium wp-image-119" title="Statis-13" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-13.jpg?w=300&h=224" alt="" width="300" height="224" /></a></p>
<p>17. Langkah terakhir mengecek IP Address ethernet 0, <strong>ketikkan ifconfig eth0</strong></p>
<p><a href="http://sebuahdosa.files.wordpress.com/2012/04/statis-14.jpg"><img class="aligncenter size-medium wp-image-120" title="Statis-14" src="http://sebuahdosa.files.wordpress.com/2012/04/statis-14.jpg?w=300&h=225" alt="" width="300" height="225" /></a></p>
<p>18. Muncul keterangan nomor IP Address seperti pada gambar di atas. Jika nomor IP Address sudah berubah maka konfigurasi IP Address berhasil.</p>
<p>NB: gunakan <strong>ifdown eth0</strong> untuk mematikan interface eth0</p>
<p>Referensi:</p>
<p>- <strong>http://bkj-tutorial.blogspot.com/2012/04/konfigurasi-ip-address-debian-6-statis.html</strong></p>
<p>- <strong>http://examplenow.com/id/ifup/</strong></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Pi Performance?]]></title>
<link>http://rglinuxtech.com/2012/04/19/pi-performance/</link>
<pubDate>Thu, 19 Apr 2012 17:32:59 +0000</pubDate>
<dc:creator>RG</dc:creator>
<guid>http://rglinuxtech.com/2012/04/19/pi-performance/</guid>
<description><![CDATA[I had intended to persevere with the Fedora 14 &#8216;respin&#8217;, despite it being (correctly, IM]]></description>
<content:encoded><![CDATA[<p>I had intended to persevere with the Fedora 14 &#8216;respin&#8217;, despite it being (correctly, IMHO..) described as &#8216;a bit buggy&#8217;..     Performance was improved with the newer 3.1.9+ kernel image, without the debug messages, but overall the response was still very sluggish..    I selected XFCE as the UI, as I had used this &#8211; successfully &#8211; with Fedora 17 (pre-release..) on my other <strong>arm</strong>-based system &#8211; the Dreamplug..</p>
<p>As I had now re-cycled a Class 4 8GB sd card (from an old camera!) I had enough &#8216;disk&#8217; space to try the three available distro images &#8211; Fedora, Debian, and also Arch Linux (which I had never used before..)</p>
<p>After the somewhat fascinating experience of booting a relatively unknown distro, (I have been using Red Hat &#8211; and later Fedora &#8211; since 1997..) I immediately found that Arch Linux was noticeably better in response to commands, and in performance with XFCE.    I should emphasise that this is _not_ an exhaustive scientific test, but merely observation of responsiveness!    It is also a valuable learning experience, and I am becoming familiar with the intricacies of <strong>pacman</strong> (the Arch Linux package manager&#8230;)..      It would appear that Arch Linux is generally more &#8216;lean and mean&#8217; than Debian or Fedora..</p>
<p>Next, I may try out the fourth image now available &#8211; and one that I must confess I had never heard of until recently &#8211; <strong><em>QtonPi</em></strong>, and I shall &#8211; of course &#8211; eagerly await the release of the upcoming Fedora 17 image&#8230;</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[debbugs-monkey, a greasemonkey script to navigate in Debian Bug reports]]></title>
<link>http://4d43.wordpress.com/2012/04/17/debbugs-monkey-a-greasemonkey-script-to-navigate-in-debian-bug-reports/</link>
<pubDate>Tue, 17 Apr 2012 22:11:55 +0000</pubDate>
<dc:creator>4d43</dc:creator>
<guid>http://4d43.wordpress.com/2012/04/17/debbugs-monkey-a-greasemonkey-script-to-navigate-in-debian-bug-reports/</guid>
<description><![CDATA[Some days ago I did my very first GreaseMonkey script, to ease the navigation in the Debian BTS bug ]]></description>
<content:encoded><![CDATA[<p>Some days ago I did my very first <a title="GreaseMonkey" href="https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/" target="_blank">GreaseMonkey</a> script, to ease the navigation in the Debian <a href="http://bugs.debian.org" target="_blank">BTS</a> bug reports.<br />
I noticed that bug reports can have many messages, and the messages themselves sometimes tend to be very long, because of verbose logs posted to help the maintainers to understand the problems and fix them.</p>
<p>GreaseMonkey is a <a href="https://www.mozilla.org/en-US/firefox/new/">Firefox</a> extension that allows to load scripts (written in Javascript) that can &#8220;do useful things&#8221; when the user navigate in the website the script refers to.</p>
<p>This useful feature is supported also by Chrome (<a href="http://www.chromium.org/Home">Chromium</a>, <a href="https://www.srware.net/en/software_srware_iron.php">Iron</a>, etc..) and other browsers.</p>
<p>My script (called Debbugs-monkey) is tested on Firefox. Here are the two links: the <a href="https://gitorious.org/mcagl-scripts/mcagl-scripts/blobs/master/greasemonkey/debbugs-monkey.user.js">git repository</a> and the <a href="https://userscripts.org/scripts/show/130991">install link</a>.</p>
<p>The usage is very simple. After installing (and eventually activating) the script, when you go on a bug report page in the DBTS (the address is something like http://bugs.debian.org/cgi-bin/bugreport.cgi?blahblahblah) in the right bottom corner of the page (regardless of the scrolling) there are some letters:</p>
<ul>
<li><strong>T</strong>: goes to the Top of the page</li>
<li><strong>F</strong>: goes to the First message</li>
<li><strong>P</strong>: goes to the Previous message</li>
<li><strong>N</strong>: goes to the Next message</li>
<li><strong>L</strong>: goes to the Last message</li>
<li><strong>B</strong>: goes to the Bottom of the page</li>
</ul>
<p>I know, at the moment it&#8217;s very ugly, maybe I&#8217;ll add some fancyness (like a border, or icons instead of letters), but the important thing is that it works (at least for me, but if you have some problems using it, or feature requests, please tell me).</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Installing Debian Linux on IOMEGA StorCenter Pro IX-12]]></title>
<link>http://smallhacks.wordpress.com/2012/04/17/installing-debian-linux-on-iomega-storcenter-pro-ix-12/</link>
<pubDate>Tue, 17 Apr 2012 17:47:47 +0000</pubDate>
<dc:creator>sammczk</dc:creator>
<guid>http://smallhacks.wordpress.com/2012/04/17/installing-debian-linux-on-iomega-storcenter-pro-ix-12/</guid>
<description><![CDATA[Why do I need this? Initially I planned to use device as NAS only. I really need very limited functi]]></description>
<content:encoded><![CDATA[<h2>Why do I need this?</h2>
<p>Initially I planned to use device as NAS only. I really need very limited functionality (in fact – FTP and HTTP) so I was expected that vendor firmware will completely satisfy my needs. It was not the case.</p>
<p>First of all I found that firmware is not very stable – sometime device is not booting at all without any visible reasons. Second issue was that there is no firewall on this box. Its hard to believe – box is running on Linux but without ability to setup firewall! In combination with many services running on the device, without any ability to disable them it makes highly insecure system. Web gui itslelf was also buggy, with a lot of needless things (they have a “facebook” and “youtube” icons!), but without very important functions, like Firewall or IPv6. Using undocumented trick I was able to get the root, but after all I decided that it would be easer to start with normal distribution then to fix this crap.</p>
<p><!--more--></p>
<h2>Hardware</h2>
<p>Box itself looks as 2U server with a 12 units for the drive caddies. It have 4 Ethernet sockets, USB and serial interface. For me it was surprising that there is no VGA interface at all – this is untypical for x86 server. CPU is Intel Core 2 Duo running at 3.0Ghz. Device starts booting even without disks at all, so I was expecting to find some internal storage. It was easy – 1Gb Apacer USB flash disk is inside, plugged directly on the motherboard. All disks are connected using 2 Marvell 88SE6440 controllers (btw, it should be SAS compatible). Server have 2 power supply units with a hot-swap replacement.</p>
<p>As I already mentioned – there is no VGA card, so to install Debian on this box I tried to use serial console. I used USB → Serial adapter + NULL modem cable.</p>
<p><img class="aligncenter" title="ix12" src="http://go.iomega.com/img/iom/sections/ix12_300r_large__1.png" alt="" width="328" height="188" /></p>
<h2>Installation process</h2>
<p>To install Debian on this box I used null-modem cable connected to USB → serial adapter. On my laptop I used minicom (but I think any other terminal should work fine). Terminal settings are 115200, 8n1, with minicom it should be “minicom -o -b 115200 -D /dev/ttyUSB0”. Then I am recommending to leave only 1 disk in the first caddy and use it as installation target. Later you will be able to add all your other disks. But with one disk it will be much easer setup our OS.</p>
<p><a name="About_SystemRescueCd"></a>To setup OS you will need USB flash, because there is no CDROM in the server. It also should be possible to boot server from network, but I decided to use USB. I am recommending you to prepare 2 flash disks – one with Debian netinst and another one with SystemRescueCd.</p>
<p>Run terminal and turn on the server. After few seconds you should see booting progress in the terminal window. Press F2 to enter into BIOS. There are not too much options in it, we need only “boot order”. I am recompensing to exclude <strong>all</strong> devices from list, this will force server to boot from USB. Then insert USB flash with SystemRescueCd and save BIOS settings. Server will restart and will try to boot from inserted USB device. If everything is fine you should see SystemRescueCd boot menu in the terminal window. You will need to modify default options to use serial console. To do this press “Tab” and add to the boot prompt “console=ttyS0,115200” and then enter. You should see boot screen and zsh after some minutes. On this stage I am recommending to do 2 things:</p>
<ol>
<li>Backup internal 1Gb disk content (just in case) using dd command (I used dd+ssh).</li>
<li>Remove partition table from the hard disk (I used gdisk tool).</li>
</ol>
<p>Then you will need to reboot and insert USB with Debian installer. After boot prompt use “install console=ttyS0,115200” to start headless text install. I decided to create System 20Gb RAID1 partition for the Debian, which will be replicated on all drives. Also I created 4Gb RAID1 partition for swap (just in case). I did everything from installer, using manual partitioning. After restart I added HDD in the BIOS and found that system is not booting. Reason was Debian installer – grub was installed to the /dev/sda (USB flash) instead of disk, which was mapped as /dev/sdc. I booted from SystemRescueCd again and installed grub using chroot and grub-install. Also I am recommending to run update-initramfs on this stage, because for some reason md module was not activated on boot.</p>
<h2>Solving problems after installation</h2>
<p>On this stage Debian should boot normally. But when I trying to add more disks I found that system hangs with disk-related messages shortly. I found a lot of similar reports on the web (e.g. <a href="http://kerneltrap.org/mailarchive/linux-scsi/2010/4/12/6884601">http://kerneltrap.org/mailarchive/linux-scsi/2010/4/12/6884601</a>) without any visible solution. After all I decided to boot from SystemRescueCD again to check if disks are working correctly. And I found no issues! So, probably bug was fixed somewhere in -3 kernel and not back-ported. It is possible to use 3.x kernels on Debian using backports source. I used recommendations from this blog (<a href="http://yumechanmiru.blogspot.com/2012/02/debian-squeeze-32-kernel-update.html">http://yumechanmiru.blogspot.com/2012/02/debian-squeeze-32-kernel-update.html</a>) and after installing latest 3.2 kernel and system restart all disk related issues where resolved. Only problem left was very slow loading time – it was trying to load ata_piix (motherboard sata controller?). Because it is not in use I just added it to the /etc/modprobe.d/blacklist.conf (blacklist ata_piix) and updated initramfs (update-initramfs -k all -u). Linux started very fast (in about 10 seconds) after restart.</p>
<p><strong>Update: </strong>I just found  that with 3.2 kernel disks are handled by Linux ahci driver. It fine for me, I think it also possible to force AHCI driver on 2.6, but I don`t want to downgrade. If there is no SAS disks in the system it should be safe to blacklist mvs driver.</p>
<h2>Adding more disks.</h2>
<p>After boot you can add more disks into the NAS. Hot-swap works fine, messages about news disks will be in a kernel log soon. I used gdisk (“u” command) to clone partition table and then added new drives to system RAID1 using mdadm. Don`t forget to do “grub-install /dev/sdX” for every new disk to make your system bootable in case of first disk failure. Also I created large software RAID partition on every disk which will be used as storage and configured it as RAID-5 with XFS. There was nothing special in this so I will not cover this process here. On this stage we have Debian up and running, without any issues. Hooray!</p>
<h2>Server monitoring and fine-tuning.</h2>
<p>It is very important for every server, especially for NAS to monitor hardware status and temperatures. Without it data will never be safe. In the next post I will cover ix12 internals, including temperature sensors, different devices on I2C bus, GPIO devices, system leds, etc. Stay tuned <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Update: </strong> <a title="Using Debian Linux on IOMEGA StorCenter Pro IX-12 " href="http://smallhacks.wordpress.com/2012/04/21/using-debian-linux-on-iomega-storcenter-pro-ix-12/">Using Debian Linux on IOMEGA StorCenter Pro IX-12</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Installing Debian packages with debtags]]></title>
<link>http://linuxindetails.wordpress.com/2012/04/17/installing-debian-packages-with-debtags/</link>
<pubDate>Tue, 17 Apr 2012 14:39:24 +0000</pubDate>
<dc:creator>linuxindetails</dc:creator>
<guid>http://linuxindetails.wordpress.com/2012/04/17/installing-debian-packages-with-debtags/</guid>
<description><![CDATA[You can make searches for package(s) through apt-cache and other GUI related tools. Debtags provides]]></description>
<content:encoded><![CDATA[<p>You can make searches for package(s) through apt-cache and other GUI related tools. Debtags provides a different way to do the same kind of job : <strong>debtags</strong></p>
<p>To install it :</p>
<p><strong>root@localhost:~#apt-get install debtags</strong></p>
<p>To populate the debtags database with the latest up-to-date data, you should remove the &#8220;#&#8221; at the line beginning with &#8220;tags http://debtags.alioth.debian.org/tags/&#8221;.  You can launch the database update :<strong><br />
</strong></p>
<p><strong>root@localhost:~# debtags update</strong></p>
<p>Most of the packages available in the Debian repositories have tags inside their description. See below what an apt-cache show provides as information for the vim package.</p>
<p><strong>root@localhost:~# apt-cache show vim</strong><br />
Package: vim<br />
Priority: optional<br />
Section: editors<br />
Installed-Size: 1744<br />
Maintainer: Debian Vim Maintainers &#60;pkg-vim-maintainers@lists.alioth.debian.org&#62;<br />
Architecture: amd64<br />
Version: 2:7.2.445+hg~cb94c42c0e1a-1<br />
Provides: editor<br />
Depends: vim-common (= 2:7.2.445+hg~cb94c42c0e1a-1), vim-runtime (= 2:7.2.445+hg~cb94c42c0e1a-1), libacl1 (&#62;= 2.2.11-1), libc6 (&#62;= 2.7), libgpm2 (&#62;= 1.20.4), libncurses5 (&#62;= 5.7+20100313), libselinux1 (&#62;= 1.32)<br />
Suggests: ctags, vim-doc, vim-scripts<br />
Filename: pool/main/v/vim/vim_7.2.445+hg~cb94c42c0e1a-1_amd64.deb<br />
Size: 915008<br />
MD5sum: dab2644b07e8dea570fc020d59f69d41<br />
SHA1: 8314d6388d378a8994e94d224255ef5b447851a8<br />
SHA256: 22c28c136a0c761cdc19a299b7cd9b8adb00e9de7e66b787c945f2104cfdba9d<br />
Description: Vi IMproved &#8211; enhanced vi editor<br />
Vim is an almost compatible version of the UNIX editor Vi.<br />
.<br />
Many new features have been added: multi level undo, syntax<br />
highlighting, command line history, on-line help, filename<br />
completion, block operations, folding, Unicode support, etc.<br />
.<br />
This package contains a version of vim compiled with a rather<br />
standard set of features.  This package does not provide a GUI<br />
version of Vim.  See the other vim-* packages if you need more<br />
(or less).<br />
Homepage: http://www.vim.org/<br />
<strong>Tag: devel::editor, implemented-in::c, interface::text-mode, role::program, scope::application, uitoolkit::ncurses, use::editing, works-with::text, works-with::unicode</strong></p>
<p>Here is a couple of commands to deal with this kind of search. You do not need to be root to run these commands.</p>
<p><strong>fool@localhost:~$ debtags show vim<br />
</strong></p>
<p>With this command above, you get all the tags within the vim package. This is similar to <strong>apt-cache show</strong>.</p>
<p>If you want to list all the packages available in the repositories with the &#8220;devel::editor&#8221; tag :</p>
<p><strong>fool@localhost:~$ debtags search</strong> <strong>devel::editor</strong></p>
<p><strong>cream &#8211; VIM macros that make the VIM easier to use for beginners</strong><br />
<strong>csstidy &#8211; CSS parser and optimiser</strong><br />
<strong>drpython &#8211; simple and customizable editor for the Python language</strong><br />
<strong>eclipse-jdt &#8211; Eclipse Java Development Tools (JDT)</strong><br />
<strong>editra &#8211; simple multi-platform text editor</strong><br />
<strong>eieio &#8211; Enhanced Implementation of Emacs Interpreted Objects</strong><br />
<strong>elvis &#8211; powerful clone of the vi/ex text editor (with X11 support)</strong><br />
<strong>elvis-common &#8211; common files for elvis, elvis-console and elvis-tools</strong><br />
<strong>elvis-console &#8211; powerful clone of the vi/ex text editor (without X11 support)</strong><br />
<strong>elvis-tiny &#8211; Tiny vi compatible editor for the base system</strong><br />
<strong>elvis-tools &#8211; text editing tools for programmers (elvfmt, elvtags, ref)</strong><br />
<strong>emacs &#8211; The GNU Emacs editor (metapackage)</strong><br />
<strong>emacs-goodies-el &#8211; Miscellaneous add-ons for Emacs</strong><br />
<strong>emacs-intl-fonts &#8211; Fonts to allow multi-lingual PostScript printing from Emacs</strong><br />
<strong>emacs23 &#8211; The GNU Emacs editor (with GTK+ user interface)</strong><br />
<strong>emacs23-bin-common &#8211; The GNU Emacs editor&#8217;s shared, architecture dependent files</strong><br />
<strong>emacs23-common &#8211; The GNU Emacs editor&#8217;s shared, architecture independent infrastructure</strong><br />
<strong>emacs23-nox &#8211; The GNU Emacs editor (without X support)</strong><br />
<strong>emacsen-common &#8211; Common facilities for all emacsen</strong><br />
<strong>eric &#8211; full featured Python IDE</strong><br />
<strong>fte &#8211; Text editor for programmers &#8211; base package</strong><br />
<strong>fte-console &#8211; Text editor for programmers &#8211; console edition, no I18N support</strong><br />
<strong>fte-docs &#8211; Documentation and examples for the FTE editor</strong><br />
<strong>fte-terminal &#8211; Text editor for programmers &#8211; version for terminals</strong><br />
<strong>fte-xwindow &#8211; Text editor for programmers &#8211; X Window System edition with I18N support</strong><br />
<strong>gphpedit &#8211; development environment for PHP/HTML/CSS</strong><br />
<strong>haskell-mode &#8211; A major mode for editing Haskell in Emacs</strong><br />
<strong>infon-devel &#8211; Develop bots for the infon game</strong><br />
<strong>jed &#8211; editor for programmers (textmode version)</strong><br />
<strong>jed-common &#8211; S-Lang runtime files for jed and xjed</strong><br />
<strong>jed-extra &#8211; collection of useful Jed modes and utilities</strong><br />
<strong>jove &#8211; Jonathan&#8217;s Own Version of Emacs &#8211; a compact, powerful editor</strong><br />
<strong>js2-mode &#8211; Emacs mode for editing Javascript programs</strong><br />
<strong>jvim-canna &#8211; Japanized VIM (Canna version)</strong><br />
<strong>kate &#8211; K Advanced Text Editor</strong><br />
<strong>kobby &#8211; Collaborative text editor for KDE</strong><br />
<strong>kwrite &#8211; simple graphical text editor</strong><br />
<strong>lpe &#8211; Lightweight Programmer&#8217;s Editor</strong><br />
<strong>medit &#8211; A useful programming and around-programming text editor</strong><br />
<strong>monodevelop &#8211; Development Environment for GNOME</strong><br />
<strong>monodevelop-java &#8211; Java plugin for MonoDevelop</strong><br />
<strong>nvi &#8211; 4.4BSD re-implementation of vi</strong><br />
<strong>padre &#8211; Perl Application Development and Refactoring Environment</strong><br />
<strong>pida &#8211; Python Integrated Development Application, a Python IDE</strong><br />
<strong>plt-scheme &#8211; PLT Scheme Programming Environment</strong><br />
<strong>projectmanager.app &#8211; Simple IDE for GNUstep</strong><br />
<strong>pype &#8211; Python programmers editor</strong><br />
<strong>pyragua &#8211; Very lightweight Python editor</strong><br />
<strong>rkward &#8211; a KDE frontend to the R statistics language</strong><br />
<strong>scite &#8211; Lightweight GTK-based Programming Editor</strong><br />
<strong>vigor &#8211; nvi with the evil paperclip</strong><br />
<strong>vile &#8211; VI Like Emacs &#8211; vi work-alike</strong><br />
<strong>vile-common &#8211; VI Like Emacs &#8211; support files for vile/xvile</strong><br />
<strong>vile-filters &#8211; VI Like Emacs &#8211; highlighting filters for vile/xvile</strong><br />
<strong>vim &#8211; Vi IMproved &#8211; enhanced vi editor</strong><br />
<strong>vim-common &#8211; Vi IMproved &#8211; Common files</strong><br />
<strong>vim-gnome &#8211; Vi IMproved &#8211; enhanced vi editor &#8211; with GNOME2 GUI</strong><br />
<strong>vim-gtk &#8211; Vi IMproved &#8211; enhanced vi editor &#8211; with GTK2 GUI</strong><br />
<strong>vim-latexsuite &#8211; view, edit and compile LaTeX documents from within Vim</strong><br />
<strong>vim-lesstif &#8211; Vi IMproved &#8211; enhanced vi editor &#8211; with LessTif GUI</strong><br />
<strong>vim-nox &#8211; Vi IMproved &#8211; enhanced vi editor</strong><br />
<strong>vim-runtime &#8211; Vi IMproved &#8211; Runtime files</strong><br />
<strong>vim-scripts &#8211; plugins for vim, adding bells and whistles</strong><br />
<strong>vim-tiny &#8211; Vi IMproved &#8211; enhanced vi editor &#8211; compact version</strong><br />
<strong>vim-vimoutliner &#8211; script for building an outline editor on top of Vim</strong><br />
<strong>vimhelp-de &#8211; Vi IMproved &#8211; Documentation files (German translation)</strong><br />
<strong>wily &#8211; A work-alike of the Acme programming environment for Plan 9</strong><br />
<strong>wims &#8211; server for educative contents as courses, exercises, exams</strong><br />
<strong>xemacs21 &#8211; highly customizable text editor</strong><br />
<strong>xemacs21-basesupport &#8211; Editor and kitchen sink &#8212; compiled elisp support files</strong><br />
<strong>xemacs21-basesupport-el &#8211; Editor and kitchen sink &#8212; source elisp support files</strong><br />
<strong>xemacs21-bin &#8211; highly customizable text editor &#8212; support binaries</strong><br />
<strong>xemacs21-gnome-mule &#8211; highly customizable text editor &#8212; transitional package</strong><br />
<strong>xemacs21-gnome-mule-canna-wnn &#8211; highly customizable text editor &#8212; transitional package</strong><br />
<strong>xemacs21-gnome-nomule &#8211; highly customizable text editor &#8212; transitional package</strong><br />
<strong>xemacs21-mule &#8211; highly customizable text editor &#8212; Mule binary</strong><br />
<strong>xemacs21-mule-canna-wnn &#8211; highly customizable text editor &#8212; Mule binary compiled with Canna and Wnn</strong><br />
<strong>xemacs21-mulesupport &#8211; Editor and kitchen sink &#8212; Mule elisp support files</strong><br />
<strong>xemacs21-mulesupport-el &#8211; Editor and kitchen sink &#8212; source elisp support files</strong><br />
<strong>xemacs21-nomule &#8211; highly customizable text editor &#8212; Non-mule binary</strong><br />
<strong>xemacs21-support &#8211; highly customizable text editor &#8212; architecture independent support files</strong><br />
<strong>xemacs21-supportel &#8211; highly customizable text editor &#8212; non-required library files</strong><br />
<strong>xjed &#8211; editor for programmers (x11 version)</strong><br />
<strong>xvile &#8211; VI Like Emacs &#8211; vi work-alike (X11)</strong></p>
<p>Then, you can install one of them with the apt-get program.</p>
<p>To find which tags have been created for a particular subject :</p>
<p><strong>fool@localhost:~$debtags tagsearch perl</strong></p>
<p><strong>devel::lang:perl &#8211; Perl Development</strong><br />
<strong>implemented-in::perl &#8211; Perl</strong></p>
<p>More info in the debtags manpage : <strong><a href="http://manpages.debian.net/cgi-bin/man.cgi?query=debtags&#38;apropos=0&#38;sektion=1&#38;manpath=Debian+6.0+squeeze&#38;format=html&#38;locale=en"> man (1) debtags</a></strong></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[The Awesome Little Western Digital My Book Live]]></title>
<link>http://netcodger.wordpress.com/2012/04/16/the-awesome-little-western-digital-my-book-live/</link>
<pubDate>Mon, 16 Apr 2012 12:00:20 +0000</pubDate>
<dc:creator>Net Codger</dc:creator>
<guid>http://netcodger.wordpress.com/2012/04/16/the-awesome-little-western-digital-my-book-live/</guid>
<description><![CDATA[The Net Codger is mad as hell! For years Western Digital has been selling a tiny network attached ha]]></description>
<content:encoded><![CDATA[<p>The Net Codger is mad as hell! For years Western Digital has been selling a tiny network attached hard drive called the My Book which I&#8217;ve duly ignored. “Cheap consumer stuff, bah!” Well, last week I purchased one, the <a href="http://www.amazon.com/gp/product/B00439GMJ2/ref=as_li_ss_tl?ie=UTF8&#38;tag=zwavec-20&#38;linkCode=as2&#38;camp=1789&#38;creative=390957&#38;creativeASIN=B00439GMJ2" target="_blank"> Western Digital My Book Live 2 TB drive</a>, and put it through its paces. Why didn&#8217;t anyone tell me that, for years, I had been ignoring a true gem? Why didn&#8217;t anyone tell me how fantastic this little drive is?</p>
<p><a href="http://netcodger.files.wordpress.com/2012/04/wd-mybook-front.png" target="_blank"><img class="alignleft size-medium wp-image-612" title="WD-MyBook-Front" src="http://netcodger.files.wordpress.com/2012/04/wd-mybook-front.png?w=181&h=300" alt="" width="181" height="300" /></a><a href="http://netcodger.files.wordpress.com/2012/04/wd-mybook-back.png" target="_blank"><img class="alignleft size-medium wp-image-613" title="WD-MyBook-Back" src="http://netcodger.files.wordpress.com/2012/04/wd-mybook-back.png?w=164&h=300" alt="" width="164" height="300" /></a></p>
<p>If, like me, you didn&#8217;t already know; the Western Digital My Book live is a network attached storage(NAS) device that uses the Linux OS as its core. Out of the box it offers backup options for Windows and Mac using the WD software or Time Machine respectively. It acts as a streaming media server. WD provides an app so that you can easily browse its media from an iPhone or iPad. WD includes a free service that allows you to access your files, stored on the My Book in your home, via the cloud(web) from anywhere. It is a really sweet little device for just a few dollars more than a bare drive of the same size.</p>
<p>But there&#8217;s more! The WD My Book Live uses a Power PC 800MHz processor with 256MB of RAM. It also has a gigabit ethernet network interface. The operating system is Debian and, get this, the Lenny and Squeeze repositories are enabled by default! So, I can <em>atp-get install whatever-the-hell-I-want</em> and it just works! Right out of the box! (After enabling SSH at http://mybook/ui/ssh)</p>
<p>For the price of a hard drive I have a fully functional, tiny, fanless, headless Linux PC. Why WD didn&#8217;t lock down the OS like most other manufacturers I&#8217;ll never know. But, kudos to them for keeping this beauty open! By doing so, they&#8217;re providing a fantastic opportunity for the hackers(tinkerers) out there. And a thriving community of My Book tinkerers has developed and is doing all sorts of neat projects with this inexpensive PC that lacks only video and USB ports.</p>
<p>To start off, I decided to test it unmodified in its factory default state. It comes with a CD that includes the installation and setup software, but I hate having to use a, usually Windows, PC to setup a network appliance. So, I went looking for a web interface instead. The WD My Book did not disappoint. Using only a browser, I was able to fully configure the device including a static IP address, SAMBA(Windows) network shares, users and passwords, even the online cloud(web) access feature. The interface was full featured, attractive, polished and intuitive.</p>
<p><a href="http://netcodger.files.wordpress.com/2012/04/mybook-config.png" target="_blank"><img class="aligncenter  wp-image-614" title="MyBook-Config" src="http://netcodger.files.wordpress.com/2012/04/mybook-config.png?w=460&h=358" alt="" width="460" height="358" /></a></p>
<p>Within minutes I had the My Book running on the network. Configuring Windows backups to backup to the My Book network shares was a snap, using Windows&#8217; built-in backup application. Later testing with the WD Smartware monitoring and backup software, available on a share from the My Book and the CD, was also easy to use and worked great. Mac&#8217;s Time Machine backup application worked natively with the My Book and at only half the price of an Apple Time Capsule!</p>
<p>Next up was Linux and, as always, things got little a bit less easy. The reason being that, most Linux distributions don&#8217;t have slick and ready to use backup applications like Time Machine installed and ready to go. Don&#8217;t get me wrong, there are lots of backup tools and options from the old stalwart Tar to the now preferred method of Rsync. But, they are all fiddly command line tools that take a little effort to setup initially. I&#8217;ll post details of this process in another post, so it will be easy for you. But, once they&#8217;re configured, they work great without a second thought. On the My Book, Linux can backup to a SAMBA network share by default. But, after enabling SSH on the My Book other target options include FTP, SFTP, SSH, NFS, Rsync daemon and possibly more that I haven&#8217;t though of yet.</p>
<p>Now, let&#8217;s be clear, the WD My Book has no redundancy or data protection(available in the Duo version) so, you would be stupid to use it as your solitary storage device. Sooner or later the WD Green drive inside will fail.</p>
<p>But, using the My Book as a backup target where you are storing a redundant copy of your data is the safe option that it was designed for. It is a great backup strategy for multiple devices that can protect against hardware failure/loss/theft, as well as a grab and go option in the event of a natural disaster like, storm, fire or flood.</p>
<p>The My Book Live is not super fast. The 800MHz processor is small by today&#8217;s PC standards, but it&#8217;s the Green drive that limits performance, as I discussed in <a href="//netcodger.wordpress.com/2012/04/05/western-digital-my-book-usb-3-performance" target="_blank">this previous post</a>. Despite this, the performance is perfectly adequate for a home storage device.</p>
<p>But, the WD My Book does what it says on the box for a great price. And thanks to WD leaving open access to its Linux OS, it is a fantastic little device for a wide selection of other uses! You can get the <a href="http://www.amazon.com/gp/product/B00439GMJ2/ref=as_li_ss_tl?ie=UTF8&#38;tag=zwavec-20&#38;linkCode=as2&#38;camp=1789&#38;creative=390957&#38;creativeASIN=B00439GMJ2" target="_blank">Western Digital My Book Live 2 or 3TB drive for a great price from Amazon</a> and I&#8217;d recommend one for every home network.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Building an Ada development environment using FSF GCC for Slackware]]></title>
<link>http://zhuqy.wordpress.com/2012/04/15/building-an-ada-development-environment-using-fsf-gcc-for-slackware/</link>
<pubDate>Sun, 15 Apr 2012 19:04:40 +0000</pubDate>
<dc:creator>zhuqy</dc:creator>
<guid>http://zhuqy.wordpress.com/2012/04/15/building-an-ada-development-environment-using-fsf-gcc-for-slackware/</guid>
<description><![CDATA[Ada support in Slackware is minimum, there is nothing else to help the Ada programer except the stoc]]></description>
<content:encoded><![CDATA[<p>Ada support in <a href="http://www.slackware.com" target="_blank">Slackware</a> is minimum, there is nothing else to help the Ada programer except the stock gnat compiler.   My goal is to make GPL version of GNAT GPS released from <a href="http://libre.adacore.com/" target="_blank">AdaCore</a> to work with FSF released <a href="http://gcc.gnu.org" target="_blank">GCC</a>.</p>
<p><a href="http://www.debian.org" target="_blank">Debian</a> has excellent gnat/Ada program maintainers and they had done a great job.  But then I always like the Slackware way of doing things not the Debian way.   My work are based on their hard work.</p>
<p>At first,  I tried to make the package to follow the <a href="http://people.debian.org/~lbrenta/debian-ada-policy.html" target="_blank">Debian policy for Ada</a>, but then I need to change quite intrusively to the original package.  And somehow I don&#8217;t like the way it place the library and include files.  Since this is Slackware, in the spirit of it, I tend not to change the original package too much unless it is really necessary.  The directory structure come out roughly  like the following:</p>
<pre>/usr/include/package-name/  -- for include .adb and .ads files
/usr/lib&#60;64&#62;/package-name/ -- for .ali files
/usr/lib&#60;64&#62;/gnat/package-name.gpr</pre>
<p>Now start building packages.  The gcc compiler in Slackware 13.37 is a little bit old for Ada language support, and it happened that build script for  gcc4.7.0 just shown up in the slackware-current tree.   I downloaded the whole source tree for gcc-4.7.0 from slackware-current and start to modified it.  I tried to mimic what Ludovic Brenta has done on Debian and build two libraries (libgnatprj/libgnatvsn) from the compiler source directly,  so that they could be reused latter for asis and gps.  His patched are quite intrusive and does not apply well as it is mean for 4.6.  I examined the patch and extracted what I needed and form two Makefiles for building libgnatprj and libgnatvsn without modified the gcc source tree itself.  It built fine first, but has linking error when try to build other packages.  It took me more than 10 builds of the compiler to make it working fine.  I haven&#8217;t took the time to compile a sjlj run time, as I don&#8217;t have a need for it yet.</p>
<p>Then I compiled XmlAda using the xmlada-for-gps-5.0.1-gpl-src.tgz source.  This required not much an effort.   I use the svn checkout of the GtkAda and it fixed some path problem I reported, so no patch is needed (actually, it does have a small patch to relax the path configuration).  The gprbuild program gave some challenge, as it compiled OK but failed to build Ada program.  It turns out to be a configuration xml problem, it has hard coded some lib path into it and does not acknowledge the path given during configure.</p>
<p>GPS is also from svn checkout.  Compiling GPS took a few round, patches are mostly for path correction and some from the Debian team.  It was compiling GPS that exposed the linking error about unresolved symbol for libgnatprj, it took me quite a few recompile of the library and compiler to get it working.</p>
<p>The rest are relatively easy for florist, aunit, gnatcoll, asis,etc.</p>
<p>The build scripts and source could be found here: <a href="http://goo.gl/osOED" target="_blank">goo.gl/osOED</a>.</p>
<p>The build scripts could also be found at gitHub <a href="https://github.com/qunying/ada-4-slackware">ada-4-slackware</a>.</p>
<p>ps. I only tested on Slackware64 13.37, it supposed to work fine with normal Slackware, but I did not test it.</p>
<p>pps. The svn checkout of GtkAda and GPS are using git svn clone, so it has the git version in the build tag and source file in stead of svn build number.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Ubuntu 12.04 - 11.0 XBMC Eden in the official repositoriess]]></title>
<link>http://toodamnez.wordpress.com/2012/04/15/ubuntu-12-04-11-0-xbmc-eden-in-the-official-repositoriess/</link>
<pubDate>Sun, 15 Apr 2012 18:27:44 +0000</pubDate>
<dc:creator>TooDamnEZ</dc:creator>
<guid>http://toodamnez.wordpress.com/2012/04/15/ubuntu-12-04-11-0-xbmc-eden-in-the-official-repositoriess/</guid>
<description><![CDATA[11.0 xbmc Eden, the famous Media Center, is now available directly from the official repositories of]]></description>
<content:encoded><![CDATA[<p><img class="aligncenter" src="http://www.le-libriste.fr/wp-content/uploads/2012/03/XBMCEden-560x316.jpg" alt="" width="560" height="316" /></p>
<p>11.0 xbmc Eden, the famous Media Center, is now available directly from the official repositories of the next version 4.12 lts <a class="zem_slink" title="List of Ubuntu releases" href="http://www.ubuntu.com/" rel="homepage" target="_blank">precise pangolin</a> of <a class="zem_slink" title="Ubuntu (operating system)" href="http://www.ubuntu.com" rel="homepage" target="_blank">Ubuntu</a> . This follows its integration into the deposits of the distribution <a class="zem_slink" title="Debian" href="http://www.debian.org/" rel="homepage" target="_blank">Debian</a>. So now to install the stable version no need to add a <a class="zem_slink" title="Personal Package Archive" href="http://en.wikipedia.org/wiki/Personal_Package_Archive" rel="wikipedia" target="_blank">PPA</a> repository. The only difference with the stable version of <a class="zem_slink" title="Purchasing power parity" href="http://en.wikipedia.org/wiki/Purchasing_power_parity" rel="wikipedia" target="_blank">PPP</a>, for licensing reasons, is the support for playing <a class="zem_slink" title="DVD" href="http://en.wikipedia.org/wiki/DVD" rel="wikipedia" target="_blank">DVD</a> videos unless you install <a class="zem_slink" title="Libdvdcss" href="http://www.videolan.org/developers/libdvdcss.html" rel="homepage" target="_blank">libdvdcss2</a>. Installing XBMC on Ubuntu 4.12</p>
<p>The procedure is simplified and becomes simply:</p>
<div>
<div>
<pre>sudo  apt-get  install xbmc libdvdread4</pre>
</div>
</div>
<p>and for DVD playback:</p>
<div>
<div>
<pre>sudo  / usr / share / doc / libdvdread4 / install-css.sh</pre>
</div>
</div>
<h6 class="zemanta-related-title" style="font-size:1em;">Related articles</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.omgubuntu.co.uk/2012/04/xmbc-eden-available-in-ubuntu-12-04/" target="_blank">XBMC Eden Available in Ubuntu 12.04</a> (omgubuntu.co.uk)</li>
<li class="zemanta-article-ul-li"><a href="http://xbmc.org/theuni/2012/04/10/xbmc-accepted-into-debian/" target="_blank">XBMC Accepted into Debian</a> (xbmc.org)</li>
<li class="zemanta-article-ul-li"><a href="http://www.jorgecastro.org/2012/04/10/xbmc-eden-in-debian-and-ubuntu/" target="_blank">XBMC Eden in Debian and Ubuntu</a> (jorgecastro.org)</li>
<li class="zemanta-article-ul-li"><a href="http://thepcspy.com/read/how-fix-idle-100-cpu-issue-xbmc/" target="_blank">Oli Warner: How to fix the 100% CPU issue in XBMC</a> (thepcspy.com)</li>
<li class="zemanta-article-ul-li"><a href="http://www.ubuntuvibes.com/2012/04/ubuntu-one-indicator-updated-for.html" target="_blank">Ubuntu One Indicator Updated for Precise</a> (ubuntuvibes.com)</li>
<li class="zemanta-article-ul-li"><a href="http://blog.brightbox.co.uk/posts/next-generation-ruby-packages-for-ubuntu" target="_blank">Next Generation Ruby packages for Ubuntu</a> (brightbox.co.uk)</li>
<li class="zemanta-article-ul-li"><a href="http://www.ubuntuvibes.com/2012/04/install-beautiful-fs-icons-set-in.html" target="_blank">Install Beautiful FS Icons Set in Ubuntu</a> (ubuntuvibes.com)</li>
<li class="zemanta-article-ul-li"><a href="http://icrontic.com/article/xbmc-11-0-released" target="_blank">XBMC 11.0 released</a> (icrontic.com)</li>
<li class="zemanta-article-ul-li"><a href="http://xbmc.org/natethomas/2012/03/24/xbmc-11-0-eden/" target="_blank">XBMC 11.0 &#8211; Eden</a> (xbmc.org)</li>
</ul>
]]></content:encoded>
</item>

</channel>
</rss>

