<?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>Linux T&#38;T</title>
	<atom:link href="http://linux.wxs.ro/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux.wxs.ro</link>
	<description>WladyX’s collection of linux tips&#38;tricks</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:42:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>genkernel</title>
		<link>http://linux.wxs.ro/2012/01/27/genkernel/</link>
		<comments>http://linux.wxs.ro/2012/01/27/genkernel/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 16:42:05 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Gentoo]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1849</guid>
		<description><![CDATA[genkernel --no-clean --install --symlink --disklabel --menuconfig all disable device drv &#8211; networking -atm]]></description>
			<content:encoded><![CDATA[<p><code>genkernel --no-clean --install --symlink --disklabel --menuconfig all</code></p>
<p>disable device drv &#8211; networking -atm</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/27/genkernel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grow /tmp on AIX</title>
		<link>http://linux.wxs.ro/2012/01/26/grow-tmp-on-aix/</link>
		<comments>http://linux.wxs.ro/2012/01/26/grow-tmp-on-aix/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 16:23:19 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[AIX]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1845</guid>
		<description><![CDATA[Check for space: lsvg rootvg Grow with 100MB: chfs -a size=+100M /tmp]]></description>
			<content:encoded><![CDATA[<p>Check for space: <code>lsvg rootvg</code><br />
Grow with 100MB: <code>chfs -a size=+100M /tmp</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/26/grow-tmp-on-aix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find and remove files older than 30 days</title>
		<link>http://linux.wxs.ro/2012/01/26/find-and-remove-files-older-than-30-days/</link>
		<comments>http://linux.wxs.ro/2012/01/26/find-and-remove-files-older-than-30-days/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 16:19:50 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1843</guid>
		<description><![CDATA[find /folder -type f -mtime +30 -exec rm -rf {} \;]]></description>
			<content:encoded><![CDATA[<p><code>find /folder -type f -mtime +30 -exec rm -rf {} \;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/26/find-and-remove-files-older-than-30-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subfolder Limitation</title>
		<link>http://linux.wxs.ro/2012/01/26/subfolder-limitation/</link>
		<comments>http://linux.wxs.ro/2012/01/26/subfolder-limitation/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 15:58:47 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[AIX]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1841</guid>
		<description><![CDATA[Some time a go i see the same limitations in AIX JFS and JFS2 . As i know this is functional limitation and you can&#8217;t have more that 32765 subdirectories on one level This is hardcoded limitation of JFS/JFS2 and can&#8217;t be avoided source]]></description>
			<content:encoded><![CDATA[<div id="reply_3">Some time a go i see the same limitations in AIX JFS and JFS2 . As i<br />
know this is functional limitation and you can&#8217;t have more that 32765<br />
subdirectories on one level <img src='http://linux.wxs.ro/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </div>
<div></div>
<div>This is hardcoded limitation of JFS/JFS2 and can&#8217;t be avoided</div>
<div></div>
<div><a href="http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/subfolder-limitation-1517783">source</a></div>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/26/subfolder-limitation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash eternal history</title>
		<link>http://linux.wxs.ro/2012/01/24/bash-eternal-history/</link>
		<comments>http://linux.wxs.ro/2012/01/24/bash-eternal-history/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 16:32:28 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1833</guid>
		<description><![CDATA[export HISTTIMEFORMAT="%h/%d - %H:%M:%S " PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo $$ $USER \ "$(history 1)" &#62;&#62; ~/.bash_eternal_history' source]]></description>
			<content:encoded><![CDATA[<p><code>export HISTTIMEFORMAT="%h/%d - %H:%M:%S "<br />
PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo $$ $USER \<br />
"$(history 1)" &gt;&gt; ~/.bash_eternal_history'</code></p>
<p><a href="http://www.debian-administration.org/articles/543">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/24/bash-eternal-history/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reducing ibdata1 in mysql</title>
		<link>http://linux.wxs.ro/2012/01/23/reducing-ibdata1-in-mysql/</link>
		<comments>http://linux.wxs.ro/2012/01/23/reducing-ibdata1-in-mysql/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 13:00:00 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1828</guid>
		<description><![CDATA[/etc/mysql/my.cnf: innodb_file_per_table Dump all databases by calling: /usr/bin/mysqldump --extended-insert --all-databases --add-drop-database --disable-keys --flush-privileges --quick --routines --triggers &#62; all-databases.sql Stop the MySQL server; Rename or remove (in case you’ve already backed it up) the MySQL data directory and create an empty one with the same name and permissions; Make the appropriate changes in my.cnf; Re-initialize the [...]]]></description>
			<content:encoded><![CDATA[<p>/etc/mysql/my.cnf:<br />
innodb_file_per_table</p>
<p>Dump all databases by calling:</p>
<p><code>/usr/bin/mysqldump --extended-insert --all-databases --add-drop-database --disable-keys --flush-privileges --quick --routines --triggers &gt; all-databases.sql</code></p>
<p>Stop the MySQL server;<br />
Rename or remove (in case you’ve already backed it up) the MySQL data directory and create an empty one with the same name and permissions;<br />
Make the appropriate changes in my.cnf;<br />
Re-initialize the database with the following command (replace the ‘mysqld‘ with the login of the user your MySQL server runs as) (10x, Påven):</p>
<p><code>sudo -u mysqld mysql_install_db</code></p>
<p>Start the MySQL server;<br />
Get into the ‘mysql‘ console and type:</p>
<p>SET FOREIGN_KEY_CHECKS=0;<br />
SOURCE all-databases.sql;<br />
SET FOREIGN_KEY_CHECKS=1;</p>
<p>Restart the MySQL server. (10x, czaby)</p>
<p>At this point everything should be fine and you can test it by starting again the services that use MySQL.</p>
<p><a href="http://blogs.thescallop.com/zhouxiuhu/?p=209">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/23/reducing-ibdata1-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQUID log analizer</title>
		<link>http://linux.wxs.ro/2012/01/20/squid-log-analizer/</link>
		<comments>http://linux.wxs.ro/2012/01/20/squid-log-analizer/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 16:11:42 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Cool Apps]]></category>
		<category><![CDATA[Squid]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1818</guid>
		<description><![CDATA[lightsquid mysar sarg SquidAnalyzer]]></description>
			<content:encoded><![CDATA[<p><a href="http://lightsquid.sourceforge.net/">lightsquid</a><br />
<a href="http://sourceforge.net/projects/mysar/">mysar<br />
</a><a href="http://sarg.sourceforge.net/">sarg</a><a href="http://sourceforge.net/projects/mysar/"><br />
</a><a href="http://squidanalyzer.darold.net/index.html">SquidAnalyzer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/20/squid-log-analizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux audit files to see who made changes to a file</title>
		<link>http://linux.wxs.ro/2012/01/20/linux-audit-files-to-see-who-made-changes-to-a-file/</link>
		<comments>http://linux.wxs.ro/2012/01/20/linux-audit-files-to-see-who-made-changes-to-a-file/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 16:07:53 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Cool Apps]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1815</guid>
		<description><![CDATA[auditd http://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-file.html]]></description>
			<content:encoded><![CDATA[<p>auditd</p>
<p><a href="http://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-file.html">http://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-file.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/20/linux-audit-files-to-see-who-made-changes-to-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TT-RSS Update daemon keeps killing other processes</title>
		<link>http://linux.wxs.ro/2012/01/16/tt-rss-update-daemon-keeps-killing-other-processes/</link>
		<comments>http://linux.wxs.ro/2012/01/16/tt-rss-update-daemon-keeps-killing-other-processes/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 16:47:40 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1812</guid>
		<description><![CDATA[http://tt-rss.org/redmine/issues/417 Workaround: don&#8217;t run the update daemon as root!]]></description>
			<content:encoded><![CDATA[<p><a href="http://tt-rss.org/redmine/issues/417">http://tt-rss.org/redmine/issues/417</a></p>
<p>Workaround:</p>
<p>don&#8217;t run the update daemon as root!</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/16/tt-rss-update-daemon-keeps-killing-other-processes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mail to SMS using procmail</title>
		<link>http://linux.wxs.ro/2012/01/12/mail-to-sms-using-procmail/</link>
		<comments>http://linux.wxs.ro/2012/01/12/mail-to-sms-using-procmail/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 15:36:39 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Cool Apps]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1810</guid>
		<description><![CDATA[Installation Once you have plugged the USB Data cable and the T230 phone, you may have: root@smsserver:~# lsusb Bus 001 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Bus 001 Device 001: ID 0000:0000 root@fr-c400-0257-l:~# ls -la /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 0 2007-03-22 10:17 /dev/ttyUSB0 root@smsserver:~# You can test your configuration [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">Installation</span></strong><br />
Once you have plugged the USB Data cable and the T230 phone, you may have:</p>
<blockquote><p><code>root@smsserver:~# lsusb<br />
Bus 001 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port<br />
Bus 001 Device 001: ID 0000:0000<br />
root@fr-c400-0257-l:~# ls -la /dev/ttyUSB0<br />
crw-rw---- 1 root dialout 188, 0 2007-03-22 10:17 /dev/ttyUSB0<br />
root@smsserver:~#<br />
</code></p></blockquote>
<p>You can test your configuration using minicom</p>
<blockquote><p><code>root@smsserver:~# minicom -s<br />
</code></p></blockquote>
<p><code>-s</code> is for minicom setup on launch. You may configure the serial port to <code>/dev/ttyUSB0</code> and the speed to <code>9600 8N1</code>.</p>
<blockquote><p><code>Welcome to minicom 2.2<br />
OPTIONS: I18n<br />
Compiled on Mar 7 2007, 15:10:03.<br />
Port /dev/ttyUSB0<br />
</code><br />
<code> Press CTRL-A Z for help on special keys</code><br />
<code><br />
AT S7=45 S0=0 L1 V1 X4 &amp;c1 E1 Q0<br />
OK<br />
AT&amp;C1<br />
OK<br />
ATM0<br />
OK<br />
ATDT1234<br />
NO CARRIER<br />
ATM0<br />
OK<br />
AT+CPIN?<br />
+CPIN: READY<br />
</code><code><br />
OK<br />
AT+CMGF=1<br />
OK<br />
AT+CMGS<br />
ERROR<br />
AT+CMGS="06XXXXXXXX"<br />
&gt; Hello World<br />
+CMGS: 0<br />
</code><code><br />
OK<br />
</code></p></blockquote>
<p><strong><span style="text-decoration: underline;">gnokii settings</span></strong><br />
Edit the <code>/etc/gnokiirc</code> file:</p>
<blockquote><p><code>port = /dev/ttyUSB0<br />
[...]<br />
model = AT<br />
# model = 6510<br />
[...]<br />
use_locking = no<br />
#use_locking = yes<br />
[...]<br />
serial_baudrate = 9600<br />
# serial_baudrate = 19200</p>
<p></code></p></blockquote>
<p>The use_locking setting has been modified as it may happen that I send SMS to more than one people at a time. The solution would be to use smsd…</p>
<p><strong><span style="text-decoration: underline;">From Mail to SMS</span></strong></p>
<p>As we are using postfix and procmail, root user may not be used!<br />
Let’s create a <code>itroot</code> user that will be the recipient of email notification to be turned into SMS.<br />
Create a .procmailrc file for this user. A convention will be used for notification emails. The subject will contain <code>[SMS]</code> and only the subject of the email will be transfered as an SMS:</p>
<blockquote><p><code>DEFAULT=/var/spool/mail/itroot<br />
MAILDIR=$HOME/Mail<br />
<code></code><br />
:0<br />
* ^Subject:.*\[SMS\].*<br />
| cat - | awk -F":” ‘$1 == “Subject” { for(i=2; i &lt;=$NF; i++) $(i-1) = $i; print $0 }’ | sudo /usr/bin/gnokii –sendsms 06XXXXXXXX &gt;&gt; /var/log/SMS.log 2&gt;&amp;1<br />
</code></p></blockquote>
<p>As you can see, due to permissions issue, itroot as been allowed to invoke gnokii using sudo without password. This implies the following line in <code>/etc/sudoers</code>:</p>
<blockquote><p><code>itroot ALL = NOPASSWD: /usr/bin/gnokii</code></p></blockquote>
<p>More over, a log file has been created with write permission for itroot user: <code>/var/log/SMS.log"</code>. This log file will allow you to make sure that gnokii is doing its job <img src='http://linux.wxs.ro/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href="http://blog.mc-thias.org/?title=mail_to_sms_using_procmail&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/12/mail-to-sms-using-procmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

