<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6685574557496442492</id><updated>2011-08-06T19:17:17.714+08:00</updated><category term='others'/><category term='samba'/><category term='SNMP'/><category term='Project'/><category term='Fedora'/><category term='Apache'/><category term='Memcached'/><category term='ubuntu'/><category term='mysql'/><category term='networking'/><category term='Cacti'/><title type='text'>Let's finish it soon</title><subtitle type='html'>Bla Bla</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mohd Hafiz</name><uri>http://www.blogger.com/profile/12524422833236956908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0fWkPCI8kOo/S2LWHQY0UmI/AAAAAAAAACQ/FF4QjJ097wk/S220/leaf.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-6019844464308878758</id><published>2010-05-26T13:17:00.001+08:00</published><updated>2010-05-26T13:18:16.615+08:00</updated><title type='text'>New link</title><content type='html'>Thank you for visiting our blog. We have imported the blog to a new link due to some circumstances. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;CLICK HERE:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size: large;"&gt;&lt;a href="http://angkatbahu.blogspot.com/"&gt;http://angkatbahu.blogspot.com&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-6019844464308878758?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/6019844464308878758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/05/new-link.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/6019844464308878758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/6019844464308878758'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/05/new-link.html' title='New link'/><author><name>Khairina</name><uri>http://www.blogger.com/profile/02429580908692830802</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_N-QfXWnNkOc/R_kDa2lxU1I/AAAAAAAAAAM/3vdE0hHODQY/S220/setar.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-920782621444021576</id><published>2010-04-19T21:12:00.009+08:00</published><updated>2010-04-20T14:55:20.280+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>Fedora: Change Root Directory of Httpd</title><content type='html'>&lt;span class="Apple-style-span"  style="font-size:small;"&gt;I recently try to install apache on fedora 12. I need to change the root directory to ease me editing file and avoiding permission. It is quite different when I was configuring on ubuntu. After read through several forums I come to this post. So, I won't be crazy for the next time.. haha&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;The default root directory is at &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;/var/www/html&lt;/span&gt;. In my case, I want to change it to &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;/home/user1/web&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;b&gt;Step 1:&lt;/b&gt; Edit apache configuration file (as root)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;# gedit /etc/httpd/conf/httpd.conf&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Find these two lines&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;DocumentRoot "/var/www/html"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;# This should be changed to whatever you set DocumentRoot to.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;/html&gt;&lt;&lt;html&gt;Directory "/var/www/html"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Then, change to&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;DocumentRoot "/home/user1/web"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;# This should be changed to whatever you set DocumentRoot to.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;/html&gt;&lt;&lt;html&gt;Directory "/home/user1/web"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-family: georgia; "&gt;Save and close this file.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;b&gt;Step 2:&lt;/b&gt; Changing permission&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;# chmod 711 /home/user1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;# chmod -R 755 /home/user1/web&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;This step is necessary since in fedora, httpd process will be executed by user 'apache', thus permission need to be change. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;By default, the permission for each user directory is &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;drwx------&lt;/span&gt;, so that other users can't access to files in this directory and its subdirectories.&lt;/span&gt;&lt;/div&gt;&lt;a href="javascript:void(0)"&gt;&lt;/a&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;# setsebool -P httpd_enable_homedirs 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;# chcon -R -t httpd_sys_content_t /home/user1/web&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Note: httpd by default is not allowed to access users home  directories, see this &lt;/span&gt;&lt;a href="http://fedoraproject.org/wiki/SELinux/apache"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;page&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;b&gt;Step 3:&lt;/b&gt; Restart apache&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;# service httpd restart&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Hope this will help a little bit :)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;References:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a href="http://forums.fedoraforum.org/showthread.php?t=233130"&gt;http://forums.fedoraforum.org/showthread.php?t=233130&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-920782621444021576?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/920782621444021576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/04/fedora-change-root-directory-of-httpd.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/920782621444021576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/920782621444021576'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/04/fedora-change-root-directory-of-httpd.html' title='Fedora: Change Root Directory of Httpd'/><author><name>Mohd Hafiz</name><uri>http://www.blogger.com/profile/12524422833236956908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0fWkPCI8kOo/S2LWHQY0UmI/AAAAAAAAACQ/FF4QjJ097wk/S220/leaf.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-8481541609397594054</id><published>2010-04-18T22:01:00.004+08:00</published><updated>2010-04-18T22:12:43.335+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='others'/><title type='text'>Never Ends</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: small;"&gt;Now, our FYP is finish but research is just begun :)&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Erm..I think the blog title need to be changed. Hehe. &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-8481541609397594054?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/8481541609397594054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/04/never-ends.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/8481541609397594054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/8481541609397594054'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/04/never-ends.html' title='Never Ends'/><author><name>Mohd Hafiz</name><uri>http://www.blogger.com/profile/12524422833236956908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0fWkPCI8kOo/S2LWHQY0UmI/AAAAAAAAACQ/FF4QjJ097wk/S220/leaf.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-5907082054489673668</id><published>2010-02-10T10:50:00.017+08:00</published><updated>2010-02-26T13:13:14.059+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Memcached'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Setting Up LAMP + memcached on Ubuntu Server 9.10</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;This post will show a guide on how to setup LAMP with memcached on three machines. Perhaps this will help us on writing technical report..huahuha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;We are currently running our performance test on our web and database server using memcached. The test is used to monitor the cpu and memory usage using cacti. Thanks to khairina for &lt;/span&gt;&lt;a href="http://hafiz-khairina.blogspot.com/2010/02/snmp-cacti-configuration-part-2.html"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;SNMP and cacti configuration&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; :)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;We have installed LAMP server in two 64-bit machines, whereas 1 machine running apache2 with php5 while another one running MySQL 5.1. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;We also have a dedicated memcached server. Since we are using php5, thus  we chosen php as our memcached client. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Then it can be simply tested using 'ab' (apache bench).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;b&gt;Step 1: Setting up Web Server (192.168.0.101)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;b&gt;Installing apache2 and php5&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo apt-get install apache2 php5 libapache2-mod-php5&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Note: In ubuntu, php5 will use &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;php5-prefork&lt;/span&gt; by default&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;b&gt;Installing MySQL module for php5&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo apt-get install libapache2-mod-auth-mysql php5-mysql&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Then, edit php configuration file to add mysql extension&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo vi /etc/php5/apache2/php.ini&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Then add this line&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;extension=msql.so&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;b&gt;Installing memcache module for php5&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ apt-get install php5-memcache&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Then, edit php configuration file to add memcached extension&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo vi /etc/php5/apache2/php.ini &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Then add this line&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;extension=memcache.so&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;To ease us in locating our php file on our web server, we have changed the default location.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Edit  &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;/etc/apache2/sites-available/default&lt;/span&gt;. Don't forget to backup it first. (use gedit,vi or nano)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo vi /etc/apache2/sites-available/default&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Then, find this two lines.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;DocumentRoot /var/www/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;directory var="" www=""&gt;&lt;/directory&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Edit it into preferred directory, so it become&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;DocumentRoot /home/username/web/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;directory home="" username="" web=""&gt;&lt;/directory&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Make sure the directory exists &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ mkdir /home/username/web/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Restart apache2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo /etc/init.d/apache2 restart&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Now, we can create our php code inside the web directory.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;Step 2: &lt;/b&gt;&lt;/span&gt;Setting up Database Server (192.168.0.102)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;b&gt;Installing MySQL server 5.1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo apt-get install mysql-server&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Then edit mysql configuration file to bind address so it can be connected from any machines&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo vi /etc/mysql/my.cnf &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Edit this line&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;bind-address&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;= 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;to (MySQL server IP address)&lt;/span&gt;&lt;/div&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;bind-address&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;= 192.168.0.102&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;then, restart mysql server&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo /etc/init.d/mysql restart&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Add a user to enable to mysql client connect from different host (as mysql server) see the manual &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/adding-users.html"&gt;here&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;Step 3: &lt;/b&gt;&lt;/span&gt;Installing Memcached (192.168.0.103)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Get the latest memcached source file (current version is 1.4.4) that can be download from this &lt;a href="http://code.google.com/p/memcached/downloads/list"&gt;site&lt;/a&gt;. Then, follow this &lt;a href="http://2bits.com/articles/installing-memcached-125-and-memcache-pecl-223-ubuntu-server.html"&gt;guide&lt;/a&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Or simply install using apt-get. In ubuntu 9.10 the memcached version is 1.2.8&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo apt-get install memcached&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Create a file, put the php code below and save it as index.php into /&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;home/username/web&lt;/span&gt; directory (or&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; /var/www/&lt;/span&gt; if haven't do any changes)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"   style="  color: rgb(70, 85, 132); -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family:Courier, 'Courier New', Verdana, Arial;font-size:13px;"&gt;&lt;textarea name="textarea" cols="30" rows="4" wrap="hard" readonly="yes"&gt;&lt;?php phpinfo(); ?&gt;&lt;/textarea&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;Open web browser the type &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;http://webserver_ipaddress/index.php&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;. Then, the memcached module for php5 can be found in this page as figure below&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_0fWkPCI8kOo/S3It1AyqXjI/AAAAAAAAAD4/uZbx0dD6l5Y/s1600-h/php.png"&gt;&lt;img style="text-align: left;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; width: 320px; height: 174px; " src="http://3.bp.blogspot.com/_0fWkPCI8kOo/S3It1AyqXjI/AAAAAAAAAD4/uZbx0dD6l5Y/s320/php.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5436458088958418482" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;Now, we can test our web and database server &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;:D&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;References:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a href="https://help.ubuntu.com/community/ApacheMySQLPHP"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;https://help.ubuntu.com/community/ApacheMySQLPHP&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=440526"&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;http://ubuntuforums.org/showthread.php?t=440526&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-5907082054489673668?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/5907082054489673668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/02/installing-lamp-memcached-on-ubuntu.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/5907082054489673668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/5907082054489673668'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/02/installing-lamp-memcached-on-ubuntu.html' title='Setting Up LAMP + memcached on Ubuntu Server 9.10'/><author><name>Mohd Hafiz</name><uri>http://www.blogger.com/profile/12524422833236956908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0fWkPCI8kOo/S2LWHQY0UmI/AAAAAAAAACQ/FF4QjJ097wk/S220/leaf.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_0fWkPCI8kOo/S3It1AyqXjI/AAAAAAAAAD4/uZbx0dD6l5Y/s72-c/php.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-8512397684344393447</id><published>2010-02-09T20:17:00.011+08:00</published><updated>2010-02-09T21:02:06.373+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cacti'/><category scheme='http://www.blogger.com/atom/ns#' term='SNMP'/><title type='text'>SNMP &amp; Cacti Configuration (PART 2)</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;SNMP configuration updated. Previously, I have posted &lt;/span&gt;&lt;a href="http://hafiz-khairina.blogspot.com/2010/01/snmp-cacti-configuration.html"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;SNMP &amp;amp; Cacti Configuration&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;. I want to add some additional necessary information to configure which I have done.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Firstly I checked my SNMP if it's working or not:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;$&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: normal; "&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;It suppose to return your ip as output like below:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style=" color: rgb(0, 0, 238); -webkit-text-decorations-in-effect: underline; font-family:Georgia, serif;"&gt;&lt;img src="http://2.bp.blogspot.com/_N-QfXWnNkOc/S3FXB1svUsI/AAAAAAAAAKk/grUPfo0S1JU/s400/Screenshot-5.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5436221914319114946" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 41px; " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style=" -webkit-text-decorations-in-effect: underline; font-family:Georgia, serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style=" -webkit-text-decorations-in-effect: underline; font-family:Georgia, serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;In my case, SNMP is not working and return many different errors. What I have done to solve the problem is just edit snmpd configuration file (snmpd.conf). Below is my snmpd.conf (/etc/snmp/snmpd.conf), you could simply copy paste and try to your PC. (Copy the original file first so you have backup if something happen) -- I put the lines you have to check in red.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style=" -webkit-text-decorations-in-effect: underline; font-family:Georgia, serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style=" -webkit-text-decorations-in-effect: underline; font-family:Georgia, serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style=" -webkit-text-decorations-in-effect: underline; font-family:Georgia, serif;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;##########################################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# EXAMPLE.conf:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#   An example configuration file for configuring the ucd-snmp snmpd agent.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;##########################################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# This file is intended to only be an example.  If, however, you want&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# to use it, it should be placed in /etc/snmp/snmpd.conf.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# When the snmpd agent starts up, this is where it will look for it.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# You might be interested in generating your own snmpd.conf file using&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# the "snmpconf" program (perl script) instead.  It's a nice menu&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# based interface to writing well commented configuration files.  Try it!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# Note: This file is automatically generated from EXAMPLE.conf.def.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# Do NOT read the EXAMPLE.conf.def file! Instead, after you have run&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# configure &amp;amp; make, and then make sure you read the EXAMPLE.conf file&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# instead, as it will tailor itself to your configuration.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# All lines beginning with a '#' are comments and are intended for you&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# to read.  All other lines are configuration commands for the agent.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# PLEASE: read the snmpd.conf(5) manual page as well!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;##########################################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# Access Control&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;##########################################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# YOU SHOULD CHANGE THE "COMMUNITY" TOKEN BELOW TO A NEW KEYWORD ONLY&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# KNOWN AT YOUR SITE.  YOU *MUST* CHANGE THE NETWORK TOKEN BELOW TO&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# SOMETHING REFLECTING YOUR LOCAL NETWORK ADDRESS SPACE.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# By far, the most common question I get about the agent is "why won't&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# it work?", when really it should be "how do I configure the agent to&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# allow me to access it?"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# By default, the agent responds to the "public" community for read&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# only access, if run out of the box without any configuration file in &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# place.  The following examples show you other ways of configuring&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# the agent so that you can change the community names, and give&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# yourself write access as well.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# The following lines change the access permissions of the agent so&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# that the COMMUNITY string provides read-only access to your entire&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# NETWORK (EG: 10.10.10.0/24), and read/write access to only the&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# localhost (127.0.0.1, not its real ipaddress).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# For more information, read the FAQ as well as the snmpd.conf(5)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# manual page.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;##########################################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# First, map the community name (COMMUNITY) into a security name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# (local and mynetwork, depending on where the request is coming&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# from):&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#       sec.name  source          community&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;com2sec local localhost public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;com2sec mynetwork 10.101.95.0/24 public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;##########################################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# Second, map the security names into group names:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#             &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;sec.model  sec.name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;group MyROSystem v1        paranoid&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;group MyROSystem v2c       paranoid&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;group MyROSystem usm       paranoid&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;group MyROGroup v1         local&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;group MyROGroup v2c        local&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;group MyROGroup usm        local&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;group MyRWGroup v1         mynetwork&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;group MyRWGroup v2c        mynetwork&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;group MyRWGroup usm        mynetwork&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;##########################################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# Third, create a view for us to let the groups have rights to:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#           incl/excl subtree                          mask&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;view all    included  .1                               80&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;view system included  .iso.org.dod.internet.mgmt.mib-2.system&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;##########################################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# Finally, grant the 2 groups access to the 1 view with different&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# write permissions:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#                context sec.model sec.level match  read   write  notif&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;access MyROSystem ""     any       noauth    exact  system none   none&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;access MyROGroup ""      any       noauth    exact  all    none   none&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;access MyRWGroup ""      any       noauth    exact  all    all    none&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#--------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#############################################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# System contact information&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# It is also possible to set the sysContact and sysLocation system&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# variables through the snmpd.conf file.  **PLEASE NOTE** that setting&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# the value of these objects here makes these objects READ-ONLY&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# (regardless of any access control settings).  Any attempt to set the&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# value of an object whose value is given here will fail with an error&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# status of notWritable.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#Editing this value is optional, i dont do any changes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;syslocation Unknown (configure /etc/snmp/snmpd.local.conf)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;syscontact Root &lt;/span&gt;&lt;root@localhost&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; (configure /etc/snmp/snmpd.local.conf)&lt;/span&gt;&lt;/root@localhost&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;End changes. Leave code below this line as it is&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;################################################&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;After edit this file, save it. Then restart SNMP. Make sure you restart.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;$sudo service snmpd restart&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Then, do check again. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia, serif;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;$&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia, serif;"&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;That's all. :)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;a href="http://www.cyberciti.biz/nixcraft/linux/docs/uniqlinuxfeatures/mrtg/mrtg_config_step_3.php"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;http://www.cyberciti.biz/nixcraft/linux/docs/uniqlinuxfeatures/mrtg/mrtg_config_step_3.php&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;a href="http://www.debianhelp.co.uk/snmp.htm"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;http://www.debianhelp.co.uk/snmp.htm&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-8512397684344393447?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/8512397684344393447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/02/snmp-cacti-configuration-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/8512397684344393447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/8512397684344393447'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/02/snmp-cacti-configuration-part-2.html' title='SNMP &amp; Cacti Configuration (PART 2)'/><author><name>Khairina</name><uri>http://www.blogger.com/profile/02429580908692830802</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_N-QfXWnNkOc/R_kDa2lxU1I/AAAAAAAAAAM/3vdE0hHODQY/S220/setar.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_N-QfXWnNkOc/S3FXB1svUsI/AAAAAAAAAKk/grUPfo0S1JU/s72-c/Screenshot-5.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-2339525078900321134</id><published>2010-02-05T21:23:00.003+08:00</published><updated>2010-02-05T21:40:33.977+08:00</updated><title type='text'>Join Freenode</title><content type='html'>&lt;div style="text-align: left;"&gt;I had joined &lt;a href="http://freenode.net/"&gt;Freenode&lt;/a&gt; :)&lt;/div&gt;&lt;div&gt;I am cool &lt;span class="Apple-style-span"  style="font-family:arial;"&gt;:P&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238); -webkit-text-decorations-in-effect: underline; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: underline; "&gt;I am using X-Chat (also could use Pidgin, web or other IRC)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;$sudo apt-get install xchat&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="color:#0000EE;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_N-QfXWnNkOc/S2weEtGRf8I/AAAAAAAAAKU/zaKS2Ewtcxg/s1600-h/Screenshot-2.png"&gt;&lt;img src="http://2.bp.blogspot.com/_N-QfXWnNkOc/S2weEtGRf8I/AAAAAAAAAKU/zaKS2Ewtcxg/s400/Screenshot-2.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5434751916503564226" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 297px; " /&gt;&lt;/a&gt;You can use any &lt;a href="http://irc.netsplit.de/channels/?net=freenode"&gt;channel available&lt;/a&gt; on freenode. (In the picture, I joined #ubuntu). After connecting to a channel, you could add channel, so dont worry :)&lt;/div&gt;&lt;div&gt;You could also build your &lt;a href="http://blog.freenode.net/2008/04/registering-a-channel-on-freenode/"&gt;own channel&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_N-QfXWnNkOc/S2weECeFPvI/AAAAAAAAAKM/_xWk98kcLuI/s1600-h/Screenshot-3.png"&gt;&lt;img src="http://4.bp.blogspot.com/_N-QfXWnNkOc/S2weECeFPvI/AAAAAAAAAKM/_xWk98kcLuI/s400/Screenshot-3.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5434751905060699890" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 267px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Done. Happy chatting :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-2339525078900321134?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/2339525078900321134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/02/join-freenode.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/2339525078900321134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/2339525078900321134'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/02/join-freenode.html' title='Join Freenode'/><author><name>Khairina</name><uri>http://www.blogger.com/profile/02429580908692830802</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_N-QfXWnNkOc/R_kDa2lxU1I/AAAAAAAAAAM/3vdE0hHODQY/S220/setar.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_N-QfXWnNkOc/S2weEtGRf8I/AAAAAAAAAKU/zaKS2Ewtcxg/s72-c/Screenshot-2.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-5178703552128877983</id><published>2010-01-29T13:36:00.000+08:00</published><updated>2010-02-02T15:28:10.857+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cacti'/><category scheme='http://www.blogger.com/atom/ns#' term='SNMP'/><title type='text'>SNMP &amp; Cacti Configuration</title><content type='html'>&lt;div style="text-align: left;"&gt;Basically, i refer my SNMP and Cacti installation &lt;a href="http://www.debuntu.org/how-to-monitor-your-servers-with-snmp-and-cacti"&gt;here&lt;/a&gt;. It works nicely. I would like to paste here everything i have done to make it works in my PC.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below is how the architecture looks since I want Cacti to monitor many devices at a time. Firstly, assign one PC as manager (which Cacti will be installed) and all of devices to be monitored. They are connected using SNMP.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_N-QfXWnNkOc/S2KYZELJsWI/AAAAAAAAAJU/oRILCR_U5As/s1600-h/Diagram1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 163px;" src="http://2.bp.blogspot.com/_N-QfXWnNkOc/S2KYZELJsWI/AAAAAAAAAJU/oRILCR_U5As/s200/Diagram1.bmp" alt="" id="BLOGGER_PHOTO_ID_5432071656946905442" border="0" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below is the setting I had done to my manager:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1) Firstly, install SNMP&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$sudo apt-get install snmpd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2) Then check&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$sudo gedit /etc/default/snmpd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Make sure&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;# snmpd control (yes means start daemon).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;SNMPDRUN=yes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;# snmpd options (use syslog, close stdin/out/err).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,serif;"&gt;3) Next,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$sudo gedit /etc/snmp/snmpd.conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;In the line of com2sec setting, I have adjusted as below (slightly different from How-To)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;#       sec.name  source   community&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;com2sec readonly localhost public&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;If you have your own community, you could use it for better security.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4) Check SNMP configuration&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$snmpwalk -Os -c public -v 1 localhost system&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(If you use your community, replace 'public' with your community name)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This command will return result something like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238);"&gt;&lt;span class="Apple-style-span" style=""&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_N-QfXWnNkOc/S2Kcx7CyGgI/AAAAAAAAAJs/BQEFeSFd_nM/s1600-h/bla.gif"&gt;&lt;img src="http://2.bp.blogspot.com/_N-QfXWnNkOc/S2Kcx7CyGgI/AAAAAAAAAJs/BQEFeSFd_nM/s400/bla.gif" alt="" id="BLOGGER_PHOTO_ID_5432076482039126530" style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238);"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;5) &lt;b&gt;CACTI- Installation&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;I did exactly like &lt;a href="http://www.debuntu.org/how-to-monitor-your-servers-with-snmp-and-cacti-p2"&gt;here&lt;/a&gt;. &lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;For all other devices, configure SNMP server same like above. That's all :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-5178703552128877983?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/5178703552128877983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/01/snmp-cacti-configuration.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/5178703552128877983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/5178703552128877983'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/01/snmp-cacti-configuration.html' title='SNMP &amp; Cacti Configuration'/><author><name>Khairina</name><uri>http://www.blogger.com/profile/02429580908692830802</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_N-QfXWnNkOc/R_kDa2lxU1I/AAAAAAAAAAM/3vdE0hHODQY/S220/setar.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_N-QfXWnNkOc/S2KYZELJsWI/AAAAAAAAAJU/oRILCR_U5As/s72-c/Diagram1.bmp' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-1465609600162836492</id><published>2010-01-17T18:34:00.000+08:00</published><updated>2010-01-28T21:24:54.676+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Mysql Cluster with Mysql 5.1 on Ubuntu Server 9.10</title><content type='html'>We're currently implementing memcached on mysql cluster using mysql 5.1. So, to make it quick, i followed a guide from &lt;a href="http://www.howtoforge.com/"&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;howtoforge&lt;/span&gt;&lt;/a&gt; written by Peter Okupski in this &lt;a href="http://www.howtoforge.com/setting-up-a-loadbalanced-mysql-cluster-with-mysql5.1"&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;site&lt;/span&gt;&lt;/a&gt;. It works for me. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There are several things need to be concerned before implementing this guide on ubuntu server 9.10.&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Don't install mysql-server5.1 from the repository using apt-get.&lt;br /&gt;For me, it's easier to install mysql cluster by using source code in ubuntu. Source code can be downloaded form mysql &lt;a href="http://dev.mysql.com/downloads/cluster/"&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;site&lt;/span&gt;&lt;/a&gt;. On 'select platform' option, choose 'source code' and download the tar file mysql-cluster-gpl-[version].tar.gz&lt;br /&gt;(Note: register, it is free!)&lt;br /&gt;&lt;br /&gt;&lt;/version&gt;&lt;/version&gt;&lt;/li&gt;&lt;li&gt;Install build-essential package to allow compiling source file&lt;br /&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo apt-get install build-essential&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Install developer's library for ncurses&lt;br /&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo apt-get install libncurses5-dev&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will avoid an error:&lt;br /&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;configure error: No curses/termcap library found&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Now, it's ready :-)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;References:&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.howtoforge.com/setting-up-a-loadbalanced-mysql-cluster-with-mysql5.1"&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;http://www.howtoforge.com/setting-up-a-loadbalanced-mysql-cluster-with-mysql5.1&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.spiration.co.uk/post/1391/Ubuntu%20-%20configure%20error:%20No%20curses/termcap%20library%20found"&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;http://www.spiration.co.uk/post/1391/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-1465609600162836492?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/1465609600162836492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/01/mysql-cluster-with-mysql-51-on-ubuntu.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/1465609600162836492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/1465609600162836492'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/01/mysql-cluster-with-mysql-51-on-ubuntu.html' title='Mysql Cluster with Mysql 5.1 on Ubuntu Server 9.10'/><author><name>Mohd Hafiz</name><uri>http://www.blogger.com/profile/12524422833236956908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0fWkPCI8kOo/S2LWHQY0UmI/AAAAAAAAACQ/FF4QjJ097wk/S220/leaf.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-3161926852250841708</id><published>2010-01-10T12:50:00.007+08:00</published><updated>2010-02-07T16:18:23.273+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='networking'/><title type='text'>Setting Up Gateway in Ubuntu</title><content type='html'>I just think how to set up simple gateway server for a LAN. After searched for a while, i found some useful guide (see references).&lt;div&gt;&lt;div&gt;First, the server machine needs to have at least two interfaces, e.g. &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;eth0&lt;/span&gt; and &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;eth1&lt;/span&gt;. In my case, I used &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;eth0&lt;/span&gt; for connecting to internet and eth1 for connecting LAN connection.&lt;/div&gt;&lt;div&gt;It is not necessarily use &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;eth0&lt;/span&gt; to be connected to Internet. It depends on your Internet connection. It could be &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;wlan0, ppp0&lt;/span&gt; etc. This also useful for connecting two different networks.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Assume that your machine will be used as a gateway. This guide will be based on the figure below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_0fWkPCI8kOo/S25waBY8c6I/AAAAAAAAADw/IdWgubrd8HQ/s1600-h/nat.jpeg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 213px; height: 320px;" src="http://1.bp.blogspot.com/_0fWkPCI8kOo/S25waBY8c6I/AAAAAAAAADw/IdWgubrd8HQ/s320/nat.jpeg" border="0" alt="" id="BLOGGER_PHOTO_ID_5435405392634737570" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;IP address Configuration&lt;/b&gt;&lt;div&gt;In this guide, IP address for each host in LAN need to be configured manually, unless DHCP server is installed. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;DNS Server and Gateway&lt;/b&gt;&lt;/div&gt;&lt;div&gt;All  hosts in LANneed to have same DNS server as your machine has and add the IP address of your machine as a gateway in LAN hosts, so that the IP packets will be route to the Internet through your machine.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Configuration of &lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;'Gateway' machine&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Step 1: Find DNS server on your machine&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ cat /etc/resolv.conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;The output will be like this&lt;/div&gt;&lt;div&gt;# Generated by NetworkManager&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;nameserver 10.1.2.21&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;nameserver 10.0.0.92&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 2: Enable IP forwarding&lt;/div&gt;&lt;div&gt;First, check the default value. There are two ways. &lt;/div&gt;&lt;div&gt;Note: &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;0&lt;/span&gt; means it is disabled&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. using sysctl command.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'courier new';"&gt;$ sysctl net.ipv4.ip_forward&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'courier new';"&gt;net.ipv4.ip_forward = 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2.&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;/span&gt; cat the file &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;/proc/sys/net/ipv4/ip_forward&lt;span class="Apple-style-span"  style="font-family:Georgia,serif;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ cat /proc/sys/net/ipv4/ip_forward&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Second, change the value temporarily, so that, it will reset to &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;0&lt;/span&gt; when you have shutting down the machine.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo  sysctl -w net.ipv4.ip_forward=1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Try  to check again to see the changed value.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To permanently enable the IP forwarding, you need to edit sysctl configuration file. Use any familiar text editor such as nano, vi and gedit.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo gedit /etc/sysctl.conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Find these two lines, and uncomment the second line (remove the &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;#&lt;/span&gt; symbol)&lt;/div&gt;&lt;div&gt;Before:&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;# Uncomment the next line to enable packet forwarding for IPv4&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;#net.ipv4.ip_forward=1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After:&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;# Uncomment the next line to enable packet forwarding for IPv4&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;net.ipv4.ip_forward=1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;or simply edit using this command:&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo sed -i 's/#net.ipv4.ip_forward/net.ipv4.ip_forward/g' /etc/sysctl.conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then update the change made.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo sysctl -p /etc/sysctl.conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 3: Configure NAT on IP tables&lt;/div&gt;&lt;div&gt;iptables is very useful for maintain tables of IPv4 packet filtering in linux kernel. It has lots of chain rule. For performing NAT we have the command above (see manual for details):&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;-t&lt;/span&gt;  nat, an option of IP table to perform NAT at each packet matching. &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;-A&lt;/span&gt; &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;POSTROUTING&lt;/span&gt;. The &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;–A&lt;/span&gt; is used for append chain rule of &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;–t&lt;/span&gt; and we use &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;POSTROUTING&lt;/span&gt; for altering packets as they are about to go out.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;-s&lt;/span&gt; indicates as source address from where the IP packet can route through the NAT. it should be followed by IP address along with the netmask. In this command it shows and IP address of &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;192.168.1.0&lt;/span&gt; with subnet mask &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;255.255.255.0&lt;/span&gt;, which need to be written as &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;192.168.1.0/24&lt;/span&gt;. This IP will be used in LAN from &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;192.168.1.1 - 192.168.1.254&lt;/span&gt;. Your machine can use &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;192.168.1.1&lt;/span&gt; for eth0 interface. (Google IP and subnet mask tutorial)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;-o&lt;/span&gt; is used for name of an interface via which a packet is going to be sent (&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;POSTROUTING&lt;/span&gt;). In this example, we used &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;eth0&lt;/span&gt; since it is the only interface that can be connected to internet.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;-j&lt;/span&gt; should be followed by target extension. In this option we choose &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;MASQUERADE&lt;/span&gt;. This target is only valid in the NAT table, in the &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;POSTROUTING&lt;/span&gt; chain. Masquerading is equivalent to specifying a mapping to the IP address of the interface the packet is going out.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now, restart your network service (not necessary)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo /etc/init.d/networking restart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We are done configuring IP forwarding, NAT and gateway on your machines. The next step is configuring IP address on LAN hosts.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Configuration of Hosts in LAN&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Enter IP address to the hosts in range &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;192.168.1.2 - 192.168.1.254&lt;span class="Apple-style-span"  style="font-family:Georgia,serif;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;in the gateway field, put the IP address of 'gateway' machine, which is &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;192.168.1.1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;Then, restart the network for linux host. Note that the configuration will be the same for Windows hosts.&lt;br /&gt;Done.&lt;br /&gt;&lt;br /&gt;Check internet connection for the hosts in LAN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Hope this will help you. Enjoy!&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia,serif;"&gt;References:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.debian-administration.org/article/Setting_up_a_simple_Debian_gateway"&gt;http://www.debian-administration.org/article/Setting_up_a_simple_Debian_gateway&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://myhowtosandprojects.blogspot.com/2009/01/sharing-internet-on-linux.html"&gt;http://myhowtosandprojects.blogspot.com/2009/01/sharing-internet-on-linux.html&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-3161926852250841708?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/3161926852250841708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/01/setting-up-gateway-in-ubuntu.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/3161926852250841708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/3161926852250841708'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2010/01/setting-up-gateway-in-ubuntu.html' title='Setting Up Gateway in Ubuntu'/><author><name>Mohd Hafiz</name><uri>http://www.blogger.com/profile/12524422833236956908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0fWkPCI8kOo/S2LWHQY0UmI/AAAAAAAAACQ/FF4QjJ097wk/S220/leaf.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_0fWkPCI8kOo/S25waBY8c6I/AAAAAAAAADw/IdWgubrd8HQ/s72-c/nat.jpeg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-5067982180619611581</id><published>2009-12-16T21:52:00.002+08:00</published><updated>2010-03-05T20:37:58.616+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Share Folder on Ubuntu</title><content type='html'>&lt;div&gt;Hi, I like google, so i wanna share things i got from google. It teach me a lots. But actually, our proposal still not completely done yet. We need to find more about the tools used, MySQL cluster stuff etc.&lt;/div&gt;&lt;div&gt;Now, let's see how to share directory in ubuntu and other Linux distributions.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It is very useful to share things over network. Computer users usually share their directories inside their LAN, containing files such as documents, audio files, or movies. This post will simply make your directory shared over network to Linux and Windows client. The famous Linux program used is &lt;a href="http://www.samba.org/"&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;samba&lt;/span&gt;&lt;/a&gt; (ask google please). I'm currently using Karmic Koala (9.10) so the default setting might be somewhat different from other versions.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Samba Server&lt;/b&gt;&lt;/div&gt;&lt;div&gt;There are two ways, graphical and command line interface. We will focus on CLI.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 1: install samba&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo apt-get install samba&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 2: configure samba file &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;/etc/samba/smb.conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Make sure backup the original file&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then use any editor such as gedit, nano, etc.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo gedit /etc/samba/smb.conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First, check these following lines are correctly in default&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;workgroup = WORKGROUP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;server string = %h server (Samba, Ubuntu)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note: the &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;%h&lt;/span&gt; will show your hostname. So, put anything you want as the server name.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you want to share your home directory, remove the semicolon on each of this line&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;;[homes]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;; comment = Home Directories&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;; browseable = no&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You also can share any directory you want by creating your own entry, but make sure the directory exists. For example, you might want to share your 'video' directory on path &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;/home/user1/video, so you need to add these lines&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;[my_videos]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;comment = video&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;path = /home/user1/video&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;read only = yes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;guest ok = yes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;browseable = yes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Some explanations on this entry.&lt;/div&gt;&lt;div&gt;The bracket &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;[..]&lt;/span&gt; is used to rename the shared directory&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;comment&lt;/span&gt; is just some note&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;path is the&lt;/span&gt; location of the share directory&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;read only&lt;/span&gt;, to disallow from being written&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;guest ok&lt;/span&gt;, allow 'guest' user to be connected without password&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For example, Linux client can be connected by &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;smbclient&lt;/span&gt; command with &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;-U&lt;/span&gt; option which indicate as user. (will be explained in Linux and Windows Client section)&lt;/div&gt;&lt;div&gt;browseable, allow other users in network to see your shared directory&lt;/div&gt;&lt;div&gt;Some Tips:&lt;/div&gt;&lt;div&gt;Run this command inside share directory to make all directories, sub-directories and files are in read-only permission&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For directory, (&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;drwxr-xr-x&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ find . -type d -exec chmod 755 {} \;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For files, (&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;-rwr—r--&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ find . -type d -exec chmod 644 {} \;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Linux client&lt;/b&gt;&lt;/div&gt;&lt;div&gt;For Linux client to connect to the shared directory, just go to nautilus and simply use the IP address or the hostname. Then you will see the shared directory.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Make sure you have installed smbclient package.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ sudo apt-get install smbclient&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then, type the samba server IP address on nautilus location bar as follow:&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;smb://ip_address&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;smb://hostname&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Also can be opened from web browser, but the appearance will be same like ftp&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Client also can connect thorugh command line.&lt;/div&gt;&lt;div&gt;To list files shared directory as user 'guest'. The user should be exist&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ smbclient -L //192.168.56.1 -U guest&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Direcly connect (almost similar to ftp)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ smbclient //server/shared_directory -U user&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Example,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ smbclient //192.168.56.101/ shared_directory -U guest&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;Enter guest's password:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.0]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;smb: \&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;For Windows client&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Start -&gt; Run&lt;/div&gt;&lt;div&gt;Then type the IP address or hostname, also can be connected through windows explorer (same as nautilus).&lt;/div&gt;&lt;div&gt;It also can be opened from browser by entering server ip address&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;\\ip_address&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hope this will help you. Enjoy!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;References:&lt;/div&gt;&lt;div&gt;&lt;a href="https://help.ubuntu.com/community/SettingUpSamba"&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;https://help.ubuntu.com/community/SettingUpSamba&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=76647&amp;amp;page=1"&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;http://ubuntuforums.org/showthread.php?t=76647&amp;amp;page=1&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-5067982180619611581?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/5067982180619611581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2009/12/share-folder-on-ubuntu_16.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/5067982180619611581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/5067982180619611581'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2009/12/share-folder-on-ubuntu_16.html' title='Share Folder on Ubuntu'/><author><name>Mohd Hafiz</name><uri>http://www.blogger.com/profile/12524422833236956908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_0fWkPCI8kOo/S2LWHQY0UmI/AAAAAAAAACQ/FF4QjJ097wk/S220/leaf.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6685574557496442492.post-4456605721334521373</id><published>2009-11-24T23:27:00.000+08:00</published><updated>2010-01-29T18:01:25.361+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Memcached'/><category scheme='http://www.blogger.com/atom/ns#' term='Project'/><title type='text'>Welcome!</title><content type='html'>Hello, everybody!&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;My name is Khairina. I am one of this blog author other than Hafiz, my friend. In this blog, we intended to share our interest on various things related to Linux and open-source and we hope later we are able to provide solutions to all your problems :-) &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We are currently running on a project for our university final year project (FYP) therefore as for the beginning of this blog, we will update all progress of our project at least in weekly basis. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As for today, we have just finished our proposal that is to be submitted  for approval. This project will focused on &lt;i&gt;"memcached". &lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6685574557496442492-4456605721334521373?l=hafiz-khairina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hafiz-khairina.blogspot.com/feeds/4456605721334521373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hafiz-khairina.blogspot.com/2009/11/welcome-to-two-geeks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/4456605721334521373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6685574557496442492/posts/default/4456605721334521373'/><link rel='alternate' type='text/html' href='http://hafiz-khairina.blogspot.com/2009/11/welcome-to-two-geeks.html' title='Welcome!'/><author><name>Khairina</name><uri>http://www.blogger.com/profile/02429580908692830802</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_N-QfXWnNkOc/R_kDa2lxU1I/AAAAAAAAAAM/3vdE0hHODQY/S220/setar.jpg'/></author><thr:total>0</thr:total></entry></feed>
