Installing Applications from a .deb package on Linux(Ubuntu)

One way to install applications on a linux machine is using the “sudo apt-get install application name” command. But in case you have a lot of applications already downloaded from the internet in the form of .deb packages then this is how you install them.

Step 1:

Head on to the place where you have got a particular .deb package. In case you have downloaded a package and saved it in your downloads folder, you would type…

cd Downloads/

This will change the current directory to Downloads.You can typelsto find out if the package you are looking for is present in the folder. (ls command lists the files present in the directory you are currently in.

Step 2:

Once that is done. Type

dpkg -i packagename.deb

Where package name is the name of the package you are going to install. Foe example if you have a .deb file for opera browser in that folder. You can type the first three or four characters of the package name and then press TAB key, the rest will be filled out automatically. You can use this tip almost anywhere in the terminal while changing folders using thecdcommand also. Else you can choose to type the whole thing also, which I suggest is not the way to go if you wanna do things faster.

dpkg is a Debian Package Management System. You can use it to install, remove or get info about packages. “-i” in the command above corresponds to install. Similarly “-r” can be used to remove a package.

This will install the package. Wait for it to finish installing till you get the prompt.

Tc…

Hope i was clear… Post in your doubts…

Joys…

Advertisements

Install/Upgrade Without Internet – Linux (Ubuntu)

Have you ever wondered if you could update your Ubuntu system without the need to be connected to the internet. Installing packages, meaning software and driver, without need to be connected to the internet.

Well there is a way and i’m glad i found it. Because when you install ubuntu without an internet connection you end up with a system that can do almost nothing. So here’s how it goes. Read a few blogs and learnt it, this is my version of it.

Step 1:

Get the downloaded packages from a friend. Just like how you would copy all the .exe files or the setup files in windows. How do I do that you may ask. In ubuntu these files are located in the following folder. Browse your way to that folder and copy all its items on to a pendrive.

Folder Location:

/var/cache/apt/archives

You can copy the items in that folder to a pendrive using the following terminal command too..

sudo cp -R /var/cache/apt/archives /media/pendrivename

Where perndrivename is the name of your pendrive, which is case sensitive so be careful.

Now you have all the software needed to upgrade your system.

(Remember you have copied all the packages from your friend’s pc. So chances are that you will get all the software that your friend had in his/her system. If you want to be selective of what you are going to copy. Sort them out before you copy. Dont delete the files in your friend’s machine though 🙂 )

Step 2:

Plug in to your machine. Now you have to copy all the files that you brought to your version of /car/cache/apt/archives

Else to make things simple, just copy and paste these commands on to your terminal.

cd /media/pendrivename/archives

sudo cp -R * /var/cache/apt/archives

Sudo gives you administrative rights.

-R does a recursive copy meaning it goes into all the subfolders also and copies accordingly.

Step 3:

Time to install.

Type in the following command in your termial and you are done. This will install all the packages that you just copied.

sudo dpkg -i *

Where -i stands for install

and * is usually added when you want to apply a particular command to ALL the files.

Tc..

Joys

Typing In Other Languages (Ubuntu – Linux)

So i was wondering how to type in different languages in Gedit or even the terminal for that matter.

So there are two ways of going about it.

Option 1: Keyboard Layout

Go for this option if you are going to type out a blog or a paragraph or even a sentence for that matter. Its pretty simple.
Navigate to
System>Preferences>Keyboard
Click on the Layouts Tab. Here you can add layouts to almost any language you wish.
From here its pretty straight forward. Select your country. Select the language that you want to type in. There might be several versions/layouts of the same language also. Click on the one you like. You will see the corresponding layout also for your reference.

Keyboard_layout

 

 

 

 

 

 

 

 

 

Selecting or Switching from one keyboard layout to another is a piece of cake. You will have a new segment there in one of your panels that corresponds to the keyboard. Click on it and you can select what you need.

 

 

Option 2: Character Map

If you want to type a single word or a single letter. Then this is your deal.
Rather than adding a whole keyboard layout. You can use this.
Navigate to
Applications>Accessories>Character Map

 

 

 

 

 

Select the language you want. You get a map of all the characters. Double click on the characters to add them. Click on “copy text” to copy it. Paste anywhere. This should do the trick when you have very little to type. Not recommended for typing whole sentences or paragraphs or anything more than a word though.

 

Tc … Post your comments

Joys

Linux Scripting

The thought of a SCRIPT seems to be so.. TECHY…. Yet, when you start learning it. You realize that its quite easy. Will be recording my progress in this field as well.

While i’m talking about Linux scripts i want you to visit this wonderful website that i started learning from. The language is a bit odd, but then it does the job. I personally loved it. Visit it and give me your comments. I am grateful to the author.

This is the link …

http://www.freeos.com/guides/lsst/

Tc…