Skip to content

Instantly share code, notes, and snippets.

@The-Yoda
Last active December 18, 2015 21:38
Show Gist options
  • Save The-Yoda/5848705 to your computer and use it in GitHub Desktop.
Save The-Yoda/5848705 to your computer and use it in GitHub Desktop.
Softwares to be installed after reinstalling ubuntu
If you are gonna use same version of ubuntu, before installing take backup of software names using :
dpkg --get-selections > installed-software
After installing use following commands:
dpkg --set-selections < installed-softwares
apt-get -u dselect-upgrade
Installing java :
openjdk-7-jdk
or for sun java,
Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html
Download java and put it in /opt/
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.6.0_45/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/jdk1.6.0_45/bin/javac" 1
sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/opt/jdk1.6.0_45/jre/lib/amd64/libnpjp2.so" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/jdk1.6.0_45/bin/javaws" 1
Other needed Softwares :
vim g++ unrar vlc gstreamer0.10-plugins-b nautilus-open-terminal nautilus-wallpaper nautilus-dropbox php5 apache2 maven ant gnome git tree php-pear php-log mongodb mysql-client mysql-server gnome phpunit gimp samba
For google chrome :
https://www.google.com/intl/en/chrome/browser/?hl=en&brand=CHMA&utm_campaign=en&utm_source=en-IN-ha-bk&utm_medium=ha&utm_term=%2Bchrome
For 32 bit support in 64 bit ubuntu (needed for android ndk and sdk)
ia32-libs
For Opencv :
Prerequisites :
build-essential cmake pkg-config
libgtk2.0-dev
libjpeg62-dev
libtiff4-dev
libjasper-dev
python-dev python-numpy
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
Get opencv at http://opencv.org/downloads.html
cmake .
make
sudo make install
To compile a single file with opencv:
create a file opencpp in /usr/bin with r+w+e permission and add the following line :
g++ `pkg-config --cflags opencv` -o `basename $1 .cpp` $1 `pkg-config --libs opencv`
Then type opencpp filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment