<?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>Linux server blog &#187; Tips</title>
	<atom:link href="http://www.linuxadmin.org/blog/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxadmin.org/blog</link>
	<description>Server management news, tips and guides</description>
	<lastBuildDate>Fri, 11 Sep 2009 20:10:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Increase gpg file encryption security using AES256</title>
		<link>http://www.linuxadmin.org/blog/increase-gpg-file-encryption-security-using-aes256/</link>
		<comments>http://www.linuxadmin.org/blog/increase-gpg-file-encryption-security-using-aes256/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 18:08:03 +0000</pubDate>
		<dc:creator>Linux Admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.linuxadmin.org/blog/?p=33</guid>
		<description><![CDATA[In order to increase backup files or sensitive information using gpg you should specify gpg using AES256 cipher algo. AES256 will use 256 bit key, it&#8217;s open encryption algorithm and it&#8217;s been approved by the NSA for top secret information. Add to the gpg the following switch: &#8211;cipher-algo=AES256 The full command line to encrypt file [...]]]></description>
			<content:encoded><![CDATA[<p>In order to increase backup files or sensitive information using gpg you should specify gpg using AES256 cipher algo. AES256 will use 256 bit key, it&#8217;s open encryption algorithm and it&#8217;s been approved by the NSA for top secret information.</p>
<p>Add to the gpg the following switch:</p>
<p><em>&#8211;cipher-algo=AES256</em></p>
<p>The full command line to encrypt file using gpg with AES256 key:</p>
<p><em>gpg &#8211;cipher-algo=AES256 -c file.tgz</em></p>
<p>It&#8217;s quite of bit of typing every time and I prefer to set-up alias</p>
<p><em>alias gpg=&#8217;gpg &#8211;cipher-algo=AES256&#8242;</em></p>
<p>you can add it to your ~/.bashrc or any other profile file that is executed when you login into the system. The alias syntax may change if you are using different bash.</p>
        <p>Browse more tips and guides at <a href="http://">Linux Admin blog</a></p>            ]]></content:encoded>
			<wfw:commentRss>http://www.linuxadmin.org/blog/increase-gpg-file-encryption-security-using-aes256/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Encrypt your backup files for top security using GPG</title>
		<link>http://www.linuxadmin.org/blog/encrypt-your-backup-files-for-top-security-using-gpg/</link>
		<comments>http://www.linuxadmin.org/blog/encrypt-your-backup-files-for-top-security-using-gpg/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 17:46:59 +0000</pubDate>
		<dc:creator>Linux Admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.linuxadmin.org/blog/?p=30</guid>
		<description><![CDATA[Remember that you should have backups for your servers or web site. If a disaster strikes you can restore the data quickly and easily &#8211; you should keep the backup files SAFE, because backup usually includes system configuration, users, passwords and various other very important data. And by safe we mean that none except you [...]]]></description>
			<content:encoded><![CDATA[<p>Remember that you should have backups for your servers or web site. If a disaster strikes you can restore the data quickly and easily &#8211;  you should keep the backup files SAFE, because backup usually includes system configuration, users, passwords and various other very important data. <strong>And by safe we mean that none except you can access it</strong>. We usually keep backup files on a remote server(s) to make sure no data backups are kept in one physical location.</p>
<p>For extra security we do encrypt backup files using <strong>gpg</strong> (Gnu Privacy Guard) a Linux command line software in our case. Gpg provides very high security level and encryption.</p>
<p>You can encrypt file using GPG:</p>
<p><strong><em>gpg -c filename.tar</em></strong></p>
<p>&lt;enter password 2 x times&gt;</p>
<p>If you are running gpg command first time a key may be generated before you can enter the password.</p>
<p>File unencryption can be done by:</p>
<p><strong><em>gpg -c filename.tar.gpg</em></strong></p>
<p>There you go <img src='http://www.linuxadmin.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For folks who want to encrypt backup files or any other files using automated scripts use the following command:</p>
<p><strong><em>echo PASSWORD_HERE | gpg &#8211;passphrase-fd 0 -c FILENAME_HERE</em></strong></p>
        <p>Browse more tips and guides at <a href="http://">Linux Admin blog</a></p>            ]]></content:encoded>
			<wfw:commentRss>http://www.linuxadmin.org/blog/encrypt-your-backup-files-for-top-security-using-gpg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux or Windows platform for hosting</title>
		<link>http://www.linuxadmin.org/blog/linux-or-windows-platform-for-hosting/</link>
		<comments>http://www.linuxadmin.org/blog/linux-or-windows-platform-for-hosting/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 03:16:22 +0000</pubDate>
		<dc:creator>Linux Admin</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.linuxadmin.org/blog/?p=21</guid>
		<description><![CDATA[Sorry folks, I had finally some time to edit this original junk article and I have came up with a much better version now. Linux or Windows platform for web hosting? This question is asked many times and let me show you what OS works the best for you. Linux is free and you should [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry folks, I had finally some time to edit this original junk article and I have came up with a much better version now.</p>
<p>Linux or Windows platform for web hosting? This question is asked many times and let me show you what OS works the best for you.</p>
<p>Linux is free and you should not pay yearly renewal or update fees (a good choice is Centos, Debian, Fedora and others). Suse Enterprise (SLES) and Redhat Enterprise does have licensing costs and/or update subscriptions that cost recurring fees. If you go Windows route you will need to pay for OS and the fees are quite high for web servers. While you can download a lot of free software for Linux, Windows applications tend to cost something.</p>
<p>Many folks prefer to use Linux, Apache, MySQL and PHP (LAMP), indeed, you can run Apache MySQL and PHP on Windows OS as well. Developing PHP applications using MySQL as a database is quick and easy and it doesn&#8217;t cost a dime. Of course if you need to run ASP or use MS SQL as a database server you will need to go with Windows OS for your server hardware.</p>
<p>My suggestion is to always use Linux for hosting, unless you need to run Windows specific applications &#8211; ASP code, MS SQL as a database back end and other Windows specific software.</p>
<p>Don&#8217;t forget that you will need to manage the server and keep up with security patches etc &#8211; some people prefer Windows as it&#8217;s more user-friendly and easier to update, however it comes with a price.</p>
        <p>Browse more tips and guides at <a href="http://">Linux Admin blog</a></p>            ]]></content:encoded>
			<wfw:commentRss>http://www.linuxadmin.org/blog/linux-or-windows-platform-for-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Local port range sysctl tuning for high bandwidth Linux servers</title>
		<link>http://www.linuxadmin.org/blog/local-port-range-sysctl-tuning-for-high-bandwidth-linux-servers/</link>
		<comments>http://www.linuxadmin.org/blog/local-port-range-sysctl-tuning-for-high-bandwidth-linux-servers/#comments</comments>
		<pubDate>Sun, 23 Sep 2007 19:14:22 +0000</pubDate>
		<dc:creator>Linux Admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.linuxadmin.org/blog/local-port-range-sysctl-tuning-for-high-bandwidth-linux-servers/</guid>
		<description><![CDATA[Most of the Linux distributions specify local port range from 16384 to 65536 and this may be too low for very high bandwidth and busy boxes, let&#8217;s say SMTP, Hosting, POP3/Imap and Proxy servers. You can adjust this setting by editing /etc/sysctl.conf file and replacing the default: net.ipv4.ip_local_port_range = 16384 65536 with net.ipv4.ip_local_port_range = 1024 [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the Linux distributions specify local port range from 16384 to 65536 and this may be too low for very high bandwidth and busy boxes, let&#8217;s say SMTP, Hosting, POP3/Imap and Proxy servers.</p>
<p>You can adjust this setting by editing /etc/sysctl.conf file and replacing the default:</p>
<p><em>net.ipv4.ip_local_port_range = 16384 65536</em></p>
<p>with</p>
<p><em>net.ipv4.ip_local_port_range = 1024 65536</em></p>
        <p>Browse more tips and guides at <a href="http://">Linux Admin blog</a></p>            ]]></content:encoded>
			<wfw:commentRss>http://www.linuxadmin.org/blog/local-port-range-sysctl-tuning-for-high-bandwidth-linux-servers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL information_schema error when using mysqldump utility</title>
		<link>http://www.linuxadmin.org/blog/mysql-information_schema-error-when-using-mysqldump-utility/</link>
		<comments>http://www.linuxadmin.org/blog/mysql-information_schema-error-when-using-mysqldump-utility/#comments</comments>
		<pubDate>Sun, 16 Sep 2007 19:39:15 +0000</pubDate>
		<dc:creator>Linux Admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.linuxadmin.org/blog/mysql-information_schema-error-when-using-mysqldump-utility/</guid>
		<description><![CDATA[Some users report problem when backup is performed using mysqldump command line utility under the Linux OS. The version affected in our tests were 4.1.20. mysqldump: Got error: 1044: Access denied for user &#8216;root&#8217;@'localhost&#8217; to database &#8216;information_schema&#8217; when using LOCK TABLES To quickly fix this problem use the following switch when running mysqldump for MySQL [...]]]></description>
			<content:encoded><![CDATA[<p>Some users report problem when backup is performed using mysqldump command line utility under the Linux OS. The version affected in our tests were 4.1.20.</p>
<p><em>mysqldump: Got error: 1044: Access denied for user &#8216;root&#8217;@'localhost&#8217; to database &#8216;information_schema&#8217; when using LOCK TABLES</em></p>
<p>To quickly fix this problem use the following switch when running mysqldump for MySQL database backups.</p>
<p>mysqldump -u root -p &#8211;all-databases <strong>&#8211;single-transaction</strong> &gt; all.sql</p>
        <p>Browse more tips and guides at <a href="http://">Linux Admin blog</a></p>            ]]></content:encoded>
			<wfw:commentRss>http://www.linuxadmin.org/blog/mysql-information_schema-error-when-using-mysqldump-utility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cpanel upcp Yaml Syck problem</title>
		<link>http://www.linuxadmin.org/blog/cpanel-upcp-yaml-syck-problem/</link>
		<comments>http://www.linuxadmin.org/blog/cpanel-upcp-yaml-syck-problem/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 10:44:48 +0000</pubDate>
		<dc:creator>Linux Admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.linuxadmin.org/blog/cpanel-upcp-yaml-syck-problem/</guid>
		<description><![CDATA[Some Cpanel systems miss Yaml::Syck package and /scripts/upcp display a bunch of errors. To fix this problem you may install YAML-Syck package by downloading tar package (at this time of writing the filename: YAML-Syck-0.91.tar.gz ) or you can always run perl Cpan shell to install it the easy way (login to root account and execute [...]]]></description>
			<content:encoded><![CDATA[<p>Some Cpanel systems miss Yaml::Syck package and /scripts/upcp display a bunch of errors. To fix this problem you may install YAML-Syck package by downloading tar package (at this time of writing the filename: <em>YAML-Syck-0.91.tar.gz</em> ) or you can always run perl Cpan shell to install it the easy way <img src='http://www.linuxadmin.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>(login to root account and execute in shell:)</p>
<p><em>perl -MCPAN -e shell</em></p>
<p><em>install YAML::Syck</em></p>
<p>Enjoy <img src='http://www.linuxadmin.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
        <p>Browse more tips and guides at <a href="http://">Linux Admin blog</a></p>            ]]></content:encoded>
			<wfw:commentRss>http://www.linuxadmin.org/blog/cpanel-upcp-yaml-syck-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Replace multiple file text string using grep and perl</title>
		<link>http://www.linuxadmin.org/blog/replace-multiple-file-text-string-using-grep-and-perl/</link>
		<comments>http://www.linuxadmin.org/blog/replace-multiple-file-text-string-using-grep-and-perl/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 17:50:17 +0000</pubDate>
		<dc:creator>Linux Admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.linuxadmin.org/blog/replace-multiple-file-text-string-using-grep-and-perl/</guid>
		<description><![CDATA[If you have a folder with a lot of files in a directory and with a specific string that you want to change you can do it in seconds using grep and perl command line: grep -R &#8211;files-with-matches &#8216;OLDSTRING&#8217; . &#124; sort &#124; uniq &#124; xargs perl -pi~ -e &#8216;s/OLDSTRING/NEWSTRING/&#8217; Where OLDSTRING is the string [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a folder with a lot of files in a directory and with a specific string that you want to change you can do it in seconds using grep and perl command line:</p>
<p>grep -R &#8211;files-with-matches &#8216;OLDSTRING&#8217; . | sort | uniq | xargs perl -pi~ -e &#8216;s/OLDSTRING/NEWSTRING/&#8217;</p>
<p>Where OLDSTRING is the string you want to find and replace with NEWSTRING.</p>
        <p>Browse more tips and guides at <a href="http://">Linux Admin blog</a></p>            ]]></content:encoded>
			<wfw:commentRss>http://www.linuxadmin.org/blog/replace-multiple-file-text-string-using-grep-and-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FFmpeg installation problem on the Linux</title>
		<link>http://www.linuxadmin.org/blog/ffmpeg-installation-problem-on-the-linux/</link>
		<comments>http://www.linuxadmin.org/blog/ffmpeg-installation-problem-on-the-linux/#comments</comments>
		<pubDate>Tue, 12 Jun 2007 15:55:03 +0000</pubDate>
		<dc:creator>Linux Admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.linuxadmin.org/blog/ffmpeg-installation-problem-on-the-linux/</guid>
		<description><![CDATA[If you are installing ffmpeg from the SVN and getting the following error log after running ./configure: ./configure Unable to create and execute files in /tmp.  Set the TMPDIR environment variable to another directory and make sure that /tmp is not mounted noexec. Sanity test failed. If you think configure made a mistake, make sure [...]]]></description>
			<content:encoded><![CDATA[<p>If you are installing ffmpeg from the SVN and getting the following error log after running ./configure:</p>
<p><em>./configure<br />
Unable to create and execute files in /tmp.  Set the TMPDIR environment<br />
variable to another directory and make sure that /tmp is not mounted<br />
noexec.<br />
Sanity test failed.<br />
If you think configure made a mistake, make sure you are using the latest<br />
version from SVN.  If the latest version fails, report the problem to the<br />
ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.<br />
Include the log file &#8220;config.err&#8221; produced by configure as this will help<br />
solving the problem.</em></p>
<p>This means that your <strong>/tmp</strong> directory has <strong>noexec</strong> flag and you need to disable it for a while.</p>
<p>Check your <em>/etc/fstab</em></p>
<p>and locate <em>/tmp</em></p>
<p>It probably shows something similar below:</p>
<p><em>LABEL=/tmp              /tmp                    ext3    defaults,noexec,nosuid        1 2 </em></p>
<p>Remove <em>noexec</em> and it should be something like:</p>
<p><em>LABEL=/tmp              /tmp                    ext3    defaults,nosuid        1 2 </em></p>
<p>Issue</p>
<p><em>umount /tmp &amp;&amp; mount /tmp</em></p>
<p>And you are set, proceed with the installation of ffmpeg.</p>
<p>If you are  getting the following error after running umount and/or mount:</p>
<p><em>umount: /tmp: device is busy </em></p>
<p>Then some process is having a file handle open to /tmp directory. You will need to shutdown the daemon before issuing mount commands.</p>
        <p>Browse more tips and guides at <a href="http://">Linux Admin blog</a></p>            ]]></content:encoded>
			<wfw:commentRss>http://www.linuxadmin.org/blog/ffmpeg-installation-problem-on-the-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>List all installed rpm packages and it&#8217;s size</title>
		<link>http://www.linuxadmin.org/blog/list-all-installed-rpm-packages-and-its-size/</link>
		<comments>http://www.linuxadmin.org/blog/list-all-installed-rpm-packages-and-its-size/#comments</comments>
		<pubDate>Sun, 03 Jun 2007 18:15:19 +0000</pubDate>
		<dc:creator>Linux Admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.linuxadmin.org/blog/list-all-installed-rpm-packages-and-its-size/</guid>
		<description><![CDATA[Virtual Private Server disk space are usually limited so it&#8217;s always good to know how much space on the hard drive takes some rpm package. You can delete it later &#8211; you will save your disk space and of course some bandwidth if updates are released later on. rpm -qa &#8211;qf &#8216;%10{SIZE}\t%{NAME}\n&#8217; &#124; sort -k1,1n [...]]]></description>
			<content:encoded><![CDATA[<p>Virtual Private Server disk space are usually limited so it&#8217;s always good to know how much space on the hard drive takes some rpm package. You can delete it later &#8211; you will save your disk space and of course some bandwidth if updates are released later on.</p>
<p>rpm -qa &#8211;qf &#8216;%10{SIZE}\t%{NAME}\n&#8217; | sort -k1,1n</p>
<p>This applies to Linux environment servers only.</p>
        <p>Browse more tips and guides at <a href="http://">Linux Admin blog</a></p>            ]]></content:encoded>
			<wfw:commentRss>http://www.linuxadmin.org/blog/list-all-installed-rpm-packages-and-its-size/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
