![]() ![]() To add automatically to script: echo -e "md5sum -c md5sum.txt\npause" > script.cmd Windows (uses older md5sum, does not support -quiet): md5sum -c md5sum.txt You may add these to the ends of scripts to check md5sum: ![]() You need md5sum for Windows if you're using that operating system to download files.Ĭreate script to download repository listings: sudo apt-get update -print-uris -qq | sed -n "s/'\(\+\)' \(\+\) \(\+\) :/wget -c \1 -O \2.bz2/p" > update.cmd sh and do chmod a+x to add permission to execute the script) or a Windows Command batch file, and an MD5Sum file to make sure the files are downloaded correctly. You may use this to create a shell script for Linux or Mac OS (replace. Use md5sum to check if the files are downloaded properly. Use sed to remove extra characters added to some filenames (something like 3%2a) and to get the url, filename and md5sum of files. Use apt-get with the -print-uris option to do it and add -qq so it would be quiet. Test it works before taking it to your friend! deb files, copy the files to your USB memory stick (or external hard drive) and set up the local repository as per the article mentioned previously. Once you have the apt-mirror configuration you want, run apt-mirror and go do something fun or life changing as it will take hours or days to get the repository (depending on your connection and the Ubuntu mirror you are using). ![]() If you are using a different architecture (you have 64bit, but your friend has 32 bit) then add the following at the start of the mirror.list configuration file: set defaultarch i386 ![]() If you just want the main files, remove the restricted, universe and multiverse names from the configuration file. deb files to be /tmp, make sure you have enough space so your hard drive does not fill up (if your hard drive does fill up and your computer freezes, /tmp should be cleared with a reboot). It is guesstimated that you will need around 15Gb of space for all 4 sections, without the source. # use a mirror so you don't overload the main server!!!ĭeb lucid main restricted universe multiverseĭeb lucid-updates main restricted universe multiverse # The default configuration options (uncomment and change to override) deb files from all 4 sections (main, restricted, universe and multiverse) as well as the latest bug fixes. Here is a simple example that copies the binary. Only include the repository sections you want. Or since Ubuntu 14.04 gksudo gedit /etc/apt/mirror.list Install the package: sudo apt-get install apt-mirrorĪnd edit its configuration file gksudo gedit /etc/apt-mirror/mirror.list The apt-mirror package will help you create a custom mirror which should be smaller than the 30Gb of the full repository. If you have a decent sized USB stick - assuming around 4-8Gb (or external hard drive) you can set up a custom copy of the Ubuntu repository and configure that as a local repository as covered in AptGet/Offline/Repository ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |