On the Mac “lsusb -v” is rather clean in comparison to other systems.
Category: Red Hat
Posts in this category are specific to Red Hat and may or may not work on CentOS and Fedora or other UNIX based systems.
UNIX – Set SSH Banner
Obviously it will be slightly different depending on your network and version but it will look something like this. Kittell.net WARNING This computer system is the property of Kittell.net. It may be accessed and used only for authorized Kittell.net business by authorized personnel. Unauthorized access or use of this computer…
Red Hat / CentOS / Fedora – Create Jailed SFTP User
If you are working on a project and need SFTP capabilities but don’t want users to see each other’s files create a SFTP Jailed server. Assumptions for the code below is that you are running Red Hat, CentOS, or Fedora and already have the OS running. NOTE: In this first…
UNIX – SED Replace Tab with Space(s)
Originally found at https://linuxconfig.org/replace-all-tab-characters-with-spaces
Red Hat – Failed to initialize NSS library
If you recently updated or recently installed a Red Hat server and get a message like this when trying to run yum the below will help. Reference: https://access.redhat.com/solutions/3134931
Red Hat / CentOS / Fedora – Fix Yum Duplicates
When nothing else seemed to work this helped me to get rid of all the duplicates from failed yum updates. After trying the above I still had some duplicates on a different server but the ‘Remove Duplicates’ script below seemed to work fine for me. NOTE: I was looking at…
Strong Password
Need help with what a strong password is? Strong password recommendations are as follows: Must contain 14 or more characters Must contain upper and lower case letters Must contain a number or special character (e.g. !@#$%^) Must NOT be the same as your previous 12 passwords Must NOT be similar…
Uptime Formated
If you simply want uptime formatted this small script will help. Uptime by itself will display similar to: 20:25:48 up 3 days, 8:14, 1 user, load average: 2.07, 2.17, 2.35 Formatted using the code above will display similar to: 3 days, 8 hours, 15 minutes.
NMAP – Find Machines On Your Network
NMAP (a form of ARP list) is a tool for scanning your network for machines that are up or down along with pulling some helpful information from the machines that are up. Similar to Remotely Find Raspberry Pi IP but this is a bit more in-depth First install nmap if…