Short note four

Install WP-CLI Download wp-cli, install curl if not already installed: $ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -bash: curl: command not found $ sudo apt install curl Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: curl 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 163 kB of archives. After this operation, 404 kB of additional disk space will be used.
Read On →

Git update

Change Git remote URL List current remotes: $ git remote -v origin ssh://USER@SERVER/bespoke-it-solutions/whatdidilearn.today.git (fetch) origin ssh://USER@SERVER/bespoke-it-solutions/whatdidilearn.today.git (push) Change the remote URL to HTTPS: $ git remote set-url origin https://SERVER/bespoke-it-solutions/whatdidilearn.today.git List remotes again to confirm change: $ git remote -v origin https://SERVER/bespoke-it-solutions/whatdidilearn.today.git (fetch) origin https://SERVER/bespoke-it-solutions/whatdidilearn.today.git (push) Fetch from the new URL. This is private repository so Git prompts for username and password. $ git fetch Username for 'https://SERVER': alan@bespoke-it.solutions Password for 'https://alan@bespoke-it.
Read On →

Use Pi as NAS

Setup Pi as NAS See also Attach USB disk to Pi Install Samba # apt install samba samba-common-bin Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: attr libaio1 libavahi-client3 libcups2 libfile-copy-recursive-perl libgpgme11 libldb1 libpython2.7 libtdb1 libtevent0 python-dnspython python-ldb python-samba python-talloc python-tdb samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools update-inetd Suggested packages: cups-common gpgsm python-gpgme bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools winbind ufw heimdal-clients The following NEW packages will be installed: attr libaio1 libavahi-client3 libcups2 libfile-copy-recursive-perl libgpgme11 libldb1 libpython2.
Read On →

Short note three

Setup new Raspberry Pi Use pre-configured MicroSD card, or configure a new one (instructions for Windows): Format SD card as FAT32 Download Raspbian Lite (we don’t need GUI_) Use Etcher to write Raspbian image to SD card. Create an empty file named ssh in root directory of SD card. NOTE: Without this you will not be able to SSH to the Pi. Insert SD card in Pi, connect network cable and power it up.
Read On →

Salt part three

Salt grains From the documentation, Salt comes with an interface to derive information about the underlying system. This is called the grains interface, because it presents salt with grains of information. Grains are collected for the operating system, domain name, IP address, kernel, OS type, memory, and many other system properties. Grains are automatically determined by salt but can also be assigned in several ways Statically on the minion in the configuration file, /etc/salt/minion
Read On →