Share |

Installing softwares in Ubuntu without an Internet connection

The page you requested does not exist. A search for forum resulted in this page.
Shows how to install R

I am a new Linux user, for only about 3/4 months I am using Ubuntu. I think the biggest problem a new Ubuntu user faces is the problem of installing softwares (especially if s/he has no or a very slow internet connection). Ubuntu comes with a very good suite of necessary softwares, but it is obvious that we will need to install some others according to our personal needs.

I have a very slow Internet connection at my home with limited bandwidths to use. But I know some places where I can have good download speed and can download even big files and bring them home with a flash drive and install them in my home computer (this is exactly what I do for using windows). I googled a lot for installing R on Ubuntu without an Internet connection (that means in an offline machine), but it seemed that I am the only R user in the whole world who does not have a good Internet connection!

At last after a lot of trial and error and frustration I found a software named “Keryx” with which I could do exactly what I was trying; and now I am very eager to share my experience; here is the procedure for installing softwares on Ubuntu without an Internet connection (with the help of Keryx).

Step 1: Download “Keryx” from http://keryxproject.org and extract it in your pen drive.

Step 2: Open your Ubuntu machine, go keryx/linux in your pen drive and double click on “keryx” icon. A window like the main image of the article will appear. Give a name for your project, let’s it is “mine”. It is better to create different projects for different softwares, but a single project won’t work bad. Now click on “New Project”. Keryx will offer you to download the latest package list, click on No (we are now on an offline machine). For ease of understanding I have added the following screen shot-

Screenshot-1.png
Now keryx will take record about your system (all the softwares installed in Ubuntu and their versions).

Step 3: Bring your pen drive to some where you may have a good download speed (It might be your University lab, cyber cafe or your friend’s home). Go keryx/win32 in your pen drive (If your current computer runs on Linux go keryx/linux), and double click on “keryx” icon. A window like before will appear and offer you to download the latest package list, click on Yes. If the download speed is good it won’t take long.

Step 4: After downloading the list you will be able to see all the available softwares in Ubuntu software center. You may search for particular software in the search field. For example if you want to install R, write “r-base” in the search field, you will find the “r-base” package, if you want to install additional packages just write R, scroll a little down and you will find a lot of add on packages of R. Now, right click on the software you want to download, click on “download”, a window will appear showing all the dependencies for your desired software and will ask for your confirmation to download all these packages. Click Yes. See the screen shot below (it was taken when I was attempting to download R's gregmisc package). In this way download all the required softwares.

daaa.jpg

Step 5: Bring your pen drive home. Open your Ubuntu machine, go keryx/projects/mine in your flash drive and copy the folder named “packages” to your home folder. Alternatively you can navigate to the directory. For this open the terminal and write-

cd /media/tanvir/keryx/projects/mine/packages

Write the name of your pen drive instead of tanvir.

If you have not changed your working directory and copied the folder in your home directory, open the terminal and write –

cd packages

Now write-

sudo dpkg -i –force-depends *.deb

You will be asked for your password. Write it but it wont be visible (not even the stars). Now hit enter(see the screen shot)-

Screenshot6.png
The installation should begin and after only a few minutes (the time depends on the number of softwares you have downloaded and their size) you will get a computer equipped with all your required softwares.

You can also install the downloaded softwares from keryx’s drop down menu, simply click on “Project” of keryx menu then click on “Install Packages”, a new window will appear and you can select the softwares you want to install, after selecting just click on “Continue”. But I don’t prefer it because I have faced some problems in this procedure.

Step 6: After installation procedure is finished don’t forget to update keryx about your system, so that next time keryx will avoid downloading any dependencies that have already been installed. For this click on “Project” of keryx drop down menu and click on “Update Status”, you will be asked for confirmation click on Yes, wait for a while, keryx will update itself about the system.

You can also update your Ubuntu operating system using Keryx. For this just click on “Get Updates” on Keryx menu. Keryx will download all available updates for your already installed softwares, which you can install following the same procedure.

Sharing softwares with friends is also possible now; just give your friend the packages folder (s/he must have the same Ubuntu version as yours). S/he has to copy the folder to his/her home folder and the commands are the same.

Hope these will work fine.
Enjoy open source.


Comments

Interesting, Tanvir. I had never thought about this. But it will be useful for people back home or with a slow connection as you said. Good description as well.

One thing regarding formatting:
Make the images at most 620pixel wide. This will fit nicely in the body of the article. If the image is larger than this, just set the width=620 AND do no put anything for the height. This way, the image will be appropriately scaled.

Again, thanks for keeping us updated.

Tanvir Khan's picture

Thank you sir.I was feeling uncomfortable about the big images too. Thank you again for the tips.

R manual "R Installation and Administration" has all the info regarding installing R without internet connections.

Tanvir Khan's picture

Thanks a lot for the information,sorry I have never noticed it. But I think for a new Linux user this procedure is not very easy, I mean finding the essential libraries and dependencies (they are not small in number) and installing them before compiling might be head storming and frustrating. Installing software in Ubuntu with a decent Internet connection is fun; and I just tried to describe how people like me can have the fun.
Thanks again and best wishes.

Dear Tanvir,
Thanks a lot for this article. But unfortunately, these steps don't work on versions >= ubuntu 10.10. keryx 1.0 has been released, which can work in such cases. But installing software with the help of windows PC is not that easy. I've tried it today. But couldn't find an easier way for beginners like me. Would you please look at this and help us to understand this new version? That would be of great help.
Thanks.

Well, I guess that after all you do need an internet connection for that, it may not be at your home but still. As for installing software I was never too good at it, I only know how to handle the exe files but that's it, thanks for sharing the guide!

Tanvir Khan's picture

Dear, unfortunately I still haven't found anything useful for the versions you mentioned. I posted it in the keryx forum and they replied that, they are working on removing the python<=2.7 restriction.Just hope, their effort becomes a success soon.

Hello Tanvir,
Thanks a ton.

Thanks I dont have an Internet connection on my Home Ubuntu computer, and will have to give this a try.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • LaTex commands embedded in text will be interpreted and rendered. Additional information can be found at DruTex Documentation Pages
    • Assists automatic numbering of tex, equation, and equations environments.
    • Provides different environments to create rendered images (especially maths).
    • You may use <swf file="song.mp3"> to display Flash files inline
    • You can use BBCode tags in the text. URLs will automatically be converted to links.
    • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <drupal6>, <latex>, <rsplus>, <sas>, <text>. The supported tag styles are: <foo>, [foo].

    More information about formatting options

    By submitting this form, you accept the Mollom privacy policy.

Google Video

Loading...
Loading...