Forcing apt-get to use IPv4

When or if you run into trouble with apt-get and IPv6 connections timing out or not resolving properly at all, it may be a good idea to simply prevent apt-get from using IPv6. Use -o Acquire::ForceIPv4=true when running apt-get, or create /etc/apt/apt.conf.d/99force-ipv4 and put Acquire::ForceIPv4 “true” in it. If this …

More

Using sfdisk to recover a partition table on Linux

As he re-entered the sfdisk dump manually in the remote recovery console, using the devil’s editor (vi), he was silently thanking the Linux developers for not screwing around with the file system when it cannot be mounted. Messing around with partition tables, disk volumes, and similar critical configuration parameters can …

More

Using MTR to create a text file report

mtr –report –report-cycles 20 www.instagram.com > ignetrpt.txt The above should be entered on one line. Using MTR this way makes it easy to simply send a trace report via e-mail. It can also be used in an automated way to generate a report e-mail when a system monitor fails. See …

More