Install adobe reader in ubuntu

Standard

1. Open the terminal and run the following command:
sudo apt-get install gtk2-engines-murrine:i386 libcanberra-gtk-module:i386 libatk-adaptor:i386 libgail-common:i386

2. Now install Adobe reader using the following commands:
sudo add-apt-repository “deb http://archive.canonical.com/ precise partner”
sudo apt-get update
sudo apt-get install adobereader-enu

3.After installation you need to remove the precise repository using the following commands:
sudo add-apt-repository -r “deb http://archive.canonical.com/ precise partner”
sudo apt-get update

4.If you want to read all PDF files using adobe acrobat do the following changes
Edit the /etc/gnome/defaults.list file
sudo gedit /etc/gnome/defaults.list

5.Change the following line
application/pdf=evince.desktop
to
application/pdf=acroread.desktop

6.Also add the following lines in the end
application/fdf=acroread.desktop
application/xdp=acroread.desktop
application/xfdf=acroread.desktop
application/pdx=acroread.desktop

7.Save and exit the file.Now you need to restart nautilus using the following command
nautilus -q

Advertisements

Configure Gmail SMTP server in Liferay

Standard

1. Go to Control Panel > Portal Settings
2. Enter “gmail.com” on Mail Domain (Required)
3. Save settings
Portal Settings - Liferay
4. Go to Control Panel > Server Administration > Mail

5. Now set the following settings below
Incoming POP Server : pop.gmail.com
Incoming Port : 995
Use a Secure Network Connection : yes
User Name : yourmail@gmail.com
Password : Your gmail Password
Outgoing SMTP Server : smtp.gmail.com
Outgoing Port  : 465
Use a Secure Network Connection  : yes
User Name : yourmail@gmail.com
Password : Your gmail Password
Manually specify additional JavaMail properties to override the above configuration:
mail.smtp.socketFactory.port: 465
mail.smtp.socketFactory.class:javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback:false
mail.smtp.auth: true
liferay-gmail configuration

6. Sign-in your gmail account
7. Enable DisplayUnlockCaptcha feature by clicking on  Enable DisplayUnlockCaptcha
8. Enable AllowLessSecureApps feature by clicking on Turn on “Allow less secure apps”
9. Disable TwoStepVerification feature by clicking on Turn off “2 Steps Verification”

Setup MySQL as Datasource for OFBiz

Standard

Derby is the default database of ofbiz. Now we migrate our database to MySQL from derby.
1. Before you start migrating check your installed MySQL version & download the supported version of mysql-connector.jar
2. Place the mysql-connector.jar to <ofbiz-dir>/framework/entity/lib/jdbc
MysqlConnector
3. Create 3 database [Ex. ofbiz, ofbizolap, ofbiztenant]
4. Open entityengine.xml file from <ofbiz-dir>/framework/entity/config/
5. Edit as follows,

Installing ibus-avro on Ubuntu

Standard

Installation process
Open Terminal and enter the following commands one by one.
1. Add ibus-avro repository
sudo add-apt-repository “deb http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./”
2. Add key
wget -q http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/Release.key -O- | sudo apt-key add –
3. Update package list
sudo apt-get update
4. Install ibus-avro
sudo apt-get install ibus-avro-trusty
5. Now you need to logout and login again or restart your computer.

Using ibus-avro
1. Click the IM icon in menubar and Select Text Entry Setting
1

2. In Text Entry Setting window click + icon (marked by arrow) in left pane. Write avro in the search box (marked by arrow). Choose Bengali (Avro Phonetic) from the list and press Add button to add Avro to the list.
2

3. (Optional) The keyboard shortcut to switch input method has been changed to Super+Space since ubuntu 13.10. You can change it to your preference from Text Entry Setting window.
4. Open any text editing software (like, gedit). Now Press Super+Space to toggle between English and Avro (Bengali)
5. Enjoy Avro Phonetic!

Uninstalling ibus-avro
1. Open Text Entry Setting and remove Avro Phonetic by clicking – icon.
2. Open Terminal and enter the following command:
sudo apt-get remove ibus-avro-trusty