All HowTo's

Sudo is Mean

If you are tired of the normal error messages that come from typing your password wrong when you sudo then why not have it insult you instead, great idea. echo “Defaults insults” >> /etc/sudoers Why, Because why not?

Read more
All HowTo's Virtualization

Extend a KVM Disk

A simple one liner to extend the disk of a virtual machine running in KVM. qemu-img resize vmdisk.img +10G The disk will be extended by 10GB, it may take a reboot of the guest machine to pickup the change and you will also need to extend your partitions inside of

Read more
All HowTo's Cyber-Security Linux Redhat, Fedora and CentOS Linux

Install vsFTP on CentOS/Redhat and enable TLS

This tutorial demonstrates how to install vsftp on CentOS/Redhat and configure it to allow connections over TLS for additional security. We’ll also chroot the users to their own directory. Install vsftp: yum install vsftp Edit the config file “/etc/vsftpd/vsftpd.conf” and set the following: rsa_cert_file=/etc/vsftpd/vsftpd.pem rsa_private_key_file=/etc/vsftpd/vsftpd.pem chroot_local_user=YES anonymous_enable=NO ssl_enable=YES allow_anon_ssl=NO force_local_data_ssl=YES

Read more
All HowTo's Linux Redhat, Fedora and CentOS Linux Ubuntu, Mint & Debian Linux

Detect newly added disks. Linux on VMWare.

This one liner shows how to get Linux (CentOS in this case) to detect a newly added disk on a VMWare host. This was found on “http://wingloon.com/2013/05/07/how-to-detect-a-new-hard-disk-without-rebooting-vmware-linux-guest/”. ls /sys/class/scsi_host/ | while read host ; do echo “- – -” > /sys/class/scsi_host/$host/scan ; done There you have it.

Read more