Saturday, March 15, 2014

Can not connect to Cloud Service, Google Cloud Print on Ubuntu 12.04 Server


(do this as root or as sudo -i)
git clone https://github.com/armooo/cloudprint.git
cd cloudprint
wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.eggsetuptools-0.6c11-py2.7.egg
python ez_setup.py
cd cloudprint (there is another cloudprint dir inside the first)
./cloudprint
now it should work.

Saturday, February 22, 2014

The following table lists Microsoft Office features and their LibreOffice equivalents.


    Microsoft Office XP   =>  LibreOffice
  • AutoShapes  =>  Gallery Objects
  • Change Case  =>  Case/Characters
  • Click and Type  =>  Direct Cursor
  • Compare and Merge Documents  =>  Compare
  • Document Map  =>  Navigator
  • Formula Auditing  =>  Detective
  • Lines and Page Breaks  =>  Text Flow
  • Page setup  =>  Format - Page
  • Mail Merge  =>  Form Letter
  • Markup  =>  Changes - Show
  • Refresh Data (in Excel)  =>  Refresh Range
  • Replace text as you type  =>  AutoCorrect
  • Show/Hide  =>  Nonprinting Characters, Hidden Paragraphs
  • Spelling and Grammar  =>  Spellcheck
  • Track changes  =>  Changes - Record
  • Validation  =>  Validity
  • Workbook  =>  Spreadsheet
  • Worksheet  =>  Sheet
  • Shared Workbooks  =>  Collaboration

Friday, January 17, 2014

Passwordless SSH tuthorization on Linux


  • Delete all files from => rm -rf  root/.ssh/ *
  • Generate Key => ssh-keygen -t rsa -N “”
  • Cope script on Second Server => scp root@192.168.1.3:/root/
  • cd /root/.ssh
  • cat /root/id_rsa.pub > authorized_keys 

Install LAMP on Ubuntu Server


  • sudo apt-get update
  • sudo apt-get install openssh-server
  • sudo apt-get install apache2
  • sudo apt-get install php5
  • sudo apt-get install mysql-server
  • sudo apt-get install libapache2-mod-php5
  • sudo apt-get install php5-mysql
  • sudo apt-get install mysql-client
  • sudo apt-get install php5-curl
  • sudo apt-get install php5-gd
  • sudo apt-get install php5-idn
  • sudo apt-get install php5-imagick
  • sudo apt-get install php5-imap
  • sudo apt-get install php5-mcrypt
  • sudo apt-get install php5-memcache
  • sudo apt-get install php5-mhash
  • sudo apt-get install php5-ming
  • sudo apt-get install php5-ps
  • sudo apt-get install php5-pspell
  • sudo apt-get install php5-recode
  • sudo apt-get install php5-snmp
  • sudo apt-get install php5-sqlite
  • sudo apt-get install php5-tidy
  • sudo apt-get install php5-xmlrpc
  • sudo apt-get install php5-xsl
  • sudo apt-get install php5-json
  • sudo apt-get install php5-cli
  • sudo apt-get install php-pear
  • sudo apt-get install php-apc
  • sudo apt-get install phpmyadmin
  • sudo apt-get install curl
  • sudo apt-get install sendmail
  • sudo apt-get install ethtool
  • sudo apt-get install nfs-kernel-server
  • sudo apt-get install nfs-common
  • sudo apt-get install portmap
  • sudo apt-get install perl
  • sudo apt-get install libnet-ssleay-perl
  • sudo apt-get install openssl
  • sudo apt-get install libauthen-pam-perl
  • sudo apt-get install libpam-runtime
  • sudo apt-get install libio-pty-perl
  • sudo apt-get install htop

Thursday, December 26, 2013

Update Java 1.6 to 1.7 in Ubuntu

Open Terminal and run the following commands;-



  • sudo apt-get install python-software-properties
  • sudo apt-add-repository ppa:openjdk/ppa
  • sudo apt-get update
  • sudo apt-get install openjdk-7-jdk
  • sudo update-alternatives --config java (Type the Version number and press Enter)
  • sudo java -version



Wednesday, September 11, 2013

Ubuntu 4GB Ram Limitation and Solution


Q. I've total 8 GB RAM installed in my dual boot Ubuntu Linux 8.10 (32 bit) version HP workstation. But free -m command only shows 3291 (3G) memory. How do I use 8GB RAM under Ubuntu Linux?

A. You need to install Physical Address Extension (PAE) aware kernel under 32 bit Ubuntu Linux. It is a feature of x86 and x86-64 processors that allows more than 4 Gigabytes of physical memory to be used in 32-bit systems.
Without PAE kernel, you should see something as follows:

Check your present Memory
$ free -m
Sample output:
           total       used       free     shared    buffers     cached
Mem:          3291        801       2489          0         95        342
-/+ buffers/cache:        363       2927
Swap:         1906          0       1906

Install PAE enabled kernel

Open terminal and type the following command if you are using Ubuntu version Ubuntu v9.04 and earlier:

$ sudo apt-get update

$ sudo sudo apt-get install linux-headers-server linux-image-server linux-server


If you are using Ubuntu v9.10 (Karmic Koala) and above, enter:

$ sudo apt-get install linux-generic-pae linux-headers-generic-pae

Once kernel images installed, just reboot your workstation, type:
$ sudo reboot
After reboot, login into your system and type the following command to verify memory usage:
$ free -m
Sample output:
           total       used       free     shared    buffers     cached
Mem:          8105       1292       6812          0         38        483
-/+ buffers/cache:        770       7334
Swap:         1906          0       1906

Tuesday, July 2, 2013

Install JAVA on Ubuntu 9.04


=> cp /etc/apt/sources.list /opt/sources.list.orig

=> Change following settings in /etc/apt/sources.list

deb http://old-releases.ubuntu.com/ubuntu natty main
deb http://old-releases.ubuntu.com/ubuntu natty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu natty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu natty-security main restricted universe multiverse

=> apt-get update

=> mv /var/lib/apt/lists /opt/lists.orig

=> mkdir -p /var/lib/apt/lists/partial

=> apt-get update

=> cd /var/cache/apt/archives

=> tar -cvf /opt/archives.tar *.deb

=> apt-get clean

=> apt-get install default-jre --no-install-recommends

NOTE :- In my case packages were just downloaded but not installed. so in such case do as following:-

=> cd /var/cache/apt/archives

=> dpkg -i *.deb