Thursday, January 11, 2018

Lauch printer from terminal (fedora)

From fedora OS, if you want to launch printer control with root access, do this:

sudo gnome-control-center printers 

Thursday, November 23, 2017

Docker networking issue - IPV4 forwarding is disabled error and Fix

During docker build, faced the following error:

Docker Networking Disabled: WARNING: IPv4 forwarding is disabled. Networking will not work

So, all yum install commands failed.


Added the following to /etc/sysctl.conf:


Then restarted the network service.
Now, docker build should be able to reach the network.

Note to self:
Next, time keep an eye on all the warnings faced during docker build itself :) 

Tuesday, November 21, 2017

list files in installed package/rpm file

list the files for already INSTALLED package:

rpm -ql package-name

To list the files for specific RPM package downloaded:

rpm -qlp package.rpm

Friday, November 17, 2017

To have unique machine id in multiple VMs - Centos

When you clone a VM, sometimes VM id may not be unique and you end up with same VM id for multiple machines.

So, if that is the case just remove /etc/machine-id and then reboot

Then, run systemd-machine-id-setup.

Now, you will have a unique id in /etc/machine-id.   Now, Live happily ever after :) :) 

# systemd-machine-id-setup
Initializing machine ID from KVM UUID.

# cat /etc/machine-id 

Original error faced while using ansible:

failed: [centosmaster] (item=tmaster) => {
    "assertion": "ansible_hostname == hostvars[item]['ansible_hostname'] or ansible_machine_id != hostvars[item]['ansible_machine_id']", 
    "changed": false, 
    "evaluated_to": false, 
    "failed": true, 
    "item": "tmaster"

Monday, November 13, 2017

vagrant - unable to reach host - fix

I was trying to reach a url from inside a vagrant based virtual machine..but unable to reach the same.

It errors out like:

Name or service not known

Tried multiple options - and ended up restarting libvirtd service at host did the trick.

So, sudo systemctl restart libvirtd 

Underlying libvirtd, dnsmasq is running (at host) and I think it is causing some issue.

So, next time, just restart libvirtd and check :)