<?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>Yet Another Linux Blog &#187; Tips</title>
	<atom:link href="http://linux-blog.org/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux-blog.org</link>
	<description>Open Source, Open Blog</description>
	<lastBuildDate>Fri, 19 Feb 2010 18:44:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Host Your Own Domain, Website and Webserver</title>
		<link>http://linux-blog.org/host-your-own-domain-website-and-webserver/</link>
		<comments>http://linux-blog.org/host-your-own-domain-website-and-webserver/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 18:27:23 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[Webserver]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=1363</guid>
		<description><![CDATA[This post was originally published on 13 July, 2006.  I&#8217;ve updated the original post which can be found here with current and extra information.
I have a problem with facebook, myspace, and other social networking websites out there.  The problem is when I upload my data to their webservers&#8230;.I don&#8217;t own it anymore.  They do.  And [...]


Related posts:<ol><li><a href='http://linux-blog.org/self-musings/' rel='bookmark' title='Permanent Link: Self Musings'>Self Musings</a> <small>With Yet Another Linux Blog silently turning 4 years old...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<blockquote><p><em>This post was originally published on 13 July, 2006.  I&#8217;ve updated the original post which can <a title="be found here" href="http://linux-blog.org/host-your-own-domain-and-webserver-using-apache/" target="_blank">be found here</a> with current and extra information.</em></p></blockquote>
<p>I have a problem with facebook, myspace, and other social networking websites out there.  The problem is when I upload my data to their webservers&#8230;.I don&#8217;t own it anymore.  They do.  And they can do whatever they want with it once it is there.</p>
<p>With this in mind, I&#8217;d rather setup <a title="status.net aka laconi.ca" href="http://status.net/" target="_blank">my own twitter using Status.net</a> or <a title="Pligg" href="http://www.pligg.com/" target="_blank">my own digg using Pligg</a>.  But I&#8217;d do it on MY OWN SERVER.  That way, any content I upload is MINE.  It doesn&#8217;t reside on some server in California or DC and get <a title="YOU BE THE STAR! Without Knowledge" href="http://www.wired.com/epicenter/2008/01/facebook-ads-ma/" target="_blank">recycled to advertisements</a>.</p>
<p>I like to control my own stuff.  I don&#8217;t like to be cut out of the loop.  If you&#8217;re like me, then you&#8217;ll want to host your own domain, website and webserver so that your friends/family/shrink can quickly and easily connect up to see new photos, find out the latest family developments, and understand why you wear tinfoil hats every Thursday after 4pm.</p>
<p>Normally, to host your own webpage you would need to spend around 7  bucks to purchase a domain.  Next you would need a hosting plan that usually runs around 3-15 dollars per month to serve up your web pages.</p>
<p>What most don&#8217;t realize is that you can skip these steps all together&#8230;you don&#8217;t need to get <a title="Dedicated Hosting" href="http://www.hosting.com/dedicatedservershosting/" target="_blank">dedicated hosting</a> (this blog is hosted on dedicated  hosting&#8230;but started out in my apartment!) to serve pages up to your friends and family.  You absolutely do not need  to get domain name services through a provider.  You can even host your  own webserver using a dialup connection (that&#8217;s right&#8230;I said dialup)  although. I don&#8217;t recommend it (but I&#8217;ve done it using 56.6kbps).</p>
<p>Why would you want to do this?  The answer might be to stay connected to  friends and family&#8230;perhaps install a gallery so that your  grandparents can see pics of your new dog/car/tinfoil hat.  Sure, you  could waste my time with MyWaste..er..space and facebook and be barraged daily by  advertisers and solicitors and be inundated with the minutiae of what all your friends had to eat for the day &#8230;or you could roll your own web host,  install a gallery or website, and provide media to your friends and  family without costing yourself a dime.  That&#8217;s right, <strong>NO COST</strong> (except time spent getting it running).  Just remember, your website  might not survive a digging or slashdotting if you run it yourself.   Keep that in mind <img src='http://linux-blog.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   So without more chatter, let&#8217;s get to the meat  and potatoes of things:</p>
<p><strong><span style="text-decoration: underline;">Meat and Potatoes</span></strong></p>
<p>If you have Cable or DSL at home (not a business account) you have something called a <span style="text-decoration: underline;">dynamic</span> connection.  Dynamic connection means that it can change every once in a while.  DSL and cable ISP&#8217;s purchase blocks of IP Addresses in the dynamic range so that they can keep consumers separate from businesses.  It&#8217;s also easier for them to manage dynamic pools of people than to have to remember static connections that don&#8217;t change for everyone.</p>
<p>Because of this problem&#8230;an ever changing connection for you at home&#8230;web servers and websites do not do very well.  The reason for this is because when you visit a website on a dynamic connection one day, it might be different the next day.  In order for visitors of a website to find you each and every single time, you need a &#8220;domain&#8221; or web name that points back to the address (IP Address) your internet service provider changes on a whim.  You&#8217;ll also need an update service to update your website each time your ISP decides to change things on you.</p>
<p>Believe it or not, there are free services out there to do that for you.  You just have to be willing to do a little extra work in the beginning to set things up.  You can also do this without spending 20-40 bucks a month on DNS service.</p>
<p>I&#8217;ll divide this up into 2 sections.  The first will deal with Linux hosting.   The second, Windows hosting.  This is only something that I&#8217;ve found easy to  do and the price is just right (it&#8217;s free).  The only thing that I  recommend is a dedicated internet connection (cable, DSL) but even this  is not necessary as dialup can be used.  I recommend that you use the  Linux way of doing things since it is more secure and doesn&#8217;t require a  restart every time you patch it.</p>
<p><em>*note: I&#8217;m assuming that you aren&#8217;t behind a firewall/proxy of any  kind and that your ISP doesn&#8217;t block port 80 traffic.  If your ISP  blocks port 80, see the appendix at the end of this article.</em></p>
<p><strong><span style="text-decoration: underline;">LINUX</span></strong></p>
<p><strong> </strong>No matter what version of Linux you run, chances are that  you&#8217;ll be able to install the apache webserver.  This is good news as  over half the websites of the world are run by apache. I&#8217;m not going to address the specifics of how to set  up your apache&#8230;only how to get it a fixed address without buying a  domain.  So, you have your html or php pages located into your webservers public  directory&#8230;good&#8230;whatever application you have is installed on your server.  Now, how to resolve your IP&#8230;lets say it  is&#8230;25.24.4.166 (for our example) and you want it to have a  host.name.com to bind to.  Easy to resolve.  Go to <a href="http://www.no-ip.com/index.php" target="_blank">http://www.no-ip.com/index.ph</a><a href="http://www.no-ip.com/index.php">p</a> and sign up.  You can  get a site from noip that is like yourname.theirdomain.com/.net/.info.   They have cool names like sytes.net and servebeer.org&#8230;even  workisboring.com.  Other services like <a title="dyndns.org" href="http://dyndns.org" target="_blank">dyndns.org</a> also exist and provide the free service as well.</p>
<p>You&#8217;ll be able to choose your own top level name&#8230;for instance,  Ithink.dnsiskinky.com could be your new domain name.  Next download a  client from the download tab: <a href="https://www.no-ip.com/downloads.php" target="_blank">https://www.no-ip.com/downloads.php</a></p>
<p>The linux client is a tar.gz source and is simple to install. Follow the  instructions when installing.  You may have to install compilation  tools (devel packages like GCC) to install the client.  You now are the  proud owner of yoursite.theirsite.com and your IP will ALWAYS update (as  long as noip.com is up) each time you log on/sign on/beam up or  whatever it is you do.</p>
<p>How does this help you?  Well, if you&#8217;re like me, you have a dynamic  IP address.  If you connect to the internet via cable, dialup, or  dsl&#8230;you also have a dynamic IP address.  Dynamic means that it will  change from time to time without warning.  So by binding  yoursite.theirsite.com to your IP address&#8230;you don&#8217;t ever have to worry  about what IP address you have anymore.  Instead, you&#8217;ll always be able  to connect using yoursite.theirsite.com.  You can host a webserver  using Apache and a virtual host in this style as well (look for another  how-to on this subject later) so that everyone can visit a shiny website  at yoursite.theirsite.com.</p>
<p>Now you can give your friends/family/dog walker/mailman the address to your new webserver&#8230;maybe it&#8217;s Ithink.dnsiskinky.com like we used in the example above.  Now when they visit that address in their web browser, your application or web page displays for them.  You also get bragging rights at being the most technical friend/relative/dog walker client/household that everyone knows.  Now let&#8217;s cover Windows.</p>
<p><img title="More..." src="http://linux-blog.org/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></p>
<p><strong><span style="text-decoration: underline;">WINDOWS</span></strong></p>
<p><strong> </strong>First you need a free and clear webserver since one is not  included by default with windows. You can <a href="http://httpd.apache.org/download.cgi" target="_blank">download  Apache</a> for this as well OR try the <a href="http://abyss.sourceforge.net/" target="_blank">Abyss Webserver</a>.</p>
<p>Interestingly enough, Abyss is also free!  I ran it while my linux  machine was being worked on (bad hard disk&#8230;it was a Quantum 200MB  drive from 1913&#8230;had to upgrade) and it worked just great off of  Windows XP.  Download that puppy and install it.  Make sure you read all  of the documentation and familiarize yourself with how Abyss does  business.</p>
<p>The next step&#8230;getting a hostname&#8230; is even easier than the linux  method because you don&#8217;t have to manually install the noip client&#8230;they  have a windows installer.  Go to <a href="http://www.no-ip.com/index.php" target="_blank">http://www.no-ip.com/index.php</a> and sign up.  Choose the domain name you would like (see above examples  in Linux section).  Next, download the noip client from the download  tab: <a href="https://www.no-ip.com/downloads.php" target="_blank">https://www.no-ip.com/downloads.php</a> but this time choose the windows client.  From there, you&#8217;ll be able to  install this with a simple double click.  Fill in all of your  information (pretty self explanatory) and make sure that it will run  with each time you sign on.  You&#8217;re set! Your IP will now resolve to the  yourchoice.theirhostname.com</p>
<p><span style="text-decoration: underline;"><strong>CONCLUSION</strong></span></p>
<p><span style="text-decoration: underline;"><strong> </strong></span>You don&#8217;t have to spend a dime to keep a domain bound  to your IP.  This is perfect for the home user who just wants a gallery  or homepage.  It&#8217;s even good for someone who has a weblog or enthusiast  site.  It&#8217;s good for someone who wants to be able to find their files and music&#8230;setup Jinzora and stream all your music library to yourself anywhere you are!  Setup Amahi and have access to all the goodness it brings.</p>
<p>Please remember, this wouldn&#8217;t be good for a business to have.  You will probably violate your ISP&#8217;s terms and conditions for using their connection if you tried to run a business this way.</p>
<p>It&#8217;s always good form to put a link of the stuff you are using on  your website to direct traffic back to your software provider.  When I  used noip, I included a noip link on my main page and also an abyss  webserver icon as well.  It&#8217;s just good form and some companies/software  providers necessitate the use of their logo or a link on sites that use  their software/code.  Just be a nice person and give a linkback to  them.  Good luck! Have fun!</p>
<p>Also, please note that having hosted my own webserver for quite  some time (circa 2001) I&#8217;ve found Linux and Apache as a combination to  be more secure, faster, and more stable than any webserver I&#8217;ve hosted  on the Windows Platform. I included information on Windows mainly to  introduce you to the concept of free and open source software. If you  thought getting a webserver for free was great, think about getting a  whole operating system! Give it a try, you don&#8217;t even have to install it  (use a <a href="http://en.wikipedia.org/wiki/Live_CD">Live CD</a>).</p>
<p><strong><span style="text-decoration: underline;">APPENDIX</span></strong></p>
<p>If your ISP blocks port 80 traffic, your webserver won&#8217;t work.   Before deciding that your ISP is blocking however, make sure your  firewall has the appropriate rules to allow incoming traffic.  You can  do a quick add to IPTABLES in the following manner:</p>
<pre class="brush: plain;">iptables -A INPUT -p tcp --dport 80 -j ACCEPT</pre>
<pre class="brush: plain;">iptables -A INPUT -j DROP</pre>
<p>If you&#8217;ve opened up the appropriate ports and things still don&#8217;t  work, it will be safe to say that you&#8217;ve determined the ISP is blocking  port 80.  How you can get around this conundrum is to switch the  listening port on the webserver to a different one and redirect traffic  there.</p>
<ol>
<li><a href="http://www.no-ip.com/support/guides/web_servers/isp_block_port_80.html">See  how to do this for IIS Webservers</a></li>
<li><a href="http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listen">See  how to do this for Apache Webservers</a> (normally in  /etc/apache2/httpd.conf but your distro may vary.)</li>
<li><a href="http://www.aprelium.com/abyssws/faq.html#A1-2">See how to do  this for Abyss Webservers</a></li>
</ol>
<p>If you still have problems, drop me a line in the comments section.   I may not be able to answer all questions but I can most likely get you  to a person/place/thing that can.  Have fun and thanks for reading!</p>
<p><a href="http://linux-blog.org/host-your-own-domain-website-and-webserver/" rel="bookmark">Host Your Own Domain, Website and Webserver</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on February 13, 2010.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/self-musings/' rel='bookmark' title='Permanent Link: Self Musings'>Self Musings</a> <small>With Yet Another Linux Blog silently turning 4 years old...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/host-your-own-domain-website-and-webserver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Convert PNG to GIF via Command Line</title>
		<link>http://linux-blog.org/convert-png-to-gif-via-command-line/</link>
		<comments>http://linux-blog.org/convert-png-to-gif-via-command-line/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 18:24:03 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=1260</guid>
		<description><![CDATA[I installed a bare bones Arch Linux system today and took a screenshot.  With no graphics utilities installed, I needed a way to convert a PNG to a GIF for a Simple Machines forum template thumbnail.  I figured I&#8217;d use a command line utility to help me and ImageMagick is installed by default on most [...]


Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
<li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
<li><a href='http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/' rel='bookmark' title='Permanent Link: Laptop Multimedia Keys and PCLinuxOS 2009'>Laptop Multimedia Keys and PCLinuxOS 2009</a> <small>I installed PCLinuxOS 2009 recently on a Dell D630 Latitude...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I installed a bare bones Arch Linux system today and took a screenshot.  With no graphics utilities installed, I needed a way to convert a PNG to a GIF for a Simple Machines forum template thumbnail.  I figured I&#8217;d use a command line utility to help me and ImageMagick is installed by default on most distributions.  A quick read through the ImageMagick manpage and I found the <em>convert</em> command and thought I&#8217;d share it with everyone.  Use convert in the following fashion:  <strong>convert [input-options] input-file [output-options] output-file</strong></p>
<pre class="brush: plain;">convert SMFPress.png -channel Alpha -threshold 80% -resize 120x120 thumbnail.gif</pre>
<p>This did a quick, same-size conversion with little loss for me to display the thumbnail online.  For more information on the options I used and other options that I didn&#8217;t use, take a peek at the<a title="ImageMagick Help Convert" href="http://www.imagemagick.org/script/convert.php" target="_blank"> ImageMagick Online Help Page for convert.</a></p>
<p><a href="http://linux-blog.org/convert-png-to-gif-via-command-line/" rel="bookmark">Convert PNG to GIF via Command Line</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on November 6, 2009.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
<li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
<li><a href='http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/' rel='bookmark' title='Permanent Link: Laptop Multimedia Keys and PCLinuxOS 2009'>Laptop Multimedia Keys and PCLinuxOS 2009</a> <small>I installed PCLinuxOS 2009 recently on a Dell D630 Latitude...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/convert-png-to-gif-via-command-line/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Adding Color to Bash List Command Part II</title>
		<link>http://linux-blog.org/adding-color-to-bash-list-command-part-ii/</link>
		<comments>http://linux-blog.org/adding-color-to-bash-list-command-part-ii/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 18:25:16 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=1209</guid>
		<description><![CDATA[I previously blogged about how to add color to the &#8216;ls&#8217; command utilizing an config file and alias.  I then stumbled across a nugget of wisdom from a Foresight Linux user on the developers mailing list who gave a handy command that remedies some problems with missing color in a terminal.
On some distributions, the system-wide [...]


Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
<li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I <a href="http://linux-blog.org/adding-color-to-bash-list-command/" target="_blank">previously blogged about how to add color to the &#8216;ls&#8217; command</a> utilizing an config file and alias.  I then stumbled across a nugget of wisdom from a Foresight Linux user on the developers mailing list who gave a handy command that remedies some problems with missing color in a terminal.</p>
<p>On some distributions, the system-wide <em>/etc/DIR_COLORS</em>* files are removed or not present.  This results in no colors being given inside of a terminal when looking for color directories and filenames.  If you find yourself in this boat, try the following command to re-populate this setting:</p>
<pre class="brush: bash;">devnet-&gt; cd ~/
devnet-&gt; dircolors -p &gt;.dircolors
</pre>
<p>This should create a default profile for colors for your session if it hasn&#8217;t been done or was accidentally removed.  For more information on the dircolors command try &#8216;man dircolors&#8217;.  Please also note that <em>dircolors</em> command uses the environmental variable LS_COLORS to set your session.</p>
<p>For more information on LS_COLORS and how it pertains to the terminal/shell/cli/prompt, there are a few blog posts that do an excellent job explaining <a href="http://twistedcode.blogspot.com/2008/04/lscolors-explained.html" target="_blank">here</a>, <a href="http://linux-sxs.org/housekeeping/lscolors.html" target="_blank">here</a> and <a href="http://www.bigsoft.co.uk/blog/index.php/2008/04/11/configuring-ls_colors" target="_blank">here</a>.</p>
<p><a href="http://linux-blog.org/adding-color-to-bash-list-command-part-ii/" rel="bookmark">Adding Color to Bash List Command Part II</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on September 8, 2009.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
<li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/adding-color-to-bash-list-command-part-ii/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adding Color to Bash List Command</title>
		<link>http://linux-blog.org/adding-color-to-bash-list-command/</link>
		<comments>http://linux-blog.org/adding-color-to-bash-list-command/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 21:00:06 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=1067</guid>
		<description><![CDATA[One of the things I love is being able to enter into a directory via terminal, list the contents, and quickly see which ones are executable or not and which ones are directories or are not directories IN COLOR (not everyone is perfect right?).  This is specifically handy as I move through working with Slackware [...]


Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
<li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
<li><a href='http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/' rel='bookmark' title='Permanent Link: Laptop Multimedia Keys and PCLinuxOS 2009'>Laptop Multimedia Keys and PCLinuxOS 2009</a> <small>I installed PCLinuxOS 2009 recently on a Dell D630 Latitude...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>One of the things I love is being able to enter into a directory via terminal, list the contents, and quickly see which ones are executable or not and which ones are directories or are not directories IN COLOR (not everyone is perfect right?).  This is specifically handy as I move through working with <a href="http://slackware.com">Slackware</a> based distributions like the one I&#8217;m using now, <a href="http://zenwalk.org">Zenwalk</a> Linux 6 and the <em>/etc/rc.d/</em> directory.  Most of the Red Hat based distributions out there that I&#8217;ve used have this set automatically&#8230;so I&#8217;m used to it.  When I opened up a terminal in Zenwalk I found no color. A quick investigation of <em>~/.bashrc</em> showed me that there are aliases set to display color&#8230;instead of ls I&#8217;d just use the letter L; 2 l&#8217;s for another option, 3 for another.  It&#8217;s interesting, but not normally how I do business.  See bashrc below:</p>
<pre class="brush: bash; highlight: [2,3,4];">
devnet[~]$ cat ~/.bashrc
alias lll=&quot;ls -al --color&quot;
alias ll=&quot;ls -l --color&quot;
alias l='ls --color'&lt;br /&gt;alias search='find . -name'
alias aterm=&quot;aterm -fg white -tr&quot;
alias version='cat /etc/zenwalk-version'
alias dh='df -h'&lt;br /&gt;export PS1='\u[\W]\$ '
export PAGER=&quot;most&quot;&lt;br /&gt;devnet[~]$
</pre>
<p>I don&#8217;t use those aliases much&#8230;others of you might do the &#8216;ll&#8217; or &#8216;lll&#8217; but it&#8217;s just not part of my routine.  So, I added in just after line 4 in the code above:</p>
<pre class="brush: bash;">
alias ls='ls --color'
</pre>
<p>You can do this a few different ways&#8230;with any command line editor like emacs, vi, or nano/pico.  It&#8217;s really up to you.  The easiest way for new users is to use a text editor:</p>
<pre class="brush: bash;">
devnet[~]$ mousepad ~/.bashrc
</pre>
<p>This will launch the mousepad text editor in XFCE.  If you&#8217;re in Gnome, try gedit.  If KDE, give kwrite a try.  You should see something like the following window pop up for editing:</p>
<p style="text-align: left;"><a href="http://linux-blog.org/wp-content/uploads/2009/06/bashrc.png"><img class="aligncenter size-full wp-image-1084" style="rel=&quot;lightbox&quot;" title="bashrc" src="http://linux-blog.org/wp-content/uploads/2009/06/bashrc.png" alt="bashrc" width="188" height="131" /></a>You should see in the picture above, I&#8217;ve added in the alias needed to make me comfortable.  After that, File &gt;&gt; Save.  You&#8217;re set!  Except, you may notice that when you type the command &#8216;ls&#8217; there are no colors.  So what gives?  Well, we haven&#8217;t loaded our <em>./bashrc</em> since we changed it.  You don&#8217;t have to logout and back in to get things to work though&#8230;you can do this right from the terminal:</p>
<pre class="brush: bash;">
devnet[~]$ exec bash
</pre>
<p>Now try giving the &#8216;ls&#8217; command a try again and you should see that it is in color.  I know a lot of the more advanced Linux guys out there are probably saying, &#8220;why&#8217;d he waste a post on this!  It&#8217;s easy&#8221; and you&#8217;d be right for a majority of users out there&#8230;I hope that this post finds some new user out there that may be stuck for an answer on how to do this.  One final note on this as well: You will have to do this as the root user and change <em>/root/.bashrc</em> in order for your root user to also have color.  Thanks for reading!<br />
<script type="text/javascript">// < ![CDATA[
google_ad_client = "pub-3982453702542240";
/* 468x15, created 6/24/09 */
google_ad_slot = "6181047080";
google_ad_width = 468;
google_ad_height = 15;
// ]]&gt;</script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></p>
<p><a href="http://linux-blog.org/adding-color-to-bash-list-command/" rel="bookmark">Adding Color to Bash List Command</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on June 5, 2009.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
<li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
<li><a href='http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/' rel='bookmark' title='Permanent Link: Laptop Multimedia Keys and PCLinuxOS 2009'>Laptop Multimedia Keys and PCLinuxOS 2009</a> <small>I installed PCLinuxOS 2009 recently on a Dell D630 Latitude...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/adding-color-to-bash-list-command/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Laptop Multimedia Keys and PCLinuxOS 2009</title>
		<link>http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/</link>
		<comments>http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 02:35:36 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Kwhat?]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PCLinuxOS]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=927</guid>
		<description><![CDATA[I installed PCLinuxOS 2009 recently on a Dell D630 Latitude and was disappointed to see that I couldn&#8217;t get the hardware volume (up/down/mute) buttons didn&#8217;t work out of the box.  I thought a bit about kmilo, a program that was previously used for laptop buttons (thinkpad buttons though) and I searched around a bit inside [...]


Related posts:<ol><li><a href='http://linux-blog.org/pclinuxos-2009-not-diggworthy/' rel='bookmark' title='Permanent Link: PCLinuxOS 2009 Not Diggworthy'>PCLinuxOS 2009 Not Diggworthy</a> <small>It&#8217;s really sad when the Alpha release of Ubuntu makes...</small></li>
<li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I installed PCLinuxOS 2009 recently on a Dell D630 Latitude and was disappointed to see that I couldn&#8217;t get the hardware volume (up/down/mute) buttons didn&#8217;t work out of the box.  I thought a bit about kmilo, a program that was previously used for laptop buttons (thinkpad buttons though) and I searched around a bit inside the KDE Control Center for keyboard shortcuts to see if I could assign the keys manually.  However, I couldn&#8217;t find any volume setting inside this menu.</p>
<p>Then, it hit me, I had remembered seeing volume settings before&#8230;inside kmix; there is an area for assigning global shortcuts for volume and mute!  This should work for anyone running KDE 3.5.8 and above (I think).  Left click on Kmix in your tray and choose the mixer button.  From there, choose <em>Settings &gt;&gt; Configure Global Shortcuts</em>.  Now assign the volume up, down, and mute keys manually by clicking in the blank and pressing the hardware button.  This should work for a majority of people out there.  For me though, this didn&#8217;t work.  When pressing the keys, nothing happened.  I thought I was doomed.</p>
<p>I researched a bit more and found that installing a program called keytouch would allow me to, at the very least, program my keyboard in any way I wanted to program it.  I opened Synaptic and installed keytouch and keytouch-editor.  After install, I went to <em>Kmenu &gt;&gt; System &gt;&gt; Configuration &gt;&gt; Hardware &gt;&gt; Keytouch</em>.  It prompted me to choose my keyboard.  Since it didn&#8217;t have the Dell D630, I chose the closest thing which was the Dell D800.  I closed the application and now the volume buttons and mute button works!  Keytouch also has the ability to manually edit and also to import keytouch &#8217;schemas&#8217; to give maximum flexibility.  Hopefully, this helps some of you out there that cannot get your multimedia keys working in PCLinuxOS and KDE to work!</p>
<p><a href="http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/" rel="bookmark">Laptop Multimedia Keys and PCLinuxOS 2009</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on March 17, 2009.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/pclinuxos-2009-not-diggworthy/' rel='bookmark' title='Permanent Link: PCLinuxOS 2009 Not Diggworthy'>PCLinuxOS 2009 Not Diggworthy</a> <small>It&#8217;s really sad when the Alpha release of Ubuntu makes...</small></li>
<li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force Firefox to Remember Initial Window Setting in KDE</title>
		<link>http://linux-blog.org/force-firefox-to-remember-initial-window-setting-in-kde/</link>
		<comments>http://linux-blog.org/force-firefox-to-remember-initial-window-setting-in-kde/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 15:43:21 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PCLinuxOS]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=894</guid>
		<description><![CDATA[I have a laptop with the resolution of 1440&#215;900&#8230;so when I installed the latest TR6 from PCLinuxOS, I was dismayed to find out that when launching Firefox, it opened up in a window that was 1024 pixels.  Of course, I maximized this and then closed it thinking that Firefox would remember my settings.  [...]


Related posts:<ol><li><a href='http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/' rel='bookmark' title='Permanent Link: Laptop Multimedia Keys and PCLinuxOS 2009'>Laptop Multimedia Keys and PCLinuxOS 2009</a> <small>I installed PCLinuxOS 2009 recently on a Dell D630 Latitude...</small></li>
<li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
<li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I have a laptop with the resolution of 1440&#215;900&#8230;so when I installed the latest TR6 from PCLinuxOS, I was dismayed to find out that when launching Firefox, it opened up in a window that was 1024 pixels.  Of course, I maximized this and then closed it thinking that Firefox would remember my settings.  The problem is&#8230;it didn&#8217;t remember my settings.</p>
<p>When I opened Firefox up again, it popped up to say hello once again at 1024 pixels.  Sure, you can right click on the Firefox window bar and drill down into application specific settings via KDE (yes, it&#8217;s that configurable) but I didn&#8217;t want to have to do this&#8230;because if I did, ALL Firefox windows would open up maximized&#8230;and that includes any pop-ups as well.  I also know that you can drill down even further to fix THAT problem.  However, it should &#8216;just work&#8217; right?  You shouldn&#8217;t have to change anything at all correct?  Well, I&#8217;ve found a fix that is pretty easy to accomplish&#8230;and I hope it helps the hundreds of people I found when searching through google on this.</p>
<p>Open up Firefox and it will open at the smaller screen size&#8230;in my case, it opened up 1024 px in width on my 1440px screen.  Then, hover over the top right hand corner with your mouse until you get the resize arrow.  Resize the window click dragging it to the top, right hand corner of the screen.  It should &#8217;snap-in&#8217; once you get close to maximized size.  Now close the window, and open Firefox again.  It should open up fully maximized.</p>
<p>I sure hope this saves someone time&#8230;because I spent the better part of a morning trying to fix this.</p>
<p><a href="http://linux-blog.org/force-firefox-to-remember-initial-window-setting-in-kde/" rel="bookmark">Force Firefox to Remember Initial Window Setting in KDE</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on February 10, 2009.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/' rel='bookmark' title='Permanent Link: Laptop Multimedia Keys and PCLinuxOS 2009'>Laptop Multimedia Keys and PCLinuxOS 2009</a> <small>I installed PCLinuxOS 2009 recently on a Dell D630 Latitude...</small></li>
<li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
<li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/force-firefox-to-remember-initial-window-setting-in-kde/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install the Latest Kernel in PCLinuxOS</title>
		<link>http://linux-blog.org/install-the-latest-kernel-in-pclinuxos/</link>
		<comments>http://linux-blog.org/install-the-latest-kernel-in-pclinuxos/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 20:33:21 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Distros]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[PCLinuxOS]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=826</guid>
		<description><![CDATA[Do you run PCLinuxOS 2007 or Minime 2008 and would you like to take advantage of the latest kernel for PCLinuxOS?  You can do this by enabling the &#8216;testing&#8217; portion of the repository.
Read about Repository Control in PCLinuxOS
You&#8217;ll be looking for the &#8217;sections&#8217; blank when viewing repository details and you&#8217;ll just need to add &#8216;testing&#8217; [...]


Related posts:<ol><li><a href='http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/' rel='bookmark' title='Permanent Link: Laptop Multimedia Keys and PCLinuxOS 2009'>Laptop Multimedia Keys and PCLinuxOS 2009</a> <small>I installed PCLinuxOS 2009 recently on a Dell D630 Latitude...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Do you run PCLinuxOS 2007 or Minime 2008 and would you like to take advantage of the latest kernel for PCLinuxOS?  You can do this by enabling the &#8216;testing&#8217; portion of the repository.</p>
<p><a href="http://oldwiki.mypclinuxos.com/index.php?title=Repository">Read about Repository Control in PCLinuxOS</a></p>
<p>You&#8217;ll be looking for the &#8217;sections&#8217; blank when viewing repository details and you&#8217;ll just need to add &#8216;testing&#8217; to the end of the line (don&#8217;t replace the entires there already).  Once that is done, click the reload button in Synaptic and allow it to refresh your local rpm cache.</p>
<p>Click the &#8217;search&#8217; button and search for the keyword &#8216;kernel&#8217;.  Look for the highest number of kernel that is returned.  At the time of this writing, the 2.6.26.8 kernel was the newest kernel for PCLinuxOS (it has .27 patches all over in it&#8230;so it&#8217;s quite a nice kernel).  Click and install that kernel and allow it to select any packages it needs to install.  Once installed, you can remove the word testing from the repository (this is recommended to prevent your system from downloading ALL testing packages/updates) and click the reload button for Synaptic.</p>
<p>Reboot and choose the new kernel on your grub menu.  Test things to see how they work.  If everything is good to go, congratulations!  You&#8217;ve just installed the latest kernel in PCLinuxOS.</p>
<p>To make this kernel the default one, you can use the PCLinuxOS Control Center and Change the Way the System Boots.  I&#8217;ll cover this in a later post.  Hope this helps a few of you out there.  I know it is often asked on IRC.</p>
<p><a href="http://linux-blog.org/install-the-latest-kernel-in-pclinuxos/" rel="bookmark">Install the Latest Kernel in PCLinuxOS</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on December 17, 2008.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/' rel='bookmark' title='Permanent Link: Laptop Multimedia Keys and PCLinuxOS 2009'>Laptop Multimedia Keys and PCLinuxOS 2009</a> <small>I installed PCLinuxOS 2009 recently on a Dell D630 Latitude...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/install-the-latest-kernel-in-pclinuxos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Host Your Own Domain and Webserver</title>
		<link>http://linux-blog.org/host-your-own-domain-and-webserver-using-apache/</link>
		<comments>http://linux-blog.org/host-your-own-domain-and-webserver-using-apache/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 19:42:25 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[Webserver]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://linux-blog.org/word/host-your-own-domain-and-webserver-using-apache/</guid>
		<description><![CDATA[This article is from 2006!  The information here may not be the most current.  You can visit an updated version here!
Doesn&#8217;t sound like anything new right?  Well, some people may not know of this method.
Normally, to host your own webpage you would need to spend around 7 bucks to purchase a domain.  Next you would [...]


Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<blockquote><p><em>This article is from 2006!  The information here may not be the most current.  You can visit an </em><a title="updated version that can be found here" href="http://linux-blog.org/host-your-own-domain-website-and-webserver/" target="_self"><em>updated version here</em></a><em>!</em></p></blockquote>
<p>Doesn&#8217;t sound like anything new right?  Well, some people may not know of this method.</p>
<p>Normally, to host your own webpage you would need to spend around 7 bucks to purchase a domain.  Next you would need a hosting plan that usually runs around 3-15 dollars per month to serve up your web pages.</p>
<p>What most don&#8217;t realize is that you can skip these steps all together&#8230;you don&#8217;t need to get <a title="Dedicated Hosting" href="http://www.hosting.com/dedicatedservershosting/" target="_blank">dedicated hosting</a>(this blog is hosted on dedicated hosting&#8230;but started out in my apartment!) to serve pages up to your friends and family.  You absolutely do not need to get domain name services through a provider.  You can even host your own webserver using a dialup connection (that&#8217;s right&#8230;I said dialup) although. I don&#8217;t recommend it (but I&#8217;ve done it using 56.6kbps).</p>
<p>Why would you want to do this?  My reply&#8230;to stay connected to friends and family&#8230;perhaps throw up a gallery so that your grandparents can see pics of your new dog/car/tinfoil hat.  Sure, you could waste my time with MyWaste..er..space and be barraged daily by advertisers and solicitors&#8230;or you could roll your own <a href="http://webhostingrating.com">web host</a>, install a gallery or website, and provide media to your friends and family without costing yourself a dime.  That&#8217;s right, <strong>NO COST</strong> (except time spent getting it running).  Just remember, your website might not survive a digging or slashdotting if you run it yourself.  Keep that in mind <img src='http://linux-blog.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   So without more chatter, let&#8217;s get to the meat and potatoes of things:</p>
<p>Do you cringe at the thought of buying a domain and putting up with the headache of trying to make sure your IP address is up to date with your domain?  Do you hate the 40 dollars you spend on DNS service each year to resolve your IP address to your hostname?  Read on and learn the the flat-broke-and-busted way of maintaining a fixed hostname for your IP&#8230;even if you have dialup.</p>
<p>I&#8217;ll divide this up into 2 sections.  The first will deal with Linux.  The second, Windows.  This is only something that I&#8217;ve found easy to do and the price is just right (it&#8217;s free).  The only thing that I recommend is a dedicated internet connection (cable, DSL) but even this is not necessary as dialup can be used.  I recommend that you use the Linux way of doing things since it is more secure and doesn&#8217;t require a restart every time you patch it.</p>
<p><em>*note: I&#8217;m assuming that you aren&#8217;t behind a firewall/proxy of any kind and that your ISP doesn&#8217;t block port 80 traffic.  If your ISP blocks port 80, see the appendix at the end of this article.</em></p>
<p><strong><span style="text-decoration: underline;">LINUX</span></strong></p>
<p><strong> </strong>No matter what version of Linux you run, chances are that you&#8217;ll be able to install the apache webserver.  This is good news as over half the websites of the world are run by the extremely efficient and speedy apache. I&#8217;m not going to address the specifics of how to set up your website&#8230;only how to get it a fixed address without buying a domain.  So, you have your pages dropped into your webservers public directory&#8230;good.  Now, how to resolve your IP&#8230;lets say it is&#8230;25.24.4.166 (for our example) and you want it to have a host.name.com to bind to.  Easy to resolve.  Go to <a href="http://www.no-ip.com/index.php" target="_blank">http://www.no-ip.com/index.ph</a><a href="http://www.no-ip.com/index.php">p</a> and sign up.  You can get a site from noip that is like yourname.theirdomain.com/.net/.info.  They have cool names like sytes.net and servebeer.org&#8230;even workisboring.com</p>
<p>You&#8217;ll be able to choose your own top level name&#8230;for instance, Ithink.dnsiskinky.com could be your new domain name.  Next download a client from the download tab: <a href="https://www.no-ip.com/downloads.php" target="_blank">https://www.no-ip.com/downloads.php</a><br />
<script type="text/javascript">// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
google_ad_client = "pub-3982453702542240";
/* 468x15, created 6/24/09 */
google_ad_slot = "6181047080";
google_ad_width = 468;
google_ad_height = 15;
// ]]&gt;</script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script><br />
The linux client is a tar.gz source and is simple to install. Follow the instructions when installing.  You may have to install compilation tools (devel packages like GCC) to install the client.  You now are the proud owner of yoursite.theirsite.com and your IP will ALWAYS update (as long as noip.com is up) each time you log on/sign on/beam up or whatever it is you do.</p>
<p>How does this help you?  Well, if you&#8217;re like me, you have a dynamic IP address.  If you connect to the internet via cable, dialup, or dsl&#8230;you also have a dynamic IP address.  Dynamic means that it will change from time to time without warning.  So by binding yoursite.theirsite.com to your IP address&#8230;you don&#8217;t ever have to worry about what IP address you have anymore.  Instead, you&#8217;ll always be able to connect using yoursite.theirsite.com.  You can host a webserver using Apache and a virtual host in this style as well (look for another how-to on this subject later) so that everyone can visit a shiny website at yoursite.theirsite.com.</p>
<p><span id="more-134"></span></p>
<p><strong><span style="text-decoration: underline;">WINDOWS</span></strong></p>
<p><strong> </strong>First you need a free and clear webserver since one is not included by default with windows. You can <a href="http://httpd.apache.org/download.cgi" target="_blank">download Apache</a> for this as well OR try the <a href="http://abyss.sourceforge.net/" target="_blank">Abyss Webserver</a>.</p>
<p>Interestingly enough, Abyss is also free!  I ran it while my linux machine was being worked on (bad hard disk&#8230;it was a Quantum 200MB drive from 1913&#8230;had to upgrade) and it worked just great off of Windows XP.  Download that puppy and install it.  Make sure you read all of the documentation and familiarize yourself with how Abyss does business.</p>
<p>The next step&#8230;getting a hostname&#8230; is even easier than the linux method because you don&#8217;t have to manually install the noip client&#8230;they have a <a href="http://www.windowsinstallererror.net">windows installer</a>.  Go to <a href="http://www.no-ip.com/index.php" target="_blank">http://www.no-ip.com/index.php</a> and sign up.  Choose the domain name you would like (see above examples in Linux section).  Next, download the noip client from the download tab: <a href="https://www.no-ip.com/downloads.php" target="_blank">https://www.no-ip.com/downloads.php</a> but this time choose the windows client.  From there, you&#8217;ll be able to install this with a simple double click.  Fill in all of your information (pretty self explanatory) and make sure that it will run with each time you sign on.  You&#8217;re set! Your IP will now resolve to the yourchoice.theirhostname.com</p>
<p><span style="text-decoration: underline;"><strong>CONCLUSION</strong></span></p>
<p><span style="text-decoration: underline;"><strong> </strong></span>You don&#8217;t have to spend a dime to keep a domain bound to your IP.  This is perfect for the home user who just wants a gallery or homepage.  It&#8217;s even good for someone who has a weblog or enthusiast site.  I would not recommend this to anyone who has a business and wants to run a site.  Just remember that the best things in life are free.  Thanks open source!!!</p>
<p>PS: It&#8217;s always good form to put a link of the stuff you are using on your website to direct traffic back to your software provider.  When I used noip, I included a noip link on my mainpage and also an abyss webserver icon as well.  It&#8217;s just good form and some companies/software providers necessitate the use of their logo or a link on sites that use their software/code.  Just be a nice person and give a linkback to them.  Good luck! Have fun!</p>
<p>PSS: Also, please note that having hosted my own webserver for quite some time (circa 2001) I&#8217;ve found Linux and Apache as a combination to be more secure, faster, and more stable than any webserver I&#8217;ve hosted on the Windows Platform. I included information on Windows mainly to introduce you to the concept of free and open source software. If you thought getting a webserver for free was great, think about getting a whole operating system! Give it a try, you don&#8217;t even have to install it (use a <a href="http://en.wikipedia.org/wiki/Live_CD">Live CD</a>).<br />
<script type="text/javascript">// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
google_ad_client = "pub-3982453702542240";
/* 468x15, created 6/24/09 */
google_ad_slot = "6181047080";
google_ad_width = 468;
google_ad_height = 15;
// ]]&gt;</script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script><br />
<strong><span style="text-decoration: underline;">APPENDIX</span></strong></p>
<p>If your ISP blocks port 80 traffic, your webserver won&#8217;t work.  Before deciding that your ISP is blocking however, make sure your firewall has the appropriate rules to allow incoming traffic.  You can do a quick add to IPTABLES in the following manner:</p>
<p><span style="font-family: 'Courier New'; line-height: 18px; white-space: pre;"> </span></p>
<pre class="brush: plain;">iptables -A INPUT -p tcp --dport 80 -j ACCEPT</pre>
<p><span style="font-family: 'Courier New'; line-height: 18px; white-space: pre;"><span style="font-family: 'Lucida Grande'; line-height: 19px; white-space: normal;"> </span></span></p>
<pre class="brush: plain;">iptables -A INPUT -j DROP</pre>
<p>If you&#8217;ve opened up the appropriate ports and things still don&#8217;t work, it will be safe to say that you&#8217;ve determined the ISP is blocking port 80.  How you can get around this conundrum is to switch the listening port on the webserver to a different one and redirect traffic there.</p>
<ol>
<li><a href="http://www.no-ip.com/support/guides/web_servers/isp_block_port_80.html">See how to do this for IIS Webservers</a></li>
<li><a href="http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listen">See how to do this for Apache Webservers</a> (normally in /etc/apache2/httpd.conf but your distro may vary.)</li>
<li><a href="http://www.aprelium.com/abyssws/faq.html#A1-2">See how to do this for Abyss Webservers</a></li>
</ol>
<p>If you still have problems, drop me a line in the comments section.  I may not be able to answer all questions but I can most likely get you to a person/place/thing that can.  Have fun and thanks for reading!</p>
<p><em>This article was originally published on July 13, 2006 and has been updated and reposted.</em><br />
<script type="text/javascript">// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
 google_ad_client = "pub-3982453702542240"; /* 468x15, created 6/24/09 */ google_ad_slot = "6181047080"; google_ad_width = 468; google_ad_height = 15;
// ]]&gt;</script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></p>
<p><a href="http://linux-blog.org/host-your-own-domain-and-webserver-using-apache/" rel="bookmark">Host Your Own Domain and Webserver</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on December 13, 2008.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/host-your-own-domain-and-webserver-using-apache/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Find Files &amp; Directories Not Visible to Others for Webserver</title>
		<link>http://linux-blog.org/find-files-directories-not-visible-to-others-webserver/</link>
		<comments>http://linux-blog.org/find-files-directories-not-visible-to-others-webserver/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 21:01:17 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[Webserver]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=794</guid>
		<description><![CDATA[I wanted a quick way to be able to find out what files weren&#8217;t visible to others (and therefore, not visible to website visitors).  Messing with arguments and the file command, you can do the following:
find -type f ! -perm -444
This locates all files not visible to &#8216;others&#8217; in the current directory.  You can apply [...]


Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I wanted a quick way to be able to find out what files weren&#8217;t visible to others (and therefore, not visible to website visitors).  Messing with arguments and the <strong>file</strong> command, you can do the following:</p>
<pre>find -type f ! -perm -444</pre>
<p>This locates all files not visible to &#8216;others&#8217; in the current directory.  You can apply this to directories as well:</p>
<pre>find -type d ! -perm -111</pre>
<p>Hope this helps people like it helped me. <img src='http://linux-blog.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://linux-blog.org/find-files-directories-not-visible-to-others-webserver/" rel="bookmark">Find Files &#038; Directories Not Visible to Others for Webserver</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on November 25, 2008.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/find-files-directories-not-visible-to-others-webserver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Read &amp; Display Single Line of a File</title>
		<link>http://linux-blog.org/read-display-single-line-of-a-file/</link>
		<comments>http://linux-blog.org/read-display-single-line-of-a-file/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 21:38:49 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Asides]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=780</guid>
		<description><![CDATA[Sometimes when I&#8217;m troubleshooting a PHP error and a function is called in the debugger that gives me a line number of a file to look at, I want to know what that line says without opening up the file.  Using the command line, you can accomplish this in the following way:
head -n 96 filename.php [...]


Related posts:<ol><li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
<li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Sometimes when I&#8217;m troubleshooting a PHP error and a function is called in the debugger that gives me a line number of a file to look at, I want to know what that line says without opening up the file.  Using the command line, you can accomplish this in the following way:</p>
<pre>head -n 96 filename.php | tail -n 1</pre>
<p>This allows you to quickly display the 96th line of filename.php.  Hope this helps someone like it has me.</p>
<p><a href="http://linux-blog.org/read-display-single-line-of-a-file/" rel="bookmark">Read &#038; Display Single Line of a File</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on November 18, 2008.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
<li><a href='http://linux-blog.org/adding-color-to-bash-list-command/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command'>Adding Color to Bash List Command</a> <small>One of the things I love is being able to...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/read-display-single-line-of-a-file/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
