My Tech Notes

  • Installing WordPress on a FreeNAS Jail

    After creating a basic jail do this: Step 1 Configue the the Jail to Use SSH https://www.ixsystems.com/documentation/freenas/11.2-U6/jails.html#accessing-a-jail-using-ssh Step 2 – Setup Apache, MySQL and PHP – NOTE: Make changes for your version of PHP https://www.digitalocean.com/community/tutorials/how-to-install-an-apache-mysql-and-php-famp-stack-on-freebsd-10-1 with minor changes from https://www.howtoforge.com/install-apache-php-mysql-on-freebsd-12/ Step 3 – install workpress https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-apache-on-freebsd-10-1

  • 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…

Got any book recommendations?