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 […]

Mirror an existing GIT repository to a new location   Recently updated !

If you have to move an existing GIT repository to a new location or you just want to have a backup of your repository including all your branches and tags you can do the following: You clone the existing repository with the mirror flag, this will also retrieve all branches and tags: git clone –mirror […]

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

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   Recently updated !

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 […]