nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

How to protects Linux and Unix machines from accidental shutdowns/reboots with molly-guard

Posted: 19 Feb 2017 11:38 AM PST

Oops! I did it again. I thought I was logged into my home server. Turns out I rebooted the db server. Another my not so favorite is typing "shutdown -h 0" into the wrong terminal. I know a few people who have admitted to doing that here.

My anger that can't be contained
Is there any end to the madness? Do I need to suffer from accidentally random reboots and shutdowns? After all, it is human nature to make mistakes, but one should not keep on making the same mistakes again and again.

How to create a new config file in Ansible playbook

Posted: 19 Feb 2017 09:57 AM PST

I wanted to create a file named /etc/apt/apt.conf.d/1000-force-ipv4-transport with the value set to 'Acquire::ForceIPv4 true;' on 20 cloud servers hosted in AWS. I already setup Ansible playbook to automate stuff. How do I create a new file using Ansible playbook? Is it possible to create a complex file with many lines of text (say squid.conf) using Ansible IT automation tool?

How to auto start LXD containers at boot time in Linux

Posted: 19 Feb 2017 02:51 AM PST

I am using LXD ("Linux container") based VM. How do I set an LXD container to start on boot in Linux operating system?

How to enable KVM virsh console access for Ubuntu Linux VM

Posted: 19 Feb 2017 01:54 AM PST

I just followed your tutorial and setup KVM with Ubuntu Linux as a new guest virtual machine. However, I am unable to use the command: 'virsh console vm'. How do I setup and enable console access in order to gain shell access on the newly created Ubuntu Linux 16.04 LTS VM?