Header Shadow Image


Archive for March, 2016

Where is /etc/init.d/sshd or the /etc/init.d folder in RHEL 7

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

Error executing image transfer script: Error copying opennebula

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 […]

Please insert a disk into drive

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

Changing virbr0 virtual interface

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 […]

Show progress of dd command

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 […]

Why does the UNIX community continue to use deprecated bash / ksh features?

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 […]

requirement “uid >= 1000” not met by user “root” sudo to root

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 […]

Change locale and keymap in RHEL 7 / CentOS 7 / ScientificLinux 7

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

/etc/resolv.conf keeps reverting or changing to original state

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

Resume scp transfer using rsync

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


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License