Monday, September 1, 2014

Erlang installation on Ubuntu

Install the pre - requisite  for erlang installation by
apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
 
Download the src code, untar it
and do
./cofigure
make
sudo make


Thursday, July 3, 2014

One liner to stop / remove all of Docker containers:

One liner to stop / remove all of Docker containers:


docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

Wednesday, July 2, 2014

Package Manager & Update Manager problems

Some time when you do "apt-get update"  you get error of key missing, you can solve it by  adding the key
eg
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CBCB082A1BB943DB


sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys MISSINFKEYTYPEEHERE

Monday, May 5, 2014

liferay port redirection from port 8080 to 80

 diff server.xml server.xml-org
-----------------------------------------------------

        Connector port="8080" address="127.0.0.1"  protocol="HTTP/1.1"
----------------------------------------------------------------------------
       Connector port="8080" protocol="HTTP/1.1"
---------------------


diff  httpd.conf httpd.conf-ORG
Listen 192.168.20.29:8080
Listen 127.1.0.8:8080

--Proxy * tag start
  AddDefaultCharset Off
  Order deny,allow
  Allow from all
 --Proxy  tag stop

 ProxyPass /JSCSSAddin !
 ProxyPass /survey !
 ProxyPass /esign !
 ProxyPass /awstats !
 ProxyPass / ajp://localhost:8009/
 ProxyPassReverse / ajp://localhost:8009

To list the name of the files in a directory using 'AWK" script

To list the name of the files in a directory using script

ls -lt  /opt/AlfDB | awk {'print $9'}

Sunday, May 4, 2014

Alfresco port direction from 8080 to 80


diff server.xml server.xml-ORG

diff httpd.conf httpd.conf-org

 137,138d136
Listen 192.168.20.34:8080
Listen 127.1.0.8:8080
296,302d293
# Force http redirect to https
RewriteEngine On
RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteRule (.*) https://dm.joseph.com%{REQUEST_URI}

---  proxy tag start----
 AddDefaultCharset Off
 Order deny,allow
 Allow from all

--- proxy tag stop ----


ProxyPass /ar !
ProxyPass /en !
ProxyPass /web !
ProxyPass /web2 !
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/

Monday, March 24, 2014

synergy configuration files

synergys -c /etc/synergy.conf -l /synergyS.log -f

Saturday, March 22, 2014

mounting ntfs files in Centos

  • Install and configure EPEL repository
  • yum -y install ntfs-3g ntfsprogs
  • mount -t ntfs-3g /dev/sdc1 /mnt/ntfs

Liferay seeting in portal.ext.propertied

The location of the file to be edited is


tomcat-7.0.27/webapps/ROOT/WEB-INF/classes/portal-ext.properties

values are :-
--------------------------------------------------------

users.reminder.queries.enabled=false
users.reminder.queries.custom.question.enabled=false
#users.screen.name.validator=com.liferay.portal.security.auth.LiberalScreenNameValidator

Tuesday, March 11, 2014

Alfresco , footer display, which file to change

The location of the files os
tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/footer

The files to be edited are
footer.get_en.properties
footer.get.properties:label.copyright