<?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 cPanel WebHosting Blog</title>
	<atom:link href="http://www.theperfectarts.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theperfectarts.com</link>
	<description>Basics cPanel tutorials / issue,mysql,php errors etc</description>
	<lastBuildDate>Wed, 17 Apr 2013 06:52:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Configure eth0 on Ubuntu Server</title>
		<link>http://www.theperfectarts.com/2013/04/configure-eth0-on-ubuntu-server/</link>
		<comments>http://www.theperfectarts.com/2013/04/configure-eth0-on-ubuntu-server/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 06:52:07 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=3500</guid>
		<description><![CDATA[To add the primary ip on the Ubuntu Server refer to the following steps. 1) Login in to the server as a root user open the file /etc/network/interfaces Delete all the entries from the /etc/network/interfaces but make sure that you have taken of original file cp -p /etc/network/interfaces /etc/network/interfaces-back Now open the file, the ip [...]]]></description>
			<content:encoded><![CDATA[<p>To add the primary ip on the Ubuntu Server refer to the following steps.</p>
<p>1) Login in to the server as a root user</p>
<p>open the file <strong>/etc/network/interfaces</strong></p>
<p>Delete all the entries from the /etc/network/interfaces but make sure that you have taken of original file</p>
<p><strong>cp -p /etc/network/interfaces /etc/network/interfaces-back</strong></p>
<p>Now open the file, the ip address for server is 192.168.1.5 and gateway is 192.168.1.1 , change the ip as per your server ip and gateway</p>
<blockquote><p><strong>nano /etc/network/interfaces</strong></p>
<p>auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.5<br />
netmask 255.255.254.0<br />
gateway 192.168.1.1</p></blockquote>
<p>if you are using the 192.168.11.* range on your ubuntu server than add the following entries</p>
<blockquote><p><strong>nano /etc/network/interfaces</strong></p>
<p>auto eth0<br />
iface eth0 inet static<br />
address 192.168.11.5<br />
netmask 255.255.254.0<br />
gateway 192.168.11.1</p></blockquote>
<p>If you are using any firewall like <strong>Cisco, Cyberoam</strong> than make sure that you are using the correct gateway as per your firewall ip address. For example our <strong>Cyberroam ip is 192.168.11.25</strong> therefore my <strong>gateway is 192.168.11.25</strong> and interface file having following entries</p>
<blockquote><p><strong>nano /etc/network/interfaces</strong></p>
<p>auto eth0<br />
iface eth0 inet static<br />
address 192.168.11.5<br />
netmask 255.255.254.0<br />
gateway 192.168.11.25</p></blockquote>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Original article: <a href="http://www.theperfectarts.com/2013/04/configure-eth0-on-ubuntu-server/" rel="bookmark" title="Permanent link to 'Configure eth0 on Ubuntu Server'">Configure eth0 on Ubuntu Server</a><p>&copy;2013 <a href="http://www.theperfectarts.com">Linux cPanel WebHosting Blog</a>. All Rights Reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2013/04/configure-eth0-on-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install xrdp and x11rdp on Ubuntu server</title>
		<link>http://www.theperfectarts.com/2013/04/install-xrdp-and-x11rdp-on-ubuntu-server/</link>
		<comments>http://www.theperfectarts.com/2013/04/install-xrdp-and-x11rdp-on-ubuntu-server/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 09:16:16 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Dedicated Server Issue]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=3490</guid>
		<description><![CDATA[Simple steps to install xrdp and x11rdp on Ubuntu server. To install xrdp and x11rdp on Ubuntu server, refer to the following steps but make sure that you are logged in as a root user. sudo apt-get install xrdp sudo apt-get build-dep xserver-xorg-core sudo apt-get install gnome-session-fallback apt-get install ubuntu-desktop Create the new directory X11rdp sudo [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Simple steps to install xrdp and x11rdp on Ubuntu server.</strong></p>
<p>To install xrdp and x11rdp on Ubuntu server, refer to the following steps but make sure that you are logged in as a root user.</p>
<p><strong>sudo apt-get install xrdp</strong></p>
<p><strong>sudo apt-get build-dep xserver-xorg-core</strong></p>
<p><strong>sudo apt-get install gnome-session-fallback</strong></p>
<p><strong><em>apt</em>-<em>get install ubuntu-desktop</em></strong></p>
<p>Create the new directory X11rdp</p>
<p><strong>sudo mkdir /opt/X11rdp</strong></p>
<p><strong>cd /opt/X11rdp/</strong></p>
<p>Download the laytest x11rdp tar file from the http://server1.xrdp.org/xrdp/ website</p>
<p><strong>wget http://server1.xrdp.org/xrdp/x11rdp_xorg71.tar.gz</strong></p>
<p><strong>tar -xvf  x11rdp_xorg71.tar.gz</strong></p>
<p><strong>cd x11rdp_xorg71</strong></p>
<p><strong>sudo sh buildx.sh /opt/X11rdp –with-fontdir=/usr/share/fonts/X11</strong></p>
<p>Once compilation completed run the following command</p>
<p><strong>cd /opt/X11rdp/bin</strong></p>
<p>Now we need to create the soft link for X11rdp binary in to /usr/bin directory</p>
<p><strong>sudo ln -s /opt/X11rdp/bin/X11rdp /usr/bin/X11rdp</strong></p>
<p>You can test if your binary runs without crashing now by typing; it will show you some error about fonts but you can ignore it or <a href="http://scarygliders.net/2011/09/23/install-xrdp-and-x11rdp-the-comprehensive-howto-for-ubuntu-and-debian-based-systems/">check</a> for <a href="https://bugs.launchpad.net/ubuntu/+source/xrdp/+bug/1069272">bugs</a></p>
<p><strong>/usr/bin/X11rdp :1</strong></p>
<p>You can try to use :2 or :3 if :1 is already in use bu vnc ..</p>
<p>Create the .xsession file in your home directory and insert the following text in it</p>
<p><strong>sleep 1 gnome-session –session=ubuntu-2d</strong><br />
<strong> or</strong><br />
<strong> gnome-session –session=ubuntu-2d</strong></p>
<p>If you receive the error about ubuntu-2d than refer to the following steps.</p>
<p>You can edit the file  /etc/xrdp/startwm.sh as per your desktop requirement in RDP.</p>
<p>Simply add the following <strong>BOLD line</strong> from startwm.sh script .</p>
<p>#!/bin/sh</p>
<p>if [ -r /etc/default/locale ]; then<br />
. /etc/default/locale<br />
export LANG LANGUAGE<br />
fi</p>
<p><strong>echo gnome-session &#8211;session=gnome-fallback &gt; ~/.xsession</strong><br />
. /etc/X11/Xsession</p>
<p>You can also use the following parameter.</p>
<p>If you want to use GNOME Fallback (&#8220;GNOME Classic (no effects)&#8221;) insert the following in the startwm.sh file</p>
<ul>
<li><strong>echo gnome-session &#8211;session=gnome-fallback &gt; ~/.xsession</strong></li>
</ul>
<p>Or, to use Xfce (&#8220;Xubuntu Session&#8221;):</p>
<ul>
<li><strong>echo xfce4-session &gt; ~/.xsession</strong></li>
</ul>
<p>Or, to use LXDE (&#8220;Lubuntu Desktop&#8221;):</p>
<ul>
<li><strong>echo lxsession -s Lubuntu -e LXDE &gt; ~/.xsession</strong></li>
</ul>
<pre><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px;">And it should work. Everytime you login to the remote-session the file .xsession will be created.</span></pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Original article: <a href="http://www.theperfectarts.com/2013/04/install-xrdp-and-x11rdp-on-ubuntu-server/" rel="bookmark" title="Permanent link to 'Install xrdp and x11rdp on Ubuntu server'">Install xrdp and x11rdp on Ubuntu server</a><p>&copy;2013 <a href="http://www.theperfectarts.com">Linux cPanel WebHosting Blog</a>. All Rights Reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2013/04/install-xrdp-and-x11rdp-on-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Firefox 3.6.3 on Ubuntu</title>
		<link>http://www.theperfectarts.com/2013/04/install-firefox-3-6-3-on-ubuntu/</link>
		<comments>http://www.theperfectarts.com/2013/04/install-firefox-3-6-3-on-ubuntu/#comments</comments>
		<pubDate>Wed, 10 Apr 2013 05:09:41 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Few good queries and suggestions]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=3469</guid>
		<description><![CDATA[Simple steps to Install Firefox 3.6.3 on Ubuntu 12.04 First login in to the shell as a root user and download the  Firefox 3.6.3 tar file from the  Firefox mail web site. Download Firefox 3.6.3 Firefox will not run at all without the following libraries or packages installed on the server GTK+ 2.10 or higher GLib 2.12 or higher [...]]]></description>
			<content:encoded><![CDATA[<p>Simple steps to Install Firefox 3.6.3 on Ubuntu 12.04</p>
<p>First login in to the shell as a root user and download the  Firefox 3.6.3 tar file from the  Firefox mail web site.</p>
<p><a href="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.6.3/source/firefox-3.6.3.source.tar.bz2" target="_blank"><strong>Download Firefox 3.6.3</strong></a></p>
<ul>
<ul>
<li>Firefox will not run at all without the following libraries or packages installed on the server
<ul>
<li>GTK+ 2.10 or higher</li>
<li>GLib 2.12 or higher</li>
<li>Pango 1.14 or higher</li>
<li>X.Org 1.0 or higher</li>
</ul>
</li>
</ul>
</ul>
<p>Run the command to install the packages</p>
<p><strong>sudo apt-get install mercurial g++ make autoconf2.13 yasm libgtk2.0-dev libglib2.0-dev libdbus-1-dev libdbus-glib-1-dev libasound2-dev libcurl4-openssl-dev libiw-dev libxt-dev mesa-common-dev zip unzip</strong></p>
<p>For more information check the <strong><a href="http://www.mozilla.org/en-US/firefox/3.6.3/releasenotes/" target="_blank">FireFox WebSite</a></strong></p>
<p>Once you downloaded the source files run the following commands</p>
<p>wget ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.6.3/linux-i686/en-US/firefox-3.6.3.tar.bz2</p>
<p>bzip2 -d firefox-3.6.3.tar.bz2</p>
<p>tar xvf firefox-3.6.3.tar</p>
<p>mv firefox/ /opt/firefox</p>
<p>Then backup your current Firefox executable binary backup by running the commands below, if the firefox is already installed</p>
<pre>sudo mv /usr/bin/firefox /usr/bin/firefox-old</pre>
<pre>cd /opt/firefox</pre>
<p><span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">sudo ln -s /opt/firefox-3.6.3/firefox /usr/bin/firefox</span></p>
<p>Now launch the FirFox by running the command</p>
<p>firefox -p</p>
<p>or</p>
<p>./firefox</p>
<p><a href="https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Linux_Prerequisites">Troubleshooting</a> :</p>
<p>1st) If receive any c++ related error while running the ./configure command run the</p>
<p>following command to update the c++</p>
<p>apt-get install gcc-c*</p>
<p>&nbsp;</p>
<p>Original article: <a href="http://www.theperfectarts.com/2013/04/install-firefox-3-6-3-on-ubuntu/" rel="bookmark" title="Permanent link to 'Install Firefox 3.6.3 on Ubuntu'">Install Firefox 3.6.3 on Ubuntu</a><p>&copy;2013 <a href="http://www.theperfectarts.com">Linux cPanel WebHosting Blog</a>. All Rights Reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2013/04/install-firefox-3-6-3-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to extend and reduce the size for the LVM</title>
		<link>http://www.theperfectarts.com/2013/03/how-to-extend-and-reduce-the-size-for-the-lvm/</link>
		<comments>http://www.theperfectarts.com/2013/03/how-to-extend-and-reduce-the-size-for-the-lvm/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 04:01:49 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[LVM/RAID/HP/ETC]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=3465</guid>
		<description><![CDATA[To extend and reduce the size for the LVM is very critical part and it can cause the file system corruption issue therefore while running the following commands make sure that you have selected the correct LVM mapper. To decrease the LVM size run the following command as a root user. [root@linux ~]# lvreduce -L1G [...]]]></description>
			<content:encoded><![CDATA[<p>To extend and reduce the size for the LVM is very critical part and it can cause the file system corruption issue therefore while running the following commands make sure that you have selected the correct LVM mapper.</p>
<p>To decrease the LVM size run the following command as a root user.</p>
<p><strong>[root@linux ~]# lvreduce -L1G /dev/testLVM/undertestLVM1</strong></p>
<p>In above example we have decreased the LVM by 1G</p>
<p>To increase the LVM size run the following command as a root user.</p>
<p><strong>[root@linux ~]# lvextend -L1.5G /dev/testLVM/undertestLVM1</strong></p>
<p>In above example we have increased the LVM size by 1.5G</p>
<p>Now check the size of LVM</p>
<p><strong>lvdisplay /dev/testLVM/undertestLVM1</strong></p>
<p><strong></strong><br />
Note : DO NOT TOUCH DECREASE MAIN LVM MAPPER ELSE SERVER FILE SYSTEM WILL CRASH.</p>
<p>Original article: <a href="http://www.theperfectarts.com/2013/03/how-to-extend-and-reduce-the-size-for-the-lvm/" rel="bookmark" title="Permanent link to 'How to extend and reduce the size for the LVM'">How to extend and reduce the size for the LVM</a><p>&copy;2013 <a href="http://www.theperfectarts.com">Linux cPanel WebHosting Blog</a>. All Rights Reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2013/03/how-to-extend-and-reduce-the-size-for-the-lvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-27154: post/wait create failed</title>
		<link>http://www.theperfectarts.com/2013/03/ora-27154-postwait-create-failed/</link>
		<comments>http://www.theperfectarts.com/2013/03/ora-27154-postwait-create-failed/#comments</comments>
		<pubDate>Fri, 01 Mar 2013 14:48:31 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=3462</guid>
		<description><![CDATA[While connecting to the sqlplus command prompt and running the startup command the database instance we received the following error message. SQL&#62; startup ORA-27154: post/wait create failed ORA-27300: OS system dependent operation:semget failed with status: 28 ORA-27301: OS failure message: No space left on device ORA-27302: failure occurred at: sskgpcreates To resolve the above error simply [...]]]></description>
			<content:encoded><![CDATA[<p>While connecting to the sqlplus command prompt and running the startup command the database instance we received the following error message.</p>
<blockquote><p><strong>SQL&gt; startup</strong><br />
<strong>ORA-27154: post/wait create failed</strong><br />
<strong>ORA-27300: OS system dependent operation:semget failed with status: 28</strong><br />
<strong>ORA-27301: OS failure message: No space left on device</strong><br />
<strong>ORA-27302: failure occurred at: sskgpcreates</strong></p></blockquote>
<p>To resolve the above error simply login into the server as a root user and follow the following steps.</p>
<p>Open the /etc/sysctl.conf file and set the following value for the kernet.sem</p>
<blockquote>
<pre><strong>kernel.sem = 250 32000 100 256</strong></pre>
</blockquote>
<pre>Now run the<strong> command</strong></pre>
<blockquote>
<pre><strong>sysctl -p</strong></pre>
</blockquote>
<pre><strong>
</strong>After running above command, startup command is running fine.</pre>
<blockquote><p><strong>SQL&gt; startup</strong><br />
<strong>ORACLE instance started.</strong></p>
<p><strong>Total System Global Area 1586708480 bytes</strong><br />
<strong>Fixed Size 2213736 bytes</strong><br />
<strong>Variable Size 956303512 bytes</strong><br />
<strong>Database Buffers 620756992 bytes</strong><br />
<strong>Redo Buffers 7434240 bytes</strong><br />
<strong>Database mounted.</strong><br />
<strong>Database opened.</strong><br />
<strong>SQL&gt; exit</strong></p></blockquote>
<pre><strong>
</strong></pre>
<p>&nbsp;</p>
<p>Original article: <a href="http://www.theperfectarts.com/2013/03/ora-27154-postwait-create-failed/" rel="bookmark" title="Permanent link to 'ORA-27154: post/wait create failed'">ORA-27154: post/wait create failed</a><p>&copy;2013 <a href="http://www.theperfectarts.com">Linux cPanel WebHosting Blog</a>. All Rights Reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2013/03/ora-27154-postwait-create-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to increase RAM memory &#8211; II (LVM)</title>
		<link>http://www.theperfectarts.com/2013/02/how-to-increase-ram-memory-ii-lvm/</link>
		<comments>http://www.theperfectarts.com/2013/02/how-to-increase-ram-memory-ii-lvm/#comments</comments>
		<pubDate>Wed, 20 Feb 2013 03:55:41 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Dedicated Server Issue]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[LVM/RAID/HP/ETC]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=3457</guid>
		<description><![CDATA[We cab increase the RAM SWAP memory by using the following commands but make sure that you have logged in as a root user. 1st) First open the /etc/fstab file and check the volume group used for the swap. ~~~~~~~~~~~~ /dev/mapper/vg_test-lv_swap swap swap defaults 0 0 ~~~~~~~~~~~~ In above example the VG is /dev/mapper/vg_test-lv_swap 2nd) [...]]]></description>
			<content:encoded><![CDATA[<p>We cab increase the RAM SWAP memory by using the following commands but make sure that you have logged in as a root user.</p>
<p>1st) First open the /etc/fstab file and check the volume group used for the swap.</p>
<p><strong>~~~~~~~~~~~~</strong><br />
<strong>/dev/mapper/vg_test-lv_swap swap swap defaults 0 0</strong><br />
<strong>~~~~~~~~~~~~</strong></p>
<p>In above example the VG is <strong>/dev/mapper/vg_test-lv_swap</strong></p>
<p>2nd) Now set the swap off for the VG /dev/mapper/vg_test-lv_swap<br />
<strong>swapoff -v /dev/mapper/vg_test-lv_swap</strong></p>
<p>3rd) Create the filesystem for new swap partition<br />
<strong>~~~~~~~~~~~~~~</strong><br />
<strong> mkfs.ext3 -b 4568 /dev/sda4</strong><br />
<strong>~~~~~~~~~~~~~~</strong></p>
<p>In above example, we have used /dev/sda4</p>
<p>4th) Create the phyiscal volume</p>
<p><strong>pvcreate /dev/sda4</strong></p>
<p>5th) Check the status for the new free disk space</p>
<p><strong>vgdisplay</strong><br />
6th) Now extend the volume group</p>
<p><strong>vgextend vg_test /dev/sda4</strong></p>
<p>7th) Now extend the size of a logical volume :</p>
<p><strong>~~~~~~~~~~~~~~</strong><br />
<strong>lvresize /dev/mapper/vg_test-lv_swap -L +4G</strong><br />
<strong>~~~~~~~~~~~~~~</strong></p>
<p>As per above command the new RAM swap memory value will be 4GB</p>
<p>8TH) Now format the new swap space:</p>
<p><strong>mkswap /dev/mapper//vg_test-lv_swap</strong></p>
<p>9th) Enable the extended logical volume:</p>
<p><strong>swapon -va</strong><br />
Check the new swap value by using the following command</p>
<p>free -m</p>
<p>If you want to decrease the swap FROM 4G TO 3G  then run the following command</p>
<p><strong>lvreduce -L 3G /dev/mapper/vg_test-lv_swap</strong></p>
<p>Original article: <a href="http://www.theperfectarts.com/2013/02/how-to-increase-ram-memory-ii-lvm/" rel="bookmark" title="Permanent link to 'How to increase RAM memory &#8211; II (LVM)'">How to increase RAM memory &#8211; II (LVM)</a><p>&copy;2013 <a href="http://www.theperfectarts.com">Linux cPanel WebHosting Blog</a>. All Rights Reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2013/02/how-to-increase-ram-memory-ii-lvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to increase RAM memory (SWAP).</title>
		<link>http://www.theperfectarts.com/2013/02/how-to-increase-ram-memory-swap/</link>
		<comments>http://www.theperfectarts.com/2013/02/how-to-increase-ram-memory-swap/#comments</comments>
		<pubDate>Wed, 20 Feb 2013 03:36:46 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Dedicated Server Issue]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Dedicated server RAM issue]]></category>
		<category><![CDATA[Excessive RAM usage issue]]></category>
		<category><![CDATA[High RAM memory usage issue]]></category>
		<category><![CDATA[Increase RAM]]></category>
		<category><![CDATA[RAM issue]]></category>
		<category><![CDATA[RAM memory issue]]></category>
		<category><![CDATA[RAM swap memory]]></category>
		<category><![CDATA[Resolve RAM memory usage issue]]></category>
		<category><![CDATA[solve RAM issue]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=3455</guid>
		<description><![CDATA[Many time we face the issue with the server performance because of RAM memory, the RAM memory usage is very high but we can&#8217;t increase the RAM memory because of any reason like , client won&#8217;t have enough finance to increase the RAM on his server or server chassis not having slot to attache the [...]]]></description>
			<content:encoded><![CDATA[<p>Many time we face the issue with the server performance because of RAM memory, the RAM memory usage is very high but we can&#8217;t increase the RAM memory because of any reason like , client won&#8217;t have enough finance to increase the RAM on his server or server chassis not having slot to attache the additional RAM memory in that case we can increase the swap memory by using the following simple steps.</p>
<p>1) Check the swap partition by using the <strong>fdisk -l</strong> command.</p>
<p>For example swap partition is <strong>/dev/sda5</strong></p>
<p>2nd) To enable the /swap partition</p>
<p><strong>swapon /dev/sda5</strong></p>
<p>3rd)To enable the swap at boot time, edit the /etc/fstab and add the following line:</p>
<p><strong>/dev/sda5 swap swap defaults 0 0</strong></p>
<p>Now we can change the swap value by creating the swapfile for swap memory.</p>
<p>To create the swapfile use the following command</p>
<p><strong>dd if=/dev/zero of=/swapfile bs=1024 count=3145428</strong></p>
<p>In above example, we have created the RAM swapfile with the 3G, change the value in &#8220;count&#8221; as per your requirement.</p>
<p>4th) Now make the swapfile as a swap</p>
<p><strong>mkswap /swapfile</strong></p>
<p>Run the following command to enable the swap</p>
<p><strong>swapon /swapfile</strong></p>
<p>For permanent swapfile swap memory add the entry in /etc/fstab, so that /swapfile will mount every time when server rebooted else you have mount it manually after every reboot.</p>
<p><strong>/swapfile swap swap defaults 0 0</strong></p>
<p>Verify the new RAM SWAP memory by using the following command.</p>
<p><strong>cat /proc/swaps</strong></p>
<p><strong>or</strong></p>
<p><strong>free -m</strong></p>
<p>If  your server having LVM based partition then refer to the following tutorial to increase the RAM swap memory on LVM based server.</p>
<p>Original article: <a href="http://www.theperfectarts.com/2013/02/how-to-increase-ram-memory-swap/" rel="bookmark" title="Permanent link to 'How to increase RAM memory (SWAP).'">How to increase RAM memory (SWAP).</a><p>&copy;2013 <a href="http://www.theperfectarts.com">Linux cPanel WebHosting Blog</a>. All Rights Reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2013/02/how-to-increase-ram-memory-swap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install nano and pico command</title>
		<link>http://www.theperfectarts.com/2013/02/install-nano-and-pico-command/</link>
		<comments>http://www.theperfectarts.com/2013/02/install-nano-and-pico-command/#comments</comments>
		<pubDate>Sun, 10 Feb 2013 08:07:02 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Dedicated Server Issue]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=3451</guid>
		<description><![CDATA[The nano and pico is very older version of the editor in the Linux and its very easy to handle as compare to the latest vi/vim editor. We can install and enable the the nano and pico editor by using the following commands. yum install nano -y The above command will install the nano editor [...]]]></description>
			<content:encoded><![CDATA[<p>The nano and pico is very older version of the editor in the Linux and its very easy to handle as compare to the latest vi/vim editor. We can install and enable the the nano and pico editor by using the following commands.</p>
<p><strong>yum install nano -y</strong></p>
<p>The above command will install the nano editor and you have to set the alias for the pico editor by using the nano command binary, refer to the following commands to enable the pico editor.</p>
<p><strong>cd /usr/bin/</p>
<p>ln -s nano pico</p>
<p>export EDITOR=”pico”</strong></p>
<p>Now try to open/edit any by using the nano and pico command.</p>
<p>Original article: <a href="http://www.theperfectarts.com/2013/02/install-nano-and-pico-command/" rel="bookmark" title="Permanent link to 'Install nano and pico command'">Install nano and pico command</a><p>&copy;2013 <a href="http://www.theperfectarts.com">Linux cPanel WebHosting Blog</a>. All Rights Reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2013/02/install-nano-and-pico-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between Samba and NFS servers</title>
		<link>http://www.theperfectarts.com/2013/01/difference-between-samba-and-nfs-servers/</link>
		<comments>http://www.theperfectarts.com/2013/01/difference-between-samba-and-nfs-servers/#comments</comments>
		<pubDate>Mon, 28 Jan 2013 17:03:11 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[NFS server]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=3446</guid>
		<description><![CDATA[What is the difference between Samba and NFS servers? This is the basic question which is asked in past thousands of time in recent but its come again and again. The actual major difference between samba and nfs is by configuring the Samba server, we can access the file from Linux to Window and Window [...]]]></description>
			<content:encoded><![CDATA[<p>What is the difference between Samba and NFS servers?</p>
<p>This is the basic question which is asked in past thousands of time in recent but its come again and again. The actual major difference between samba and nfs is by configuring the Samba server, we can access the file from Linux to<br />
Window and Window to Linux but by using the NFS server we can&#8217;t access it.</p>
<p>Samba&#8217;s SMB protocol permits the server machine to handle authentication, thus it will decide what files the shopper has access to supported the actual machine and user connecting. NFS by default trusts all shopper machines completely (it&#8217;s extremely not meant to share files to unsecured workstations) and lets the shopper machines handle authentication all on their own (once associate degree NFS server has been told to simply accept connections from a shopper machine the shopper does not need to any extent further server-side authentication, and<br />
can do something it needs with the file system NFS offers it access to).</p>
<p>Original article: <a href="http://www.theperfectarts.com/2013/01/difference-between-samba-and-nfs-servers/" rel="bookmark" title="Permanent link to 'Difference between Samba and NFS servers'">Difference between Samba and NFS servers</a><p>&copy;2013 <a href="http://www.theperfectarts.com">Linux cPanel WebHosting Blog</a>. All Rights Reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2013/01/difference-between-samba-and-nfs-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy files under all subdomains/addon domains</title>
		<link>http://www.theperfectarts.com/2013/01/copy-file-under-all-subdomainsaddon-domains/</link>
		<comments>http://www.theperfectarts.com/2013/01/copy-file-under-all-subdomainsaddon-domains/#comments</comments>
		<pubDate>Sun, 27 Jan 2013 10:37:17 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=3444</guid>
		<description><![CDATA[The following script will help you to Copy the files under all the subdomains/addon domains hosted under single user hosting account. For example you want to copy the file from /home/username/public_html to subdomains and addon domains on the same account then run the following commands from the shell. for i in `grep &#8211;exclude=&#8221;*.cache&#8221; documentroot /var/cpanel/userdata/username/* [...]]]></description>
			<content:encoded><![CDATA[<p>The following script will help you to Copy the files under all the subdomains/addon domains hosted under single user hosting account. For example you want to copy the file from /home/username/public_html to subdomains and addon domains on the same account then run the following commands from the shell.</p>
<blockquote><p><strong>for i in `grep &#8211;exclude=&#8221;*.cache&#8221; documentroot /var/cpanel/userdata/username/* | cut -d: -d&#8217; &#8216; -f2-` ;do cp -p /home/username/public_html/filename $i/ ;done</strong></p></blockquote>
<p>Make sure that you have replaced the username with the original account&#8217;s username and filename with the name of the file which you want to copy under the subdomains and addon domains.</p>
<p>Original article: <a href="http://www.theperfectarts.com/2013/01/copy-file-under-all-subdomainsaddon-domains/" rel="bookmark" title="Permanent link to 'Copy files under all subdomains/addon domains'">Copy files under all subdomains/addon domains</a><p>&copy;2013 <a href="http://www.theperfectarts.com">Linux cPanel WebHosting Blog</a>. All Rights Reserved.</p>]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2013/01/copy-file-under-all-subdomainsaddon-domains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
