Wi-Fi connection problem on Ubuntu 14.04


I have installed Ubuntu 14.04 (Thusty Tahr) and Wi-Fi scans the networks and connects correctly, but Mozilla Firefox or Google Chrome can’t open websites. It works with cable connection trouble-free.

I looked for a solution long time on the Internet. Then I found that there is a bug in Ubuntu Network Manager. Because of this bug Ubuntu Network Manager takes Bit Rate=1 Mb/s for wlan0.


iwconfig wlan0 rate 54M

Make this automatically for every system start:

sudo gedit /etc/rc.local
# add the following line before exit 0 line, save and exit
iwconfig wlan0 rate 54M

Reference: askubuntu.com

Install jdk 8 on Ubuntu

java logo

Ubuntu versions:

  • Ubuntu GNU/Linux 14.04 (Trusty Tahr)
  • Ubuntu GNU/Linux 13.10 (Saucy Salamander)
  • Ubuntu GNU/Linux 13.04 (Raring Ringtail)

Installing Oracle JDK 8 on Ubuntu:

  • Download the Oracle JDK 8 tar file from here
  • Extract the tar file: 
tar -xvzf jdk-8-linux-x64.tar.gz
  • Create jvm folder in /usr/lib, if jvm folder not exist
sudo mkdir /usr/lib/jvm
  • Move extracted jdk 8 folder to this location:
sudo mv jdk1.8.0 /usr/lib/jvm/jdk1.8.0
  • Install new java source in system:
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0/bin/javac 1
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0/bin/java 1
# Java Web Start (javaws) is no longer required to be installed!
# sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.8.0/bin/javaws 1
  • Choose default java:
sudo update-alternatives --config javac
sudo update-alternatives --config java
# Java Web Start (javaws) is no longer required to be installed!
# sudo update-alternatives --config javaws
  • Java version test:
java -version

# java version "1.8.0"
# Java(TM) SE Runtime Environment (build 1.8.0-b132)
# Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
  • Verify the symlinks all point to the new java location:
ls -la /etc/alternatives/java*
  • Enable Java plugin for Mozilla Firefox (even for Chrome)
# for 64-Bit jdk
sudo ln -s /usr/lib/jvm/jdk1.8.0/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins
# for 32-Bit jdk
sudo ln -s /usr/lib/jvm/jdk1.8.0/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins
  • JAVA_HOME configuration: Some tools require JAVA_HOME variable. You can set JAVA_HOME on Ubuntu either:
    1. With /etc/environment:
    2. sudo gedit /etc/environment
      # add the following line, save and exit
    3. Or in your home directory with .bashrc:
    4. sudo gedit .bashrc
      # add the following lines, save and exit
      export JAVA_HOME=/usr/lib/jvm/jdk1.8.0
      export PATH=$JAVA_HOME/bin:$PATH

My Ubuntu development pc: installation and settings


I use Ubuntu GNU/Linux daily with my development pc and these are just installation and setting notes for me. These may also be helpful for you, if you are even software developer.

Ubuntu installation is done and first things first
Change Ubuntu Theme
Install Programs
MySQL Database and Tools
PostgreSQL Database and Tools
SQLite3 Database
MongoDB NoSQL Database
Java JDK, Maven, NetBeans, Eclipse and settings
Python Pyramid Web framework
Aptana Studio 3 IDE (for Python, Ruby, JavaScript, Html, Css) and settings
Sublime Text 2 Editor
Git Version Control System and settings
SVN Version Control System and settings

Ubuntu installation is done and first things first:

  • Ubuntu update:

sudo apt-get update && sudo apt-get upgrade

  • When not installed, install the “ubuntu-restricted-extras” package:

sudo apt-get install ubuntu-restricted-extras

  • Enable additional hardware drivers:

System settings > Software & Updates > Additional Drivers Tab

  • Disable Ubuntu’s guest session account:

sudo gedit /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf
# Add this lines to the end of the file and save the file

# Close all graphical programs
# Restart your graphical desktop environment
sudo restart lightdm

  • Disable Ubuntu’s startup sound:

sudo xhost +SI:localuser:lightdm
sudo su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter play-ready-sound false

  • Check show my login name in the menu bar in System Settings > User Accounts
  • Disable online Dash search results in System Settings > Privacy
  • Install addional Language Support: System Settings > Language Support
  • Add new printer System Settings > Printers
  • Add show desktop icon to the launcher in System Settings > Appearance in Behavior tab
  • gedit settings:

In Menu > Edit > Preferences > View Tab: Check followings

Display line numbers, Display right margin at column 120,

Highlight current line and Highlight matching brackets.

In Menu > Edit > Preferences > Editor Tab:

set Tab width 4 and Uncheck Create a backup copy of files before saving.

Change Ubuntu Theme:

Install Gnome Cupertino Theme/Style: Ubuntu themes and icons are either in /usr/share/themes (it is for all users available) or in home/.themes (it is only for current user available).

  • Download Gnome Cupertino theme, extract and move:

sudo mv Gnome-Cupertino-unity /usr/share/themes

  • Download Faenza icon theme and move:

sudo mv Faenza /usr/share/icons

  • Install Unity Tweak Tool:

sudo apt-get install unity-tweak-tool

  • Install gtk2-engines-pixbuf: (because of Gtk-WARNING **: Unable to locate theme engine in module_path: “pixmap”)

sudo apt-get install gtk2-engines-pixbuf

  • Open Unity Tweak Tool and select your Gnome Cupertino theme and Faenza icon.

Install Programs:

  • Add Mozilla Firefox add-ons: Firebug, ColorZilla, gTranslate, FireFTP
  • Install Google Chrome browser:

sudo apt-get install chromium-browser

  • Install Adobe Flash plugin:

sudo apt-get install flashplugin-installer

  • Install Gimp Image Editor:

sudo apt-get install gimp

  • Install Inkscape Vector Graphics Editor:

sudo apt-get install inkscape

  • Download Dropbox deb package and install
  • Install Xpad – Sticky notes:

sudo apt-get install xpad

  • Install Skype:

sudo apt-get install skype

  • Install rar package:

sudo apt-get install unrar

  • Install Amarok Music Player:

sudo apt-get install amarok

  • Install KBlocks Tetris Game: ;)

sudo apt-get install kblocks

MySQL Database:

  • Install MySQL Server:

sudo apt-get install mysql-server

  • Install MySQL Workbench (better current version from mysql.com)

Download deb package and install MySQL Workbench.

PostgreSQL Database:

  • Install PostgreSQL and pgAdmin III:

See my blog post: PostgreSQL installation and settings on Ubuntu

SQLite3 Database:

  • Install SQLite3 and its development packages if you don’t already have them installed.

sudo apt-get install libsqlite3-dev

MongoDB NoSQL Database:

  • Download MongoDB for GNU/Linux:
  • Extract mongodb-linux-x86_64-2.4.6.tar.gz and rename as mongodb
  • Create db folder in mongodb
  • Start MongoDB with –dbpath option (better create start.sh file and start with ./start.sh)

# in terminal
bin/mongod --dbpath db

  • Start MongoDB Shell

# in terminal


  • Install Oracle JDK 6 and 7:

See my blog post: Ubuntu 12.04 – install sun jdk 6-7

  • Download Apache Maven and install:

# move extracted folder to this location:
sudo mv apache-maven.3.2.3 /usr/local/apache-maven-3.2.3
# add m2_home
sudo gedit /etc/profile
# add the following lines to the end and save
export M2_HOME
export M2
export PATH
# update
source /etc/profile
# check the maven version
mvn --version

  • Download NetBeans IDE and install:

chmod +x netbeans-7.3.1-linux.sh

  • Change NetBeans IDE Look and Feel to Nimbus:

See my blog post: NetBeans IDE 7.2 Look and Feel on Ubuntu 12.04

  • Install Eclipse IDE with project plugins.
  • Create eclipse.desktop file:

sudo gedit /usr/share/applications/eclipse.desktop

  • Add Desktop Entry text in eclipse.desktop and save:

[Desktop Entry]
Name=Eclipse Kepler EvaBlue
GenericName=Eclipse IDE


  • Start Eclipse IDE in Unity Menu and click Lock to Launcher.
  • Change Eclipse IDE black tooltips:

See my blog post: Black tooltips in eclipse on Ubuntu 12.04


  • Python 2.7.4 and Python 3.3.1 are preinstalled.
  • Install development tools

sudo apt-get install build-essential

Install Pyramid Web Framework with Python 3 and pyvenv:

  • Create virtual environments :

pyvenv-3.3 pyprojects
source pyprojects/bin/activate
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
# If wget complains with a certificate error, run it with:
# wget --no-check-certificate

  • Install Pyramid Packages:

easy_install pyramid

Aptana Studio 3 IDE (for Python, Ruby, JavaScript, Html, Css):

  • Disable Aptana Rubles for Documents folder:

Edit AptanaStudio3.ini file and add this line in the end and save:


Sublime Text 2:

  • Create sublime.desktop file:

sudo gedit /usr/share/applications/sublime.desktop

  • Add Desktop Entry text in sublime.desktop and save:

[Desktop Entry]
Name=Sublime Text 2
GenericName=Text Editor


[NewWindow Shortcut Group]
Name=New Window

  • Start Sublime Text in Unity Menu and click Lock to Launcher.
  • Install SublimeRope via Package Manager (for Python autocompletion)

Git Version Control System:

  • Install Git:

sudo apt-get install git

  • Git config for username and  email:

git config --global user.name "Username"
git config --global user.email "mail@example.com"
# show your settings:
git config --list

SVN Version Control System:

  • Install SVN (Eclipse IDE or NetBeans IDE has SVN Clients, but because of javahl lib)

sudo apt-get install libsvn-java

  • Eclipse IDE SVN javahl settings:

# find javahl path
sudo find / -name libsvnjavahl-1.so

Edit eclipse.ini file and add javahl lib path after -vmargs:

Select javahl in Menu Window > Preferences > Team > SVN > Select SVN Interface as javaHL

  • Netbeans IDE javahl setting: In Menu Tools > Options > Miscellaneous > Versioning Tab: Select Preferred Client as Javahl