<?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>Planet Malaysia &#187; How&#8217;s To</title>
	<atom:link href="http://www.planetmy.com/blog/category/hows-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.planetmy.com/blog</link>
	<description></description>
	<lastBuildDate>Tue, 06 Dec 2011 15:55:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Install Webmin on OpenFiler</title>
		<link>http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/</link>
		<comments>http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 06:45:16 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openfiler]]></category>
		<category><![CDATA[Webmin]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=1333</guid>
		<description><![CDATA[Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. And Openfiler is a network storage OS with web based management user interface powered by Linux. Combination of both Webmin and Openfiler definitely help non-Linux or non-IT guy [...]]]></description>
			<content:encoded><![CDATA[<p>Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. And Openfiler is a network storage OS with web based management user interface powered by Linux. Combination of both Webmin and Openfiler definitely help non-Linux or non-IT guy manage the whole Linux file server.</p>
<p>Today, I will not share how to configure Openfile here  and I just would like to share about <strong>How to Install Webmin on OpenFiler</strong>.</p>
<p><span id="more-1333"></span></p>
<ul>
<li>SSH to Openfiler server with root user.</li>
<li>Make sure you are in &#8220;<em>/root&#8221;</em> folder (Type cd /root).</li>
<li>Type <em>wget http://prdownloads.sourceforge.net/webadmin/webmin-1.540-1.noarch.rpm</em> (please change according to Webmin version or refer to <a href="http://www.webmin.com/download.html">http://www.webmin.com/download.html</a>)</li>
<li>Type <em>rpm2cpio ~/webmin-1.540-1.noarch.rpm &gt; ~/webmin-1.540-1.cpio</em></li>
<li>Type<em> cpio -idmv &lt; ~/</em><em>webmin-1.540-1.cpio</em></li>
<li>You should see 2 folder &#8220;<em>etc</em>&#8221; and &#8220;<em>usr</em>&#8221; created under &#8220;<em>/root&#8221;</em> folder.</li>
<li>Copy the files from the &#8220;<em>etc</em>&#8221; folder</li>
<li>Type <em>cp ~/etc/init.d/webmin /etc/init.d/</em></li>
<li>Type cp ~/etc/pam.d/webmin /etc/pam.d/</li>
<li>Type <em>mv ~/usr/libexec/webmin /usr/libexec/</em></li>
<li>Type<em> chmod 777 -R /usr/libexec/webmin/<br />
</em></li>
<li>Type <em>/usr/libexec/webmin/setup.sh </em>for Webmin setup</li>
<li>Follow the Webmin setup wizard</li>
<li>Webmin installation done and you can login to Webmin now.</li>
</ul>
<div>Congratulations! You&#8217;re done! Open your Web Browser and login to your Webmin now.</div>
<ul>
<li></li>
</ul>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/lppasswd-unable-to-open-passwd-file-permission-denied/">lppasswd: Unable to open passwd file: Permission denied</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-capture-putty-session-log/">How To Capture PUTTY Session Log</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/">How to clean EMC CX 3-80 Dirty Cache?</a></li>
<li><a href="http://www.planetmy.com/blog/check-file-size-command-on-linux/">Check File Size Command on Linux</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lppasswd: Unable to open passwd file: Permission denied</title>
		<link>http://www.planetmy.com/blog/lppasswd-unable-to-open-passwd-file-permission-denied/</link>
		<comments>http://www.planetmy.com/blog/lppasswd-unable-to-open-passwd-file-permission-denied/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 07:28:40 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[lppasswd]]></category>
		<category><![CDATA[passwd]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=1226</guid>
		<description><![CDATA[The lppasswd command used to adds, changes, or deletes passwords in the CUPS digest password file which refer to /etc/cups/passwd.md5. In order to create a new CUPS administrator user, enter a command: lppasswd -g sys -a username. I&#8217;m having a problem creating a new user with error message: &#8220;lppasswd: Unable to open passwd file: Permission [...]]]></description>
			<content:encoded><![CDATA[<p>The lppasswd command used to adds, changes, or deletes passwords in the <a href="http://www.planetmy.com/blog/tag/cups">CUPS</a> digest password file which refer to /etc/cups/passwd.md5. </p>
<p>In order to create a new CUPS administrator user, enter a command: <em>lppasswd -g sys -a username</em>. </p>
<p>I&#8217;m having a <a href="http://www.planetmy.com/blog/tag/problem">problem</a> creating a new user with error message: &#8220;lppasswd: Unable to open passwd file: Permission denied&#8221; today.</p>
<p><img src="http://www.planetmy.com/blog/wp-content/uploads/2009/11/lppasswd.png" alt="lppasswd" /></p>
<p>And I just would like to share the solution as below:<br />
<span id="more-1226"></span><br />
1. List /usr/bin/lppasswd file owner and permission<br />
<code><br />
planetmy:~ # ls -l /usr/bin/lppasswd<br />
-rwsr-xr-x  1 lp sys 9428 Nov 29  2005 /usr/bin/lppasswd<br />
</code></p>
<p>2. Change <a href="http://www.planetmy.com/blog/tag/lppasswd">lppasswd</a> ownership<br />
<code><br />
planetmy:~ # chown root /usr/bin/lppasswd<br />
</code></p>
<p>3. Add a new user and it worked<br />
<code><br />
planetmy:~ # lppasswd -g sys -a cupadmin<br />
</code></p>
<p>4. Make sure you have correct permission for file /etc/cups/passwd.md5<br />
<code><br />
planetmy:~ # ls -l /etc/cups/passwd.md5<br />
-rw-------  1 lp lp 90 Nov 11 08:03 /etc/cups/passwd.md5<br />
</code></p>
<p>5. Make sure you change /usr/bin/lppasswd file back to normal<br />
<code><br />
planetmy:~ # chown lp /usr/bin/lppasswd<br />
</code></p>
<p>Enjoy!</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/">How to Install Webmin on OpenFiler</a></li>
<li><a href="http://www.planetmy.com/blog/missing-varloglastlog/">Missing /var/log/lastlog</a></li>
<li><a href="http://www.planetmy.com/blog/telnet-service_limit-error/">Telnet service_limit error</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-capture-putty-session-log/">How To Capture PUTTY Session Log</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/lppasswd-unable-to-open-passwd-file-permission-denied/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Capture PUTTY Session Log</title>
		<link>http://www.planetmy.com/blog/how-to-capture-putty-session-log/</link>
		<comments>http://www.planetmy.com/blog/how-to-capture-putty-session-log/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 07:28:50 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[nexus]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[switches]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=1037</guid>
		<description><![CDATA[PuTTY is a free implementation of Telnet and SSH for Win32 and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham. Here I would like to share How To Capture PUTTY Session Log. 1. To capture a session with PuTTY, open up a PUTTY. 2. Look for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> is a free implementation of Telnet and <a href="http://www.planetmy.com/blog/tag/ssh">SSH</a> for Win32 and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham. </p>
<p>Here I would like to share <strong>How To Capture PUTTY Session Log</strong>.</p>
<p>1. To capture a session with PuTTY, open up a <a href="http://www.planetmy.com/blog/tag/putty">PUTTY</a>.<br />
2. Look for Category <a href="http://www.planetmy.com/blog/tag/session">Session</a> -> Logging<br />
3. Under Session Logging, choose &#8220;All session output&#8221; and key in your desire log filename(default is putty.log).<br />
<a href="http://www.planetmy.com/blog/wp-content/uploads/2009/06/putty_session_log.png" rel="shadowbox[sbpost-1037];player=img;"><img src="http://www.planetmy.com/blog/wp-content/uploads/2009/06/putty_session_log.png" alt="Putty Session Setting" width="505" height="491" /><br />
</a><br />
4. This should create the file in the location you choose and start loggin everyting from the session.<br />
5. For capture <a href="http://www.planetmy.com/blog/tag/cisco">Cisco</a> Router or Switches(I tried with Nexus 1000V on <a href="http://www.planetmy.com/blog/tag/vmware">VMware</a> vSphere), type &#8216;show running-config&#8217;.<br />
<a href="http://www.planetmy.com/blog/wp-content/uploads/2009/06/cisco_show_run.png" rel="shadowbox[sbpost-1037];player=img;"><img src="http://www.planetmy.com/blog/wp-content/uploads/2009/06/cisco_show_run.png" alt="Cisco Show Run" width="510" height="320" /></a><br />
<span id="more-1037"></span><br />
6. Open your session <a href="http://www.planetmy.com/blog/tag/log">log</a> file(e.g. my_session.log), Cisco Router/Switches running config file are save or backup.<br />
<a href="http://www.planetmy.com/blog/wp-content/uploads/2009/06/putty_log.png" rel="shadowbox[sbpost-1037];player=img;"><img src="http://www.planetmy.com/blog/wp-content/uploads/2009/06/putty_log.png" alt="Putty Session Log" /></a></p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-dell-perc-drivers-into-vmware-converter-cold-clone-iso/">How to add Dell PERC Drivers into VMware Converter Cold Clone ISO</a></li>
<li><a href="http://www.planetmy.com/blog/top-10-free-anti-virus/">Top 10 Free Anti Virus</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/">How to Install Webmin on OpenFiler</a></li>
<li><a href="http://www.planetmy.com/blog/microsoft-sql-2008-agent-not-starts/">Microsoft SQL 2008 Agent not starts</a></li>
<li><a href="http://www.planetmy.com/blog/vmware-workstation-7-serial-key/">VMware Workstation 7 Serial Key</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-capture-putty-session-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add Date And Time To Your Bash History on SuSE Linux</title>
		<link>http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/</link>
		<comments>http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 11:31:05 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=1017</guid>
		<description><![CDATA[The SuSE Linux Enterpise 10 which came together with bash-3.x RPM and HISTORY command show insufficient information(at least for me) as example below: 1 vi /etc/hosts 2 rpm -qa&#124;grep bash 3 cat /etc/SuSE-release 4 history For any SuSE Linux Enterprise server 10 that managed by more than one people, I would suggest you should make [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.planetmy.com/blog/tag/suse">SuSE</a> Linux Enterpise 10 which came together with <strong>bash-3.x RPM</strong> and <a href="http://www.planetmy.com/blog/tag/history">HISTORY</a> command show insufficient information(at least for me) as example below:<br />
<code><br />
    1  vi /etc/hosts<br />
    2  rpm -qa|grep bash<br />
    3  cat /etc/SuSE-release<br />
    4  history<br />
</code></p>
<p>For any <a href="http://www.planetmy.com/blog/tag/suse">SuSE</a> <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> Enterprise server 10 that managed by more than one people, I would suggest you should make <em>history</em> command more user friendly and more information for auditing purposes.</p>
<p>Edit <em>/etc/bash.bashrc</em> and append to the bottom:<br />
<code><br />
export HISTTIMEFORMAT="%h/%d - %H:%M:%S "<br />
</code><br />
save  it.<br />
<span id="more-1017"></span></p>
<p>Open a new <a href="http://www.planetmy.com/blog/tag/ssh">SSH</a> session and login as usual, try typing few command and exit. Login again and type <em>history</em> and you should be able to see more useful information which included date and time:<br />
<code><br />
    1  Jun/07 - 13:23:40 sudo tail -f /var/log/messages<br />
    2  Jun/07 - 13:23:40 cat /etc/hosts<br />
    3  Jun/07 - 13:23:40 env |grep DISPLAY<br />
    4  Jun/07 - 13:23:40 ps -ef|grep startx<br />
    5  Jun/07 - 13:23:40 env<br />
    6  Jun/07 - 13:23:40 date<br />
    7  Jun/07 - 13:23:40 ps -ef|grep abc<br />
    8  Jun/07 - 13:23:40 touch abc<br />
    9  Jun/07 - 13:23:40 /sbin/ifconfig<br />
   10  Jun/07 - 13:23:40 ping planetmy.com<br />
   11  Jun/07 - 13:23:40 cat abc<br />
   12  Jun/07 - 13:23:40 date<br />
 </code></p>
<p><strong>Note</strong>: This <strong>HISTTIMEFORMAT</strong> is NOT available on SuSE Linux 9 under bash-2.x RPM.</p>
<p>Hope this is helpful!</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-dell-perc-drivers-into-vmware-converter-cold-clone-iso/">How to add Dell PERC Drivers into VMware Converter Cold Clone ISO</a></li>
<li><a href="http://www.planetmy.com/blog/top-10-free-anti-virus/">Top 10 Free Anti Virus</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/">How to Install Webmin on OpenFiler</a></li>
<li><a href="http://www.planetmy.com/blog/microsoft-sql-2008-agent-not-starts/">Microsoft SQL 2008 Agent not starts</a></li>
<li><a href="http://www.planetmy.com/blog/vmware-workstation-7-serial-key/">VMware Workstation 7 Serial Key</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to clean EMC CX 3-80 Dirty Cache?</title>
		<link>http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/</link>
		<comments>http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/#comments</comments>
		<pubDate>Wed, 13 May 2009 10:03:20 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[clean]]></category>
		<category><![CDATA[CX3]]></category>
		<category><![CDATA[CX380]]></category>
		<category><![CDATA[dirty cache]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[LUNs]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=990</guid>
		<description><![CDATA[For the past weekend, it&#8217;s a really a nightmare for me. My office EMC Clariion CX3-80 storage box was crash(halt) and LUNs was not accessible for more than fourty over servers included Asia Pacific and Europe region. The storage box forced to reset and found dirty cache on certain LUNs. Here I would like to [...]]]></description>
			<content:encoded><![CDATA[<p>For the past weekend, it&#8217;s a really a nightmare for me. My office <a href="http://www.planetmy.com/blog/tag/emc">EMC</a> <a href="http://www.planetmy.com/blog/tag/clariion">Clariion</a> CX3-80 storage box was crash(halt) and LUNs was not accessible for more than fourty over servers included Asia Pacific and Europe region.  </p>
<p>The storage box forced to reset and found dirty cache on certain LUNs. Here I would like to share how to list and clear dirty <a href="http://www.planetmy.com/blog/tag/cache">cache</a>.</p>
<p><strong>List <a href="http://www.planetmy.com/blog/tag/lun">LUN</a>s cache</strong><br />
<em># cd /opt/Navisphere/bin<br />
./navicli -h 192.168.1.1 luncache -list</em><br />
OR you can save the output into temporary location.<br />
<em>./navicli -h 192.168.1.1 luncache -list > /tmp/listluncache</em></p>
<p><strong>Note:</strong> IP Address 192.168.1.1 is referring to your SPx controller IP Address.</p>
<p>Open /tmp/listluncache and search for word &#8220;YES&#8221;<br />
<em># view /tmp/listluncache</em> </p>
<p>For an example, you will see:<br />
<code><br />
LOGICAL UNIT NUMBER 4912<br />
LUN Offline (Cache Dirty Condition):  <strong>YES</strong></p>
<p>LOGICAL UNIT NUMBER 4913<br />
LUN Offline (Cache Dirty Condition): <strong>YES</strong><br />
</code><br />
<span id="more-990"></span><br />
Here you can proceed with <a href="http://www.planetmy.com/blog/tag/dirty">dirty</a> cache cleaning process.</p>
<p><strong>Note:</strong> Please contact EMC support and get the confirmation before do this.</p>
<p># cd /opt/Navisphere/bin<br />
./navicli -h 192.168.1.1 luncache 4912 -clear -o<br />
AND<br />
./navicli -h 192.168.1.1 luncache 4913 -clear -o</p>
<p><strong>Note:</strong> LUNs ID 4912 and 4913 are dirty cache LUNs that require to be clean.</p>
<p>Again, please make sure check with <a href="http://www.planetmy.com/blog/tag/emc">EMC</a> support before proceed. Hope this is helpful!</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-dell-perc-drivers-into-vmware-converter-cold-clone-iso/">How to add Dell PERC Drivers into VMware Converter Cold Clone ISO</a></li>
<li><a href="http://www.planetmy.com/blog/top-10-free-anti-virus/">Top 10 Free Anti Virus</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/">How to Install Webmin on OpenFiler</a></li>
<li><a href="http://www.planetmy.com/blog/microsoft-sql-2008-agent-not-starts/">Microsoft SQL 2008 Agent not starts</a></li>
<li><a href="http://www.planetmy.com/blog/vmware-workstation-7-serial-key/">VMware Workstation 7 Serial Key</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check File Size Command on Linux</title>
		<link>http://www.planetmy.com/blog/check-file-size-command-on-linux/</link>
		<comments>http://www.planetmy.com/blog/check-file-size-command-on-linux/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 07:57:37 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[du]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ls]]></category>
		<category><![CDATA[stat]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=946</guid>
		<description><![CDATA[The &#8220;ls&#8221; command is the first command came into the my mind which used for files or directory listing on Linux. Beside that, you can try still check file size on Linux as show below: ls -l FILENAME&#124;/bin/awk -F&#8221; &#8221; &#8216;{print$5}&#8217; ls -l FILENAME &#124; cut -d &#8221; &#8221; -f 5 du -b FILENAME stat [...]]]></description>
			<content:encoded><![CDATA[<p>The <em><strong>&#8220;ls&#8221;</strong></em> command is the first <a href="http://www.planetmy.com/blog/tag/command">command</a> came into the my mind which used for files or directory listing on <a href="http://www.planetmy.com/blog/tag/linux">Linux</a>. Beside that, you can try still check file size on <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> as show below:</p>
<ul>
<li><em>ls -l FILENAME|/bin/awk -F&#8221; &#8221; &#8216;{print$5}&#8217;</em></li>
<li><em>ls -l FILENAME | cut -d &#8221; &#8221; -f 5</em></li>
<li><em>du -b FILENAME</em></li>
<li><em>stat -c%s FILENAME</em></li>
<li><em>cat FILENAME |wc -c</em></li>
</ul>
<p><span id="more-946"></span><br />
Please let me know if you have better idea.</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-dell-perc-drivers-into-vmware-converter-cold-clone-iso/">How to add Dell PERC Drivers into VMware Converter Cold Clone ISO</a></li>
<li><a href="http://www.planetmy.com/blog/top-10-free-anti-virus/">Top 10 Free Anti Virus</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/">How to Install Webmin on OpenFiler</a></li>
<li><a href="http://www.planetmy.com/blog/microsoft-sql-2008-agent-not-starts/">Microsoft SQL 2008 Agent not starts</a></li>
<li><a href="http://www.planetmy.com/blog/vmware-workstation-7-serial-key/">VMware Workstation 7 Serial Key</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/check-file-size-command-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Modify Linux Kernel Semaphores Parameters</title>
		<link>http://www.planetmy.com/blog/how-to-modify-linux-kernel-semaphores-parameters/</link>
		<comments>http://www.planetmy.com/blog/how-to-modify-linux-kernel-semaphores-parameters/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 03:31:15 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=925</guid>
		<description><![CDATA[Oracle, DB2 or SAP uses UNIX/Linux resources such as shared memory, swap space, and semaphores extensively for interprocess communication. If the kernel parameters settings are insufficient, you will experience some problems during installation and/or instance startup. Basically this post will focus on &#8220;How to modify Linux Kernel Semaphores parameters&#8221;. Semaphores can best be described as [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.planetmy.com/blog/tag/oracle">Oracle</a>, <a href="http://www.planetmy.com/blog/tag/db2">DB2</a> or <a href="http://www.planetmy.com/blog/tag/sap">SAP</a> uses UNIX/Linux resources such as shared memory, swap space, and semaphores extensively for interprocess communication. If the kernel parameters settings are insufficient, you will experience some problems during installation and/or instance startup. </p>
<p>Basically this post will focus on &#8220;How to modify <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> <a href="http://www.planetmy.com/blog/tag/kernel">Kernel</a> Semaphores parameters&#8221;.</p>
<p><a href="http://www.planetmy.com/blog/tag/semaphores">Semaphores</a> can best be described as counters which are used to provide synchronization between processes or between threads within a process for shared resources like shared memories. System V semaphores support semaphore sets where each one is a counting semaphore. So when an application requests semaphores, the kernel releases them in &#8220;sets&#8221;. The number of semaphores per set can be defined through the kernel parameter SEMMSL. </p>
<p>1)Show current SEMAPHORES parameter<br />
  server01:~ # ipcs -l</p>
<p>  &#8212;&#8212; Semaphore Limits &#8212;&#8212;&#8211;<br />
  max number of arrays = 1024<br />
  max semaphores per array = 1250<br />
  max semaphores system wide = 256000<br />
  max ops per semop call = 100<br />
  semaphore max value = 32767</p>
<p>  OR </p>
<p>  server01:~ # cat /proc/sys/kernel/sem<br />
  1250    256000  100    1024</p>
<p>  OR </p>
<p>  server01:~ # cat /etc/sysctl.conf<br />
  kernel.sem = 1250 256000 100 1024</p>
<p><span id="more-925"></span><br />
2)How to modify Linux kernel semaphores parameters<br />
  server01:~ # vi /etc/sysctl.conf</p>
<p>  #search for and change the setting by request<br />
  kernel.sem = 4096       512000   1600    9000</p>
<p>  Save it and run<br />
  server01:~ # sysctl -p /etc/sysctl.conf</p>
<p>3)Show SEMAPHONES parameters<br />
  server01:~ # cat /etc/sysctl.conf |grep sem<br />
  kernel.sem = 4096       512000   1600    9000</p>
<p>  OR </p>
<p>  server01:~ # ipcs -l<br />
  kernel.sem = 4096      512000   1600    9000<br />
  &#8212;&#8212; Semaphore Limits &#8212;&#8212;&#8211;<br />
  max number of arrays = 9000<br />
  max semaphores per array = 4096<br />
  max semaphores system wide = 512000<br />
  max ops per semop call = 1600<br />
  semaphore max value = 32767</p>
<p>  OR </p>
<p>  server01:~ # cat /proc/sys/kernel/sem<br />
  4096    512000  1600    9000</p>
<p>Hope this can help!</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-dell-perc-drivers-into-vmware-converter-cold-clone-iso/">How to add Dell PERC Drivers into VMware Converter Cold Clone ISO</a></li>
<li><a href="http://www.planetmy.com/blog/top-10-free-anti-virus/">Top 10 Free Anti Virus</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/">How to Install Webmin on OpenFiler</a></li>
<li><a href="http://www.planetmy.com/blog/microsoft-sql-2008-agent-not-starts/">Microsoft SQL 2008 Agent not starts</a></li>
<li><a href="http://www.planetmy.com/blog/vmware-workstation-7-serial-key/">VMware Workstation 7 Serial Key</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-modify-linux-kernel-semaphores-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Timezone Etc</title>
		<link>http://www.planetmy.com/blog/linux-timezone/</link>
		<comments>http://www.planetmy.com/blog/linux-timezone/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 05:58:53 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Etc]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Timezone]]></category>
		<category><![CDATA[Yast]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=908</guid>
		<description><![CDATA[Referring to my previous post How to configure timezone on SLES Linux, one of my friend asked me how to configure GMT+1 on SuSE Linux. Some of you may confused and choose Etc -&#62; GMT+1 from YAST or /usr/share/zoneinfo/Etc/GMT+1. Wrong! Wrong! Wrong! This is definitely wrong. Basically Etc-&#62;GMT+1 is referring to UTC/GMT(0) minus 1 hours. Said for an [...]]]></description>
			<content:encoded><![CDATA[<p>Referring to my previous post <a href="http://www.planetmy.com/blog/how-to-configure-timezone-on-sles-linux/">How to configure timezone on SLES Linux</a>, one of my friend asked me how to configure GMT+1 on <a href="http://www.planetmy.com/blog/tag/suse">SuSE</a> Linux.</p>
<p>Some of you may confused and choose <em>Etc -&gt; GMT+1</em> from <em>YAST or /usr/share/zoneinfo/Etc/GMT+1. </em></p>
<p style="text-align: left;"><img src="http://www.planetmy.com/images/timezoneetc.png" alt="Linux Timezone" /><br />
<span id="more-908"></span>Wrong! Wrong! Wrong! This is definitely wrong. Basically Etc-&gt;GMT+1 is referring to <a href="http://timeanddate.com/library/abbreviations/timezones/eu/gmt.html">UTC/GMT(0)</a> minus 1 hours.</p>
<p>Said for an example, the current time for GMT+1 is 06:50am and UTC/GMT(0) time is 05:50am and you will get 04:50am if you configure Etc-&gt;GMT+1 on Linux box.</p>
<p>So you should choose Global &#8211; &gt; CET on <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> and if you&#8217;re not sure, probably you can refer to GMT+1(UTC+1) country lists <a href="http://www.worldtimezone.com/utc/utc+0100.html">here</a>.</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-dell-perc-drivers-into-vmware-converter-cold-clone-iso/">How to add Dell PERC Drivers into VMware Converter Cold Clone ISO</a></li>
<li><a href="http://www.planetmy.com/blog/top-10-free-anti-virus/">Top 10 Free Anti Virus</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/">How to Install Webmin on OpenFiler</a></li>
<li><a href="http://www.planetmy.com/blog/microsoft-sql-2008-agent-not-starts/">Microsoft SQL 2008 Agent not starts</a></li>
<li><a href="http://www.planetmy.com/blog/vmware-workstation-7-serial-key/">VMware Workstation 7 Serial Key</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/linux-timezone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set Auto Complete &#8220;service&#8221; command on Redhat</title>
		<link>http://www.planetmy.com/blog/how-to-set-auto-complete-service-command-on-redhat/</link>
		<comments>http://www.planetmy.com/blog/how-to-set-auto-complete-service-command-on-redhat/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 08:36:17 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[SUSE]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=867</guid>
		<description><![CDATA[I have been using SuSE Linux for some time and I love SuSE Linux service script that activated with a symbolic link. In order to start a SSH service, I can easily issue a command &#8220;rcsshd start&#8221;. For Redhat or Centos Linux, you&#8217;re require to type command such as &#8220;service sshd start&#8221; and the main [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using SuSE <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> for some time and I love SuSE Linux service script that activated with a symbolic link. In order to start a SSH service, I can easily issue a command &#8220;rcsshd start&#8221;. </p>
<p>For <a href="http://www.planetmy.com/blog/tag/redhat">Redhat</a> or <a href="http://www.planetmy.com/blog/tag/centos">Centos</a> Linux, you&#8217;re require to type command such as &#8220;service sshd start&#8221; and the main problem is <strong>NO auto complete</strong> for <strong><em>service</em></strong> command by default. Yes I admitted I&#8217;m lazy guy! </p>
<p>So how to set AUTO COMPLETE &#8220;<a href="http://www.planetmy.com/blog/tag/service">service</a>&#8221; command on Redhat/Centos?</p>
<p>Type:<br />
<code>complete -W "$(ls /etc/init.d/)" service </code><br />
<span id="more-867"></span><br />
    * complete : the command complete sets up tab completion<br />
    * -W : this option creates a word list for completion<br />
    * &#8220;$(ls /etc/init.d/)&#8221; : out word list is made up of the output of the command ls /etc/init.d/<br />
    * service : this then sets up the configured completion for the command service </p>
<p>So when you issue a command &#8220;<em>service n</em>&#8221; and <em>press tab</em>, you should be able to see any services that start with the word &#8220;<em>n</em>&#8221; within <em>/etc/init.d/</em> folder such as &#8220;ntpd&#8221;, &#8220;network&#8221;, &#8220;nfs&#8221; and etc.</p>
<p>Enjoy!</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-dell-perc-drivers-into-vmware-converter-cold-clone-iso/">How to add Dell PERC Drivers into VMware Converter Cold Clone ISO</a></li>
<li><a href="http://www.planetmy.com/blog/top-10-free-anti-virus/">Top 10 Free Anti Virus</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/">How to Install Webmin on OpenFiler</a></li>
<li><a href="http://www.planetmy.com/blog/microsoft-sql-2008-agent-not-starts/">Microsoft SQL 2008 Agent not starts</a></li>
<li><a href="http://www.planetmy.com/blog/vmware-workstation-7-serial-key/">VMware Workstation 7 Serial Key</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-set-auto-complete-service-command-on-redhat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup a Linux Highly Availability NFS servers</title>
		<link>http://www.planetmy.com/blog/setup-a-linux-highly-availability-nfs-servers/</link>
		<comments>http://www.planetmy.com/blog/setup-a-linux-highly-availability-nfs-servers/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 05:48:41 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[failover]]></category>
		<category><![CDATA[HA]]></category>
		<category><![CDATA[heartbeart]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[SUSE]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=627</guid>
		<description><![CDATA[In this tutorial I will describe how to set up a Linux Highly Availability(HA) NFS servers using SuSE Linux Enterprise Server 10 SP2. In order to make Linux HA NFS failover work, you&#8217;re require &#8220;sm-notify&#8221; utility, basically sm-notify will send out Network Status Monitor(NSM) reboot notifications. Here are the steps to prepare automated NFS failover. [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial I will describe how to set up a <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> Highly Availability(<a href="http://www.planetmy.com/blog/tag/ha">HA</a>) <a href="http://www.planetmy.com/blog/tag/nfs">NFS</a> servers using <a href="http://www.planetmy.com/blog/tag/suse">SuSE</a> <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> Enterprise Server 10 SP2. In order to make Linux HA NFS failover work, you&#8217;re require &#8220;<em>sm-notify</em>&#8221; utility, basically <em>sm-notify</em> will send out Network Status Monitor(NSM) reboot notifications. </p>
<p>Here are the steps to prepare automated NFS failover. </p>
<p>Server setup details:<br />
  Hostname: ServerNFS01<br />
  IP Address: 10.10.10.11</p>
<p>  Hostname: ServerNFS02<br />
  IP Address: 10.10.10.12</p>
<p>  Linux HA Virtual Hostname: servernfs01<br />
  IP Address 10.10.10.10</p>
<p>  NFS Client Hostname NFSclient01<br />
  IP Address: 10.10.10.13</p>
<p>Require <a href="http://www.planetmy.com/blog/tag/rpm">RPM</a>:<br />
  nfs-utils<br />
  util-linux<br />
  heartbeat<br />
  portmap</p>
<p>The /data directory is a <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> HA share drive sitting on /dev/sdb1(ext3) and contains <a href="http://www.planetmy.com/blog/tag/nfs">NFS</a> share drive.<br />
<span id="more-627"></span><br />
Create a new <a href="http://www.planetmy.com/blog/tag/partition">partition</a> using fdisk<br />
 # fdisk /dev/sdb</p>
<p>Format /dev/sdb1 as ext3<br />
 # mkfs.ext3 /dev/sdb1</p>
<p>Create new folder /data<br />
 # mkdir /data</p>
<p>Linux <a href="http://www.planetmy.com/blog/tag/ha">HA</a> configuration file:<br />
 #/etc/ha.d/ha.cf<br />
 logfile /var/log/ha-log<br />
 logfacility local0<br />
 node servernfs01<br />
 node servernfs02<br />
 keepalive 2<br />
 warntime 30<br />
 deadtime 60<br />
 initdead 120<br />
 udpport 694<br />
 ucast eth0 10.10.10.11<br />
 ucast eth0 10.10.10.12<br />
 auto_failback off<br />
 respawn hacluster /usr/lib/heartbeat/ipfail<br />
 watchdog /dev/watchdog</p>
<p> # /etc/ha.d/authkeys<br />
 auth 2<br />
 2 sha1 NFS_test!</p>
<p> # /etc/ha.d/haresources<br />
 servernfs01 10.10.10.10\<br />
 Filesystem::/dev/sdb1::/data::ext3 \<br />
 service</p>
<p># cat /etc/ha.d/resource.d/service</p>
<p># Script START here<br />
# service &#8211; Linux HA stop and start script<br />
#</p>
<p>usage(){<br />
#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
# Spit out usage message<br />
#</p>
<p>cat < <MSG<br />
USAGE:</p>
<p>$(basename $0) start<br />
$(basename $0) stop<br />
MSG<br />
exit<br />
}</p>
<p>#----------------------------------------------------------------------------<br />
# Main<br />
#</p>
<p>if [ "$(id -u)" != 0 ]; then<br />
        echo "Error: Must be root to run this program."<br />
        exit<br />
fi</p>
<p>if [ "$#" != 1 ];then<br />
        usage<br />
fi</p>
<p>case $1 in<br />
'start')<br />
        echo -n Starting NFS . . .<br />
	#Restarting NFS server<br />
        /etc/init.d/nfsserver restart<br />
	#Virtual IP<br />
        /sbin/sm-notify -v 10.10.10.10 </p>
<p>        ;;<br />
'stop')<br />
        echo -n Stopping NFS  . . .<br />
	#Stopping NFS server<br />
        /etc/init.d/nfsserver stop<br />
	#Virtual IP<br />
        /sbin/sm-notify -v 10.10.10.10<br />
        ;;<br />
esac<br />
# Script END here</p>
<p>Virtual IP Address Information:<br />
eth0:0    Link encap:Ethernet  HWaddr 00:50:56:BA:7B:CC<br />
             inet addr:10.10.10.10  Bcast:10.10.225.255  Mask:255.255.255.0<br />
             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
             Interrupt:177 Base address:0x1424</p>
<p>Move existing <a href="http://www.planetmy.com/blog/tag/nfs">NFS server files to <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> HA share drive<br />
 # mv /var/lib/nfs /data<br />
 # mv /etc/exports /data  </p>
<p>Create a symbolic link for NFS server<br />
 # ln -s /data/nfs /var/lib/nfs<br />
 # ln -s /data/exports /etc/exports</p>
<p> # cat /etc/exports<br />
 /data    10.10.10.0/255.255.255.0(rw,no_root_squash,no_all_squash,sync)</p>
<p>For ServerNFS01 &#038; ServerNFS02, you&#8217;re require<br />
# chkconfig nfsserver off<br />
# chkconfig portmap on<br />
# chkconfig nfsboot off<br />
# chkconfig nfs off<br />
# chkconfig heartbeat on</p>
<p>Please make sure you have NFS services ON for your NFS client machine &#8211; NFSclient01<br />
 # chkconfig nfs on</p>
<p>Let&#8217;s start TESTING &#8230;.<br />
1. Login to NFSclient01 and type <em>mkdir /data ; mount -t nfs 10.10.10.10:/data /data</em><br />
2. Type <em>mount</em> and you should see <em>/data</em> mounted on <a href="http://www.planetmy.com/blog/tag/nfs">NFS</a>.<br />
    10.10.10.10:/data on /data type nfs (rw,addr=10.10.10.10)<br />
3. Power Off ServerNFS01 immediately.<br />
4. Linux HA will take over by ServerNFS02.<br />
3. Type <em>ifconfig</em> on ServerNFS02 and you should able to see virtual IP address &#8211; 10.10.10.10(please wait for a while to see it running).<br />
4. Type <em>/etc/init.d/nfsserver status</em> and you should see NFS server running on node2.<br />
5. Go back to NFSclient01, type ls -l /data or mount and you should see as usual which is mounted on virtual IP address 10.10.10.10 on ServerNFS02.</p>
<p>Congratulations! You&#8217;re done! </p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-dell-perc-drivers-into-vmware-converter-cold-clone-iso/">How to add Dell PERC Drivers into VMware Converter Cold Clone ISO</a></li>
<li><a href="http://www.planetmy.com/blog/top-10-free-anti-virus/">Top 10 Free Anti Virus</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-install-webmin-on-openfiler/">How to Install Webmin on OpenFiler</a></li>
<li><a href="http://www.planetmy.com/blog/microsoft-sql-2008-agent-not-starts/">Microsoft SQL 2008 Agent not starts</a></li>
<li><a href="http://www.planetmy.com/blog/vmware-workstation-7-serial-key/">VMware Workstation 7 Serial Key</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/setup-a-linux-highly-availability-nfs-servers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.226 seconds -->

