<?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 * Screw &#187; shell</title>
	<atom:link href="http://www.linuxscrew.com/category/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxscrew.com</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 12:57:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=5074</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>youtube-dl: download youtube videos in Ubuntu using command line</title>
		<link>http://www.linuxscrew.com/2010/05/19/youtube-dl-download-youtube-videos-in-ubuntu-using-command-line/</link>
		<comments>http://www.linuxscrew.com/2010/05/19/youtube-dl-download-youtube-videos-in-ubuntu-using-command-line/#comments</comments>
		<pubDate>Wed, 19 May 2010 17:54:01 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=1047</guid>
		<description><![CDATA[If you use Ubuntu (or other Linux distribution) and you wish to download some video from youtube.com into .flv file you can try using youtube-dl command line utility. It just downloads videos without any online applications, converters or etc. Type the following command in terminal to get it installed:
sudo apt-get install youtube-dl
Let&#8217;s imagine you would [...]]]></description>
			<content:encoded><![CDATA[<p>If you use <strong>Ubuntu</strong> (or other <strong>Linux</strong> distribution) and you wish to download some <strong>video</strong> from <a href="http://www.youtube.com"><strong>youtube</strong>.com</a> into <a href="http://en.wikipedia.org/wiki/Flash_Video">.flv</a> file you can try using <a href="http://bitbucket.org/rg3/youtube-dl/wiki/Home"><strong><code>youtube-dl</code></strong></a> command line utility. It just downloads videos without any online applications, converters or etc. Type the following command in terminal to get it installed:</p>
<p><code>sudo apt-get install youtube-dl</code><br />
Let&#8217;s imagine you would like to download the following video: <a href="http://www.youtube.com/watch?v=2leg8mUE9rs">http://www.youtube.com/watch?v=2leg8mUE9rs</a> (this is part of Military Parade at Red Square in Russia at 9th of May 2010). Just run <em>youtube-dl</em> download utility as follows:</p>
<p><code>youtube-dl http://www.youtube.com/watch?v=2leg8mUE9rs</code></p>
<p>and in a few minutes you will get 2leg8mUE9rs.flv file that could be viewed using almost any video player like my favorite one <a href="http://en.wikipedia.org/wiki/VLC_media_player">VLC</a>.</p>
<p style="text-align: center;"><img class="aligncenter" title="youtube-dl" src="/files/youtube-dl.png" alt="youtube-dl" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/05/19/youtube-dl-download-youtube-videos-in-ubuntu-using-command-line/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>16 GB encrypted candy file</title>
		<link>http://www.linuxscrew.com/2010/05/05/16-gb-encrypted-candy/</link>
		<comments>http://www.linuxscrew.com/2010/05/05/16-gb-encrypted-candy/#comments</comments>
		<pubDate>Wed, 05 May 2010 15:01:50 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[backup]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[distros]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=994</guid>
		<description><![CDATA[Update: as far as cryptoloop is vulnerable and is not maintained I don&#8217;t recommend using below approach for creating encrypted for for those of you who require strong security. Use truecrypt to create encrypted filesystem within a file instead.
Today it came to my mind that it is time to make sensitive information stored on my [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>Update</strong></span>: as far as <a href="http://www.spiritus-temporis.com/cryptoloop/">cryptoloop</a> is vulnerable and is not maintained I don&#8217;t recommend using below approach for creating encrypted for for those of you who require strong security. Use <a href="http://www.linuxscrew.com/2010/05/08/create-encrypted-filesystem-within-a-file-truecrypt-way/">truecrypt to create encrypted filesystem within a file</a> instead.</p>
<p><img class="alignright" src="/files/passwords.txt.png" alt="passwords.txt" />Today it came to my mind that it is time to make sensitive information stored on my usb flash drive encrypted but still transportable and easy to use. But I don&#8217;t want to have whole my 32 GB usb drive fully encrypted using <em><a href="http://www.truecrypt.org/">truecrypt</a></em> or something similar. It is just toooo slow. I also don&#8217;t want to use <a href="http://en.wikipedia.org/wiki/GNU_Privacy_Guard">GPG</a> for uncompressing files and directories every time I would like to read them and then create new GPG compressed file every time I save changes. This eats too much of my time and system resources. At the same time it is necessary to be able to use  that usb drive under windows, mac, linux whatever (read/write files) but still have my directory structure with <strong>sensitive files encrypted</strong>. Here is the solution: create encrypted <strong>filesystem within a file</strong> named, say, 16GB.candy.bin that could be stored on regular windows formatted usb flash drive and then mounted under Linux <strong>using the password</strong>.</p>
<p>When it becomes necessary I can mount that 16GB.candy.bin as the regular ext3 filesystem with all those stuff like permissions, ownership etc. that is available on ext3 but not in <a href="http://en.wikipedia.org/wiki/File_Allocation_Table">FAT</a> or <a href="http://en.wikipedia.org/wiki/Ntfs">NTFS</a>. On my windows formatted flash drive candy takes only 16 GB so I can use the rest of space to store not so sensitive information like mp3, movies or photos. Moreover I <strong> </strong> on windows or linux to read it.</p>
<p>Let&#8217;s create that 16GB.candy.bin file with encrypted <strong><a href="http://en.wikipedia.org/wiki/Ext3">ext3</a></strong> filesystem (read below explanations below carefully before just to copy/paste commands into CLI):</p>
<p><code>[root@artemn root]# cd /path/to/candy/</p>
<p>[root@artemn root]# modprobe cryptoloop</p>
<p>[root@artemn root]# modprobe aes</p>
<p>[root@artemn root]# dd if=/dev/urandom of=16GB.candy.bin bs=1048576 count=16000</p>
<p>[root@artemn root]# losetup -e aes /dev/loop0 16GB.candy.bin</p>
<p>[root@artemn root]# mkfs.ext3 /dev/loop0</p>
<p>[root@artemn root]# tune2fs -i 0 -c 0 /dev/loop0</code></p>
<p>Here are some points: using above commands we create encrypted file of 16 GB so if you need to have more or less just change &#8220;count=16000&#8243; in <em>dd</em> line. &#8220;count=16000&#8243; means 16GB so &#8220;count=20&#8243; means 20MB. Path &#8216;/path/to/candy/&#8217; is for example only so you should change it to real directory that is able to host encrypted file (16 GB in above example). Command <em>losetup</em> is present in most Linux distributions (btw I recommend <strong><a href="http://www.ubuntu.com">Ubuntu</a> </strong>especially newly released <a href="http://en.wikipedia.org/wiki/Lucid_Lynx#Ubuntu_10.04_LTS_.28Lucid_Lynx.29">Lucid Lynx</a>) but if it is not use your disro&#8217;s packet manager to install it or compile from sources (for super geeks only, <a href="http://en.wikipedia.org/wiki/Stallman">Mr. Stallman</a> if you read this article &#8212; Hello). Reader, you can replace &#8220;/dev/urandom&#8221; in <em>dd</em> line with &#8220;/dev/zero&#8221; that will make that command to finish faster but will lower security level of resulting file (read about <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard">AES</a> for better understanding). You will need to enter the password when running <em>losetup</em> command so make sure it safe and long enough like &#8216;6U2sAsR37Hn8122dGsaPrew1twt&#8217; but not &#8216;abc123&#8242; or &#8216;iloveyou&#8217;.</p>
<p>Once commands are done you will get 16GB.candy.bin containing encrypted ext3 filesystem. You can store this file where ever you want, say, on a flash drive. If you loose it nobody won&#8217;t be able to open it until he (or she!) <a href="http://aceontech.com/2008/03/29/to-crack-17-character-aes-password-100-years-and-1-billion-dollars/">cracked AES encryption</a> (use long passwords to prevent this). As the next step it is required to mount filesystem and store some files/directories in it:</p>
<p><code>[root@artemn root]# mkdir -p /mnt/candy</p>
<p>[root@artemn root]# cd /path/to/candy/</p>
<p>[root@artemn root]# mount -t ext3 -o loop,encryption=aes 16GB.candy.bin /mnt/candy</p>
<p>[root@artemn root]# cd /mnt/candy</p>
<p>[root@artemn root]# #save files, edit them, view or anything you want</p>
<p>[root@artemn root]# cd /</p>
<p>[root@artemn root]# umount /mnt/candy</code></p>
<p>When you unmount 16GB.candy.bin the changes are already saved there so it&#8217;s not required to compress and encrypt anything unlike with GPG.</p>
<p>P.S. This post is inspired by <a href="http://nst.sourceforge.net/nst/docs/user/ch04s04.html">Loopback tricks</a> article. Thanks to the author. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/05/05/16-gb-encrypted-candy/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Tiny bash scripts: check Internet connection availability</title>
		<link>http://www.linuxscrew.com/2009/04/02/tiny-bash-scripts-check-internet-connection-availability/</link>
		<comments>http://www.linuxscrew.com/2009/04/02/tiny-bash-scripts-check-internet-connection-availability/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 07:54:12 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=722</guid>
		<description><![CDATA[Sometimes it is necessary to check whether server you want to run some big bash script is connected to Internet. Usually it makes sense while running scripts periodically using cron.  Below is the tiny bash script for this purpose:
#!/bin/bash

WGET="/usr/bin/wget"

$WGET -q --tries=10 --timeout=5 http://www.google.com -O /tmp/index.google &#38;&#62; /dev/null
if [ ! -s /tmp/index.google ];then
	echo "no"
else
	echo "yes"
fi
As you [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is necessary to check whether server you want to run some big bash script is connected to Internet. Usually it makes sense while running scripts periodically using cron.  Below is the tiny bash script for this purpose:</p>
<pre>#!/bin/bash

WGET="/usr/bin/wget"

$WGET -q --tries=10 --timeout=5 http://www.google.com -O /tmp/index.google &amp;&gt; /dev/null
if [ ! -s /tmp/index.google ];then
	echo "no"
else
	echo "yes"
fi</pre>
<p>As you see it tries to download google&#8217;s index page, if it&#8217;s not empty script returns &#8220;yes&#8221;, if there is not Internet connection available script will return &#8220;no&#8221;. If it is impossible to fetch the page in more than 5 seconds script will return &#8220;no&#8221; as well.</p>
<p>Anything to add? You are welcome! <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2009/04/02/tiny-bash-scripts-check-internet-connection-availability/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Another 10 good Unix habits to pickup</title>
		<link>http://www.linuxscrew.com/2008/09/10/another-10-good-unix-habits-to-pickup/</link>
		<comments>http://www.linuxscrew.com/2008/09/10/another-10-good-unix-habits-to-pickup/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 14:05:52 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/09/10/another-10-good-unix-habits-to-pickup/</guid>
		<description><![CDATA[Well, IBM publishes a new article about useful Unix command line habits as a follow-up to Michael Stutz&#8217;s article. I promise that after reading this article you will say something like &#8220;A-ha, I didn&#8217;t know you could do that!&#8221;   Here is the part of that staff:
The !$ command returns the last argument used [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2007/09/logo-ibm.gif" align="right" />Well, <strong>IBM</strong> publishes a new article about <strong>useful Unix command line habits</strong> as a follow-up to <a href="http://www.linuxscrew.com/2008/01/17/10-good-unix-cli-habits-to-pick-up/">Michael Stutz&#8217;s article</a>. I promise that after reading this article you will say something like &#8220;A-ha, I didn&#8217;t know you could do that!&#8221; <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Here is the part of that staff:</p>
<blockquote><p>The !$ command returns the last argument used with a command. But what happens if you have a command that used arguments and you want to reuse just one of them? The !:1  operator returns the argument used in a command. The example in Listing 3 shows how you can use this operator in combination with the !$ operator. In the first command, a file is renamed to a more meaningful name, but to preserve use of the original file name, a symbolic link is created. The file kxp12.c is renamed in a more readable manner, then the link command is used to create a symbolic link back to the original file name, in case it&#8217;s still used elsewhere. The !$ operator returns the file_system_access.c argument, and the !:1 operator returns the kxp12.c argument, which is the first argument of the previous command.</p>
<p><strong>Listing 3</strong><br />
<code>$ mv kxp12.c file_system_access.c<br />
$ ln –s !$ !:1</code></p></blockquote>
<p>Read more <a href="http://www.ibm.com/developerworks/aix/library/au-unixtips/index.html?S_TACT=105AGX20&amp;S_CMP=EDU">here</a>&#8230;</p>
<p style="text-align: center"><img src="http://www.linuxscrew.com/wp-content/uploads/2008/09/fts-unix-front.jpg" title="unix front" alt="unix front" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/09/10/another-10-good-unix-habits-to-pickup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparing Bash with&#8230; Windows command line shell&#8230;</title>
		<link>http://www.linuxscrew.com/2008/07/17/comparing-bash-with-windows-command-line-shell/</link>
		<comments>http://www.linuxscrew.com/2008/07/17/comparing-bash-with-windows-command-line-shell/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 14:39:43 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[shell]]></category>
		<category><![CDATA[sites]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/07/17/comparing-bash-with-windows-command-line-shell/</guid>
		<description><![CDATA[You may already be known that Microsoft claims that Windows PowerShell (comes with its Vista by default) script language helps IT professionals achieve greater control and productivity and to accelerate the automation during system administration process. As a non-Windows but *nix systems administrator/engineer I was always interested if it is possible to access those functions [...]]]></description>
			<content:encoded><![CDATA[<p>You may already be known that Microsoft claims that Windows PowerShell (comes with its Vista by default) script language helps IT professionals achieve greater control and productivity and to accelerate the automation during system administration process. As a non-Windows but *nix systems administrator/engineer I was always interested if it is possible to access those functions and objects we can easily get in Bash (of course we are talking about each operation system&#8217;s specific procedures and objects).</p>
<p>And these days I came across a good article &#8220;<a href="http://w3.linux-magazine.com/issue/78/Bash_vs._Vista_PowerShell.pdf">Shell Games</a>&#8221; (by Marcus Nasarek) telling about above mentioned matters&#8230;</p>
<blockquote><p>Both Bash and the Windows Vista PowerShell include commands for navigating directories, managing files, and launching other programs. System administration is an important duty for the shell, and Bash and PowerShell are equipped to help manage systems from the command prompt. Whereas Bash typically relies on a combination of newer tools and classic Unix utilities, the PowerShell has its own set of command-line programs. Windows refers to PowerShell commands as cmdlets. The PowerShell cmdlet called Get-Process is a counterpart to ps, and the cmdlet Get-Content corresponds to less. PowerShell differs significantly from previous Windows command shells. In this article, I look at how Windows Vista PowerShell compares with Bash. <a href="http://w3.linux-magazine.com/issue/78/Bash_vs._Vista_PowerShell.pdf">Read more &gt;&gt;</a></p></blockquote>
<p>More useful links:</p>
<p>1. <a href="http://www.linuxscrew.com/wp-admin/post-new.php" target="_blank">Microsoft PowerShell official page</a><br />
2. <a href="http://www.gnu.org/software/bash/manual/bashref.html" target="_blank">Bash Reference Manual</a><br />
3. <a href="http://www.steve.org.uk/Software/bash/" target="_blank">GNU Bash for Windows</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/07/17/comparing-bash-with-windows-command-line-shell/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>iPhone as network-enabled root shell</title>
		<link>http://www.linuxscrew.com/2007/10/05/iphone-as-network-enabled-root-shell/</link>
		<comments>http://www.linuxscrew.com/2007/10/05/iphone-as-network-enabled-root-shell/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 06:43:19 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2007/10/05/iphone-as-network-enabled-root-shell/</guid>
		<description><![CDATA[Well known security expert H.D. Moore published entertaining article on how to make your Apple iPhone to be a hacking platform&#8230; 
Having a network-enabled root shell in my pocket is great, but being able to pop a root shell on someone else&#8217;s iPhone is even better. A few things to keep in mind:
Every process runs [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2007/10/apple.png" title="apple logo" alt="apple logo" align="right" />Well known security expert <strong><a href="http://en.wikipedia.org/wiki/H._D._Moore" class="broken_link"  target="_blank">H.D. Moore</a></strong> published entertaining article on how to make your Apple iPhone to be a <span class="Article_Title">hacking platform&#8230; </span></p>
<blockquote><p>Having a network-enabled root shell in my pocket is great, but being able to pop a root shell on someone else&#8217;s <strong>iPhone</strong> is even better. A few things to keep in mind:</p></blockquote>
<blockquote><p>Every process runs as <strong>root</strong>. MobileSafari, MobileMail, even the Calculator, all run with full root privileges. Any security flaw in any iPhone application can lead to a complete system compromise. A rootkit takes on a whole new meaning when the attacker has access to the camera, microphone, contact list, and phone hardware. Couple this with &#8220;always-on&#8221; internet access over EDGE and you have a perfect spying device.</p></blockquote>
<p><a href="http://blog.metasploit.com/2007/09/root-shell-in-my-pocket-and-maybe-yours.html" target="_blank">Read more&#8230; </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2007/10/05/iphone-as-network-enabled-root-shell/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Dump ipcad output into sqlite3</title>
		<link>http://www.linuxscrew.com/2007/09/21/dump-ipcad-output-into-sqlite3/</link>
		<comments>http://www.linuxscrew.com/2007/09/21/dump-ipcad-output-into-sqlite3/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 21:21:14 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2007/09/21/dump-ipcad-output-into-sqlite3/</guid>
		<description><![CDATA[ipcad is IP accounting daemon with Cisco-like ip accounting export. It runs in background, listens traffic on the specified interfaces, and records the traffic for later retrieval and analysis.
Here is a piece of shell code that allows to export ipcad output into sqlite3 database format:

echo "create table traffic (src, dst, pkt, bt);" &#124; sqlite3 /tmp/throttle.db
rsh [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2007/09/sqlite.gif" title="sqlite" alt="sqlite" align="right" /><a href="http://lionet.info/ipcad/" target="_blank"><strong>ipcad</strong></a> is <strong><a href="http://www.faqs.org/docs/linux_network/x-087-2-accounting.html" target="_blank">IP accounting</a> daemon</strong> with <strong>Cisco</strong>-like ip accounting export. It runs in background, listens traffic on the specified interfaces, and records the traffic for later retrieval and analysis.</p>
<p>Here is a piece of shell code that allows to export ipcad output into <strong>sqlite3</strong> database format:<br />
<code><br />
echo "create table traffic (src, dst, pkt, bt);" | sqlite3 /tmp/throttle.db<br />
rsh 127.0.0.1 show ip accounting | grep "^ " | grep -vi source | awk \<br />
'{print"insert into traffic values (\""$1"\",\""$2"\",\""$3"\",\""$4"\");"}' \<br />
| sqlite3 /tmp/throttle.db<br />
</code></p>
<p>To make this working ipcad should be configured not to capture ports and to enable rsh service. In my case ipcad has the following settings set in ipcad.conf:</p>
<p><code>capture-ports disable;<br />
interface eth0;<br />
rsh enable at 127.0.0.1;<br />
rsh 127.0.0.1 admin;<br />
rsh ttl = 3;<br />
rsh timeout = 30;<br />
pidfile = /var/run/ipcad.pid;<br />
memory_limit = 100m;<br />
</code></p>
<p>and output (<code>rsh 127.0.0.1 show ip accouting</code>) is like:</p>
<pre>
192.168.0.7      192.168.0.1                 113241           166387462
192.168.0.1      192.168.0.7                  72117             4282846
192.168.0.77     66.235.184.245                2448              821095
66.235.184.245   192.168.0.77                  3995              697371</pre>
<p>The main problem is that it sqlite3 is rather slow and it takes eleven (11!!!) seconds to export 1000 entries of ipcad&#8217;s output into database. This was got at PC with 1.4Ghz CPU and 512Mb RAM.</p>
<p>If anybody knows how to get it faster, PLEASE LET ME KNOW! Thanks.</p>
<p><strong>Information Improvisation</strong>: <a href="http://www.bctes.com" target="_blank">Traffic Engineering Server</a> is new Solution for Bandwidth Management and QoS. It&#8217;s especially suitable for Broadband <a href="http://en.wikipedia.org/wiki/ISP" target="_blank">ISPs</a> and <a href="http://en.wikipedia.org/wiki/Small_and_medium_enterprise" target="_blank">SMEs</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2007/09/21/dump-ipcad-output-into-sqlite3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create Linux user with password</title>
		<link>http://www.linuxscrew.com/2007/09/19/create-linux-user-with-password/</link>
		<comments>http://www.linuxscrew.com/2007/09/19/create-linux-user-with-password/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 19:56:27 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2007/09/19/create-linux-user-with-password/</guid>
		<description><![CDATA[Sometimes it&#8217;s necessary to create Linux user accounts in batch mode (fully automatic) but often newbies ask how to set password for a new user without entering it manually. Thanks to heaven command useradd can get password as an input parameter, but it should be encrypted.
In other words, to create Linux user account with password [...]]]></description>
			<content:encoded><![CDATA[<p align="left"><span class="file-link image"><img src="http://www.linuxscrew.com/wp-content/uploads/2007/09/linux-logo.jpg" title="linux-logo.jpg" alt="linux-logo.jpg" align="right" /></span>Sometimes it&#8217;s necessary to create <strong>Linux</strong> user accounts in batch mode (fully automatic) but often newbies ask how to set <strong>password</strong> for a new user without entering it manually. Thanks to heaven command <em><strong>useradd</strong> </em>can get password as an input parameter, but it should be encrypted.</p>
<p>In other words, to create Linux user account with password the following command will be useful:</p>
<p><code><em>useradd -m <strong>-p encryptedPass</strong> username</em></code></p>
<p>I know at least two ways to get password encrypted. The first one is to use <strong>perl</strong> <em>crypt();</em> function:</p>
<p><em><code>perl -e 'print crypt("password_to_be_encrypted", "salt"),"\n"'</code></em></p>
<p>which will give you an output <em>sa3tHJ3/KuYvI</em>.</p>
<p>The second way (more simple) is to use command:</p>
<p><em><code><strong>openssl</strong> passwd password_to_be_encrypted</code></em><a href="http://www.linuxscrew.com/wp-admin/upload.php?style=inline&amp;tab=browse-all&amp;post_id=-1190230328&amp;_wpnonce=a61642a847&amp;ID=147&amp;action=view&amp;paged=2" id="file-link-147" title="linux-logo.jpg" class="file-link image"> 			 </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2007/09/19/create-linux-user-with-password/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux Terminal Performance Comparison</title>
		<link>http://www.linuxscrew.com/2007/09/06/linux-terminal-performance-comparison/</link>
		<comments>http://www.linuxscrew.com/2007/09/06/linux-terminal-performance-comparison/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 10:54:38 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2007/09/06/linux-terminal-performance-comparison/</guid>
		<description><![CDATA[


Linux has an abundance of excellent terminal applications. Interestingly, I could not find any decent comparison of their text display performance. Since I use the command line a lot, I want text output that is as fast as possible. When you compile a large project, you don’t want the console output to be the limiting [...]]]></description>
			<content:encoded><![CDATA[<blockquote></blockquote>
<blockquote>
<p style="text-align: center"><a href="http://www.linuxscrew.com/wp-content/uploads/2007/09/term-bench.png" onclick="return false;" title="Direct link to file"><img src="http://www.linuxscrew.com/wp-content/uploads/2007/09/term-bench.thumbnail.png" title="Linux Terminal Performance Comparison" alt="Linux Terminal Performance Comparison" align="left" border="0" /></a></p>
<p><strong><a href="http://www.linux.org" class="broken_link"  target="_blank">Linux</a></strong> has an abundance of excellent <strong>terminal</strong> applications. Interestingly, I could not find any decent comparison of their text display <strong>performance</strong>. Since I use the command line a lot, I want text output that is as fast as possible. When you compile a large project, you don’t want the console output to be the limiting factor.</p></blockquote>
<p><a href="http://martin.ankerl.com/2007/09/01/comprehensive-linux-terminal-performance-comparison/" target="_blank">Read more&#8230; </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2007/09/06/linux-terminal-performance-comparison/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux/Unix coreutils command &#8216;paste&#8217; to merge lines of files</title>
		<link>http://www.linuxscrew.com/2007/09/05/linuxunix-coreutils-command-paste-to-merge-lines-of-files/</link>
		<comments>http://www.linuxscrew.com/2007/09/05/linuxunix-coreutils-command-paste-to-merge-lines-of-files/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 08:48:49 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2007/09/05/linuxunix-coreutils-command-paste-to-merge-lines-of-files/</guid>
		<description><![CDATA[Unix and Linux GNU coreutils command paste can be useful to merge corresponding or subsequent lines of files. Here is simple example of it&#8217;s usage:
viper@viper-laptop:~$ cat /tmp/test
 pop
pop1
pop2

viper@viper-laptop:~$ cat /tmp/test1
 1
2
3
4
viper@viper-laptop:~$ paste /tmp/test /tmp/test1
pop     1
pop1    2
pop2    3
        4
]]></description>
			<content:encoded><![CDATA[<p>Unix and Linux <a href="http://www.gnu.org" target="_blank">GNU</a> <a href="http://www.gnu.org/software/coreutils/" target="_blank"><strong>coreutils</strong></a> command <em><strong><a href="http://www.gnu.org/software/coreutils/manual/html_node/paste-invocation.html" target="_blank">paste</a> </strong></em>can be useful to merge corresponding or subsequent lines of files. Here is simple example of it&#8217;s usage:</p>
<p><em>viper@viper-laptop:~$ cat /tmp/test</em></p>
<p><em> pop<br />
pop1<br />
pop2</em><br />
<em><br />
viper@viper-laptop:~$ cat /tmp/test1</em></p>
<p><em> 1<br />
2<br />
3<br />
4</em></p>
<p><em>viper@viper-laptop:~$ <strong>paste /tmp/test /tmp/test1</strong></em></p>
<pre><em>pop     1</em></pre>
<pre><em>pop1    2</em></pre>
<pre><em>pop2    3</em></pre>
<pre><em>        4</em></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2007/09/05/linuxunix-coreutils-command-paste-to-merge-lines-of-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
