What does “debconf: delaying package configuration, since apt-utils is not installed” mean?

apt-utils contains the /usr/bin/apt-extracttemplates program which is used when packages need to ask you questions about how to be configured. This package being Priority: important, means it should really be installed except in rare circumstances. If there is configuration pending, dpkg-reconfigure [package] will perform it. If you missed configuring a number of packages and don’t … Read more

Transfer 15TB of tiny files

I have had very good results using tar, pigz (parallel gzip) and nc. Source machine: tar -cf – -C /path/of/small/files . | pigz | nc -l 9876 Destination machine: To extract: nc source_machine_ip 9876 | pigz -d | tar -xf – -C /put/stuff/here To keep archive: nc source_machine_ip 9876 > smallstuff.tar.gz If you want to … Read more

Best way to disable swap in Linux

Identify configured swap devices and files with cat /proc/swaps. Turn off all swap devices and files with swapoff -a. Remove any matching reference found in /etc/fstab. Optional: Destroy any swap devices or files found in step 1 to prevent their reuse. Due to your concerns about leaking sensitive information, you may wish to consider performing … Read more

How to check the physical status of an ethernet port in Linux?

$ ethtool <eth?> For example: $ ethtool eth0 provides: Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal … Read more

PHP Parse error on WP-CLI, not on web server

As noted in https://github.com/wp-cli/wp-cli/issues/1754#issuecomment-91361340, I figured this one out. It turns out it wasn’t wp-cli’s fault at all. My confusion arose from the fact that I’m running a web server with nginx and php fpm, which has it’s own php.ini . wp commands run php (cli) directly on the host and so the config can … Read more

Hundreds of failed ssh logins

You can use iptables to rate-limit new incoming connections to the SSH port. I’d have to see your entire iptables configuration in order to give you a turnkey solution, but you’re basically talking about adding rules like: iptables -A INPUT -p tcp –dport 22 -m recent –update –seconds 60 –hitcount 5 –name SSH –rsource -j … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)