<?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>netkoo.ca</title>
	<atom:link href="http://netkoo.ca/webtech/feed/" rel="self" type="application/rss+xml" />
	<link>http://netkoo.ca/webtech</link>
	<description>webtech</description>
	<lastBuildDate>Tue, 13 Dec 2011 02:35:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Install VNC on VPS</title>
		<link>http://netkoo.ca/webtech/install-vnc-on-vps/</link>
		<comments>http://netkoo.ca/webtech/install-vnc-on-vps/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 02:26:03 +0000</pubDate>
		<dc:creator>Holden C</dc:creator>
				<category><![CDATA[Linux/Unix Admin]]></category>

		<guid isPermaLink="false">http://netkoo.ca/webtech/?p=167</guid>
		<description><![CDATA[How to install a VNC server on the CentOS VPS? &#160; #&#62;su - #&#62;yum update #&#62;yum -y groupinstall "KDE (K Desktop Environment)" #&#62;yum -y install vnc vnc-server firefox #&#62;mv /root/.vnc/xstartup  /root/.vnc/xstartup.backup #&#62;vi /root/.vnc/xstartup #!/bin/sh startkde &#38; #&#62;vncserver install tight vnc viewer. tightVNC &#8230; <a href="http://netkoo.ca/webtech/install-vnc-on-vps/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>How to install a VNC server on the CentOS VPS?</p>
<p>&nbsp;</p>
<pre>#&gt;su -
#&gt;yum update
#&gt;yum -y groupinstall "KDE (K Desktop Environment)"
#&gt;yum -y install vnc vnc-server firefox
#&gt;mv /root/.vnc/xstartup  /root/.vnc/xstartup.backup</pre>
<pre>#&gt;vi /root/.vnc/xstartup
#!/bin/sh</pre>
<pre>startkde &amp;</pre>
<pre>#&gt;vncserver</pre>
<p>install tight vnc viewer.</p>
<p>tightVNC Server: domain.com:1</p>
<p>click Connect, input root password.</p>
<p>Done.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://netkoo.ca/webtech/install-vnc-on-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My NAS &#8211; A file storage solution for home and small office.</title>
		<link>http://netkoo.ca/webtech/my-nas-a-file-storage-solution-for-home-and-small-office/</link>
		<comments>http://netkoo.ca/webtech/my-nas-a-file-storage-solution-for-home-and-small-office/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 00:06:26 +0000</pubDate>
		<dc:creator>Holden C</dc:creator>
				<category><![CDATA[Linux/Unix Admin]]></category>
		<category><![CDATA[Network Admin]]></category>

		<guid isPermaLink="false">http://netkoo.ca/webtech/?p=145</guid>
		<description><![CDATA[NAS ( Network Attached Storage) I have 4 computers, 1 pad, 1 netbook plus few iphones, and like many guys, always have one device short. So, how to share files between these many computers? how to make sure your files &#8230; <a href="http://netkoo.ca/webtech/my-nas-a-file-storage-solution-for-home-and-small-office/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>NAS ( Network Attached Storage)</p>
<p>I have 4 computers, 1 pad, 1 netbook plus few iphones, and like many guys, always have one device short. <img src='http://netkoo.ca/webtech/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, how to share files between these many computers? how to make sure your files are safe?</p>
<p>This post will give you a cheap hardware solution, and I&#8217;ll post the software solution next time.</p>
<p>1. Find a cheap set of motherboard/cpu/memory.</p>
<p>Mine is an old core2duo computer with 4GB memory, sitting in dusts for a few years. Today, perhaps costs $150-$250 CAD? The NAS doesn&#8217;t need a core2duo cpu, any Pentium level CPU should work too. I just like this 6 SATA2 ports. on the top left corner. I&#8217;m sure you can find a BETTER and CHEAPER set of motherboad/cpu/memory in free geeks (<a href="http://freegeekvancouver.org/">http://freegeekvancouver.org/</a>).</p>
<p><a href="http://netkoo.ca/webtech/wp-content/uploads/2011/09/mb.jpg"><img class="alignnone size-medium wp-image-146" title="motherboard/cpu/memory set" src="http://netkoo.ca/webtech/wp-content/uploads/2011/09/mb-300x179.jpg" alt="" width="300" height="179" /></a></p>
<p>&nbsp;</p>
<p>2. buy a piece of wood board from Home Depot and cut it to good size to fit my shelf.</p>
<p><a href="http://netkoo.ca/webtech/wp-content/uploads/2011/09/mb_back1.jpg"><img class="alignnone size-medium wp-image-148" title="mb_back" src="http://netkoo.ca/webtech/wp-content/uploads/2011/09/mb_back1-300x248.jpg" alt="" width="300" height="248" /></a></p>
<p>&nbsp;</p>
<p>3. Mount the motherboard onto the wood board. Make sure you leave some space between the motherboard and wood board, for air flow.</p>
<p><a href="http://netkoo.ca/webtech/wp-content/uploads/2011/09/sideview.jpg"><img class="alignnone size-medium wp-image-151" title="sideview" src="http://netkoo.ca/webtech/wp-content/uploads/2011/09/sideview-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p>&nbsp;</p>
<p>4. Mount the wood board upside down onto the top of my shelf.</p>
<p><a href="http://netkoo.ca/webtech/wp-content/uploads/2011/09/mount.jpg"><img class="alignnone size-medium wp-image-152" title="mount" src="http://netkoo.ca/webtech/wp-content/uploads/2011/09/mount-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p>&nbsp;</p>
<p>5. Plug all 6 hard drives, 2 x IDE, and 4 x SATA2. Looks pretty messy. <img src='http://netkoo.ca/webtech/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><a href="http://netkoo.ca/webtech/wp-content/uploads/2011/09/withoutFans.jpg"><img class="alignnone size-medium wp-image-153" title="withoutFans" src="http://netkoo.ca/webtech/wp-content/uploads/2011/09/withoutFans-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="http://netkoo.ca/webtech/wp-content/uploads/2011/09/withFan.jpg"><img class="alignnone size-medium wp-image-154" title="withFan" src="http://netkoo.ca/webtech/wp-content/uploads/2011/09/withFan-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p>&nbsp;</p>
<p>6. Bought 2 racks for my 6 hard drives. Now it doesn&#8217;t look too messy.</p>
<p><a href="http://netkoo.ca/webtech/wp-content/uploads/2011/09/withRacks2.jpg"><img class="alignnone size-medium wp-image-156" title="withRacks2" src="http://netkoo.ca/webtech/wp-content/uploads/2011/09/withRacks2-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>7. Complete view</p>
<p><a href="http://netkoo.ca/webtech/wp-content/uploads/2011/09/completeview.jpg"><img class="alignnone size-medium wp-image-157" title="completeview" src="http://netkoo.ca/webtech/wp-content/uploads/2011/09/completeview-300x265.jpg" alt="" width="300" height="265" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>8. outside view.</p>
<p><a href="http://netkoo.ca/webtech/wp-content/uploads/2011/09/open-cover.jpg"><img class="alignnone size-medium wp-image-158" title="open-cover" src="http://netkoo.ca/webtech/wp-content/uploads/2011/09/open-cover-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>9. This is the outside with cover view. I call it “IKEA NAS” because it&#8217;s inside an IKEA shelf. <img src='http://netkoo.ca/webtech/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://netkoo.ca/webtech/wp-content/uploads/2011/09/withcover.jpg"><img class="alignnone size-medium wp-image-159" title="withcover" src="http://netkoo.ca/webtech/wp-content/uploads/2011/09/withcover-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>In my current NAS, there are 4 SATA2 hard drives, 2TB each, with RAID5 setting gives total 6TB storage capacity. 2 IDE drives are set to RAID1 (mirror), for storing OS only. This NAS server has been working 24&#215;7 for 1+ years, perhaps only rebooted 1-2 times.</p>
<p>OS is ubuntu 10.4 server version.</p>
<p>For future upgrade, I&#8217;ll take out these 2 IDE drives and replease with 2 compact flash drives with IDE adapter, so I&#8217;ll be able to free up 2 slots in the RAC, and fill witth 2 additional 2TB SATA2 drives. Then the total capacity will be 10TB, should be able to serve me for another 4 years.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://netkoo.ca/webtech/my-nas-a-file-storage-solution-for-home-and-small-office/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tired of the password guessers/hackers?</title>
		<link>http://netkoo.ca/webtech/tired-of-the-password-guessershackers/</link>
		<comments>http://netkoo.ca/webtech/tired-of-the-password-guessershackers/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 22:39:17 +0000</pubDate>
		<dc:creator>Holden C</dc:creator>
				<category><![CDATA[Linux/Unix Admin]]></category>

		<guid isPermaLink="false">http://netkoo.ca/webtech/?p=137</guid>
		<description><![CDATA[I AM! If you are managing a little server facing the Internet directly, please check your logs. Perhaps there are many many many tries to hack your user passwords. Like mine&#8230;&#8230; Here is a little script I created to block &#8230; <a href="http://netkoo.ca/webtech/tired-of-the-password-guessershackers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>I AM!</strong></p>
<p>If you are managing a little server facing the Internet directly, please check your logs. Perhaps there are many many many tries to hack your user passwords. Like mine&#8230;&#8230; <img src='http://netkoo.ca/webtech/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Here is a little script I created to block the IPs trying to hack my server. So, an user&#8217;s IP which tries 15 consecutive times per day, will be blocked, forever! <img src='http://netkoo.ca/webtech/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  This script only blocks linux password hackers, I have similar script for blocking pop3 and asterisk hacks.</p>
<p><strong>Step 1: create a file to store your firewall config</strong></p>
<p>/sbin/iptables-save &gt; /root/firewall-confs/firewall.conf</p>
<p><strong>Step 2: make sure every time your server boots up will reload this config.</strong></p>
<p>vi /etc/rc.local</p>
<p>/sbin/iptables-restore &lt; /root/firewall-confs/firewall.conf</p>
<p><strong>Step 3: update the crontab to run the script everyday.</strong></p>
<p>50 23 * * * /root/ipfilter.sh &gt;&gt; /root/blockedIPList.txt</p>
<p><strong>Step 4: the script</strong></p>
<pre class="">
[root@server ~]# cat ipfilter.sh
#!/bin/sh
DATE=`date | awk '{print $2, $3}'`
echo " "
echo "==========================================="
date
grep "$DATE" /var/log/secure | grep "Failed password for invalid user" | awk '{print $13}'&gt; /root/filter_log.today.beforesort
cat /root/filter_log.today.beforesort | sort &gt; /root/filter_log.today
pre_line=" "
counter=0
while read line
do
if [ "$line" == "$pre_line" ]; then
counter=`expr $counter + 1`
# if 15 consecutive hacks
if [ "$counter" -eq 15 ]; then
#block ip
/sbin/iptables -A INPUT -s $line -j DROP
#unblock ip
#/sbin/iptables -D INPUT -s $line -j DROP
echo "blocked ip: "$line
fi
else
if [ "$counter" -ge 15 ]; then
echo "counter = "$counter
fi
counter=0
fi
pre_line=$line
done &lt; "/root/filter_log.today"
echo "counter = "$counter
service iptables save
service iptables restart
/sbin/iptables-save &gt; /root/firewall-confs/firewall.conf
</pre>
<p>So far it works for me. Here are some IPs I blocked.</p>
<p>&#8230;</p>
<p>===========================================<br />
Sat Jun 25 23:50:03 MDT 2011<br />
counter = 0</p>
<p>===========================================<br />
Sun Jun 26 23:50:02 MDT 2011<br />
blocked ip: 124.42.3.52<br />
counter = 350</p>
<p>===========================================<br />
Mon Jun 27 23:50:01 MDT 2011<br />
blocked ip: 200.76.85.210<br />
counter = 897<br />
blocked ip: 222.241.151.133<br />
counter = 36</p>
<p>===========================================<br />
Tue Jun 28 23:50:01 MDT 2011<br />
blocked ip: 184.82.20.38<br />
counter = 131<br />
blocked ip: 203.31.7.22<br />
counter = 91</p>
<p>===========================================<br />
Wed Jun 29 23:50:03 MDT 2011<br />
blocked ip: 60.191.125.194<br />
counter = 970</p>
<p>===========================================<br />
Thu Jun 30 23:50:05 MDT 2011<br />
counter = 0<br />
&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://netkoo.ca/webtech/tired-of-the-password-guessershackers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install linux (ubuntu 10.04 server 64bit) to Acer Aspire Easystore H340</title>
		<link>http://netkoo.ca/webtech/how-to-install-linux-ubuntu-10-04-server-64bit-to-acer-aspire-easystore-h340/</link>
		<comments>http://netkoo.ca/webtech/how-to-install-linux-ubuntu-10-04-server-64bit-to-acer-aspire-easystore-h340/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 07:38:18 +0000</pubDate>
		<dc:creator>Holden C</dc:creator>
				<category><![CDATA[Linux/Unix Admin]]></category>

		<guid isPermaLink="false">http://netkoo.ca/webtech/?p=133</guid>
		<description><![CDATA[H340 doesn&#8217;t have a VGA port, so you can&#8217;t plug your monitor to the mother board to install ubuntu. There are servial solutions to resolve this issue. If you are like me, don&#8217;t want to spend $70-$90 to buy a &#8230; <a href="http://netkoo.ca/webtech/how-to-install-linux-ubuntu-10-04-server-64bit-to-acer-aspire-easystore-h340/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>H340 doesn&#8217;t have a VGA port, so you can&#8217;t plug your monitor to the mother board to install ubuntu. There are servial solutions to resolve this issue. If you are like me, don&#8217;t want to spend $70-$90 to buy a special VGA/PS2 cable, and you don&#8217;t know how to build your own cable. Here is a better solution.</p>
<div id="_mcePaste" style="padding-left: 30px;">1. Install a ubuntu10.04 to a new hard drive in a computer with</div>
<div style="padding-left: 30px;">monitor/keyboard/mouse. Set static ip address to eth0. Make sure you select install SSH server.</div>
<div id="_mcePaste" style="padding-left: 30px;">2. login to the ubuntu.</div>
<div id="_mcePaste" style="padding-left: 30px;">- sudo vi /etc/udev/rules.d/70-persistent-net.rule</div>
<div id="_mcePaste" style="padding-left: 30px;">- remove every line, like</div>
<div id="_mcePaste" style="padding-left: 30px;">SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”,&#8230;&#8230;&#8230;</div>
<div id="_mcePaste" style="padding-left: 30px;">3. save and shutdown</div>
<div id="_mcePaste" style="padding-left: 30px;">4. unplug this hard drive and plug it into the H340&#8242;s first bay.</div>
<div id="_mcePaste" style="padding-left: 30px;">5. turn on H340. You should see the lights on NIC blinking.</div>
<div id="_mcePaste" style="padding-left: 30px;">6. ping and ssh to this H340. DONE. <img src='http://netkoo.ca/webtech/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div style="padding-left: 30px;"></div>
<div id="_mcePaste">If you can&#8217;t ping and ssh to H340, plug this hard drive back to computer. Make sure all lines like</div>
<div id="_mcePaste"><em>SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”,&#8230;&#8230;&#8230;</em></div>
<div id="_mcePaste">in /etc/udev/rules.d/70-persistent-net.rule have been removed.</div>
<div><strong>Thanks to druhboruch from ubuntuforum, he/she is the real hero. <img src='http://netkoo.ca/webtech/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></div>
<div id="_mcePaste">http://ubuntuforums.org/showthread.php?t=1193348</div>
]]></content:encoded>
			<wfw:commentRss>http://netkoo.ca/webtech/how-to-install-linux-ubuntu-10-04-server-64bit-to-acer-aspire-easystore-h340/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install VirtualBox on Ubuntu 10.04 (server) with Virtual NICs</title>
		<link>http://netkoo.ca/webtech/install-virtualbox-on-ubuntu-10-04-server-with-virtual-nics/</link>
		<comments>http://netkoo.ca/webtech/install-virtualbox-on-ubuntu-10-04-server-with-virtual-nics/#comments</comments>
		<pubDate>Mon, 31 May 2010 21:55:34 +0000</pubDate>
		<dc:creator>Holden C</dc:creator>
				<category><![CDATA[Linux/Unix Admin]]></category>

		<guid isPermaLink="false">http://netkoo.ca/webtech/?p=126</guid>
		<description><![CDATA[This is suppose to be an easy task, but somehow not so easy for me.  No&#8230;&#8230; I&#8217;m not that smart&#8230;. Assume you installed ubuntu 10.04 already. For Virtual Box to run, you need a desktop, at least I need a desktop. &#8230; <a href="http://netkoo.ca/webtech/install-virtualbox-on-ubuntu-10-04-server-with-virtual-nics/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is suppose to be an easy task, but somehow not so easy for me.  No&#8230;&#8230; I&#8217;m not that smart&#8230;.</p>
<p>Assume you installed ubuntu 10.04 already. For Virtual Box to run, you need a desktop, at least I need a desktop. So,</p>
<p><strong>$&gt; sudo apt-get install ubuntu-desktop<br />
</strong>( This will take a long long time, so, turn on your TV, and start watching LOST season 6 start from episode 1,2,3&#8230;&#8230;&#8230;.  After Jack closes his eyes, you should be able to get this red+purple+orangeish color Desktop. <img src='http://netkoo.ca/webtech/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>Bounce your computer a few times, make sure it&#8217;s stable. Then login and open a terminal.</p>
<p><strong>$&gt;sudo apt-get install virtualbox-ose</strong><br />
(Virtualbox installed)</p>
<p>Now we need to create some virtual NICs</p>
<p><strong>$&gt;sudo vi /etc/network/interfaces<br />
</strong>(put these lines in, don&#8217;t worry about the IP address mis-match your network, you won&#8217;t use them anyway.. You can try 127.0.0.1/32, if you like.)<br />
auto virbr1<br />
iface virbr1 inet static<br />
        address 192.168.0.99<br />
        netmask 255.255.255.0<br />
        network 192.168.0.0<br />
        broadcast 192.168.0.255<br />
        gateway 192.168.0.1<br />
        bridge_ports eth0<br />
        bridge_fd 9<br />
        bridge_hello 2<br />
        bridge_maxage 12<br />
        bridge_stp off<br />
        hwaddress ether 00:01:2e:2c:d6:ea</p>
<p><strong>$&gt;sudo /etc/init.d/networking restart</strong></p>
<p>Now go back to virtualbox on your Desktop. Create the virtual server as you usually do, then make sure in “Networking”, select “birdge adapter” mode, then choose “virbr1&#8243;. After that, put the MAC address of virbr1 into the MAC address bar below. (if you don&#8217;t change MAC address, it still works. I just follow this pattern from my previous opensolaris settings.)</p>
<p>Now install guest OS, and setup the IP address/mask and gateway. My IP is like, 192.168.88.111/24. You should be able to ping this IP address from other computers, like 192.168.88.112/24.</p>
<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://netkoo.ca/webtech/install-virtualbox-on-ubuntu-10-04-server-with-virtual-nics/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Install Websphere7.0 on CentOS (2)</title>
		<link>http://netkoo.ca/webtech/install-websphere7-0-on-centos-2/</link>
		<comments>http://netkoo.ca/webtech/install-websphere7-0-on-centos-2/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 09:02:58 +0000</pubDate>
		<dc:creator>Holden C</dc:creator>
				<category><![CDATA[Websphere]]></category>

		<guid isPermaLink="false">http://netkoo.ca/webtech/?p=121</guid>
		<description><![CDATA[Last time I installed a websphere 7.0 deployment manager on a CentOS. This time I&#8217;ll create an application server on a different Host, and federate this new app server to the deployment manager I installed last time. 1. Install a &#8230; <a href="http://netkoo.ca/webtech/install-websphere7-0-on-centos-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last time I installed a websphere 7.0 deployment manager on a CentOS. This time I&#8217;ll create an application server on a different Host, and federate this new app server to the deployment manager I installed last time.</p>
<p>1. Install a standalone WAS.</p>
<p>- Follow the “Install Websphere7.0 on CentOS (1)” document to download and untar the source.<br />
- vi responsefile.nd.txt, turn on the following options,</p>
<p>-OPT silentInstallLicenseAcceptance=”true”<br />
-OPT allowNonRootSilentInstall=”true”<br />
-OPT disableOSPrereqChecking=”true”<br />
-OPT disableNonBlockingPrereqChecking=”true”<br />
-OPT installType=”installNew”<br />
-OPT profileType=”standAlone”<br />
-OPT feature=”noFeature”<br />
-OPT PROF_enableAdminSecurity=”true”<br />
-OPT PROF_adminUserName=”admin”<br />
-OPT PROF_adminPassword=”password”<br />
-OPT installLocation=”/home/user/IBM/WebSphere/AppServer”<br />
-OPT cimSelected=”true”<br />
-OPT cimRepositoryLocation=”/home/user/IBM/WebSphere/cimrepos”<br />
-OPT PROF_profilePath=”/home/user/IBM/WASprofiles”<br />
-OPT PROF_profileName=”FatWAS70serverProf”<br />
-OPT PROF_isDefault=”true”<br />
-OPT PROF_hostName=”FatWASHost1&#8243;<br />
-OPT PROF_nodeName=”FatWASNode1&#8243;<br />
-OPT PROF_cellName=”FatWASCell1&#8243;<br />
-OPT PROF_serverName=”server1&#8243;<br />
-OPT PROF_defaultPorts=”true”</p>
<p>Save it and run this command,<br />
- ./install -options “./responsefile.nd.txt” -silent</p>
<p>Then start server to check if install is successful.</p>
<p>2. Federate!</p>
<p>2.1 Pre-Federate.</p>
<p>- put the following entries into /etc/hosts file on BOTH deployment manager server and this server.<br />
192.168.xx.xx(This server&#8217;s IP addr)  FatWASHost1<br />
192.168.xx.xx(Dmgr server&#8217;s IP addr)  FatWASDmgr</p>
<p>- Check the time on these two servers. The difference must be smaller than 5 minutes. To make sure the time is set properly, do this on both servers,<br />
- yum install ntp<br />
- ntpdate us.pool.ntp.org</p>
<p>2.2 Federate this node<br />
- cd /home/user/IBM/WASprofiles/bin<br />
- startup the Deployment Manager<br />
-  ./addNode.sh DMGR_IP_ADDR 8879 -conntype SOAP -includeapps -trace -username admin -password password -localusername admin -localpassword password</p>
<p>&#8230; &#8230;<br />
ADMU0003I: Node FatWASNode1 has been successfully federated.</p>
<p>- logout/login to the dmgr&#8217;s web console, then check “Servers -&gt; Server Types -&gt; WebSphere application server”. There should be a server1 in the list. Start it up.</p>
<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://netkoo.ca/webtech/install-websphere7-0-on-centos-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Install Websphere7.0 on CentOS (1)</title>
		<link>http://netkoo.ca/webtech/install-websphere7-0-on-centos-1/</link>
		<comments>http://netkoo.ca/webtech/install-websphere7-0-on-centos-1/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 06:15:18 +0000</pubDate>
		<dc:creator>Holden C</dc:creator>
				<category><![CDATA[Websphere]]></category>

		<guid isPermaLink="false">http://netkoo.ca/webtech/?p=113</guid>
		<description><![CDATA[I need to install a Websphere7.0 onto a CentOS5.3 linux server, with 2 conditions, 1, install with non-root user account. 2, install without a web browser. Why I&#8217;m not the root user? Because I&#8217;m not the System Admin. Why there &#8230; <a href="http://netkoo.ca/webtech/install-websphere7-0-on-centos-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I need to install a Websphere7.0 onto a CentOS5.3 linux server, with 2 conditions, 1, install with non-root user account. 2, install without a web browser.</p>
<p>Why I&#8217;m not the root user? Because I&#8217;m not the System Admin. Why there is no web browser? Because the SA doesn&#8217;t like me&#8230;.. <img src='http://netkoo.ca/webtech/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My plan is to install the deployment mgr on to a container first, then use the dmgr console to manage other app servers. To make that work, of course you need the ND version.</p>
<p>- Download that big C?????.tar.gz file from IBM website.<br />
- make a source directory like /home/user/WAS70ND, and move your gz file into there.<br />
- cd /home/user/WAS70ND<br />
- tar -zxvf ?.tar.gz<br />
- cd WAS</p>
<p>Now edit the response file.<br />
- vi responsefile.nd.txt<br />
I have the following options turned on,</p>
<p>-OPT silentInstallLicenseAcceptance=”true”<br />
-OPT allowNonRootSilentInstall=”true”<br />
-OPT disableOSPrereqChecking=”true”<br />
-OPT disableNonBlockingPrereqChecking=”true”<br />
-OPT installType=”installNew”<br />
-OPT profileType=”management”<br />
-OPT feature=”noFeature”<br />
-OPT PROF_enableAdminSecurity=”true”<br />
-OPT PROF_adminUserName=”admin”<br />
-OPT PROF_adminPassword=”password”<br />
-OPT installLocation=”/home/user/IBM/WebSphere/AppServer”<br />
-OPT cimSelected=”true”<br />
-OPT cimRepositoryLocation=”/home/user/IBM/WebSphere/cimrepos”<br />
-OPT PROF_profilePath=”/home/user/IBM/WASprofiles”<br />
-OPT PROF_profileName=”FatWAS70Dmgr”<br />
-OPT PROF_isDefault=”true”<br />
-OPT PROF_serverType=”DEPLOYMENT_MANAGER”<br />
-OPT PROF_hostName=”FatWASDmgr”<br />
-OPT PROF_nodeName=”FatWASDmgrNode”<br />
-OPT PROF_cellName=”FatWASCell”<br />
-OPT PROF_defaultPorts=”true”</p>
<p>Save it and run this command,<br />
- ./install -options “./responsefile.nd.txt” -silent</p>
<p>To check the install process, open another window then check the log<br />
- tail -f /home/user/waslogs/log.txt<br />
&#8230; &#8230;<br />
(Nov 25, 2009 10:48:49 AM), Process, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFSUCCESS</p>
<div>Start dmgr admin console<br />
- cd /home/ycui/IBM/WASprofiles/bin<br />
- ./startManager.sh</div>
<div>Visit the the url: http://yourIP:9060/ibm/console</div>
]]></content:encoded>
			<wfw:commentRss>http://netkoo.ca/webtech/install-websphere7-0-on-centos-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CentOS create new user command: useradd</title>
		<link>http://netkoo.ca/webtech/centos-create-new-user-command-useradd/</link>
		<comments>http://netkoo.ca/webtech/centos-create-new-user-command-useradd/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 08:29:11 +0000</pubDate>
		<dc:creator>Holden C</dc:creator>
				<category><![CDATA[Linux/Unix Admin]]></category>

		<guid isPermaLink="false">http://netkoo.ca/webtech/?p=103</guid>
		<description><![CDATA[syntax: useradd -s /bin/bash -d [folder_name]  -c “[name]” [userid] sample: useradd -s /bin/bash -d /home/holden -c "Holden C" holden Chagne password: passwd holden]]></description>
			<content:encoded><![CDATA[<p style="outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; margin-top: 1px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; font-size: 1.2em; background-position: initial initial; padding: 2px; border: 0px initial initial;">syntax:<br />
<span style="font-family: monospace;">useradd -s /bin/bash -d [folder_name]  -c “[name]” [userid]</span></p>
<p style="outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; margin-top: 1px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; font-size: 1.2em; background-position: initial initial; padding: 2px; border: 0px initial initial;">sample:<br />
<code style="outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; background-position: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;">useradd -s /bin/bash -d /home/holden -c "Holden C" holden</code></p>
<p style="outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; margin-top: 1px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; font-size: 1.2em; background-position: initial initial; padding: 2px; border: 0px initial initial;">Chagne password:<br />
<span style="font-family: monospace;">passwd holden</span></p>
]]></content:encoded>
			<wfw:commentRss>http://netkoo.ca/webtech/centos-create-new-user-command-useradd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to post Chinese in Word Press.</title>
		<link>http://netkoo.ca/webtech/how-to-post-chinese-in-word-press/</link>
		<comments>http://netkoo.ca/webtech/how-to-post-chinese-in-word-press/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 08:42:08 +0000</pubDate>
		<dc:creator>Holden C</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://netkoo.ca/webtech/?p=101</guid>
		<description><![CDATA[word press doesn&#8217;t have Chinese language package by default, and the db char set doesn&#8217;t support Chinese, so you need a little extra admin work. 1. download/install Chinese language pack 1.1. download http://svn.automattic.com/wordpress-i18n/zh_CN/wporg/rosetta-zh_CN.mo and change file name to zh_CN.mo 1.2. &#8230; <a href="http://netkoo.ca/webtech/how-to-post-chinese-in-word-press/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>word press doesn&#8217;t have Chinese language package by default, and the db char set doesn&#8217;t support Chinese, so you need a little extra admin work.</p>
<p>1. download/install Chinese language pack</p>
<p>1.1. download http://svn.automattic.com/wordpress-i18n/zh_CN/wporg/rosetta-zh_CN.mo and change file name to zh_CN.mo</p>
<p>1.2. then download http://svn.automattic.com/wordpress-i18n/zh_CN/wporg/rosetta-zh_CN.po and change file name to zh_CN.po</p>
<p>1.3.  use your FTP client to create a folder named “languages” in your domain. e.g. my folder is here: WEB_HOME/webtech/wp-content/languages/</p>
<p>1.4. upload the zh_CN.po and zh_CN.mo files into this “languages” folder.</p>
<p>2. change your wp-config.php file to allow database to save and read 16 bits chars.</p>
<p>2.1. go to your domain and find the file named “wp-config.php”. e.g. my file is located at WEB_HOME/webtech/wp-config.php</p>
<p>2.2. edit this file and find the line shows, “define(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8242;);”, then change it to “define(&#8216;DB_CHARSET&#8217;, &#8216;utf16&#8242;);”.<br />
then find the line shows, ” define (&#8216;WPLANG&#8217;, ”);”, and change it to “define (&#8216;WPLANG&#8217;, &#8216;zh_CN&#8217;);”</p>
<p>2.3. save and test your word press posting. It should work, like mine.</p>
<p>美人卷珠帘，家里断水电，骂你没有钱，爹娘无颜见。</p>
]]></content:encoded>
			<wfw:commentRss>http://netkoo.ca/webtech/how-to-post-chinese-in-word-press/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu9.04 install LAMP+Drupal</title>
		<link>http://netkoo.ca/webtech/ubuntu9-04-install-lampdrupal/</link>
		<comments>http://netkoo.ca/webtech/ubuntu9-04-install-lampdrupal/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 08:39:18 +0000</pubDate>
		<dc:creator>Holden C</dc:creator>
				<category><![CDATA[Linux/Unix Admin]]></category>

		<guid isPermaLink="false">http://netkoo.ca/webtech/?p=86</guid>
		<description><![CDATA[Taking a course in BCIT, to learn some Drupal stuff. So, setting up a test box at home to play with. $&#62;sudo apt-get install apache2 $&#62;sudo /etc/init.d/apache2 restart $&#62;sudo apt-get install php5 libapache2-mod-php5 $&#62;sudo /etc/init.d/apache2 restart $&#62;sudo vi /var/www/testphp.php &#60;?php &#8230; <a href="http://netkoo.ca/webtech/ubuntu9-04-install-lampdrupal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Taking a course in BCIT, to learn some Drupal stuff. So, setting up a test box at home to play with.</p>
<pre>$&gt;sudo apt-get install apache2
$&gt;sudo /etc/init.d/apache2 restart</pre>
<pre>$&gt;sudo apt-get install php5 libapache2-mod-php5
$&gt;sudo /etc/init.d/apache2 restart
$&gt;sudo vi /var/www/testphp.php
&lt;?php phpinfo(); ?&gt;</pre>
<pre>$&gt;sudo apt-get install mysql-server
rootpassword: ROOTPASSWORD
$&gt;sudo vi /etc/mysql/my.cnf
<div>bind-address            = 0.0.0.0
$&gt;sudo mysql -u root -p
exit</div>
<div><em>$&gt;sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin</em></div>
<div><em>check both apache2,lighthttp
phpmyadmin: yes
put password</em></div>
<div><em>$&gt;sudo vi /etc/php5/apache2/php.ini
<em>extension=msql.so</em>
<span style="font-style: normal;">memory_limit = 256M</span></em></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 129px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">sudo vi /etc/mysql/my.cn</div>
$&gt;wget http://drupal.org/files/projects/drupal-6.13.tar.gz
$&gt;tar -zxvpf drupal-6.13.tar.gz
$&gt;sudo mv drupal-6.13/* drupal-6.13/.htaccess /var/www/</pre>
<p><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;"><span style="line-height: 18px; white-space: pre; font-size: x-small;">visit <a href="http://192.168.88.171/install.php?profile=default">http://YOURIP/install.php?profile=default</a></span></span></p>
<div><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: small;"><span style="line-height: 18px; white-space: pre;"><br />
</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://netkoo.ca/webtech/ubuntu9-04-install-lampdrupal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

