<?xml version="1.0" encoding="UTF-8"?> <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/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>MDLog:/sysadmin &#187; Debian</title> <atom:link href="http://www.ducea.com/category/linux/debian/feed/" rel="self" type="application/rss+xml" /><link>http://www.ducea.com</link> <description>The Journal Of A Linux Sysadmin</description> <lastBuildDate>Tue, 07 Feb 2012 19:40:06 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Build your own packages easily with FPM</title><link>http://www.ducea.com/2011/08/31/build-your-own-packages-easily-with-fpm/</link> <comments>http://www.ducea.com/2011/08/31/build-your-own-packages-easily-with-fpm/#comments</comments> <pubDate>Wed, 31 Aug 2011 22:13:02 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Centos]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[RHEL]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[deb]]></category> <category><![CDATA[debian_packages]]></category> <category><![CDATA[FPM]]></category> <category><![CDATA[rpm]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1369</guid> <description><![CDATA[Building packages is a task that every system administrator will end up doing. Most of the time this is not a very interesting task but someone has to do it, right? Normally you will end up modifying and tweaking based on your own needs an existing package that was built by the maintainers of the [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p><strong>Building packages</strong> is a task that every system administrator will end up doing. Most of the time this is not a very interesting task but someone has to do it, right? Normally you will end up modifying and tweaking based on your own needs an existing package that was built by the maintainers of the Linux distribution that you are using. In time you might even become familiar with the packaging system you are using (rpm, deb, etc.) and you will be able to write a spec file and start from scratch and build a new package if you need to. Still, this <em>process is complicated and requires a lot of work</em>.</p><p>Luckily, <strong><a
href="http://www.semicomplete.com/blog" target="_blank">Jordan Sissel</a></strong> has built a tool called <strong><a
href="https://github.com/jordansissel/fpm" target="_blank">FPM</a></strong> (Effing Package Management), exactly for this: to ease the pain of building new packages; packages that you will use for your own infrastructure and you want them customized based on your own needs; and you don&#8217;t care about upstream rules and standards and other limitations when building such packages. This can be very useful for people deploying their own applications as rpms (or debs) and can simplify a lot of the process of building those packages.</p><p>FPM can be easily installed on your build system using rubygems:<br
/> <code>gem install fpm</code></p><p>Once installed you can use fpm to build <strong>packages</strong> (targets):</p><ul><li>deb</li><li>rpm</li><li>solaris</li></ul><p>from any of the following <strong>sources</strong>:</p><ul><li>directory (of compiled source of some application)</li><li>gem</li><li>python eggs</li><li>rpm</li><li>node npm packages</li></ul><p><span
id="more-1369"></span>Use the command line help (fpm &#8211;help) or the <a
href="https://github.com/jordansissel/fpm/wiki" target="_blank">wiki</a> to see full details on how to use it. I&#8217;ll show some simple examples on how to build some packages from various input sources that I&#8217;ve found useful myself.</p><h3>1. Package a directory &#8211; output of a &#8216;make install&#8217; command</h3><p>This is how you would usually package an application that you would install with:<br
/> <em>./configure; make; make install</em><br
/> For example, here is how you can create an rpm of the latest version of memcached:<br
/> <code>wget http://memcached.googlecode.com/files/memcached-1.4.7.tar.gz<br
/> tar -zxvf memcached-1.4.7.tar.gz<br
/> cd memcached-1.4.7<br
/> ./configure --prefix=/usr<br
/> make</code><br
/> so far everything looks like a normal manual installation (that would be followed by make install). Still we will now install it in a separate folder so we can capture the output:<br
/> <code>mkdir /tmp/installdir<br
/> make install DESTDIR=/tmp/installdir</code><br
/> and finally using fpm to create the rpm package:<br
/> <code>fpm -s dir -t rpm -n memcached -v 1.4.7 -C /tmp/installdir</code><br
/> where <strong>-s</strong> is the input source type (directory), <strong>-t</strong> is the type of package (rpm), <strong>-n</strong> in the name of the package and <strong>-v</strong> is the version; <strong>-C</strong> is the directory where fpm will look for the files.<br
/> Note: you might need to install various libraries to build your package; for ex. in this case I had to install libevent-dev.</p><p>If you are packaging your own application you can do this just by pointing to your build folder and set the version of the app. Here is an example for an deb package:<br
/> <code>fpm -s dir -t deb -n myapp -v 0.0.1 -C /build/myapp/0.0.1/</code></p><p>There are various other parameters that you can use but basically this is how simple it is to build a package from a directory.<br
/> Here is an example on how to define some dependencies on the package you are building (using <strong>-d</strong>; repeat it as many times as needed):<br
/> <code>fpm -s dir -t deb -n memcached -v 1.4.7 -C /tmp/installdir \<br
/> -d "libstdc++6 (&gt;= 4.4.5)" \<br
/> -d "libevent-1.4-2 (&gt;= 1.4.13)"</code></p><h3>2. Ruby gems or python egg &#8211; converted to packages</h3><p>You can create a deb or rpm from a gem very simple with fpm:<br
/> <code>fpm -s gem -t deb &lt;gem_name&gt;</code><br
/> this will download the gem and create a package named rubygem-&lt;gem_name&gt;<br
/> For example:<br
/> <code>fpm -s gem -t deb fpm</code><br
/> will create a debian package for fpm: rubygem-fpm_0.3.7_all.deb</p><p>You can inspect it with<em> dpkg &#8211;info</em> and you can notice that in this case it will fill nicely all the fields with the maintainer, and dependencies on various other gems. Very cool.</p><p>If you use python and want to package various python eggs this will work exactly the same and you will use -s python (it will download the python packages with easy_install first).</p><p>Overall <strong>FPM</strong> is a great tool and can help you<span
style="text-decoration: underline;"><em> simplify the way you are building your own packages</em></span>. Check it out and let me know what you think and if you found it useful. And if you found this useful don’t forget to thank <strong><a
href="http://www.twitter.com/jordansissel" target="_blank">Jordan</a></strong> for his great work on this awesome tool.</p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2011/08/31/build-your-own-packages-easily-with-fpm/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Xen error: stdin: is not a tty</title><link>http://www.ducea.com/2011/03/01/xen-error-stdin-is-not-a-tty/</link> <comments>http://www.ducea.com/2011/03/01/xen-error-stdin-is-not-a-tty/#comments</comments> <pubDate>Wed, 02 Mar 2011 06:47:01 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Tips & Tricks]]></category> <category><![CDATA[Virtualization]]></category> <category><![CDATA[debian-lenny]]></category> <category><![CDATA[lenny]]></category> <category><![CDATA[xen]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1231</guid> <description><![CDATA[After installing a clean Debian Lenny Xen system using xen-tools, I received this strange error when trying to connect using ssh to the machine: PTY allocation request failed on channel 0 stdin: is not a tty It looks like for some reason, xen-tools didn&#8217;t install the udev package. So in order to fix this issue, I [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>After installing a clean Debian Lenny Xen system using <strong>xen-tools</strong>, I received this strange error when trying to connect using <strong>ssh</strong> to the machine:<br
/> <code>PTY allocation request failed on channel 0<br
/> stdin: is not a tty</code></p><p>It looks like for some reason, xen-tools didn&#8217;t install the <strong>udev</strong> package. So in order to fix this issue, I had to connect (using the virtual console) to the xen machine:<br
/> <code>xen console 1</code><br
/> and install udev:<br
/> <code>apt-get install udev</code><br
/> strange enough the <strong>/dev/pts</strong> mount entry was present in <strong>/etc/fstab</strong> so all I had to do was to remount it with:<br
/> <code>mount -a</code><br
/> (<em>if you don&#8217;t have this entry</em> make sure to add it in /etc/fstab:<br
/> <code>devpts          /dev/pts        devpts  rw,noexec,nosuid,gid=5,mode=620 0  0</code><br
/> and if the folder /dev/pts doesn&#8217;t exist create it first and after that mount -a).</p><p>This should fix the ssh problem and you should now be able to ssh into the xen machine. Next to see if this is fixed in xen-tools in Squeeze, and if not to file a bug for it.</p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2011/03/01/xen-error-stdin-is-not-a-tty/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>HowTo upgrade from Debian Lenny to Squeeze</title><link>http://www.ducea.com/2011/02/05/howto-upgrade-from-debian-lenny-to-squeeze/</link> <comments>http://www.ducea.com/2011/02/05/howto-upgrade-from-debian-lenny-to-squeeze/#comments</comments> <pubDate>Sat, 05 Feb 2011 23:46:11 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[debian-lenny]]></category> <category><![CDATA[debian-squeeze]]></category> <category><![CDATA[howto]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1280</guid> <description><![CDATA[This post will show how to upgrade from Debian 5.0.x &#8220;Lenny&#8221; to the latest stable Debian release 6.0 &#8220;Squeeze&#8221;. One of the reasons I&#8217;ve liked Debian in the first place was the advantage of being able to do a live, in place updates from one major release to another, usually in a safe way. As [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p><img
class="alignright" title="Debian Logo" src="http://www.ducea.com/images/debianlogo100.png" alt="" width="100" height="123" />This post will show how to upgrade from <strong>Debian 5.0.x &#8220;Lenny&#8221;</strong> to the latest stable <strong>Debian release 6.0 &#8220;Squeeze&#8221;</strong>. One of the reasons I&#8217;ve liked Debian in the first place was the advantage of being able to do a live, in place updates from one major release to another, usually in a safe way. As always, if you do this, please take some time to <strong>backup your system</strong> if you care of your data, as this is a major upgrade and things can go wrong. <strong>Squeeze</strong> brings in a few <em>big changes</em> and I will outline some of them, but I would recommend to read the <a
href="http://www.debian.org/releases/squeeze/amd64/release-notes/" target="_blank">release notes</a> and look for any incompatibilities (hardware or software) or changed things that could affect your particular setup.</p><h3>1. Update apt sources.list</h3><p>The first thing we will do (after the backup of course) is to edit the <strong>/etc/apt/sources.list</strong> file and replace “<strong>lenny</strong>” with “<strong>squeeze</strong>“. Originally, this might look like this (for a system using the main US mirrors; your file might use a different local one):</p><pre><code>deb http://ftp.us.debian.org/debian/ <strong>lenny</strong> main contrib non-free
deb-src http://ftp.us.debian.org/debian/ <strong>lenny</strong> main contrib non-free

deb http://security.debian.org/ etch/updates <strong>lenny</strong> contrib non-free</code></pre><p>after replacing lenny with squeeze the file will look like this:</p><pre><code>deb http://ftp.us.debian.org/debian/ <strong>squeeze</strong> main contrib non-free
deb-src http://ftp.us.debian.org/debian/ <strong>squeeze</strong> main contrib non-free

deb http://security.debian.org/ <strong>squeeze</strong>/updates main contrib non-free</code></pre><p><span
id="more-1280"></span></p><h3>2. Perform the system upgrade</h3><p>After updating the sources file, you will have to <em>refresh the indexes</em> with:<br
/> <code>aptitude update</code></p><p>Next let&#8217;s <em>manually upgrade the core apt packages</em> (this will pull in some extra dependencies, and this is perfectly fine):<br
/> <code>aptitude install apt dpkg aptitude</code></p><p>And finally we will perform the bulk of package upgrades with:<br
/> <code>aptitude safe-upgrade</code><br
/> this will take a while depending on what packages you have installed (that will need to be upgraded) and on your internet connection speed.</p><p><em>Here are <span
style="text-decoration: underline;">some changes</span> that you might want to pay special attention during the upgrade:</em><br
/> - <strong>dash</strong>: squeeze uses dash instead of /bin/sh as the default system shell. This is the recommended way and it is supposed to be faster and improve the system overall performance. I recommend to use it and accept this change.<br
/> - <strong>grub2</strong>: is the default in squeeze and the upgrade will recommend to upgrade from your existing grub. This is a major change and for this reason initially the boot loader will be chainloaded in the existing menu.lst to verify it works fine. If you want to upgrade I would recommend to do the chainload and test it with at least one reboot before removing grub legacy.<br
/> - <strong>sysv-rc</strong>: to improve the boot process the upgrade will offer to move to dependency-based sequencing. This is irreversible but highly recommended. I had no problem with it and don&#8217;t see why anyone would not want this.<br
/> - <strong>UUIDs</strong>: the installer will recommend to switch from regular disk devices (aka /dev/sda*) to disk IDs (aka UUID=c6ecae74-6754-4ad0-986d-98dd9cbfd293) in various configuration places like  /etc/fstab, /boot/grub/menu.lst. I personally don&#8217;t like that, but didn&#8217;t want to take the risk for the device to change its name with the new kernel and went with the change. If you do the same pls. doublecheck the changed files before rebooting.</p><p>Now it is time to <strong>reboot</strong> your system for the first time into squeeze. Fingers crossed and in a few minutes you will be running squeeze (as always an out of band impi console is handy when doing such upgrades)</p><h3>3. Complete the upgrade</h3><p>If you upgraded to grub2 and want to remove the chainloaded <strong>grub-legacy</strong> you can remove it completely from the system with:<br
/> <code>upgrade-from-grub-legacy</code><br
/> and the output will look like this:<br
/> <code>0<br
/> Installation finished. No error reported.<br
/> Generating grub.cfg ...<br
/> Found linux image: /boot/vmlinuz-2.6.32-5-amd64<br
/> Found initrd image: /boot/initrd.img-2.6.32-5-amd64<br
/> Found linux image: /boot/vmlinuz-2.6.26-2-amd64<br
/> Found initrd image: /boot/initrd.img-2.6.26-2-amd64<br
/> done</code></p><p>You can now run:<br
/> <code>aptitude full-upgrade</code><br
/> and this will complete some extra packages that were not straitforward and not seen as safe by the normal upgrade process (there might be none, depending on the state of your existing system). Evaluate them before moving forward. And finally once you are done reboot once more (to see that grub2 is working fine by itself) and you will be running the latest uptodate squeeze system.</p><h3>4. (Optional) Convert your ext3 filesystems to ext4</h3><p>This step is optional and if you are happy with the <strong>ext3</strong> filesystem then you can safely skip it. Myself, I&#8217;ve done this most of the time so I thought it might be useful to add it here for anyone else interested to do the same.</p><p>First doublecheck if you are running the 2.6.32 squeeze kernel:<br
/> <code>uname -a<br
/> Linux srv01 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux</code></p><p>Older than 2.6.28 kernels (like lenny 2.6.26 for example) don&#8217;t have native support for ext4, so this will fail for an older kernel. Because ext4 is backwards compatible with ext3, all we have to do is to change the mount definitions to ext4 in fstab:<br
/> <code>vim /etc/fstab</code><br
/> and change the filesystem from <strong>ext3</strong> to <strong>ext4</strong> for any devices you might have. Make a note on the devices you change, and reboot the machine. After the reboot the machine will use the ext4 driver for the old filesystem even though it doesn&#8217;t take full advantage of the ext4 capabilities. To complete this and <em>enable the extra ext4 features</em> we will need to run for each filesystem:<br
/> <code>tune2fs -O extents,uninit_bg,dir_index &lt;device&gt;</code><br
/> like, for example for /dev/sda1:<br
/> <code>tune2fs -O extents,uninit_bg,dir_index /dev/sda1</code><br
/> this will only be activated when the filesystem is unmounted and we can achieve this with yet another reboot (especially for the root filesystem), and the system will auto fsck them (as the last command marked the filesystem as dirty) and perform the upgrade. I would highly recommend for this to have a remote console on the system as in most of the cases the auto fsck will fail and you will have to run it manually from the console.</p><p><em>Hopefully this howto will help you upgrade your <strong>debian system to squeeze with ext4</strong>. If you have encountered anything special during the upgrade feel free to share it with others using the comment box bellow.</em></p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2011/02/05/howto-upgrade-from-debian-lenny-to-squeeze/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Debian News: Lenny 5.0.6, backports, stats.</title><link>http://www.ducea.com/2010/09/10/debian-news-lenny-5-0-6-backports-stats/</link> <comments>http://www.ducea.com/2010/09/10/debian-news-lenny-5-0-6-backports-stats/#comments</comments> <pubDate>Sat, 11 Sep 2010 01:20:30 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[News from Outside]]></category> <category><![CDATA[backports]]></category> <category><![CDATA[debian-lenny]]></category> <category><![CDATA[lenny]]></category> <category><![CDATA[releases]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1164</guid> <description><![CDATA[Updated Debian GNU/Linux: 5.0.6 release This week the Debian project released the 6th update to its stable release Lenny, 5.0.6. All recent security updates have been added, as well as some other fixes. The linux-2.6 package was also updated for increased hardware support. Backports service is now official I was very happy to hear that [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<h3>Updated Debian GNU/Linux: 5.0.6 release</h3><p>This week the Debian project <a
href="http://www.debian.org/News/2010/20100904" target="_blank">released</a> the 6th update to its stable release Lenny, <strong>5.0.6</strong>. All recent security updates have been added, as well as some other fixes. The linux-2.6 package was also updated for increased hardware support.</p><h3>Backports service is now official</h3><p>I was very happy to <a
href="http://lists.debian.org/debian-devel-announce/2010/09/msg00002.html" target="_blank">hear</a> that the <a
href="http://backports.debian.org/" target="_blank">debian backports</a> project is now an <strong>official debian project</strong>. I always used (and liked) the <strong>backports.org</strong> repository to easily bring in updated software to the stable release. Now, after it become an official project and not just a fun project of three developers will hopefully be even better and have more software added into backports much faster. Don&#8217;t forget to change your apt sources config to point to <strong>backports.debian.org</strong> (old backports.org mirror will still work for a while).<br
/> <code>deb http://backports.debian.org/debian-backports lenny-backports main contrib non-free</code></p><h3>Debian growth over time</h3><p>Also on some unrelated news <em>Romain Francoise</em> <a
href="http://blog.orebokech.com/2010/08/update-on-md5sums-and-debian-growth.html" target="_blank">published</a> some interesting stats on the growth of the Debian archive over time:</p><ul><li>woody (2002): 8273 packages</li><li>sarge (2005): 15195 packages (+83.7%)</li><li>etch (2007): 18043 packages (+18.7%)</li><li>lenny (2009): 22277 packages (+23.5%)</li><li>squeeze (2010?): 28870 packages (+29.6%)</li></ul><p>Wow… now that is really impressive.</p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2010/09/10/debian-news-lenny-5-0-6-backports-stats/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Next Debian release will be called &#8220;Wheezy&#8221;</title><link>http://www.ducea.com/2010/09/03/next-debian-release-will-be-called-wheezy/</link> <comments>http://www.ducea.com/2010/09/03/next-debian-release-will-be-called-wheezy/#comments</comments> <pubDate>Sat, 04 Sep 2010 02:02:28 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[News from Outside]]></category> <category><![CDATA[releases]]></category> <category><![CDATA[Wheezy]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1137</guid> <description><![CDATA[Squeeze has been frozen for some time now, and hopefully will be released by the end of the year, and today the Debian team has revealed the name of the next Debian release 7.0: Wheezy. Just like all the previous releases, this is another character from Toy Story &#8211; wheezy &#8211; a rubber squeeze toy [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p><strong><img
class="size-full wp-image-1139 alignright" style="margin-top: 0px; margin-bottom: 0px; margin-left: 10px; margin-right: 0px;" title="Wheezy" src="http://www.ducea.com/images/2010/09/Wheezy.png" alt="" width="180" height="161" />Squeeze</strong> has been frozen for some time now, and hopefully will be released by the end of the year, and today the Debian team has revealed the name of the next <strong>Debian release 7.0</strong>: <strong>Wheezy</strong>.</p><p>Just like all the previous releases, this is another character from <a
href="http://en.wikipedia.org/wiki/List_of_Toy_Story_characters" target="_blank">Toy Story</a> &#8211; <em>wheezy</em> &#8211; a rubber squeeze toy penguin with a red bow tie (that appears only in the 2nd movie). This will be the first character selected as a Debian version name which has not appeared in all the movies.</p><p>Source: <a
href="http://lists.debian.org/debian-devel-announce/2010/09/msg00000.html" target="_blank">http://lists.debian.org/debian-devel-announce/2010/09/msg00000.html</a></p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2010/09/03/next-debian-release-will-be-called-wheezy/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Multiple java versions on debian</title><link>http://www.ducea.com/2010/08/09/multiple-java-versions-on-debian/</link> <comments>http://www.ducea.com/2010/08/09/multiple-java-versions-on-debian/#comments</comments> <pubDate>Mon, 09 Aug 2010 23:56:14 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Tips & Tricks]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[java]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1098</guid> <description><![CDATA[Debian has a nice way to handle multiple java installations on a the same machine. Let&#8217;s say that for some reason you want to have sun-java 1.5 and also 1.6 installed on the server, we can easily configure the default one with the update-java-alternatives command (part of the java-common package). Here is how it can [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>Debian has a nice way to handle <strong>multiple java installations</strong> on a the same machine. Let&#8217;s say that for some reason you want to have <em>sun-java 1.5</em> and also <em>1.6</em> installed on the server, we can easily configure the default one with the <strong>update-java-alternatives</strong> command (part of the <em>java-common</em> package). Here is how it can be used:</p><p>To see what versions of java we have installed on the system (from debian packages):<br
/> <code>update-java-alternatives -l<br
/> java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun<br
/> java-6-sun 63 /usr/lib/jvm/java-6-sun</code></p><p>We can see that the default version is 1.6 in my case (as it was the last installed):<br
/> <code>java -version<br
/> java version "1.6.0_20"<br
/> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)<br
/> Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)</code></p><p>We can change the default version with: update-java-alternatives &#8211;jre -s &lt;ver&gt; , like:<br
/> <code><strong>update-java-alternatives</strong> --jre -s java-1.5.0-sun</code><br
/> and now the default is 1.5:<br
/> <code>java -version<br
/> java version "1.5.0_22"<br
/> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)<br
/> Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode, sharing)</code></p><p>This is quite handy if you need to have multiple java versions installed, and need a quick way to change the default one (you can access any of them directly from their own path of course).</p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2010/08/09/multiple-java-versions-on-debian/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Debian 6.0 &#8220;Squeeze&#8221; frozen</title><link>http://www.ducea.com/2010/08/09/debian-6-0-squeeze-frozen/</link> <comments>http://www.ducea.com/2010/08/09/debian-6-0-squeeze-frozen/#comments</comments> <pubDate>Mon, 09 Aug 2010 19:21:22 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[News from Outside]]></category> <category><![CDATA[debian-squeeze]]></category> <category><![CDATA[releases]]></category> <category><![CDATA[squeeze]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1091</guid> <description><![CDATA[During the annual Debian Developer Conference &#8220;Debconf10&#8221; in New York, the Debian&#8217;s release managers have announced the freeze of the upcoming stable release Debian 6.0 Squeeze. Basically this means that no new features will be added and all work will now be concentrated on fixing existing bugs. The upcoming debian stable release will include: - [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>During the annual Debian Developer Conference &#8220;<strong>Debconf10</strong>&#8221; in New York, the Debian&#8217;s release managers have <a
href="http://www.debian.org/News/2010/20100806" target="_blank">announced</a> the <em>freeze</em> of the upcoming stable release <strong>Debian 6.0 Squeeze</strong>. Basically this means that no new features will be added and all work will now be concentrated on fixing existing bugs.</p><p>The upcoming debian stable release will include:<br
/> - Linux 2.6.32 kernel<br
/> - Apache 2.2.16, PHP 5.3.2, MySQL 5.1.48, PostgreSQL 8.4.4<br
/> - Python 2.6 and 3.1, Perl 5.10, Ruby 1.8.7.299 and 1.9.2~svn28788, GCC 4.4<br
/> - DKMS, a framework to generate Linux kernel modules whose sources do not reside in the Linux kernel source tree.<br
/> - Dependency-based ordering of init scripts using insserv, allowing parallel execution to shorten the time needed to boot the system.</p><p>Hopefully we will see Squeeze going stable in the next 4-6 months, ideally by the end of the year!</p><p>Release Announcement: <a
href="http://www.debian.org/News/2010/20100806" target="_blank">http://www.debian.org/News/2010/20100806</a></p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2010/08/09/debian-6-0-squeeze-frozen/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>HowTo install reconnoiter on Debian Lenny</title><link>http://www.ducea.com/2010/07/13/howto-install-reconnoiter-on-debian-lenny/</link> <comments>http://www.ducea.com/2010/07/13/howto-install-reconnoiter-on-debian-lenny/#comments</comments> <pubDate>Tue, 13 Jul 2010 02:03:18 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Monitoring]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[reconnoiter]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1073</guid> <description><![CDATA[Ever since I sow the oscon presentation of reconnoiter I wanted to check it out and play with it. Yesterday, I finally had some time to do this and thought it would be a good idea to document it as a short howto. Most of the infos I used are from the readme (BUILDING), the [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>Ever since I sow the <a
href="http://omniti.com/video/noit-oscon-demo" target="_blank">oscon presentation</a> of <strong><a
href="https://labs.omniti.com/trac/reconnoiter" target="_blank">reconnoiter</a></strong> I wanted to check it out and play with it. Yesterday, I finally had some time to do this and thought it would be a good idea to document it as a short howto. Most of the infos I used are from the readme (BUILDING), the <a
href="https://labs.omniti.com/trac/reconnoiter/wiki" target="_blank">wiki</a> and the excellent writeup of Thomas Dudziak on <a
href="http://tomdzk.wordpress.com/2009/11/24/reconnoiter-on-karmic/" target="_blank">how to install reconnoiter on ubuntu</a>.</p><p>The daemons <strong>noitd</strong> and <strong>stratcond</strong> are written in C, and the database used is postgressql, while the web interface is written in php. We will need to install a few dependencies to be able to compile noitd/stratcond:<span
id="more-1073"></span></p><h3>Dependencies</h3><p><code>apt-get install autoconf build-essential \<br
/> zlib1g-dev uuid-dev libpcre3-dev libssl-dev libpq-dev \<br
/> libxslt-dev libapr1-dev libaprutil1-dev xsltproc \<br
/> libncurses5-dev python libssh2-1-dev libsnmp-dev \<br
/> sun-java6-jdk</code></p><p>In case you don&#8217;t have already installed svn, we will need that also (to download the sources):<br
/> <code>apt-get install subversion</code></p><h3>Compiling</h3><p>Next we will download the source and compile it. I used the trunk version bellow, but you might want use a stable tag (Urskek is the latest when writing this):<br
/> <code>cd /usr/local/src/<br
/> svn co https://labs.omniti.com/reconnoiter/trunk reconnoiter<br
/> cd reconnoiter<br
/> autoconf<br
/> ./configure<br
/> make<br
/> make install</code></p><h3>Database</h3><p>We need to instal <strong>PostgreSQL 8.4 </strong>and this is not available in lenny; the simplest way we can do this is to use the backports package. To enable the <a
href="http://backports.org/" target="_blank">backports</a> sources add this line<br
/> <code>deb http://www.backports.org/debian lenny-backports main contrib non-free</code><br
/> to your <em>/etc/apt/sources.list</em> and run <em>apt-get update</em> to refresh your apt indexes. And finally add the backports key into apt:<br
/> <code>apt-get install debian-backports-keyring</code></p><p>Now we can install postgres 8.4 using:<br
/> <code>apt-get -t lenny-backports install postgresql</code></p><p>Next we&#8217;ll need to edit /etc/postgresql/8.4/main/pg_hba.conf and replace this line<br
/> <code>local   all         all                               ident</code>with<br
/> <code>local   all         all                               trust</code><br
/> and restart postgres:<br
/> <code>/etc/init.d/postgresql-8.4 restart</code><br
/> to allow local access without password.</p><p>Next we can install the dbs, using:<br
/> <code>su postgres<br
/> cd /usr/local/src/reconnoiter/sql<br
/> psql<br
/> \i scaffolding.sql<br
/> \q</code></p><h3>DB crontab</h3><p>You can find a sample crontab in the sql folder that needs to be customized for our particular setup (/opt/psql835/bin -&gt;  /usr/bin/), and it should look like this:</p><pre><code>su postgres
crontab -l
# m h  dom mon dow   command
#rollup jobs
* * * * * /usr/bin/psql -d reconnoiter -U stratcon -c "select stratcon.rollup_metric_numeric(rollup) from metric_numeric_rollup_config order by seconds asc;" &gt;/tmp/rollup.log 2&gt;&amp;1
#cleanup jobs
01 00 * * * /usr/bin/psql -d reconnoiter -U reconnoiter -c "select stratcon.archive_part_maint('noit.metric_numeric_archive', 'whence', 'day', 7);" 1&gt;/dev/null
01 00 * * * /usr/bin/psql -d reconnoiter -U reconnoiter -c "select stratcon.archive_part_maint('noit.metric_text_archive', 'whence', 'day', 7);" 1&gt;/dev/null
01 00 * * * /usr/bin/psql -d reconnoiter -U reconnoiter -c "select stratcon.archive_part_maint('noit.check_status_archive', 'whence', 'day', 7);" 1&gt;/dev/null
01 00 * * * /usr/bin/psql -d reconnoiter -U reconnoiter -c "select stratcon.archive_part_maint('noit.check_archive', 'whence', 'day', 7);" 1&gt;/dev/null
01 00 * * * /usr/bin/psql -d reconnoiter -U reconnoiter -c "delete from prism.saved_graphs where saved = false and last_update/dev/null</code></pre><p><em><span
style="text-decoration: underline;">!!! I would suggest to run the daily crons manually once as they create the needed tables and in case you don&#8217;t have them you will receive various errors (I know I lost a lot of time trying to figure out why those were not there). This should be just like:</span></em><br
/> <code>/usr/bin/psql -d reconnoiter -U reconnoiter -c "select stratcon.archive_part_maint('noit.metric_text_archive', 'whence', 'day', 7);"</code><br
/> and so on for each of the 5 daily crons from above.</p><h3>keys</h3><p>For a production install you will obviously create some real certs, but in my case where I was just testing this out the test certs build by the installer are just fine:<br
/> <code>cd /usr/local/src/reconnoiter/test<br
/> cp test-*.crt test-*.key /usr/local/etc/</code></p><p>In dealing with the configuration files uuid&#8217;s you will find useful the <strong>uuidgen</strong> program from the uuid-runtime package:<br
/> <code>apt-get install uuid-runtime</code><br
/> that will generate a new uuid on each run:<br
/> <code>uuidgen<br
/> 22426aa0-db34-437d-a891-e759ffbdb494</code></p><h3>noitd</h3><p>We will start from the sample configuration:<br
/> <code>mv /usr/local/etc/noit.conf.sample /usr/local/etc/noit.conf</code><br
/> and edit/remove it as needed. Be sure to edit the sslconfig part with the keys you copied above. For more details on the config file look on the <a
href="https://labs.omniti.com/docs/reconnoiter/config.noitd.html" target="_blank">wiki</a>.</p><p>Finally run noitd and see if all is good:<br
/> <code>/usr/local/sbin/noitd -c /usr/local/etc/noit.conf -D</code><br
/> If there are no errors stop it, and run it in the background (without -D):<br
/> <code>/usr/local/sbin/noitd -c /usr/local/etc/noit.conf</code></p><h3>stratcon</h3><p>For stratcon we are going to use a similar approach:<br
/> <code>mv /usr/local/etc/stratcon.conf.sample /usr/local/etc/stratcon.conf</code><br
/> and then customize the config based on our needs. Set the keys in sslconfig section and the db details</p><pre><code>    &lt;dbconfig&gt;
      &lt;host&gt;localhost&lt;/host&gt;
      &lt;dbname&gt;reconnoiter&lt;/dbname&gt;
      &lt;user&gt;stratcon&lt;/user&gt;
      &lt;password&gt;unguessable&lt;/password&gt;
    &lt;/dbconfig&gt;    </code></pre><p>the password is &#8220;stratcon&#8221; or whatever you set in scaffolding.sql if you customized it (a good idea <img
src='http://www.ducea.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).<br
/> and finally run it with debuging in the foreground:<br
/> <code>/usr/local/sbin/stratcond -c /usr/local/etc/stratcon.conf -D</code><br
/> and if all is good (you did ran the db creation task, right?) you can start it in the background without -D and move to the final step:<br
/> <code>/usr/local/sbin/stratcond -c /usr/local/etc/stratcon.conf</code></p><h3>Web interface</h3><p>Finally the last step is to configure the web interface. For this we need to be sure we have apache/php installed and the pgsql module:<br
/> <code>apt-get install apache2 libapache2-mod-php5 php5-pgsql</code><br
/> and to enable the rewrite module<br
/> <code>a2enmod rewrite</code><br
/> Next we would copy the web files ui to some place like /var/www/ui and create a vhost for reconnoiter inside /etc/apache2/sites-available:</p><pre><code>&lt;VirtualHost *:80&gt;
  DocumentRoot /var/www/ui/web/htdocs

  &lt;Directory "/"&gt;
      Options None
      AllowOverride None
      Order allow,deny
      Deny from all
  &lt;/Directory&gt;
  &lt;FilesMatch "^\.ht"&gt;
      Order allow,deny
      Deny from all
      Satisfy All
  &lt;/FilesMatch&gt;
  &lt;Directory "/var/www/ui/web/htdocs/"&gt;
      php_value include_path /var/www/ui/web/lib
      php_value short_open_tag off
      Options FollowSymLinks Indexes
      AllowOverride All
      Order deny,allow
      Allow from all
  &lt;/Directory&gt;

  LogLevel warn
  LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common

  ErrorLog /var/www/ui/web/logs/error_log
  CustomLog /var/www/ui/web/logs/access_log common

  AddType application/x-compress .Z
  AddType application/x-gzip .gz .tgz
  AddType application/x-httpd-php .php
  DefaultType text/plain

  RewriteEngine On
  RewriteRule ^(/data/.+)$ http://localhost:80$1 [P,L,QSA]
&lt;/VirtualHost&gt;
</code></pre><p>enable the config:<br
/> <code>a2ensite reconnoiter</code><br
/> and restart apache to enable it: /etc/init.d/apache2 restart</p><p>After this hopefully you can open the web interface and start adding some metrics. My goal was to test this with collectd and if there is interest I could describe the details on how to make reconnoiter work with collectd in another post. let me know&#8230;</p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2010/07/13/howto-install-reconnoiter-on-debian-lenny/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Debian Lenny 5.0.5 updated</title><link>http://www.ducea.com/2010/06/29/debian-lenny-5-0-5-updated/</link> <comments>http://www.ducea.com/2010/06/29/debian-lenny-5-0-5-updated/#comments</comments> <pubDate>Tue, 29 Jun 2010 01:50:04 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[News from Outside]]></category> <category><![CDATA[debian-lenny]]></category> <category><![CDATA[releases]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1068</guid> <description><![CDATA[The Debian project just announced the fifth update for its stable distribution “lenny” 5.0.5. Those installing regular updates from security.debian.org will notice just a few new updates (base-files for the version change to 5.0.5, apache2, apt, bind9, linux-image, openssl, etc). Also the installer has been updated in this point release to correct an issue with [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>The <a
href="http://debian.org/" target="_blank">Debian project</a> just announced the <strong>fifth update </strong>for its stable distribution <strong>“lenny” 5.0.5</strong>. Those installing regular updates from security.debian.org will notice just a few new updates (base-files for the version change to 5.0.5, apache2, apt, bind9, linux-image, openssl, etc). Also the installer has been updated in this point release to correct an issue with the display of the &#8220;BIOS boot area&#8221; partitioner option when using GPT partitions and to update the list of available mirror servers for package installation.</p><p><em>&#8220;The Debian project is pleased to announce the fifth update of its stable distribution Debian GNU/Linux 5.0 (codename &#8220;lenny&#8221;). This update mainly adds corrections for security problems to the stable release, along with a few adjustment to serious problems.<br
/> </em></p><p><em>Please note that this update does not constitute a new version of Debian GNU/Linux 5.0 but only updates some of the packages included. There is no need to throw away 5.0 CDs or DVDs but only to update via an up-to- date Debian mirror after an installation, to cause any out of date packages to be updated.<br
/> </em></p><p><em>Those who frequently install updates from security.debian.org won&#8217;t have to update many packages and most updates from security.debian.org are included in this update.<br
/> </em></p><p><em>New CD and DVD images containing updated packages and the regular installation media accompanied with the package archive respectively will be available soon at the regular locations.&#8221;</em></p><p>Release Announcement: <a
href="http://www.debian.org/News/2010/20100626" target="_blank">http://www.debian.org/News/2010/20100626</a></p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2010/06/29/debian-lenny-5-0-5-updated/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Debian 6.0 Squeeze expected to be released by the end of the year&#8230; if all goes well</title><link>http://www.ducea.com/2010/06/18/debian-6-0-squeeze-expected-to-be-released-by-the-end-of-the-year-if-all-goes-well/</link> <comments>http://www.ducea.com/2010/06/18/debian-6-0-squeeze-expected-to-be-released-by-the-end-of-the-year-if-all-goes-well/#comments</comments> <pubDate>Fri, 18 Jun 2010 19:21:40 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[News from Outside]]></category> <category><![CDATA[releases]]></category> <category><![CDATA[squeeze]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1038</guid> <description><![CDATA[The Debian release team recently announced the current status of the next Debian release Squeeze. The team just finished the work on some major parts like completing the changes to run init scripts in parallel, transition to eglibc into testing, GNOME 2.30 and KDE 4.4.3. The next big step is to make Python 2.6 the [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>The <strong><a
href="http://www.debian.org/" target="_blank">Debian</a> release team</strong> recently <a
href="http://lists.debian.org/debian-devel-announce/2010/06/msg00002.html" target="_blank">announced</a> the current status of the next Debian release <strong>Squeeze</strong>. The team just finished the work on some major parts like completing the changes to run init scripts in parallel, transition to eglibc into testing, GNOME 2.30 and KDE 4.4.3. The next big step is to make <strong>Python 2.6</strong> the default python version for sqeeeze and based on Adam Barratt estimation this could be finished sometime in <strong>late August</strong>, and at that time to freeze the release.</p><p>Squeeze freeze was planed for <em>December 2009</em>, meaning it is already way behind schedule, and it looks that it is not so easy for the Debian project to switch to a fixed 2 year <a
href="http://www.ducea.com/2009/07/31/debian-adopts-time-based-release-freezes/">release cycle</a> (or freeze cycle). This was pushed back because of the high number of <a
href="http://bugs.debian.org/release-critical/" target="_blank">critical bugs</a> for a release freeze. Based on past experiences there will be <em>at least 4 months</em> needed after the freeze to release the next stable version, meaning this could show up <strong>by the end of the year</strong> if <em>everything works out fine</em>. But realistically, this could take <em>6-8 months</em> after the freeze, and push the release date in <strong>2011</strong>.</p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2010/06/18/debian-6-0-squeeze-expected-to-be-released-by-the-end-of-the-year-if-all-goes-well/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
<!-- Served from: www.ducea.com @ 2012-02-08 14:02:37 by W3 Total Cache -->
