September 22, 2009

Ubuntu : Updating and Installing Softwares

Posted in Ubuntu tagged at 2:58 pm by subodhrohilla

Well ,After configuring network and local repos ,the next major thing is to know how to add/remove software

Installing Softwares :

The quickest and most user friendly to install/remove is using Add/Remove Software.

To use it :

1)Go to Application>Add Remove Software

2)In the upper drop-down menu select “All available applications” ( You can select others but previous one contains all and most of users don’t bother bother about much details of software maintenanace)

3)If you know to which category the particular software belong then select it from left side-bar but if you don’t know then simply select “all”

4)In the search box type the name of the software you want to install/remove

5)If you want to install then select the check box in front of it and to remove uncheck it

6) Click on Apply Changes .

7) Then , software install/remove will begin and at the last you will be given notification about changes whether they were successful or not.

8) Remember , you can do muliple install/remove at a single time by selecting many softwares at a single time.

Command-Line Way :-

Some users like command-line becuse it is generally FASTER than GUI .

If you the software name then for doing it more quickly use : –

1) Open terminal

2) For  installing type  :- sudo apt-get install software_name

3)For removing :- sudo apt-get remove software_name

4) For multiple install/remove you can always type :- sudo apt-get install software1 software2 software3 ….. ( Providing space between two software names )

But what if you don’t exactly know the software name 😦 and you want to install it. Then ,to find it use following procedure :-

GUI Way :-

1) Click System>Administration>Synaptic manager

2) In the search box type the software name and then click on the relevent package name which is similar to the name you know

I discourage the use of  Synaptic manager as the first preference as the update manager because you may get broken dependencies problems ( i.e. some installed or half-installed packages depend on some packages which you haven’t installed.

But it comes handy if you  want to install a particular library rather than full software.

CLI way :-

1) For searching : – sudo aptitude search software_name  ( Aptitude is command-line utility having same purpose as that of Synaptic)

2)To install :- sudo aptitude install relevent_packages_name

Now, i want to discuss about the package system ( which is debian). The dpkg is at the top of hierarchy and it is the command which is actually used to install/remove software in the background and all other commands ( apt-get,aptitude) and softwares ( Add/Remove Softwares , Synaptic Manager) are graphical utilities to easily do the operations.  🙂

Updating :

Although the graphical update manager ( System > Administration > Update Manager )  in ubuntu is quite good for updating but it becomes very irritating sometimes because it pops up after every one or two hours whether updates are available or not.

For that i am suggesting command line  method :-

Open your terminal and paste following commands :

1) sudo apt-get update ( For updating package lists )

2)sudo apt-get upgrade ( For downloading and installing updates)

And to get rid of irritating update manager type :- sudo apt-get remove update-manager

IGNORE THE GPG-KEY WARNING ( It is because bit server doesn’t have official key from ubuntu which is not necessary)

For the Beginners it is OK to use GUI but i strongly suggest to subsequently adapt to CLI for two reasons :-

1) It is not that GEEKISH as you think ( Because most users fear the darkness of terminal )

2)Your options are inceased you can use remote login by just enabling telnet which doesn’t demand any softwares to be installed from client side

3) Faster the gui ( You can feel the diffeence while updating ubuntu by two diffrent methods)

But the choice is still yours  🙂 ( Freedom of customizing free software )

If just want desktop use then CLI is not that damn necessary but if want to play with nuts and bolts of linux ( Which you should because you are tech guys ) then CLI is then best choice to go deeper in to the linux.

Advertisements

September 18, 2009

Ubuntu : Network and Local Repo Configuration

Posted in Ubuntu tagged , at 6:09 pm by subodhrohilla

Configuring Network :

After noticing that it is not that straightforward for a new user  to configure the lan by just double clicking the icons .

Here is  a step-by-step guide to specify the simple basic steps :-

1) In the task-bar area ( Upper rightmost corner ) , you will see a LAN icon , just right click and select edit connections.

2) Click on wired tab and select eth0 (If clicking is disabled then click n unlock and enter your password)

3) Click on edit button

4) In new window select IPv4 Settings tab

5) In method select manual ( Default is DHCP so change that )

6) Click on add and in three columns enter your ip address,subnet mask and gateway respectively.

7) Now, do not FORGET to press ENTER otherwise the columns will not be saved.

8 ) Write the dns server in dns server  box and check the connect automatically button

9) Click apply

10) Left click on the lan icon and then click on eth0 .

11) Finally, network on ubuntu is configured 🙂

Configuring Local Repository :

Now comes the problem of updating from the local repository which most of the users find difficult

But  actually it is very simple and effortless . You just need to follow the following steps :-

1) Open Applications>Terminal from the leftmost menu

2) In terminal type :- sudo wget http://172.16.32.222/apt/sources.list.d/bitrepo-jaunty.list -O /etc/apt/sources.list.d/bitrepo-jaunty.list

3) It asks for password , enter the password used during installation

But still there is one problem that when you install some software , it is downloaded from internet not from local repository

To remove that : –

1) Click System>Administration>Software Sources

2) Enter your password and UNCHECK all checkboxes in first tab

3) Click on close

Now,the software will be installed from lan and not from damn slow internet 🙂