<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>pungit.com</title>
	
	<link>http://www.pungit.com</link>
	<description>Computer Tips, Tricks, Howtos, PSP, Anime, Linux</description>
	<lastBuildDate>Mon, 27 Jul 2009 14:54:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PungitDotCom" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="pungitdotcom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>5 Things to do After Installing WordPress</title>
		<link>http://www.pungit.com/tips-n-tricks/after-installing-wordpress/</link>
		<comments>http://www.pungit.com/tips-n-tricks/after-installing-wordpress/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 01:20:38 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.pungit.com/?p=321</guid>
		<description><![CDATA[WordPress is a popular open source publishing platform. It is the choice of most blogger. Not only because it easy to use but the installation process also take less than ten minutes. But after installation there are other things to be done to make it more secure and get the most from your blog/website. Below [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org">WordPress</a> is a popular open source publishing platform. It is the choice of most blogger. Not only because it easy to use but the installation process also take less than ten minutes. But after installation there are other things to be done to make it more secure and get the most from your blog/website.</p>
<p>Below is the 5 things usually I do when I install a fresh WordPress platform.</p>
<p><span id="more-321"></span></p>
<p><strong>1. Change the Default Password</strong></p>
<p>When you WordPress installation precess completed, it will generate a random password and give it to you as a default password. Go to <em>http://myblog.com/wp-login.php</em> and use the username and password to log in into your admin panel for the first time. To change this password you can go to <strong>Users</strong> &gt; <strong>Your Profile</strong> and scroll down until you see the password textbox. Enter your new password and input it again in the text below before you hit the <strong>Update Profile </strong>button.</p>
<p style="text-align: center;"><a href="http://www.pungit.com/wp-content/uploads/2009/07/change-password-wordpress.png" target="_blank"><img class="aligncenter size-full wp-image-323" title="change-password-wordpress" src="http://www.pungit.com/wp-content/uploads/2009/07/change-password-wordpress.png" alt="change-password-wordpress" width="589" height="310" /></a></p>
<p><strong>2. Change the Default Username</strong></p>
<p>The default username for a fresh installed WordPress is <em>admin</em>. During installation process WordPress never ask you for your desire username. For security reason you should change the default username. My previous post on <a href="http://www.pungit.com/tips-n-tricks/how-to-change-your-default-wordpress-username/" target="_blank">How to Change Your Default WordPress Username</a> will guide you to change the username to something that unique.</p>
<p><strong>3. Edit Permalinks</strong></p>
<p>A URL like <em>http://myblog.com/?p=12</em> is poor for Search Engine Optimization (SEO). But the default WordPress articles URL is something like that. So apply a better SEO for your blog by changing the permalinks so it display something like<em> http://myblog.com/my-first-post/</em></p>
<p>To change it, go to <strong>Setting</strong> &gt; <strong>Permalinks</strong>. Under Common settings click the radio button infront of <strong>Custom Structure</strong>. Then enter <em>%postname%/</em> in the textbox. Hit the <strong>Save Changes</strong> button to apply the change. If your <em>.htaccess</em> is not writable, you have to edit the file manually and copy and paste the text inside the textbox below the <strong>Save Changes</strong> button. If you are using <a href="http://nginx.net" target="_blank">Nginx</a> web server follow the instruction on my previous post <a href="http://www.pungit.com/tips-n-tricks/wordpress-permalinks-on-nginx/" target="_blank">WordPress Permalinks on Nginx</a>. It will guide you to configure Nginx, so that you can use SEO friendly URL on WordPress.</p>
<p style="text-align: center;"><a href="http://www.pungit.com/wp-content/uploads/2009/07/wordpress-permalinks.png" target="_blank"><img class="aligncenter size-full wp-image-324" title="wordpress-permalinks" src="http://www.pungit.com/wp-content/uploads/2009/07/wordpress-permalinks.png" alt="wordpress-permalinks" width="575" height="248" /></a></p>
<p><strong>4. Change Theme</strong></p>
<p>You can find free theme at <a href="http://wordpress.org/extend/themes/" target="_blank">Free Theme WordPress</a> or you search using <a href="http://www.google.com" target="_blank">Google</a> or <a href="http://www.yahoo.com" target="_blank">Yahoo</a> to find your favorite theme. But if you have a knowledge of HTML, CSS, PHP and any image and graphic manipulation software you can designed your own theme. Upload it to <strong>wp-content</strong> &gt; <strong>themes</strong>. If you do not know where is <strong>wp-content</strong>, you can find it on the root of your WordPress installation folder. Now, activate it via <strong>Appearance</strong> &gt; <strong>Themes</strong>.</p>
<p><strong>5. Create Your First Post</strong></p>
<p>Now you have your blog up and running. Its time to create your first post. Go to <strong>Post</strong> &gt; <strong>Add New</strong>. For your first post you can introduce yourself to you reader and tell them a little bit about yourself and what you are going the share in your blog. First post is really important because its give the reader the first impression about yourself. Once you completed writing read your post, read it one more time to check if any spelling or grammar error. When you satisfied you can publish it by pressing the <strong>Publish</strong> button. But don&#8217;t forget to add category and tags for the post.</p>
<p>The next things to do is tell your friends, family and the world about your blog. Keep posting, enjoy your blog and watch your blog grow.</p>
<p><strong>Recommended Reading</strong></p>
<p><a href="http://www.amazon.com/gp/product/0470402962?ie=UTF8&amp;tag=pungitdotcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0470402962">WordPress For Dummies</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=pungitdotcom-20&amp;l=as2&amp;o=1&amp;a=0470402962" border="0" alt="" width="1" height="1" /></p>
<p><a href="http://www.amazon.com/gp/product/1440410224?ie=UTF8&amp;tag=pungitdotcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1440410224">WordPress Entrepreneur: How To Setup, Customize &amp; Use A WordPress Website</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=pungitdotcom-20&amp;l=as2&amp;o=1&amp;a=1440410224" border="0" alt="" width="1" height="1" /></p>

<p><a href="http://feedads.g.doubleclick.net/~a/oxYU7ALVxOQA5DK5NwTP9feQgR8/0/da"><img src="http://feedads.g.doubleclick.net/~a/oxYU7ALVxOQA5DK5NwTP9feQgR8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/oxYU7ALVxOQA5DK5NwTP9feQgR8/1/da"><img src="http://feedads.g.doubleclick.net/~a/oxYU7ALVxOQA5DK5NwTP9feQgR8/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.pungit.com/tips-n-tricks/after-installing-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create a Self-Signed SSL Certificate</title>
		<link>http://www.pungit.com/how-to/self-signed-ssl-cert/</link>
		<comments>http://www.pungit.com/how-to/self-signed-ssl-cert/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 14:16:38 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[self-signed cert]]></category>
		<category><![CDATA[ssl cert]]></category>

		<guid isPermaLink="false">http://www.pungit.com/?p=313</guid>
		<description><![CDATA[SSL certificate is a digital certificate use by web server who run an encrypted and secure network connection. Every web server needs SSL certificate to enable secure connection. But each SSL certificate can only be use by one domain. So if you have four website on your server and want to enable secure connection on [...]]]></description>
			<content:encoded><![CDATA[<p>SSL certificate is a digital certificate use by web server who run an encrypted and secure network connection. Every web server needs SSL certificate to enable secure connection. But each SSL certificate can only be use by one domain. So if you have four website on your server and want to enable secure connection on all your website you have to buy SSL certificates from SSL certificate providers like <a href="http://www.verisign.com/" target="_blank">Verisign</a>, <a href="http://www.geotrust.com/" target="_blank">Geotrust</a>, and <a href="http://comodo.com/" target="_blank">COMODO</a>.</p>
<p><span id="more-313"></span></p>
<p>But if you want to use it only for your blog/website admin panel, you can always create you self-signed SSL certificate. Creating one only take a few minute and cost nothing. Let&#8217;s start with the tools required to create your self-signed SSL cert. First you should have OpenSSL installed on your Linux operating system. If you do not then refer your Linux Distro manual on how to install package or software because this will not covered by this tutorial.</p>
<p>Okay, open your Linux terminal and create a folder. You can select any name. But for this tutorial I create a folder name <em>ssl</em> using the following command.</p>
<pre>mkdir ssl</pre>
<p>Now type following command to create your SSL key.</p>
<pre>openssl genrsa 1024 &gt; mydomain.key</pre>
<p>It will create a 1024 bit SSL key named mydomain.key on that folder. Because you don&#8217;t want everyone can read the key you should chage its permission. The following command will change the key permission to read only for root while group and other user do not have read permission or write premission.</p>
<pre>chmod 400 host.key</pre>
<p>Now it time to create your certificate. use the following command.</p>
<pre>openssl req -new -x509 -nodes -sha1 -days 365 -key mydomain.key &gt; mydomain.cert</pre>
<p>This command will asks you to input some information related to the certificate. And the screenshot below is the example output of the command.</p>
<p style="text-align: center;"><a href="http://www.pungit.com/wp-content/uploads/2009/07/Terminal-OpenSSL.png" target="_blank"><img class="aligncenter size-full wp-image-314" title="Terminal-OpenSSL" src="http://www.pungit.com/wp-content/uploads/2009/07/Terminal-OpenSSL.png" alt="Terminal-OpenSSL" width="407" height="253" /></a></p>
<p>Ok, lets go through what input did the command asks you to key-in. The first line is your country code. If you do not know your country code you can refer <a href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2" target="_blank">ISO_3166-1_alpha-2</a>. The second line is your State, and next is your City. In the forth line input your Organization Name, and input your Organizational Unit Name in the fifth line. The next line (Common Name) is really important, you should input your domain name here. If you use www on your domain you should input <em>www.mydomain.com</em> and for non-www use <em>mydomain.com</em> and for subdomain input the complete subdomain name e.g., <em>subdomain.mydomain.com</em>. The last line is your email address, just key-in your preferred email address here.</p>
<p>Once completed, a file named mydomain.cert will be created on the current directory. Now you have a two files on your ssl directory. You can upload it to your server and configure your server to enable ssl connection. I will not cover server configuration as I will discussed it on my next tutorial. If everything is configure properly, you can access you website by typing <em>https://www.mydomain.com</em>.</p>
<p>The only issued using self-signed SSL certificate is that your browser will display a warning about untrusted certificate. But you can always ignored this warning because you are the only one that accesses your admin area and you are the one that issued the certificate. So do not worry about untrusted certificate.</p>
<p>Lastly, if you have any comments or question, do not hesitate to leave a comments because I will be happy to read your comment and answer your question.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/OB21NFNLQDYjadWWIWWiubmmx0s/0/da"><img src="http://feedads.g.doubleclick.net/~a/OB21NFNLQDYjadWWIWWiubmmx0s/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OB21NFNLQDYjadWWIWWiubmmx0s/1/da"><img src="http://feedads.g.doubleclick.net/~a/OB21NFNLQDYjadWWIWWiubmmx0s/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.pungit.com/how-to/self-signed-ssl-cert/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx: Redirect www to non-www</title>
		<link>http://www.pungit.com/tips-n-tricks/nginx-redirect-www-to-non-www/</link>
		<comments>http://www.pungit.com/tips-n-tricks/nginx-redirect-www-to-non-www/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 07:58:49 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginx www to non-www]]></category>

		<guid isPermaLink="false">http://www.pungit.com/?p=288</guid>
		<description><![CDATA[Method 1 Open your nginx.conf and add the following configuration inside your server {} configuration. if ($host = 'www.domain.com') { rewrite ^/(.*)$ http://domain.com/$1 permanent; } Make sure you change domain.com with your own domain name and save the configuration file before you restart nginx. Method 2 As usual, open nginx.conf and add the following configuration [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Method 1</strong><br />
Open your nginx.conf and add the following configuration inside your <em>server {}</em> configuration. </p>
<pre>
if ($host = 'www.domain.com') {
    rewrite ^/(.*)$ http://domain.com/$1 permanent;
	}
</pre>
<p><span id="more-288"></span><br />
Make sure you change <em>domain.com</em> with your own domain name and save the configuration file before you restart nginx. </p>
<p><strong>Method 2</strong><br />
As usual, open nginx.conf and add the following configuration to the file. Don&#8217;t forget to change <em>domain.com</em> with your own domain. </p>
<pre>
server {
    server_name  www.domain.com;
    rewrite ^(.*) http://domain.com$1 permanent;
}

server {
    server_name  domain.com;
    Put all other web server configuration here
}
</pre>
<p>To make the change take effect you have to save the configuration file and restart nginx. Now when visitor type <em>www.domain.com</em> on their browser address bar it will redirect to <em>domain.com</em>. </p>
<p>Both method are simple and easy. Adding only a few lines and wah la, the jobs is done.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/S0WdUn9Q8yS6DX_sQ2ggiMJ2KsI/0/da"><img src="http://feedads.g.doubleclick.net/~a/S0WdUn9Q8yS6DX_sQ2ggiMJ2KsI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/S0WdUn9Q8yS6DX_sQ2ggiMJ2KsI/1/da"><img src="http://feedads.g.doubleclick.net/~a/S0WdUn9Q8yS6DX_sQ2ggiMJ2KsI/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.pungit.com/tips-n-tricks/nginx-redirect-www-to-non-www/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Server Uptime Using PHP Script</title>
		<link>http://www.pungit.com/tips-n-tricks/display-server-uptime-using-php-script/</link>
		<comments>http://www.pungit.com/tips-n-tricks/display-server-uptime-using-php-script/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 14:44:03 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[server uptime php script]]></category>

		<guid isPermaLink="false">http://www.pungit.com/?p=282</guid>
		<description><![CDATA[Start you favorite text editor and type the following text. &#60;?php system("uptime"); ?&#62; Now save the file as uptime.php and then upload the file to your server root directory. Once uploaded, open your internet browser and point it to the uptime.php by typing http://yourdomain.com/uptime.php. Change yourdomain.com with your own domain name. This script call the [...]]]></description>
			<content:encoded><![CDATA[<p>Start you favorite text editor and type the following text.</p>
<pre>
&lt;?php system("uptime"); ?&gt;
</pre>
<p>Now save the file as uptime.php and then upload the file to your server root directory. Once uploaded, open your internet browser and point it to the uptime.php by typing <em>http://yourdomain.com/uptime.php</em>. Change <em>yourdomain.com</em> with your own domain name. This script call the unix system command &#8216;uptime&#8217; and display the result in html format so that it can be display on your internet browser. Below is the example result display by the script.</p>
<p><span id="more-282"></span></p>
<pre>
22:30:25 up 3 days, 17:02,  1 user,  load average: 0.00, 0.00, 0.00
</pre>
<p>The first column is the current time of the server (22:23:25), the server uptime is display on the second column (3 days 17 hours and 2 second) and currently the server has 1 user online, whereas the last column display the current load of the server.</p>
<p>Please note that this script is only work on unix compatible operating system only. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/CTW3J0yowTdRVrGvyTjq14WswLQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/CTW3J0yowTdRVrGvyTjq14WswLQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/CTW3J0yowTdRVrGvyTjq14WswLQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/CTW3J0yowTdRVrGvyTjq14WswLQ/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.pungit.com/tips-n-tricks/display-server-uptime-using-php-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Split or Merge File on Linux</title>
		<link>http://www.pungit.com/linux/split-or-merge-file-on-linux/</link>
		<comments>http://www.pungit.com/linux/split-or-merge-file-on-linux/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 12:50:58 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[merge files on linux]]></category>
		<category><![CDATA[split files on linux]]></category>

		<guid isPermaLink="false">http://www.pungit.com/?p=278</guid>
		<description><![CDATA[If you are using Windows operating system, you have to install third party program to be able to split large file into a few small files. But for Linux user you can use split command to do the task. It is a small program but do the job effectively. For example if you have 2 [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using Windows operating system, you have to install third party program to be able to split large file into a few small files. But for Linux user you can use split command to do the task. It is a small program but do the job effectively. For example if you have 2 GB files and want to split it into four files of 500 MB each, you can use the following command. </p>
<p><span id="more-278"></span></p>
<pre>
split --b=500m original part
</pre>
<p>The program will creates four files with 500 MB each. <em>original</em> is the file that you want to split and <em>part</em> is the prefix of the split files. In this example the split command will create partaa, partab, partac and partad.</p>
<p>If you want to restore or merge the split files use the following command </p>
<pre>
cat partaa partab partac partad > mergefiles
</pre>
<p>This will merges the four files and named the files mergefiles. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/e6d6OJv-AxGFcAuXLpS1Bt9qImI/0/da"><img src="http://feedads.g.doubleclick.net/~a/e6d6OJv-AxGFcAuXLpS1Bt9qImI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/e6d6OJv-AxGFcAuXLpS1Bt9qImI/1/da"><img src="http://feedads.g.doubleclick.net/~a/e6d6OJv-AxGFcAuXLpS1Bt9qImI/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.pungit.com/linux/split-or-merge-file-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
