First we need to create the user before we create the ssh folder and the file authorized_keys Step one user creation Add user: sudo useradd theusername add user to the wheel group  ( -a = append G is group wheel …

add user and create ssh folder and add ssh key to authorized_keys centos Read more »

Tagged with: , , , , ,

Install Docker-machine on Linux first check latest release of Docker Machine here: https://github.com/docker/machine/releases/latest/ Replace v0.10.0 with the latest docker-machine version if it has a newer version when you read this. curl -L https://github.com/docker/machine/releases/download/v0.10.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine && chmod +x /tmp/docker-machine …

Install Docker-machine on Linux Read more »

Router> Router>Enable Router#config t Router(config)#hostname Router1-1 Router1-1(config)#enable password mePassWord Router1-1(config)#enable secret MeSecretPassword Router1-1(config)#service password-encryption Router1-1(config)#username meUser Privilege 15 password 0 MeNewPasswordformeUser Router1-1(config)#banner motd # Welcome to Router1-1 # Router1-1(config)#banner login $ You have to be authorized to use this device …

Setting up a cisco router/switch securely Read more »

FIX VDI not available Run the following command on each host to verify that the VM is shutdown and is not running on any of the hosts: list_domains | grep <VM UUID> For example [root@localhost log]# list_domains | grep c4615dc5-a7ff-bf10-e675-49e64a749fb5 …

Xenserver – FIX VDI not available Read more »

Tagged with: ,

nmtui

This is a guide to nmtui for CentOS 7 (RHEL 7) nmtui  stands for: Network Manager Text User Interface and it is used for controlling NetworkManager These are the commands: nmtui [ edit | connect | hostname ] [ … …

nmtui – Text User Interface for controlling NetworkManager Read more »

Tagged with: , , , , , ,

The ifconfig and netstat utilities has been marked as deprecated in the man pages for CentOS 5 and 6 for nearly a decade.  Redhat made the decision to no longer install the net-utils package by default in CentOS 7. The …

net-utils package deprecated ss and ip is the replacement commands for RHEL / CentOS / Fedora 7 Read more »

Tagged with: , , , , , ,

This time I want to explain firewalld for those that are new to CentOS 7 and like me are only used to iptables. This first blogpost is just a rewrite of the manual page for firewalld. This post is the …

Part – 1 firewalld – Dynamic Firewall Manager Explained ( CentOS 7, RHEL 7, Fedora) Read more »

Tagged with: , , , , , , , ,

If you need to generate a SHA512 encrypted password for kickstart or perhaps for bootstrapping you servers with automation tools like ansible you can do this easily with python. python -c ‘import crypt,getpass; print(crypt.crypt(getpass.getpass(), crypt.mksalt(crypt.METHOD_SHA512)))’ If you have python below …

Generate SHA512 password with CentOS 7,FEDORA 7, RHEL 7 Read more »

Tagged with: , , , ,