Posts

Install postgresql

# Install python dev sudo apt-get install python-dev # Install postgresql to system. sudo apt-get install postgresql # Install libraries for python driver. sudo apt-get install libpq-dev sudo apt-get install python-psycopg2 # Install pgadmin for postgresql sudo add-apt-repository ppa:gwibber-daily/ppa Above command will changed based on ubuntu version. sudo apt-get update sudo apt-get install pgadmin3

Getting started with Kivy

I heard about kivy many times didn't got a time to dig into it so today i dig into it to get gold out of it. Kivy is open source project. Kivy application ui is responsive so will work on any application. It compiles code into c++ binary. Applications can be converted into android/iOS applications. In Android it used NDK means code will be compiled c++ binary. It's really easy to getting started. Kivy Installation guide sudo apt-get install python-dev sudo apt-get install libglu-dev  Install Cpython  Download from http://cython.org/#download wget http://cython.org/release/Cython-0.20.1.tar.gz tar -xzvf Cython-0.20.1.tar.gz cd Cython-0.20.1 python setup.py install sudo apt-get build-dep python-pygame sudo apt-get install libsdl1.2-dev libsdl1.2debian sudo apt-get install build-essential xorg-dev libudev-dev libts-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev libpulse-dev libopenal-dev libogg-dev libvorbis-dev libaudiofile-dev libpng12-dev libfreetype6-dev

Opencv installation guide

I was installing opencv on my ubuntu system. I got some problems while installation. Finally i installed openCV on my system. Steps i followed are as below. To install opencv i installed dependencies that must exist in system. To install dependencies execute below commands. sudo apt-get install -y build-essential sudo apt-get install -y cmake sudo apt-get install -y pkg-config sudo apt-get install -y libpng12-0 libpng12-dev libpng++-dev libpng3 sudo apt-get install -y libpnglite-dev sudo apt-get install -y zlib1g-dbg zlib1g zlib1g-dev sudo apt-get install -y pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools sudo apt-get install -y libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs sudo apt-get install -y ffmpeg libavcodec-dev libavcodec53 libavformat53 libavformat-dev sudo apt-get install -y libgstreamer0.10-0-dbg libgstreamer0.10-0  libgstreamer0.10-dev sudo apt-get install -y libxine1-ffmpeg  libxine-dev libxine1-bin sudo apt-get install -y libunicap2

HP Pavilion g6-2303Tx Overheating solution

I just bought new laptop HP Pavilion g6-2303Tx . It have good configuration Intel I5, 4GB Ram, 1GB ATI graphics with OpenDOS. I preferred DOS because mostly i am use to with Linux based systems so that i can install Linux. Now when i tried to install ubuntu 12.04 on this machine, my wi-fi, Ethernet drivers not worked. I tried many things but not worked well. I downloaded Ubuntu 13.04 and installed. My wi-fi and Ethernet drivers worked fine on ubuntu 13.04. Used my system for 1-2 days and then noticed that my laptop is getting overheated. Overheating is not good for system health so i tried many solutions but not worked well. Then i found that in HP system graphics are automatically switchable so that when system need they automatically switch to external graphics. I noticed that in Ubuntu my both internal and external both graphics are default turned on. So that i finally found solution for this. I developed shell script for this issue. Shell Script for overheating issue. sudo

How to take ssh from windows machine of AWS Linux machine ?

Image
I have developed REST api and uploaded on Amazon Web Services Ubuntu EC2 machine. Now on Sunday i want to change some keys in that and i don't have linux machine at that time but have windows machine so that i started searching for tacking ssh from windows machine and finally got nice solution which gives me ssh of linux machine just as linux terminal also it gives me GUI tools to upload and download files with GUI. To take ssh download  Bitvise SSH Client  download link :  http://www.bitvise.com/ssh-client-download After download completes install it from installer. Installation is simple just run its installer and follow instructions. After installation completes start Bitvise SSH client. Go to start and you will mostly find Bitvise SSH client entry in start menu just select it and start Bitvise SSH Client. Now after starting tool fill information. Host will be your AWS EC2 machine should be Elastic IP or public DNS. Port will be default 22. Before tacking SSH ch