<?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>Rendy&#039;s Blog &#187; Tutorial</title>
	<atom:link href="http://rendy.org/subjects/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://rendy.org</link>
	<description>Bilingual Computer Science Student Blog</description>
	<lastBuildDate>Fri, 25 Jun 2010 19:17:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to make a panorama picture using only cellphone camera</title>
		<link>http://rendy.org/tutorial/how-to-make-a-panorama-picture-using-only-cellphone-camera/</link>
		<comments>http://rendy.org/tutorial/how-to-make-a-panorama-picture-using-only-cellphone-camera/#comments</comments>
		<pubDate>Mon, 24 May 2010 05:29:51 +0000</pubDate>
		<dc:creator>Rendy</dc:creator>
				<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://rendy.org/tutorial/how-to-make-a-panorama-picture-using-only-cellphone-camera/</guid>
		<description><![CDATA[<p>It’s been long time since my last post. I’m quite busy lately with my college work. But finally I have sometime off, now I want to share some knowledge. Being poor college student and can’t afford $1000 camera doesn’t mean you can’t make a good panorama picture. I will show you how to make one with just cellphone camera (any camera will do) and two software (Windows Live Photo Gallery and Photoshop CS5). Photoshop CS5 is optional, but if you want to fix the picture with relative ease, there’s new feature in Photoshop CS5 called Content Aware Fill.</p>
<p>Okay, first you need <p>Continue reading <a href="http://rendy.org/tutorial/how-to-make-a-panorama-picture-using-only-cellphone-camera/">How to make a panorama picture using only cellphone camera</a></p>


No related posts.]]></description>
			<content:encoded><![CDATA[<p>It’s been long time since my last post. I’m quite busy lately with my college work. But finally I have sometime off, now I want to share some knowledge. Being poor college student and can’t afford $1000 camera doesn’t mean you can’t make a good panorama picture. I will show you how to make one with just cellphone camera (any camera will do) and two software (Windows Live Photo Gallery and Photoshop CS5). Photoshop CS5 is optional, but if you want to fix the picture with relative ease, there’s new feature in Photoshop CS5 called Content Aware Fill.</p>
<p>Okay, first you need several pictures of same location in different angle. In my example I take pictures inside of my university mosque.</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Image012" border="0" alt="Image012" src="http://rendy.org/wp-content/uploads/2010/05/Image012.jpg" width="244" height="184" /> <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Image013" border="0" alt="Image013" src="http://rendy.org/wp-content/uploads/2010/05/Image013.jpg" width="244" height="184" /> <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Image014" border="0" alt="Image014" src="http://rendy.org/wp-content/uploads/2010/05/Image014.jpg" width="244" height="184" /> <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Image015" border="0" alt="Image015" src="http://rendy.org/wp-content/uploads/2010/05/Image015.jpg" width="244" height="184" />&#160; <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Image017" border="0" alt="Image017" src="http://rendy.org/wp-content/uploads/2010/05/Image017.jpg" width="244" height="184" /> </p>
</p>
</p>
</p>
<p>Nice picture right? <img src='http://rendy.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  FYI this picture taken with Nokia 6288 with 2 Megapixel camera. A very outdated phone, but still do it’s job.</p>
<p>We need to stitch the picture together to make a panoramic looks. Open Windows Live Photo Gallery, it’s freeware courtesy of Windows Live.</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="create-panoramic-photo" border="0" alt="create-panoramic-photo" src="http://rendy.org/wp-content/uploads/2010/05/createpanoramicphoto.jpg" width="644" height="280" /> </p>
<p>Select the picture you want to stitch together, and from the toolbar choose <strong>Make</strong> and <strong>Create Panoramic Photo</strong>. Wait several seconds till your picture ready and save the results.</p>
<p>&#160;<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="alhur panoramic 3" border="0" alt="alhur panoramic 3" src="http://rendy.org/wp-content/uploads/2010/05/alhurpanoramic3.jpg" width="644" height="255" /> </p>
</p>
<p>You’re almost done!.&#160; The black corner is the angle that is not included in source picture. You can fix that by take the picture of that angle or just let Photoshop CS5 fill the blank.</p>
<p>Open your panoramic picture with Photoshop CS5</p>
<p>&#160;<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="content-aware-fill" border="0" alt="content-aware-fill" src="http://rendy.org/wp-content/uploads/2010/05/contentawarefill.jpg" width="644" height="387" /> </p>
<p>Select the black section with <strong>Magic Wand Tool</strong>, go to <strong>Edit</strong> and choose <strong>Fill</strong> (Shift+F5).</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="content-aware" border="0" alt="content-aware" src="http://rendy.org/wp-content/uploads/2010/05/contentaware.jpg" width="244" height="194" />     <br />Make sure you use <strong>Content-Aware</strong> and click <strong>OK</strong>. Let’s Photoshop do it’s magic. <img src='http://rendy.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&#160;<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="stitched" border="0" alt="stitched" src="http://rendy.org/wp-content/uploads/2010/05/stitched.jpg" width="644" height="255" /> </p>
</p>
</p>
<p>Done!.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://rendy.org/tutorial/how-to-make-a-panorama-picture-using-only-cellphone-camera/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux Tips : Setting Java programming environment in Ubuntu Linux</title>
		<link>http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/</link>
		<comments>http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 08:47:35 +0000</pubDate>
		<dc:creator>Rendy</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Programming Languages]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/</guid>
		<description><![CDATA[<p>I do a lot of programming in Ubuntu Linux. A couple months ago I started to learn JAVA, previously I have used to program in C/C++ which fortunately Ubuntu is already built in GCC (GNU C Compiler) so everything works out of the box. Unfortunately the case is not the same as JAVA, Ubuntu is not shipped with Java JDK/JRE. So, you must install everything by yourself.</p>
<p>I found out one of my favourite IDE in Windows that support JAVA programming is also available on Linux, it is NetBeans. Netbeans is free Integrated Development Environment (IDE) that supports a lot of languages, <p>Continue reading <a href="http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/">Linux Tips : Setting Java programming environment in Ubuntu Linux</a></p>


Related posts:<ol><li><a href='http://rendy.org/operating-systems/linux-tips-automatically-find-fastest-repository-server-in-ubuntu/' rel='bookmark' title='Permanent Link: Linux Tips : Automatically find Fastest Repository Server in Ubuntu'>Linux Tips : Automatically find Fastest Repository Server in Ubuntu</a></li>
<li><a href='http://rendy.org/operating-systems/linux-command-line-guide/' rel='bookmark' title='Permanent Link: Linux Command Line Guide'>Linux Command Line Guide</a></li>
<li><a href='http://rendy.org/networking-and-the-internet/real-time-proxy-server-monitoring/' rel='bookmark' title='Permanent Link: Real Time Proxy Server Monitoring'>Real Time Proxy Server Monitoring</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I do a lot of <a href="http://rendy.org/download/programming/">programming</a> in Ubuntu Linux. A couple months ago I started to learn JAVA, previously I have used to program in C/C++ which fortunately Ubuntu is already built in <a href="http://rendy.org/download/programming/">GCC</a> (GNU C Compiler) so everything works out of the box. Unfortunately the case is not the same as JAVA, Ubuntu is not shipped with Java JDK/JRE. So, you must install everything by yourself.</p>
<p>I found out one of my favourite IDE in Windows that support JAVA programming is also available on Linux, it is NetBeans. Netbeans is free Integrated Development Environment (IDE) that supports a lot of languages, including Java, JavaScript, PHP, Python, Ruby, C/C++ and more. NetBeans is written in Java and runs with Java Virtual Machine (JVM) installed. For Java development functionality you must install JDK first, but for other languages you can just install JVM.</p>
<h3>Install JDK/JRE Ubuntu Linux</h3>
<p>Okay, let’s start with installing JDK and JRE. There are two ways Installing JDK and JRE, the easy way is from Synaptic Package Manager and the hard way is install from .bin file. Installing from Synaptic Package Manager is the best way when you have internet connection or any access to repository (DVD, server, etc). But if your computer don’t have any access to repository server, you can download .bin file from <a href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">Sun Website</a> from other computer and install it on the computer that you want.</p>
<p><strong><span style="font-size: medium;">Option 1</span></strong><br />
First lets start with the easy way, install from Synaptic. Make sure you have the Multiverse repository enabled.</p>
<blockquote><p>System &gt; Administration &gt; Software Source &gt; Select Multisource &gt; Close</p></blockquote>
<p><a href="http://rendy.org/wp-content/uploads/2010/01/ubuntulinuxmultiverse.png"><img style="display: inline; border-width: 0px;" title="Enable Multiverse Repository Ubuntu Linux" src="http://rendy.org/wp-content/uploads/2010/01/ubuntulinuxmultiverse_thumb.png" border="0" alt="Enable Multiverse Repository Ubuntu Linux" width="244" height="90" /></a></p>
<p>Open your terminal and type the following command to install JDK and JRE</p>
<blockquote><p><code>$ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk</code></p></blockquote>
<p>Wait till it download and install, depend on your connection it should take several minutes.<br />
Make sure the correct version is used by using this command</p>
<blockquote><p>$ sudo update-java-alternatives –s java-6-sun</p></blockquote>
<p>&#8212;</p>
<p><strong><span style="font-size: medium;">Option 2</span></strong></p>
<p>For those who want to install the hard way, first download JDK and JRE from Sun. You will get .bin file.</p>
<p><a href="http://rendy.org/wp-content/uploads/2010/01/DownloadJDKbinfile.jpg"><img style="display: inline; border-width: 0px;" title="Download JDK bin file" src="http://rendy.org/wp-content/uploads/2010/01/DownloadJDKbinfile_thumb.jpg" border="0" alt="Download JDK bin file" width="244" height="89" /></a></p>
<p>Open your terminal, then go to directory where the download file is, and make sure the file is executable.</p>
<blockquote><p>cd /directory/where/you/download/file<br />
sudo chmod +x filename</p></blockquote>
<p>Install the file with this command</p>
<blockquote><p>sudo ./filename</p></blockquote>
<p>Make sure the correct version is used by using this command</p>
<blockquote><p>$ sudo update-java-alternatives –s java-6-sun</p></blockquote>
<h3>Install Netbeans Ubuntu Linux</h3>
<p><strong><span style="font-size: medium;">Option 1</span></strong><br />
Download Netbeans from <a href="http://netbeans.org/downloads/index.html" target="_blank">here</a> and save it to your computer. Let’s say the file is called “netbeans-6.8-ml-linux.sh”. Run your terminal and change directory to where you download the file.</p>
<p><a href="http://rendy.org/wp-content/uploads/2010/01/downloadnetbeans.jpg"><img style="display: inline; border-width: 0px;" title="download netbeans" src="http://rendy.org/wp-content/uploads/2010/01/downloadnetbeans_thumb.jpg" border="0" alt="download netbeans" width="244" height="128" /></a></p>
<blockquote><p>$ cd /direcory/where/you/download/file</p></blockquote>
<p>Make sure the file is present by using ls command. Finally execute the following command</p>
<blockquote><p>$ sudo ./netbeans-6.8-ml-linux</p></blockquote>
<p>After completing command, you will see installer that will install NetBeans into /opt directory. Finish!.</p>
<p>&#8212;</p>
<p><strong><span style="font-size: medium;">Option 2</span></strong><br />
Alternatively you can also install using Synaptic Package Manager, just execute the following command.</p>
<blockquote><p>$sudo apt-get install netbeans</p></blockquote>
<p>Finish!.</p>


<p>Related posts:<ol><li><a href='http://rendy.org/operating-systems/linux-tips-automatically-find-fastest-repository-server-in-ubuntu/' rel='bookmark' title='Permanent Link: Linux Tips : Automatically find Fastest Repository Server in Ubuntu'>Linux Tips : Automatically find Fastest Repository Server in Ubuntu</a></li>
<li><a href='http://rendy.org/operating-systems/linux-command-line-guide/' rel='bookmark' title='Permanent Link: Linux Command Line Guide'>Linux Command Line Guide</a></li>
<li><a href='http://rendy.org/networking-and-the-internet/real-time-proxy-server-monitoring/' rel='bookmark' title='Permanent Link: Real Time Proxy Server Monitoring'>Real Time Proxy Server Monitoring</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Tips : Automatically find Fastest Repository Server in Ubuntu</title>
		<link>http://rendy.org/operating-systems/linux-tips-automatically-find-fastest-repository-server-in-ubuntu/</link>
		<comments>http://rendy.org/operating-systems/linux-tips-automatically-find-fastest-repository-server-in-ubuntu/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 08:23:01 +0000</pubDate>
		<dc:creator>Rendy</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://rendy.org/?p=139</guid>
		<description><![CDATA[<p>I used to have problem when updating security update on my Ubuntu 9.10 (Karmic Koala), the connection was extremely slow even when I’m connected to fast network and occasionally the download was dropped without any reason which could lead a disastrous results. So I’ve been researching and I figured it out the problem is with my poor choice of repository server. The Repository Server I’ve had been using is apparently have some problem with their connection. Problem found and this lead to another problem, how do I look for the fastest Repository Server since there’re so many out there.</p>
<p>The answer is <p>Continue reading <a href="http://rendy.org/operating-systems/linux-tips-automatically-find-fastest-repository-server-in-ubuntu/">Linux Tips : Automatically find Fastest Repository Server in Ubuntu</a></p>


Related posts:<ol><li><a href='http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/' rel='bookmark' title='Permanent Link: Linux Tips : Setting Java programming environment in Ubuntu Linux'>Linux Tips : Setting Java programming environment in Ubuntu Linux</a></li>
<li><a href='http://rendy.org/networking-and-the-internet/real-time-proxy-server-monitoring/' rel='bookmark' title='Permanent Link: Real Time Proxy Server Monitoring'>Real Time Proxy Server Monitoring</a></li>
<li><a href='http://rendy.org/operating-systems/linux-command-line-guide/' rel='bookmark' title='Permanent Link: Linux Command Line Guide'>Linux Command Line Guide</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I used to have problem when updating security update on my Ubuntu 9.10 (Karmic Koala), the connection was extremely slow even when I’m connected to fast network and occasionally the download was dropped without any reason which could lead a disastrous results. So I’ve been researching and I figured it out the problem is with my poor choice of repository server. The Repository Server I’ve had been using is apparently have some problem with their connection. Problem found and this lead to another problem, how do I look for the fastest Repository Server since there’re so many out there.</p>
<p>The answer is to let your system scan for the fastest server available. You will need to launch Software Sources tool, which can be found in</p>
<blockquote><p>System &gt; Administration &gt; Software Sources</p></blockquote>
<p><a href="http://rendy.org/wp-content/uploads/2009/12/softwaresources.jpg"><img style="display: inline; border: 0px;" title="Ubuntu Software Sources" src="http://rendy.org/wp-content/uploads/2009/12/softwaresources_thumb.jpg" border="0" alt="Ubuntu Software Sources" width="222" height="244" /></a></p>
<p>This administrative menu will allow you to change the location of your preferred repository, and change items within the repository you want to subscribe to. You will have the most software available if all boxes are checked.</p>
<p><a href="http://rendy.org/wp-content/uploads/2009/12/othersources.jpg"><img style="display: inline; border: 0px;" title="Other Sources Ubuntu Repository" src="http://rendy.org/wp-content/uploads/2009/12/othersources_thumb.jpg" border="0" alt="Other Sources Ubuntu Repository" width="244" height="228" /></a></p>
<p>From ‘<strong>Ubuntu Software</strong>’ tab select ‘<strong>Other</strong>’ from ‘<strong>Download from:</strong>’ drop-down menu and you’ll be given a list of available server sorted with country.</p>
<p>To have your system test and find the faster server you can select the ‘<strong>Select Best Server</strong>’ option, which will try to connect to each repository server mirror and find the fastest response. After the process done, it will select the fastest server available and you can either change it or run the process again until you&#8217;re satisfied.</p>
<p><a href="http://rendy.org/wp-content/uploads/2009/12/selectbestserver.jpg"><img style="display: inline; border: 0px;" title="Select Best Server" src="http://rendy.org/wp-content/uploads/2009/12/selectbestserver_thumb.jpg" border="0" alt="Select Best Server" width="244" height="228" /></a></p>
<p>note: Tested on Ubuntu 8.04 and 9.10. Your mileage may vary. Try to run the process two or three times until you find the good one. Repository mirror speeds can fluctuate based on many factors (e.g Traffic).</p>


<p>Related posts:<ol><li><a href='http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/' rel='bookmark' title='Permanent Link: Linux Tips : Setting Java programming environment in Ubuntu Linux'>Linux Tips : Setting Java programming environment in Ubuntu Linux</a></li>
<li><a href='http://rendy.org/networking-and-the-internet/real-time-proxy-server-monitoring/' rel='bookmark' title='Permanent Link: Real Time Proxy Server Monitoring'>Real Time Proxy Server Monitoring</a></li>
<li><a href='http://rendy.org/operating-systems/linux-command-line-guide/' rel='bookmark' title='Permanent Link: Linux Command Line Guide'>Linux Command Line Guide</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rendy.org/operating-systems/linux-tips-automatically-find-fastest-repository-server-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux Command Line Guide</title>
		<link>http://rendy.org/operating-systems/linux-command-line-guide/</link>
		<comments>http://rendy.org/operating-systems/linux-command-line-guide/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 23:29:27 +0000</pubDate>
		<dc:creator>Rendy</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Command Line Interface]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://rendy.org/?p=124</guid>
		<description><![CDATA[<p>For those who new to world of Linux, and overwhelmed by CLI. I have a Command Line &#34;Cheat Sheet&#34; that might be what you looking for.</p>
<p>Compression     tar cf file.tar files &#8211; create a tar named file.tar containing files     tar xf file.tar &#8211; extract the files from file.tar     tar cf file.tar.gz files &#8211; create a tar with Gzip compression     tar xf file.tar.gz &#8211; extract a tar using Gzip     tar cf file.tar.bz2 &#8211; create a tar with Bzip2 compression     <p>Continue reading <a href="http://rendy.org/operating-systems/linux-command-line-guide/">Linux Command Line Guide</a></p>


Related posts:<ol><li><a href='http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/' rel='bookmark' title='Permanent Link: Linux Tips : Setting Java programming environment in Ubuntu Linux'>Linux Tips : Setting Java programming environment in Ubuntu Linux</a></li>
<li><a href='http://rendy.org/operating-systems/some-example-common-dos-commands/' rel='bookmark' title='Permanent Link: Some Example Common DOS commands'>Some Example Common DOS commands</a></li>
<li><a href='http://rendy.org/operating-systems/what-is-a-command-prompt/' rel='bookmark' title='Permanent Link: What is a command prompt?'>What is a command prompt?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For those who new to world of Linux, and overwhelmed by CLI. I have a Command Line &quot;Cheat Sheet&quot; that might be what you looking for.</p>
<p><u>Compression</u>     <br /><strong>tar cf file.tar files</strong> &#8211; create a tar named file.tar containing files     <br /><strong>tar xf file.tar</strong> &#8211; extract the files from file.tar     <br /><strong>tar cf file.tar.gz files</strong> &#8211; create a tar with Gzip compression     <br /><strong>tar xf file.tar.gz</strong> &#8211; extract a tar using Gzip     <br /><strong>tar cf file.tar.bz2</strong> &#8211; create a tar with Bzip2 compression     <br /><strong>tar xf file.tar.bz2</strong> &#8211; extract a tar using Bzip2     <br /><strong>gzip file</strong> &#8211; compresses file and renames it to file.gz     <br /><strong>gzip -d file.gz</strong> &#8211; decompresses file.gz back to file</p>
<p><u>Disk Space</u>     <br /><strong>ls -lSr</strong> show files by size, largest last     <br /><strong>df -h</strong> show free space on mounted filesystems     <br /><strong>df -i</strong> show free inodes on mounted filesystems     <br /><strong>fdisk -l</strong> show disks partitions sizes and types     <br /><strong>&gt; file</strong> truncate data of file or create an empty file</p>
<p><u>File Commands</u>     <br /><strong>ls</strong> &#8211; directory listing     <br /><strong>ls -a</strong> &#8211; directory listing with hidden files     <br /><strong>ls -al</strong> &#8211; formatted directory listing with hidden files     <br /><strong>cd dir</strong> &#8211; change directory to dir     <br /><strong>cd</strong> &#8211; change to home     <br /><strong>cd -</strong> &#8211; change back to previous directory     <br /><strong>pwd</strong> &#8211; show current directory     <br /><strong>mkdir dir</strong> &#8211; create directory dir     <br /><strong>rm file</strong> &#8211; delete file     <br /><strong>rmdir dir</strong> &#8211; delete empty directory dir     <br /><strong>rm -r dir</strong> &#8211; recursively delete directory dir (use with caution)     <br /><strong>rm -f file</strong> &#8211; force remove file; no error output if file doesn&#8217;t exist     <br /><strong>rm -rf dir</strong> &#8211; recursively force remove directory dir (use with caution)     <br /><strong>cp file1 file2</strong> &#8211; copy file1 to file2     <br /><strong>cp file1 file2 file3 dir</strong> &#8211; copy file1, file2 and file3 to dir     <br /><strong>cp -r dir1 dir2</strong> &#8211; recursively copy dir1 to dir2; create dir2 if it doesn&#8217;t exist     <br /><strong>mv file1 file2</strong> &#8211; move file1 to file2 if file2 is an existing directory, moves file1 into directory file2     <br /><strong>ln -s file link</strong> &#8211; create symbolic link link to file     <br /><strong>&gt;file</strong> &#8211; create file (use with caution, doing this on an existing file will overwrite the content)     <br /><strong>touch file</strong> &#8211; create or update file     <br /><strong>cat &gt; file</strong> &#8211; places standard input into file     <br /><strong>cat file1 &gt; file2</strong> &#8211; overwrites the content of file2 with the content of file1     <br /><strong>cat file1 &gt;&gt; file2</strong> &#8211; appends the content of file1 to file2     <br /><strong>echo &quot;Hello World&quot; &gt; file</strong> &#8211; overwrites file&#8217;s content with Hellow World     <br /><strong>echo &quot;Hello World&quot; &gt;&gt; file</strong> &#8211; appends Hello World to the end of file     <br /><strong>less file</strong> &#8211; output the contents of file     <br /><strong>more file</strong> &#8211; output the contents of file     <br /><strong>head file</strong> &#8211; output the first 10 lines of file     <br /><strong>tail file</strong> &#8211; output the last 10 lines of file     <br /><strong>tail -f file</strong> &#8211; output the contents of file as it grows, starting with the last 10 lines     <br /><strong>sed &#8216;s/foo/bar/g&#8217; file</strong> &#8211; replaces all occurrences of foo with bar in file     <br /><strong>sed -i.backup &#8216;s/foo/bar/g&#8217; file</strong> &#8211; replaces all occurrences of foo with bar in file after backing up file as file.backup     <br /><strong>rm {m,M}yfile</strong> &#8211; remove files according to a pattern     <br />Example:     <br />$ ls     <br />$ touch myfile Myfile myfile1 Myfile1     <br />$ ls     <br />myfile Myfile myfile1 Myfile1     <br />$ rm {m,M}yfile     <br />$ ls     <br />myfile1 Myfile1</p>
<p><u>File Permissions</u>     <br /><strong>chmod octal file</strong> &#8211; change the permissions of file to octal, which can be found separately for user, group, and world by adding:</p>
<p>* 4 – read (r)    <br />* 2 – write (w)     <br />* 1 – execute (x)</p>
<p>Examples:    <br />chmod 777 &#8211; rwx for all     <br />chmod 755 &#8211; rwx for owner, rx for group and world. For more options, see man chmod</p>
<p><u>Network</u>     <br /><strong>ping host</strong> &#8211; ping host and output results     <br /><strong>whois domain</strong> &#8211; get whois information for domain     <br /><strong>dig domain</strong> &#8211; get DNS information for domain     <br /><strong>dig -x host</strong> &#8211; reverse lookup host     <br /><strong>wget file</strong> &#8211; download file     <br /><strong>wget -c file</strong> &#8211; continue a stopped download</p>
<p><u>Package Manipulation</u>     <br /><strong>apt-cache show foo</strong> &#8211; Show info about package foo     <br /><strong>apt-cache showsrc</strong> &#8211; Displays information about a source package     <br /><strong>apt-cache showpkg</strong> &#8211; Displays information about the packages listed on the command line     <br /><strong>apt-cache depends foo</strong> &#8211; Show the depends of package foo     <br /><strong>apt-cache rdepends</strong> &#8211; Shows reverse dependencies for a package     <br /><strong>apt-cache search foo</strong> &#8211; Find packages that include &quot;foo&quot;     <br /><strong>apt-cache search &#8211;names-only foo</strong> &#8211; Find packages which have &quot;foo&quot; in the filename     <br /><strong>apt-cache pkgnames</strong> &#8211; Fast listing of every package in the system     <br /><strong>apt-cache dump</strong> &#8211; Lists every package in the cache     <br /><strong>apt-cache policy</strong> &#8211; Lists the repositories in which a package exists     <br /><strong>dpkg -L package</strong> &#8211; List files in the package     <br /><strong>dpkg -S foo</strong> &#8211; Find out which package installed foo     <br /><strong>dpkg -c foo</strong> &#8211; Lists the contents of a binary package     <br /><strong>dpkg -f foo</strong> &#8211; Shows the control file for a binary package     <br /><strong>dpkg &#8211;get-selections &gt; /path/selectionfile</strong> &#8211; Get a list of all packages installed     <br /><strong>sudo dpkg &#8211;set-selections &lt; /path/selectionfile &amp;&amp; apt-get dselect-upgrade</strong> &#8211; Install packages from an exported list     <br /><strong>dlocate foo</strong> &#8211; Determines which installed package owns foo     <br /><strong>apt-file search foo</strong> &#8211; Determines which non-installed package owns foo     <br /><strong>sudo aptitude install foo</strong> &#8211; Install package foo     <br /><strong>sudo aptitude remove foo</strong> &#8211; Uninstall package foo     <br /><strong>sudo aptitude purge foo</strong> &#8211; Uninstall package foo and all of its dependencies     <br /><strong>sudo aptitude update</strong> &#8211; Update the package sources     <br /><strong>sudo aptitude safe-upgrade</strong> &#8211; Update all installed packages to the newest versions     <br /><strong>sudo aptitude dist-upgrade</strong> &#8211; Update the kernel to the newest version     <br /><strong>sudo aptitude clean</strong> &#8211; Remove packages from the package cache</p>
<p><u>Process Management</u>     <br /><strong>ps</strong> &#8211; display your currently active processes     <br /><strong>top</strong> &#8211; display all running processes     <br /><strong>kill pid</strong> &#8211; kill process id pid     <br /><strong>killall proc</strong> &#8211; kill all processes named proc * file     <br /><strong>bg</strong> &#8211; lists stopped or background jobs; resume a stopped job in the background     <br /><strong>fg</strong> &#8211; brings the most recent job to foreground     <br /><strong>fg n</strong> &#8211; brings job n to the foreground     <br /><strong>\ls</strong> &#8211; ignore alias ls     <br /><strong>time</strong> <strong>command</strong> see how long a command takes to finish     <br /><strong>which command</strong> display the full path of a command     <br />(cd dir &amp;&amp; command) go to dir, execute command and return to current dir</p>
<p><u>Searching</u>     <br /><strong>grep pattern files</strong> &#8211; search for pattern in files     <br /><strong>grep -r pattern dir</strong> &#8211; search recursively for pattern in dir     <br /><strong>command | grep pattern</strong> &#8211; search for pattern in the output of command     <br /><strong>updatedb</strong> &#8211; updates the slocate database; see next item     <br /><strong>locate file</strong> &#8211; find all instances of file; may need to run updatedb first     <br /><strong>find $HOME -user root</strong> &#8211; find files owned by root in $HOME     <br /><strong>find /path -depth -type d -empty</strong> &#8211; find empty directories     <br /><strong>find /path -type d -empty -exec rm -rf &#8216;{}&#8217; \;</strong> &#8211; find and delete empty directories     <br /><strong>find /path -depth -type f -empty</strong> &#8211; find empty files     <br /><strong>find /path -name [name_of_file]</strong> &#8211; find a file with a specific name     <br /><strong>find /path -name &quot;*.[given_extension]&quot;</strong> &#8211; find a file with a specific extension     <br /><strong>find /path -name &#8216;*.txt&#8217; -perm 644</strong> &#8211; find .txt files with specific permissions     <br /><strong>find /path -perm -[permission_bits]</strong> &#8211; find files with some given permissions     <br /><strong>find /path -name &#8216;[given_name].*&#8217;</strong> &#8211; find files with a given name and any extension     <br /><strong>man -t man | ps2pdf &#8211; &gt; man.pdf</strong> &#8211; make a pdf of a man page</p>
<p><u>Shortcuts</u>     <br /><strong>Ctrl+A</strong> &#8211; move to the start of the line     <br /><strong>Ctrl+E </strong>- move to the end of the line.     <br /><strong>Ctrl+U</strong> &#8211; delete from the cursor to the beginning of the line.     <br /><strong>Ctrl+K</strong> &#8211; delete from the cursor to the end of the line.     <br /><strong>Ctrl+W</strong> &#8211; delete from the cursor to the start of the word.     <br /><strong>Ctrl+Y</strong> &#8211; pastes text from the clipboard.     <br /><strong>Ctrl+L</strong> &#8211; clear the screen leaving the current line at the top of the screen.     <br /><strong>Ctrl+C</strong> &#8211; halts the current command     <br /><strong>Ctrl+Z</strong> &#8211; stops the current command, resume with fg in the foreground or bg in the background     <br /><strong>Ctrl+D</strong> &#8211; log out of current session, similar to exit     <br /><strong>Ctrl+R</strong> &#8211; reverse search     <br /><strong>^abc^xyz</strong> &#8211; replace first occurrence of abc with xyz in last command and execute it     <br /><strong>!!</strong> &#8211; repeats the last command     <br /><strong>sudo !!</strong> &#8211; repeats the last command with sudo privileges     <br /><strong>exit</strong> &#8211; log out of current session</p>
<p><u>Software Installation</u>     <br />Install from source:     <br /><strong>./configure</strong> &#8211; execute the configure script     <br /><strong>make</strong> &#8211; compile the source     <br /><strong>make install</strong> &#8211; install needed files     <br /><strong>dpkg -i pkg.deb</strong> &#8211; install a deb package on .deb-based systems     <br /><strong>rpm -Uvh pkg.rpm</strong> &#8211; install an rpm package on .rpm-based systems</p>
<p><u>SSH</u>     <br /><strong>ssh user@host</strong> &#8211; connect to host as user     <br /><strong>ssh -p port user@host</strong> &#8211; connect to host on port port as user     <br /><strong>ssh-copy-id user@host</strong> &#8211; add your key to host for user to enable a keyed or password-less login</p>
<p><u>System</u>     <br /><strong>date</strong> &#8211; show the current date and time     <br /><strong>cal</strong> &#8211; show this month&#8217;s calendar     <br /><strong>uptime</strong> &#8211; show current uptime     <br /><strong>w</strong> &#8211; display who is online     <br /><strong>whoami</strong> &#8211; who you are logged in as     <br /><strong>finger user</strong> &#8211; display information about user     <br /><strong>uname -a</strong> &#8211; show kernel information     <br /><strong>cat /proc/cpuinfo</strong> &#8211; cpu information     <br /><strong>cat /proc/meminfo</strong> &#8211; memory information     <br /><strong>man command</strong> &#8211; show the manual for command     <br /><strong>df</strong> &#8211; show disk usage     <br /><strong>du</strong> &#8211; show directory space usage     <br /><strong>free</strong> &#8211; show memory and swap usage     <br /><strong>whereis app</strong> &#8211; show possible locations of app     <br /><strong>which app</strong> &#8211; show which app will be run by default     <br /><strong>lshw -html &gt; hardware.html</strong> &#8211; create an overview of hardware     <br /><strong>lsb_release -a</strong> &#8211; show information about the distro     <br /><strong>tr : &#8216;\n&#8217; &lt;&lt;&lt;$PATH</strong> &#8211; show directories in the PATH, one per line     <br /><strong>sed &#8216;s/:/\n/g&#8217; &lt;&lt;&lt;$PATH</strong> &#8211; show directories in the PATH, one per line with sed     <br /><strong>mount</strong> &#8211; list currently mounted file systems     <br /><strong>mount -o loop cdrom.iso /mnt/dir</strong> &#8211; mount cdrom image at /mnt/dir     <br /><strong>lspci</strong> &#8211; list all PCI devices     <br /><strong>lsusb</strong> &#8211; list al USB devices     <br /><strong>who</strong> &#8211; list users currently logged in     <br /><strong>which command</strong> &#8211; show the full path of command     <br /><strong>time command</strong> &#8211; see how long command takes to complete</p>
<p><u>Text Manipulation</u>     <br /><strong>sed &#8216;s/string1/string2/g&#8217;</strong> replace string1 with string2     <br /><strong>sed &#8216;s/\(.*\)1/\12/g&#8217;</strong> modify anystring1 to anystring2     <br /><strong>sed &#8216;/ *#/d; /^ *$/d&#8217;</strong> remove comments and blank lines     <br /><strong>sed &#8216;s/[ \t]*$//&#8217;</strong> remove trailing spaces from lines     <br /><strong>echo &#8216;Test&#8217; | tr &#8216;[:lower:]&#8216; &#8216;[:upper:]&#8216;</strong> case conversion     <br /><strong>history | wc -l</strong> count lines</p>


<p>Related posts:<ol><li><a href='http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/' rel='bookmark' title='Permanent Link: Linux Tips : Setting Java programming environment in Ubuntu Linux'>Linux Tips : Setting Java programming environment in Ubuntu Linux</a></li>
<li><a href='http://rendy.org/operating-systems/some-example-common-dos-commands/' rel='bookmark' title='Permanent Link: Some Example Common DOS commands'>Some Example Common DOS commands</a></li>
<li><a href='http://rendy.org/operating-systems/what-is-a-command-prompt/' rel='bookmark' title='Permanent Link: What is a command prompt?'>What is a command prompt?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rendy.org/operating-systems/linux-command-line-guide/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Real Time Proxy Server Monitoring</title>
		<link>http://rendy.org/networking-and-the-internet/real-time-proxy-server-monitoring/</link>
		<comments>http://rendy.org/networking-and-the-internet/real-time-proxy-server-monitoring/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 19:06:54 +0000</pubDate>
		<dc:creator>Rendy</dc:creator>
				<category><![CDATA[Networking and the Internet]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[Real Time]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Squid]]></category>

		<guid isPermaLink="false">http://rendy.org/2009/12/real-time-proxy-server-monitoring/</guid>
		<description><![CDATA[<p>Monitoring proxy server access is really important for network admin, and this is true for any network administrator from as simple as Internet Cafe, Government Organization, Educational Institution or even Home network. In this article I’ll be using squid as my proxy server, so you’ll need to install special software to monitor your proxy server.</p>
<p>So I assume you already have squid installed as proxy server on your machine, and run without any trouble. You need to install a software called sqstat that will monitor your squid access in real time.</p>
<p>Steps to install and configure sqstat:</p>

Download sqstat packet
[root@rendy ~]# wget http://samm.kiev.ua/sqstat/sqstat-1.20.tar.gz
Extract sqstat <p>Continue reading <a href="http://rendy.org/networking-and-the-internet/real-time-proxy-server-monitoring/">Real Time Proxy Server Monitoring</a></p>


Related posts:<ol><li><a href='http://rendy.org/operating-systems/linux-tips-automatically-find-fastest-repository-server-in-ubuntu/' rel='bookmark' title='Permanent Link: Linux Tips : Automatically find Fastest Repository Server in Ubuntu'>Linux Tips : Automatically find Fastest Repository Server in Ubuntu</a></li>
<li><a href='http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/' rel='bookmark' title='Permanent Link: Linux Tips : Setting Java programming environment in Ubuntu Linux'>Linux Tips : Setting Java programming environment in Ubuntu Linux</a></li>
<li><a href='http://rendy.org/operating-systems/linux-command-line-guide/' rel='bookmark' title='Permanent Link: Linux Command Line Guide'>Linux Command Line Guide</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Monitoring proxy server access is really important for network admin, and this is true for any network administrator from as simple as Internet Cafe, Government Organization, Educational Institution or even Home network. In this article I’ll be using squid as my proxy server, so you’ll need to install special software to monitor your proxy server.</p>
<p>So I assume you already have squid installed as proxy server on your machine, and run without any trouble. You need to install a software called sqstat that will monitor your squid access in real time.</p>
<p>Steps to install and configure sqstat:</p>
<ol>
<li>Download sqstat packet<br />
[root@rendy ~]# wget http://samm.kiev.ua/sqstat/sqstat-1.20.tar.gz</li>
<li>Extract sqstat packet that you just download<br />
[root@rendy ~]# tar -zxvf sqstat-1.20.tar.gz</li>
<li>Move directory that you just extract to your webserver directory<br />
[root@rendy ~]# mv sqstat-1.20 /var/www/html/sqstat</li>
<li>Configure you config.inc.php in your sqstat directory<br />
[root@rendy ~]# cd /var/www/html/sqstat/<br />
[root@rendy sqstat]# mv config.inc.php.defaults config.inc.php<br />
[root@rendy sqstat]# vi config.inc.phpchange this line DEFINE(&#8220;SQSTAT_SHOWLEN&#8221;,60); to DEFINE(&#8220;SQSTAT_SHOWLEN&#8221;,100); and save the configuration.</li>
<li>Edit your squid configuration<br />
[root@rendy ~]# vi /usr/local/squid/etc/squid.conf<br />
##add this line to your squid config fileacl manager proto cache_object<br />
acl webserver src 192.168.1.1/255.255.255.000 ##Edit with your own IP address<br />
http_access allow manager webserver<br />
http_access deny manager</p>
<p>##save your config file</li>
<li>You’re ready, now time to test, Try open your browser and access http://your.proxy.server/sqstat/sqstat.php</li>
</ol>
<p>You good to go!</p>


<p>Related posts:<ol><li><a href='http://rendy.org/operating-systems/linux-tips-automatically-find-fastest-repository-server-in-ubuntu/' rel='bookmark' title='Permanent Link: Linux Tips : Automatically find Fastest Repository Server in Ubuntu'>Linux Tips : Automatically find Fastest Repository Server in Ubuntu</a></li>
<li><a href='http://rendy.org/operating-systems/linux-tips-setting-java-programming-environment-in-ubuntu-linux/' rel='bookmark' title='Permanent Link: Linux Tips : Setting Java programming environment in Ubuntu Linux'>Linux Tips : Setting Java programming environment in Ubuntu Linux</a></li>
<li><a href='http://rendy.org/operating-systems/linux-command-line-guide/' rel='bookmark' title='Permanent Link: Linux Command Line Guide'>Linux Command Line Guide</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://rendy.org/networking-and-the-internet/real-time-proxy-server-monitoring/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
