Archive for March, 2016
Right here: /usr/lib/systemd/system RHEL 7 / Cent OS 7 / Scientific Linux 7 are quite different beasts from previous RHEL environments. The systemctl restart <SERVICE> calls scripts from the above aformentioned folder. Cheers, TK
March 28th, 2016 | Posted in NIX Posts | No Comments
Small problem encountered when instantiating a virtual machine on OpenNebula (). PROBLEM [oneadmin@opennebula01 .ssh]$ tail -f /var/log/one/1.log Mon Mar 28 00:15:43 2016 [Z0][DiM][I]: New VM state is ACTIVE. Mon Mar 28 00:15:43 2016 [Z0][LCM][I]: New VM state is PROLOG. Mon Mar 28 00:15:43 2016 [Z0][TM][I]: Command execution fail: /var/lib/one/remotes/tm/shared/clone opennebula01:/var/lib/one//datastores/1/ac152a0c5c61978e8448f68ade249a98 mdskvm-p01:/var/lib/one//datastores/0/1/disk.0 1 1 Mon […]
March 27th, 2016 | Posted in NIX Posts | No Comments
This is likely due to registry changes via installed software. To change, revert this value to 2: HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Windows/ErrorMode Set to 2 from 0. Cheers, TK
March 23rd, 2016 | Posted in NIX Posts | No Comments
There are two way's to setup virtual machine connectivity to the outside using libvirt. The preferred is to create a bridged network (shared physical device) and the alternate is to create NAT forwarding (virtual network). We will look at the first, then the second. The virbr0 interface may come installed as part of the KVM virtualization […]
March 20th, 2016 | Posted in NIX Posts | No Comments
If you already started the dd command and need to see the progress and if it's stuck or not, use this line: watch -n5 'sudo kill -USR1 $(pgrep ^dd)' This will result in DD showing the following output, instead of being there without any progress shown: [root@mbpc-pc log]# nice -n +19 dd if=/dev/sdj of=/dev/sdi 815429980672 […]
March 20th, 2016 | Posted in NIX Posts | No Comments
Why do all the major Linux / UNIX vendors still use the deprecated bash / ksh features? Let's take this line as an example: [root@mdskvm-p01 grub2]# grep platform_search_hint /boot/grub2/grub.cfg if [ x$feature_platform_search_hint = xy ]; then if [ x$feature_platform_search_hint = xy ]; then [root@mdskvm-p01 grub2]# This is […]
March 20th, 2016 | Posted in NIX Posts | No Comments
Unless you're doing driver development or kernel development in an isolated lab without the risk of outside breakins or compromization, jumping in as root directly to the Linux OS is considered insecure. So this post will not describe how to do that. However we will describe how to enable root sudo to root via an […]
March 20th, 2016 | Posted in NIX Posts | No Comments
Setting the locale and keymap (keyboard) for the system is done via the localectl command. localectl status localectl list-keymaps localectl set-keymap us localectl status localectl list-locales localectl set-locale LANG=en_US.utf8 Cheers, TK
March 20th, 2016 | Posted in NIX Posts | No Comments
Add the following option ( PEERDNS=no ) to prevent the /etc/resolv.conf from reverting or changing to it's original state and values (To ALL network interfaces.): # cat ifcfg-eth0 DEVICE="eth0" BOOTPROTO="static" DNS1="172.0.0.20" GATEWAY="172.0.0.1" IPADDR="172.0.0.10" NETMASK="255.255.255.0" NM_CONTROLLED="no" ONBOOT="yes" TYPE="Ethernet" PEERDNS="no" # Cheers, TK
March 18th, 2016 | Posted in NIX Posts | No Comments
You can resume an SCP transfer using rsync: rsync –partial –progress –rsh=ssh USER@HOST:<REMOTE FILE> <LOCAL FILE> Or off the web use: wget –continue <URL> Cheers, TK
March 13th, 2016 | Posted in NIX Posts | No Comments