A. On the offline computer, copy the status file to the USB memory. /media/disk usually is where USB memories get mounted on the system (verify if it was your case). To do it, type on a terminal:
Code:
sudo cp /var/lib/dpkg/status /media/disk/status.txt
The .txt extension is needed to upload the file later.
If it is a removable media (like USB in this case) eject it before you unplug it, so no data is lost:
Code:
sudo eject /media/disk
Or right-click in the media in Nautilus and click "Unmount".
B. Go to the online computer, open the browser, go to
http://nonetdebs.homeip.net and create an account (click the "Create new account" link). You will need an email account to receive the password and link to activate the account.
You will receive a mail from nonetdebs AT nonetdebs.homeip.net with a link to activate your account. Just click the link to activate the account and press the "Log in" button.
C. Modify your password to one that you can remember later and click "Submit" in the end of the page.
You will be redirected to "My account" page. Now follow this steps to set up your account and to download your first packages (the next time you will only need to upload the new status file and change the name of the packages you want to download):
1. Click the link "
Create your Status file from target" to upload the file to the website.
2. Click the button "
Search" and select the file;
3. The file must have a
.txt extension;
4. Click "
Upload";
5. Click "
Submit".
6. After you submitted the status file, click "
Edit" to edit the settings of the target.
7. Now click "
Repositories" on the top of the page.
8. Select the repositories you want. To have all the packages available from the Ubuntu repositories, enable
Main,
Universe,
Restricted and
Multiverse. To install libdvdcss2 (to play DVD's) and w32codecs (to play some video files) you will need to enable the
Medibuntu repository too.
9. Click "
Submit" to save your changes.
10. Click "
Target" on the top of the page.
11. Select the Ubuntu
release of the offline computer (Dapper, Edgy, Feisty, Gutsy);
12. Select the
architecture (i386, amd64, PPC or sparc);
13. Select your
locale (language). Select the UTF-8 ones in case of doubt.
14. Click "
Submit" to save your changes.
15. Click "
Install".
16. Type the name of the package you want to install on target.
17. Click "
Submit" to save your changes.
18. Click "
New Packages" on the left of the page and wait about 1 minute or so to get the list of packages you need to download.
19. Click on the links and download the package you want and all its dependencies you still don't have installed on the target and a little script to install all the packages.
D. Save all the package files to the USB memory. Copy the scripts to a text editor and save them to the USB memory too.
If you used Windows to save the scripts, please take a look at this thread:
http://ubuntuforums.org/showthread.php?t=613778. It's about end-of-line characters that are different in Windows and how to make the script executable if you used a Windows text editor to save the scripts.
You're done in the connected computer.
E. Go to the offline computer, plug the USB memory (or the media you used), and open a terminal. Go to the directory where the USB memory is mounted:
and run the script file you saved. If you have named it like "updates", run:
The script will run the "dpkg -i" commands to install the new packages. Don't panic if you see any dependencies problems while the script is executed. An "apt-get install -f" is executed in the end of the script. It will resolve all the dependencies and finish installing the packages that were left behind.
Bookmarks