My Tech Notes

  • Remapping the delete key on MacOS High Sierra

    To change the Delete key actually delete rather than backspace, run this command: $ hidutil property –set ‘{“UserKeyMapping”:[{“HIDKeyboardModifierMappingSrc”:0x70000004C,”HIDKeyboardModifierMappingDst”:0x70000002A},{“HIDKeyboardModifierMappingSrc”:0x70000002A,”HIDKeyboardModifierMappingDst”:0x70000004C}]}’ to change it back again, run this command: $ hidutil property –set ‘{“UserKeyMapping”:[{“HIDKeyboardModifierMappingSrc”:0x70000002A,”HIDKeyboardModifierMappingDst”:0x70000002A},{“HIDKeyboardModifierMappingSrc”:0x70000002A,”HIDKeyboardModifierMappingDst”:0x70000002A}]}’ Source : https://developer.apple.com/library/archive/technotes/tn2450/_index.html

  • My notes on how to use git

    1) create a local git repo $ git init 1.5) Save username and password for github $ git config credential.helper store $ git push http://example.com/repo.git Username: <type your username> Password: <type your password> 2) Add all the files in the currect folder $ git add * 3) Commit the files/changes $ git commit -m “first…

  • Install and configure EPEL repository

    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

  • Cool additions to the Gnome Desktop

    Go to https://extensions.gnome.org and install the browser extension. Use firefox, not chrome, chrome goes haywire when you install the browser extension Then look for the following extensions and install them. Dash to Panel Arc Menu see original article here: https://www.reddit.com/r/Fedora/comments/hr3j6k/fedora_32_is_awesome/

  • Find and replace text within a file using sed

    Find and replace text within a file using sed The procedure to change the text in files under Linux/Unix using sed: Use Stream EDitor (sed) as follows: sed -i ‘s/old-text/new-text/g’ input.txt The s is the substitute command of sed for find and replace It tells sed to find all occurrences of ‘old-text’ and replace with…

  • Resetting the Root Password of RHEL-8

    Resetting the Root Password of RHEL-8 Resolution 1) Break the boot sequence by adding ‘rd.break’ at kernel stanza in grub. To do this, restart your system and when the GRUB splash screen comes: Select/highlight the kernel you wish to boot using the up/down arrow keys. Press the e key to edit the entry. Select/highlight the…

  • Remove CTRL-M characters from a file in UNIX

    Remove CTRL-M characters from a file in UNIX 1) Open the file in vi 2) Type the following :%s/^M//g 3) Press enter to the ^M you have to type CTRL+V and then CTRL+M

  • Manually importing a FreeNAS Jail

    I just had this same issue today and came across your post. The reason mine crashed was because the plugin i was importing was huge (about 10GB in size). –What i ended up having to do was manually create a dataset. Im using plex as an example. zfs create zpool/iocage/jails/Plex or use the GUI –Then…

  • Hard Drive Burn-in Testing

    Hard Drive Burn-in Testing THIS TEST WILL DESTROY ANY DATA ON THE DISK SO ONLY RUN THIS ON A NEW DISK WITHOUT DATA ON IT OR BACK UP ANY DATA FIRST 1) Run a short test # smartctl -t short /dev/sdb 2) Run a conveyance test ??? # smartctl -t conveyance /dev/sdb 3) Run a…

  • Setting an static IP address in RHEL (the old way)

    In RHEL8, you use NetworkManager or NMCLI to configure the networking, but in RHEL7 and before, you had to do it a different way. In this post I show you which files you need to configure to be able set a static IP in REHL7.

Got any book recommendations?