Thursday, March 29, 2012

iptables


sudo iptables -F
#sudo iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
sudo iptables -A INPUT -p tcp --dport 8080 ! -s  24.86.126.251 -j DROP
#sudo iptables -A INPUT -p tcp --dport 8080 -m iprange --src-range 24.86.126.251 -j ACCEPT
sudo iptables -L

Configure and test CIFS with Alfresco


1. alfresco-global.properties

## 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 credential. 
    net use X: \\192.168.1.35\Alfresco /usr:admin admin

4. Test from Ubuntu side
https://help.ubuntu.com/community/Samba/SambaClientGuide
 smbclient -U qa1 //108.171.177.147/Alfresco -p 139

Alfresco running as linux service

under id "alfresco" (group alfresco)
ln -s $ALF_HOME/alfresco.sh /etc/init.d/alfresco
update-rc.d alfresco defaults

Reference
http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10

Customize Alfresco email invite for external user

tomcat/shared/classes/alfresco/extension$ cat invite-context.xml 



<beans>
        <bean class="org.alfresco.repo.security.authentication.NameBasedUserNameGenerator" 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

Saturday, March 24, 2012

ffmpeg ubuntu 11.10


  • sudo apt-get install ffmpeg libavcodec-extra-53
  • Follow http://blog.stevenreid.co.uk/2011/10/25/transcoding-video-iphone/ and http://ubuntuforums.org/showthread.php?t=786095
  • ffmpeg -i source.avi -acodec libfaac -ab 128k -ar 44100 -vcodec mpeg4  -b 1000K -s 640x480 destination.m4v

Tuesday, March 20, 2012

install ec2 API


  • enable multiverse: sudo vi /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

Thursday, March 15, 2012

Alfresco LDAP


alfresco-global.properties
(LDAP)authentication.chain=alfinst:alfrescoNtlm,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/ldap-ad-authentication.properties

Alfresco LDAP integration
Alfresco LDAP configuration

Tuesday, March 13, 2012

install lookit ubuntu

sudo add-apt-repository ppa:lookit/ppa
sudo apt-get update
sudo apt-get install lookit

Saturday, March 3, 2012

install LAMP on ubuntu

sudo apt-get install tasksel
sudo tasksel install lamp-server
https://help.ubuntu.com/community/Tasksel