Monthly Archives: March 2012


Reference Display rules sudo iptables -L -v -n –line-numbers Deleting all the rules sudo iptables -F Add rules blocking an IP for incoming traffic: iptables -A INPUT -s -j DROP iptables -A INPUT -p icmp –icmp-type echo-request -j … Continue reading

Posted in iptables | Leave a comment

Configure and test CIFS with Alfresco

1. CIFS cifs.enabled=true cifs.serverName=server_name cifs.domain=WORKGROUP cifs.hostannounce=true cifs.sessionTimeout=500 cifs.ipv6.enabled=false #cifs.tcpipSMB.port=1445 #cifs.netBIOSSMB.namePort=1137 #cifs.netBIOSSMB.datagramPort=1138 #cifs.netBIOSSMB.sessionPort=1139 cifs.WINS.autoDetectEnabled=true 2. Run “sudo alfresco ” as root so that it can use the default ports. 3. Test From Windows Explorer to map network drive with user … Continue reading

Posted in alfresco, cifs | Leave a comment

Alfresco running as linux service

under id “alfresco” (group alfresco)ln -s $ALF_HOME/ /etc/init.d/alfrescoupdate-rc.d alfresco defaults Reference

Posted in alfresco | Leave a comment

Customize Alfresco email invite for external user

tomcat/shared/classes/alfresco/extension$ cat invite-context.xml  <beans>         <bean class="" id="nameBasedUserNameGenerator">                                  <property name="namePattern">                         <value>%emailAddress%</value>                 </property>                 <property name="userNameLength">                         <value>10</value>                 </property>         </bean> </beans> tomcat/shared/classes/alfresco/extension$ cat invite-context.xml

Posted in alfresco | Leave a comment

ffmpeg ubuntu 11.10

sudo apt-get install ffmpeg libavcodec-extra-53 ffmpeg -i source.avi -acodec libfaac -ab 128k -ar 44100 -vcodec mpeg4  -b 1000K -s 640×480 destination.m4v

Posted in ffmpeg | Leave a comment

install ec2 API

enable multiverse: sudo vi /etc/apt/sources.list deb lucid multiverse deb-src lucid multiverse deb lucid-updates multiverse deb-src lucid-updates multiverse sudo apt-get install ec2-api-tools Generate and download AWS X.509 Certificate from AWS console vi .bashrc to add EC2 settings export EC2_PRIVATE_KEY=$HOME/.ssh/pk-dna.pem … Continue reading

Posted in ec2 | Leave a comment

Alfresco LDAP,ldap:ldap1(AD)authentication.chain=alfinst:alfrescoNtlm,ldap-ad1:ldap-ad Extension Root(LDAP)tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/ldap1(AD)tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/ldap-ad1/ Alfresco LDAP integrationAlfresco LDAP configuration

Posted in alfresco | Leave a comment