<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Andoy lang&#039;s Blog</title>
	<atom:link href="http://andoylang.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://andoylang.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Wed, 18 Jan 2012 08:15:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='andoylang.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Andoy lang&#039;s Blog</title>
		<link>http://andoylang.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://andoylang.wordpress.com/osd.xml" title="Andoy lang&#039;s Blog" />
	<atom:link rel='hub' href='http://andoylang.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Alfresco &#8211; Desktop Action</title>
		<link>http://andoylang.wordpress.com/2010/10/07/alfresco-desktop-action/</link>
		<comments>http://andoylang.wordpress.com/2010/10/07/alfresco-desktop-action/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 13:55:02 +0000</pubDate>
		<dc:creator>andoylang</dc:creator>
				<category><![CDATA[Content Management System]]></category>

		<guid isPermaLink="false">http://andoylang.wordpress.com/?p=162</guid>
		<description><![CDATA[How&#8217;s your Alfresco doing? In my case, we&#8217;re going for implementation after weeks of testing and some modifications. Well, I don&#8217;t want to see those CheckIn/Checout in every folder (and my user&#8217;s agree with me).  My users keeps asking me about it (wishper: I changed the File Server for some users without their knowledge for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=162&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How&#8217;s your Alfresco doing?</p>
<p>In my case, we&#8217;re going for implementation after weeks of testing and some modifications.</p>
<p>Well, I don&#8217;t want to see those CheckIn/Checout in every folder (<em>and my user&#8217;s agree with me</em>).  My users keeps asking me about it (wishper<em>: I changed the File Server for some users without their knowledge for testing.  Don&#8217;t do this or your head will ROLL!</em>).  For them Alfresco is like the same Windows File Server.  I like it that way for simplicity and I will introduce more functionality when we role out the entire Alfresco system.</p>
<p>NOTE:  To disable the feature, you have to put a comment on each property.</p>
<blockquote><p>&lt;&#8211; Enclosed in this arrow are comments<br />
&#8211;&gt;</p></blockquote>
<p>1st &#8211; I want to change the Alfresco name into my company name.</p>
<p>Crate a file /opt/alfresco/tomcat/shared/classes/alfresco/extension/webclient_en_US.properties and put your company name</p>
<blockquote><p># cd /opt/alfresco/tomcat/shared/classes/alfresco/extension/<br />
# vi webclient_en_US.properties</p></blockquote>
<p>and put</p>
<blockquote><p>company_home=Your Company Name</p>
<p>&nbsp;</p></blockquote>
<p>2nd &#8211; disable the URLFileName and the Desktop actions.  These are the extra files that you see in every folder and everytime you create a folder.  For me I don&#8217;t see them helping my users to deal with their files/folder.</p>
<p>Edit the /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/fileServers/default/file-servers-context.xml</p>
<blockquote><p># cd /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/fileServers/default<br />
# vi file-servers-context.xml</p></blockquote>
<p>Look for the following and comment it like below</p>
<blockquote><p>&lt;!&#8211; Add a URL file to each folder that links back to the web client &#8211;&gt;<br />
&lt;!&#8211;<br />
&lt;property name=&#8221;URLFileName&#8221;&gt;<br />
&lt;value&gt;__Alfresco.url&lt;/value&gt;<br />
&lt;/property&gt;<br />
&#8211;&gt;</p></blockquote>
<p>and for Desktop Actions</p>
<blockquote><p>&lt;!&#8211;<br />
&lt;bean&gt;<br />
&lt;property name=&#8221;name&#8221;&gt;<br />
&lt;value&gt;CheckInOut&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;property name=&#8221;filename&#8221;&gt;<br />
&lt;value&gt;__CheckInOut.exe&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;/bean&gt;<br />
&lt;bean&gt;<br />
&lt;property name=&#8221;name&#8221;&gt;<br />
&lt;value&gt;JavaScriptURL&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;property name=&#8221;filename&#8221;&gt;<br />
&lt;value&gt;__ShowDetails.exe&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;property name=&#8221;scriptName&#8221;&gt;<br />
&lt;value&gt;alfresco/desktop/showDetails.js&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;/property&gt;<br />
&lt;property name=&#8221;attributeList&#8221;&gt;<br />
&lt;value&gt;anyFiles&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;property name=&#8221;preprocess&#8221;&gt;<br />
&lt;value&gt;copyToTarget&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;/bean&gt;<br />
&#8211;&gt;</p></blockquote>
<p>Restart your Alfresco and check your alfresco in windows file explorer.</p>
<p>How was it?  Now, it&#8217;s just like the old Windows File Server right?!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andoylang.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andoylang.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andoylang.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andoylang.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/andoylang.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/andoylang.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/andoylang.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/andoylang.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andoylang.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andoylang.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andoylang.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andoylang.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andoylang.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andoylang.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=162&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://andoylang.wordpress.com/2010/10/07/alfresco-desktop-action/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25079fa14d714b5a0c6bb5441a17b116?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andoylang</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Apache and PHP</title>
		<link>http://andoylang.wordpress.com/2010/09/09/installing-apache-and-php/</link>
		<comments>http://andoylang.wordpress.com/2010/09/09/installing-apache-and-php/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 12:19:31 +0000</pubDate>
		<dc:creator>andoylang</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://andoylang.wordpress.com/?p=157</guid>
		<description><![CDATA[Have you installed a database server and wish you could have installed a web server and php on it to so that you can create your own script to manage the database? Unfortunately, I came across that situation. Installing new daemon/server into Linux is an easy task and you don&#8217;t have to restart your server.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=157&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have you installed a database server and wish you could have installed a web server and php on it to so that you can create your own script to manage the database?</p>
<p>Unfortunately, I came across that situation.</p>
<p>Installing new daemon/server into Linux is an easy task and you don&#8217;t have to restart your server.  This is a good news for you, that means no downtime for database server.</p>
<p>Let&#8217;s start with the installation.</p>
<p>1.  Install the Apache Server &#8211; Linux server will download some files to be installed and after installing the Apache server, apt-get will start it for you.</p>
<blockquote><p># apt-get install apache2</p></blockquote>
<p>Now, you have a running web server.  To test your server:</p>
<ul>
<li>Apache &#8211; type into your URL &#8220;http://&lt;Apache.Server.IP.Address&gt;&#8221; and you should have</li>
</ul>
<blockquote><p><a href="http://andoylang.files.wordpress.com/2010/09/itworks.jpg"><img title="itworks" src="http://andoylang.files.wordpress.com/2010/09/itworks.jpg?w=300&#038;h=96" alt="" width="300" height="96" /></a></p></blockquote>
<p>2.  Install PHP5 &#8211; Linux server will download all files needed to install PHP5 into your server then apt-get will restart the web server for you.</p>
<blockquote><p># apt-get install php5</p></blockquote>
<p>If web server is not restarted, don&#8217;t worry about it for now coz, we have to install the PHP5 module for your web server.</p>
<p>3.  Install PHP5 module for Apache</p>
<blockquote><p># apt-get install libapache2-mod-php5</p></blockquote>
<p>If your web server was not restarted, you have to restart it manually.</p>
<blockquote><p># /etc/init.d/apache2 restart</p></blockquote>
<p>To test PHP5, create info.php to view the PHP5 configuration.</p>
<blockquote><p>&lt;?php<br />
phpinfo();<br />
?&gt;</p></blockquote>
<p>Check PHP5 configuration in your browser, type in &#8220;http://&lt;Apache.Server.IP.Address&gt;/info.php&#8221; and you should see the PHP5 configuration.</p>
<p>And&#8230; You&#8217;re done!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andoylang.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andoylang.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andoylang.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andoylang.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/andoylang.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/andoylang.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/andoylang.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/andoylang.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andoylang.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andoylang.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andoylang.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andoylang.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andoylang.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andoylang.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=157&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://andoylang.wordpress.com/2010/09/09/installing-apache-and-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25079fa14d714b5a0c6bb5441a17b116?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andoylang</media:title>
		</media:content>

		<media:content url="http://andoylang.files.wordpress.com/2010/09/itworks.jpg?w=300" medium="image">
			<media:title type="html">itworks</media:title>
		</media:content>
	</item>
		<item>
		<title>Mounting nfs share on boot</title>
		<link>http://andoylang.wordpress.com/2010/07/26/mounting-nfs-share-on-boot/</link>
		<comments>http://andoylang.wordpress.com/2010/07/26/mounting-nfs-share-on-boot/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 13:42:51 +0000</pubDate>
		<dc:creator>andoylang</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://andoylang.wordpress.com/?p=126</guid>
		<description><![CDATA[Have you encountered that your mounted nfs folder disappeared after the server reboot (for whatever reason)? Very frustrating huh?! I will show you how to mount and will not lose the connection. Let&#8217;s check what are the shared folder exported from our NFS server. # showmount -e &#60;nfs.server.ip.address&#62; The program &#8216;showmount&#8217; is currently not installed.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=126&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have you encountered that your mounted nfs folder disappeared after the server reboot (for whatever reason)?</p>
<p>Very frustrating huh?!</p>
<p>I will show you how to mount and will not lose the connection.</p>
<p>Let&#8217;s check what are the shared folder exported from our NFS server.</p>
<blockquote><p># showmount -e &lt;nfs.server.ip.address&gt;<br />
The program &#8216;showmount&#8217; is currently not installed.  You can install it by typing:<br />
apt-get install nfs-common<br />
showmount: command not found</p></blockquote>
<p>Arg!!! showmount is not installed.  Have to install it first using apt-get.</p>
<blockquote><p># apt-get install nfs-common</p></blockquote>
<p>Now we can view the shared folder from our NFS server.</p>
<blockquote><p># showmount -e &lt;nfs.server.ip.address&gt;<br />
Export list for &lt;nfs.server.ip.address&gt;:<br />
/mnt/&lt;shared_folder&gt; &lt;nfs.server.ip.address&gt;/255.255.255.0</p></blockquote>
<p>Let&#8217;s try to mount it to test if we will not encounter any problem in mounting the shared folder.</p>
<blockquote><p># mount &lt;nfs.server.ip.address&gt;:/mnt/&lt;shared_folder&gt; /home/&lt;user&gt;/&lt;new_folder&gt;</p></blockquote>
<p>We can check the newly mounted share using df.</p>
<blockquote><p># df -k<br />
Filesystem           1K-blocks      Used Available Use% Mounted on<br />
/dev/sda3             48425796   3339580  42626264   8% /<br />
udev                    509032       248    508784   1% /dev<br />
none                    509032         0    509032   0% /dev/shm<br />
none                    509032       112    508920   1% /var/run<br />
none                    509032         0    509032   0% /var/lock<br />
none                    509032         0    509032   0% /lib/init/rw<br />
&lt;raid.server.ip.address&gt;:/mnt/&lt;shared.folder&gt; 511900416 139367936 346531840  29% /home/&lt;user&gt;/&lt;new_folder&gt;</p></blockquote>
<p>Neat! It was mounted without any problem.</p>
<p>Mounting it without losing it on boot is not that hard.  We have to edit the /etc/fstab</p>
<blockquote><p># vi /etc/fstab</p></blockquote>
<p>Add this line at the bottom the details that you saw when you viewed the shared folder from our NFS server (see above).</p>
<blockquote><p>&lt;raid.server.ip.address&gt;:/mnt/&lt;shared.folder&gt;       /home/&lt;user&gt;/&lt;new_folder&gt;       nfs     rw  0       0</p></blockquote>
<p>Reboot the server and watch the magic as it happens.</p>
<p>Check the mounted shared folder using df.</p>
<p>Neat!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andoylang.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andoylang.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andoylang.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andoylang.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/andoylang.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/andoylang.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/andoylang.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/andoylang.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andoylang.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andoylang.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andoylang.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andoylang.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andoylang.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andoylang.wordpress.com/126/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=126&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://andoylang.wordpress.com/2010/07/26/mounting-nfs-share-on-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25079fa14d714b5a0c6bb5441a17b116?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andoylang</media:title>
		</media:content>
	</item>
		<item>
		<title>Add Alfresco on bootup</title>
		<link>http://andoylang.wordpress.com/2010/07/25/add-alfresco-iptables-on-bootup/</link>
		<comments>http://andoylang.wordpress.com/2010/07/25/add-alfresco-iptables-on-bootup/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 06:49:26 +0000</pubDate>
		<dc:creator>andoylang</dc:creator>
				<category><![CDATA[Content Management System]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://andoylang.wordpress.com/?p=111</guid>
		<description><![CDATA[Ola amigos y amigas Just finished everything from Alfresco with CIFS a few days ago.  I have to test everything from start to simulate all the changes that I made is working properly. Reboot the server. Check the Alfresco in my browser.  It&#8217;s not working, expected result. But, I want my Alfresco to start at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=111&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ola amigos y amigas</p>
<p>Just finished everything from Alfresco with CIFS a few days ago.  I have to test everything from start to simulate all the changes that I made is working properly.</p>
<p>Reboot the server.</p>
<p>Check the Alfresco in my browser.  It&#8217;s not working, expected result.</p>
<p>But, I want my Alfresco to start at boot so that I don&#8217;t have to manually start it everytime I boot my server.</p>
<p>Let&#8217;s see&#8230;</p>
<p>I need to add alfresco script to start-up application.</p>
<blockquote><p># cd /opt/alfresco/33G<br />
# update-rc.d alfresco.sh defaults<br />
update-rc.d: warning: /etc/init.d/alfresco.sh missing LSB information<br />
update-rc.d: see &lt;http://wiki.debian.org/LSBInitScripts&gt;<br />
Adding system startup for /etc/init.d/alfresco.sh &#8230;<br />
/etc/rc0.d/K20alfresco.sh -&gt; ../init.d/alfresco.sh<br />
/etc/rc1.d/K20alfresco.sh -&gt; ../init.d/alfresco.sh<br />
/etc/rc6.d/K20alfresco.sh -&gt; ../init.d/alfresco.sh<br />
/etc/rc2.d/S20alfresco.sh -&gt; ../init.d/alfresco.sh<br />
/etc/rc3.d/S20alfresco.sh -&gt; ../init.d/alfresco.sh<br />
/etc/rc4.d/S20alfresco.sh -&gt; ../init.d/alfresco.sh<br />
/etc/rc5.d/S20alfresco.sh -&gt; ../init.d/alfresco.sh<br />
#</p></blockquote>
<p>Reboot the machine again.  Now, Alfresco started.  Nice!</p>
<p>Tried Alfresco in Windows Explorer.  No dice.</p>
<p>Just remembered that I have to run the iptables again.  Argg!</p>
<p>I need to create the iptables script and execute it on boot like alfresco script.</p>
<blockquote><p># cd /etc/init.d<br />
# vi alfresco.iptables</p></blockquote>
<p>Put in the iptables commands</p>
<blockquote><p>#!/bin/bash<br />
# Flash all IPTables rule<br />
iptables -F<br />
iptables -t nat -F</p>
<p># Accept all INPUT, Forward and Output<br />
iptables -P INPUT ACCEPT<br />
iptables -P FORWARD ACCEPT<br />
iptables -P OUTPUT ACCEPT</p>
<p># IPTables forwarding samba port to Alfresco<br />
iptables -A INPUT -p udp -m state &#8211;state NEW &#8211;dport 137 -j ACCEPT<br />
iptables -A INPUT -p udp -m state &#8211;state NEW &#8211;dport 138 -j ACCEPT<br />
iptables -A INPUT -p tcp -m state &#8211;state NEW &#8211;dport 139 -j ACCEPT<br />
iptables -A INPUT -p tcp -m state &#8211;state NEW &#8211;dport 445 -j ACCEPT</p>
<p>#IPTables for Alfresco<br />
iptables -t nat -A PREROUTING -p udp &#8211;dport 137 -j REDIRECT &#8211;to-ports 1137<br />
iptables -t nat -A PREROUTING -p udp &#8211;dport 138 -j REDIRECT &#8211;to-ports 1138<br />
iptables -t nat -A PREROUTING -p tcp &#8211;dport 139 -j REDIRECT &#8211;to-ports 1139<br />
iptables -t nat -A PREROUTING -p tcp &#8211;dport 445 -j REDIRECT &#8211;to-ports 1445</p></blockquote>
<p>Make it executable and run update-rc.d again.</p>
<blockquote><p># chmod 755 alfresco.iptables<br />
# update-rc.d alfresco.iptables defaults<br />
update-rc.d: warning: /etc/init.d/alfresco.iptables missing LSB information<br />
update-rc.d: see &lt;http://wiki.debian.org/LSBInitScripts&gt;<br />
Adding system startup for /etc/init.d/alfresco.iptables &#8230;<br />
/etc/rc0.d/K20alfresco.sh -&gt; ../init.d/alfresco.iptables<br />
/etc/rc1.d/K20alfresco.sh -&gt; ../init.d/alfresco.iptables<br />
/etc/rc6.d/K20alfresco.sh -&gt; ../init.d/alfresco.iptables<br />
/etc/rc2.d/S20alfresco.sh -&gt; ../init.d/alfresco.iptables<br />
/etc/rc3.d/S20alfresco.sh -&gt; ../init.d/alfresco.iptables<br />
/etc/rc4.d/S20alfresco.sh -&gt; ../init.d/alfresco.iptables<br />
/etc/rc5.d/S20alfresco.sh -&gt; ../init.d/alfresco.iptables<br />
#</p></blockquote>
<p>Reboot Alfresco Server again.</p>
<p>Test Alfresco.</p>
<p>Isn&#8217;t it nice when your application runs perfectyly <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andoylang.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andoylang.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andoylang.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andoylang.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/andoylang.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/andoylang.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/andoylang.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/andoylang.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andoylang.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andoylang.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andoylang.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andoylang.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andoylang.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andoylang.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=111&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://andoylang.wordpress.com/2010/07/25/add-alfresco-iptables-on-bootup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25079fa14d714b5a0c6bb5441a17b116?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andoylang</media:title>
		</media:content>
	</item>
		<item>
		<title>Alfresco with CIFS</title>
		<link>http://andoylang.wordpress.com/2010/07/20/alfresco-with-cifs/</link>
		<comments>http://andoylang.wordpress.com/2010/07/20/alfresco-with-cifs/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 14:30:22 +0000</pubDate>
		<dc:creator>andoylang</dc:creator>
				<category><![CDATA[Content Management System]]></category>

		<guid isPermaLink="false">http://andoylang.wordpress.com/?p=96</guid>
		<description><![CDATA[After successfull configuration on Alfresco authenticating in Active Directory.  We will try the hardest part in Alfresco configuration. Alfresco with CIFS I tried configuring this for weeks now to no avail.  Search in Google, Yahoo, Bing, etc.  No luck still. Finally I hit a jackpot! Let me tell you how I did it. I only [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=96&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After successfull configuration on Alfresco authenticating in Active Directory.  We will try the hardest part in Alfresco configuration.</p>
<p>Alfresco with CIFS</p>
<p>I tried configuring this for weeks now to no avail.  Search in Google, Yahoo, Bing, etc.  No luck still.</p>
<p>Finally I hit a jackpot!</p>
<p>Let me tell you how I did it.</p>
<p>I only edit the /opt/alfresco/tomcat/shared/classes/alfresco-global.properties and didn&#8217;t touch any file other than this.  Remember to put your configuration at the end of the file.</p>
<p>Authentication chain should be alfrescoNtlm, passthru and ldap.</p>
<blockquote><p>authentication.chain=alfrescoNtlm1:alfrescoNtlm,passthru1:passthru,ldap1:ldap</p></blockquote>
<p>why 3?</p>
<p>Based on <a title="Alfresco Wiki" href="http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems#Example_1:_Advanced_AD_Chain" target="_blank">Alfresco Wiki</a> &#8211; ldap can synchronize with Active Directory (<a href="http://andoylang.wordpress.com/2010/07/18/alfresco-with-active-directory/" target="_blank">which is what we did in previous blog</a>) while passthru can do authentication for CIFS.  Read carefully the Note, it will save you a head ache.</p>
<p>Alfresco NTLM, passthru and ldap configuration for CIFS</p>
<blockquote><p>ntlm.authentication.sso.enabled=false<br />
ntlm.authentication.authenticateCIFS=false<br />
alfresco.authentication.authenticateCIFS=false<br />
alfresco.authentication.allowGuestLogin=false<br />
passthru.authentication.sso.enabled=false<br />
passthru.authentication.authenticateCIFS=true<br />
ldap.authentication.active=false<br />
ldap.synchronization.active=true</p></blockquote>
<p>Authentication domain can be left blank while the authentication server</p>
<blockquote><p>passthru.authentication.useLocalServer=false<br />
passthru.authentication.domain=<br />
passthru.authentication.servers=&lt;NetBIOS.DOMAIN&gt;\\&lt;Your.ActiveDirectory.IP.Address&gt;</p></blockquote>
<p>I don&#8217;t want unknown users to connect into my Alfresco server.</p>
<blockquote><p>ntlm.authentication.sso.enables=false<br />
ntlm.authentication.mapUnknownUserToGuest=false</p></blockquote>
<p>I don&#8217;t want to use FTP</p>
<blockquote><p>passthru.authentication.authenticateFTP=false</p></blockquote>
<p>Define the administrator accounts separated by coma.  In my case, I want my Administrator account.</p>
<blockquote><p>passthru.authentication.guestAccess=false<br />
passthru.authentication.defaultAdministratorUserNames=administrator<br />
passthru.authentication.connectTimeout=5000<br />
passthru.authentication.offlineCheckInterval=300<br />
passthru.authentication.protocolOrder=TCPIP,NETBIOS</p></blockquote>
<p>Ldap Synchronisation &#8211; have to define the authentication type and the authentication server url</p>
<blockquote><p>ldap.authentication.java.naming.security.authentication=simple<br />
ldap.authentication.userNameFormat=%s<br />
ldap.authentication.allowGuestLogin=false<br />
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory<br />
ldap.authentication.java.naming.provider.url=ldap://&lt;Your.ActiveDirectory.IP.Address&gt;:389<br />
ldap.authentication.escapeCommasInBind=false<br />
ldap.authentication.escapeCommasInUid=false</p></blockquote>
<p>We need to provide the Active Directory account with Administrator privileges to bind with Active Directory.</p>
<blockquote><p>ldap.synchronization.java.naming.security.principal=&lt;NetBIOS&gt;\\administrator<br />
ldap.synchronization.java.naming.security.credentials=&lt;Administrator.password&gt;<br />
ldap.synchronization.queryBatchSize=1000<br />
ldap.synchronization.groupDifferentialQuery=(&amp;(objectclass=nogroup)(!(modifyTimestamp&lt;\={0})))<br />
ldap.synchronization.personQuery=(&amp;(objectclass=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))<br />
ldap.synchronization.personDifferentialQuery=(&amp; (objectclass=user)(!(modifyTimestamp&lt;\={0})))<br />
ldap.synchronization.groupQuery=(objectclass\=group)</p></blockquote>
<p>Synchronization for group and user per domain.</p>
<blockquote><p>ldap.synchronization.groupSearchBase=cn\=users,dc=&lt;your.domain&gt;,dc=com<br />
ldap.synchronization.userSearchBase=cn\=users,dc=&lt;your.domain&gt;,dc=com</p></blockquote>
<p>The query that we want to pass to Active Directory</p>
<blockquote><p>ldap.synchronization.modifyTimestampAttributeName=modifyTimestamp<br />
ldap.synchronization.timestampFormat=yyyyMMddHHmmss&#8217;.0Z&#8217;<br />
ldap.synchronization.userIdAttributeName=sAMAccountName<br />
ldap.synchronization.userFirstNameAttributeName=givenName<br />
ldap.synchronization.userLastNameAttributeName=sn<br />
ldap.synchronization.userEmailAttributeName=mail<br />
ldap.synchronization.userOrganizationalIdAttributeName=msExchALObjectVersion<br />
ldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProvider<br />
ldap.synchronization.groupIdAttributeName=cn<br />
ldap.synchronization.groupType=Nogroup<br />
ldap.synchronization.personType=user<br />
ldap.synchronization.groupMemberAttributeName=member<br />
synchronization.synchronizeChangesOnly=true</p></blockquote>
<p>CIFS Configuration.</p>
<blockquote><p>cifs.disableNativeCode=false<br />
cifs.enabled=true<br />
cifs.serverName=&lt;Alfresco.server.name&gt;<br />
cifs.domain=&lt;NetBIOS.Domain&gt;<br />
cifs.hostannounce=true<br />
cifs.sessionTimeout=500<br />
cifs.ipv6.enabled=false<br />
cifs.tcpipSMB.port=1445<br />
cifs.netBIOSSMB.namePort=1137<br />
cifs.netBIOSSMB.datagramPort=1138<br />
cifs.netBIOSSMB.sessionPort=1139<br />
cifs.WINS.autoDetectEnabled=true</p></blockquote>
<p>Save and start Alfresco.</p>
<p>I&#8217;m accessing alfresco as alfresco_user.  That means I don&#8217;t have privilege to use SMB ports.  IPTables comes in handy.  (whisper:  I got this from Alfresco wiki <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<blockquote><p># iptables -F<br />
# iptables -t nat -F<br />
# iptables -P INPUT ACCEPT<br />
# iptables -P FORWARD ACCEPT<br />
# iptables -P OUTPUT ACCEPT<br />
# iptables -t nat -A PREROUTING -p tcp &#8211;dport 445 -j REDIRECT &#8211;to-ports 1445<br />
# iptables -t nat -A PREROUTING -p tcp &#8211;dport 139 -j REDIRECT &#8211;to-ports 1139<br />
# iptables -t nat -A PREROUTING -p udp &#8211;dport 137 -j REDIRECT &#8211;to-ports 1137<br />
# iptables -t nat -A PREROUTING -p udp &#8211;dport 138 -j REDIRECT &#8211;to-ports 1138</p></blockquote>
<p>In my case I opened three terminal, one is for Alfresco log monitoring in case there&#8217;s an error and second is to modify alfresco-global.properties and the third is to start/stop alfresco.</p>
<blockquote><p>alf_start.sh</p></blockquote>
<p>Neat eh!  No error.  We&#8217;ll try to connect to Alfresco from windows xp.</p>
<blockquote><p>ERROR [org.alfresco.fileserver] java.lang.IllegalArgumentException: NetworkFile does not implement NetworkFileStateInterface<br />
ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.server.filesys.cache.FileStateLockManager.lockFile(FileStateLockManager.java:147)<br />
ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.NTProtocolHandler.procLockingAndX(NTProtocolHandler.java:2104)<br />
ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:299)<br />
ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1366)<br />
ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1458)<br />
ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:105)<br />
ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:153)<br />
ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:619)</p></blockquote>
<p>What?!  Error again! (went to pantry and get a coffee)</p>
<p>Troubleshooting:</p>
<p>Checking the iptables rules</p>
<blockquote><p># iptables -t nat -L<br />
Chain PREROUTING (policy ACCEPT)<br />
target     prot opt source               destination<br />
REDIRECT   tcp  &#8211;  anywhere             anywhere            tcp dpt:microsoft-ds redir ports 1445<br />
REDIRECT   tcp  &#8211;  anywhere             anywhere            tcp dpt:netbios-ssn redir ports 1139<br />
REDIRECT   udp  &#8211;  anywhere             anywhere            udp dpt:netbios-ns redir ports 1137<br />
REDIRECT   udp  &#8211;  anywhere             anywhere            udp dpt:netbios-dgm redir ports 1138</p>
<p>Chain POSTROUTING (policy ACCEPT)<br />
target     prot opt source               destination</p>
<p>Chain OUTPUT (policy ACCEPT)<br />
target     prot opt source               destination</p></blockquote>
<p>Everything seems to be in order.</p>
<p>I will try connecting to the ports from my Linux box.</p>
<blockquote><p># smbclient -U andy \\\\&lt;Alfresco.server.IP.Address&gt;\\alfresco -p 1139<br />
Enter andy&#8217;s password:<br />
Domain=[&lt;NetBIOS.Domain&gt;] OS=[Java] Server=[Alfresco CIFS Server 5.1.0]<br />
smb: \&gt; ls<br />
.                                   D        0  Tue Jul 13 16:06:10 2010<br />
.                                   D        0  Tue Jul 13 16:06:10 2010<br />
__Alfresco.url                      R      134  Tue Jul 20 15:49:37 2010<br />
Data Dictionary                     D        0  Tue Jul 13 16:06:10 2010<br />
Guest Home                          D        0  Tue Jul 13 16:06:11 2010<br />
User Homes                          D        0  Tue Jul 13 16:06:11 2010<br />
Sites                               D        0  Tue Jul 13 16:06:26 2010<br />
Web Projects                        D        0  Tue Jul 13 16:06:52 2010<br />
Web Deployed                        D        0  Tue Jul 13 16:06:53 2010</p>
<p>40000 blocks of size 2097152. 36000 blocks available<br />
smb: \&gt;</p></blockquote>
<p>That&#8217;s good.  Linux box was able to connect to Alfresco.  Port forwarding is working perfectly.  But not Windows XP.  Why?! (Thinking&#8230; sipping coffee)</p>
<p>Wait.  I used port 1139 instead of 139, Windows is using port 139 and not 1139.  I&#8217;ll try it again, this time I will connect my Linux box to port 139.</p>
<blockquote><p># smbclient -U andy \\\\&lt;Alfresco.server.IP.Address&gt;\\alfresco -p 139<br />
Enter andy&#8217;s password:<br />
Connection to &lt;Alfresco.server.IP.Address&gt; failed (Error NT_STATUS_CONNECTION_REFUSED)</p></blockquote>
<p>BAM!  Error!  NT_STATUS_CONNECTION_REFUSED (Thinking&#8230; Pulling my hair)</p>
<p>That means port 139 is closed.  If it&#8217;s closed we need to open it.</p>
<blockquote><p># iptables -A INPUT -p udp -m state &#8211;state NEW &#8211;dport 137 -j ACCEPT<br />
# iptables -A INPUT -p udp -m state &#8211;state NEW &#8211;dport 138 -j ACCEPT<br />
# iptables -A INPUT -p tcp -m state &#8211;state NEW &#8211;dport 139 -j ACCEPT<br />
# iptables -A INPUT -p tcp -m state &#8211;state NEW &#8211;dport 445 -j ACCEPT</p></blockquote>
<p>IPTables above will accept new connection on ports 137, 138, 139 and 445 so that redirection will take effect otherwise, IPTables will drop the connection on the said ports.</p>
<p>Try again.  Test Alfresco from windows xp.</p>
<p>Good!  Good! no error.  I was able to connect.</p>
<p>Let&#8217;s try to copy file to Alfresco.</p>
<p>Neat!  Accepting ports in 137, 138, 139 and 445 solved the problem.</p>
<p>Ha! Ha! Ha!</p>
<p>Hope you&#8217;ll be happy like me <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andoylang.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andoylang.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andoylang.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andoylang.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/andoylang.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/andoylang.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/andoylang.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/andoylang.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andoylang.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andoylang.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andoylang.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andoylang.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andoylang.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andoylang.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=96&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://andoylang.wordpress.com/2010/07/20/alfresco-with-cifs/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25079fa14d714b5a0c6bb5441a17b116?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andoylang</media:title>
		</media:content>
	</item>
		<item>
		<title>Alfresco with Active Directory</title>
		<link>http://andoylang.wordpress.com/2010/07/18/alfresco-with-active-directory/</link>
		<comments>http://andoylang.wordpress.com/2010/07/18/alfresco-with-active-directory/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 14:07:23 +0000</pubDate>
		<dc:creator>andoylang</dc:creator>
				<category><![CDATA[Content Management System]]></category>

		<guid isPermaLink="false">http://andoylang.wordpress.com/?p=92</guid>
		<description><![CDATA[If you have not read my Basic Alfresco Installation read it now before going here. We will going to configure Alfresco to authenticate using Active Directory so that our Windows users can use Alfresco.  We will not have any Alfresco account. Alfresco&#8217;s configuration file is alfresco-global.properties, you can find it  in /opt/alfresco/tomcat/shared/classes.  Make sure to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=92&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you have not read my <a href="http://andoylang.wordpress.com/2010/07/15/alfresco-basic-installation/" target="_blank">Basic Alfresco Installation</a> read it now before going here.</p>
<p>We will going to configure Alfresco to authenticate using Active Directory so that our Windows users can use Alfresco.  We will not have any Alfresco account.</p>
<p>Alfresco&#8217;s configuration file is alfresco-global.properties, you can find it  in /opt/alfresco/tomcat/shared/classes.  Make sure to backup the original file, in case you mess up with it.</p>
<p>Basic configuration is already defined and we will add our configuration at the bottom of the file.</p>
<p>Authentication Chain will be passthru with ldap</p>
<blockquote><p>authentication.chain=passthru1:passthru,ldap1:ldap</p></blockquote>
<p>Passthru configuration.  I don&#8217;t want guest users to login into my Alfresco and access my files.</p>
<blockquote><p>passthru.authentication.sso.enabled=false<br />
passthru.authentication.allowGuestLogin=false</p></blockquote>
<p>Passthru authentication.  We are not going to use CIFS/Samba and FTP, thus we are going to disable it.</p>
<blockquote><p>passthru.authentication.authenticateCIFS=false<br />
passthru.authentication.authenticateFTP=false</p></blockquote>
<p>We have to define the Active Directory server where Alfresco users will be authenticated and define the Administrator account who&#8217;s going to configure our Alfresco.</p>
<blockquote><p>passthru.authentication.servers=&lt;<em>Your.AD.Server.IP.Address</em>&gt;<br />
passthru.authentication.domain=&lt;<em>Netbios Domain</em>&gt;<br />
passthru.authentication.useLocalServer=false<br />
passthru.authentication.defaultAdministratorUserNames=&lt;<em>Your.Active.Directory.Administrator.Account</em>&gt;<br />
passthru.authentication.connectTimeout=5000<br />
passthru.authentication.offlineCheckInterval=300<br />
passthru.authentication.protocolOrder=TCPIP,NETBIOS</p></blockquote>
<p>Ldap authentication configuration.  I don&#8217;t want an LDAP authentication rather I want a passthru authentication</p>
<blockquote><p>ldap.authentication.active=false<br />
ldap.authentication.java.naming.security.authentication=simple<br />
ldap.authentication.userNameFormat=%s<br />
ldap.authentication.allowGuestLogin=false<br />
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory<br />
ldap.authentication.java.naming.provider.url=ldap://&lt;Your.AD.Server.IP.Address&gt;:389<br />
ldap.authentication.escapeCommasInBind=false<br />
ldap.authentication.escapeCommasInUid=false</p></blockquote>
<p>Ldap Synchronization.  You have to define the user that has an administrative account in your Active Directory.  This account will login to your Active Directory Server to pull all your users.</p>
<blockquote><p>ldap.synchronization.active=true<br />
ldap.synchronization.java.naming.security.principal=&lt;Netbios Domain&gt;\\&lt;administrator.privilege.account&gt;<br />
ldap.synchronization.java.naming.security.credentials=&lt;administrator.privilege.account.password&gt;<br />
ldap.synchronization.queryBatchSize=1000<br />
ldap.synchronization.groupDifferentialQuery=(&amp;(objectclass=nogroup)(!(modifyTimestamp&lt;\={0})))<br />
ldap.synchronization.personQuery=(&amp;(objectclass=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))<br />
ldap.synchronization.personDifferentialQuery=(&amp; (objectclass=user)(!(modifyTimestamp&lt;\={0})))<br />
ldap.synchronization.groupQuery=(objectclass\=group)</p></blockquote>
<p>We are going to synchronize all users and groups from your Domain.</p>
<blockquote><p>ldap.synchronization.groupSearchBase=cn\=users,dc=&lt;company.domain&gt;,dc=com<br />
ldap.synchronization.userSearchBase=cn\=users,dc=&lt;company.domain&gt;,dc=com</p></blockquote>
<p>Other default ldap synchronization configuration</p>
<blockquote><p>ldap.synchronization.modifyTimestampAttributeName=modifyTimestamp<br />
ldap.synchronization.timestampFormat=yyyyMMddHHmmss&#8217;.0Z&#8217;<br />
ldap.synchronization.userIdAttributeName=sAMAccountName<br />
ldap.synchronization.userFirstNameAttributeName=givenName<br />
ldap.synchronization.userLastNameAttributeName=sn<br />
ldap.synchronization.userEmailAttributeName=mail<br />
ldap.synchronization.userOrganizationalIdAttributeName=msExchALObjectVersion<br />
ldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProvider<br />
ldap.synchronization.groupIdAttributeName=cn<br />
ldap.synchronization.groupType=Nogroup<br />
ldap.synchronization.personType=user<br />
ldap.synchronization.groupMemberAttributeName=member</p></blockquote>
<p>We want to synchronize the changes that we made from our Active Directory</p>
<blockquote><p>synchronization.synchronizeChangesOnly=true</p></blockquote>
<p>We are not going to use CIFS/Samba</p>
<blockquote><p>cifs.enabled=false</p></blockquote>
<p>Start your Alfresco and monitor your log.</p>
<blockquote><p>$ cd /opt/alfresco<br />
$ ./alf_start.sh<br />
$ tail -f alfresco.log</p></blockquote>
<p>Everything seems to be ok.</p>
<p>From your browser, type in your Alfresco server with port 8080</p>
<blockquote><p>http://&lt;Your.Alfresco.Server.IPAddress&gt;:8080/alfresco</p></blockquote>
<p>Login using your Active Directory account</p>
<p>while your Alfresco Share is</p>
<blockquote><p>http://&lt;Your.Alfresco.Server.IPAddress&gt;:8080/share</p></blockquote>
<p>Next time, I will configure Alfresco with CIFS/Samba.  I read that this is tough to configure.</p>
<p>Wish me luck!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andoylang.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andoylang.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andoylang.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andoylang.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/andoylang.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/andoylang.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/andoylang.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/andoylang.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andoylang.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andoylang.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andoylang.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andoylang.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andoylang.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andoylang.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=92&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://andoylang.wordpress.com/2010/07/18/alfresco-with-active-directory/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25079fa14d714b5a0c6bb5441a17b116?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andoylang</media:title>
		</media:content>
	</item>
		<item>
		<title>Alfresco basic installation</title>
		<link>http://andoylang.wordpress.com/2010/07/15/alfresco-basic-installation/</link>
		<comments>http://andoylang.wordpress.com/2010/07/15/alfresco-basic-installation/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 08:28:24 +0000</pubDate>
		<dc:creator>andoylang</dc:creator>
				<category><![CDATA[Content Management System]]></category>

		<guid isPermaLink="false">http://andoylang.wordpress.com/?p=62</guid>
		<description><![CDATA[What is Alfresco? From wikipedia: Alfresco is an enterprise content management system for Microsoft Windows and Unix-like operating systems. Alfresco comes in two flavours[2]. Alfresco Community Edition is free software, LGPL licensed open source and open standards. Alfresco Enterprise Edition is commercially &#38; proprietary licensed open source, open standards and enterprise scale. Its design is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=62&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What is Alfresco?</p>
<p>From <a href="http://en.wikipedia.org/wiki/Alfresco_%28software%29" target="_blank">wikipedia</a>:</p>
<blockquote><p>Alfresco is an enterprise content management system for Microsoft Windows and Unix-like operating systems. Alfresco comes in two flavours[2]. Alfresco Community Edition is free software, LGPL licensed open source and open standards. Alfresco Enterprise Edition is commercially &amp; proprietary licensed open source, open standards and enterprise scale. Its design is geared towards users who require a high degree of modularity and scalable performance.</p></blockquote>
<p>From <a href="http://www.samaxes.com/2006/05/exactly-what-is-alfresco/">Samaxes</a>:</p>
<blockquote><p>A lot of people still misunderstand the purpose of <a href="http://www.alfresco.org/">Alfresco</a>. Alfresco is not yet a full WCM (Web Content Management) like <a href="http://www.joomla.org/">Joomla</a> or <a href="http://drupal.org/">Drupal</a>, but an ECM (Enterprise Content Management).</p></blockquote>
<blockquote><p>Alfresco, at its core, is a general purpose content repository with content management services.  It can be used to manage all your business documents and transform them in web-ready formats (HTML, PDF) and categorize them linking into overall site navigation and index pages.</p></blockquote>
<p>Did he say, manage all your business documents and transform them into web-ready formats?  That&#8217;s what I&#8217;m looking for.</p>
<p>I&#8217;m going to install one for me to see what it really offers.</p>
<p>All installation must be done as root.  Otherwise you have to do a sudo  on each command.</p>
<blockquote><p># sudo su</p></blockquote>
<p>After installing your linux server for Alfresco.  You have to upgrade it.  I mean, you have to download and install all the fixes for your linux version.</p>
<blockquote><p># apt-get upgrade</p></blockquote>
<p>Install all the Alfresco pre-requisite</p>
<blockquote><p># apt-get install mysql-server sun-java6-jdk imagemagick swftools openoffice.org-core openoffice.org-java-common openoffice.org-writer openoffice.org-  impress openoffice.org-calc</p></blockquote>
<p>Add your JAVA_HOME settings in your System-wide environment viriables.  This will enable all users to use the JAVA environt when they login into the system.  Edit the environment file and add JAVA_HOME=&#8221;/usr/lib/jvm/java-6-sun/&#8221; at the end of the line</p>
<blockquote><p># vi /etc/environment</p></blockquote>
<p>To use the newly added environment variable, it&#8217;s either you have to logout and login again so that the JAVA environment variables will be added into your session or reload the System-wide environment.  I prefer to reload the environment variables without re-login.</p>
<blockquote><p># source /etc/environment</p></blockquote>
<p>After installing the pre-requisite applications now, Alfresco installation.</p>
<p>I prefer to install 3rd party application in /opt to separate the linux application from other application.  This helps me in managing and administration.</p>
<blockquote><p># makdir -p /opt/alfresco/33G</p></blockquote>
<p>Have to change the permission of the newly created folder for alfresco_user.</p>
<blockquote><p># chown -R alfresco_user:alfresco_user /opt/alfresco</p></blockquote>
<p>Download alfresco using alfresco_user</p>
<blockquote><p># exit<br />
$ cd ~<br />
$ mkdir download<br />
$ cd download<br />
$ wget http://dl.alfresco.com/release/community/build-2860/Alfresco-Community-3.3g-Linux-x86-Install?dl_file=release/community/build-2860/Alfresco-Community-3.3g-Linux-x86-Install</p></blockquote>
<p>Change Alfresco&#8217;s permission and Install</p>
<blockquote><p>$ chmod 744 Alfresco-Community-3.3g-Linux-x86-Install.bin<br />
$ ./Alfresco-Community-3.3g-Linux-x86-Install.bin</p></blockquote>
<p>Follow the installation procedure</p>
<p>After the installation, run alfresco for the first time.</p>
<blockquote><p>$ cd /opt/alfresco/33G<br />
$ ./alf_start.sh</p></blockquote>
<p>Check Alfresco log for error.</p>
<blockquote><p>$ tail -f alfresco.log</p></blockquote>
<p>Running good&#8230; good&#8230; Error! Error!</p>
<blockquote><p>ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 06130000 Failed to perfo  rm ImageMagick transformation:<br />
Execution result:<br />
os:         Linux<br />
command:    [/usr/local/bin/convert, /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_5931186726648279134.gif[0], /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_339515008452978855.png]<br />
succeeded:  false<br />
exit code:  1<br />
out:<br />
err:        Cannot run program &#8220;/usr/local/bin/convert&#8221;: java.io.IOException: error=2, No such file or directory<br />
16:06:05,588 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker] Failed to start a runtime executable content transformer:<br />
Execution result:<br />
os:         Linux<br />
command:    [/opt/alfresco/bin/pdf2swf, -V]<br />
succeeded:  false<br />
exit code:  1<br />
out:<br />
err:        Cannot run program &#8220;/opt/alfresco/bin/pdf2swf&#8221;: java.io.IOException: error=2, No such file or directory</p></blockquote>
<p>The error is &#8220;Cannot run program /usr/local/bin/convert&#8221;.  Checking if the file really exist, Alfresco&#8217;s right.  There&#8217;s no convert in /usr/local/bin.</p>
<p>We have to find (It&#8217;s better if we find the missing file as root) those applications and fix it according to Alfresco&#8217;s configuration.  First problem is convert.</p>
<blockquote><p>$ sudo find / -name convert -print</p></blockquote>
<p>Found it!  It&#8217;s in /usr/bin and not in /usr/local/bin, as per Alfresco&#8217;s configuration.</p>
<blockquote><p>/usr/bin/convert<br />
/usr/local/bin/convert</p></blockquote>
<p>We will going to fix it by creating a link from /usr/bin to /usr/local/bin so that Alfresco can detect it.</p>
<blockquote><p>$ sudo ln -s /usr/bin/convert /usr/local/bin/convert</p></blockquote>
<p>Do the same for converter and pdf2swf</p>
<p>Restart Alfresco and check for error</p>
<blockquote><p>$ cd /opt/alfresco/33G<br />
$ ./alf_stop.sh<br />
$ ./alf_start.sh<br />
$ tail -f alfresco.log</p></blockquote>
<p>Looks good eh!  Seeing Alfresco started without error.</p>
<p>Wait! Wait!  I saw some warning on JVM.</p>
<blockquote><p>18:11:31,144 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM &#8211; v1.6.0_20-b02; maximum heap size 494.938MB<br />
18:11:31,144 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM &#8211; WARNING &#8211; maximum heap size 494.938MB is less than recommended 512MB</p></blockquote>
<p>Ok! Ok! We will fix it too.</p>
<p>We have to expand the JVM memory to solve this warning.  Go to Alfresco install home, in my installation it&#8217;s in /opt/alfresco/33G,  and edit the alfresco.sh file, and modify the JAVA_OPTS:</p>
<p>From:</p>
<blockquote><p>export JAVA_OPTS=&#8217;-Xms128m -Xmx512m -XX:MaxPermSize=128m -server&#8217;</p></blockquote>
<p>To:</p>
<blockquote><p>export JAVA_OPTS=&#8217;-Xms256m -Xmx1024m -XX:MaxPermSize=512m -server&#8217;</p></blockquote>
<p>Restart Alfresco again.</p>
<blockquote><p>18:32:17,312 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM &#8211; v1.6.0_20-b02; maximum heap size 989.875MB</p></blockquote>
<p>Very good! Whew!</p>
<p>Now, log-in to Alfresco from your favorite browser:</p>
<blockquote><p>http://&lt;Alfresco.server.ip.address&gt;:8080/alfresco</p>
<p><a href="http://andoylang.files.wordpress.com/2010/07/alfresco_login.jpg"><img class="alignnone size-full wp-image-76" title="Alfresco_login" src="http://andoylang.files.wordpress.com/2010/07/alfresco_login.jpg?w=600" alt=""   /></a></p></blockquote>
<p>Log-in as admin, depends on what account/password you define during your installation.  In my case, it&#8217;s:</p>
<blockquote><p>username:  admin</p>
<p>password:  admin</p></blockquote>
<p>That&#8217;s it for now.   Next time we will configure alfresco with Active Directory.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andoylang.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andoylang.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andoylang.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andoylang.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/andoylang.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/andoylang.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/andoylang.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/andoylang.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andoylang.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andoylang.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andoylang.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andoylang.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andoylang.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andoylang.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=62&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://andoylang.wordpress.com/2010/07/15/alfresco-basic-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25079fa14d714b5a0c6bb5441a17b116?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andoylang</media:title>
		</media:content>

		<media:content url="http://andoylang.files.wordpress.com/2010/07/alfresco_login.jpg" medium="image">
			<media:title type="html">Alfresco_login</media:title>
		</media:content>
	</item>
		<item>
		<title>Filtering using Squid</title>
		<link>http://andoylang.wordpress.com/2010/07/09/filtering-using-squid/</link>
		<comments>http://andoylang.wordpress.com/2010/07/09/filtering-using-squid/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 10:19:59 +0000</pubDate>
		<dc:creator>andoylang</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://andoylang.wordpress.com/?p=45</guid>
		<description><![CDATA[Typical office set-up always have an internet connection.  Even stores have one and they are fast!  Thanks to wireless internet.  But, in a office of 30 or more employees with 1MBPS connection, you will have a different experience.  That&#8217;s because some of your users are downloading mp3&#8242;s, movies, etc while working.  Those downloads will slow [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=45&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Typical office set-up always have an internet connection.  Even stores have one and they are fast!  Thanks to wireless internet.  But, in a office of 30 or more employees with 1MBPS connection, you will have a different experience.  That&#8217;s because some of your users are downloading mp3&#8242;s, movies, etc while working.  Those downloads will slow down your internet not to mention the internet advertisement being displayed in most of the website that your users visited.</p>
<p>Hit google and research! &lt;ding!&gt; I found a solution &#8211; Proxy Server. Proxy&#8217;s main function is to cache the most visited web sites.  But wait, proxy is not only to cache most visited websites, it can do filtering too.</p>
<p>Did I say filtering?  Yes, you&#8217;re right filtering.  I know, most of users will hate you for doing this.  They&#8217;ll feel that they&#8217;re being suppressed of right to access the internet and everything.  Ha! ha! ha! I know I&#8217;ve been in your shoes.</p>
<p>But, What can you do? Your network is slowing down and you need to speed up the sending/receiving of email, the important websites for research.  Managers needs to communicate and do research.  Besides, the company needs to make money, right?  Otherwise, the company cannot pay your salaries, bla bla bla.</p>
<p>As the System or Network Administrator you need to speed up the internet connection without increasing the bandwidth &#8216;coz bigger bandwidth costs money.</p>
<p>It&#8217;s time to install SQUID proxy server!</p>
<p>There are number of proxy server on the internet why squid? Squid has been around for years and it&#8217;s stable and fast but most of all you can configure it according to your need. (whisper:  most important, it&#8217;s my personal favorite!)</p>
<p>Let&#8217;s dig in into business.</p>
<p>Below is the basic configuration to run squid proxy but, we are not interested in that configuration, we are more interested in filtering  of websites and internet advertisement, slowing down downloads and stuff.</p>
<blockquote><p>#General Setup</p>
<p>acl QUERY urlpath_regex cgi-bin \?<br />
no_cache deny QUERY<br />
http_port 3128 transparent<br />
icp_port  0<br />
request_body_max_size 10240 KB<br />
cache_mem 64 MB<br />
cache_replacement_policy heap LFUDA<br />
cache_dir ufs /opt/squid/cache 6000 16 256<br />
access_log /var/log/squid/access.log squid</p>
<p>#Replace &#8220;server_hostname&#8221; with the hostname of your Ubuntu machine<br />
visible_hostname &lt;server name&gt;</p>
<p>refresh_pattern -i .deb$ 0 50% 28800<br />
refresh_pattern -i .rpm$ 0 50% 28800<br />
refresh_pattern -i .tgz$ 0 50% 28800<br />
refresh_pattern -i .exe$ 0 50% 28800<br />
refresh_pattern -i .cab$ 0 50% 28800<br />
refresh_pattern -i .zip$ 0 50% 28800<br />
refresh_pattern -i .rar$ 0 50% 28800<br />
refresh_pattern -i .arj$ 0 50% 28800<br />
refresh_pattern -i .jpg$ 0 50% 28800<br />
refresh_pattern -i .gif$ 0 50% 28800<br />
refresh_pattern -i .bmp$ 0 50% 28800<br />
refresh_pattern -i .mov$ 0 50% 28800<br />
refresh_pattern -i .avi$ 0 50% 28800<br />
refresh_pattern -i .mpg$ 0 50% 28800<br />
refresh_pattern -i .mpeg$ 0 50% 28800<br />
refresh_pattern -i .wmv$ 0 50% 28800<br />
refresh_pattern -i .mp3$ 0 50% 28800<br />
refresh_pattern -i .wav$ 0 50% 28800<br />
refresh_pattern -i .bin$ 0 50% 129600</p>
<p># caching TTL and DNS<br />
negative_ttl 1 minutes<br />
positive_dns_ttl 15 hours<br />
negative_dns_ttl 1 minutes<br />
half_closed_clients off</p>
<p>acl manager proto cache_object<br />
acl CONNECT method CONNECT<br />
acl PURGE method PURGE</p></blockquote>
<p>Now that you have the basic configuration we will add the Access Lists.</p>
<p>You have to define your IP networks</p>
<blockquote><p>acl Servers src 192.168.1.0/24<br />
acl Production src 192.168.2.0/24<br />
acl back-office src 192.168.3.0/24<br />
acl sales src 192.168.4.0/24<br />
acl Management src 192.168.5.0/24</p></blockquote>
<p>Define the web sites that you want to deny and give full speed and most important slow down the downloads.</p>
<blockquote><p>acl fullspeed dstdomain &#8220;/etc/squid/fullspeed.dat&#8221;<br />
acl DeniedSites dstdomain &#8220;/etc/squid/deniedsites.dat&#8221;<br />
acl slow_it_down url_regex -i &#8220;/etc/squid/slow_this_down&#8221;</p></blockquote>
<p>Access Lists for ftp</p>
<blockquote><p># acl www_ports src 80 443<br />
acl ftp_ports src 21<br />
acl localhost src 127.0.0.1/32<br />
acl manager proto cache_object<br />
acl CONNECT method CONNECT<br />
acl PURGE method PURGE</p></blockquote>
<p>Define who can and don&#8217;t access the internet</p>
<blockquote><p>http_access allow manager localhost our_network<br />
http_access allow manager localhost<br />
http_access allow servers back-office sales management<br />
http_access allow PURGE<br />
http_access allow localhost<br />
http_access deny manager<br />
http_access deny PURGE<br />
http_access deny DeniedSites</p></blockquote>
<p>Define the FTP account for anonymous FTP download.  Change domain for your domain name</p>
<blockquote><p>ftp_user Squid@&lt;domain&gt;.com<br />
ftp_passive off</p></blockquote>
<p>Now, for serious stuff.</p>
<p>We don&#8217;t want to delay our Servers and management&#8217;s traffic.  Don&#8217;t forget to include your IP Address.</p>
<p>delay_parameters -1/-1 means that they have no limit in using the internet.  That includes you <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<blockquote><p>delay_class 1 2<br />
delay_parameters 1 -1/-1 -1/-1<br />
delay_access 1 allow cubic-server fullspeed management networkadmin</p></blockquote>
<p>For the Second delay pool.<br />
we want to delay downloading files mentioned in slow_it_down.</p>
<p>The numbers here are values in bytes;</p>
<p>40000/500000 = 40 kbps download speed and 25 MB bucket for the network<br />
15000/250000 = 15kbps download speed with 25 MB bucket for each user</p>
<p>after downloaded files exceed about 250000 bytes, they will continue to download at about 5000 bytes/s</p>
<blockquote><p>delay_class 2 2<br />
delay_parameters 2 40000/500000 15000/250000<br />
delay_access 2 allow slow_it_down production back-office sales</p></blockquote>
<p>That&#8217;s it.  Reload squid&#8217;s configuration.</p>
<blockquote><p># service squid reload</p></blockquote>
<p>or</p>
<blockquote><p># /etc/init.d/squid reload</p></blockquote>
<p>After configuring your proxy, it&#8217;s time to define the denied websites, etc.</p>
<p>create a file named deniedsites in /etc/squid</p>
<blockquote><p># vi /etc/squid/deniedsites</p></blockquote>
<p>and add the sites that you want to deny.</p>
<blockquote><p>.youtube.com<br />
.facebook.com<br />
.friendster.com<br />
.video.msn.com<br />
.megavideo.com<br />
.doubleclick.net<br />
.bannerconnect.net<br />
.ads.clicksor.com<br />
.ads.overclock.net<br />
.ads.ozonemedia.co.in<br />
.statcounter.com<br />
.207.net<br />
.2mdn.net<br />
.advertising.com<br />
.atdmt.com<br />
.atwola.com<br />
.intellitxt.com<br />
.kanoodle.com<br />
c.live.com<br />
.msads.net<br />
.ads1.msn.com<br />
.rad.msn.com<br />
c.msn.com<br />
.pointroll.com<br />
.revsci.net<br />
.llnwd.net<br />
.ugamsolutions.com<br />
.zedo.com<br />
sg.adserver.yahoo.com<br />
pagead2.googlesyndication.com<br />
.blip.tv<br />
.dailymotion.com</p></blockquote>
<p>Wait a minute.  Did I just include youtube, facebook and friendster?  Now, that&#8217;s a serious problem.  I will have a lot of question from the users.  Yes, you will hehehe and be ready to answer all of them or send out an IT Advisory that the company&#8217;s internet is slowing down bla bla bla.  You need to be creative on this <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The rests are internet advertising sites.</p>
<p>As for downloading of files, you have to define the extension name of the files that you want to slow down.</p>
<blockquote><p>.ftp<br />
.mp3<br />
.vqf<br />
.rpm<br />
.zip<br />
.avi<br />
.mpeg<br />
.mpe<br />
.mpg<br />
.qt<br />
.ram<br />
.rm<br />
.raw<br />
.wav<br />
.mov</p></blockquote>
<p>Now, define the web sites that can be downloaded very fast</p>
<blockquote><p>.google.com<br />
.yahoo.com<br />
.&lt;your domain&gt;.com</p></blockquote>
<p>NOTE:  Be on guard always, users might get back on you on what you&#8217;ve done on the internet hehehe</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andoylang.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andoylang.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andoylang.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andoylang.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/andoylang.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/andoylang.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/andoylang.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/andoylang.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andoylang.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andoylang.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andoylang.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andoylang.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andoylang.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andoylang.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=45&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://andoylang.wordpress.com/2010/07/09/filtering-using-squid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25079fa14d714b5a0c6bb5441a17b116?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andoylang</media:title>
		</media:content>
	</item>
		<item>
		<title>putty as an alternative to hyperterminal</title>
		<link>http://andoylang.wordpress.com/2010/07/07/putty-as-an-alternative-to-hyperterminal/</link>
		<comments>http://andoylang.wordpress.com/2010/07/07/putty-as-an-alternative-to-hyperterminal/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 20:02:13 +0000</pubDate>
		<dc:creator>andoylang</dc:creator>
				<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://andoylang.wordpress.com/?p=31</guid>
		<description><![CDATA[New laptop&#8217;s don&#8217;t come with Serial connection anymore.   That&#8217;s a problem if your studying/configuring cisco routers.   Cisco can only configured with console cable. I searched ebay and found the RS232 to USB converter but, the driver that comes with it is not working. I seeked help from all friendly google for the driver and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=31&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>New laptop&#8217;s don&#8217;t come with Serial connection anymore.   That&#8217;s a problem if your studying/configuring cisco routers.   Cisco can only configured with console cable.</p>
<p>I searched ebay and found the RS232 to USB converter but, the driver that comes with it is not working.</p>
<p>I seeked help from all friendly google for the driver and <a title="ATEN driver" href="http://www.aten.com/download/download.php?pid=2005022316346005&amp;type=driver#showResult">found one that works for me</a>.</p>
<p>Now that I installed the driver, I can now proceed with my study.</p>
<p>I&#8217;m going to use <a title="putty download" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">putty</a> instead of hyperterminal (windows vista and windows 7 does not have hyperterminal).  Below are the procedures on how I configured <a title="putty download" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">putty</a> to access my cisco router.</p>
<p>Plug your console cable to cisco router and the RS232 (female) to RS232 (male) of converter and plug the USB in your laptop.  Now, you have to check the communication port number from Computer Management (Start &#8211;&gt; Control Panel &#8211;&gt; Administrative Tools &#8211;&gt; Computer Management &#8211;&gt; Device Manager and look at Port (COM &amp; LPT).</p>
<p style="padding-left:60px;"><a href="http://andoylang.files.wordpress.com/2010/07/comport.jpg"><img class="alignnone size-medium wp-image-32" title="COM Port" src="http://andoylang.files.wordpress.com/2010/07/comport.jpg?w=300&#038;h=269" alt="" width="300" height="269" /></a></p>
<p>Open putty and configure:</p>
<p style="padding-left:30px;">
<p>a.  Select Serial from Connection Type<br />
b.  Specify the COM Port number in Serial line, check the Com port from above.<br />
c.  Speed should be 9600</p>
<p style="padding-left:60px;"><a href="http://andoylang.files.wordpress.com/2010/07/putty1.jpg"><img class="size-medium wp-image-33 alignnone" title="Putty1" src="http://andoylang.files.wordpress.com/2010/07/putty1.jpg?w=300&#038;h=287" alt="" width="300" height="287" /></a></p>
<p>d.  Click on Serial from Category to configure additional Options<br />
e.  Flow Control should be None.</p>
<p style="padding-left:60px;"><a href="http://andoylang.files.wordpress.com/2010/07/putty-serial.jpg"><img class="alignnone size-medium wp-image-34" title="putty-serial" src="http://andoylang.files.wordpress.com/2010/07/putty-serial.jpg?w=300&#038;h=287" alt="" width="300" height="287" /></a></p>
<p>f.  Click on Window from Category and change the line of scroll back.  I use 500,000</p>
<p style="padding-left:60px;"><a href="http://andoylang.files.wordpress.com/2010/07/putty-window.jpg"><img class="alignnone size-medium wp-image-35" title="putty-window" src="http://andoylang.files.wordpress.com/2010/07/putty-window.jpg?w=300&#038;h=287" alt="" width="300" height="287" /></a></p>
<p>g.  Go back to Session and save the configuration</p>
<p style="padding-left:60px;"><a href="http://andoylang.files.wordpress.com/2010/07/putty-save.jpg"><img class="alignnone size-medium wp-image-36" title="putty-save" src="http://andoylang.files.wordpress.com/2010/07/putty-save.jpg?w=300&#038;h=287" alt="" width="300" height="287" /></a></p>
<p>Now, power your router and click Open (putty).</p>
<p>Wait for the magic to happen.</p>
<p>Viola!  You have your router console terminal.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andoylang.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andoylang.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andoylang.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andoylang.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/andoylang.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/andoylang.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/andoylang.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/andoylang.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andoylang.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andoylang.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andoylang.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andoylang.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andoylang.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andoylang.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=31&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://andoylang.wordpress.com/2010/07/07/putty-as-an-alternative-to-hyperterminal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25079fa14d714b5a0c6bb5441a17b116?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andoylang</media:title>
		</media:content>

		<media:content url="http://andoylang.files.wordpress.com/2010/07/comport.jpg?w=300" medium="image">
			<media:title type="html">COM Port</media:title>
		</media:content>

		<media:content url="http://andoylang.files.wordpress.com/2010/07/putty1.jpg?w=300" medium="image">
			<media:title type="html">Putty1</media:title>
		</media:content>

		<media:content url="http://andoylang.files.wordpress.com/2010/07/putty-serial.jpg?w=300" medium="image">
			<media:title type="html">putty-serial</media:title>
		</media:content>

		<media:content url="http://andoylang.files.wordpress.com/2010/07/putty-window.jpg?w=300" medium="image">
			<media:title type="html">putty-window</media:title>
		</media:content>

		<media:content url="http://andoylang.files.wordpress.com/2010/07/putty-save.jpg?w=300" medium="image">
			<media:title type="html">putty-save</media:title>
		</media:content>
	</item>
		<item>
		<title>Email migration using imapsync</title>
		<link>http://andoylang.wordpress.com/2010/07/06/email-migration-using-imapsync/</link>
		<comments>http://andoylang.wordpress.com/2010/07/06/email-migration-using-imapsync/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 06:51:11 +0000</pubDate>
		<dc:creator>andoylang</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[imapsync]]></category>

		<guid isPermaLink="false">http://andoylang.wordpress.com/?p=9</guid>
		<description><![CDATA[Email migration is tough job.   There are application that can do this but,  it will not include emails with attachments. I found imapsync do the job for me.   How I did it?  Here&#8217;s how: Install imapsync # apt-get install imapsync The syntax is: # /usr/bin/imapsync \ &#8212;host1 imap.truc.org &#8212;user1 foo &#8212;passfile1 /etc/secret1 \ &#8212;host2 imap.trac.org [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=9&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Email migration is tough job.    There are application that can do this but,  it will not include emails with attachments.</p>
<p>I found imapsync do the job for me.    How I did it?  Here&#8217;s how:</p>
<p>Install imapsync</p>
<blockquote><p># apt-get install imapsync</p></blockquote>
<p>The syntax is:<br />
<em> </em></p>
<blockquote><p><em># /usr/bin/imapsync \</em></p>
<p><em> &#8212;host1 imap.truc.org &#8212;user1 foo &#8212;passfile1 /etc/secret1 \ </em></p>
<p><em>&#8212;host2 imap.trac.org &#8212;user2 bar &#8212;passfile2 /etc/secret2</em></p></blockquote>
<p>This syntax will only migrate 1 email account from 1 domain to another.  I created a script that will read the details from file and process the migration.</p>
<blockquote><p><em>#!/bin/sh</em><br />
<em>while read v1 v3 v4 v5 v6 </em><br />
<em>do  echo&#8221;$v1&#8243; &gt; gmail.account </em><br />
<em>echo &#8220;$v2&#8243; &gt; gmail.passwd </em><br />
<em> echo &#8220;$v4&#8243; &gt; domain.account</em><br />
<em>echo &#8220;$v5&#8243; &gt; domain.passwd </em><br />
<em>echo &#8220;$v6&#8243; &gt; domain.log.account </em></p>
<p><em> # to test the script you have to add &#8212;dry </em><br />
<em># Dry run </em><br />
<em><br />
</em><em>imapsync &#8212;host1 imap.gmail.com &#8212;ssl1 &#8211;authmech1 LOGIN &#8212;user1 $v1 &#8212;password1 $v2 &#8212;host2 mail.domain.com &#8212;ssl2 &#8212;authmech2 LOGIN &#8212;user2 $v4 &#8212;passfile2 $5 &#8212;skipsize &#8212;allowsizemismatch &#8212;dry &gt; /home/root/imapsync/logs/$v6 </em><br />
<em>done &lt; migrate.account</em></p></blockquote>
<p>This script will read the email account detail from migrate.account up to the last record.  Lists of email accounts that you want to migrate.<br />
<em> </em></p>
<blockquote><p><em>email@gmail.com gmailpassword email@domain.com domainpassword email_log</em></p></blockquote>
<p>To run the script:</p>
<p>You have to set the permission of the script<br />
<em> </em></p>
<blockquote><p><em># chmod 744 email.migration</em></p></blockquote>
<p>Create a log folder<br />
<em></em></p>
<blockquote><p><em># mkdir logs</em></p></blockquote>
<p>Run the script<br />
<em></em></p>
<blockquote><p><em># ./email.migration</em></p></blockquote>
<p>And of you go.    Now, monitor the migration in log folder</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andoylang.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andoylang.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/andoylang.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/andoylang.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/andoylang.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/andoylang.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/andoylang.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/andoylang.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/andoylang.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/andoylang.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/andoylang.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/andoylang.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/andoylang.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/andoylang.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=andoylang.wordpress.com&amp;blog=14327486&amp;post=9&amp;subd=andoylang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://andoylang.wordpress.com/2010/07/06/email-migration-using-imapsync/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25079fa14d714b5a0c6bb5441a17b116?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andoylang</media:title>
		</media:content>
	</item>
	</channel>
</rss>
