Choosing the fastest Mirror on Debian

On Debian there's a tool that finds out which is the fastest/nearest mirror and creates a sources.list file for you: netselect-apt The installation: apt-get update apt-get install netselect-apt To find the fastest/nearest mirror: netselect-apt Backup your old sources.list: mv /etc/apt/sources.list{,.bak} Replace it with the new one: cp sources.list /etc/apt/sources.list Update and install your packages: apt-get […]

Copy a remote folder via FTP on the Linux command line using lftp

Install lftp using: apt-get install lftp To start off with connect to the FTP server: lftp Login to the FTP server via lftp: lftp> user yourusername Password: (Enter your password) As soon as you are logged in, you can list the remote folders using ls and list all available commands via help. Let's […]

Some useful APT options

apt by default reads files in /etc/apt/apt.conf.d/, so you can create a file for each line if you like to or create a new file in there and put them all in: Acquire::Check-Valid-Until "false"; #problems with not up2date mirrors, release file expired? APT::Get::AllowUnauthenticated "true"; #allow installation of unauthenticated files GPG::Check false; #disable all GPG checks […]