Friday, February 28, 2014

KVM VM with root user - avoid connection reset error



While creating a VM with root user logged in :

 /etc/libvirt/qemu.conf  must have following values  set  : 
user = "root"
group = "root"
clear_emulator_capabilities = 0

Otherwise , you will get connection reset error while launching the guest.

Thursday, January 23, 2014

watch command -n with fraction of seconds

I never know that watch command can run with fraction of seconds.

This is fun :)

watch -n .1 cat /proc/interrupts


Sunday, January 19, 2014

git user.name has multiple values


warning: user.name has multiple values
error: cannot overwrite multiple values with a single value
       Use a regexp, --add or --set-all to change user.name.
[user@fc ~]$

[user@fc ~]$ cat ~/.gitconfig
remove the name here.

Add the new name in /etc/bashrc
[user@fc ~]$ vi /etc/bashrc
git config --global user.name "Firstname lastname"

[user@fc ~]$

Refer:

https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup


To set email, use
$ git config --global user.email  "youname@yours.com"

To verify the results, use 
$ git config -l 




Friday, December 6, 2013

grub2 default entry

Update default entry in grub.

you need to modify

set default="4" in   /boot/grub2/grub.cfg

first check the entries and map it with numbers. first entry is default ="0".
change it according to requirement.