How to install Ubuntu Desktop Packages 13.04 LTS

Posted by Md. Mahidul Hasan on 6:06 PM with No comments
How to install Ubuntu Desktop Packages 13.04 LTS

### Find any installed program from DASH HOME.
### When you run a program if it's dependency is not installed yet, Ubuntu automatically add those dependency to the updates. If you run update you will be able to run those programs from the next times.

### Set root password
root@mahidul-desktop:~# passwd root
Enter new UNIX password:
Retype new UNIX password:

### Give root access to your account. 
Here my account is mahidul.
mahidul@mahidul-desktop:~$ sudo vim /etc/sudoers
mahidul ALL=(ALL:ALL) ALL

### Set ip address to the Ethernet port.
mahidul@mahidul-desktop:~# sudo nano /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet static
        address 192.168.1.11
        gateway 192.168.1.1
        netmask 255.255.255.0

### set up dns records.
In Ubuntu 12.4 sometimes resolv.conf automitacally replace by a blank page. Just do the following step,
mahidul@mahidul:~$ sudo cp /etc/resolv.conf /etc/resolvconf/resolv.conf.d/base

mahidul@mahidul-desktop:~# sudo nano /etc/resolv.conf
search mahidul.com
nameserver 192.168.61.62

mahidul@mahidul-desktop:~# sudo /etc/init.d/networking restart

Some times in Ubuntu 12.04/12.10/13.04 if you issue sudo /etc/init.d/networking restart pc hang.if it does then don't restart networking, restart network-manager like below-

mahidul@mahidul-desktop:~# sudo /etc/init.d/network-manager restart
mahidul@mahidul-desktop:~# sudo reboot

### Install some important packages
mahidul@mahidul-desktop:~# sudo apt-get install vim gcc g++ telnet wget

### Make the date appear next to the time indicator in Gnome Classic?
mahidul@mahidul-desktop:~# sudo apt-get install dconf-tools
mahidul@mahidul-desktop:~#  dconf-editor
Now a visual interface will appear. Then follow these steps " com > indicator > datetime > select show date and show day"

### Add refresh button in ubuntu
mahidul@mahidul-desktop:~# sudo apt-get update
root@mahidul-desktop:~# sudo add-apt-repository ppa:dr3mro/nautilus-actions-extra
root@mahidul-desktop:~# sudo apt-get update
root@mahidul-desktop:~# sudo apt-get install nautilus-refresh
root@mahidul-desktop:~# reboot
root@mahidul-desktop:~# nautilus -q

### Add Bookmarks/Shortcuts to left sidebar in Ubuntu?
At Ubuntu 12.04 : Adding Bookmarks/Shortcuts to left sidebar of nautilus manager
1. Go to inside to your folder and press Ctrl + D (or ADD from Bookmark option in menu bar).

This will add your first bookmark as shown below. In my case the folder was example-content.
2. Now you can Drag and Drop your folder into the Bookmarks.

### Install flash plugin
root@mahidul-desktop:~# sudo apt-get  install flashplugin-installer

### Install Skype
Remove previous installed skype:root@mahidul-desktop:~# sudo apt-get purge skype skype-bin

Install the necessary support libraries:
root@mahidul-desktop:~# sudo apt-get install lsb-core ia32-libs libqt4-dbus libqt4-network libqt4-xml libasound2 ia32-libs lib32stdc++6 lib32asound2

Download the skype from http://www.skype.com/en/download-skype/skype-for-linux/:

root@mahidul-desktop:~# sudo wget http://download.skype.com/linux/skype-ubuntu_4.0.0.7-1_i386.deb
root@mahidul-desktop:~# dpkg -i skype-ubuntu_4.0.0.7-1_i386.debroot@mahidul-desktop:~# dpkg -i skyperoot@mahidul-desktop:~# gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'Update-notifier', 'Skype']"

To get new massage pop in we need to install skype warper:
root@mahidul-desktop:~# sudo add-apt-repository ppa:skype-wrapper/pparoot@mahidul-desktop:~# sudo apt-get update && sudo apt-get install skype-wrapper

### Install Teamviewer
root@mahidul-desktop:~# wget http://www.teamviewer.com/download/teamviewer_linux.deb
root@mahidul-desktop:~# sudo dpkg -i teamviewer_linux.deb

If you have 64-bit version of Ubuntu, run the commands below to download that version:
root@mahidul-desktop:~# sudo apt-get install libc6-i386 lib32asound2 lib32z1
root@mahidul-desktop:~# wget http://www.teamviewer.com/download/teamviewer_linux_x64.deb
root@mahidul-desktop:~# sudo dpkg -i teamviewer_linux_x64.deb

### Install vlc player
root@mahidul-desktop:~# sudo apt-get update
root@mahidul-desktop:~# sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc

Or, Install VLC 2.0.1 in ubuntu 12.04/11.10,
root@mahidul-desktop:~# sudo add-apt-repository ppa:videolan/stable-daily
root@mahidul-desktop:~# sudo apt-get update
root@mahidul-desktop:~# sudo apt-get install vlc

VLC version 1.0.6 in Ubuntu 10.04 is severely out-of-date.
root@mahidul-desktop:~# sudo add-apt-repository ppa:lucid-bleed/ppa
root@mahidul-desktop:~# sudo apt-get update
root@mahidul-desktop:~# sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc

### install java (for keepvid.com and other softwares)
### Install java from tar file
mahidul@mahidul:~$ mkdir /usr/java
mahidul@mahidul:~$ cd /usr/java
mahidul@mahidul:/usr/java$ wget http://download.oracle.com/otn-pub/java/jdk/7u5-b06/jre-7u5-linux-i586.tar.gz?AuthParam=1342938354_aeb40f51aa637adde30ef690db672e6c
mahidul@mahidul:/usr/java$ chmod a+x jre-7u5-linux-i586.tar.gz
mahidul@mahidul:/usr/java$ sudo chmod a+x jre-7u5-linux-i586.tar.gz
mahidul@mahidul:/usr/java$ tar -zxvf jre-7u5-linux-i586.tar.gz
mahidul@mahidul:/usr/java$ cd /usr/lib/firefox/plugins
mahidul@mahidul:/usr/lib/firefox/plugins$ sudo ln -s /usr/java/jre1.7.0_05/lib/i386/libnpjp2.so

## install java from apt-get
The installer will install all required packages including Oracle JDK 7,  Oracle JRE 7, and  the browser plugin. Close all running web browsers, then open the terminal under Ubuntu 12.04/11.10 and run these commands:
mahidul@mahidul-desktop:~$ sudo add-apt-repository ppa:upubuntu-com/java
mahidul@mahidul-desktop:~$ sudo apt-get update
mahidul@mahidul-desktop:~$ sudo apt-get install oracle-java7-installer

## Un-install java from apt-get
After finishing the installation of Oracle Java 7, open Firefox and go to Add-ons Manager and make sure that the Java Plugin is well installed and enabled. To uninstall Oracle Java 7, run this sequence of commands:
mahidul@mahidul-desktop:~$ sudo apt-get install ppa-purge
mahidul@mahidul-desktop:~$ sudo ppa-purge ppa:upubuntu-com/java
mahidul@mahidul-desktop:~$ sudo apt-get remove oracle-java7-installer
mahidul@mahidul-desktop:~$ sudo apt-get update



### install java from .bin file
For 32-bit: http://download.oracle.com/otn-pub/java/jdk/6u29-b11/jdk-6u29-linux-i586.bin?AuthParam=1342423009_bab0a5234582adc23452957573d1f8ad
For 64-bit: http://download.oracle.com/otn-pub/java/jdk/6u29-b11/jdk-6u29-linux-x64.bin?AuthParam=1342423087_c1d7bf64c06a08eb7eef98364bc60913
Download page for other distro: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u29-download-513648.html
From the upper URL download the appropriate .bin file, for example jdk-6u29-linux-i586.bin if you need 32-bit Java or jdk-6u29-linux-x64.bin for 64-bit version.

mahidul@mahidul:~$ chmod +x jdk-6u29-linux-i586.bin
mahidul@mahidul:~$ ./jdk-6u29-linux-i586.bin

(optional) Inside bin/idea.sh add the following on the second line:
mahidul@mahidul:~$ export IDEA_JDK=/path/to/jdk1.6.0_29

If you want to run keepvid.com then download this java program and install like this way,

mahidul@mahidul:~/isobackup$ wget http://sdlc-esd.sun.com/ESD6/JSCDL/jdk/7u5-b06/jre-7u5-linux-i586.tar.gz?AuthParam=1342603013_119ef4845c55346027bf5b34b1de5f2d&GroupName=JSC&FilePath=/ESD6/JSCDL/jdk/7u5-b06/jre-7u5-linux-i586.tar.gz&File=jre-7u5-linux-i586.tar.gz&BHost=javadl.sun.com


### Install Java JRE (64-bit)
mahidul@mahidul:~$ sudo mkdir -p -v /opt/java/64
mahidul@mahidul:~$ cd Downloads && tar xvzf ~/Downloads/jre-7u5-linux-x64.tar.gz
mahidul@mahidul:~$ sudo mv -v ~/Downloads/jre1.7.0_05 /opt/java/64
mahidul@mahidul:~$ sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/64/jre1.7.0_05/bin/java" 1
mahidul@mahidul:~$ sudo update-alternatives --set java /opt/java/64/jre1.7.0_05/bin/java
mahidul@mahidul:~$ mkdir -v ~/.mozilla/plugins
mahidul@mahidul:~$ sudo apt-get remove icedtea-6-plugin && sudo apt-get remove icedtea-7-plugin
mahidul@mahidul:~$ rm -v ~/.mozilla/plugins/libnpjp2.so
mahidul@mahidul:~$ ln -s /opt/java/64/jre1.7.0_05/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
mahidul@mahidul:~$ /opt/java/64/jre1.7.0_05/bin/ControlPanel
mahidul@mahidul:~$ rm -v ~/.mozilla/plugins/libnpjp2.so
mahidul@mahidul:~$ mkdir -v ~/.mozilla/plugins
mahidul@mahidul:~$ ln -s /opt/java/64/jre1.7.0_05/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

Removal
=======
If you wish to remove JRE follow the bellow steps:
a. Remove the folder /opt/java and what's in it, by means of the following terminal command.
mahidul@mahidul:~$ sudo rm -r -v /opt/java
mahidul@mahidul:~$ rm -v ~/.mozilla/plugins/libnpjp2.so


### Enable networking file share with windows workstations
root@mahidul-desktop:~# sudo apt-get install smbfs


### install VirtualBox 4.1.12 in ubuntu 12.04
Open the terminal and run the following commands. You need to edit /etc/apt/sources.list
mahidul@mahidul:~$ sudo vim /etc/apt/sources.list

Add the following line. Then save and exit the file.
mahidul@mahidul:~$ deb http://download.virtualbox.org/virtualbox/debian precise contrib

Now install PGP key using the following command
mahidul@mahidul:~$ wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

Update source list
mahidul@mahidul:~$ sudo apt-get update

Install virtualbox
mahidul@mahidul:~$ sudo apt-get install virtualbox-4.1


### Printer setup In-formations
Floor Print Server IP Queue Name Manufacturer/Model
Ground Floor

First Floor 192.168.4.101 PS-FL1-U Samsung/ML -1640 series
Second Floor 192.168.1.213 PS-FL2-U HP/LaserJet 1010

. Steps to set up a printer
The following steps are for debian users. This should work on ubuntu too. Other linux distribution/OS users please see corresponding cups documentation. As root issue the following command
mahidul@mahidul:~$ apt-get install cupsys foomatic-db foomatic-filters-ppds

Fire up your browser and go
http://localhost:631

Click "Administration"
Click "Add printer"
Give a name e.g ."HP". The rest two are optional. Click "Continue"
Choose "LPD/LPR Host or Printer"
Put "lpd://printer-ip-address/queue-name" from above table like "lpd://192.168.1.213/PS-FL2-U"
Select "HP (your printer name)"
Choose "HP LaserJet 1010 Foomatic/hpijs (en) (your printer model)"
Click "Add Printer"
You are done.
Don't give "Test page" print.
Print the first page of your document you want to print to test whether the setup is successful.

File and Printer sharing problems between Ubuntu 10.04 - Vista
mahidul@mahidul-desktop:~$ sudo service cups start

Ok, to get Vista to see the printer across the network, make sure the following is done:
. System>Administration>Printing>Printer>Properties> Policies has the following checked: Enabled, Accepting Jobs, Shared
. System>Administration>Printing>Printer>Properties> Access Control has "Deny printing for everyone except these users:" selected and then add all of the relevant users
. System>Administration>Printing>Server>Settings has "Publish shared printers connected to this system" checked
. System>Administration>Users and Groups>Manage Groups> has "lpadmin" added

As soon as this was done the printer showed up on the Network Window in Vista under the Ubuntu machine icon. From there I added the printer in Vista although it wanted to download the driver again.

Now it works!
There you go. Other program will be installed automatically. Have fun!!!:D


### Bijoy/Avro Bangla typing software
root@mahidul-desktop:~# sudo apt-get install ibus-m17n m17n-db m17n-contrib ibus-gtk
root@mahidul-desktop:~# sudo dpkg -L m17n-db|grep bn
root@mahidul-desktop:~# sudo dpkg -L m17n-contrib|grep bn
root@mahidul-desktop:~# ibus-daemon -xdr

Do the following steps and you will be able to write bangla.
1. Search the ibus. You can see the ibus applet at the system tray area (on the right corner at the screen). If you can't get the system tray applet then execute equivalent command  ibus-setup.
2. Right click on it > preferences >Input Method > Customize active input mathod > Select an input mathod > bengali > Bengali Unijoy > add
3. At the system tray you will find a key-board sign. Right click on it and select Bengali Unijoy (m17n)
4. Now open LibreOffice Writer > Select font name Lohit Bengali


### Avro Keyboard Standard Edition 5.1.0 with Bangla Spell Checker
This section describes briefly how to compile Avro Keyboard from source.

1) If you need further help regarding codes from OmicronLab,
you can contact us at: http://www.omicronlab.com/forum/

2) If you need assistance regarding codes from 3rd party libraries used in Avro Keyboard (see below for list), contact respective authors of that library.

Required Delphi Version:  Delphi 2010
Required 3rd party libraries: This source includes the following 3rd party libraries:

1) NativeXml.
Open source.
Site: http://www.simdesign.nl/xml.html

2) PCRE Delphi wrapper.
Open source.
Author: Renato Mancuso <mancuso@renatomancuso.com>

Before compiling, you have to install the following 3rd party libraries in you Delphi environment:

1) DISQLite3
Freeware (Not open source)
Site: http://www.yunqa.de/

2) ICS
Freeware with Source Code.
Site: http://www.overbyte.be/

3) Delphi Jedi (JVCL and JCL)
Open source.
Site: http://www.delphi-jedi.org/

If you are ready with the above mentions requirements,
the delphi project files (*.dpr) should be compiled without any problem.


### Find a file in linux
mahidul@mahidul:~$ find / -name 'program.c' 2>/dev/null
mahidul@mahidul:~$ find / -name 'program.c' 2>errors.txt

Here,
/              Start searching from the root directory (i.e / directory)
-name      Given search text is the filename rather than any other attribute of a file
'program.c'
Search text that we have entered. Always enclose the filename in single quotes.. why to do this is complex.. so simply do so.

Note : 2>/dev/null is not related to find tool as such. 2 indicates the error stream in Linux, and /dev/null is the device where anything you send simply disappears. So 2>/dev/null in this case means that while finding for the files, in case any error messages pop up simply send them to /dev/null i.e. simply discard all error messages.

Alternatively you could use 2>error.txt where after the search is completed you would have a file named error.txt in the current directory with all the error messages in it.



### How do I check if I have a 32-bit or a 64-bit OS?
mahidul@mahidul:~$ uname -a
### Result for 32-bit Ubuntu:
Linux discworld 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

### whereas the 64-bit Ubuntu will show:
Linux discworld 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

mahidul@mahidul:~$ more /etc/issues
mahidul@mahidul:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04 LTS
Release:    12.04
Codename:    precise


### install spark client
Answer: Due spark written in jave we need to java program to run it. First install java then follow these procedure,
mahidul@mahidul:~$ sudo apt-get install spark
mahidul@mahidul:~$ spark &
Wait some time to open spark. after that add your user name, password and server ip address to connect with your server.

We can also install the spark from tar file
mahidul@mahidul:~$ sudo apt-get install ia32-libs
mahidul@mahidul:~$ sudo wget http://download.igniterealtime.org/spark/spark_2_6_3.tar.gz
mahidul@mahidul:~$ sudo tar -zxvf spark_2_6_3.tar.gz
mahidul@mahidul:~$ sudo mv Spark/ /usr/local/
mahidul@mahidul:~$ sudo ln -s /usr/local/Spark/Spark /usr/local/bin/spark
#mahidul@mahidul:~$ sudo ln -s /usr/local/Spark /usr/local/bin/spark/Spark
mahidul@mahidul:~$ sudo /usr/local/bin/spark/starter
mahidul@mahidul:~$ sudo vim /usr/local/Spark/Spark
#for i in `ls "$app_home/lib/windows" | egrep "\.(jar$|zip$)"`
#do
#  add_class_path "$app_home/lib/windows/$i"
#done

mahidul@mahidul:~$ spark &
Wait some time to open spark. after that add your user name, password and server ip address to connect with your server.

### Copy a file from one host to another host
copy a test.txt file from your own pc to another pc (192.168.1.23).
mahidul@mahidul:~$ scp test.txt shamrat@192.168.6.23:/home/shamrat

copy a test.txt file from another pc (192.168.1.24) to your own pc.
mahidul@mahidul:~$ sudo scp shamrat@192.168.6.23:/home/shamrat/test.txt /home/mahidul


### Install google chrome browser in ubuntu 12.04
For 32-bit:
mahidul@mahidul:~$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
mahidul@mahidul:~$ cd Downloads
mahidul@mahidul:~$ sudo dpkg -i google-chrome-stable_current_i386.deb
mahidul@mahidul:~$ sudo apt-get -f install


### Install Mac OS X Lion Theme for Ubuntu 12.04
Add repository
        sudo add-apt-repository ppa:cairo-dock-team/ppa
        sudo apt-get update
        sudo apt-get install cairo-dock cairo-dock-plug-ins
        sudo add-apt-repository ppa:noobslab/themes
        sudo apt-get update

Install Cursors
        sudo apt-get install mac-os-lion-cursors

Install Icons
        sudo apt-get install mac-os-lion-icons

Install Theme
        sudo apt-get install mac-os-lion-theme

Apply Mac OS X Splash:
        wget http://dl.dropbox.com/u/53319850/NoobsLab.com/Paw-OSX.zip
        unzip Paw-OSX.zip
        sudo cp -R Paw-OSX/ /lib/plymouth/themes
        sudo update-alternatives --install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/Paw-OSX/paw-osx.plymouth 100
        sudo update-alternatives --config default.plymouth
        sudo update-initramfs -u
        sudo apt-get install compizconfig-settings-manager
        sudo apt-get install gnome-tweak-tool


### Monitor real-time download speed in terminal.
mahidul@mahidul:~$ sudo apt-get install nethogs
mahidul@mahidul:~$ sudo nethogs

### How to Monitor real-time download speed in grafical mode.
Answer: Install knemo on ubuntu. open the terminal and run the following command
mahidul@mahidul:~$ sudo apt-get install knemo

Note:-This tool is mainly for KDE if you try to install on ubuntu it will install many KDE packages. And it will not apear in short in the task-bar like dumeter.


### Install task manager in linux
mahidul@mahidul:~$ sudo apt-get install conky
mahidul@mahidul:~$ ./conkyrc
mahidul@mahidul:~$ sudo conky &

To view it from command line use the bellow command,
mahidul@mahidul:~$ sudo iftop


### 5 System Monitoring Tools for Ubuntu
Web-site: http://www.omgubuntu.co.uk/2011/11/5-system-monitoring-tools-for-ubuntu
1. Indicator-SysMonitor (for monitoring the CPU+RAM+DUmeter)
(http://www.webupd8.org/2011/05/how-to-display-network-upload-download.html)
2. Conky
3. Screenlet
4. ‘Top’
5. ‘System Monitor’

### A List Of 22 Application Indicators For Unity - Ubuntu 12.04/11.10
Web-site: http://www.upubuntu.com/2012/05/list-of-22-application-indicators-for.html


### Troubleshoot_1: resolv.conf auto removed after restart
In Ubuntu 12.4 sometimes resolv.conf automitacally replace by a blank page. Just do the following step,
mahidul@mahidul:~$ sudo cp /etc/resolv.conf /etc/resolvconf/resolv.conf.d/base


### Troubleshoot_2: rcconf is showing error "rcconf needs dialog or whiptail"
Ubuntu 12.04 - rcconf needs dialog or whiptail
RCCONF is a TUI (text user interface) utility that lets you configure the services and daemons that are launched at system start-up.

mahidul@mahidul:~$ sudo apt-get install rcconf

When you install it on Ubuntu 12.04 and then launch, it returns the following error: "rcconf needs dialog or whiptail"

Dialog and whiptail are utilities to display user-friendly dialog boxes from shell scripts. Despite the fact that whiptail comes preinstalled with the system, rcconf doesn't run. To solve this, install dialog:

mahidul@mahidul:~$ sudo apt-get install dialog

Now launch a terminal, and run rcconf.