<?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>Cool Geex &#187; Terminal</title> <atom:link href="http://www.coolgeex.com/category/terminal/feed/" rel="self" type="application/rss+xml" /><link>http://www.coolgeex.com</link> <description>Gadget and tech guide for the rest of us</description> <lastBuildDate>Tue, 27 Jul 2010 16:56:51 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.1</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <atom:link rel='hub' href='http://www.coolgeex.com/?pushpress=hub'/> <item><title>Make Your Mac Terminal More Personal</title><link>http://www.coolgeex.com/make-your-mac-terminal-more-personal/</link> <comments>http://www.coolgeex.com/make-your-mac-terminal-more-personal/#comments</comments> <pubDate>Fri, 08 Jan 2010 20:13:16 +0000</pubDate> <dc:creator>Cool Geex</dc:creator> <category><![CDATA[Mac Leopard]]></category> <category><![CDATA[Snow Leopard]]></category> <category><![CDATA[Terminal]]></category><guid isPermaLink="false">http://www.coolgeex.com/?p=434</guid> <description><![CDATA[Terminal windows are usually pretty boring, but you can make them more personal by adding a welcome message and  changing some colors. To do so, open your terminal under Applications &#8211;&#62; Utilities. Then type : open -e ~/.profile (The file will open in the graphic text editor) Go to the end of the file and add the red [...]]]></description> <content:encoded><![CDATA[<p>Terminal windows are usually pretty boring, but you can make them more personal by adding a welcome message and  changing some colors.</p><p>To do so, open your terminal under Applications &#8211;&gt; Utilities.</p><p>Then type : <span style="color: #ff0000;">open -e ~/.profile <span style="color: #000000;">(The file will open in the graphic text editor)</span></span></p><p><span style="color: #ff0000;"><span style="color: #000000;">Go to the end of the file and add the red text:</span></span></p><p><span style="color: #ff0000;">echo -n &#8220;Current Time: &#8220;</span> (To Show The Current Time)<br /> <span style="color: #ff0000;">date</span></p><p><span style="color: #ff0000;"><br /> echo &#8220;Disk Usage:&#8221;</span> (To Show the Disk Usage)<br /> <span style="color: #ff0000;">df -h</span><br /> <span id="more-434"></span><br /> <span style="color: #ff0000;">echo &#8220;Hello $USER &#8220;</span> (To Get an hello message of the Login user)</p><p><span style="color: #ff0000;">alias ls=&#8217;ls -G&#8217; </span>(To make ls run in Graphic mode &#8211; list with colors)</p><p>If you also want to change your prompt you can set the variable PS1 by adding export PS1=&#8221;your setting &#8221; to .profile.</p><p>here is mine:</p><pre>export PS1="\e[0m\#.\e[0;31m@\t\e[0;36m[\u@\h \e[35m\w\e[0;36m] \e[0m\$ "</pre><p>and it looks like that:  <span style="color: #00ff00;">1.</span><span style="color: #ff0000;">@11:50:26</span><span style="color: #00ffff;">[User@User-MacBook</span> <span style="color: #ff00ff;">/Users</span><span style="color: #00ffff;">]</span> <span style="color: #00ff00;">$<br /> </span></p><p>I know that is looks scary, but it's pretty simple:</p><p>all the \e[x;xm are for colors (range is: 40-47;30-37) you should play with this one</p><p>\u will count the prompt lines for you</p><p>\t is for time (you can also use \@ For am/pm OR \T for 12H format)</p><p>\u is for current user</p><p>\h is for host (you can also use \H for full host name)</p><p>\w is for full working directory (\W will give you only the current directory)</p><p><strong>This is just a simple example, you can do much more.</strong></p><p>****For most linux systems the file would be .bashrc instead of .profile<strong><br /> </strong></p> ]]></content:encoded> <wfw:commentRss>http://www.coolgeex.com/make-your-mac-terminal-more-personal/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Linux Process Control With HTOP</title><link>http://www.coolgeex.com/linux-process-control-with-htop/</link> <comments>http://www.coolgeex.com/linux-process-control-with-htop/#comments</comments> <pubDate>Sun, 13 Dec 2009 19:09:04 +0000</pubDate> <dc:creator>Cool Geex</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Terminal]]></category> <category><![CDATA[Ubuntu]]></category><guid isPermaLink="false">http://www.coolgeex.com/?p=439</guid> <description><![CDATA[ If you use the top command in Linux you are going to LOVE htop&#8230;. Htop is an ncursed-based process viewer similar to top, but it allows to scroll the list vertically and horizontally to see all processes and their full command lines.  Tasks related to proccesses (killing, renicing) can be done without entering their PIDs.To Install [...]]]></description> <content:encoded><![CDATA[<p style="text-align: left;"><a rel="attachment wp-att-440" href="http://www.coolgeex.com/linux-process-control-with-htop/linux-htop/"><img class="size-medium wp-image-440  aligncenter" title="linux-htop" src="http://www.coolgeex.com/wp-content/uploads/2010/01/linux-htop-500x281.png" alt="" width="500" height="281" /></a></p><p style="text-align: left;">If you use the top command in Linux you are going to LOVE htop&#8230;.</p><p style="text-align: left;">Htop is an ncursed-based process viewer similar to top, but it allows to scroll the list vertically and horizontally to see all processes and their full command lines.  Tasks related to proccesses (killing, renicing) can be done without entering their PIDs.</p><p style="text-align: left;"><p>To Install Htop on Ubuntu Linux Just open terminal and type:</p><pre>sudo apt-get install htop</pre>]]></content:encoded> <wfw:commentRss>http://www.coolgeex.com/linux-process-control-with-htop/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Automate a Remote Login Using SSH &#8211; Linux</title><link>http://www.coolgeex.com/automate-a-remote-login-using-ssh-linux/</link> <comments>http://www.coolgeex.com/automate-a-remote-login-using-ssh-linux/#comments</comments> <pubDate>Thu, 15 Oct 2009 22:16:36 +0000</pubDate> <dc:creator>Cool Geex</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Terminal]]></category><guid isPermaLink="false">http://www.coolgeex.com/?p=244</guid> <description><![CDATA[ To do just that you need to create SSH Key Pair 1. we need to use ssh-agent to create an SSH key pair. To do that run this command: ssh-keygen -t rsa When prompted for a password, choose something long and secure. After few seconds  you should see a message like: Your identification has been saved in ~/.ssh/id_rsa. Your public key [...]]]></description> <content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-246" title="ssh-keygen" src="http://www.coolgeex.com/wp-content/uploads/2009/10/ssh-keygen-500x281.png" alt="ssh-keygen" width="500" height="281" /></p><p>To do just that you need to create SSH Key Pair</p><p>1. we need to use ssh-agent to create an SSH key pair.</p><p>To do that run this command:<strong><span style="color: #339966;"> ssh-keygen -t rsa</span></strong></p><p>When prompted for a password, choose something long and secure.</p><p>After few seconds  you should see a message like:</p><p>Your identification has been saved in ~/.ssh/id_rsa.</p><p>Your public key has been saved in ~.ssh/id_rsa.pub.</p><p>Now we need to add the public key (id_rsa.pub) to our web server. You can head in to the web server via FTP and cut and paste the info into ~/.ssh/authorized_keys.</p><p>Or The terminal way, execute this line, substituting your login info:</p><p><span id="more-244"></span></p><p><strong><span style="color: #339966;">cat ~/.ssh/id_rsa.pub | ssh YourUserName@YourServer.com &#8216;cat &gt;&gt; .ssh/authorized_keys&#8217;</span></strong></p><p>Notes:</p><p>1. For some versions of ssh, you may have to use the ~/.ssh/authorized_keys2 file.</p><p>2. you can also use dsa instead of rsa.</p><p>*** For RSA keys the minimum size is 768 bits and the default is 2048 bits.</p><p>*** DSA keys must be exactly 1024 bits as specified by FIPS 186-2.</p> ]]></content:encoded> <wfw:commentRss>http://www.coolgeex.com/automate-a-remote-login-using-ssh-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Viewing file differences in Terminal using colors</title><link>http://www.coolgeex.com/viewing-file-differences-in-terminal-using-colors/</link> <comments>http://www.coolgeex.com/viewing-file-differences-in-terminal-using-colors/#comments</comments> <pubDate>Fri, 14 Aug 2009 00:12:11 +0000</pubDate> <dc:creator>Cool Geex</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac Leopard]]></category> <category><![CDATA[Terminal]]></category><guid isPermaLink="false">http://www.coolgeex.com/?p=42</guid> <description><![CDATA[So, a friend asked me who come my terminal is full of colors and he have one color. To make your files list in color just type ls -G, or make &#8216;ls&#8217;  show colors by default, this is how: Video Version:Text Version:1. Start Terminal. 2. Type cd ~ 3. Type nano .profile 4. Add the line alias ls = &#8216;ls [...]]]></description> <content:encoded><![CDATA[<p>So, a friend asked me who come my terminal is full of colors and he have one color.</p><p>To make your files list in color just type ls -G, or make &#8216;ls&#8217;  show colors by default, this is how:</p><p>Video Version:<br /> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/40C6DF6Y1IU&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/40C6DF6Y1IU&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p><p>Text Version:</p><p><span id="more-42"></span></p><p>1. Start Terminal.</p><p>2. Type cd ~</p><p>3. Type nano .profile</p><p>4. Add the line alias ls = &#8216;ls -G&#8217;</p><p>5. Press ctrl + x to exit.</p><p>6. Press Y, then Enter to save the file.</p><p>7. Restart the terminal.</p> ]]></content:encoded> <wfw:commentRss>http://www.coolgeex.com/viewing-file-differences-in-terminal-using-colors/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Play Tetris Using Mac Leopard Terminal</title><link>http://www.coolgeex.com/play-tetris-using-mac-leopard-terminal/</link> <comments>http://www.coolgeex.com/play-tetris-using-mac-leopard-terminal/#comments</comments> <pubDate>Sat, 08 Aug 2009 21:06:27 +0000</pubDate> <dc:creator>Cool Geex</dc:creator> <category><![CDATA[Games]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac Leopard]]></category> <category><![CDATA[Terminal]]></category> <category><![CDATA[Unix]]></category><guid isPermaLink="false">http://www.coolgeex.com/?p=33</guid> <description><![CDATA[Terminal Tetris is actually part of the Gnu Emacs and is something you should able to do on any unix system that has Emacs on it. I attached text and video instructions.To start it all you have to do is: 1. Open Terminal 2. type: “emacs” and wait for the emacs screen to load 3. hit “esc” then type [...]]]></description> <content:encoded><![CDATA[<p>Terminal Tetris is actually part of the Gnu Emacs and is something you should able to do on any unix system that has Emacs on it.</p><p>I attached text and video instructions.</p><p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/yEl2mx6yXjU&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/yEl2mx6yXjU&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p><p>To start it all you have to do is:</p><p>1. Open Terminal</p><p>2. type: “emacs” and wait for the emacs screen to load</p><p>3. hit “esc” then type “x”</p><p>4. type “tetris” (lowercase letters)</p><p>5.Enter</p><p>A Tetris game will load in the window and you can play it by using the arrow keys &amp; space to control the falling blocks.</p> ]]></content:encoded> <wfw:commentRss>http://www.coolgeex.com/play-tetris-using-mac-leopard-terminal/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc (user agent is rejected)
Database Caching 35/43 queries in 0.163 seconds using apc

Served from: 10.10.10.43 @ 2010-07-30 00:32:17 -->