<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The eternal fight between admins and computers</title>
	<atom:link href="http://anothersysadmin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://anothersysadmin.wordpress.com</link>
	<description>(and very often users, as well)</description>
	<lastBuildDate>Mon, 08 Jun 2009 07:45:49 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
		<url>http://www.gravatar.com/blavatar/66ef3cf705321e471c2ca5ba7285fae3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>The eternal fight between admins and computers</title>
		<link>http://anothersysadmin.wordpress.com</link>
	</image>
			<item>
		<title>Using tee to redirect output to multiple programs</title>
		<link>http://anothersysadmin.wordpress.com/2009/06/08/using-tee-to-redirect-output-to-multiple-programs/</link>
		<comments>http://anothersysadmin.wordpress.com/2009/06/08/using-tee-to-redirect-output-to-multiple-programs/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 07:44:50 +0000</pubDate>
		<dc:creator>Vide</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oneliner]]></category>
		<category><![CDATA[Shell scripts]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://anothersysadmin.wordpress.com/?p=202</guid>
		<description><![CDATA[Via http://linux.byexamples.com/archives/144/redirect-output-to-multiple-processes/
You already know that if you want to pass the output of a program to the input of another program, you can use the pipe &#124; character.
You now that if you want to write the ouput of a program to the disk and at the same time pass it as input to another program, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=202&subd=anothersysadmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Via <a href="http://linux.byexamples.com/archives/144/redirect-output-to-multiple-processes/" target="_blank">http://linux.byexamples.com/archives/144/redirect-output-to-multiple-processes/</a></p>
<p>You already know that if you want to pass the output of a program to the input of another program, you can use the pipe | character.</p>
<p>You now that if you want to write the ouput of a program to the disk and at the same time pass it as input to another program, you can use tee.</p>
<p>But maybe you don&#8217;t know that if you want to pass the ouput of a program to multiple programs as input, you can use tee again with a little of subshelling.</p>
<pre># source_program | tee (&gt; program1) (&gt; program2) (&gt; programN)| programN+1</pre>
Posted in Linux, Oneliner, Shell scripts, Tips, Unix  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anothersysadmin.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anothersysadmin.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anothersysadmin.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anothersysadmin.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anothersysadmin.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anothersysadmin.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anothersysadmin.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anothersysadmin.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anothersysadmin.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anothersysadmin.wordpress.com/202/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=202&subd=anothersysadmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anothersysadmin.wordpress.com/2009/06/08/using-tee-to-redirect-output-to-multiple-programs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f83c5c93a8db32d512fd36bc4c99768?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">Vide</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO: install Transifex with Mysql on Debian Lenny</title>
		<link>http://anothersysadmin.wordpress.com/2009/06/04/howto-install-transifex-with-mysql-on-debian-lenny/</link>
		<comments>http://anothersysadmin.wordpress.com/2009/06/04/howto-install-transifex-with-mysql-on-debian-lenny/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 16:04:41 +0000</pubDate>
		<dc:creator>Vide</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://anothersysadmin.wordpress.com/?p=204</guid>
		<description><![CDATA[Transifex is a not-so-well-known opensource localization platform, written in Python and running on Django (a Python based application server, if you don&#8217;t know it). So, being not so well known, there isn&#8217;t a lot of documentation about it, and how to install it under Debian 5 Lenny it&#8217;s almost undocumented. So, here we go.
First of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=204&subd=anothersysadmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a title="transifex.org" href="http://www.transifex.org/" target="_blank">Transifex</a> is a not-so-well-known opensource localization platform, written in Python and running on Django (a Python based application server, if you don&#8217;t know it). So, being not so well known, there isn&#8217;t a lot of <a title="Transifex quick install guide" href="http://docs.transifex.org/intro/install.html" target="_blank">documentation</a> about it, and how to install it under Debian 5 Lenny it&#8217;s almost undocumented. So, here we go.</p>
<p>First of all, you have to install some packages. Luckily Lenny has got lot of them, although not all the needed</p>
<pre># aptitude install django python-urlgrabber python-setuptools python-pygments python-openid python-markdown python-httplib2
# aptitude install subversion
# aptitude install python-mysqldb
# aptitude install build-essential python-dev</pre>
<p>These should be all the packages needed by Transifex which are available as deb packages. Now let&#8217;s install the remaining ones through easy_install</p>
<pre># easy_install django-authopenid django-pagination
# easy_install -f http://transifex.org/files/eggs/ contact_form tagging
# easy_install django-notification
# easy_install mercurial</pre>
<p>Now the last package, django_evolution which is, AFAIK, only available as an SVN checkout from <a title="Django Evolution" href="http://code.google.com/p/django-evolution/" target="_blank">Google Code</a></p>
<pre># svn checkout http://django-evolution.googlecode.com/svn/trunk /tmp/django-evol
# mv /tmp/django-evol/django_evolution /usr/lib/python2.5/site-packages/</pre>
<p>Now we can download the Transifex tarball</p>
<pre># cd /tmp &amp;&amp; wget http://transifex.org/files/transifex-0.6.tar.gz
# tar xzvf transifex-0.6.tar.gz
# cp -a transifex-0.6/transifex /var/www</pre>
<p>Now we have to edit some configuration files located in /var/www/transifex/settings with particular attention to the database backend configuration stored in 20-engines.conf. Take this as example</p>
<pre>DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'transifex'
DATABASE_USER = 'transifex'
DATABASE_PASSWORD = 'secret_password'
DATABASE_HOST = 'ADDRESS-OF-YOUR-DB'             # Set to empty string for local socket
DATABASE_PORT = '3306'             # Set to empty string for default</pre>
<p>obviously you must create a database (called &#8216;transifex&#8217; in this example) in your database server and give full permissions to a dedicated user (called &#8216;transifex&#8217; with &#8217;secret_password&#8217; as password in this example). You can do it with these commands in your mysql console:</p>
<pre>CREATE DATABASE transifex;
GRANT ALL ON transifex.* to 'transifex'@'%' IDENTIFIED BY 'secret_password';</pre>
<p>Now we can run the configuration scripts, located in the transifex&#8217;s base dir</p>
<pre># cd /var/www/transifex
# ./manage.py syncdb
# ./manage.py txcreatedirs</pre>
<p>Now we can execute a server instance, listening on address $IPADDRESS and port 8088,  and then we can access it fro http://$IPADDRESS:8088 in our web browser. Remember to use nohup if yoiu want to detach it from the console</p>
<pre># ./manage.py $IPADDRESS:8088</pre>
Posted in Debian, Howtos, Linux  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anothersysadmin.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anothersysadmin.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anothersysadmin.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anothersysadmin.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anothersysadmin.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anothersysadmin.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anothersysadmin.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anothersysadmin.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anothersysadmin.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anothersysadmin.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=204&subd=anothersysadmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anothersysadmin.wordpress.com/2009/06/04/howto-install-transifex-with-mysql-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f83c5c93a8db32d512fd36bc4c99768?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">Vide</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu 9.04 and UXA acceleration in X.Org</title>
		<link>http://anothersysadmin.wordpress.com/2009/05/05/ubuntu-904-and-uxa-acceleration-in-xorg/</link>
		<comments>http://anothersysadmin.wordpress.com/2009/05/05/ubuntu-904-and-uxa-acceleration-in-xorg/#comments</comments>
		<pubDate>Tue, 05 May 2009 07:54:12 +0000</pubDate>
		<dc:creator>Vide</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[X.Org]]></category>

		<guid isPermaLink="false">http://anothersysadmin.wordpress.com/?p=195</guid>
		<description><![CDATA[With the recent release of Ubuntu 9.04 and the brand new X.org stack, finally I have got quick and usable windows effects in my KDE 4.2 install (using Kwin, not Compiz).
My workstation is a Dell Optiplex 745 with an Intel grapphic chipset
$ lspci&#124;grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 82Q963/Q965 Integrated Graphics Controller (rev [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=195&subd=anothersysadmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>With the recent release of Ubuntu 9.04 and the brand new X.org stack, finally I have got quick and usable windows effects in my KDE 4.2 install (using Kwin, not Compiz).<br />
My workstation is a Dell Optiplex 745 with an Intel grapphic chipset</p>
<p><code>$ lspci|grep -i vga<br />
00:02.0 VGA compatible controller: <strong>Intel Corporation 82Q963/Q965 Integrated Graphics</strong> Controller (rev 02)</code></p>
<p>with the default install I had serious problems with X, and with serious I mean textures corruptions, artifacts with KDE/Qt4 applications and all sort of graphic glitches.. really a PITA. Then the great idea: Ubuntu 9.04 now ships with a DRI2 enabled kernel, GEM for graphic memory management and this new Intel-sponsored acceleration framework called UXA, which is supposed to improve XAA and EXA. So, if everything is already screwed, why not give it a try?</p>
<p>So I fired up my vim editor and changed my <code>/etc/X11/xorg.conf</code> to look <strong>exactly</strong> like this, no more no less:</p>
<pre>Section "Monitor"
 Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        Device          "Configured Video Device"
EndSection</pre>
<pre>Section "Device"
        Identifier      "Configured Video Device"
        Option          "AccelMethod" "UXA"
EndSection</pre>
<pre>Section "ServerFlags"
        Option  "DontZap"       "False"
EndSection</pre>
<p>restarted X and the magic was done. I activated the composited effects in KWin and everything worked like a charm, really flying as it never did and as it is supposed to do (Vista on the same hardware works the same).<br />
So, if you have a similar hardware, I encourage you to try the same. If anything goes wrong, removing this line<br />
<code><br />
Option          "AccelMethod" "UXA"<br />
</code><br />
will fall back the configuration to its default state.</p>
<p>HTH</p>
Posted in Desktop, Tips, Ubuntu, X.Org  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anothersysadmin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anothersysadmin.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anothersysadmin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anothersysadmin.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anothersysadmin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anothersysadmin.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anothersysadmin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anothersysadmin.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anothersysadmin.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anothersysadmin.wordpress.com/195/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=195&subd=anothersysadmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anothersysadmin.wordpress.com/2009/05/05/ubuntu-904-and-uxa-acceleration-in-xorg/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f83c5c93a8db32d512fd36bc4c99768?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">Vide</media:title>
		</media:content>
	</item>
		<item>
		<title>Disable MOTD at login with .hushlogin</title>
		<link>http://anothersysadmin.wordpress.com/2009/03/10/disable-motd-at-login-with-hushlogin/</link>
		<comments>http://anothersysadmin.wordpress.com/2009/03/10/disable-motd-at-login-with-hushlogin/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 11:39:42 +0000</pubDate>
		<dc:creator>Vide</dc:creator>
				<category><![CDATA[Oneliner]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://anothersysadmin.wordpress.com/?p=192</guid>
		<description><![CDATA[If you want to disable the nice Message of the Day (MotD) your sysadmin gently shows you evry time you login in your remote shell, then all you have to do is just create a zero-lenght (as in empty) file in your $HOME called .hushlogin

&#62; ~/.hushlogin

(you can use touch as well, or any other mean)
That&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=192&subd=anothersysadmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you want to disable the nice Message of the Day (MotD) your sysadmin gently shows you evry time you login in your remote shell, then all you have to do is just create a zero-lenght (as in empty) file in your $HOME called .hushlogin</p>
<blockquote><p>
&gt; ~/.hushlogin
</p></blockquote>
<p>(you can use touch as well, or any other mean)<br />
That&#8217;s all</p>
Posted in Oneliner, Tips, Unix  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anothersysadmin.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anothersysadmin.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anothersysadmin.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anothersysadmin.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anothersysadmin.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anothersysadmin.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anothersysadmin.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anothersysadmin.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anothersysadmin.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anothersysadmin.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=192&subd=anothersysadmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anothersysadmin.wordpress.com/2009/03/10/disable-motd-at-login-with-hushlogin/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f83c5c93a8db32d512fd36bc4c99768?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">Vide</media:title>
		</media:content>
	</item>
		<item>
		<title>Mysql and integers: INT, TINYINT and all that jazz</title>
		<link>http://anothersysadmin.wordpress.com/2009/02/11/mysql-and-integers-int-tinyint-and-all-that-jazz/</link>
		<comments>http://anothersysadmin.wordpress.com/2009/02/11/mysql-and-integers-int-tinyint-and-all-that-jazz/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 15:31:52 +0000</pubDate>
		<dc:creator>Vide</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://anothersysadmin.wordpress.com/?p=184</guid>
		<description><![CDATA[Today I stumbled on a discussion here where I work about what&#8217;s the best INT field in Mysql to represent boolean values and about what&#8217;s the real meaning of the *INT(number) definition.
So, I ended looking in the online Mysql manual for answer but also in the &#8220;High Performance MySQL 2nd edition&#8221; written by worldwide-fame MySQL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=184&subd=anothersysadmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I stumbled on a discussion here where I work about what&#8217;s the best INT field in Mysql to represent boolean values and about what&#8217;s the real meaning of the *INT(number) definition.</p>
<p>So, I ended looking in the online Mysql manual for answer but also in the &#8220;<a href="http://www.amazon.com/High-Performance-MySQL-Optimization-Replication/dp/0596101716/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1234362066&amp;sr=8-1">High Performance MySQL 2nd edition</a>&#8221; written by worldwide-fame MySQL hackers (and published by O&#8217;Really).</p>
<p>To resume, as <a href="http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html">Mysql Manual says</a>: BOOLEAN is an alias for TINYINT(1), so you can use both, although BIT could be a better suited solution.</p>
<p>But what about the parenthesis thingie? Here there are two different opinions on the matter. According to High Performance Mysql&#8217;s authors (page 82, emphasis&#8217; mine):</p>
<blockquote><p>
MySQL lets you specify a &#8220;width&#8221; for integer types, such as INT(11). <strong>This is meaningless for most applications</strong>: it does not restrict the legal range of values, but simply specifies the number of characters MySQL&#8217;s interactive tools (such as commandline client) will reserve for display purposes. <strong>For storage and computational purposes, INT(1) is identical to INT(20)</strong></p></blockquote>
<p>but now let&#8217;s look at<a href="http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html"> this other page in Mysql Manual</a> (emphasis mine):</p>
<blockquote><p>
When used in conjunction with the optional extension attribute ZEROFILL, the default padding of spaces is replaced with zeros. For example, for a column declared as INT(5) ZEROFILL, a value of 4 is retrieved as 00004. <strong>Note that if you store larger values than the display width in an integer column, you may experience problems when MySQL generates temporary tables for some complicated joins, because in these cases MySQL assumes that the data fits into the original column width</strong>. </p></blockquote>
<p>Now&#8230;who&#8217;s right? I use to trust in the <a href="http://www.mysqlperformanceblog.com/">Percona</a> &amp; OpenQuery crew but anyway the official Mysql Manual seems pretty clear about some cases in which the INT(x) value is important.<br />
Any idea?</p>
Posted in Linux, Mysql, Performance, Tips, Unix  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anothersysadmin.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anothersysadmin.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anothersysadmin.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anothersysadmin.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anothersysadmin.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anothersysadmin.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anothersysadmin.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anothersysadmin.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anothersysadmin.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anothersysadmin.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=184&subd=anothersysadmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anothersysadmin.wordpress.com/2009/02/11/mysql-and-integers-int-tinyint-and-all-that-jazz/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f83c5c93a8db32d512fd36bc4c99768?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">Vide</media:title>
		</media:content>
	</item>
		<item>
		<title>Postfix as relay to a SMTP requiring authentication</title>
		<link>http://anothersysadmin.wordpress.com/2009/02/06/postfix-as-relay-to-a-smtp-requiring-authentication/</link>
		<comments>http://anothersysadmin.wordpress.com/2009/02/06/postfix-as-relay-to-a-smtp-requiring-authentication/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 10:01:34 +0000</pubDate>
		<dc:creator>Vide</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Postmaster]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[smtp auth]]></category>

		<guid isPermaLink="false">http://anothersysadmin.wordpress.com/?p=181</guid>
		<description><![CDATA[Sometimes you may in need to use an external SMTP provider to send your emails, and usually ISPs give instruction on how to configure mail clients such as Outlook or Thunderbird. But what if you are already using an internal SMTP server such as Postfix?
These guidelines are for Debian (but may be helpful with other [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=181&subd=anothersysadmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sometimes you may in need to use an external SMTP provider to send your emails, and usually ISPs give instruction on how to configure mail clients such as Outlook or Thunderbird. But what if you are already using an internal SMTP server such as Postfix?</p>
<p>These guidelines are for Debian (but may be helpful with other systems as well) and are related to Postfix. The SMTP provider in the example is <a href="http://www.authsmtp.com">AuthSMTP</a> which is a well known provider for SMTP relaying.</p>
<p>Given you already have a working Postfix environment, first of all edit your <code>main.cf</code> and add these lines:<br />
<code><br />
relayhost = [mail.authsmtp.com]<br />
smtp_sasl_auth_enable=yes<br />
smtp_sasl_password_maps=hash:/etc/postfix/sasl-passwords<br />
smtp_sasl_mechanism_filter = digest-md5<br />
smtp_sasl_security_options=<br />
</code></p>
<p>then, create with $EDITOR a file called <code>/etc/postfix/sasl-passwords</code> and fill it with something like this:<br />
<code><br />
 [mail.authsmtp.com] yourusername:yourpassword<br />
</code><br />
then, compile the map file<br />
<code><br />
# postmap hash:/etc/postfix/sasl-passwords<br />
</code><br />
now we are almost done, just restart postfix and it should work.</p>
<p>Now, probably it won&#8217;t really work and you&#8217;ll start to see messages like these in your postfix log:<br />
<code><br />
warning: SASL authentication failure: No worthy mechs found<br />
SASL authentication failed; cannot authenticate to server mail.authsmtp.com<br />
</code><br />
that&#8217;s because you are missing some SASL packages from Debian. Issue<br />
<code><br />
# aptitude install libsasl2-modules<br />
</code><br />
and it should install all the missing packages and make the thing work :)</p>
Posted in Debian, Linux, Postfix, Postmaster, Tips  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anothersysadmin.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anothersysadmin.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anothersysadmin.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anothersysadmin.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anothersysadmin.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anothersysadmin.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anothersysadmin.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anothersysadmin.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anothersysadmin.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anothersysadmin.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=181&subd=anothersysadmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anothersysadmin.wordpress.com/2009/02/06/postfix-as-relay-to-a-smtp-requiring-authentication/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f83c5c93a8db32d512fd36bc4c99768?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">Vide</media:title>
		</media:content>
	</item>
		<item>
		<title>TIP: Installing untrusted packages without confirmation on Debian</title>
		<link>http://anothersysadmin.wordpress.com/2008/12/30/tip-installing-untrusted-packages-without-confirmation-on-debian/</link>
		<comments>http://anothersysadmin.wordpress.com/2008/12/30/tip-installing-untrusted-packages-without-confirmation-on-debian/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 12:44:58 +0000</pubDate>
		<dc:creator>rga</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell scripts]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apt]]></category>
		<category><![CDATA[Aptitude]]></category>
		<category><![CDATA[Packages]]></category>
		<category><![CDATA[Repo]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[Untrusted]]></category>

		<guid isPermaLink="false">http://anothersysadmin.wordpress.com/?p=165</guid>
		<description><![CDATA[Hello,
Maybe you are interested on installing untrusted packages on your Debian box, but by default you are prompted with this prompt:
Do you want to continue? [Y/n/?] y
WARNING: untrusted versions of the following packages will be installed!
Untrusted packages could compromise your system’s security.
You should only proceed with the installation if you are certain that
this is what [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=165&subd=anothersysadmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hello,</p>
<p>Maybe you are interested on installing untrusted packages on your Debian box, but by default you are prompted with this prompt:</p>
<p>Do you want to continue? [Y/n/?] y<br />
WARNING: untrusted versions of the following packages will be installed!</p>
<p>Untrusted packages could compromise your system’s security.<br />
You should only proceed with the installation if you are certain that<br />
this is what you want to do.</p>
<p>untrusted_package</p>
<p>Do you want to ignore this warning and proceed anyway?<br />
To continue, enter “Yes”; to abort, enter “No”:</p>
<p>This is fine, since it warns you about it, but it breaks non-interactive scripts, because needs user confirmation.</p>
<p>What then? the solution is easy, you only need to tell to aptitude that you want to use those packages without user confirmation.</p>
<p>From aptitude manual:<br />
Option: <strong>Aptitude::CmdLine::Ignore-Trust-Violations</strong><br />
Default: false<br />
Description: In command-line mode, causes aptitude to ignore the installation of untrusted packages. This is a synonym for <strong>Apt::Get::AllowUnauthenticated</strong>.</p>
<p>Just go!<br />
# aptitude <strong>-o Aptitude::Cmdline::ignore-trust-violations=true</strong> -y install your_untrusted_package</p>
<p>WARNING: untrusted versions of the following packages will be installed!</p>
<p>Untrusted packages could compromise your system’s security.<br />
You should only proceed with the installation if you are certain that<br />
this is what you want to do.</p>
<p>untrusted_package</p>
<p>*** WARNING ***   Ignoring these trust violations because<br />
aptitude::CmdLine::Ignore-Trust-Violations is ‘true’!</p>
<p>Writing extended state information… Done</p>
<p>It does not use an interactive prompt and of course your script will continue  :)</p>
<p>See you!</p>
Posted in Debian, Linux, Shell scripts, Tips  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anothersysadmin.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anothersysadmin.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anothersysadmin.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anothersysadmin.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anothersysadmin.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anothersysadmin.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anothersysadmin.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anothersysadmin.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anothersysadmin.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anothersysadmin.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=165&subd=anothersysadmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anothersysadmin.wordpress.com/2008/12/30/tip-installing-untrusted-packages-without-confirmation-on-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bab792246555d1b8ad1f878dcb2c5f01?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">rga</media:title>
		</media:content>
	</item>
		<item>
		<title>Self-note: Keep It Simple, Stupid</title>
		<link>http://anothersysadmin.wordpress.com/2008/12/23/self-note-keep-it-simple-stupid/</link>
		<comments>http://anothersysadmin.wordpress.com/2008/12/23/self-note-keep-it-simple-stupid/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 12:13:50 +0000</pubDate>
		<dc:creator>Vide</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oneliner]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://anothersysadmin.wordpress.com/?p=162</guid>
		<description><![CDATA[When dealing with bash (or other shells) scripts, instead of starting check outputs, write to temp file, trying to pass variables out of their scope from oine subshell to another, just remember that there is that thing called return status that can do the trick in a simpler, quicker and easier to read way.
For example, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=162&subd=anothersysadmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When dealing with bash (or other shells) scripts, instead of starting check outputs, write to temp file, trying to pass variables out of their scope from oine subshell to another, just remember that there is that thing called <strong><em>return status</em></strong> that can do the trick in a simpler, quicker and easier to read way.</p>
<p>For example, if you need to wait for a MySQL server to do not have pending queries before starting to do something, just do</p>
<blockquote><p>
<code><br />
while ( mysqladmin|grep -vi "show processlist"|grep "Query" &gt; /dev/null )<br />
do<br />
 sleep 0.1 # or whatever you want, prevent system overload<br />
 # ok, it's executing something, let's do thing A<br />
done<br />
# ok, it's done, let's do thing B<br />
</code>
</p></blockquote>
<p>It&#8217;s (almost) one line long, it&#8217;s simple, effective and it just works.</p>
Posted in Linux, Oneliner, Tips, Unix  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anothersysadmin.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anothersysadmin.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anothersysadmin.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anothersysadmin.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anothersysadmin.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anothersysadmin.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anothersysadmin.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anothersysadmin.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anothersysadmin.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anothersysadmin.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=162&subd=anothersysadmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anothersysadmin.wordpress.com/2008/12/23/self-note-keep-it-simple-stupid/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f83c5c93a8db32d512fd36bc4c99768?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">Vide</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO: Debian and SCSI multipathing with multipath-tools</title>
		<link>http://anothersysadmin.wordpress.com/2008/11/17/howto-debian-and-scsi-multipathing-with-multipath-tools/</link>
		<comments>http://anothersysadmin.wordpress.com/2008/11/17/howto-debian-and-scsi-multipathing-with-multipath-tools/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 10:23:41 +0000</pubDate>
		<dc:creator>Vide</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[High availability]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://anothersysadmin.wordpress.com/?p=127</guid>
		<description><![CDATA[After getting iSCSI working on Debian Etch the next thing to do is to set up multipath to get redundancy in case one path from the SCSI client to the SCSI target fails.
First, let&#8217;s digg a bit more in depth about what a path is, what can go wrong and what we can do to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=127&subd=anothersysadmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After <a href="http://anothersysadmin.wordpress.com/2008/11/11/howto-the-definitive-guide-to-debian-etch-open-iscsi-take-2/">getting iSCSI working on Debian Etch</a> the next thing to do is to set up multipath to get redundancy in case one path from the SCSI client to the SCSI target fails.</p>
<p>First, let&#8217;s digg a bit more in depth about what <em>a path</em> is, what can go wrong and what we can do to prevent it. Usually in a simple iSCSI environment there are two network interfaces dedicated to the remote storage, each one connected to a distinct ethernet switch and each switch connected to the a distinct ethernet interface in the host SAN. Then here you have two separated controller cards (let&#8217;s call them A and B) which connect to the same logical volume (a RAID array.. so here redundancy is already covered). I repeat, this is the simplest redundant scenario, in which you can have redundancy, a good fault-tolerance and can parallelize via round-robin the requests from the initiator to the host target.<br />
<span id="more-127"></span><br />
So, let&#8217;s imagine we have configured both interfaces (and all the needed connections) in our server (the initiator) and we send an iSCSI discover request on both interfaces:<br />
<code><br />
:~# iscsiadm -m discovery -t sendtargets -p 172.16.1.10<br />
172.16.1.10:3260,1 iqn.2002-10.com.infortrend:raid.sn7612996.101<br />
:~# iscsiadm -m discovery -t sendtargets -p 172.16.11.10<br />
172.16.11.10:3260,1 iqn.2002-10.com.infortrend:raid.sn7612961.112<br />
</code></p>
<p>as said, both interfaces are connected to the exact same data volume(s), because we want some fault tolerance in case one path fails. But wait&#8230; what&#8217;s happening in kernel land?<br />
<code><br />
:~# dmesg|grep "SCSI device"| grep -v sda # sda is the local disk<br />
SCSI device sdb: 1638400000 512-byte hdwr sectors (838861 MB)<br />
SCSI device sdb: drive cache: write back<br />
SCSI device sdb: 1638400000 512-byte hdwr sectors (838861 MB)<br />
SCSI device sdb: drive cache: write back<br />
SCSI device sdc: 11717947392 512-byte hdwr sectors (5999589 MB)<br />
SCSI device sdc: drive cache: write back<br />
SCSI device sdc: 11717947392 512-byte hdwr sectors (5999589 MB)<br />
SCSI device sdc: drive cache: write back<br />
SCSI device sdd: 1638400000 512-byte hdwr sectors (838861 MB)<br />
SCSI device sdd: drive cache: write back<br />
SCSI device sdd: 1638400000 512-byte hdwr sectors (838861 MB)<br />
SCSI device sdd: drive cache: write back<br />
SCSI device sde: 11717947392 512-byte hdwr sectors (5999589 MB)<br />
SCSI device sde: drive cache: write back<br />
SCSI device sde: 11717947392 512-byte hdwr sectors (5999589 MB)<br />
SCSI device sde: drive cache: write back<br />
</code></p>
<p>We have two volumes exported from the SAN but our server is detecting four volumes, two pairs of identical volumes to be correct. This is quite normal&#8230; we are exporting the same volumes on every path so our initiator detects four distinct volumes. One solution could be to mount <em>sdb</em> and <em>sdc</em> and then, if something goes wrong, manually mount in the same point <em>sdd</em> and <em>sde</em>. But obviously this is something we should avoid because it would create unwanted downtime. So, you need multipath.</p>
<p>In Debian, you can install it with a simple:<br />
<code>aptitude install multipath-tools</code></p>
<p>and have a very very basic configuration editing /etc/multipath.conf with something like this:</p>
<blockquote><p><code><br />
blacklist {<br />
        devnode "sda"<br />
}</p>
<p>defaults {<br />
        user_friendly_names     yes<br />
}<br />
</code></p></blockquote>
<p>Restart the multipath-tools service and then you&#8217;ll get your new devices as <code>/dev/mapper/mpath*</code>. These are absolutely ordinary block devices, so you can partition, format and mount them as they were a normal local disk.<br />
When a path fails, multipathd will automatically exclude it from the dispatching algorithm and you won&#8217;t notice the failure happened.</p>
<p>As a final side note, remember that you can use multipath with any number of block devices and they haven&#8217;t to be iSCSI devices&#8230; it could be a failovered DAS as well, for example (Dell M3000 comes to my mind).</p>
Posted in Debian, High availability, Howtos, Linux, Storage  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anothersysadmin.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anothersysadmin.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anothersysadmin.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anothersysadmin.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anothersysadmin.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anothersysadmin.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anothersysadmin.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anothersysadmin.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anothersysadmin.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anothersysadmin.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=127&subd=anothersysadmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anothersysadmin.wordpress.com/2008/11/17/howto-debian-and-scsi-multipathing-with-multipath-tools/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f83c5c93a8db32d512fd36bc4c99768?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">Vide</media:title>
		</media:content>
	</item>
		<item>
		<title>mii-tool is deprecated, use ethtool</title>
		<link>http://anothersysadmin.wordpress.com/2008/11/13/mii-tools-is-deprecated-use-ethtool/</link>
		<comments>http://anothersysadmin.wordpress.com/2008/11/13/mii-tools-is-deprecated-use-ethtool/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 10:06:24 +0000</pubDate>
		<dc:creator>Vide</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://anothersysadmin.wordpress.com/?p=155</guid>
		<description><![CDATA[Title says it all. If you want to check (or set) your ethernet NIC configuration or status in Linux, people used to use mii-tools. But there&#8217;s a lot more powerful and modern tool that obsoletes it: ethtool
You can install it with your favourite package manager, if it&#8217;s not already present in your system.
In Debian/Ubuntu, you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=155&subd=anothersysadmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Title says it all. If you want to check (or <strong>set</strong>) your ethernet NIC configuration or status in Linux, people used to use <em>mii-tools</em>. But there&#8217;s a lot more powerful and modern tool that obsoletes it: <em>ethtool</em><br />
You can install it with your favourite package manager, if it&#8217;s not already present in your system.<br />
In Debian/Ubuntu, you can issue<br />
<code># aptitude install ethtool</code></p>
<p>Here it is an example:</p>
<blockquote><p><code><br />
# ethtool eth0<br />
Settings for eth0:<br />
        Supported ports: [ TP ]<br />
        Supported link modes:   10baseT/Half 10baseT/Full<br />
                                100baseT/Half 100baseT/Full<br />
                                1000baseT/Half 1000baseT/Full<br />
        Supports auto-negotiation: Yes<br />
        Advertised link modes:  10baseT/Half 10baseT/Full<br />
                                100baseT/Half 100baseT/Full<br />
                                1000baseT/Half 1000baseT/Full<br />
        Advertised auto-negotiation: Yes<br />
        Speed: 100Mb/s<br />
        Duplex: Full<br />
        Port: Twisted Pair<br />
        PHYAD: 1<br />
        Transceiver: internal<br />
        Auto-negotiation: on<br />
        Supports Wake-on: g<br />
        Wake-on: d<br />
        Current message level: 0x000000ff (255)<br />
        Link detected: yes<br />
</code></p></blockquote>
Posted in Debian, Gentoo, Linux, Networking, Software, Tips, Ubuntu  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anothersysadmin.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anothersysadmin.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anothersysadmin.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anothersysadmin.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anothersysadmin.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anothersysadmin.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anothersysadmin.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anothersysadmin.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anothersysadmin.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anothersysadmin.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anothersysadmin.wordpress.com&blog=1310142&post=155&subd=anothersysadmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anothersysadmin.wordpress.com/2008/11/13/mii-tools-is-deprecated-use-ethtool/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f83c5c93a8db32d512fd36bc4c99768?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">Vide</media:title>
		</media:content>
	</item>
	</channel>
</rss>