Download new repositories and applications to any computer, and install it to your computer offline using Cube

camicri
  5 years ago
  -1

Finding applications in Linux is made easy using a software package manager, where you can find apps and install it easily with just one click. However, Internet connection is needed in order to install most of Linux Applications, especially to those available in the software center.
 
And for offline users, It is very crucial to manually download every piece of package dependencies across the net just for them to install these kind of applications. And even for users with slow internet connection, it is still a problem. Also, manual package installation is also a dangerous thing to do, since some are not aware of package dependencies, and also may lead to the system to be affected if anything goes wrong.
 
So that's the reason why Camicri Cube is developed.
 
Cube (2013) is a portable package manager (Like Synaptic and Ubuntu Software Center) that can be used and run in any platform (Windows, Apt-Based Linux Distributions), online and offline, in flashdrive or any removable devices. It enables you to download Linux Applications in any computer, and installs it back to your original computer. It is developed in hope that it become useful to offline Linux users community and to make Linux applications easier to download and install.
 
 

So how this thing works?

Cube acts as a bridge between Linux computer without internet connection and Linux/windows computers with internet connection.
  • From your original computer, Cube will get essential informations such as what operating system you have, what are the applications already installed in your system and so much more.
  • Then you can now execute cube to a computer with internet connection (Linux or Windows) to find what applications you want to be downloaded. It connects to a repository, a server with thousands of Linux applications.
  • After you download applications, you can now go back to your original computer with the cube application, open it and install all downloaded applications to your computer.

Using Cube

This is a complete guide on how to use cube in downloading, updating, and installing Linux Applications using Linux and Windows.

1. Download

Download Cube at its official Launchpad Pagehttps://launchpad.net/camicricube or in its SourceForge Pagehttp://sourceforge.net/projects/camicricube

Choose the cube-1.0.*-32bit.zip for Linux 32 bit (binary-i386) computer or cube-1.0.*-64bit.zip for Linux 64 bit (binary-amd64 or binary-x86_64) computer.

2. Setup Cube (Offline Linux Computer)

For Linux Distributions (Linux Mint and Ubuntu)

Step by step

  1. Extract cube.zip to your home directory.
  2. Open cube folder.
  3. Right click on the cube-normal file. Click "Open". When a dialog box appear, click "Run".

Use cube-normal if you're going to download latest repositories and applications. Use cube-superuser if you're going to update computer's repositories and install applications.

In Cube 1.0.9 and higher, cube-normal and cube-superuser are replaced by cube-linux. Just use the cube-linux.

3. Create Project

After a successful run, The Cube Startup Window will appear, where you can create a project or open existing projects. A Project contains set of information about your computer’s essential data such as your installed applications, what type of distribution you have, and your list of repositories. This will uniquely identifies your computer. Type the project name you want (A predefined name is already set which is your computer's name) and click "Create".

Then the cube will ask if you want to download newest repositories, repositories that contains the list of Linux applications. If you have internet connection, continue to download it, but skip it if you're not connected.

For no internet connection, close the program and go back to the cube folder. On the projects directory, copy your project folder and paste it to a flash drive or any storage devices you have. Copy also the cube.zip to the flashdrive.

4. Setup Cube : Microsoft Windows (in a computer with internet connection)

Find a computer with internet connection. If it is a Microsoft Windows computer, follow these steps to run cube.

Step by step

  1. On your flashdrive, extract the cube.zip to your "My Documents" folder or in any location you want.
  2. Go to the "My Documents" folder, or your target location, and open the folder named "cube".
  3. On your flashdrive, copy your project's folder to the cube's projects directory.

For Windows users (32 bit or 64 bit), please install :

GtkSharp : http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.21.msi

If cube.exe failed to run and a message prompt appears asking for .Net 4.0, please download and install it. 

DotNet 4.0  (Most Windows computers already have DotNet 4.0 installed : http://www.microsoft.com/en-us/download/details.aspx?id=17718

Open / Run cube.exe

The next steps now uses Windows as an example, but these steps are still same when you use Linux in downloading packages.

5. Open Existing Project

After a successful run, The Cube Startup Window will appear, you should see that your project is now listed in the "Open Existing Projects" part of the window. Select your project and click "Open".

6. Update your Repositories

Then the cube will ask if you want to download newest repositories. Click "OK" to update your repositories (A must for freshly installed Linux).

To update all outdated packages/applications, on the cube's toolbar, click the "Mark all updates", and after that, click "Download all marked". It is very recommended that you update your outdated packages especially if you're using a freshly installed Linux system. This will also lessen dependency issues, since some packages requires other packages to be up-to-date.

7. Find and Download Linux Apps

To download specific package, under the search text box, enter your desired application. Cube doesn't show all applications at once, since it takes memory and loads slower, so here are the techniques in a smart cube search.

1.) To list down all packages that starts with a "word", for example, starting with "firefox", type firfox* . If it ends with "firefox", type *firefox. And if you're not sure and if it contains the word, type *firefox*.

2.) You can also search in the description of all packages. If you're finding packages with "games" or "editor" in its description, you just need to type "Description:games" or "Description:editor" to list down all packages with "games" or "editor" in its description.

3.) You can also search for categories, since packages are sorted according to what category it belongs. Click "Category" button under the List packages, and select desired category.

If there are many packages listed, click on one of them, then start typing the name you want to find, the list selection will automatically move to the package you want. Double click the package to view it.

In the package information view (On your selected package), you can click "Download this package now" to download it or "Mark this package" to download it later.

 

Having problems in downloading because of internet proxy credentials? You can set it at the Cube Menu => Settings => Preferences => Downloader Tab. You can choose also between aria2 or axel as downloader. Do you want to make downloading faster? Increase the number of connections under the axel's settings (Be sure to select axel by default).

8. Add Additional Repositories

Want to add additional repositories? You can add it in the Cube Menu => Settings => Edit Repositories and add it in the line below.

Or if you need to add a PPA repository, you can add it in the Cube Menu => Repositories => Add Apt Repository.

After downloading repositories and packages, close the program and go back to the cube folder. Open the projects directory and copy your project there, and move it back to your flash drive, replacing the older one.

9. Updating your system's repositories (Offline Linux Computer)

In your Linux computer, go the the cube directory in your home directory, open the projects directory and replace the old project by the project in your flashdrive. Open the cube afterwards, now using "cube-superuser" instead of "cube-normal", since you're now going to install downloaded apps.

In Cube 1.0.9 and higher, cube-normal and cube-superuser are replaced by cube-linux. Just use the cube-linux.

It will ask for password, just supply your password, and the Cube Startup Window will appear, select your project and click "Open".

Then a dialog will ask you to update your system, please click "Yes" especially when you download new repositories, because this will transfer all new repositories to your computer.

10. Install Packages

In installing packages, there are different ways to do so.

1.) Under the cube's toolbar, click the "Mark All Downloaded" to select all downloaded packages, and click "Install All Marked" to install all of them.

2.) In case of unmet package dependency, where there are still packages needed to be downloaded to continue, you can just install all packages where all of its dependents are also downloaded, using Cube Menu => Packages => Install packages with complete dependencies.

3.) If you want to install specific package, Under the List Packages, click the "Downloaded" button, and all downloaded packages will be listed, double click the desired package, and click "Install this", or "Mark this" if you want to install it later.

Then if you click "Install this" or "Install All Marked", a new window will appear, showing you the list of packages that will be going to be installed. If a missing package is detected (Which is needed by other package to continue), you will be prompted and show you all packages that needs to be downloaded.

No prompt will appear if installation is successful. Otherwise, a dialog, showing the logs and the causes of problem will appear.

11. Use newly installed application

Now the installed app will be added in your application menu or dash and ready to use :)

Download Cube at its official Launchpad Page : https://launchpad.net/camicricube
Or in its SourceForge Page : http://sourceforge.net/projects/camicricube
Using Cube
 
This is a guide on how to use cube in downloading, updating, and installing Linux Applications in Linux and in Windows
So how this thing works?
 
Cube acts as a bridge between Linux computer without internet connection and Linux/windows computers with internet connection.
 
From your original computer, Cube will get essential informations such as what operating system you have, what are the applications already installed in your system and so much more.
 
Then you can now execute cube to a computer with internet connection (Linux or Windows) to find what applications you want to be downloaded. It connects to a repository, a server with thousands of Linux applications.
 
After you download applications, you can now go back to your original computer with the cube application, open it and install all downloaded applications to your computer.
Comments
MagicMint 4 years ago

All this belongs to the project’s website, not into the Tutorials section of the community’s site, I think.


ylight16 5 years ago

Highly elaborated tutorial. A great alternative to Dead Keryx


remoulder 5 years ago

Nice tutorial but self-promotional spam. A simple web link would have sufficed.