<?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>LAMPdocs: Linux, Apache, MySQL, PHP &#187; Linux Tricks</title>
	<atom:link href="http://www.lampdocs.com/blog/category/linux-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lampdocs.com/blog</link>
	<description>Linux, Apache, MySQL, PHP: Docs, Tricks and Secrets</description>
	<lastBuildDate>Wed, 10 Feb 2010 15:20:02 +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>How to Use Dynamic DNS With a PPP Connection in Linux</title>
		<link>http://www.lampdocs.com/blog/2010/02/how-to-use-dynamic-dns-with-a-ppp-connection-in-linux/</link>
		<comments>http://www.lampdocs.com/blog/2010/02/how-to-use-dynamic-dns-with-a-ppp-connection-in-linux/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 18:04:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DNS Entries]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[allow dyndns requests]]></category>
		<category><![CDATA[bind dynamic dns]]></category>
		<category><![CDATA[ddns pppd]]></category>
		<category><![CDATA[dynamic dns iptables]]></category>
		<category><![CDATA[dynamic dns setup]]></category>
		<category><![CDATA[dynamic dns setup pppd]]></category>
		<category><![CDATA[inadyn configuration]]></category>
		<category><![CDATA[inadyn dyndns]]></category>
		<category><![CDATA[inadyn setup linux]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=838</guid>
		<description><![CDATA[Dynamic dns is simple! Just follow our guide to setup it in Linux. ]]></description>
			<content:encoded><![CDATA[<p>Dynamic DNS represents a DNS management system, that allows to periodically update DNS records. Since almost any DNS server provides this functionality, dynamic DNS is used when updates need to be more frequent than usually and updated DNS becomes the most important point in user activity (more than speed, system stability, etc).</p>
<p>When you need to establish connection with a hostname, that has a dynamic IP address (most typical situation &#8211; a hostname, that has an unstable Internet connection), Dynamic DNS becomes a simple yet stable solution.</p>
<p>When a hostname obtains an IP address, it is automatically sent to Dynamic DNS system, but users are able to connect using a symbolic name, that remains unchanged (for example, hostname.com).  In order to prevent IP caching, Dynamic DNS records have low TTL values (e.g. 60 seconds).</p>
<p>We&#8217;re going to cover the process of using such a configuration with a pppd connection, this package is widely used in Linux with almost all types of Internet connections.</p>
<p>We will take <a href="http://www.dyndns.com/">dyndns.org</a> as a Dynamic DNS provider (you&#8217;re welcome to select another one: there is no real difference between them). We won&#8217;t describe the process of signing up and creating DNS records, but you&#8217;re always welcome to follow <a href="http://www.dyndns.com/services/dns/dyndns/howto.html">this guide</a>, and ask us if anything is unclear, though it should be.</p>
<p>We will use<a href="http://www.inatech.eu/inadyn/"> inadyn</a> for our connections. It gives the possibility to have your own fixed hostname registered on the internet, although your IP might be changing. It checks periodically whether the IP address stored by the DNS server is the real current IP address of the machine that is running INADYN. Though there are some limitations, that are described <a href="http://www.dyndns.com/support/kb/using_inadyn_with_dyndns_services.html">here</a>, it is a simple solution, that doesn&#8217;t require any specific knowledge. It is a free software, that allows to connect with many Dynamic DNS providers, and you can obtain it by following <a href="http://cdn.dyndns.com/inadyn.zip">this link</a>.</p>
<p>You will need to download it, unpack and compile using <strong>make</strong>.</p>
<p>We will use it in the following way:</p>
<p>inadyn is started when the connection is being established (pppd acquires an IP address and creates an interface). Immediately after that it tries to perform an update and then remains in memory to periodically check for updates. If inadyn is already present in memory, it will be terminated before running a new instance.</p>
<p>In order to do that, we need to touch /etc/ppp/ip-up.local file (create a new one if it doesn&#8217;t exist) with the following contents:</p>
<blockquote><p>#!/bin/sh<br />
kill `ps -A |grep inadyn |sed &#8217;s/[ |\t].*$//&#8217;`<br />
sleep 1<br />
/etc/ppp/inadyn -u <strong>login</strong> -p <strong>xxxxx </strong>-a <strong>lampdocs.dyndns.org</strong> &#8211;background &#8211;update_period_sec 3600</p></blockquote>
<p>Replace <strong>xxxxx </strong>with your password, <strong>login </strong>with your username, obtained at dyndns.org and <strong>lampdocs.dyndns.org</strong> with a symbolic name you&#8217;ve set for your host with dynamic IP.</p>
<p>You can change kill `ps -A |grep inadyn |sed &#8217;s/[ |\t].*$//&#8217;` if you don&#8217;t like it. Here is another variant:</p>
<blockquote><p>#!/bin/sh<br />
pkill inadyn<br />
sleep 1<br />
/etc/ppp/inadyn -u login -p xxxxx -a lampdocs.dyndns.org &#8211;background &#8211;update_period_sec 3600</p></blockquote>
<p>That&#8217;s enough for configuration. Inadyn will be automatically started when a new pppd connection is established. You might need to enable inadyn requests in firewall, so it could connect using http without any problems. Inadyn requires just 2 addresses to connect, and both of them have fixed IPs:</p>
<blockquote><p>checkip.dyndns.org (IP 208.78.70.70)<br />
members.dyndns.org (IP 204.13.248.112)</p></blockquote>
<p>You can enable these requests by issuing the following commands:</p>
<blockquote><p>iptables -t filter -I OUTPUT -p tcp -d 208.78.70.70 &#8211;destination-port 80 -j ACCEPT<br />
iptables -t filter -I OUTPUT -p tcp -d 204.13.248.112 &#8211;destination -port 80 -j ACCEPT</p></blockquote>
<p>Then you should input</p>
<blockquote><p>iptables -t filter -I INPUT -p tcp -s 208.78.70.70 &#8211;source-port 80 -j ACCEPT<br />
iptables -t filter -I INPUT -p tcp -s 204.13.248.112 &#8211;source-port 80 -j ACCEPT</p></blockquote>
<p>Or</p>
<blockquote><p>iptables -t filter -I INPUT -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT</p></blockquote>
<p>- they have the same functionality for our needs. That&#8217;s all, Dynamic DNS should be working for you. Note, that you will have to configure inadyn if you choose another Dynamic DNS provider, the configuration is not complicated and you can find it in inadyn documentation.</p>
<p>Please, let us know if you have any problems using Dynamic DNS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2010/02/how-to-use-dynamic-dns-with-a-ppp-connection-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable GeoIP in Awstats using Cpan</title>
		<link>http://www.lampdocs.com/blog/2010/02/how-to-enable-geoip-in-awstats-using-cpan/</link>
		<comments>http://www.lampdocs.com/blog/2010/02/how-to-enable-geoip-in-awstats-using-cpan/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 08:19:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[awstats geoip cpan]]></category>
		<category><![CDATA[awstats geoip support]]></category>
		<category><![CDATA[geoip awstats]]></category>
		<category><![CDATA[geoip installation linux]]></category>
		<category><![CDATA[how to install geoip]]></category>
		<category><![CDATA[install geoip]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=826</guid>
		<description><![CDATA[Learn how to install geoip support to your awstats. ]]></description>
			<content:encoded><![CDATA[<p>It is very useful to see visitors&#8217; country information when you&#8217;re watching awstats logs. Let me tell you what to do if you don&#8217;t have Geoip support enabled on your server.</p>
<p>First of all, we will need to download and install <a href="http://www.maxmind.com/app/geolitecountry">GeoIP</a>. We will take free version, but if you really require good stats, you may buy one. Let&#8217;s switch to a temporary directory to issue the following commands:</p>
<blockquote><p>wget http://maxmind.com/download/geoip/api/c/GeoIP.tar.gz;<br />
tar xzvf GeoIP.tar.gz;<br />
cd GeoIP-1.4.6;<br />
./configure;<br />
make;<br />
make install;</p></blockquote>
<p>You might need to replace 1.4.6 with your version of Geoip, as 1.4.6 is the latest one for today.</p>
<p>Then we need to install Geoip using <strong>cpan</strong>. I suppose, that you are already familiar with cpan, that&#8217;s why I won&#8217;t describe initial span setup procedure here. In order to install it, we need to enter <strong>cpan </strong>from command line. Then issue the following command:</p>
<blockquote><p>install Geo::IP</p></blockquote>
<p>Then type quit. And the final stage: we will add Geoip support to awstats.conf. You&#8217;re welcome to do it with any editor you like, here is a command line variant using <strong>sed</strong>.</p>
<blockquote><p>sed -i &#8217;s/#LoadPlugin=&#8221;geoip GEOIP_STANDARD \/pathto\/GeoIP.dat&#8221;/LoadPlugin=&#8221;geoip GEOIP_STANDARD \/usr\/local\/share\/GeoIP\/GeoIP.dat&#8221;/&#8217; /etc/awstats/*.conf</p></blockquote>
<p>You&#8217;re done now. Have fun with your updated awstats!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2010/02/how-to-enable-geoip-in-awstats-using-cpan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rar Part Files Are Not Recognized: How to Fix in Linux</title>
		<link>http://www.lampdocs.com/blog/2010/02/rar-part-files-are-not-recognized-how-to-fix-in-linux/</link>
		<comments>http://www.lampdocs.com/blog/2010/02/rar-part-files-are-not-recognized-how-to-fix-in-linux/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 19:56:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[file.000]]></category>
		<category><![CDATA[file.001]]></category>
		<category><![CDATA[how to join files hjsplit]]></category>
		<category><![CDATA[join rar multipart]]></category>
		<category><![CDATA[rar part files error]]></category>
		<category><![CDATA[rar parts join]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=822</guid>
		<description><![CDATA[How to join part files with a single command. Read here. ]]></description>
			<content:encoded><![CDATA[<p>Though RAR provides its own interface to create multipart archives, sometimes users prefer to use another file splitting options. An example could be <a href="http://www.freebyte.com/hjsplit/">HJSPLIT</a>, that provides the ability to split files of any type. Since archives are used to economize space and traffic, splitting an archive into multiple parts may be useful when there are attachment limits, or any other cases that are related to limited space.</p>
<p>How do those files usually look like? For example, there was archive.rar before. When it is splitted into 3 parts, we will have archive.rar.000, archive.rar.001, archive.rar.002. How do we join them together?</p>
<p>There is a simple command line solution for this:</p>
<blockquote><p>
cat archive.rar.* &gt; archive.rar</p></blockquote>
<p>This will join all the parts to a single rar file. Then you fill be able to unrar it. No matter, what was the file type, this is the easiest way to join files together, if they were splitted before.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2010/02/rar-part-files-are-not-recognized-how-to-fix-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>stropts.h: No such file or directory &#8211; How to Fix</title>
		<link>http://www.lampdocs.com/blog/2010/01/stropts-h-no-such-file-or-directory-how-to-fix/</link>
		<comments>http://www.lampdocs.com/blog/2010/01/stropts-h-no-such-file-or-directory-how-to-fix/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 18:32:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[error: stropts.h: no such file or directory]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[gftp stropts.h]]></category>
		<category><![CDATA[missing file stropts.h]]></category>
		<category><![CDATA[stropts.h]]></category>
		<category><![CDATA[stropts.h error fix]]></category>
		<category><![CDATA[stropts.h pppd]]></category>
		<category><![CDATA[stropts.h pptp]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=820</guid>
		<description><![CDATA[error: stropts.h: No such file or directory is not a problem anymore! Read the solution here. ]]></description>
			<content:encoded><![CDATA[<p>It is a known issue that modern Linux systems are missing <strong>stropts.</strong><strong>h </strong>file. You will probably have some problems when trying to compile software like pppd, pptp, gftp, etc from sources. Seems to be a strange thing, as you won&#8217;t get any errors in previous versions of Linux. Most recent versions of Fedora don&#8217;t contain this file, that&#8217;s why we need to know what to do if software compilation fails because of missing <strong>stropts.</strong><strong>h. </strong></p>
<p>Let&#8217;s determine when we need to have this file on our machine.When we&#8217;re compiling any &#8220;old&#8221; package from sources, we may receive the following error:</p>
<blockquote><p>error: stropts.h: No such file or directory</p></blockquote>
<p>What could be the reason and why isn&#8217;t this file included into our Linux distribution?This error means that your system doesn&#8217;t support STREAMS.</p>
<p>Linux doesn&#8217;t support STREAMS (many years ago it was available as a third party module, but it hasn&#8217;t worked for years). <strong>stropts.h</strong> is part of a POSIX XSR option, which is not supported in modern Linux distributions. Do we really need it in Linux?</p>
<p>This means that software you&#8217;re trying to compile, will not use the functions listed under <strong>stropts.h</strong> as they&#8217;re not supported by the operating system. So we will do a simple trick that will let you to compile your software without these functions.</p>
<p>Since the <strong>stropts.h</strong> is required for a successful compilation, the most simple way to solve the issue is to <strong>create a blank file</strong> named <strong>stropts.h </strong>under /usr/include. You may want to put any comments there, this way you won&#8217;t forget what was the reason to create this file.</p>
<p>This simple trick will help you to compile pptp (1.7.2),  pppd (2.4.5), and I think that the list will be much bigger. That was just my experience, but the sense remains the same: you need this file for a successful compilation. Just create it and have fun! <img src='http://www.lampdocs.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2010/01/stropts-h-no-such-file-or-directory-how-to-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up NTP Time Synchronization in CentOS</title>
		<link>http://www.lampdocs.com/blog/2010/01/setting-up-ntp-time-synchronisation-in-centos/</link>
		<comments>http://www.lampdocs.com/blog/2010/01/setting-up-ntp-time-synchronisation-in-centos/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 14:20:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[linux date syncronization howto]]></category>
		<category><![CDATA[ntpdate centos]]></category>
		<category><![CDATA[ntpdate no servers can be used]]></category>
		<category><![CDATA[set up ntpdate]]></category>
		<category><![CDATA[set up ntpdate linux]]></category>
		<category><![CDATA[time sync linux]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=809</guid>
		<description><![CDATA[It is very easy to set up date synchronization in linux. Find out how!]]></description>
			<content:encoded><![CDATA[<p>If you need to have valid date and time on your server, you need to synchronize it with a time server as well. In order to do this in Linux (especially in CentOS),  we will follow my short howto.</p>
<p>1. Ensure you&#8217;ve got ntp installed. Run <strong>rpm -qa | grep ntp</strong> to find out if it already exists on your system and <strong>yum install ntp</strong> if it is not present.</p>
<p>2. Run ntpdate. On CentOS, you will probably get this error:</p>
<blockquote><p>[root@server ~]# <strong>ntpdate</strong><br />
29 Jan 09:52:54 ntpdate[8463]: no servers can be used, exiting</p></blockquote>
<p>This means you have to include a server into your request, just like shown below.</p>
<blockquote><p>[root@server ~]# <strong>ntpdate 0.pool.ntp.org</strong><br />
29 Jan 10:08:07 ntpdate[8853]: step time server 213.198.55.2 offset 676.605025 sec</p></blockquote>
<p>This means my server had a 10-minute time diffrence with the time server. After this command my time has been adjusted.</p>
<p>3. Add time synchronization to your crontab and run it as often as you need.</p>
<blockquote><p><strong>30 * * * * /usr/sbin/ntpdate -s 0.pool.ntp.org</strong></p></blockquote>
<p>Will sync your clock every hour; I think is enough to perform synchronization weekly.  Let&#8217;s do it.</p>
<blockquote><p><strong>30 10 5 * * /usr/sbin/ntpdate -s 0.pool.ntp.org</strong></p></blockquote>
<p>This simple guide will keep your clock synchronized. Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2010/01/setting-up-ntp-time-synchronisation-in-centos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sendmail and local-host-names file: Troubleshooting</title>
		<link>http://www.lampdocs.com/blog/2010/01/sendmail-and-local-host-names-file-troubleshooting/</link>
		<comments>http://www.lampdocs.com/blog/2010/01/sendmail-and-local-host-names-file-troubleshooting/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 11:15:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[sendmail local-host-names]]></category>
		<category><![CDATA[senmail file accept names]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=793</guid>
		<description><![CDATA[Sendmail and local-host-names: keep the last line commented. ]]></description>
			<content:encoded><![CDATA[<p>I will not post the whole process of sendmail configuration here, just would like to pay attention to a small detail. </p>
<p>/etc/mail/local-host-names is a text file, that contains the list of domain names and it is taken by sendmail when checking outgoing mail. You should make sure you have this file in the following format: </p>
<blockquote><p># local-host-names sample file<br />
lampdocs.com<br />
test.lampdocs.com<br />
# end of file</p></blockquote>
<p>Please, note, that you should leave the comment on the last line as it is ignored by sendmail. Your local-host-names should have the last line either blank, either commented. Hope this saves someone some time, as this feature is not so well documented and you might have problems with the last domain in the list. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2010/01/sendmail-and-local-host-names-file-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>updatedb: command not found &#8211; How to Fix</title>
		<link>http://www.lampdocs.com/blog/2009/09/updatedb-command-not-found-how-to-fix/</link>
		<comments>http://www.lampdocs.com/blog/2009/09/updatedb-command-not-found-how-to-fix/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 06:36:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=771</guid>
		<description><![CDATA[A brief explanation what to do if you get updatedb: command not found error. ]]></description>
			<content:encoded><![CDATA[<p>This problem appears usually if you have a new server and there are no packages installed yet. If you need to use <strong>locate </strong>command for any reasons, you should run <strong>updatedb </strong>periodically in order to ensure you have the most recent cache of your file positions.</p>
<p>if you receive <strong>command not found </strong>error<strong>, </strong>it usually<strong> </strong>means you have no <strong>slocate </strong>package installed. On most modern linuxes you can install it using your package manager (<strong>yum</strong>, <strong>apt-get</strong>, etc). You are also welcome to compile it from source, that can be found at http://slocate.trakker.ca/ . I don&#8217;t think you should have problems with this package; you will then be able to run updatedb and locate.</p>
<p>It is not recommended to run <strong>updatedb</strong> if you have lots of files on your machine. In this case <strong>updatedb</strong> execution can slow down your server. But if the number of files is not so high, locate is probably the fastest way to find the files you need.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2009/09/updatedb-command-not-found-how-to-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Find The Version of Linux You Are Using</title>
		<link>http://www.lampdocs.com/blog/2009/02/how-to-find-the-version-of-linux-you-are-using/</link>
		<comments>http://www.lampdocs.com/blog/2009/02/how-to-find-the-version-of-linux-you-are-using/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 17:44:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[PHP Configuration]]></category>
		<category><![CDATA[htaccess Solutions]]></category>
		<category><![CDATA[command to find linux version]]></category>
		<category><![CDATA[command to identify linux version]]></category>
		<category><![CDATA[how to find linux version]]></category>
		<category><![CDATA[linux command os version]]></category>
		<category><![CDATA[linux version command line]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=663</guid>
		<description><![CDATA[Sometimes you need to know what version of the Operating system is installed on your server. This is extremely useful when you order a dedicated server and want to know what is the version of OS on it. A simple command will help you as usual:
cat `ls /etc/*{-,_}{release,version} 2&#62;/dev/null &#124; head -n 1`
This will show [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need to know what version of the Operating system is installed on your server. This is extremely useful when you order a dedicated server and want to know what is the version of OS on it. A simple command will help you as usual:</p>
<blockquote><p>cat `ls /etc/*{-,_}{release,version} 2&gt;/dev/null | head -n 1`</p></blockquote>
<p>This will show you something like</p>

<a href='http://www.lampdocs.com/blog/2009/02/how-to-find-the-version-of-linux-you-are-using/uname2/' title='uname2'><img width="150" height="150" src="http://www.lampdocs.com/blog/wp-content/uploads/2009/02/uname2-150x150.jpg" class="attachment-thumbnail" alt="" title="uname2" /></a>

<p>The picture below shows the difference between common commands: one shown above and <strong>uname -a</strong>. Sometimes you don&#8217;t need the kernel version, just the operating system name. This command should help you to do that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2009/02/how-to-find-the-version-of-linux-you-are-using/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to View Last Lines of a Big File in Linux</title>
		<link>http://www.lampdocs.com/blog/2008/11/how-to-view-last-lines-of-a-big-file-in-linux/</link>
		<comments>http://www.lampdocs.com/blog/2008/11/how-to-view-last-lines-of-a-big-file-in-linux/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 06:24:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[linux last lines of a file]]></category>
		<category><![CDATA[linux view changing file]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=436</guid>
		<description><![CDATA[This post is dedicated to Linux newbies as those who use it for everyday needs should know about this command. If not&#8230; I think this will be useful for you in any way.
When you&#8217;re a system administrator, you should often deal with logs. On a Linux server logs are permanently updated, that&#8217;s why we need [...]]]></description>
			<content:encoded><![CDATA[<p>This post is dedicated to Linux newbies as those who use it for everyday needs should know about this command. If not&#8230; I think this will be useful for you in any way.</p>
<p>When you&#8217;re a system administrator, you should often deal with logs. On a Linux server logs are permanently updated, that&#8217;s why we need to see last written lines of such a file. If you open it useing <strong>cat</strong> or <strong>more</strong>, you won&#8217;t see how it changes. A simple command will help you to do this.</p>
<blockquote><p>tail -f error_log</p></blockquote>
<p>This will show you last lines of error_log file. For a complete list of options you&#8217;re welcome to go <a href="http://linux.about.com/library/cmd/blcmdl1_tail.htm">here</a>: or just type man tail in your console.</p>
<p>Hope this command will help you to monitor your server and increase its uptime <img src='http://www.lampdocs.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2008/11/how-to-view-last-lines-of-a-big-file-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install g++ on CentOS 4 and CentOS 5</title>
		<link>http://www.lampdocs.com/blog/2008/11/how-to-install-g-on-centos-4-and-centos-5/</link>
		<comments>http://www.lampdocs.com/blog/2008/11/how-to-install-g-on-centos-4-and-centos-5/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 13:42:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[centos g++]]></category>
		<category><![CDATA[centos g++ yum]]></category>
		<category><![CDATA[centos install g++]]></category>
		<category><![CDATA[centos install g++ help]]></category>
		<category><![CDATA[centos yum install g++]]></category>
		<category><![CDATA[centos yum install g++ package]]></category>
		<category><![CDATA[g++ command + centos]]></category>
		<category><![CDATA[g++ for centos]]></category>
		<category><![CDATA[gcc yum g++ centos]]></category>
		<category><![CDATA[how to install g++ on centos]]></category>
		<category><![CDATA[install g++ centos]]></category>
		<category><![CDATA[yum install gcc g++ centos]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=390</guid>
		<description><![CDATA[g++ is often necessary for building various packages. But It&#8217;s quite hard to install it in CentOS if you don&#8217;t know a simple thing: yum install g++ will not work here. yum install compat-g++and yum install gcc-g++ won&#8217;t give any result too.  The only command for yum to install g++ on CentOS is the following:
yum [...]]]></description>
			<content:encoded><![CDATA[<p>g++ is often necessary for building various packages. But It&#8217;s quite hard to install it in CentOS if you don&#8217;t know a simple thing: <strong>yum install g++</strong> will not work here. <strong>yum install compat-g++</strong>and <strong>yum install gcc-g++</strong> won&#8217;t give any result too.  The only command for yum to <strong>install g++</strong> on CentOS is the following:</p>
<blockquote><p>yum install gcc-c++</p></blockquote>
<p>You might also want to install it with some more useful packages. Then your command will be:</p>
<blockquote><p>yum install gcc-c++ compat-gcc-32 compat-gcc-32-c++</p></blockquote>
<p>Hope this helps you to install g++ under CentOS</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2008/11/how-to-install-g-on-centos-4-and-centos-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
