Once again, start by install required packages. This segment was inspired by Deviant Engineer, CentOS Wiki and. https_proxy = http_proxy = use_proxy = on Set up a YUM repository apt-mirror relies on wget to download packages which in turn reads from this config file. (Optional) If a proxy separates the repo from the Internet, add the following to /etc/wgetrc. # config # set base_path /var/www/apt-mirror set nthreads 20 set _tilde 0 # end config # deb trusty main universe deb trusty-security main universe deb trusty-updates main universe deb trusty-backports main universe deb trusty-pgdg main clean As an example, I’ve included the repo for PostgreSQL. For your setup, add other repos to taste. mkdir -p /var/I only synced what I needed, which is from Ubuntu’s main and universe repos and from also Singapore’s local mirror (ie. apt install -y apt-mirrorĬreate directory structure to store the repo’s packages. This section was inspired by HowtoForge and Matrix44 (whose original URL seems down).īegin by installing the required packages. Here are the major steps to in the tutorial. All of the steps are to be performed as the root user. Our repo was built and tested on an Ubuntu 14.04 KVM virtual machine. This tutorial helps you set up an APT and YUM repository in an Ubuntu host in no time. If you said YES! to the above, you’re in the right place. Bandwidth is precious which, for obvious reasons, should be saved for production traffic and bitcoin mining. If ten or more severs reside in the same environment, consider installing a local mirror to reduce the strain on your WAN link and also the hapless public mirror. Total mayhem!ĭon’t believe me? Watch Mr Robot. The Internet is awash with malicious exploits that could turn your server into a zombie, DDoS-ing the Internet with millions of cute cat videos, causing trillions of dollars in lost productivity. Keeping servers patched and hardened is critical work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |