≡ Menu

Debian / Ubuntu

How to create a new config file in Ansible playbook

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?
[click to continue…]

How to auto start LXD containers at boot time in Linux

I am using LXD (“Linux container”) based VM. How do I set an LXD container to start on boot in Linux operating system?
[click to continue…]

How to disable ssh password login on Linux to increase security

I want to disable ssh clients from accessing using the password and only allow ssh login using SSH keys. How do I disable password authentication for SSH on Linux operating systems?
[click to continue…]

How to add disk image to KVM virtual machine with virsh command

How do I add additional disk storage to a guest operating system to KVM virtual machine with virsh command on Linux operating system?
[click to continue…]

How to rename KVM virtual machine (VM) domain with virsh command

How do I rename KVM-powered virtual machine from foo to bar using virsh command line option on Linux?
[click to continue…]

How to clone existing KVM virtual machine images on Linux

I wanted to clone my Debian or Ubuntu Linux KVM VM for testing purpose. How do I clone existing virtual machine images under KVM?
[click to continue…]

How to install wget on a Debian or Ubuntu Linux

I recently switched from Windows server operating system to Debian Linux for my PHP based apps. I need to install something using wget. But it says:
    bash: wget: command not found
How do I solve this problem? How can I install wget tool on a Debian Linux home server?
Read: How to install wget on a Debian or Ubuntu Linux

How to rename LXD / LXC container

How do I rename an LXD managed LXC container under a Linux operating system?
[click to continue…]

How to open ssh port using ufw on Ubuntu/Debian Linux

How do I allow incoming SSH connections from a specific IP address or subnet on a Ubuntu or Debian Linux server using ufw?
[click to continue…]

PHP Fatal error: Call to undefined function curl_init() in /home/httpd/a/includes/functions.php(1)

I setup a LEMP (Linux, Nginx,MySQL, PHP ) stack. But, getting the following error in /var/log/nginx/error.log file:
    PHP Fatal error: Call to undefined function curl_init() in /home/httpd/a/includes/functions.php(1)
How do I solve this problem on Linux server?
[click to continue…]