CentOS vs. Ubuntu [closed]

There are no benefits that I can discern for using CentOS (or RHEL) over Ubuntu if you are equally familiar with using both OSes. We use RHEL and CentOS heavily at work, and it’s just painful — we’re building custom packages left and right because the OS doesn’t come with them, and paid RedHat support … Read more

How to start/stop iptables on Ubuntu?

I don’t know about “Ubuntu”, but in Linux generally, “iptables” isn’t a service – it’s a command to manipulate the netfilter kernel firewall. You can “disable” (or stop) the firewall by setting the default policies on all standard chains to “ACCEPT”, and flushing the rules. iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P … Read more

How do I auto-start docker containers at system boot?

Apparently, the current method to auto-start Docker containers (from Docker 1.2) is to use restart policies. This will control how Docker should handle starting of the container upon startup and re-starting of the container when it exits. I’ve used the ‘always’ option so far, and can confirm that it makes Docker auto-start the container at … Read more

Can I hide all server / os info?

You can stop it outputting the version of Nginx and OS by adding server_tokens off; to a http, server, or location context. Or if you want to remove the Server header completely, you need to compile Nginx with the Headers More module in, as the header is hard coded in the Nginx source, and this … Read more

Can you run Docker natively on the new Windows 10 (Ubuntu) bash userspace?

You can use Docker Desktop for Windows as the engine and Docker for Linux as the client in WSL on Ubuntu / Debian on Windows. Connect them via TCP. Install Docker Desktop for Windows: https://hub.docker.com/editions/community/docker-ce-desktop-windows If you want to use Windows Containers instead of Linux Containers both type containers can be managed by the Linux … Read more

How do I get apt-get to ignore some dependencies?

Simple and easy solution: just specify the unwanted packages with an extra – after each of them. Example without the – switch: root@debian:~# apt-get install bsd-mailx Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed: exim4-base exim4-config exim4-daemon-light liblockfile-bin liblockfile1 […] Example using the switch to … Read more