Wi-Fi connection problem on Ubuntu 14.04

ubuntu

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.

Solution:

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

My Ubuntu development pc: installation and settings

ubuntu

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
[SeatDefaults]
allow-guest=false

# 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
exit

  • 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
bin/mongo

Java:

  • 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
M2_HOME=/usr/local/apache-maven-3.2.3
M2=$M2_HOME/bin
PATH=$M2:$PATH
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
./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]
Version=1.0
Name=Eclipse Kepler EvaBlue
GenericName=Eclipse IDE


Exec=/home/devsniper/dev/eclipse/eclipse
Terminal=false
Icon=/home/devsniper/dev/eclipse/icon.xpm
Type=Application
Categories=IDE;Development

  • 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:

  • 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:

-Dstudio.rubleUserLocation=/home/iktac/.aptana-rubles

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]
Version=1.0
Name=Sublime Text 2
GenericName=Text Editor

Exec=sublime
Exec=/home/iktac/Installed/sublime-text2/sublime_text
Terminal=false
Icon=/home/iktac/Installed/sublime-text2/Icon/48x48/sublime_text.png
Type=Application
Categories=TextEditor;IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow

[NewWindow Shortcut Group]
Name=New Window
Exec=/home/iktac/Installed/sublime-text2/sublime_text
TargetEnvironment=Unity

  • 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:
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni

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