<?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 Certification &#187; Linux Tricks</title>
	<atom:link href="http://lpilinux.com/LDAP%20Protocol/linux-tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://lpilinux.com</link>
	<description>LPI Certification - What, Why, and How</description>
	<lastBuildDate>Thu, 01 Sep 2011 13:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to Upload Files to an FTP site via a Batch Script</title>
		<link>http://lpilinux.com/how-to-upload-files-to-an-ftp-site-via-a-batch-script.html</link>
		<comments>http://lpilinux.com/how-to-upload-files-to-an-ftp-site-via-a-batch-script.html#comments</comments>
		<pubDate>Sat, 02 Oct 2010 11:09:06 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/how-to-upload-files-to-an-ftp-site-via-a-batch-script.html</guid>
		<description><![CDATA[This script can be used from the command line as a â€˜no questions askedâ€™ method of uploading one or many files with a single command. Additionally, you can call this script from batch files to perform automated file uploads. A &#8230; <a href="http://lpilinux.com/how-to-upload-files-to-an-ftp-site-via-a-batch-script.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fhow-to-upload-files-to-an-ftp-site-via-a-batch-script.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fhow-to-upload-files-to-an-ftp-site-via-a-batch-script.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This script can be used from the command line as a â€˜no questions askedâ€™ method of uploading one or many files with a single command. Additionally, you can call this script from batch files to perform automated file uploads. A few uses for this include (but, of course, not limited to):</p>
<p>    * Include in backup scripts to send data offsite.<br />
    * Upload html/php/etc. files to a web server with a single command.<br />
    * Create shortcuts to send a common group of files (such as a web siteâ€™s source pages).</p>
<p>Configuration</p>
<p>The only configuration required is to set the FTP server connection information. Under the â€œConnection informationâ€ line, set the following:</p>
<p>    * Server â€“ The FTP Server you are uploading to. You can either enter the DNS name (ftp.myserver.com) or IP address (1.2.3.4).<br />
    * UserName â€“ Your user name for connecting to FTP server.<br />
    * Password â€“ Your password for connecting to the FTP server.</p>
<p>Depending on your firewall settings, the first time you run this script you may be prompted to allow FTP to connect to the Internet. Setting this to never prompt you again should remove future warnings.<br />
The Script</p>
<p>@ECHO OFF<br />
ECHO Upload to FTP<br />
ECHO Written by: Jason Faulkner<br />
ECHO SysadminGeek.com<br />
ECHO.<br />
ECHO.</p>
<p>REM Usage:<br />
REM UploadToFTP [/L] FileToUpload<br />
REM<br />
REM Required Parameters:<br />
REM  FileToUpload<br />
REM      The file or file containing the list of files to be uploaded.<br />
REM<br />
REM Optional Parameters:<br />
REM  /L  When supplied, the FileToUpload is read as a list of files to be uploaded.<br />
REM      A list of files should be a plain text file which has a single file on each line.<br />
REM      Files listed in this file must specify the full path and be quoted where appropriate.</p>
<p>SETLOCAL EnableExtensions</p>
<p>REM Connection information:<br />
SET Server=<br />
SET UserName=<br />
SET Password=</p>
<p>REM &#8212;- Do not modify anything below this line &#8212;-</p>
<p>SET Commands=&#8221;%TEMP%\SendToFTP_commands.txt&#8221;</p>
<p>REM FTP user name and password. No spaces after either.<br />
ECHO %UserName%> %Commands%<br />
ECHO %Password%>> %Commands%</p>
<p>REM FTP transfer settings.<br />
ECHO binary >> %Commands%</p>
<p>IF /I {%1}=={/L} (<br />
   REM Add file(s) to the list to be FTP&#8217;ed.<br />
   FOR /F &#8220;usebackq tokens=*&#8221; %%I IN (&#8220;%~dpnx2&#8243;) DO ECHO put %%I >> %Commands%<br />
) ELSE (<br />
   ECHO put &#8220;%~dpnx1&#8243; >> %Commands%<br />
)</p>
<p>REM Close the FTP connection.<br />
ECHO close  >> %Commands%<br />
ECHO bye    >> %Commands%</p>
<p>REM Perform the FTP.<br />
FTP -d -i -s:%Commands% %Server%</p>
<p>ECHO.<br />
ECHO.</p>
<p>REM Clean up.<br />
IF EXIST %Commands% DEL %Commands%</p>
<p>ENDLOCAL</p>
<p>LinksThis Article is taken from </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fhow-to-upload-files-to-an-ftp-site-via-a-batch-script.html&amp;title=How%20to%20Upload%20Files%20to%20an%20FTP%20site%20via%20a%20Batch%20Script"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/how-to-upload-files-to-an-ftp-site-via-a-batch-script.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Tips for the day</title>
		<link>http://lpilinux.com/ssh-tips-for-the-day.html</link>
		<comments>http://lpilinux.com/ssh-tips-for-the-day.html#comments</comments>
		<pubDate>Sat, 03 Jul 2010 12:25:51 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/ssh-tips-for-the-day.html</guid>
		<description><![CDATA[&#8216;When you are forwarding ports through a tunnel, either locally or remotely (i.e., with the -L or -R switches), you can modify the session real-time. The way that you do this is after you start the session, you press SHIFT &#8230; <a href="http://lpilinux.com/ssh-tips-for-the-day.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fssh-tips-for-the-day.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fssh-tips-for-the-day.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>&#8216;When you are forwarding ports through a tunnel, either locally or remotely (i.e., with the -L or -R switches), you can modify the session real-time. The way that you do this is after you start the session, you press SHIFT + ` + c (The ` key also has a ~ in it, which is the actual keypress sent to the session). If it doesnâ€™t work the first time, press ENTER a couple of times and try it again. Once you get the â€œssh>â€ prompt, type â€œ?â€ for the commands you can put in. Hereâ€™s an example session:</p>
<p>[0908][scott@dev:~]$ ssh -R 8080:suseblog.com:8080 scott@suseblog.com<br />
Password:<br />
Last login: Thu Oct 15 11:59:43 2009 from 67.214.232.162<br />
Have a lot of fun&#8230;<br />
[1109][scott@mail:~]$ [PRESS SHIFT + ` + c HERE]<br />
ssh> ?<br />
Commands:<br />
      -L[bind_address:]port:host:hostport    Request local forward<br />
      -R[bind_address:]port:host:hostport    Request remote forward<br />
      -KR[bind_address:]port                 Cancel remote forward<br />
[PRESS ENTER HERE]<br />
[1110][scott@mail:~]$ [PRESS SHIFT + ` + c HERE]<br />
ssh> -R8080:letslearnlinux.com:1080<br />
Forwarding port.</p>
<p>[1110][scott@mail:~]$&#8217; </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fssh-tips-for-the-day.html&amp;title=SSH%20Tips%20for%20the%20day"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/ssh-tips-for-the-day.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xorg.conf Hacking</title>
		<link>http://lpilinux.com/xorg-conf-hacking.html</link>
		<comments>http://lpilinux.com/xorg-conf-hacking.html#comments</comments>
		<pubDate>Mon, 24 May 2010 02:40:03 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/?p=504</guid>
		<description><![CDATA[This week I want to share a configuration file that I&#8217;ve used for years and other people might find useful. My Linux setup at home, currently running Fedora, uses two cheap LCD screens from Hanns-G. The model name is HW191D, &#8230; <a href="http://lpilinux.com/xorg-conf-hacking.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fxorg-conf-hacking.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fxorg-conf-hacking.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This week I want to share a configuration file that I&#8217;ve used for years and other people might find useful. My Linux setup at home, currently running Fedora, uses two cheap LCD screens from Hanns-G. The model name is HW191D, and while the image quality is fine, they&#8217;re a complete pain to get running in tandem using the DVI connectors. It isn&#8217;t inux to blame either, I&#8217;ve had the same problem getting them to work with OS X and Windows XP, and gave up with the over-protective Windows 7. The problem seems to be that the EDID data provided by the screens, when connected digitally, is inaccurate, giving the OS the false impression that they&#8217;re only capable of 1024&#215;768 when they&#8217;re much happier at a native 1440&#215;900.</p>
<p>This solution is only going to work for people using Nvidia&#8217;s proprietary graphics drivers, but I was able to get around the problem by injecting a working EDID file into the old xorg.conf file, and manually creating Monitor entries, as well as creating a TwinViewXinerama display so that both screens could be used side-by-side. This has worked for Ubuntu, Mandriva, OpenSUSE and Fedora, as they&#8217;ve each been installed on my machine. But you&#8217;ll probably still need to change things like the mouse and keyboard configuration to suite your own hardware.</p>
<p>Here&#8217;s the xorg.conf file: xorg.conf (just place it in /etc/X11).<br />
and here&#8217;s the EDID binary: edid.bin (which I&#8217;ve placed in /root). </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fxorg-conf-hacking.html&amp;title=Xorg.conf%20Hacking"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/xorg-conf-hacking.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is LZMA Algoritm is Better than Bzip2?</title>
		<link>http://lpilinux.com/is-lzma-algoritm-is-better-than-bzip2.html</link>
		<comments>http://lpilinux.com/is-lzma-algoritm-is-better-than-bzip2.html#comments</comments>
		<pubDate>Sat, 10 Apr 2010 05:32:25 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/is-lzma-algoritm-is-better-than-bzip2.html</guid>
		<description><![CDATA[There are few tools that can be used to compress LZMA (like P7ZIP archiver), but I chose [url=http://tukaani.org/lzma/[/url]LZMA Utils[/url] because it has a command line compatible with gzip and bzip2, so replacing them with LZMA is simple. The command is &#8230; <a href="http://lpilinux.com/is-lzma-algoritm-is-better-than-bzip2.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fis-lzma-algoritm-is-better-than-bzip2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fis-lzma-algoritm-is-better-than-bzip2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>There are few tools that can be used to compress LZMA (like P7ZIP archiver), but I chose [url=http://tukaani.org/lzma/[/url]LZMA Utils[/url] because it has a command line compatible with gzip and bzip2, so replacing them with LZMA is simple. The command is called lzma and produces .lzma files by default.</p>
<p>Comparison</p>
<p>First thing I used LZMA for was compressing my mail archive. The spam file (mail in mbox format) I chose is 528MB big and I will use maximum compression ratio. During compression the lzma process was 370MB big, that&#8217;s much <img src='http://lpilinux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  bzip2 was below 7MB. It took almost 15 minutes to compress the file by lzma and less than 4 minutes by bzip2. Compression ration was very similar: output file is 373MB for bzip2 and 370MB for lzma. Decompression time is 1m12s for lzma and 1m48s for bzip2.</p>
<p>Not very impressive, but compressing text files is easy. Everyone who tried to implement or invent a simple compression algorithm can achieve good results with text files, so what about binary data? I&#8217;ve created a tar archive from /usr/bin directory on my laptop. It&#8217;s 308MB big. Bzip2 file is 127MB big (59% ratio) and LZMA is 83MB (73% ratio). This is a real difference!</p>
<p>Integration with software</p>
<p>Since my mail archive is now lzma compressed because of faster access time I has a need to teach mutt to open such mailboxes. This was simple, just copy &#038; paste support for gzip archives into ~/.muttrc because lzma command line is the same:</p>
<p>open-hook       \\.lzma$ &#8220;lzma -cd &#8216;%f&#8217; > &#8216;%t&#8217;&#8221;<br />
close-hook       \\.lzma$ &#8220;lzma -c &#8216;%t&#8217; > &#8216;%f&#8217;&#8221;<br />
append-hook   \\.lzma$ &#8220;lzma -c &#8216;%t&#8217; >> &#8216;%f&#8217;&#8221;</p>
<p>Fresh versions of tar archiver (from 1.20 version) also have &#8211;lzma switch. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fis-lzma-algoritm-is-better-than-bzip2.html&amp;title=Is%20LZMA%20Algoritm%20is%20Better%20than%20Bzip2%3F"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/is-lzma-algoritm-is-better-than-bzip2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use Ndiswrapper on OpenSUSE 10.03 for Broadcom Wifi?</title>
		<link>http://lpilinux.com/how-to-use-ndiswrapper-on-opensuse-10-03-for-broadcom-wifi.html</link>
		<comments>http://lpilinux.com/how-to-use-ndiswrapper-on-opensuse-10-03-for-broadcom-wifi.html#comments</comments>
		<pubDate>Sun, 04 Apr 2010 09:41:00 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/how-to-use-ndiswrapper-on-opensuse-10-03-for-broadcom-wifi.html</guid>
		<description><![CDATA[The exact specs of the wireless card, as listed by &#8216;lspci -v&#8217; are: 0c:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan mini-PCI (rev 01) Subsystem: Dell Unknown device 0007 Flags: bus master, fast devsel, latency 0, IRQ 17 Memory at ecffc000 &#8230; <a href="http://lpilinux.com/how-to-use-ndiswrapper-on-opensuse-10-03-for-broadcom-wifi.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fhow-to-use-ndiswrapper-on-opensuse-10-03-for-broadcom-wifi.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fhow-to-use-ndiswrapper-on-opensuse-10-03-for-broadcom-wifi.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The exact specs of the wireless card, as listed by &#8216;lspci -v&#8217; are:</p>
<p>0c:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan mini-PCI (rev 01)<br />
Subsystem: Dell Unknown device 0007<br />
Flags: bus master, fast devsel, latency 0, IRQ 17<br />
Memory at ecffc000 (32-bit, non-prefetchable) [size=16K]<br />
Capabilities: [40] Power Management version 2<br />
Capabilities: [58] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-<br />
Capabilities: [d0] Express Legacy Endpoint IRQ 0<br />
Capabilities: [100] Advanced Error Reporting<br />
Capabilities: [13c] Virtual Channel</p>
<p>Thatâ€™s the bad boy that weâ€™re going to get set up with wireless in this very article on an openSUSE 10.3 laptop. Letâ€™s have a moment of silence.</p>
<p>A basic outline of what weâ€™ll cover: 1) First, determine the driver currently running the wireless card. We will then instruct the system never to load that driver ever again (and make a few threats just in case). 2) Second, we are then going to set up ndiswrapper to run the card. 3) Third and finally, we will set up the system so that when we reboot the machine, ndiswrapper is automatically loaded and we can hop on our wireless connection easily.<br />
Out With the Bad</p>
<p>The kernel module that serves as the device driver for this wireless card is called â€˜bcm43xxâ€™. As root, remove it from memory, as in this example:</p>
<p>[2338][scott@laptop:~]$ su<br />
Password:<br />
laptop:/home/scott # rmmod bcm43xx</p>
<p>Now, we have to politely instruct the system to refrain from loading this module ever again. To do this, we are going to â€˜blacklistâ€™ the module. As root, edit /etc/modprobe.conf.local . Add this line to tell it to never load the bcm43xx module:</p>
<p>blacklist bcm43xx</p>
<p>In With the Good</p>
<p>Ndiswrapper is a way to use a Windows driver in Linux. Thusly, the first thing you need to do is grab said Windows driver from this link. Download it to somewhere that you will remember. When it is done, go there, and extract the file (can be done as regular user):</p>
<p>[2339][scott@laptop:~]$ tar -jxvf bcmwl5.tar.bz2<br />
bcmwl5/<br />
bcmwl5/bcmwl5.inf<br />
bcmwl5/bcmwl5.sys<br />
[2339][scott@laptop:~]$</p>
<p>Next, as root, letâ€™s install ndiswrapper using YAST with this simple command:</p>
<p>[2340][scott@laptop:~]$ su<br />
Password:<br />
laptop:/home/scott # yast -i ndiswrapper </p>
<p>Now we need to get ndiswrapper to run the wireless card. This is done as root as in this example:</p>
<p>[2341][scott@laptop:~]$ su<br />
Password:<br />
laptop:/home/scott # ndiswrapper -i /path/to/bcmwl5.inf</p>
<p>You can use ndiswrapper to make sure it worked like this:</p>
<p>[2342][scott@laptop:~]$ su<br />
Password:<br />
laptop:/home/scott # ndiswrapper -l<br />
bcmwl5 : driver installed<br />
        device (14E4:4311) present</p>
<p>If you see something like that, you are golden.</p>
<p>Next, we need to write a config file for ndiswrapper. This is done with the following command (as root):</p>
<p>[2342][scott@laptop:~]$ su<br />
Password:<br />
laptop:/home/scott # ndiswrapper -m</p>
<p>Remove all CAT-5 cables from your machine, and then letâ€™s start up ndiswrapper (as root):</p>
<p>[2342][scott@laptop:~]$ su<br />
Password:<br />
laptop:/home/scott # modprobe ndiswrapper </p>
<p>Itâ€™s just about set up. Now, we need to make sure it will work properly when we reboot. We also need to put in the wireless networking configuration for this adapter.<br />
Make It Work Automatically on Reboot</p>
<p>Now obviously, when the machine reboots, we want to ensure that ndiswrapper is loaded and used to run this wifi card. To do this is absolute cake. Go into YAST, go into the Network Devices, and then into the Network Card. Select the Broadcom wifi card in the list of adapters. Click CONFIGURE. In the HARDWARE tab, there is a drop-down box called â€œModule Nameâ€. Type â€˜ndiswrapperâ€˜ in there. Click NEXT to configure your wireless network settings for this adapter.</p>
<p>If you have set up the wireless access point, you should know all the configuration details that should be entered into this screen. If you donâ€™t, you can ask your system administrator to help you figure it out. In any case, fill out this screen with all the appropriate information.</p>
<p>Click NEXT again, and then FINISH. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fhow-to-use-ndiswrapper-on-opensuse-10-03-for-broadcom-wifi.html&amp;title=How%20to%20use%20Ndiswrapper%20on%20OpenSUSE%2010.03%20for%20Broadcom%20Wifi%3F"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/how-to-use-ndiswrapper-on-opensuse-10-03-for-broadcom-wifi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to scan Conficker with Nmap?</title>
		<link>http://lpilinux.com/how-to-scan-conficker-with-nmap.html</link>
		<comments>http://lpilinux.com/how-to-scan-conficker-with-nmap.html#comments</comments>
		<pubDate>Sun, 04 Apr 2010 09:34:31 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/how-to-scan-conficker-with-nmap.html</guid>
		<description><![CDATA[While Conficker is not a new worm it has been getting much press lately. Even though Redmond released a patch late October it is estimated that 5 to 10 million PC have been infected. The industry has been aware of &#8230; <a href="http://lpilinux.com/how-to-scan-conficker-with-nmap.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fhow-to-scan-conficker-with-nmap.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fhow-to-scan-conficker-with-nmap.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>While Conficker is not a new worm it has been getting much press lately. Even though Redmond released a patch late October it is estimated that 5 to 10 million PC have been infected. The industry has been aware of this worm for some time and has mounted a fairly impressive counter attack. Microsoft issued a 250K dollar bounty for developers of Conficker, major anti-virus vendors have added definitions for detection and removal of the worm, OpenDNS introduces a feature that aid sysadmins in detecting infected machines and today with the help of HoneyNet Project security researches discovered Confickerâ€™s fingerprint which makes it possible for tool such as Nmap, Nessus to detect the worm remotely. This discovery come just in time as the latest variant of the worm â€œConficker Câ€ is programmed to lay dormant unlike the previous generations where identification of the worm was possible by monitoring outbound traffic.</p>
<p>Why just in time you may ask? Well because the worm is said to become active on April 1st. It is unknown if all infected PC will be used for bad deeds. Iâ€™m sure no one needs a reminder of the SQL Slammer worm of 2003/2004 where 5 of the 11 root DNS servers went down, ATMâ€™s where knocked offline due to massive DDOS attacks. I understand the symbolism of April 1st being April fools day, but as the doctor always says: Itâ€™s far easier to prevent then to treat.</p>
<p>Using the latest development version of Nmap one would run a command to scan systems for Conficker signature.<br />
nmap -PN -T4 -p139,445 -n -v &#8211;script=smb-check-vulns &#8211;script-args safe=1 [targetnetworks]</p>
<p>Or by updating your Nessus serverâ€™s plugins nessus-update-plugins create and run a scan that includes plugin id #36036 (if you donâ€™t pay for Nessus Professional feed you will have to wait 7 days to receive the plugin) </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fhow-to-scan-conficker-with-nmap.html&amp;title=How%20to%20scan%20Conficker%20with%20Nmap%3F"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/how-to-scan-conficker-with-nmap.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to display PHP errors without using PHP.ini file</title>
		<link>http://lpilinux.com/how-to-display-php-errors-without-using-php-ini-file.html</link>
		<comments>http://lpilinux.com/how-to-display-php-errors-without-using-php-ini-file.html#comments</comments>
		<pubDate>Sun, 04 Apr 2010 09:32:05 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/how-to-display-php-errors-without-using-php-ini-file.html</guid>
		<description><![CDATA[If you are using a shared server, or just have a limited account on your company servers, you might not have access to your php configuration file php.ini (this is usually found under /etc/php.ini in rhel/centos and /etc/php5/apache2/php.ini in debian/ubuntu). &#8230; <a href="http://lpilinux.com/how-to-display-php-errors-without-using-php-ini-file.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fhow-to-display-php-errors-without-using-php-ini-file.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fhow-to-display-php-errors-without-using-php-ini-file.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If you are using a shared server, or just have a limited account on your company servers, you might not have access to your php configuration file php.ini (this is usually found under /etc/php.ini in rhel/centos and /etc/php5/apache2/php.ini in debian/ubuntu). Still, in many situations it might be needed to enable php errors in the browser so you can see what is the actual problem instead of an empty page (if the server has error reporting disabled as most production systems should have).</p>
<p>In order to enable error reporting for your php script or application include inside your code the following lines:<br />
error_reporting(E_ALL);<br />
ini_set(&#8220;display_errors&#8221;, 1);<br />
and this will result in displaying in the browser any errors your application might have.</p>
<p>ps: once you are done with this and fixed the issue, donâ€™t forget to remove the error reporting lines, as we donâ€™t want our users/clients to see errors in the browser in case something went wrong. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fhow-to-display-php-errors-without-using-php-ini-file.html&amp;title=How%20to%20display%20PHP%20errors%20without%20using%20PHP.ini%20file"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/how-to-display-php-errors-without-using-php-ini-file.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What Mutation Techniques does Nikto Web Scanner Use?</title>
		<link>http://lpilinux.com/what-mutation-techniques-does-nikto-web-scanner-use-2.html</link>
		<comments>http://lpilinux.com/what-mutation-techniques-does-nikto-web-scanner-use-2.html#comments</comments>
		<pubDate>Sat, 03 Apr 2010 05:14:17 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/what-mutation-techniques-does-nikto-web-scanner-use-2.html</guid>
		<description><![CDATA[A mutation will cause Nikto to combine tests or attempt to guess values. These techniques may cause a tremendous amount of tests to be launched against the target. Use the reference number to specify the type, multiple may be combined. &#8230; <a href="http://lpilinux.com/what-mutation-techniques-does-nikto-web-scanner-use-2.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fwhat-mutation-techniques-does-nikto-web-scanner-use-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fwhat-mutation-techniques-does-nikto-web-scanner-use-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A mutation will cause Nikto to combine tests or attempt to guess values. These techniques may cause a tremendous amount of tests to be launched against the target. Use the reference number to specify the type, multiple may be combined.</p>
<p>   1.</p>
<p>      Test all files with all root directories. This takes each test and splits it into a list of files and directories. A scan list is then created by combining each file with each directory.<br />
   2.</p>
<p>      Guess for password file names. Takes a list of common password file names (such as &#8220;passwd&#8221;, &#8220;pass&#8221;, &#8220;password&#8221;) and file extensions (&#8220;txt&#8221;, &#8220;pwd&#8221;, &#8220;bak&#8221;, etc.) and builds a list of files to check for.<br />
   3.</p>
<p>      Enumerate user names via Apache (/~user type requests). Exploit a misconfiguration with Apache UserDir setups which allows valid user names to be discovered. This will attempt to brute-force guess user names. A file of known users can also be supplied by supplying the file name in the -mutate-options parameter.<br />
   4.</p>
<p>      Enumerate user names via cgiwrap (/cgi-bin/cgiwrap/~user type requests). Exploit a flaw in cgiwrap which allows valid user names to be discovered. This will attempt to brute-force guess user names. A file of known users can also be supplied by supplying the file name in the -mutate-options parameter.<br />
   5.</p>
<p>      Attempt to brute force sub-domain names. This will attempt to brute force know domain names, it will assume the given host (without a www) is the parent domain.<br />
   6.</p>
<p>      Attempt to brute directory names. This is the only mutate option that requires a file to be passed in the -mutate-options parameter. It will use the given file to attempt to guess directory names. Lists of common directories may be found in the OWASP DirBuster project. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fwhat-mutation-techniques-does-nikto-web-scanner-use-2.html&amp;title=What%20Mutation%20Techniques%20does%20Nikto%20Web%20Scanner%20Use%3F"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/what-mutation-techniques-does-nikto-web-scanner-use-2.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What Mutation Techniques does Nikto Web Scanner Use?</title>
		<link>http://lpilinux.com/what-mutation-techniques-does-nikto-web-scanner-use.html</link>
		<comments>http://lpilinux.com/what-mutation-techniques-does-nikto-web-scanner-use.html#comments</comments>
		<pubDate>Sat, 03 Apr 2010 05:14:15 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/what-mutation-techniques-does-nikto-web-scanner-use.html</guid>
		<description><![CDATA[A mutation will cause Nikto to combine tests or attempt to guess values. These techniques may cause a tremendous amount of tests to be launched against the target. Use the reference number to specify the type, multiple may be combined. &#8230; <a href="http://lpilinux.com/what-mutation-techniques-does-nikto-web-scanner-use.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fwhat-mutation-techniques-does-nikto-web-scanner-use.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fwhat-mutation-techniques-does-nikto-web-scanner-use.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A mutation will cause Nikto to combine tests or attempt to guess values. These techniques may cause a tremendous amount of tests to be launched against the target. Use the reference number to specify the type, multiple may be combined.</p>
<p>   1.</p>
<p>      Test all files with all root directories. This takes each test and splits it into a list of files and directories. A scan list is then created by combining each file with each directory.<br />
   2.</p>
<p>      Guess for password file names. Takes a list of common password file names (such as &#8220;passwd&#8221;, &#8220;pass&#8221;, &#8220;password&#8221;) and file extensions (&#8220;txt&#8221;, &#8220;pwd&#8221;, &#8220;bak&#8221;, etc.) and builds a list of files to check for.<br />
   3.</p>
<p>      Enumerate user names via Apache (/~user type requests). Exploit a misconfiguration with Apache UserDir setups which allows valid user names to be discovered. This will attempt to brute-force guess user names. A file of known users can also be supplied by supplying the file name in the -mutate-options parameter.<br />
   4.</p>
<p>      Enumerate user names via cgiwrap (/cgi-bin/cgiwrap/~user type requests). Exploit a flaw in cgiwrap which allows valid user names to be discovered. This will attempt to brute-force guess user names. A file of known users can also be supplied by supplying the file name in the -mutate-options parameter.<br />
   5.</p>
<p>      Attempt to brute force sub-domain names. This will attempt to brute force know domain names, it will assume the given host (without a www) is the parent domain.<br />
   6.</p>
<p>      Attempt to brute directory names. This is the only mutate option that requires a file to be passed in the -mutate-options parameter. It will use the given file to attempt to guess directory names. Lists of common directories may be found in the OWASP DirBuster project. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fwhat-mutation-techniques-does-nikto-web-scanner-use.html&amp;title=What%20Mutation%20Techniques%20does%20Nikto%20Web%20Scanner%20Use%3F"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/what-mutation-techniques-does-nikto-web-scanner-use.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP function to Genrate Random Passwords</title>
		<link>http://lpilinux.com/php-function-to-genrate-random-passwords.html</link>
		<comments>http://lpilinux.com/php-function-to-genrate-random-passwords.html#comments</comments>
		<pubDate>Tue, 30 Mar 2010 09:00:09 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/php-function-to-genrate-random-passwords.html</guid>
		<description><![CDATA[function pass_gen($len) { $pass = &#8221;; srand((float) microtime() * 10000000); for ($i = 0; $i < $len; $i++) { $pass .= chr(rand(33, 126)); } return $pass; }]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fphp-function-to-genrate-random-passwords.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fphp-function-to-genrate-random-passwords.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>function pass_gen($len) { $pass = &#8221;; srand((float) microtime() * 10000000); for ($i = 0; $i < $len; $i++) { $pass .= chr(rand(33, 126)); } return $pass; }  </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fphp-function-to-genrate-random-passwords.html&amp;title=PHP%20function%20to%20Genrate%20Random%20Passwords"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/php-function-to-genrate-random-passwords.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UBUNTU root Password (Default Password)</title>
		<link>http://lpilinux.com/ubuntu-root-password-default-password.html</link>
		<comments>http://lpilinux.com/ubuntu-root-password-default-password.html#comments</comments>
		<pubDate>Thu, 11 Mar 2010 09:10:59 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/?p=375</guid>
		<description><![CDATA[By default root account is locked under Ubuntu Linux. Therefore, you cannot login as root or use &#8216;su -&#8217; command to become a superuser. To run all administrative command use sudo command. sudo allows a permitted user to execute a &#8230; <a href="http://lpilinux.com/ubuntu-root-password-default-password.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fubuntu-root-password-default-password.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fubuntu-root-password-default-password.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>By default root account is locked under Ubuntu Linux. Therefore, you cannot login as root or use &#8216;su -&#8217; command to become a superuser. To run all administrative command use sudo command. sudo allows a permitted user to execute a command as the superuser or another user. Ubuntu setup your default account (the one created during installation) to run all administrative commands.</p>
<p>For example create a new user called bar, you need to type sudo command as follows:<br />
<strong><code>$ sudo adduser bar</code><br />
Password:</strong></p>
<p>When sudo asks for a password, you need to supply <strong>YOUR OWN</strong> password. In other words a root password is not needed. Here are few more examples.</p>
<h3>Task: Start / stop / restart services stored in /etc/init.d/ directory</h3>
<p><strong><code>$ sudo /etc/init.d/ssh stop<br />
$ sudo /etc/init.d/networking restart</code></strong></p>
<h3>Task: Avoid typing sudo each and every time</h3>
<p>Note that this is not recommended until and unless you are an expert and aware of what you are typing:<br />
<code>$ sudo -i</code></p>
<p>Above command will start /bin/bash as a root shell so that you can enter a root user command without using sudo command.</p>
<h2>How do I login as root user?</h2>
<p>Open terminal and simply type the following command:<br />
<strong><code>$ sudo bash</code></strong><br />
OR<br />
<strong><code>$ sudo -s</code></strong><br />
Supply your  password and you will become a root user. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fubuntu-root-password-default-password.html&amp;title=UBUNTU%20root%20Password%20%28Default%20Password%29"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/ubuntu-root-password-default-password.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to restart, shutdown, and start nginx server?</title>
		<link>http://lpilinux.com/how-to-restart-shutdown-and-start-nginx-server.html</link>
		<comments>http://lpilinux.com/how-to-restart-shutdown-and-start-nginx-server.html#comments</comments>
		<pubDate>Thu, 11 Mar 2010 08:41:49 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/?p=366</guid>
		<description><![CDATA[FreeBSD comes with Nginx startup script located at /usr/local/etc/rc.d directory. Update /etc/rc.conf All you have to do is add following line to your /etc/rc.conf file: nginx_enable=&#8221;YES&#8221; Once added use the following command to control nginx web server. You must be &#8230; <a href="http://lpilinux.com/how-to-restart-shutdown-and-start-nginx-server.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fhow-to-restart-shutdown-and-start-nginx-server.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fhow-to-restart-shutdown-and-start-nginx-server.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>FreeBSD comes with Nginx startup script located at /usr/local/etc/rc.d directory.<br />
Update /etc/rc.conf</p>
<p>All you have to do is add following line to your /etc/rc.conf file:</p>
<p>nginx_enable=&#8221;YES&#8221;<br />
Once added use the following command to control nginx web server. You must be root user to control nginx.<br />
Start Nginx Web Server Command</p>
<p># /usr/local/etc/rc.d/nginx start<br />
Stop Nginx Web Server Command</p>
<p># /usr/local/etc/rc.d/nginx stop<br />
Restart Nginx Web Server Command</p>
<p># /usr/local/etc/rc.d/nginx restart<br />
Test Nginx config file for errors</p>
<p>The -t option will just test the configuration file. nginx checks configuration for correct syntax and then try to open files referred in configuration.<br />
# nginx -c /usr/local/etc/nginx/nginx.conf -t</p>
<p>Once statisfied, restart / start Nginx:<br />
# /usr/local/etc/rc.d/nginx start<br />
The -c /path/to/config/file specifies which configuration file Nginx should use instead of the default. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fhow-to-restart-shutdown-and-start-nginx-server.html&amp;title=How%20to%20restart%2C%20shutdown%2C%20and%20start%20nginx%20server%3F"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/how-to-restart-shutdown-and-start-nginx-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gimp &#8211; Command-line options (man gimp)</title>
		<link>http://lpilinux.com/gimp-command-line-options-man-gimp.html</link>
		<comments>http://lpilinux.com/gimp-command-line-options-man-gimp.html#comments</comments>
		<pubDate>Sat, 27 Feb 2010 02:03:29 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/gimp-command-line-options-man-gimp.html</guid>
		<description><![CDATA[The GIMP is the GNU Image Manipulation Program. It is used to edit and manipulate images. It can load and save a variety of image formats and can be used to convert between formats. Gimp can also be used as &#8230; <a href="http://lpilinux.com/gimp-command-line-options-man-gimp.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fgimp-command-line-options-man-gimp.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fgimp-command-line-options-man-gimp.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The GIMP is the GNU Image Manipulation Program. It is used to edit and manipulate images. It can load and save a variety of image formats and can be used to convert between formats.</p>
<p>Gimp can also be used as a paint program. It features a set of drawing and painting tools such as airbrush, clone, pencil, and paint brush. Painting and drawing tools can be applied to an image with a variety of paint modes. It also offers an extensive array of selection tools like rectangle, ellipse, fuzzy select, bezier select, intelligent scissors, and select by color.</p>
<p>Gimp offers a variety of plugins that perform a variety of image manipulations. Examples include bumpmap, edge detect, gaussian blur, and many others.</p>
<p>In addition, Gimp has several scripting extension which allow for advanced non-interactive processing and creation of images.<br />
OPTIONS<br />
The gimp accepts the following options:</p>
<p>-h, &#8211;help<br />
    Display a list of all commandline options.<br />
-v, &#8211;version<br />
    Output the version info.<br />
-b, &#8211;batch <commands><br />
    Execute the set of </commands><commands> non-interactively. The set of </commands><commands> is typically in the form of a script that can be executed by one of the Gimp scripting extensions.<br />
-g, &#8211;gimprc <gimprc><br />
    Use an alternative gimprc instead of the default one. Useful in cases where plugins paths or machine specs may be different.<br />
-i, &#8211;no-interface<br />
    Run without a user interface.<br />
-r, &#8211;restore-session<br />
    Try to restore saved session.<br />
-d, &#8211;no-data<br />
    Do not load patterns, gradients, palettes, or brushes. Often useful in non-interactive situations where startup time is to be minimized.<br />
&#8211;verbose<br />
    Show startup messages.<br />
&#8211;no-shm<br />
    Do not use shared memory between GIMP and its plugins. Instead of using shared memory, GIMP will send the data via pipe. This will result in slower performance than using shared memory.<br />
&#8211;no-xshm<br />
    Do not use the X Shared Memory extension. If GIMP is being displayed on a remote X server, this probably needs to be enabled. Also useful for any X server that doesn&#8217;t properly support the X shared memory extension. This will result in slower performance than with X shared memory enabled.<br />
&#8211;display display<br />
    Use the designated X display.<br />
-s, &#8211;no-splash<br />
    Do not show the splash screen.<br />
-S, &#8211;no-splash-image<br />
    Do not show the splash screen image as part of the splash screen.<br />
&#8211;debug-handlers<br />
    Enable debugging signal handlers.<br />
-c, &#8211;console-messages<br />
    Do not popup dialog boxes on errors or warnings. Print the messages on the console instead.<br />
&#8211;enable-stack-trace {never|query|always}<br />
    If a stack-trace should be generated in case of fatal signals.<br />
&#8211;system-gimprc </gimprc><gimprc><br />
    Use an alternate system gimprc file. </gimprc></commands> </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fgimp-command-line-options-man-gimp.html&amp;title=Gimp%20%26%238211%3B%20Command-line%20options%20%28man%20gimp%29"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/gimp-command-line-options-man-gimp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Searching in Linux using gawk</title>
		<link>http://lpilinux.com/searching-in-linux-using-gawk.html</link>
		<comments>http://lpilinux.com/searching-in-linux-using-gawk.html#comments</comments>
		<pubDate>Wed, 24 Feb 2010 09:02:05 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/searching-in-linux-using-gawk.html</guid>
		<description><![CDATA[&#8220;When grep and sed aren&#8217;t enough, gawk may provide the extra horsepower that you need. The following tip contains a sampling of some of the things one might do with gawk. Extract the last column from a text file, whitespace-separated: &#8230; <a href="http://lpilinux.com/searching-in-linux-using-gawk.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fsearching-in-linux-using-gawk.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fsearching-in-linux-using-gawk.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>&#8220;When grep and sed aren&#8217;t enough, gawk may provide the extra horsepower that you need. The following tip contains a sampling of some of the things one might do with gawk.</p>
<p>Extract the last column from a text file, whitespace-separated:</p>
<p>cat myfile | gawk &#8216;{print $NF}&#8217;</p>
<p>or:</p>
<p>gawk &#8216;{print $NF}&#8217; myfile</p>
<p>List counts of files owned by each user in the current directory:</p>
<p>/bin/ls -l | \<br />
    gawk &#8216;NR > 1 {counts[$3]++;}<br />
          END {for (s in counts) {<br />
                   printf(&#8221;  %-15s : % 5d\n&#8221;,<br />
                          s, counts[s]);}}&#8217; | \<br />
        sort</p>
<p>Kill your processes (one use is to kill a hung login if you can remotely log in to the workstation from another machine):</p>
<p>ps -elf | \<br />
    gawk -v me=&#8221;$USER&#8221; &#8216;$3 == me {print $4}&#8217; | \<br />
        egrep -v $$ | \<br />
            xargs -i@@ kill -9 @@; kill -9 $$<br />
&#8221; <a href="http://www.linuxjournal.com/content/tech-tip-fun-gawk">linuxjournal.com</a> </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fsearching-in-linux-using-gawk.html&amp;title=Searching%20in%20Linux%20using%20gawk"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/searching-in-linux-using-gawk.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Upgrade you current ubantu in latest 9.10 (Ubantu Notes)?</title>
		<link>http://lpilinux.com/how-to-upgrade-you-current-ubantu-in-latest-one.html</link>
		<comments>http://lpilinux.com/how-to-upgrade-you-current-ubantu-in-latest-one.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 22:23:38 +0000</pubDate>
		<dc:creator>lpilinuxblog</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://lpilinux.com/how-to-upgrade-you-current-ubantu-in-latest-one.html</guid>
		<description><![CDATA[This document provides instructions and notes on upgrading to Ubuntu 9.10 (code name &#8220;Karmic Koala&#8221;), the most recent release of Ubuntu, released on the 29th of October 2009. Before You Start You can only directly upgrade to Ubuntu 9.10 from &#8230; <a href="http://lpilinux.com/how-to-upgrade-you-current-ubantu-in-latest-one.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flpilinux.com%2Fhow-to-upgrade-you-current-ubantu-in-latest-one.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flpilinux.com%2Fhow-to-upgrade-you-current-ubantu-in-latest-one.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This document provides instructions and notes on upgrading to Ubuntu 9.10 (code name &#8220;Karmic Koala&#8221;), the most recent release of Ubuntu, released on the 29th of October 2009. <span> </span><span> </span></p>
<h1 id="Before You Start">Before You Start</h1>
<p><span> </span><span> </span></p>
<ul>
<li>You can only directly upgrade to Ubuntu 9.10 from Ubuntu 9.04 (see <a href="https://help.ubuntu.com/community/UpgradeNotes">UpgradeNotes</a>). <span> </span></li>
<li>Be sure that you have all updates applied to Ubuntu 9.04 before you upgrade. <span> </span></li>
<li>Before upgrading it is recommended that you read the <a href="http://www.ubuntu.com/getubuntu/releasenotes/910">release notes</a> for Ubuntu 9.10, which document caveats and workarounds for known issues in this version. <span> </span><span> </span></li>
</ul>
<p>If you have a version of Ubuntu which was released <em>before</em> Ubuntu 9.04, please see <a href="https://help.ubuntu.com/community/UpgradeNotes">UpgradeNotes</a> for information on how to upgrade. <span> </span><span> </span></p>
<h1 id="Network Upgrade for Ubuntu Desktops (Recommended)">Network Upgrade for Ubuntu Desktops (Recommended)</h1>
<p><span> </span></p>
<p>You can easily upgrade over the network with the following procedure:<span> </span><span> </span></p>
<ol type="1">
<li>Start System/Administration/Update Manager.<span> </span></li>
<li>Click the <strong>Check</strong> button to check for new updates. <span> </span></li>
<li>If there are any updates to install, use the <strong>Install Updates</strong> button to install them, and press <strong>Check</strong> again after that is complete. <span> </span></li>
<li>A message will appear informing you of the availability of the new release.  <img title="um1.png" src="https://help.ubuntu.com/community/KarmicUpgrades?action=AttachFile&amp;do=get&amp;target=um1.png" alt="um1.png" /> <span> </span></li>
<li>Click <strong>Upgrade</strong>. <span> </span></li>
<li>Follow the on-screen instructions.  <span> </span></li>
</ol>
<p><img title="um5.png" src="https://help.ubuntu.com/community/KarmicUpgrades?action=AttachFile&amp;do=get&amp;target=um5.png" alt="um5.png" /></p>
<h2 id="Network Upgrade for Kubuntu Desktops (Recommended)">Network Upgrade for Kubuntu Desktops (Recommended)</h2>
<p>Direct upgrades to Kubuntu 9.10 are supported from either Kubuntu 9.04 or Kubuntu 8.04.</p>
<p><a href="https://help.ubuntu.com/community/KarmicUpgrades/Kubuntu">Upgrade Kubuntu 9.04 to 9.10</a></p>
<p><a href="https://help.ubuntu.com/community/KarmicUpgrades/Kubuntu/8.04">Upgrade Kubuntu 8.04 to 9.10</a></p>
<h2 id="Network Upgrade for Ubuntu Servers (Recommended)">Network Upgrade for Ubuntu Servers (Recommended)</h2>
<ol type="1">
<li>Install <tt>update-manager-core</tt> if it is not already installed:
<pre>sudo apt-get install update-manager-core</pre>
</li>
<li>Launch the upgrade tool:
<pre>sudo do-release-upgrade</pre>
</li>
<li>Follow the on-screen instructions.</li>
</ol>
<h1 id="Upgrading Using the Alternate CD/DVD">Upgrading Using the Alternate CD/DVD</h1>
<p>Use this method if the system being upgraded is not connected to the Internet.</p>
<ol type="1">
<li>Download the <strong>alternate</strong> installation CD</li>
<li><a href="https://help.ubuntu.com/community/BurningIsoHowto#InUbuntu">Burn the ISO to a CD</a> and insert it into the CD-ROM drive of the computer to be upgraded.
<ul>
<li>If the ISO file is on the computer to be upgraded, you could avoid wasting a CD by <a href="https://help.ubuntu.com/community/ManageDiscImages#MountISOFiles">mounting the ISO as a drive</a> with a command like:
<pre>sudo mount -o loop ~/Desktop/ubuntu-9.10-alternate-i386.iso /media/cdrom0</pre>
</li>
</ul>
</li>
<li>A dialog will be displayed offering you the opportunity to upgrade using that CD.</li>
</ol>
<p><img title="umcd1.png" src="https://help.ubuntu.com/community/KarmicUpgrades?action=AttachFile&amp;do=get&amp;target=umcd1.png" alt="umcd1.png" /></p>
<ol type="1">
<li>Follow the on-screen instructions.</li>
</ol>
<p>If the upgrade dialog is not displayed for any reason, you may also run the following command using <tt>Alt+F2</tt>:</p>
<pre>gksu "sh /cdrom/cdromupgrade"</pre>
<p>Or in Kubuntu run the following command using <tt>Alt+F2</tt>:</p>
<pre>kdesudo "sh /cdrom/cdromupgrade"</pre>
<h1 id="Upgrading from a Torrent">Upgrading from a Torrent</h1>
<p>If you&#8217;re familiar with <a href="http://en.wikipedia.org/wiki/BitTorrent_%28protocol%29">torrents</a> and have an ISP that doesn&#8217;t limit them, you can download the upgrade much more quickly. You&#8217;ll also be sharing your bandwidth with other Ubuntu users and helping to reduce the load on the servers, which is especially beneficial on release days when the server overload causes problems.</p>
<p>Just visit <a href="http://releases.ubuntu.com/karmic/">http://releases.ubuntu.com/karmic/</a>, and download the appropriate torrent file for the <strong>alternate</strong> installation CD, found in the list towards the bottom of the page.  (It will have a filename like <em>ubuntu-9.10-alternate-i386.iso.torrent</em>.)  Load it into your <a href="https://help.ubuntu.com/community/BitTorrent">BitTorrent</a> client, and after it is done downloading the ISO, follow the <a href="http://www.ubuntu.com/getubuntu/upgrading#AlternateUpgrade">alternate CD upgrade instructions</a>. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flpilinux.com%2Fhow-to-upgrade-you-current-ubantu-in-latest-one.html&amp;title=How%20to%20Upgrade%20you%20current%20ubantu%20in%20latest%209.10%20%28Ubantu%20Notes%29%3F"><img src="http://lpilinux.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://lpilinux.com/how-to-upgrade-you-current-ubantu-in-latest-one.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

