<?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>Xster.net &#187; hack</title>
	<atom:link href="http://tech.xster.net/tag/hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.xster.net</link>
	<description>Never relearn twice</description>
	<lastBuildDate>Mon, 30 Aug 2010 00:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Arpspoof, Tcpkill, Tcpnice Tutorial</title>
		<link>http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/</link>
		<comments>http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 04:56:29 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[arp]]></category>
		<category><![CDATA[arpspoof]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[spoofing]]></category>
		<category><![CDATA[tcpkill]]></category>
		<category><![CDATA[tcpnice]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=175</guid>
		<description><![CDATA[Notes to self because I never remember To arpspoof, turn on IP forwarding: echo 1 &#62; /proc/sys/net/ipv4/ip_forward with Linux (might need su) or more permanently, net.ipv4.ip_forward = 1 in /etc/sysctl.conf In BSD/Mac OS X, sysctl -w net.inet.ip.forwarding=1 or net.inet.ip.forwarding = 1 in /etc/sysctl.conf Alternatively, you can also use fragrouter to forward packets with fragrouter -B1 [...]]]></description>
			<content:encoded><![CDATA[<p>Notes to self because I never remember</p>
<p>To arpspoof, turn on IP forwarding:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ipv4<span style="color: #000000; font-weight: bold;">/</span>ip_forward</pre></div></div>

<p>with Linux (might need su) or more permanently,</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">net.ipv4.ip_forward = <span style="color: #000000;">1</span></pre></div></div>

<p>in /etc/sysctl.conf<br />
<span id="more-175"></span><br />
In BSD/Mac OS X,</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sysctl <span style="color: #660033;">-w</span> net.inet.ip.forwarding=<span style="color: #000000;">1</span></pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">net.inet.ip.forwarding = <span style="color: #000000;">1</span></pre></div></div>

<p>in /etc/sysctl.conf</p>
<p>Alternatively, you can also use fragrouter to forward packets with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">fragrouter <span style="color: #660033;">-B1</span></pre></div></div>

<p>Then to arpspoof</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">arpspoof <span style="color: #660033;">-t</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>victim ip<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>gateway ip<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">arpspoof <span style="color: #660033;">-t</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>gateway ip<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>victim ip<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Optionally, add</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</pre></div></div>

<p>to get rid of output. Trust me, there&#8217;s nothing interesting.</p>
<p>To block sites/ports:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tcpkill <span style="color: #660033;">-9</span> host www.facebook.com or port <span style="color: #000000;">5432</span></pre></div></div>

<p>To slow down traffic:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tcpnice net 10.0.0.2 or port <span style="color: #000000;">5432</span></pre></div></div>

<p>Filter expressions are <a href="http://linux.die.net/man/8/tcpdump">here</a></p>
<p>The easiest way to detect this spoofing is to ping something outside your gateway and look for redirects</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;title=Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;t=Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial+-+http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;n=Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;title=Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;title=Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;t=Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;title=Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;title=Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/&amp;title=Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial&amp;summary=Notes%20to%20self%20because%20I%20never%20remember%0D%0A%0D%0ATo%20arpspoof%2C%20turn%20on%20IP%20forwarding%3A%0D%0Aecho%201%20%3E%20%2Fproc%2Fsys%2Fnet%2Fipv4%2Fip_forward%0D%0Awith%20Linux%20%28might%20need%20su%29%20or%20more%20permanently%2C%0D%0Anet.ipv4.ip_forward%20%3D%201%0D%0Ain%20%2Fetc%2Fsysctl.conf%0D%0A%0D%0AIn%20BSD%2FMac%20OS%20X%2C%0D%0Asysctl%20-w%20net.inet.ip.forwarding%3D1%0D%0Aor%0D%0Anet.inet.ip.forwarding%20%3D%201&amp;source=Xster.net" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BackTrack 4 Pre-Release Apache, PostgreSQL Autostart</title>
		<link>http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/</link>
		<comments>http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 06:07:03 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[autostart]]></category>
		<category><![CDATA[backtrack]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[update-rc]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=166</guid>
		<description><![CDATA[BackTrack 4 is in pre-release and it&#8217;s a beautiful system. However, there seems to be a problem where after your first apt-get upgrade, the system will try to load Apache, PostgreSQL and other daemons on startup. Not exactly what you want when you want a clean system. To turn it off and prevent autostart: sudo [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.remote-exploit.org/backtrack.html">BackTrack 4</a> is in pre-release and it&#8217;s a beautiful system. However, there seems to be a problem where after your first apt-get upgrade, the system will try to load Apache, PostgreSQL and other daemons on startup. Not exactly what you want when you want a clean system. To turn it off and prevent autostart:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> apache2 remove
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> postgresql-<span style="color: #000000;">8.3</span> remove
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rd.d <span style="color: #660033;">-f</span> dhcp3-server remove</pre></div></div>

<p>This way, you can go on doing your thing without anything that leaves you open</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;title=BackTrack+4+Pre-Release+Apache%2C+PostgreSQL+Autostart" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;t=BackTrack+4+Pre-Release+Apache%2C+PostgreSQL+Autostart" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=BackTrack+4+Pre-Release+Apache%2C+PostgreSQL+Autostart+-+http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;n=BackTrack+4+Pre-Release+Apache%2C+PostgreSQL+Autostart&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;title=BackTrack+4+Pre-Release+Apache%2C+PostgreSQL+Autostart" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;title=BackTrack+4+Pre-Release+Apache%2C+PostgreSQL+Autostart" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;t=BackTrack+4+Pre-Release+Apache%2C+PostgreSQL+Autostart" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;title=BackTrack+4+Pre-Release+Apache%2C+PostgreSQL+Autostart" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;title=BackTrack+4+Pre-Release+Apache%2C+PostgreSQL+Autostart" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/&amp;title=BackTrack+4+Pre-Release+Apache%2C+PostgreSQL+Autostart&amp;summary=BackTrack%204%20is%20in%20pre-release%20and%20it%27s%20a%20beautiful%20system.%20However%2C%20there%20seems%20to%20be%20a%20problem%20where%20after%20your%20first%20apt-get%20upgrade%2C%20the%20system%20will%20try%20to%20load%20Apache%2C%20PostgreSQL%20and%20other%20daemons%20on%20startup.%20Not%20exactly%20what%20you%20want%20when%20you%20want%20a%20clean%20system.%20To%20turn%20it%20off%20and%20prevent%20auto&amp;source=Xster.net" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/backtrack-4-pre-release-apache-postgresql-autostart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quake Style Drop Down Terminal for Mac</title>
		<link>http://tech.xster.net/tips/the-perfect-visor-reborn/</link>
		<comments>http://tech.xster.net/tips/the-perfect-visor-reborn/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 22:52:28 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[blacktree]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[perfect]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[quake]]></category>
		<category><![CDATA[SIMBL]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[visor]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=10</guid>
		<description><![CDATA[The Visor Terminal, one of my most used hack-features. This guide helps you put your Mac Terminal to the zenith of usability and convenience. The drop-down Quake-style terminal window is extremely convenient to run commands without disrupting the current workflow. Unfortunately the default install is very messy. It needs an open terminal program running in [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">The <a href="http://visor.binaryage.com/" target="_blank">Visor Terminal</a>, one of my most used hack-features. This guide helps you put your Mac Terminal to the zenith of usability and convenience.</p>
<div id="attachment_11" class="wp-caption alignleft" style="width: 650px"><img class="size-full wp-image-11" title="visor" src="http://tech.xster.net/wp-content/uploads/2009/03/visor.jpg" alt="Visor Terminal" width="640" height="261" /><p class="wp-caption-text">Visor Terminal</p></div>
<p>The drop-down Quake-style terminal window is extremely convenient to run commands without disrupting the current workflow. Unfortunately the default install is very messy. It needs an open terminal program running in the background which can&#8217;t be closed and takes up valuable Dock space.<span id="more-10"></span></p>
<p>Then comes a blog from <a href="http://blog.wombert.de/" target="_blank">David Zülke</a> who solved the problem with a <a href="http://blog.wombert.de/2006/11/04/the-perfect-visor/" target="_blank">hack</a> which essentially creates a second terminal program, links the visor extension to it and makes that second terminal always invisible and not appearing in the Dock by playing with the Info.plist file. The world was beautiful until I bought a new Macbook and tried to reinstall Visor but only to find out that his instructions are no longer hosted. So here are the instructions again for those who want a Perfect Visor. This is for version 1.5 &#8211; 2.2 which runs on Leopard &#8211; Snow Leopard.</p>
<ol>
<li>Install <a href="http://www.culater.net/software/SIMBL/SIMBL.php" target="_blank">SIMBL </a></li>
<li>This is not necessary but it&#8217;s a lot easier if you have <a href="http://developer.apple.com/TOOLS/xcode/" target="_blank">XCode</a> to use its .plist editor tool.</li>
<li>Right-click the extracted “Visor” file, select “Show Package Contents” and double-click “Info.plist” in the “Contents” folder[1]. Go to <code>Root</code>, <code>SIMBLTargetApplications</code>, <code>0</code> and change <code>BundleIdentifier</code> to “com.apple.VisorTerminal”. Save and close. You can now install the bundle according to the Visor install instructions (i.e. move it to ~/Library/Application Support/SIMBL/Plugins or the “global” equivalent in /Library).</li>
<li>Go to your Applications/Utilities folder and duplicate Terminal. Rename the copy to “VisorTerminal”, then right-click it and choose “Show Package Contents”, and double-click “Info.plist” in the “Contents” folder. Go to <code>Root</code> and change <code>CFBundleIdentifier</code> to “com.apple.VisorTerminal”. Save and close.</li>
<li>Start VisorTerminal. Go to Terminal menu and click Visor Preferences. Customize it to your suiting.</li>
<li>Make it run on start up. You can right click the VisorTerminal on Dock and choose &#8220;Open at Login&#8221;</li>
<li>Make it invisible. Right-click the VisorTerminal, choose “Show Package contents” and double-click Info.plist in the Contents folder. Add a new Sibling inside the root element called <code>LSUIElement</code>, it must be of type “Number” and have the value “1″ (without the quotes, of course). Save and quit.</li>
<li>Done and done! Now the Visor will start on startup and won&#8217;t show up anywhere until you press the hotkey.  If you don&#8217;t like your previous preferences, you can&#8217;t right click or use menu anymore but pressing cmd-, will bring up the preferences window for the terminal</li>
</ol>
<p>Currently, there&#8217;s a bug with SIMBL 0.97 that causes the application to stop using SIMBL when LSUIElement is set to 1. To solve this issue, use AppleScript with the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;VisorTerminal&quot;</span>
	inject SIMBL <span style="color: #0066ff;">into</span> Snow Leopard
	<span style="color: #0066ff;">activate</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span></pre></div></div>

<p>Then save the script as a .app in a desired location. Make this run at startup instead of VisorTerminal.</p>
<p>The next steps are optional but your default Darwin terminal prompt  looks like shit. Here&#8217;s how to customize it.</p>
<ol>
<li>Press your hotkey or open Terminal</li>
<li>Go to your home directory

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~</pre></div></div>

<p>You are there by default</li>
<li>Change your profile file

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mate .bash_profile</pre></div></div>

<p>TextMate is my favorite editor. If you don&#8217;t use it, use <code>nano</code> instead of <code>mate</code></li>
<li>Type

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> PS1 = <span style="color: #ff0000;">&quot; &quot;</span></pre></div></div>

<p>And customize your prompt with the following keywords between the quotes</p>
<ul>
<li>\d &#8211; Current date</li>
<li>\t &#8211; Current time</li>
<li>\h &#8211; Host name</li>
<li>\# &#8211; Command number</li>
<li>\u &#8211; User name</li>
<li>\W &#8211; Current working directory (ie: Desktop/)</li>
<li>\w &#8211; Current working directory, full path (ie: /Users/Admin/Desktop)</li>
</ul>
<p>ie.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;\u@\h\w: &quot;</span></pre></div></div>

</li>
<li>Save and restart your terminal</li>
</ol>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;title=Quake+Style+Drop+Down+Terminal+for+Mac" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;t=Quake+Style+Drop+Down+Terminal+for+Mac" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Quake+Style+Drop+Down+Terminal+for+Mac+-+http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;n=Quake+Style+Drop+Down+Terminal+for+Mac&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;title=Quake+Style+Drop+Down+Terminal+for+Mac" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;title=Quake+Style+Drop+Down+Terminal+for+Mac" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;t=Quake+Style+Drop+Down+Terminal+for+Mac" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;title=Quake+Style+Drop+Down+Terminal+for+Mac" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;title=Quake+Style+Drop+Down+Terminal+for+Mac" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://tech.xster.net/tips/the-perfect-visor-reborn/&amp;title=Quake+Style+Drop+Down+Terminal+for+Mac&amp;summary=The%20Visor%20Terminal%2C%20one%20of%20my%20most%20used%20hack-features.%20This%20guide%20helps%20you%20put%20your%20Mac%20Terminal%20to%20the%20zenith%20of%20usability%20and%20convenience.%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AThe%20drop-down%20Quake-style%20terminal%20window%20is%20extremely%20convenient%20to%20run%20commands%20without%20disrupting%20the%20current%20workflow.%20Unfortunately%20the%20default%20&amp;source=Xster.net" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/the-perfect-visor-reborn/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
