<?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>TechniTip.Net &#187; Linux</title>
	<atom:link href="http://technitip.net/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://technitip.net</link>
	<description>TechniTip.Net - Useful tips regarding technical stuff for things like Linux, MySQL, Apache, PHP, Linux Server, iPhone and more.</description>
	<lastBuildDate>Fri, 03 Feb 2012 18:31:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://technitip.net</link>
<url>http://technitip.net/wp-content/plugins/maxblogpress-favicon/icons/favicon-66.ico</url>
<title>TechniTip.Net</title>
</image>
		<item>
		<title>socket: Address family not supported by protocol</title>
		<link>http://technitip.net/socket-address-family-not-supported-by-protocol</link>
		<comments>http://technitip.net/socket-address-family-not-supported-by-protocol#comments</comments>
		<pubDate>Sun, 30 Jan 2011 09:46:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshd]]></category>

		<guid isPermaLink="false">http://technitip.net/?p=1637</guid>
		<description><![CDATA[I&#8217;m using rsync via ssh on my Linux NAS, it works nice. But I was wondering what could cause the message: socket: Address family not supported by protocol The message appears every time rsync or just ssh is called. In my case the reason is that ssh tries to connect via IPv6 first and afterwards [...]<div style="clear: both;">
<strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/running-rsync-and-sudo-over-ssh' rel='bookmark' title='Running Rsync and Sudo over SSH'>Running Rsync and Sudo over SSH</a></li>
</ol></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using rsync via ssh on my Linux NAS, it works nice. But I was wondering what could cause the message:<br />
<code><br />
socket: Address family not supported by protocol</code></p>
<p>The message appears every time rsync or just ssh is called. In my case the reason is that ssh tries to connect via IPv6 first and afterwards with IPv4. Since I&#8217;ve not setup IPv6 on my NAS the connect fails and the message above appears. It&#8217;s not a big harm but it&#8217;s nicer to remove this message.</p>
<p>Removing the message is esay, just add -4 as command line parameter to ssh:</p>
<p><code>-4      Forces ssh to use IPv4 addresses only.<br />
</code></p>
<p>For ssh or rsync the usage looks like:</p>
<p><code><br />
ssh -4<br />
rsync -e "ssh -4"<br />
</code></p>
<p>And the message disappears.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fsocket-address-family-not-supported-by-protocol&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/running-rsync-and-sudo-over-ssh' rel='bookmark' title='Running Rsync and Sudo over SSH'>Running Rsync and Sudo over SSH</a></li>
</ol></p></div>]]></content:encoded>
			<wfw:commentRss>http://technitip.net/socket-address-family-not-supported-by-protocol/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How do you protect your Blog from Hackers?</title>
		<link>http://technitip.net/how-do-you-protect-your-blog-from-hackers</link>
		<comments>http://technitip.net/how-do-you-protect-your-blog-from-hackers#comments</comments>
		<pubDate>Sun, 08 Aug 2010 16:08:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Latest Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[protect]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://technitip.net/?p=1511</guid>
		<description><![CDATA[Using WordPress is nice and many websites use it. The advantage of course that there are many tips, additional plugins etc. are available. But on the other hand there is a big disadvantage. Hackers attack WordPress sitse due to many many sites use it. I found an article and video from Matt Cutts an employee [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Using WordPress is nice and many websites use it. The advantage of course that there are many tips, additional plugins etc. are available. But on the other hand there is a big disadvantage. Hackers attack WordPress sitse due to many many sites use it. I found an <a title="Three tips to protect your WordPress installation" href="http://www.mattcutts.com/blog/three-tips-to-protect-your-wordpress-installation/" target="_blank">article</a> and <a title="How do you protect your blog from hackers? " href="http://www.youtube.com/watch?v=gwAlEf-AbCU" target="_blank">video</a> from Matt Cutts an employee from Google.</p>
<p>He recommends to protect your wp-admin area using the Apache .htaccess file. Here in detail access is only allowed from IP addresses from where you are logging in. It&#8217;s definitely a good way to protect you blog, but often people don&#8217;t have a fixed IP address. The DSL provider assigns a different IP address on every dial in. Unfortunately there is no easy way to obtain the network addresses of your DSL provider which can be entered in your .htaccess file.</p>
<p>Another important recommendation: Always keep your server software and WordPress software up to date!</p>
<p>Also remove the following line from your header.php which will show hackers your WordPress version:</p>
<p><code>&lt;meta name=”generator” content=”WordPress &lt;?php  bloginfo(’version’); ?&gt;” /&gt; &lt;!-– leave this for stats please  --&gt;</code></p>
<p>So let&#8217;s concentrate on the restricted access in the wp-admin area. It&#8217;s a little bit tricky to get the address list of your DSL provider. I&#8217;ll explain and show an example script below. First let&#8217;s have a look at the <a title="How do you protect your blog from hackers? " href="http://www.youtube.com/watch?v=gwAlEf-AbCU" target="_blank">video</a> from Matt Cutts.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="618" height="373" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/gwAlEf-AbCU&amp;hl=en_GB&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="618" height="373" src="http://www.youtube.com/v/gwAlEf-AbCU&amp;hl=en_GB&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>As step one you have to find out your own IP address. Let&#8217;s assume your IP address assigned from your provider is 213.168.95.20 (this is just an example!). Next do a whois lookup:</p>
<pre>server:~# whois 213.168.95.20
...
inetnum:        213.168.95.0 - 213.168.98.255
<strong>netname:        NC-DIAL-IN-POOL</strong>
</pre>
<p>Have a look at the <strong>netname NC-DIAL-IN-POOL</strong>. Usually provider assign  a common name for all DSL dynamic address. But we want to add all IP addresses or better all network ranges into our .htaccess file. Ok now we need to get all address ranges with this netname. This can be achieved using the Linux whois tool:</p>
<pre>server:~# whois -h whois.ripe.net NC-DIAL-IN-POOL
...
inetnum:        194.8.209.0 - 194.8.209.255
...
inetnum:        194.8.205.0 - 194.8.205.255
...
</pre>
<p>Fine we get a list with all network ranges from our provider now, but still not the correct netmask format and a lot of other output which we don&#8217;t need. Basically it&#8217;s possible to manually generate the .htaccess file now. Not big fun&#8230; So I&#8217;ve created a small perl script which does the job. As small bonus it creates the needed format for .htaccess file which means you are able to directly add the output to your .htaccess file in the wp-admin folder.</p>
<p><strong>Important:</strong> Before usage you have to add the <strong>netname</strong> of the dial-in pool of your provider. How to find it out is described above. Below is only an example. The output will look like:</p>
<pre>server:~# ./gethtaccessranges.sh
allow from 194.8.209.0/24
allow from 194.8.205.0/24
allow from 195.14.226.0/24
</pre>
<p>Finally generate a .htaccess file in your wp-admin/ folder with the content:</p>
<pre>order deny,allow
deny from all</pre>
<p>and add the output of the script gethtaccessranges.sh below the two lines. That&#8217;s it! Now access to wp-admin is only allowed from dynamic IP address from your provider. Sure it&#8217;s not the perfect solution but I&#8217;ll prevent you from many other hack attempts from all over the world.</p>
<p>At the end of the script there is also an example in case providers use number in their netnames.</p>
<pre>#!/usr/bin/perl -w
# gethtaccessranges.sh
# Harald Kraemer 08.08.2010
# www.technnitip.net
#
# NET::CIDR and NET::Whois is need to run this script.
# On debian you can install using apt-get:
# apt-get install libnet-cidr-perl libnet-whois-perl
#
<strong># Important: Replace the netname "NC-DIAL-IN-POOL" at the end of the
# script with the dial-in netname of your provider! Use the command
# whois &lt;my-ip-address&gt; to find out the netname.</strong>

use Net::CIDR;
use Net::CIDR ':all';
use Net::Whois::Raw;
use strict;

sub getRanges
{
  my($netname) = @_;
  my $whois;
  my @whois_array;
  my @ranges;

  $whois = whois( $netname, 'whois.ripe.net' );

  @whois_array   = split( "\n", $whois );
  @ranges        = grep( /inetnum:/, @whois_array );

  foreach ( @ranges )
  {
    s/inetnum://g;
    s/ //g;
    s/ - /-/g;

    foreach my $item ( Net::CIDR::range2cidr( $_ ) )
    {
      print "allow from " . $item . "\n";
    }
  }
}

getRanges('NC-DIAL-IN-POOL');

#for( my $i=1; $i &lt;= 30; $i++)
#{
#  getRanges('DTAG-DIAL' . $i);
#}</pre>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fhow-do-you-protect-your-blog-from-hackers&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://technitip.net/how-do-you-protect-your-blog-from-hackers/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Status of a Software RAID under Linux</title>
		<link>http://technitip.net/status-of-a-software-raid-under-linux</link>
		<comments>http://technitip.net/status-of-a-software-raid-under-linux#comments</comments>
		<pubDate>Sun, 14 Feb 2010 20:13:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Status]]></category>

		<guid isPermaLink="false">http://technitip.net/?p=1399</guid>
		<description><![CDATA[You might want to check the rebuild status of your Linux software RAID e.g. after a disc failure or a hard server crash. As you know this might take several hours, depending on the disc size. In my case mdadm is used to configure the software RAID and mdadm &#8211;detail /dev/md1 can be used to [...]<div style="clear: both;">
<strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/traffic-monitoring' rel='bookmark' title='Linux Network Traffic Monitoring'>Linux Network Traffic Monitoring</a></li>
<li><a href='http://technitip.net/how-to-change-time-zone-in-linux' rel='bookmark' title='How To Change Time Zone in Linux'>How To Change Time Zone in Linux</a></li>
<li><a href='http://technitip.net/debian-lenny-50-released' rel='bookmark' title='Debian &#8220;Lenny&#8221; 5.0 Released'>Debian &#8220;Lenny&#8221; 5.0 Released</a></li>
</ol></div>]]></description>
			<content:encoded><![CDATA[<p>You might want to check the rebuild status of your Linux software RAID e.g. after a disc failure or a hard server crash. As you know this might take several hours, depending on the disc size.</p>
<p>In my case mdadm is used to configure the software RAID and<strong> mdadm &#8211;detail /dev/md1</strong> can be used to show the rebuild status:</p>
<pre>[root@hxxxxxxx ~]# mdadm --detail /dev/md1
/dev/md1:
Version : 00.90
Creation Time : Thu Nov  9 18:57:15 2006
Raid Level : raid1
Array Size : 159726144 (152.33 GiB 163.56 GB)
Used Dev Size : 159726144 (152.33 GiB 163.56 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Sun Feb 14 19:45:21 2010
<strong>State : active, resyncing</strong>
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

<strong>Rebuild Status : 31% complete</strong>

UUID : be29700c:083d0c62:67a9c130:e044323b
Events : 0.3626065

Number   Major   Minor   RaidDevice State
0       8        3        0      active sync   /dev/sda3
1       8       19        1      active sync   /dev/sdb3</pre>
<p>In my case 31% of the rebuilt process are finished. We still have to wait a little bit..</p>
<p><strong>Links</strong></p>
<ul>
<li><a title="The Software-RAID HOWTO: Detecting, querying and testing" href="http://tldp.org/HOWTO/Software-RAID-HOWTO-6.html#ss6.5" target="_blank">The Software-RAID HOWTO: Detecting, querying and testing</a></li>
<li><a title="The Software-RAID HOWTO" href="http://tldp.org/HOWTO/Software-RAID-HOWTO.html" target="_blank">The Software-RAID HOTWO</a></li>
</ul>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fstatus-of-a-software-raid-under-linux&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/traffic-monitoring' rel='bookmark' title='Linux Network Traffic Monitoring'>Linux Network Traffic Monitoring</a></li>
<li><a href='http://technitip.net/how-to-change-time-zone-in-linux' rel='bookmark' title='How To Change Time Zone in Linux'>How To Change Time Zone in Linux</a></li>
<li><a href='http://technitip.net/debian-lenny-50-released' rel='bookmark' title='Debian &#8220;Lenny&#8221; 5.0 Released'>Debian &#8220;Lenny&#8221; 5.0 Released</a></li>
</ol></p></div>]]></content:encoded>
			<wfw:commentRss>http://technitip.net/status-of-a-software-raid-under-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash Prompt too long?</title>
		<link>http://technitip.net/bash-prompt-too-long</link>
		<comments>http://technitip.net/bash-prompt-too-long#comments</comments>
		<pubDate>Tue, 05 May 2009 20:46:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Prompt]]></category>
		<category><![CDATA[Putty]]></category>
		<category><![CDATA[too long]]></category>
		<category><![CDATA[xterm]]></category>

		<guid isPermaLink="false">http://technitip.net/?p=1073</guid>
		<description><![CDATA[People often using Putty, xterm or any other Linux test based console will probably now this annoying issue: Changing into a deeper directory structure will create an incredible long bash prompt For me it was quite annoying to have the prompt sometimes wider than the terminal window. In Debian standard configuration this is the case. [...]<div style="clear: both;">
<strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/putty-ssh-login-without-password-prompt' rel='bookmark' title='PuTTY SSH Login Without Password Prompt'>PuTTY SSH Login Without Password Prompt</a></li>
</ol></div>]]></description>
			<content:encoded><![CDATA[<p>People often using Putty, xterm or any other Linux test based console will probably now this annoying issue:</p>
<ul>
<li>Changing into a deeper directory structure will create an incredible long bash prompt</li>
</ul>
<p>For me it was quite annoying to have the prompt sometimes wider than the terminal window. In Debian standard configuration this is the case. So I decided to shorten the prompt.</p>
<p>I kept my prompt very simple, the only thing you have to do is to add the following lines to your ~/.bashrc</p>
<p><code>export PS1="[\u@\h \W]\\$ "<br />
export PS2="&gt; "</code></p>
<p>Make sure to add it at the end of your .bashrc file in your home directory. Otherwise it may be overwritten by other prompt definitions in your .bashrc.</p>
<p><strong>Before</strong></p>
<p><code>harry@h1096660:/usr/local/include/ffmpeg$</code></p>
<p><strong>After</strong></p>
<p><code>[harry@h1096660 ffmpeg]$</code></p>
<p>Better <img src='http://technitip.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Further links and examples</strong></p>
<ul>
<li><a title="Bash Prompt HOWTO" href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO/" target="_blank">Bash Prompt HOWTO</a></li>
<li><a title="Bash Prompts" href="http://www.gilesorr.com/bashprompt/" target="_blank">Bash Prompts</a></li>
</ul>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fbash-prompt-too-long&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/putty-ssh-login-without-password-prompt' rel='bookmark' title='PuTTY SSH Login Without Password Prompt'>PuTTY SSH Login Without Password Prompt</a></li>
</ol></p></div>]]></content:encoded>
			<wfw:commentRss>http://technitip.net/bash-prompt-too-long/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linuxcaffe in Toronto</title>
		<link>http://technitip.net/linuxcaffe-in-toronto</link>
		<comments>http://technitip.net/linuxcaffe-in-toronto#comments</comments>
		<pubDate>Sat, 28 Mar 2009 16:12:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Caffee]]></category>
		<category><![CDATA[Linuxcaffe]]></category>
		<category><![CDATA[Toronto]]></category>

		<guid isPermaLink="false">http://technitip.net/?p=732</guid>
		<description><![CDATA[Received from a friend while he was on a holiday trip in Toronto. A Linuxcaffe pretty cool I think. Nowadays Linux seems to be everywhere! Thank you Bogi for this nice shot. Related posts: Nice Free Photo Organizer &#8220;Google Picasa&#8221; Dear Hell, IE8 is out<div style="clear: both;">
<strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/nice-free-photo-organizer-google-picasa' rel='bookmark' title='Nice Free Photo Organizer &#8220;Google Picasa&#8221;'>Nice Free Photo Organizer &#8220;Google Picasa&#8221;</a></li>
<li><a href='http://technitip.net/dear-hell-ie8-is-out' rel='bookmark' title='Dear Hell, IE8 is out'>Dear Hell, IE8 is out</a></li>
</ol></div>]]></description>
			<content:encoded><![CDATA[<p>Received from a friend while he was on a holiday trip in Toronto. A <a title="linuxcaffe.ca" href="http://linuxcaffe.ca/" target="_blank">Linuxcaffe</a> pretty cool I think. Nowadays Linux seems to be everywhere! Thank you Bogi for this nice shot.</p>

<a href="http://technitip.net/wp-content/gallery/test/img_6842.jpg" title="" class="shutterset_singlepic46" >
	<img class="ngg-singlepic ngg-center" src="http://technitip.net/wp-content/gallery/cache/46__620x_img_6842.jpg" alt="img_6842.jpg" title="img_6842.jpg" />
</a>

<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Flinuxcaffe-in-toronto&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/nice-free-photo-organizer-google-picasa' rel='bookmark' title='Nice Free Photo Organizer &#8220;Google Picasa&#8221;'>Nice Free Photo Organizer &#8220;Google Picasa&#8221;</a></li>
<li><a href='http://technitip.net/dear-hell-ie8-is-out' rel='bookmark' title='Dear Hell, IE8 is out'>Dear Hell, IE8 is out</a></li>
</ol></p></div>]]></content:encoded>
			<wfw:commentRss>http://technitip.net/linuxcaffe-in-toronto/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux under Windows with andLinux</title>
		<link>http://technitip.net/linux-under-windows-with-andlinux</link>
		<comments>http://technitip.net/linux-under-windows-with-andlinux#comments</comments>
		<pubDate>Wed, 25 Mar 2009 19:54:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[andLinux]]></category>
		<category><![CDATA[coLinux]]></category>
		<category><![CDATA[virtualisation]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[X server]]></category>
		<category><![CDATA[Xming]]></category>

		<guid isPermaLink="false">http://technitip.net/?p=722</guid>
		<description><![CDATA[Nowadays there are several virtualization products like VMWare and Virtual PC available. Searching the Internet I came across coLinux and andLinux. This free and open source tools allow you to run Linux natively on your Windows PC. coLinux is the base &#8211; a port of the Linux kernel which allows you to run Linux cooperatively [...]<div style="clear: both;">
<strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/automated-windows-backups' rel='bookmark' title='Automated Windows Backups'>Automated Windows Backups</a></li>
<li><a href='http://technitip.net/how-to-change-time-zone-in-linux' rel='bookmark' title='How To Change Time Zone in Linux'>How To Change Time Zone in Linux</a></li>
<li><a href='http://technitip.net/video-player-for-windowslinuxmac' rel='bookmark' title='Video Player for Windows/Linux/MAC'>Video Player for Windows/Linux/MAC</a></li>
</ol></div>]]></description>
			<content:encoded><![CDATA[<p>Nowadays there are several virtualization products like VMWare and Virtual PC available. Searching the Internet I came across <a title="www.colinux.org" href="http://www.colinux.org/" target="_blank">coLinux</a> and <a title="www.andlinux.org" href="http://www.andlinux.org/" target="_blank">andLinux</a>. This free and open source tools allow you to run Linux natively on your Windows PC.</p>
<p><a title="www.colinux.org" href="http://www.colinux.org/" target="_blank">coLinux</a> is the base &#8211; a port of the Linux kernel which allows you to run Linux cooperatively on your Windows PC. <a title="www.andlinux.org" href="http://www.andlinux.org/" target="_blank">andLinux</a> is a complete <a title="www.ubuntu.com" href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> Linux system which uses <a title="www.colinux.org" href="http://www.colinux.org/" target="_blank">coLinux</a>, <a title="Xming X server" href="http://www.straightrunning.com/XmingNotes/" target="_blank">Xming</a> as X server and <a title="www.pulseaudio.org" href="http://www.pulseaudio.org/" target="_blank">PulseAudio</a> as sound server.</p>
<p>I&#8217;ve tried <a title="www.andlinux.org" href="http://www.andlinux.org/" target="_blank">andLinux</a> on my Windows XP notebook, installation was easy. Quite nice if you also want to have Linux running on your PC without purchasing other products. You can start Linux applications and they appear like a regular Windows application on your desktop.</p>
<p>andLinux offers some more features:</p>
<ul>
<li>Access from Linux applications to Windows filesystem</li>
<li>Quick start of Linux applications from Quicklaunch bar</li>
<li>Easy start of applications from KDE Start menu</li>
</ul>
<p>See also:</p>
<ul>
<li>German andLinux website: <a title="andlinux.de" href="http://andlinux.de/" target="_blank">andlinux.de</a></li>
</ul>
<p>Definitely a try worth!</p>

<a href="http://technitip.net/wp-content/gallery/test/andlinux.jpg" title="" class="shutterset_singlepic45" >
	<img class="ngg-singlepic ngg-center" src="http://technitip.net/wp-content/gallery/cache/45__620x_andlinux.jpg" alt="andlinux.jpg" title="andlinux.jpg" />
</a>

<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Flinux-under-windows-with-andlinux&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/automated-windows-backups' rel='bookmark' title='Automated Windows Backups'>Automated Windows Backups</a></li>
<li><a href='http://technitip.net/how-to-change-time-zone-in-linux' rel='bookmark' title='How To Change Time Zone in Linux'>How To Change Time Zone in Linux</a></li>
<li><a href='http://technitip.net/video-player-for-windowslinuxmac' rel='bookmark' title='Video Player for Windows/Linux/MAC'>Video Player for Windows/Linux/MAC</a></li>
</ol></p></div>]]></content:encoded>
			<wfw:commentRss>http://technitip.net/linux-under-windows-with-andlinux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Change Time Zone in Linux</title>
		<link>http://technitip.net/how-to-change-time-zone-in-linux</link>
		<comments>http://technitip.net/how-to-change-time-zone-in-linux#comments</comments>
		<pubDate>Sat, 07 Mar 2009 19:25:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[timezone]]></category>

		<guid isPermaLink="false">http://technitip.net/?p=701</guid>
		<description><![CDATA[On modern Linux systems the time zone can be changed using the command: dpkg-reconfigure tzdata Now you will be prompted to choose your desired time zone. How the time zone can be change manually can be found here: http://www.wikihow.com/Change-the-Timezone-in-Linux http://www.linuxsa.org.au/tips/time.html Related posts: Linux under Windows with andLinux Change iPhone Call Forwarding Status of a Software [...]<div style="clear: both;">
<strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/linux-under-windows-with-andlinux' rel='bookmark' title='Linux under Windows with andLinux'>Linux under Windows with andLinux</a></li>
<li><a href='http://technitip.net/change-iphone-call-forwarding' rel='bookmark' title='Change iPhone Call Forwarding'>Change iPhone Call Forwarding</a></li>
<li><a href='http://technitip.net/status-of-a-software-raid-under-linux' rel='bookmark' title='Status of a Software RAID under Linux'>Status of a Software RAID under Linux</a></li>
</ol></div>]]></description>
			<content:encoded><![CDATA[<p>On modern Linux systems the time zone can be changed using the command:</p>
<p><code>dpkg-reconfigure tzdata</code></p>
<p>Now you will be prompted to choose your desired time zone.</p>
<p>How the time zone can be change manually can be found here:</p>
<ul>
<li><a title="How to Change the Timezone in Linux" href="http://www.wikihow.com/Change-the-Timezone-in-Linux" target="_blank">http://www.wikihow.com/Change-the-Timezone-in-Linux</a></li>
<li><a title="Linux Tips Linux, Clocks, and Time" href="http://www.linuxsa.org.au/tips/time.html" target="_blank">http://www.linuxsa.org.au/tips/time.html</a></li>
</ul>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fhow-to-change-time-zone-in-linux&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/linux-under-windows-with-andlinux' rel='bookmark' title='Linux under Windows with andLinux'>Linux under Windows with andLinux</a></li>
<li><a href='http://technitip.net/change-iphone-call-forwarding' rel='bookmark' title='Change iPhone Call Forwarding'>Change iPhone Call Forwarding</a></li>
<li><a href='http://technitip.net/status-of-a-software-raid-under-linux' rel='bookmark' title='Status of a Software RAID under Linux'>Status of a Software RAID under Linux</a></li>
</ol></p></div>]]></content:encoded>
			<wfw:commentRss>http://technitip.net/how-to-change-time-zone-in-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PuTTY SSH Login Without Password Prompt</title>
		<link>http://technitip.net/putty-ssh-login-without-password-prompt</link>
		<comments>http://technitip.net/putty-ssh-login-without-password-prompt#comments</comments>
		<pubDate>Sat, 21 Feb 2009 18:45:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[authorized_keys]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[Prompt]]></category>
		<category><![CDATA[Putty]]></category>
		<category><![CDATA[RSA]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Without]]></category>

		<guid isPermaLink="false">http://technitip.net/?p=666</guid>
		<description><![CDATA[Annoyed of typing login passwords? Your desktop is running with Windows and you often need to connect remote servers using SSH then you will already know PuTTY. You will also know that it&#8217;s getting frustrating to enter the passoword every time. There is a simple way to login to remote machines using RSA/DAS keys. What [...]<div style="clear: both;">
<strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/running-rsync-and-sudo-over-ssh' rel='bookmark' title='Running Rsync and Sudo over SSH'>Running Rsync and Sudo over SSH</a></li>
<li><a href='http://technitip.net/enable-wordpress-auto-login' rel='bookmark' title='Enable WordPress Auto-Login'>Enable WordPress Auto-Login</a></li>
<li><a href='http://technitip.net/bash-prompt-too-long' rel='bookmark' title='Bash Prompt too long?'>Bash Prompt too long?</a></li>
</ol></div>]]></description>
			<content:encoded><![CDATA[<p><strong>Annoyed of typing login passwords?</strong></p>
<p>Your desktop is running with Windows and you often need to connect remote servers using SSH then you will already know <a title="PuTTY: A Free Telnet/SSH Client" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">PuTTY</a>. You will also know that it&#8217;s getting frustrating to enter the passoword every time. There is a simple way to login to remote machines using RSA/DAS keys.</p>
<p><strong>What is needed?</strong></p>
<p>First of all you will need to download the <a title="Putty.exe download" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTY.exe</a>. And to generate the keys on your Windows desktop you&#8217;ll need to download  <a title="Putty.exe download" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTYgen.exe</a> as well.</p>
<p><strong>Key Generation</strong></p>
<p>Start PuTTYgen.exe after download and press the Generate button. Now follow the instruction and move the mouse cursor over the desired area. I&#8217;ve used the default parameter [x] SSH-2 RSA with a key length of 1024 bits.</p>
<p>I leave the Key passphrase empty because I don&#8217;t want to enter any passwords during login.</p>
<p>
<a href="http://technitip.net/wp-content/gallery/test/putty-key-generator-21022009-183726.jpg" title="" class="shutterset_singlepic34" >
	<img class="ngg-singlepic ngg-left" src="http://technitip.net/wp-content/gallery/cache/34__295x_putty-key-generator-21022009-183726.jpg" alt="putty-key-generator-21022009-183726.jpg" title="putty-key-generator-21022009-183726.jpg" />
</a>
 
<a href="http://technitip.net/wp-content/gallery/test/putty-key-generator-21022009-183824.jpg" title="" class="shutterset_singlepic35" >
	<img class="ngg-singlepic ngg-right" src="http://technitip.net/wp-content/gallery/cache/35__295x_putty-key-generator-21022009-183824.jpg" alt="putty-key-generator-21022009-183824.jpg" title="putty-key-generator-21022009-183824.jpg" />
</a>
</p>
<p>To have the key later available for other servers use the &#8220;Save public key&#8221; and &#8220;Save private key&#8221; button. My private key is saved as <em>haifisch.ppk</em> and my public key as <em>haifisch</em>. By the way, haifisch is German and means shark.</p>
<p>Now mark the generated public key, copy it to the clip board and paste it into <em>~/.ssh/authorized_keys</em> file on the remote server of the user you want to login as.</p>
<p>
<a href="http://technitip.net/wp-content/gallery/test/save-private-key-as-21022009-183913.jpg" title="" class="shutterset_singlepic36" >
	<img class="ngg-singlepic ngg-left" src="http://technitip.net/wp-content/gallery/cache/36__295x_save-private-key-as-21022009-183913.jpg" alt="save-private-key-as-21022009-183913.jpg" title="save-private-key-as-21022009-183913.jpg" />
</a>
 
<a href="http://technitip.net/wp-content/gallery/test/putty-key-generator-21022009-192015.jpg" title="" class="shutterset_singlepic37" >
	<img class="ngg-singlepic ngg-right" src="http://technitip.net/wp-content/gallery/cache/37__295x_putty-key-generator-21022009-192015.jpg" alt="putty-key-generator-21022009-192015.jpg" title="putty-key-generator-21022009-192015.jpg" />
</a>
</p>
<p><strong>PuTTY Configuration<br />
</strong></p>
<p>Keys have been generated and stored on the remote server, therefore PuTTYgen can be closed now and the PuTTY.exe is needed now.</p>
<p>In PuTTY under the item &#8220;Session&#8221; enter the host name of the remote server and connection type SSH. Next choose &#8220;Connection/Data&#8221; and enter the remote user name. Also the previously defined private key is needed, it is given in &#8220;Connection/SSH/Auth&#8221; using the &#8220;Browse&#8221; button. In my case it&#8217;s <em>haifisch.ppk</em>.</p>
<p>
<a href="http://technitip.net/wp-content/gallery/test/putty-configuration-21022009-193323.jpg" title="" class="shutterset_singlepic38" >
	<img class="ngg-singlepic ngg-left" src="http://technitip.net/wp-content/gallery/cache/38__295x_putty-configuration-21022009-193323.jpg" alt="putty-configuration-21022009-193323.jpg" title="putty-configuration-21022009-193323.jpg" />
</a>
 
<a href="http://technitip.net/wp-content/gallery/test/putty-configuration-21022009-193323.jpg" title="" class="shutterset_singlepic38" >
	<img class="ngg-singlepic ngg-right" src="http://technitip.net/wp-content/gallery/cache/38__295x_putty-configuration-21022009-193323.jpg" alt="putty-configuration-21022009-193323.jpg" title="putty-configuration-21022009-193323.jpg" />
</a>
</p>
<p>When all settings are done go back to &#8220;Session&#8221;, enter a name for this session and press &#8220;Save&#8221;.</p>
<p>That&#8217;s it. Try it by double clicking on the saved session.</p>
<p><strong>Login via Desktop Icon</strong></p>
<p>If you want to have a desktop icon which opens putty and logs into a remote server generate a file e.g. www.myserver.com.bat with the content:</p>
<p><code>start C:\temp\putty\putty.exe -load "Session Name in PuTTY"</code></p>
<p>Now generate a link to this batch file on your desktop and login in by double clicking.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fputty-ssh-login-without-password-prompt&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/running-rsync-and-sudo-over-ssh' rel='bookmark' title='Running Rsync and Sudo over SSH'>Running Rsync and Sudo over SSH</a></li>
<li><a href='http://technitip.net/enable-wordpress-auto-login' rel='bookmark' title='Enable WordPress Auto-Login'>Enable WordPress Auto-Login</a></li>
<li><a href='http://technitip.net/bash-prompt-too-long' rel='bookmark' title='Bash Prompt too long?'>Bash Prompt too long?</a></li>
</ol></p></div>]]></content:encoded>
			<wfw:commentRss>http://technitip.net/putty-ssh-login-without-password-prompt/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Debian &#8220;Lenny&#8221; 5.0 Released</title>
		<link>http://technitip.net/debian-lenny-50-released</link>
		<comments>http://technitip.net/debian-lenny-50-released#comments</comments>
		<pubDate>Sat, 21 Feb 2009 15:16:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Etech]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[released]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://technitip.net/?p=641</guid>
		<description><![CDATA[Finally after 2 years running Debian &#8220;Etech&#8221; 4.0 the new version Debian 5.0 codename &#8220;Lenny&#8221; has been released. The new release is dedicated to Thiemo Seufer, a Debian Developer who dies on December 26th, 2008 in a tragic car accident. Read more information about &#8220;Lenny&#8221; on the Debian homepage. As you know only the early [...]<div style="clear: both;">
<strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/wordpress-3-0-%e2%80%9ethelonious%e2%80%9c-update' rel='bookmark' title='WordPress 3.0 „Thelonious“ Update'>WordPress 3.0 „Thelonious“ Update</a></li>
</ol></div>]]></description>
			<content:encoded><![CDATA[<p>Finally after 2 years running <a title="debian.org" href="http://debian.org/" target="_blank">Debian</a> &#8220;Etech&#8221; 4.0 the new version <a title="debian.org" href="http://debian.org/" target="_blank">Debian</a> 5.0 codename &#8220;Lenny&#8221; has been released. The new release is dedicated to Thiemo Seufer, a Debian Developer who dies on December 26th, 2008 in a tragic car accident. Read more information about &#8220;<a title="Debian GNU/Linux 5.0 released" href="http://www.uk.debian.org/News/2009/20090214.en.html" target="_blank">Lenny</a>&#8221; on the Debian homepage.</p>
<p>As you know only the early bird catches the worm, I immediately decided to update one server to Lenny. Sure, sometimes the worm isn&#8217;t delicious but if you are dealing with IT stuff you will know this kind of bad tasting worms already.</p>
<p>Okay the good news are: The worm wasn&#8217;t bad tasting in this case. Find my upgrade report below.</p>
<p><strong>Upgrade Procedure</strong></p>
<p>First I started with:</p>
<p><code>apt-get update</code></p>
<p>And received the error message:</p>
<p><code>There are no public key available for the following key IDs: 4D270D06F42584E6</code></p>
<p>Which means we need to get a new public key:</p>
<p><code>gpg --recv-key --keyserver wwwkeys.eu.pgp.net 4D270D06F42584E6</code><br />
<code>gpg --export 4D270D06F42584E6 | apt-key add -</code></p>
<p>or optionally with (not tested):</p>
<p><code>apt-get install debian-archive-keyring</code></p>
<p>Fine, next <code>apt-get update</code> was done again and several packages have been updated. It was prompted if a new /etc/mysql/my.cnf should be installed or my old one should be kept. I decided to keep my old one.</p>
<p>Afterwards I upgraded the distribution with <code>apt-get dist-upgrade</code> and many packages have been downloaded and installed.</p>
<p>For several config files it is again prompted if the old one should be kept or overwritten. I decided to backup to old configuration files and overwrite them with the new ones from the current distribution. I wanted to make sure that I don&#8217;t run into conflicts. Using this way the upgrade is performed very quick.</p>
<p>In the next step I adapted all my changes from backuped config files into the new ones. In my case mainly the Apache2 and MySQL configurations.</p>
<p><strong>Apache2</strong></p>
<p>After doing this Apache2 started with the message &#8220;NameVirtualHost *:80 has no VirtualHosts&#8221; and no one of my virtual hosts was recognized. I resolved this issue by changing the file /etc/apache2/sites-enabled/000-default and /etc/apache2/ports.conf. Within both files I&#8217;ve changed declarations &#8220;*:80&#8243; to &#8220;*&#8221;:</p>
<p><code>/etc/apache2/sites-enabled/000-default</code></p>
<p><code>&lt;VirtualHost *&gt;</code></p>
<p><code>/etc/apache2/ports.conf</code></p>
<p><code>NameVirtualHost *</code></p>
<p>Note that all your virtual host configurations also have to be defined with &#8220;&lt;VirtualHost * &gt;&#8221;.</p>
<p><strong>APT</strong></p>
<p>To receive the updates for &#8220;Lenny&#8221; edit the file /etc/apt/sources.conf and change the line:</p>
<p><code>deb http://security.debian.org/ etch/updates main contrib non-free</code></p>
<p>to</p>
<p><code>deb http://security.debian.org/ lenny/updates main contrib non-free</code></p>
<p><strong>Grub</strong></p>
<p>One special thing on my server here (Strato root server) is the Grub configuration. The server is configured with SATA RAID 1, therefore partitions are mounted on /dev/md0 and /dev/md1. After every kernel update I manually change the /boot/grub/menu.lst file. Here I copy the two parts for the latest running kernel and simply adjust the kernel versions:</p>
<p><code>title           Debian GNU/Linux, kernel (2.6.26-1-686)<br />
root            (hd0,0)<br />
kernel          /vmlinuz-2.6.26-1-686 root=/dev/md1 ro console=tty0 console=ttyS                   0,57600<br />
initrd          /initrd.img-2.6.26-1-686<br />
savedefault<br />
boot</code></p>
<p><code>title           Debian GNU/Linux, kernel (2.6.26-1-686, recovery mode)<br />
root            (hd0,0)<br />
kernel          /vmlinuz-2.6.26-1-686 root=/dev/md1 ro console=tty0 console=ttyS                   0,57600 single<br />
initrd          /initrd.img-2.6.26-1-686<br />
savedefault<br />
boot</code></p>
<p>Finally reboot and your issue will show &#8220;Debian GNU/Linux 5.0&#8243;.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fdebian-lenny-50-released&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol>
<li><a href='http://technitip.net/wordpress-3-0-%e2%80%9ethelonious%e2%80%9c-update' rel='bookmark' title='WordPress 3.0 „Thelonious“ Update'>WordPress 3.0 „Thelonious“ Update</a></li>
</ol></p></div>]]></content:encoded>
			<wfw:commentRss>http://technitip.net/debian-lenny-50-released/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make VIM Nice Looking</title>
		<link>http://technitip.net/make-vim-nice-looking</link>
		<comments>http://technitip.net/make-vim-nice-looking#comments</comments>
		<pubDate>Tue, 10 Feb 2009 19:20:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[highlightning]]></category>
		<category><![CDATA[indent]]></category>
		<category><![CDATA[looking]]></category>
		<category><![CDATA[nice]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[tabstop]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimrc]]></category>

		<guid isPermaLink="false">http://technitip.net/?p=563</guid>
		<description><![CDATA[Linux users usually know the text editor called &#8220;vi&#8221;. For beginners it&#8217;s tough to use and the look and feel is not very nice. &#8220;vim&#8221; which means vi-improved brings many improvements. To make vim more nice looking I&#8217;ve put my settings for your .vimrc together. I personally like the following settings: Syntax highlighting Different color [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Linux users usually know the text editor called &#8220;vi&#8221;. For beginners it&#8217;s tough to use and the look and feel is not very nice. &#8220;vim&#8221; which means vi-improved brings many improvements. To make vim more nice looking I&#8217;ve put my settings for your .vimrc together. I personally like the following settings:</p>
<ul>
<li>Syntax highlighting</li>
<li>Different color scheme</li>
<li>Disable indenting when copy and pasting a text from clip board</li>
<li>Replace tabs with blanks</li>
<li>Use 2 spaces as tabs instead of 4 spaces</li>
<li>Improve the search</li>
<li>Display cursor position</li>
</ul>
<p>Open the .vimrc in your home directory and add the following settings:</p>
<pre>" enable syntax highlightning
syntax enable

" set a different color scheme
colorscheme desert

" avoid identing when pasting a text
set paste

" enable auto indent
set autoindent

" expand tabs to spaces
set expandtab

" set the tab stop to 2 spaces and soft tab stop to 2 spaces
set tabstop=2 sts=2
set shiftwidth=2

" immediately search and display the typed search pattern
set incsearch

" highlighting of search matches
set hlsearch

" show cursor position
set ruler</pre>
<p style="text-align: left;">Much better now! Try the search (e.g. ESC /high) and you will recognize that the search pattern will be immediately highlighted when you enter it.</p>
<p style="text-align: left;">Note: If you want to replace all tabs within an existing file you can now use the vi command &#8220;:retab&#8221; and all tabs will be removed according the settings done in your .vimrc.</p>
<p style="text-align: left;">And finally the result:</p>
<p style="text-align: left;">
<a href="http://technitip.net/wp-content/gallery/test/planlosorg-putty-10022009-192707.jpg" title="" class="shutterset_singlepic22" >
	<img class="ngg-singlepic ngg-center" src="http://technitip.net/wp-content/gallery/cache/22__600x_planlosorg-putty-10022009-192707.jpg" alt="planlosorg-putty-10022009-192707.jpg" title="planlosorg-putty-10022009-192707.jpg" />
</a>
</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fmake-vim-nice-looking&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://technitip.net/make-vim-nice-looking/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

