<?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>TuxCrux &#187; Basics</title>
	<atom:link href="http://tuxcrux.com/category/basics/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuxcrux.com</link>
	<description></description>
	<lastBuildDate>Tue, 06 Dec 2011 10:37:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Anatomy of Android</title>
		<link>http://tuxcrux.com/anatomy-of-android/</link>
		<comments>http://tuxcrux.com/anatomy-of-android/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 10:36:00 +0000</pubDate>
		<dc:creator>TuxCrux Admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Softwares]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[developer tools]]></category>

		<guid isPermaLink="false">http://tuxcrux.com/?p=200</guid>
		<description><![CDATA[Android is one of the most successful product of Google after search engine. Google’s decision to buy Android.inc back in 2005 turned out to be a huge success for them. For the first time, Android came in HTC Dream in 2008, since then the proud Android owners have been eagerly waiting for Pastries’ names or [...]]]></description>
			<content:encoded><![CDATA[<p><em>Android</em> is one of the most successful product of Google after search engine. Google’s decision to buy Android.inc back in 2005 turned out to be a huge success for them. For the first time, Android came in HTC Dream in 2008, since then the proud Android owners have been eagerly waiting for Pastries’ names or more precisely Google Android updates like <em>Cupcake, Donut, Eclair, Froyo, Gingerbread </em>and now <em>Icecream Sandwich</em>. I covered last article on Android Rooting and Flashing and this time I want to give you an insight on this amazing product from an application developer’s eye.</p>
<div id="attachment_201" class="wp-caption alignright" style="width: 310px"><a rel="attachment wp-att-201" href="http://tuxcrux.com/anatomy-of-android/figure-1-android-bus/"><img class="size-medium wp-image-201" title="Figure 1: Android Bus" src="http://tuxcrux.com/wp-content/uploads/2011/12/Figure-1-Android-Bus-300x155.jpg" alt="" width="300" height="155" /></a><p class="wp-caption-text">Android Bus</p></div>
<p>There are broadly two sections of development, one is Android OS development and other is Android application development. I will try to cover this article with intent to anatomize Android from a developer’s context and later on giving a head-on for development with help of tools and platform. Android app market is huge with approximately more than 20 million applications, as a result there are infinite opportunities in area of application development.<br />
<span id="more-200"></span><br />
Let us revisit the Android architecture. Radically starting from the root let us get inside the neogenic design of it.<br />
<strong><br />
<h4>1.Kernel:</h4>
<p></strong> As shown in Figure 1(Figure 1: Android Bus), the Android bus has wheels which represent Linux based kernel which is responsible for moving the Open source head of Android.<br />
Android has a Linux heart. Its kernel is based on the Linux kernel release 2.6.X(X varying with new releases), based on the Android version releases. But it is not full fledged Linux, as Android was envisioned for high performance, optimized for minimum possible system resources consumption. Certain components have been removed from base Linux kernel and at the same time few new patches have been added also. The primary reason for this is that the Linux kernel, that Android has adopted, was for desktop version as compared to Android’s mobile platform(and Tabs). So, patches on basic Linux kernel drivers have been affixed. Some of the enhancements were necessary, like adding Power Management component. Since, the basic Linux kernel was designed for Desktops which are maximum times connected to direct power, so separate Power Management code was written to optimize power consumption; like wake locks are used to keep extracting power for activity. All these components sum-up for better Power Management.<br />
<em><br />
<h4>Some of the additional components of Android kernel are:</em><br />
</n><br />
<em>Logger &amp; Kernel Debugging</em>:</h4>
<p>Logging and debugging activity for better debug process and tracing.<br />
<em><br />
<h4>Low Memory Killer:</h4>
<p></em>To save active system memory, special code components have been written. For instance if an application which is not in use is consuming power, then kernel program for Power management will kill that program freeing Power and CPU resources.<br />
<em><br />
<h4>Binder IPC program:</h4>
<p></em> Since many applications can share system resources and usually interact with each other for process communication, binder IPC program facilitates IPC calls for this purpose. There are other components like Alarm etc but I won’t be discussing them here in this article.</p>
<p>People who are interested in Android OS development can find the code online as it is an Open Source.</p>
<h4><strong>2.Native Libraries:</strong></h4>
<p> <div id="attachment_202" class="wp-caption alignright" style="width: 306px"><a rel="attachment wp-att-202" href="http://tuxcrux.com/anatomy-of-android/figure-2-native-libraries/"><img class="size-medium wp-image-202" title="Figure 2 Native Libraries" src="http://tuxcrux.com/wp-content/uploads/2011/12/Figure-2-Native-Libraries-296x300.jpg" alt="" width="296" height="300" /></a><p class="wp-caption-text">Native Libraries</p></div>Moving up on to the next layer in architecture, which is named native libraries. These are set of libraries specially written to hold various vital components and inbuilt functionalities of Android. For instance SQLite is very light and efficient Relational Database. It is very simple DB designed to hold data storage. WebKit is responsible for application framework for Browser support in Android. WebKit is itself an OpenSource product. This is a very interesting fact about Android that various components which make up Android are themselves OpenSource. WebKit is composite package for any browser’s framework as shown Miren, Dolphin and Opera in Figure 2(Figure 2:Native Libraries) and also, is responsible for many contemporary browsers’ structure. Mediaframework library is for rendering audio/video managing media support for Android through PacketVideo openCORE platform for popular audio/video codecs. Plus there is a hardware acceleration support coded too. And also there is a Surface manager responsible for carrying out “surface rendering” of all activities and bringing them into a single frame. Similar to this, there is Audio flinger which is responsible to give single frame to all audio inputs(Like Bluetooth, media and system sounds). libc library is actually Bionic libc in Android. It is custom, rewritten version, especially prepared for embedded purposes. It is smaller in size and faster in implementation, and licensed to BSD.  libc is one package for all important libraries bundled up together. Bionic libc has special inside support for native functionalities of Android. Then there are core hardware libraries essential for implementation of Android hardware.<br />
<div id="attachment_205" class="wp-caption aligncenter" style="width: 520px"><a href="http://tuxcrux.com/anatomy-of-android/figure-3-surface-manager/" rel="attachment wp-att-205"><img src="http://tuxcrux.com/wp-content/uploads/2011/12/Figure-3-Surface-Manager.jpg" alt="" title="Figure 3 Surface Manager" width="510" height="510" class="size-full wp-image-205" /></a><p class="wp-caption-text">Surface Manager</p></div><br />
<h4><strong>3. Dalvic Virtual Machine:</strong></h4>
<p>Android processes are themselves executed as separate Virtual Machines. That means each application is executed as a separate process, which again means that a separate stack of execution is made in which a seprate libc component, and system resources are allocated. The reason for making each application an independent entity is that, Android has been designed to rely on minimum possible system resources and it is easier to manage them as VMs. It executes Dalvik Executables .dex files, which are zipped in .apk files. It has byte code converter especially designed to support different platforms depending on the manufacturers.<br />
<strong><br />
<h4>4. Core Libraries:</h4>
<p></strong> These are core group of libraries of Java made for application development platform.<br />
<strong><br />
<h4>5. Application Framework:</h4>
<p></strong> This layer is active behind your working Mobile’s screen, behind the screen or scene because applications do not access them directly. Hardware services like Telephony Manager also constitutes this. Hardware services provide access to lower level hardware APIs like Bluetooth, telephony, radio etc. Activity manager deals with application lifecycle. There are various other managing components too.</p>
<p><em><br />
<h4>Switching on an Android…Behind the Scene! </h4>
<p></em><br />
<div id="attachment_203" class="wp-caption alignright" style="width: 186px"><a rel="attachment wp-att-203" href="http://tuxcrux.com/anatomy-of-android/figure-4-application-stack/"><img class="size-medium wp-image-203" title="Figure 4 Application Stack" src="http://tuxcrux.com/wp-content/uploads/2011/12/Figure-4-Application-Stack-176x300.jpg" alt="" width="176" height="300" /></a><p class="wp-caption-text">Application Stack</p></div>Since Android is Linux based, so when you switch on your phone, the bootloader loads the kernel which in turn starts init process, responsible for starting first Dalvic cache process called zygote, various daemons like usbd(USB), adbd(Android Debug Bridge), debuggerd and rild(Radio Interface Layer Daemon). Zygote is responsible for starting-up, initializing Dalvic Virtual Machine, listening requests for applications for new VM processes. Also it initializes the Run time managers like Surface flinger and Audio Flinger which are responsible for managing single visual frame for various visual inputs like Wallpaper, widgets and toolbars etc. and similarly for redirecting audio stream.  Runtime services start Service manager, which is also responsible for surface flinger as well as audio flinger. All the Android services like Telephony manager, Bluetooth manager, Activity manager, Window Manager, Package manager and Power manager are registered under Service manger. So now when an application is started a separate stack is started for it having separate VM machine and resources as shown in Figure 4(Figure 4:Application Stack).</p>
<p><strong><em><br />
<h4>Inside an Application:</h4>
<p></em></strong></p>
<h4>There are four major components of applications:</h4>
<p><em>Activity, Service, Content provider and Receivers</em><br />
<em><br />
<h4>Activity:</h4>
<p></em> An activity can be explained as one view of an application like login page of an application which can be called as Activity.<br />
Following is a piece of demo for invoking activity in Java class:<br />
…</p>
<p>Java methods like OnCreate(), OnStart(), OnResume(), OnPause(), OnStop() and  OnDestroy() are involved in an Activity’s initialization.<br />
In Figure 5(Figure 5: Switching between apps) shows you a scenario from switching from a music player and coming back; it can be applicable for removing and plugging in earphones also which enables and disables the music playing.</p>
<p><div id="attachment_204" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-204" href="http://tuxcrux.com/anatomy-of-android/figure-5-switchin-in-app/"><img class="size-medium wp-image-204" title="Figure 5 Switchin in App" src="http://tuxcrux.com/wp-content/uploads/2011/12/Figure-5-Switchin-in-App-300x300.jpg" alt="" width="300" height="300" /></a><p class="wp-caption-text">Switchin in App</p></div>OnStop(), OnDestroy() and OnCreate() are followed for the removing an activity from memory.</p>
<h4><em>Services:</em></h4>
<p> Service is something which runs in background. Services contain all the services which are running in background to support what is projected in foreground. For e.g. running music in background is a service.<br />
Service class must be extended for a new service.</p>
<p><em><br />
<h4>Content Provider:</h4>
<p></em>Content provider is shared set of data that can be utilized by an application. This shared data can live in SQLite, data store or XML.<br />
<em><br />
<h4>Receiver:</h4>
<p></em> Receiver is responsible for listening to alerts and broadcasts. Alert can be something like Less Battery or USB connected and broadcast message is like receiving a new message.</p>
<p>There is a wide variety of tools and services available for application developers.<br />
If you want to go into application development for Android then you need to be educated about the following points and tools.<br />
First of all we need to install SDK or Software Development Kit, Android Development Tools and then set up a platform for this. So let me give you an overview the process of development.<br />
First you need to install SDK depending on the platform version you want to work on. Then you need to download eclipse plugin or any other available IDEs for Android development. Then one has to set up a virtual device (AVD) which is connected through ADB (Android Development Bridge) to an emulator to run the application. After developing a project, you can test it on emulator by running your application. Then comes the debugging part; DDMS (Dalvik Debug Monitor Server) which not only can be used to debug the program but also for checking various action points and allocation of system resources like memory.</p>
<p>There is one more development kit called IntelliJ IDEA from Netbeans.of Java.<br />
There is a list of Emulators beside the basic SDK emulator, which can be used for the purpose of testing:<br />
•	Marvin ZX Spectrum<br />
•	Frodo C64<br />
•	Snes9x EX<br />
•	PC Engine<br />
•	FPSE ps1 emulator<br />
•	N64oid &#8211; N64.<br />
•	UAE4Droid<br />
•	SNesoid<br />
•	NESoid</p>
<p>Please note that many of them are used by game developers and highly enthusiastic gamers to test games. SDK tools itself contains a wide variety of tools which are responsible for different purposes altogether.<br />
Some of them are:<br />
Dmtracedump, Draw 9-patch(Graphical tool), Hierarchy Viewer (Debug and optimize an UI), mksdcard, monkeyrunner(API for writing programs), sqlite3(Access the SQLite data).</p>
]]></content:encoded>
			<wfw:commentRss>http://tuxcrux.com/anatomy-of-android/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting acquainted to Major Linux Firewalls and their comparison!</title>
		<link>http://tuxcrux.com/getting-acquainted-to-major-linux-firewalls-and-their-comparison/</link>
		<comments>http://tuxcrux.com/getting-acquainted-to-major-linux-firewalls-and-their-comparison/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 10:50:22 +0000</pubDate>
		<dc:creator>TuxCrux Admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Softwares]]></category>

		<guid isPermaLink="false">http://tuxcrux.com/?p=180</guid>
		<description><![CDATA[When you listen to the Firewall your sensory nerves impulse the brain signals to reproduce a scene in your mind related to blocking of popular Social networking websites, Intrusion Capturing and blocking applications. Firewalls are not just about the blocking some web content or restricting access over a network. It is one big bowl of [...]]]></description>
			<content:encoded><![CDATA[<p>When you listen to the Firewall your sensory nerves impulse the brain signals to reproduce a scene in your mind related to blocking of popular Social networking websites, Intrusion Capturing and blocking applications. Firewalls are not just about the blocking some web content or restricting access over a network. It is one big bowl of supernumerary possibilities. Though this article is not about the introduction to Firewall but still I want to reproduce few very ordinary real life scenes to produce the analogy with Firewall.</p>
<p>You are walking down a dark road suddenly someone jumps from the dark with a knife in his hand, force you and takes away all your money , Credit Card , DL and your Car keys. Around every corner lurks danger and with nowadays you definitely need a big, burly bodyguard down in that street with you. Firewall is a specially designed software to protect you from mean guys online. Without a Firewall you will be like a millionaire carrying all its wealth in a suitcase inviting anyone to come and take it all away.</p>
<p>For all those who are still dazed and confused about the analogy let me get real. Firewall is a system or group of systems that enforces an access control policy between two networks. Their two major mechanisms that exist in a firewall are for allowing and blocking of traffic based on the criteria specified. The third mechanism that has been added recently is keeping a log as this help for future predictions in case of future requests, because of the logging procedure we can now develop various tools to combat different kind of web attacks. Hence the three main fundaments of a firewall are Forwarding, Blocking, Logging/Accounting. A Firewall can be prepared to work either on your machine so that it can protect as you use the internet or it can made to run between your network and your connection to the internet . We will be looking at selection of these in this roundup.</p>
<p>The reason why Open Source Firewalls are better source to drench your curiosity about Firewall, is that these days Infrastructure tool is getting green with Open Source. You can see transitions in various organizations fully migrating to Open Source.</p>
<p><span id="more-180"></span></p>
<p><strong>Some of the Top Firewalls Around:</strong></p>
<p>Moving on with the topic lets remove the curtains from some of the big names in the firewall industry. Using a Linux kernel you there exists a humungous chance that u might have already been introduced to some of these rulers of the security world. Today we will be going through iptables, IPCop, Shorewall, UFW and OpenBSD. These are some of the most widely used firewalls in current scenario. As per an online survey where 160 users participated these were the results</p>
<p style="text-align: center;"><strong><a rel="attachment wp-att-181" href="http://tuxcrux.com/getting-acquainted-to-major-linux-firewalls-and-their-comparison/figure-1/"><img class="size-medium wp-image-181 aligncenter" title="Figure 1" src="http://tuxcrux.com/wp-content/uploads/2011/09/Figure-1-300x179.jpg" alt="" width="300" height="179" /></a><br />
</strong></p>
<p><em>Lets get them now one by one</em>.</p>
<p><em>Iptables</em>: Iptables is an user space application program that does packet filtering, network address translation (NAT), and port address translation (PAT). This is the basic firewall that comes preinstalled with various Linux kernels. Iptables became primary Firewall from kernel version 2.4x onwards. It replaced its predecessor called IpChains.</p>
<p>IpTables allows a System Administrator to configure the tables provided by the Linux kernel firewall (implemented as different Netfilter modules) and the chains and rules it stores. Different kernel modules and programs are currently used for different protocols; IpTables applies to IPv4, ip6tables to IPv6, arptables to ARP, and ebtables for Ethernet frames. IpTables requires elevated privileges to operate and must be executed by user root, otherwise it fails to function. On most Linux systems, IpTables is installed as <em>/usr/sbin/IpTables</em>.<br />
<a rel="attachment wp-att-182" href="http://tuxcrux.com/getting-acquainted-to-major-linux-firewalls-and-their-comparison/figure-2/"><img class="alignright size-medium wp-image-182" title="Figure 2" src="http://tuxcrux.com/wp-content/uploads/2011/09/Figure-2-300x212.png" alt="" width="300" height="212" /></a></p>
<p>You can use Iptables to achieve all the basic essentials of network security i.e. Blocking, Accounting and Forwarding.</p>
<p>To list the existing rules in your firewall type:</p>
<p>&#8212;&#8212;CODE&#8212;&#8212;</p>
<p>sudo iptables –L</p>
<p>&#8212;-CODE&#8212;&#8211;</p>
<p>For those of you using iptables for the first time will most probably see a Firewall with no rules in there, this is because though an iptables firewall is provided, its use can vary from user to user as per their need. So you need to set up various rules depending on the type of protection you need. If your version of the Linux does not have this basic tool just download it from Netfilter’s website.</p>
<p><em>Ipcop</em> : This is a stateful firewall based on Linux netfilter .Some of IPCops impressive base install features include: secure https , DHCP Server security, Proxying, DNS Proxying, Timed Server, Dynamic DNS configurations, Traffic prioritization ,  Intrusion Detection using Snort, ISDN/ADSL device support functionality , VPN (IPSec/PPTP)functionality and  Traffic /Systems /Firewall /IDS graphing. Apart from the astounding base features there are dozens of add-ons which can further expand the security scope of your IPCop from Web Filtering to Anti virus scanning.</p>
<p>[Figure 4:Ipcop’s URL Filter]<a rel="attachment wp-att-183" href="http://tuxcrux.com/getting-acquainted-to-major-linux-firewalls-and-their-comparison/figure-4/"><img class="alignright size-medium wp-image-183" title="Figure 4" src="http://tuxcrux.com/wp-content/uploads/2011/09/Figure-4-300x202.png" alt="" width="300" height="202" /></a></p>
<p>If you work on a SOHO network, then you can just use any old PC and convert it into an protector for your network interface. Just run this firewall on a low power PC and it will be the thing you always needed. You just need to establish the ground rules using simple GUI&#8217;s and leave the rest to this tool. Feel free now and use the internet with your networks personalized bodyguard. In addition to the Firewall effect it also increases your net experience by just storing the frequently used information.</p>
<p><em>Shorewall :</em></p>
<p>Also known as Shoreline Firewall is one of the advanced tools available when you want to stick with iptables. As the logo says “iptables made easy”.<br />
<a rel="attachment wp-att-184" href="http://tuxcrux.com/getting-acquainted-to-major-linux-firewalls-and-their-comparison/figure-3/"><img class="alignright size-medium wp-image-184" title="Figure 3" src="http://tuxcrux.com/wp-content/uploads/2011/09/Figure-3-300x205.png" alt="" width="300" height="205" /></a></p>
<p>If you have hard time understanding iptables rules you should really try Shorewall as it provides a high level abstraction of iptables rules in text files.</p>
<p><a href="http://www.shorewall.net/Introduction.html"></a></p>
<p><a href="http://www.shorewall.net/Introduction.html">http://www.shorewall.net/Introduction.html</a></p>
<p>You have to describe all of the firewall requirements using entries among a group of configuration files.  then analyses these files and using the iptables and its utilities , Shirewall then configures Ntefilter and the networking components of your Linux to match the specified requirements. Shorewall can be used on a dedicated system , a muti functional gateway or a standalone Linux PC .</p>
<p>Shorewall does not use Netfilter&#8217;s ipchains compatibility mode and can thus take advantage of Netfilter&#8217;s connection state tracking capabilities.</p>
<p><em>UFW-Uncomplicated Firewall :</em></p>
<p>Ufw is another tool to manage the netfilter iptables firewall. It is the default Ubuntu firewall configuration .<a href="http://linuxaria.com/tag/iptables"></a></p>
<p>UFW provides for an easy and interactive tool to create an IPv4 or IPv6 host-based firewall.  It uses a iptables for configuration  and a command prompt interface consisting of a small number of  simple instructions . Its graphical interface is Gufw. It is very simple and intuitive to maintain your iptables using Gufw .It can be used on any Linux system that has python, GTK and ufw. UFW can be installed by just 1 simple command on your command prompt “sudo apt-get install ufw”. By default UFW is disabled. To enable UFW just type “sudo ufw enable “on your command prompt. UFW can now be used to perform all the stuff you can do with the help of iptables.</p>
<p><em>OpenBSD and PF :</em></p>
<p>The OpenBSD project produces a FREE, multi-platform 4.4BSD-based UNIX-like operating system. PF implies Packet filter. PF is licensed for BSD and is developed on OpenBSD platform . PF firewall  is preinstalled  on OpenBSD, FreeBSD, NetBSD. PF can be used to perform Packet Filtering , Port scanning , Port forwarding , IP filtering, Prioritization of packets , Log data , and other firewall basic operations .</p>
<p><strong>Conclusions :</strong></p>
<p style="text-align: left;"><strong> </strong></p>
<p style="text-align: left;">Iptables : This is basically for explorers , thinkers or in short developers. The limits are up to what you can think .You can create scripts to create whatever kind of protection you need. Iptables is the most common backend for most successful firewalls around.</p>
<p style="text-align: left;"><em><span style="text-decoration: underline;">Ipcop</span></em>: This Firewall can do all types of tasks but is more suggested for the SOHO networks. Easy to use, Interactive GUIs, Free license, Open source,etc. Makes it one of the most widely used firewalls around the Linux world.</p>
<p style="text-align: left;"><em>Shorewall Firewall</em>: ‘Iptables made easy’, well if you need to work with iptables but you are having a hard time understanding or learning its commands, what you need is a shorewall firewall i.e. Shoreline. It provides with functions that read what u need from text files and give you a firewall based on iptables that will suit your needs. In short this can be called as iptables simplified</p>
<p style="text-align: left;"><em>UFW</em>: This is again a configuration tool for iptables. It is the default firewall configuration system which comes already installed on many Linux kernals. Gufw is the part that controls the GUI’s for this firewall configuration system.</p>
<p style="text-align: left;">The GUI’s are quit interactive and make it easier to manage a firewall of your own.</p>
<p style="text-align: left;"><em>OpenBSD and PF</em>: PF as the name goes Packet Filter is the component that handles the network interface on OpenBSD. It comes preinstalled on major BSD kernels . It can supply for all the needs of a firewall for the BSD systems.</p>
]]></content:encoded>
			<wfw:commentRss>http://tuxcrux.com/getting-acquainted-to-major-linux-firewalls-and-their-comparison/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MUTT- The MUA you can play with!</title>
		<link>http://tuxcrux.com/mutt-the-mua-you-can-play-with-3/</link>
		<comments>http://tuxcrux.com/mutt-the-mua-you-can-play-with-3/#comments</comments>
		<pubDate>Sun, 27 Mar 2011 03:10:03 +0000</pubDate>
		<dc:creator>TuxCrux Admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Softwares]]></category>

		<guid isPermaLink="false">http://tuxcrux.com/?p=157</guid>
		<description><![CDATA[Many of you must be knowing about it, would have been using it and the people who have used this  they know how addictive and whimsical, this thing is. For those who haven&#8217;t listened about it or just have listened someone just mumbling about it, I have created this piece of manual or rather say [...]]]></description>
			<content:encoded><![CDATA[<p>Many of you must be knowing about it, would have been using it and the people who have used this  they know how addictive and whimsical, this thing is. For those who haven&#8217;t listened about it or just have listened someone just mumbling about it, I have created this piece of manual or rather say learn-play sheet for you. If you like to learn and play in Linux and haven’t yet played with MUTT, this is for you.</p>
<p>Before all that fun and learn I want to explain the concept of mail and general email-flow concept.</p>
<p><strong>What is MUTT?</strong></p>
<p>We  all know various mail services and we are using them like our organ.  Now can’t live without them literally. That is why we are extending them to our life. That is the reason Blackberry got famous because of their exclusive mail service blended in it; more providers came into play, they also tried to extend it to mobiles not exactly like Blackberry but in their own ways. Now every smart phone has Mail app. Mails are  an essential component of our life now.  Most prominent of them  Gmail/Yahoo/Hotmail etc are all available across  the  cloud.</p>
<p>Now when we say mailclient, they are the  one which organize  those  mails and let you arrange /store  and read them according to your own preferences. You use them, some  of the popular ones  are: <em>Mozilla Thunderbird</em>, <em>Microsoft office Outlook</em> and <em>Outlook</em> <em>Express</em> and the  one which is topic of this  article  MUTT.  So now it is clear that mutt is an email client or what we say MUA(Mail User Agent).</p>
<p>These are following protocols used for mail  purpose:</p>
<ul>
<li>IMAP4(Most recent one in the list)</li>
<li>SMTP</li>
<li>POP3</li>
<li>HTTP</li>
</ul>
<p>IMAP4 replaced POP3 in business. IMAP4 is better/faster/lighter and more proper than POP3 so it got over POP3 in maximum mail services. IMPA4 and POP3 is for incoming. Ports defined for IMAP4 is 993, where it is  995 for POP3. SMTP is used for outgoing and port for it is 465. HTTP is not only dedicated to email services but it is used for accessing mailboxes. Secured version is used, so port is 443.<br />
<span id="more-157"></span><br />
<strong>MAIL Components Explained:</strong></p>
<p>MUA,MTA, MDA and MRA are involved in a ideal mailflow process. Now what are they I just give them here a brief intro and explain them by the process of email flow.</p>
<p><strong>MUA(Mail User Agent):</strong> It is the client program in which the user sends and receives mail. It may use scripts to complete its actions. It can be highly configurable like we do have MUTT. For instance for explaining one can configure text editors or word processors of its own choice for writing the email. Various other Linux MUAs are <em>kmail</em>, <em>evolution</em>, <em>sylpheed</em>, <em>mulberry</em>, <em>pegasus</em>, <em>pine</em> and <em>elm</em>.</p>
<p><strong>MTA(Mail Transfer Agent):</strong> They are the one which receive envelopes from MUA and send, receive and route them accordingly. MTA don&#8217;t read headers they just see if the envelopes can be delivered to mailboxes. MTAs are vital components they don&#8217;t just send it ahead. But they decide whether emails are valid and can be moved ahead or not, if it contains error mail is sent back to user. It also acts SPAM FILTER for mail services. MTAs test the emails against a certain blacklist which they have. So they are not just transfer agent, they are smart agent. MTA uses SMTP for talking. Some of the popular MTAs for the job are <em>sendmail</em>, <em>qmail</em>, <em>exim</em> and <em>postfix</em>.</p>
<p><strong>MDA(Mail Delivery Agent):</strong> They take mail from MTA and do the actual delivery plus filtering which may actually include many functions like virus detection, sorting and automatic answering.</p>
<p><em>Maildrop</em> and procmail are MDAs.</p>
<p><strong>MRA(Mail Retrieval Agent):</strong> MDA transfer mail to Mailbox. MRA fetch them from mailbox and then delivers to MUA. Some of them are <em>fetchmail</em>, <em>getmail</em> and <em>retchmail</em>.</p>
<p>Now I chain up them in a flow how they act in a mailflow process:</p>
<div class="wp-caption alignright" style="width: 462px"><a href="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR1.jpg"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR1.jpg" border="0" alt="" width="452" height="258" /></a><p class="wp-caption-text">Mailflow Process</p></div>
<p>Email starts form a user who write it at MUA. MUA provides various  options  through programs and scripts. It may also contain security and encryption options . The finished mail in form of Envelope  transfers to MTA.  MTA receives  envelope and irrespective of message inside validates it. If message is proper, routes it ahead in internet cloud and if it is invalid, then it is reflected back to user with error message. Mail is checked against <em>SPAM blacklist</em> and validated and is forwarded to MTA. Please note if it is special mail service or dedicated mail service MUA can directly send it to receiving MTA <em>bypassing</em> internet. MTAs uses SMTP.</p>
<p>MDA receives mail from MTA and they do filtering process which include sorting according to various parameters and <em>virus protection</em> or may include <em>auto-answering</em> options. MDA delivers them to mailboxes. Then MRA fetches these mails from mailboxes using IMAP4 or POP3 and transfers them to MUA.</p>
<p>Now coming over to our very own MUTT, we know MUTT is MUA. It uses sendmail as MTA in our case.</p>
<p>Some of the key features of MUTT which makes it special are:</p>
<ul>
<li>Its  own configurable color setting. For messages, mailboxes and all.</li>
<li>MIME support / PGP Support(Encryption/Signature)</li>
<li>Support for multiple mailbox formats</li>
<li>Keybindings and macros( They are superb. Easily they are one of the best feature of MUTT. You say the action and give and do any key binding for it.)</li>
<li>Searches using regular expressions, including an internal pattern matching language</li>
<li>It has .****rc configuration files for various setups of it, which are easy to edit and maintain.</li>
</ul>
<p>Despite of them all it have all other regular features.</p>
<p>MUTT is text based because its developers think this is where it should be because if it is terminal based , it makes it more powerful.</p>
<p>I used MUTT version <em>1.4.2.3</em> which with sendmail as its MTA on my Ubuntu 10.10. As common user like me, you do not use our own domain services and our own mailboxes like those organizations where MUTT is highly used. I tried to configure my Gmail accounts to play with MUTT. Yes you may also configure any mail accounts using SMTP and IMAP protocols. For this you may refer MUTT manuals.</p>
<p><em>Installing MUTT is stunningly easy</em>.</p>
<p>On Debians(For others too you may find tutorials) just write:</p>
<p><strong>#&gt; apt-get install mutt</strong></p>
<p>Reading package lists&#8230; Done</p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<p>You may require the root login to install it and use it. It installs it in root directory. So if you want to access its files change to root directory after super user login where <strong>~</strong> indicates root home directory which is generally locked when accessing through GUI. Type:</p>
<p><strong>#&gt;cd ~</strong></p>
<p>Please remember that it creates a lot of hidden directories after installation starting with . In case you don&#8217;t know.</p>
<p>To see all directories and files you may see all of them by pressing:</p>
<p><strong>#&gt;ls –a</strong></p>
<p><strong> </strong></p>
<p>MUTT directory content look like one below:</p>
<div class="wp-caption aligncenter" style="width: 628px"><a href="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR2.png"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR2.png" border="0" alt="" width="618" height="153" /></a><p class="wp-caption-text">MUTT directory content </p></div>
<p>The most basic configuration file for MUTT is called <em>.muttrc</em> where <strong>.</strong> signifies it as hidden file. It is one power script which controls whole MUTT configuration. You may open it with any editor you want and add/remove and manipulate the stuff.</p>
<p>You may prepare your .muttrc file by having look on to sample .muttrc files. To give a glance I show my .muttrc file here( I am afraid of it though)</p>
<div class="wp-caption alignright" style="width: 460px"><a href="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR3.png"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR3.png" border="0" alt="" width="450" height="282" /></a><p class="wp-caption-text">.muttrc file </p></div>
<p>Please note that this is just a stub of .muttrc file. Whole content can&#8217;t be shown here.</p>
<p>To start MUTT you should have super user access or user with adequate privileges. Just type mutt from any space and it will be fire up.</p>
<p>Now configure your gmail account you may have to add following lines to your .muttrc file :</p>
<p><strong>set imap_user = &#8220;yourgmailid1@gmail.com&#8221;</strong></p>
<p><strong>set imap_pass = &#8220;&#8221;</strong></p>
<p><strong>set folder = &#8220;imaps://imap.gmail.com:993&#8243;</strong></p>
<p><strong>set spoolfile=&#8221;+INBOX&#8221;</strong></p>
<p><strong>set postponed=&#8221;+[Gmail]/Drafts&#8221;</strong></p>
<p><strong>set record=+[Gmail]/&#8221;Sent Mail&#8221;</strong><strong> </strong></p>
<p><strong>set from = &#8220;abc@abc.com&#8221;</strong></p>
<p><strong>set realname = &#8220;yourname&#8221;</strong></p>
<p><strong>set smtp_url = &#8220;smtp://gmailuserid2@smtp.gmail.com:587/&#8221;</strong></p>
<p><strong>set smtp_pass=&#8221;"</strong></p>
<p><strong>set from=&#8221;gmailuserid2@gmail.com&#8221;</strong></p>
<p><strong>set realname=&#8221;anythingyouwant&#8221;</strong></p>
<p><strong> </strong></p>
<p>Please note you may use multiple accounts for incoming and outgoing mails and use <em>Account-hook </em> for that. If you just write down the multiple IDs in suppose incoming mails automatically the later in the queue will be opened by MUTT. I have used different incoming and outgoing IDs in my configuration. Please note I have kept the password blank because of security reason. If you don&#8217;t enter the corresponding password here you will  be asked for it while you use it in MUTT.</p>
<p>Note that SMTP URL and IMAP URL are the corresponding address mailboxes of Google for incoming and outgoing.</p>
<p>But it’s not just that you want for activating Gmail in MUTT. You need various SSL security certificates for that. They can be added right from command line using apt-get just like other packages. Every time after initializing MUTT it installs these certificates and try to access the Gmail mailbox.</p>
<p>Following is the accessing a mailbox in progress</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR4.png" border="0" alt="Tuxcrux-header" width="395" height="100" /></p>
<p><strong> </strong></p>
<p><em>Below figure shows some functions for which generic binding can be done. Above shows the above in figure shows some the keys which have been keybounded</em><em>.</em></p>
<div class="wp-caption alignright" style="width: 465px"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR5.png" border="0" alt="" width="455" height="225" /><p class="wp-caption-text">Generic Binding </p></div>
<p><strong> </strong></p>
<p><em>Aliases can also be used in MUTT</em></p>
<p>An alias file needs to be created for the purpose where all the aliases are defined with their extensions. I use in this example <strong>s</strong> for <em>sariskka@gmail.com</em> which I have defined in my aliases file.</p>
<p>Aliases file format is like:</p>
<p><strong>alias b namby147@gmail.com</strong></p>
<p><strong>alias s sariskka@gmail.com</strong></p>
<p><strong>alias sa sanskriver@gmail.com</strong></p>
<p><strong> </strong></p>
<p>Following in figure was the sa alias which was auto filled with EmaiID later.</p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR6.png" border="0" alt="Tuxcrux-header" width="627" height="160" /></p>
<p>The source for alias file need to be defined in .muttrc like :</p>
<p><strong>set alias_file=~/.mutt/aliases</strong></p>
<p><strong>source ~/.mutt/aliases</strong></p>
<p><em>Install Abook for simpler alias setting</em>.</p>
<p>Just hit <em>Ctrl A</em> and if you have selected some mail it will let you to store alias for current email address. Or you can add more emails by accessing it through terminal. <em>Abook is best phonebook integration for MUTT.</em></p>
<p>Following is an alias making in progress of LFY editor Aditya:</p>
<p><em> </em></p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR10.png" border="0" alt="Tuxcrux-header" width="680" height="47" /></p>
<p>For integration of Abook you need to add following text in .muttrc file:</p>
<p><strong>set query_command=&#8221;abook &#8211;mutt-query &#8216;%s&#8217;&#8221;</strong></p>
<p><strong>macro index,pager A &#8220;abook &#8211;add-email&#8221; &#8220;add the sender address to abook&#8221;</strong></p>
<p><strong>macro generic,index,pager \ca &#8220;abook&#8221; &#8220;launch abook&#8221;</strong></p>
<p>We can use signatures in for which separate <em>.signature</em> file is needed.</p>
<p>Source for signature is defined like:</p>
<p><strong>set signature=&#8221;~/.signature&#8221;</strong></p>
<p>My signature looks like in light green in Gmail to which I have sent this mail. You may make it much beautiful than me.:</p>
<div class="wp-caption alignleft" style="width: 179px"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR7.png" border="0" alt="" width="169" height="156" /><p class="wp-caption-text">Signature</p></div>
<p><strong> </strong></p>
<p><em>Please note that editor for writing mail is Nano. You may use any other editor for the purpose for this you just have to set another editor in .muttrc file like:</em></p>
<p><strong> set editor=&#8221;emacs -nw&#8221;</strong></p>
<p><em>Any file can be attached by simply attaching few options and giving path that too before even starting mutt.</em></p>
<p><strong>root@tuxxxy:~# mutt -s &#8220;HI&#8221; -a &#8220;/home/tuxxxy/Desktop/jkhk&#8221; </strong></p>
<p><strong>-s </strong> is for subject</p>
<p><strong>-a</strong> is for attachment file</p>
<p>Below in green is the attachment in mutt along with main message body attachment:</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR8.png" border="0" alt="Tuxcrux-header" width="439" height="135" /></p>
<p><strong> </strong></p>
<p><em>Beside these they are million options to configure MUTT.</em></p>
<p><em> </em></p>
<p><em>Like below we can configure it supernumerary ways:</em></p>
<p><strong>set timeout=60  #Check for mail every minute</strong></p>
<p><strong>set mail_check=5</strong></p>
<p>That’s  why it is known as the one of the most flexible MUA ever. To switch between various mailboxes you need to just press <strong>y</strong>.</p>
<p><img class="alignright" style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR11.png" border="0" alt="Tuxcrux-header" width="450" height="232" /></p>
<p>The security and encryption are one of the most important aspects in today&#8217;s time. Security is to prevent your emails from intruders. There are various security techniques like public key , and asymmetric keys and various other you must be knowing. But the strongest out of them is <strong>PGP</strong>.  PGP stands for <em>Pretty Good Privacy</em>. MUTT supports PGP for its mail services. I have used GPG here which is GnuPG.</p>
<p>Following is the  key making in progress:</p>
<div class="wp-caption aligncenter" style="width: 460px"><a href="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR9.jpg"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR9.png" border="0" alt="" width="450" height="299" /></a><p class="wp-caption-text">Key making in progress</p></div>
<p>It is very hybrid  approach to secure your mails. It uses symmetric-key cryptography for speed, and public-key cryptography with a session key to ensure maximum performance.</p>
<p>While mailing at the last step just before sending just press <strong>p</strong> and and it asks you what do you want to mail to be encrypted or signature or both.</p>
<p>Please note signature is necessary for the reason because it ensures that your mail is not manipulated in-between. By decrypting the sent signature which is sent along mail file it can be decrypted to the date and email id attached to it. For that you have to use the signature file as input in format .<strong>asc</strong> or <strong>.sig</strong>.</p>
<p>As I show you the mail in which I used signature. Signature file comes along with mail in a file <em>signature.asc</em> which user can use to verify mail.</p>
<div class="wp-caption alignright" style="width: 462px"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2011/03/DIAGR12.png" border="0" alt="" width="452" height="305" /><p class="wp-caption-text">signature.asc </p></div>
<p>Similarly press <strong>E</strong> for encryption and you will be asked for the keyID which you had generated after entering your mail will be encrypted.</p>
<p>Use <strong>gpg  &#8211;list-keys</strong> to list your all of keys which you have made.</p>
<p>These were the few of things which you can do while playing with MUTT, but please note that this is not the end to possibilities for MUTT. MUTT gives you that much space to play that neither I can cover all of them here, nor I have learnt all of them. Try using it and you will explore yourself and you may share with us all so that we can also learn.</p>
<p>So give wings to your excellence and let them flutter in the sky of LINUX.</p>
]]></content:encoded>
			<wfw:commentRss>http://tuxcrux.com/mutt-the-mua-you-can-play-with-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Grab the GRUB 2!</title>
		<link>http://tuxcrux.com/grab-the-grub-2/</link>
		<comments>http://tuxcrux.com/grab-the-grub-2/#comments</comments>
		<pubDate>Sat, 27 Nov 2010 07:01:39 +0000</pubDate>
		<dc:creator>TuxCrux Admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Softwares]]></category>
		<category><![CDATA[Tweaking]]></category>

		<guid isPermaLink="false">http://tuxcrux.com/?p=138</guid>
		<description><![CDATA[GRUB stands for GRand Unified Bootloader, an open source release from GNU. This is what you get an interactive scene giving you pseudo programming language options in multiple lines. If you have Windows thing installed in your system you get a little relax after seeing Window something something. Bootloading is the term which reminds core [...]]]></description>
			<content:encoded><![CDATA[<p><strong>GRUB</strong> stands for <strong>GR</strong>and <strong>U</strong>nified <strong>B</strong>ootloader, an open source release from GNU.</p>
<div class="wp-caption alignright" style="width: 128px"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2010/11/post%201/7.png" border="0" alt="" width="118" height="152" /><p class="wp-caption-text">GRUB Logo</p></div>
<p>This is what you get an interactive scene giving you <em>pseudo programming</em> language options in multiple lines.  If you have Windows thing installed in your system you get a little relax after seeing Window something something.<br />
<em>Bootloading</em> is the term which reminds core OS classes if you are any how related to architecture of Operating System. Boot loading is like a lift board which tells you to which floor you want to get on. The people who have heard it for first time and are of confused and making pictures of your flashy boots in your mind, <em>Bootloader</em> ,also called a boot manager is term for a small program that places the operating system (OS) of a computer into memory. When a computer is powered-up or restarted, the basic input/output system (BIOS) performs some initial tests, and then transfers control to the Master Boot Record (MBR) where the bootloader resides. Bootloader is the door where you bell to enter into the system. It gives you complete list of OS that too with other advance options.<br />
The modern GRUB is called GRUB 2 and it is indeed GRUB version number 2 as there are a lot of things absent inside the new GRUB and other vital changes too.<span id="more-138"></span><br />
GRUB 2&#8242;s major improvements over the original GRUB include:</p>
<div class="wp-caption alignright" style="width: 420px"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2010/11/post%201/6.jpg" border="0" alt="" width="410" height="364" /><p class="wp-caption-text">GRUB 2 Config file.</p></div>
<ul>
<li> Scripting support including conditional statements and functions</li>
</ul>
<ul>
<li> Dynamic module loading</li>
</ul>
<ul>
<li> Rescue mode</li>
</ul>
<ul>
<li> Custom Menus</li>
</ul>
<ul>
<li>Graphical boot menu support and improved splash capability</li>
</ul>
<ul>
<li> Boot LiveCD ISO images directly from hard drive</li>
</ul>
<ul>
<li> New configuration file structure</li>
</ul>
<ul>
<li> Non-x86 platform support (such as PowerPC)</li>
</ul>
<ul>
<li> Universal support for UUIDs</li>
</ul>
<h5><em>(from: Ubuntu forums)</em></h5>
<p>Before stepping up one level  in the conversation let me tell you the concept of <em>chainloading</em>. Chainloading is skipping first default assigned kernel to boot and getting booted on present kernel.<br />
This is an useful technique in cases where Linux do not recognize the kernel and its boot data so what usually is done is that just partition corresponding to that kernel is named and <em>chainloder +n</em> is set where n is the nth kernel configuration after the first. This is generally done for making Windows and other proprietary OS as default boot option.<br />
Let me first introduce you with the some of the important of files that are critical for GRUB 2.<br />
<strong> /boot/grub/grub.cfg</strong><br />
This is like the file GRUB&#8217;s /boot/grub/menu.lst. This file contains the GRUB 2 menu information but unlike GRUB&#8217;s menu.lst the grub.cfg file is not meant to be edited.</p>
<p><strong>/etc/default/grub</strong><br />
This configuration file contains information formerly contained in the upper section of GRUB‘s menu.lst and items contained on the end of the kernel line. The entries in this file can be edited by a user with administrator (root) privileges and are incorporated into grub.cfg when it is updated. Specific configuration settings are detailed in the Configuring GRUB 2 later in this section.</p>
<p><strong>/etc/grub.d/</strong></p>
<div class="wp-caption alignright" style="width: 432px"><img style="border: 0pt none;" src="../wp-content/uploads/2010/11/post%201/2.jpg" border="0" alt="" width="422" height="314" /><p class="wp-caption-text">Changes to be done here</p></div>
<p>The files in this directory are read during execution of the update-grub command and their instructions are incorporated into /boot/grub/grub.cfg.<br />
GRUB2 has lesser editing options comparing to GRUB or we can say they have made changes making more complex.<br />
<em>/etc/default/grub</em> gives few basic options to change you configuration.<br />
Use<em> sudo gedit /etc/default/grub</em> for editing.<br />
Like you can change the order of booting.<br />
I have shown you to how to make Windows as default menu just by changing the parameter to 4 as it appears on 4th on menu list in figure.<br />
Further we can add another kernel entry  this is the format saying name and its partition location in format</p>
<blockquote><p><strong>hd(harddisk),nth partitionname and other generic root location.<br />
set root=(hdX,Y)<br />
linux /vmlinuz root=/dev/sdXY ro<br />
initrd /initrd.img<br />
boot</strong></p></blockquote>
<div class="wp-caption alignright" style="width: 438px"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2010/11/post%201/3.jpg" border="0" alt="" width="428" height="257" /><p class="wp-caption-text">GRUB 2 edit mode while booting.</p></div>
<p>GRUB menu at the booting time can be converted to command-line by pressing c and there are few grub commands which can be used right there. There are few commands which can be listed by using help command.<br />
<strong>ls</strong> lists defaults.</p>
<p>I will also explain the settings how to change the <strong>splashimage</strong> for bootloader.<br />
For this you need to have the <em>png, jpeg</em> 8bit or <em>tga</em> format image. By default its tga format for the splashimage. You need to install a package for that:<strong>grub2-splashimages</strong><br />
Changes are made in the grub.d directory in the file in<strong> 05_debian_theme</strong> where there is some path given to a default splashimage which needs to be edited for your own image.<br />
I made one that is in pic.</p>
<div class="wp-caption aligncenter" style="width: 493px"><img style="border: 0pt none;" src="../wp-content/uploads/2010/11/post%201/4.jpg" border="0" alt="" width="483" height="323" /><p class="wp-caption-text">This splashimage I managed to add.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://tuxcrux.com/grab-the-grub-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Best Compression, Archiving and zipping techniques in LINUX!</title>
		<link>http://tuxcrux.com/best-compression-archiving-and-zipping-techniques-in-linux/</link>
		<comments>http://tuxcrux.com/best-compression-archiving-and-zipping-techniques-in-linux/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 04:47:04 +0000</pubDate>
		<dc:creator>TuxCrux Admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[.bz2]]></category>
		<category><![CDATA[.gz]]></category>
		<category><![CDATA[.tgz]]></category>
		<category><![CDATA[lzma]]></category>

		<guid isPermaLink="false">http://tuxcrux.com/?p=128</guid>
		<description><![CDATA[Various file formats Compression , archiving , zipping and encoding are some of the keywords which you might have listen when you deal with huge amount of data, or you deal with systematic data and where data storage is critical for example your organizational data. Linux ensures best archiving, zipping and security methods for data [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<dl class="wp-caption alignright" style="width: 87px;">
<dt><img style="border: 0pt none;" src="../wp-content/uploads/2010/09/post1/2.png" border="0" alt="" width="77" height="350" /></dt>
<dd>Various file formats</dd>
</dl>
</div>
<p><strong>Compression</strong> ,<strong> archiving</strong> ,<strong> zipping</strong> and<strong> encoding</strong> are some of the keywords which you might have listen when you deal with huge amount of data, or you deal with systematic data and where data storage is critical for example your organizational data.<br />
Linux ensures best archiving, zipping and security methods for data by supporting never ending data storage packages. I have been able to concise the availability and I am today presenting the some of the most important techniques that is followed or must be followed in Linux terminals.</p>
<ul>
<li>
<h3><span style="text-decoration: underline;"><strong>tar:</strong></span></h3>
</li>
</ul>
<p><strong> </strong>One of the most common technique to archive data in Linux is <strong> tar</strong> (Tape Archive) and a tape archived file is called <strong>tarball</strong>.</p>
<blockquote><p>tar -c foo</p></blockquote>
<p>Creates tar</p>
<blockquote><p>tar -x foo</p></blockquote>
<blockquote><p>tar -xvf firefox.tar</p></blockquote>
<p>This will untar the tarball. Note c switch creates <strong>a</strong> archive and <strong>x</strong> extracts the archive, <strong>v</strong> is for verbose that means output the name of each file in extraction.<br />
<span id="more-128"></span></p>
<blockquote><p>tar -xvvzf foo.tar.gz</p></blockquote>
<p>Now using <strong>z</strong> switch will uncompress the <strong>.gz</strong> compressed tar archive, so above command will uncompress as well as untar the package.</p>
<blockquote><p>tar -jxvf foo.tar.bz</p></blockquote>
<p>Similar to above extracts and uncompress <strong>bzip</strong> tarball.</p>
<blockquote><p>tar -cvf foo.tar foo/</p></blockquote>
<p>This will create a tarball using <strong>c</strong> switch from <em>foo</em> to<em> foo.tar</em>.<br />
Similarly using <strong>-cvzf</strong> will create a <em>gunzip </em>compressed tarball and <strong>-cvjf</strong> will create a <em>bzip2</em> compressed tarball.</p>
<ul>
<li>
<h3><span style="text-decoration: underline;"><strong>zip:</strong></span></h3>
</li>
</ul>
<div class="wp-caption alignright" style="width: 345px"><img style="border: 0pt none;" src="../wp-content/uploads/2010/09/post1/3.png" border="0" alt="" width="335" height="100" /><p class="wp-caption-text">Unzipping a file in progress</p></div>
<p>Similar to tar we have zip which compresses as well as archives the files, but compression is on low volume. Opposite of zip is unzip.</p>
<blockquote><p>unzip filename -d &#8220;direcotry&#8221;</p></blockquote>
<p>Extracts to directory path</p>
<blockquote><p>unzip filename -p &#8220;directory&#8221;</p></blockquote>
<p>Extract in pipe in binary format</p>
<blockquote><p>unzip filename -q &#8220;directory&#8221;</p></blockquote>
<p>Hides all messages while decrypting</p>
<ul>
<li>
<h3><span style="text-decoration: underline;"><strong>Gunzip(gzip)</strong></span></h3>
</li>
</ul>
<p>gzip- A really good compression technique creates a file in .gz format.</p>
<ul>
<li>
<h3><span style="text-decoration: underline;"><strong>bzip2 </strong></span></h3>
</li>
</ul>
<p>A really good compression technique creates a file in .bz2 format.<br />
<em><strong>.tgz and .tbz2 are short for tar.gz and tar.bz2 which are archived compressed files.</strong></em></p>
<blockquote><p><em>bunzip2 -c a.tar.bz2 | tar -xvf</em></p></blockquote>
<p>This extracts a .tar.bz file</p>
<ul>
<li>
<h3><span style="text-decoration: underline;"><strong>Lzma:</strong></span></h3>
</li>
</ul>
<p>It stands for <em>Lempel-Ziv-Markov chain </em>Algorithm. Lzma  is a compression tool like bzip2 and gzip to compress and decompress files. It tends to be significantly faster and efficient than bzip compression. As we know, bzip2 compression ratio is worse than gzip.</p>
<blockquote><p>lzma -d yeas.in.lzma</p></blockquote>
<p>Decompresses file in .lzma format.</p>
<blockquote><p>lzma -f yeas.in.lzma</p></blockquote>
<p>Force compresses the file yeas.in to yeas.in.lzma.</p>
<ul>
<li>
<div class="wp-caption alignright" style="width: 356px"><img style="border: 0pt none;" src="../wp-content/uploads/2010/09/post1/5.png" border="0" alt="" width="346" height="292" /><p class="wp-caption-text">Decompressing a p7zip file.</p></div>
<h3><span style="text-decoration: underline;"><strong>7zip</strong></span></h3>
</li>
</ul>
<blockquote><p><em>7z a filename</em></p></blockquote>
<p>It compresses up to 7 fold and uses LZMA and is known best compression technique.<br />
<strong>p7zip</strong> is used to compress and decompress the 7z files.<br />
But for backing up data a user must create a tar first and then 7zip compression.</p>
<ul>
<li>
<h3><span style="text-decoration: underline;"><strong>Rar </strong></span></h3>
</li>
</ul>
<div class="wp-caption alignright" style="width: 360px"><img style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2010/09/post1/1a.png" border="0" alt="" width="350" height="250" /><p class="wp-caption-text">Password given for file.</p></div>
<p><em> </em>Last but not the least because it is most widely used compression format across all platforms. It has wide support and own advantages of using it<br />
ZIP uses LZW compression whereas RAR goes one step further using pattern compression, ideal for multimedia data. RAR incorporates some error checking, it also allows a recovery record which can be used to retrieve files even when an archive is damage. RAR offers solid archiving (files encoded in one go) which gains a bit of space. RAR archives have better password.<br />
Both rar and unrar are there for Linux.</p>
<blockquote><p><em>rar a file</em></p></blockquote>
<p>Compressed a file to to make it a rar archive<br />
<strong>d</strong> options used to delete from archive and using p we can ensure password security for file.</p>
<p><em>Please feel free to add your contributions and correct me if I have passed incorrect information.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://tuxcrux.com/best-compression-archiving-and-zipping-techniques-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8216;vi&#8217; Editor for noobs, A beginner&#8217;s guide.</title>
		<link>http://tuxcrux.com/vi-editor-for-noobs-a-beginners-guide/</link>
		<comments>http://tuxcrux.com/vi-editor-for-noobs-a-beginners-guide/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 02:26:48 +0000</pubDate>
		<dc:creator>TuxCrux Admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[gvim]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://tuxcrux.com/?p=103</guid>
		<description><![CDATA[&#8216;vi&#8216; is abbreviation for the visual. visual is command for another editor(line editor) in UNIX that is Extended(EX). vi Editor is the spinal cord of Linux terminal, it has been inside it thriving for years. Now it comes with name of VIM where IM stands for improved. It is cross platform and is found on [...]]]></description>
			<content:encoded><![CDATA[<p>&#8216;<strong>vi</strong>&#8216; is abbreviation for the <em><strong>visual</strong></em>.<br />
<img class="alignright" style="border: 0pt none;" title="Vi EDITOR" src="http://tuxcrux.com/wp-content/uploads/2010/08/POST9/vim.png" border="0" alt="gvim" width="300" height="300" /><em><strong>visual</strong></em> is command for another editor(line editor) in UNIX that is <strong>Extended</strong>(EX).<br />
<strong>vi</strong> Editor is the spinal cord of Linux terminal, it has been inside it thriving for years.<br />
Now it comes with name of <strong>VIM</strong> where <strong>IM</strong> stands for <em>improved</em>.<br />
It is cross platform and is found on every Linux distro.<br />
If you have freshly installed Linux and now want your feet get wet in it, its time to master terminal because this is something which will give you ease with any Linux platform.<br />
<strong>VI </strong>editor is not just another text editor, it has its own importance in the hearts of shell scriptors. If used with full capabilities, it is none less than IDE(Integrated development environment) or in fact is an IDE.<br />
It is licensed under GNU and open source backing is responsible for its continuing growth. <strong>vi </strong>editor is text editor but graphical avatar <strong>gVim</strong> is also available.</p>
<p><span id="more-103"></span></p>
<p><em>Here are some tips for using VI or VIM editor:</em></p>
<p><strong>*</strong> For opening vi editor first open terminal and write:</p>
<blockquote><p>vi filename</p></blockquote>
<p>Now hit <em>i</em> for insert.</p>
<p><strong>* </strong>For exiting writing mode hit <em>escape</em>.</p>
<p><strong>* </strong>Write <em>man vi</em> any time for help pages for vi.</p>
<p><em>Shift+G</em> will take you to the last line.</p>
<p><strong>*</strong> If finished with your work you can save your work by hitting <strong>:w</strong> or <em>Esc+Z+Z.</em></p>
<p><strong>* </strong>If you don&#8217;t want to save the work and simply quit then</p>
<blockquote><p>:q</p></blockquote>
<p><strong>*</strong> For quick save and exit:</p>
<blockquote><p>:wq</p></blockquote>
<p><strong>* </strong><em>yy</em> is used for copying and <em>p</em> for pasting.</p>
<p><strong>* </strong><em>:n</em> moves to nth line.</p>
<p><strong>*</strong>This is the pattern for searching and replacing, the string s is for searching:</p>
<blockquote><p>:s/search_string/replacement_string/</p></blockquote>
<p>Line number can also be specified after colon for the replacement.<br />
<em>%s</em> will do the same purpose.</p>
<p><strong>*</strong><em> :g</em> will search whatever specified and commit specified action</p>
<p>Pattern is:</p>
<blockquote><p>:g/search pattern/command</p></blockquote>
<p><strong>*</strong> Contrary to above</p>
<blockquote><p>:v/string/d</p></blockquote>
<p>This will delete every line which does not contain specified string, <em>d </em>deletes the string.</p>
<p><strong>*</strong>It deletes every empty line.</p>
<blockquote><p>:g/^$/d</p></blockquote>
<p>Ain&#8217;t it enough for a beginner!</p>
<h4>For Vi, Vim or gVim click :</h4>
<p><span style="color: #800000;"><a href="http://www.vim.org/download.php"><strong>DOWNLOAD</strong></a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://tuxcrux.com/vi-editor-for-noobs-a-beginners-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Network connection for file sharing on Linux.</title>
		<link>http://tuxcrux.com/setting-up-network-connection-for-file-sharing-on-linux/</link>
		<comments>http://tuxcrux.com/setting-up-network-connection-for-file-sharing-on-linux/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 02:33:54 +0000</pubDate>
		<dc:creator>TuxCrux Admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Tweaking]]></category>
		<category><![CDATA[netwrok connection]]></category>

		<guid isPermaLink="false">http://tuxcrux.com/?p=97</guid>
		<description><![CDATA[File sharing has been one of the primary task on computer networks, whether it is on LAN, WAN or even home network(between Desktop an Laptop or any other configs). Network setting on Linux is nightmare for many Linux noobs. This tutorial is based on Linux Mint(One of the most user friendly OS of Linux). So [...]]]></description>
			<content:encoded><![CDATA[<div id="previewbody">File sharing has been one of the primary task on computer networks, whether it is on LAN, WAN or even<img class="alignright" style="border: 0pt none;" src="http://1.bp.blogspot.com/_F4BR0rAT4fk/SsCIXLpmm7I/AAAAAAAAAWY/-uFs2XMt0aE/s400/Screenshot.jpg" border="0" alt="" width="255" height="142" /> home network(between Desktop an Laptop or any other configs). Network setting  on Linux is <em>nightmare</em> for many Linux noobs.</div>
<div>This tutorial is based on Linux Mint(One of the most user friendly OS of Linux). So network settings would be same or similar on other <strong>Gnome</strong> desktops like <strong>Ubuntu</strong> and other <strong>debian</strong> based releases.</div>
<div><em><strong>Setting up a file sharing network is not the most difficult task on earth.</strong></em><br />
Go  to network connections or just right click on network icon flashing on  the corners. Almost all Linux distros have these tiny buttons for  displaying network status.</div>
<div><span id="more-97"></span></div>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2010/08/POST8/Screenshot-1.jpg" border="0" alt="" width="400" height="282" /></p>
<p style="text-align: center;">
<p style="text-align: center;">
<div><img class="alignright" style="border: 0pt none;" src="http://3.bp.blogspot.com/_F4BR0rAT4fk/SsCJg0d5sMI/AAAAAAAAAWw/zijRgXHQd7E/s400/Screenshot-2.png" border="0" alt="" width="212" height="111" />For  <strong>Gnome</strong> based configs right click over these buttons and click<em> edit  connections</em>.</div>
<div></div>
<div>Choose edit connections and choose the connection you want  to share for instance the Ethernet wire will look like <em>eth0</em>.</div>
<div></div>
<div>Choose the  appropriate hardware and edit the settings.</div>
<div></div>
<div></div>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2010/08/POST8/Screenshot-3.jpg" border="0" alt="" width="370" height="239" /></p>
<p style="text-align: center;">
<div>
<p>It will give it to you options for settings.</p>
<p>Choose <strong>IPV4</strong> settings (As IPv6 not so de-facto) and then <strong>method,</strong> a drop-down list will unfold.</p>
</div>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2010/08/POST8/Screenshot-4.jpg" border="0" alt="" width="331" height="300" /></p>
<p style="text-align: center;">
<div>
<p>Choose the shared to other computers option and finish.</p>
<p>Now right click on any file you want to share and click <em>sharing options</em>. You can name the sharing name.<img class="alignright" style="border: 0pt none;" src="http://1.bp.blogspot.com/_F4BR0rAT4fk/SsCKFe9BTRI/AAAAAAAAAXA/LzSx5Yqaf40/s400/Screenshot-5.png" border="0" alt="" width="222" height="177" /></p>
<p>Note if you want to share it across the network freely you must check the <em>guest access.</em></p>
<p>Now check the file on another computer with whom you have shared.</p>
</div>
<div></div>
<div>For example here is a visual of <em>Vista&#8217;s network sharing center.</em></div>
<div><em><br />
</em></div>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none;" src="http://tuxcrux.com/wp-content/uploads/2010/08/POST8/last1.jpg" border="0" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://tuxcrux.com/setting-up-network-connection-for-file-sharing-on-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>38 Acronyms/Abbreviations/Jargon every Linux user must know</title>
		<link>http://tuxcrux.com/38-acronymsabbreviationsjargon-every-linux-user-must-know/</link>
		<comments>http://tuxcrux.com/38-acronymsabbreviationsjargon-every-linux-user-must-know/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 02:22:47 +0000</pubDate>
		<dc:creator>TuxCrux Admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[abbreviations]]></category>
		<category><![CDATA[acronym]]></category>

		<guid isPermaLink="false">http://tuxcrux.com/?p=88</guid>
		<description><![CDATA[Here I am listing some of the most common and ubiquitous  Acronyms/Abbreviations/Jargon of Linux. I hope you all will appreciate the effort. If any of you is very very eager to share any other stuff except these, please share it with us. 01. APT- Advanced Package Tool 02. BSD &#8211; Berkeley Software Distribution 03. bash [...]]]></description>
			<content:encoded><![CDATA[<p>Here I am listing some of the most common and ubiquitous  Acronyms/Abbreviations/Jargon of Linux. I hope you all will appreciate the effort. If any of you is very very eager to share any other stuff except these, please share it with us.</p>
<blockquote><p>01.<strong> APT-</strong> Advanced Package Tool</p>
<p>02. <strong>BSD &#8211; </strong>Berkeley Software Distribution</p>
<p>03.<strong> bash &#8211; </strong>Bourne again shell</p>
<p>04. <strong>cc -</strong> C compiler</p>
<p>05. <strong>csh &#8211; </strong>C shell</p>
<p>06. <strong>FOSS -</strong> Free and Open Source Software</p>
<p>07. <strong>GIMP &#8211; </strong>GNU Image Manipulation Program</p>
<p>08. <strong>GNU -</strong> GNU is Not UNIX</p>
<p>09. <strong>GNOME &#8211; </strong>Gnu Network Object Modeling Environment</p>
<p>10. <strong>GTK -</strong> GIMP Toolkit</p>
<p>11.<strong> GPL &#8211; </strong>GNU General Public License</p>
<p>12.<strong> grep -</strong> Global regular expression print</p>
<p>13. <strong>GCC -</strong> GNU C Compiler</p>
<p>14. <strong>Grub-</strong> Grand Unified Bootloader</p>
<p>15. <strong>ksh &#8211; </strong>Korn shell</p>
<p>17. <strong>KDE &#8211; </strong>K Desktop Environment</p>
<p>18.<strong> LILO -</strong> Linux Loader</p>
<p>19. <strong>LINUX &#8211; </strong>Linus Torvald&#8217;s UNIX  ;Linux Is Not Unix; Linus&#8217;s MINIX</p>
<p>20. <strong>LUG &#8211; </strong>Linux users group</p>
<p>21. <strong>LFS -</strong> Linux From Scratch</p>
<p>22. <strong>lex -</strong> Lexical analyser</p>
<p>23. <strong>MD5 &#8211; </strong>Message digest 5</p>
<p>24. <strong>man -</strong> Manual</p>
<p>25. <strong>POSIX &#8211; </strong>Portable operating system interface</p>
<p>26. <strong>pwd &#8211; </strong>Print working directory</p>
<p>27. <strong>RHCE -</strong> Red Hat Certified Engineer</p>
<p>28. <strong>RPM &#8211; </strong>Red Hat package manager</p>
<p>29. <strong>sed -</strong> Stream editor</p>
<p>30. <strong>SUSE &#8211; </strong>Software- und System-Entwicklung(Software and system development)</p>
<p>31.<strong> tar &#8211; </strong>Tape archive</p>
<p>32. <strong>telnet -</strong> Terminal over network</p>
<p>33. <strong>UNIX -</strong> UNIpleX information and computer services</p>
<p>34.<strong> VimVi -</strong> Improved</p>
<p>35.<strong> WINE -</strong> WINE is not an emulator</p>
<p>36.<strong> X &#8211; </strong>X Window System</p>
<p>37.<strong> YaST -</strong> Yet another Setup Tool</p>
<p>38.<strong> yacc &#8211; </strong>Yet another compiler compiler</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://tuxcrux.com/38-acronymsabbreviationsjargon-every-linux-user-must-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20 Most Important Linux Terminal Commands</title>
		<link>http://tuxcrux.com/65/</link>
		<comments>http://tuxcrux.com/65/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 02:59:00 +0000</pubDate>
		<dc:creator>TuxCrux Admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[commands]]></category>

		<guid isPermaLink="false">http://tuxcrux.com/?p=65</guid>
		<description><![CDATA[You all must know that heart of every Linux distro is terminal (counterpart of CMD of Windows in Linux). It is much much powerful than its counterpart CMD in windows. You can master any distro by having a good grip over terminal. GUI is different for different distros but same UNIX terminal lies in core [...]]]></description>
			<content:encoded><![CDATA[<p>You all must  know that heart of every Linux distro is <strong>terminal</strong> (counterpart of <em>CMD</em> of Windows in Linux). It is much much powerful than   its counterpart<em> CMD</em> in windows. You can master any distro by having a  good grip over terminal. <em>GUI</em> is different for different distros but same  <em>UNIX</em> terminal lies in core all of them.<br />
For  having a good grip over  terminal you need to know all basic terminal commands. I am gonna tell  you 20 most important commands of Linux.</p>
<p><span style="color: #800000;"><span style="font-size: medium;">(1) <strong>su</strong></span></span><br />
<strong>su</strong> stands for<em> superuser</em>. Linux has limited user access that is why it is  considered and de facto is secure. It asks for administrative password at  every gateway.<br />
Switching user to administrator is a lot simple than windows.<br />
Type su in terminal window and it&#8217;ll ask for password.<strong> </strong></p>
<blockquote><p><strong><code>su</code></strong></p></blockquote>
<p><img id="BLOGGER_PHOTO_ID_5370425909459097106" class="alignleft" src="http://4.bp.blogspot.com/_F4BR0rAT4fk/SoeV6THdFhI/AAAAAAAAAME/spOs67d9HEg/s400/12.png" alt="Switching user" width="284" height="84" /></p>
<p><span style="color: #800000;"><br />
</span></p>
<p><span id="more-65"></span></p>
<p><span style="color: #800000;"><span style="font-size: medium;">(2) <strong>mv</strong></span></span><br />
Its like cut and paste</p>
<blockquote><p><code><strong>cp ~$ mv /home/ashish/Desktop/1.png /home/ashish/Desktop/picsr/1.png</strong></code></p></blockquote>
<p><span style="font-size: medium;"><br />
<img src="http://tuxcrux.com/wp-content/uploads/2010/08/POST5/2.png" border="0" alt="" /></span></p>
<p><span style="font-size: medium;"><br />
</span></p>
<p><span style="font-size: medium;"><span style="color: #800000;">(3)<strong> rm</strong></span></span></p>
<p>Its like delete in windows.<strong> </strong></p>
<blockquote><p><strong><br />
<code>rm files</code></strong></p></blockquote>
<p><span style="color: #800000;"><span style="font-size: medium;">(4)<strong> gzip</strong></span></span><br />
Compresses the file and give it a extension .gzip or .gz. Winrar/Winzip do the same job over windows.<br />
<strong> </strong></p>
<blockquote><p><strong><code>gzip filename</code></strong></p></blockquote>
<p><img src="http://tuxcrux.com/wp-content/uploads/2010/08/POST5/1.png" border="0" alt="" /></p>
<p><span style="color: #800000;"><span style="font-size: medium;">(5) <strong>cat</strong></span></span><br />
It displays the content of file right there.</p>
<blockquote><p><code><strong>cat [Options] [File]</strong></code></p></blockquote>
<p><span style="color: #800000;"><span style="font-size: medium;">(6) <strong>mount</strong></span></span><br />
It mounts the CD/DVD and other external devices.</p>
<blockquote><p><code><strong>mount | column -t</strong></code></p></blockquote>
<p><img src="http://tuxcrux.com/wp-content/uploads/2010/08/POST5/4.png" border="0" alt="" /></p>
<p><span style="color: #800000;"><span style="font-size: medium;">(7) <strong>pkill/pkillall</strong></span></span><br />
Its  like pressing <em>ctrl+alt+delete</em> and forcefully terminating a humpy  process. Actually its better than classic kill and killall which  requires pid number.<br />
<strong> </strong></p>
<blockquote><p><strong><code>pkill [-signal]</code></strong></p>
<p><strong><br />
</strong></p></blockquote>
<p><span style="color: #800000;"><span style="font-size: medium;">(8) <strong>passwd</strong></span></span><br />
Its for changing the password.<br />
<strong> </strong></p>
<blockquote><p><strong><code>passwd [options...]</code></strong></p></blockquote>
<p><span style="color: #800000;"><span style="font-size: medium;">(9)<strong> halt</strong></span></span><br />
In case of emergency for avoiding loss of data forcefully shutting down.</p>
<blockquote><p><code><strong>halt [-d | -f | -h | -n | -i | -p | -w]</strong></code></p>
<p><strong><br />
</strong></p></blockquote>
<p><span style="color: #800000;"><span style="font-size: medium;">(10) <strong>reboot</strong></span></span><br />
Simply restart the system</p>
<p><code> </code></p>
<blockquote>
<h5><code><strong>reboot [-d | -f | -i | -n | -w]</strong></code></h5>
</blockquote>
<p><span style="color: #800000;"><span style="font-size: medium;">(11) <strong>clear</strong></span></span><br />
It clears visible area of console.<br />
<strong> </strong></p>
<blockquote><p><strong><code>clear</code></strong></p></blockquote>
<p><span style="color: #800000;"><span style="font-size: medium;">(12) <strong>vi</strong></span></span><br />
It is like notepad editor in Windows. It can be used inside terminal.</p>
<p><span style="font-size: medium;"><br />
<span style="color: #800000;">(13) <strong>man</strong></span></span></p>
<p>It is used to read information, help and other details about command, information or process.<br />
<strong> </strong></p>
<blockquote><p><strong><code>man commandname [options]</code></strong></p></blockquote>
<p><span style="font-size: medium;"><br />
<span style="color: #800000;">(14) <strong>gcc</strong></span></span></p>
<p>It invokes C/C++ compiler.</p>
<p><img src="http://tuxcrux.com/wp-content/uploads/2010/08/POST5/17.png" border="0" alt="" /><br />
<span style="color: #800000;"><span style="font-size: medium;">(15) <strong>ifconfig</strong></span></span><br />
Its Linux counterpart for Windows&#8217; ipconfig.</p>
<blockquote><p><strong><code>ifconfig [options]</code></strong></p></blockquote>
<p><img src="http://tuxcrux.com/wp-content/uploads/2010/08/POST5/15.png" border="0" alt="" /><br />
<span style="color: #800000;"><span style="font-size: medium;">(16) <strong>lock</strong></span></span><br />
It temporarily locks the terminal.</p>
<p><span style="color: #800000;"><span style="font-size: medium;">(17)<strong> pwd</strong></span></span><br />
It prints present working path.<code><strong> </strong></code></p>
<blockquote><p><code><strong>pwd [options]</strong></code></p></blockquote>
<p><img src="http://tuxcrux.com/wp-content/uploads/2010/08/POST5/13.png" border="0" alt="" /><br />
<span style="color: #800000;"><strong><span style="font-size: medium;">(18) cksum</span></strong></span></p>
<p>Checksums and count the bytes in file specified.  Prints CRC check-sum and byte counts of each FILE.<strong> </strong></p>
<blockquote><p><strong><code>cksum filename</code></strong></p></blockquote>
<p><img src="http://tuxcrux.com/wp-content/uploads/2010/08/POST5/14.png" border="0" alt="" /><br />
<span style="font-size: medium;"><br />
<span style="color: #800000;"><strong> </strong></span></span></p>
<p><span style="font-size: medium;"><span style="color: #800000;"><strong>(19) gunzip</strong></span></span></p>
<p>It un-compresses file.<code><strong> </strong></code></p>
<blockquote><p><code><strong>gunzip [-Z]</strong></code></p>
<p><strong><br />
</strong></p></blockquote>
<p><span style="color: #800000;"><span style="font-size: medium;">(20) <strong>installpkg</strong></span></span><br />
It is used to install one of the packages from the program sets.<strong> </strong></p>
<blockquote><p><strong><code>installpkg</code></strong> [options]</p></blockquote>
<p>﻿</p>
]]></content:encoded>
			<wfw:commentRss>http://tuxcrux.com/65/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

