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

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 commit" 4) Add the remote repo $ git remote add github https://github-url 5) Push the local repo to the remote repo $ git push --set-upstream github master After adding files f

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:
  1. Use Stream EDitor (sed) as follows:
  2. sed -i 's/old-text/new-text/g' input.txt
  3. The s is the substitute command of sed for find and replace
  4. It tells sed to find all occurrences of ‘old-text’ and replace with ‘new-text’ in a file named input.txt
  5. Verify that file has been updated:
  6. more input.txt

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 long test # smartctl -t long /dev/sdb 4) Run badblocks # badblocks -ws /dev/sdb

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. 1) Edit the network card configuration file, which will be something like the following /etc/sysconfig/network-scripts/ifcfg-ens33 2) Add the network mask, and IP address.

Installing software into a FreeNAS jail

Go to Jails On the right side of the page click the triple dots next to the Plex jail and select Shell type "whoami" and make sure the response is root (if not use su - or sudo) type vi /usr/local/etc/pkg/repos/FreeBSD.conf and press enter If the file exists, look for a line with "FreeBSD: { enabled: no }" and change the no to a yes OR If the file is empty type out "FreeBSD: { enabled: yes }" (if you are unfamiliar with vi, to edit just press the letter "a" then type the above stuff without the quotes) To save, hit the escape button twice and type ":wq" w

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer