Header Shadow Image


Author Archive

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

Chrooted SFTP

\In this post we will create a chrooted SFTP login for guest accounts on our Linux distribution.   Locate your sftp-server binary: # locate sftp-server /usr/libexec/openssh/sftp-server /usr/share/man/man8/sftp-server.8.gz Use the result of the above to add this line to your /etc/ssh/sshd_config file (Check if this line does not exist already).  Note, internal-sftp will point to the above sftp-server […]

Enable DD-WRT NTP, Date and Time Settings

Enable NTP settings in DD-WRT on the Setup page like this ( EST as example ): Time Settings NTP Client: Enable  Time Zone: UTC-04:00 Summer Time (DST): last Sun Mar – last Sun Oct Server IP/Name: ca.pool.ntp.org End result: root@DD-WRT-INTERNET-ASUS:/tmp# date Sun Mar 13 15:38:45 UTC 2016 root@DD-WRT-INTERNET-ASUS:/tmp# Cheers, TK

DD-WRT Port Forwarding Fix

On DD-WRT, the port forwarding logic may not work at all.  A fix for this is to use the following few lines in Administration — Commands — Firewall to enable port forwarding (NOTICE: Your forwarding rules should work out of the box.  Test your forwarding rules with a page like this via an external source before you […]

RHEL 7 / Fedora 19+ Change Hostname

RedHat decided on a significant number of changes in it's new OS releases.  This includes changes to the way the hostname is handled and maintained: hostnamectl status Check the hostname. hostnamectl set-hostname <HOSTNAME> Set all hostnames. hostnamectl set-hostname <HOSTNAME> [OPTION] Options are:       –pretty –static –transient. hostnamectl set-hostname "" [OPTION] Clear hostname.  See […]

Disable Linux Network Interface Renaming

Here we will adjust two boot options to prevent the newer releases of RHEL 7, CentOS 7 and Fedora from renaming our interfaces with names such as enp3S0, enp5s6, enp5s0, enp3s6 etc.   To prevent our network interfaces from getting renamed, we can add two simple kernel parameters to our configuration to reenable out traditional naming […]


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

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

 

The IT Development and Technology Mini Vault | MicroDevSys.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.