Tag: Linux

  • Quickly find that new Raspberry Pi’s address

    Saw this the other day, and I wanted to post it, so that I can remember it. How to find a Raspberry Pi’s DHCP address:

  • My WSL/BASH setup

    Not sure if this a “Bootstrap” or not, but I wanted to have my WSL/Bash home directory match my windows home directory. This is the code that I use when I setup a new WSL/BASH instance. This will find your home directory via PowerShell and put it in a variable “$WINHOME”. Then I make make…

  • My SSL/Certificate Cheatsheet

    Whenever a certificate needs to be renewed, I always have to scramble to remember how to update/renew. I finally put a cheat sheet together. I decided I will do all cert related stuff form Linux. Here are some commands: To request a new csr with a new key: To request a new csr with an…

  • Using Let’s Encrypt, cerbot-auto with Apache on CentOS 6

    There are plenty of better documented examples out there, so this is more of a note to self. The name on the cert will be the first domain you list int he command above. All the other names will be part of the SAN cert. And to renew, cron this up: /opt/YourDir/certbot-auto renew

  • BASH script to change the Security Keys and SALTs in a wp-config.php file

    I wanted to automatically change the Security Keys/SALTS when provisioning a new WordPress site. WordPress.com has a service that spits back random values. (https://api.wordpress.org/secret-key/1.1/salt/). The script below CURLs the values and then modifies a wp-config.php file with the new random values. Don’t remember where I got the pieces of this, but here it is, I…

  • My Debian/Raspberry Pi cheat sheet (translations from CentOS)

    I have worked on Solaris and RedHat/CentOS (although Solaris was many years ago, so I  should just admit that I no longer know where anything is). I find Debian to be a different dialect than RedHat. This post is going to serve as my translation cheat sheet. I use the  bash complete string below with…

  • Update DynDNS from the command line

    My router is not updating DynDNS correctly, so I wanted to use a simple cron job to do the same. Here is a simple BASH/Shell script to update DynDNS: IP=$(curl -s icanhazip.com) curl -v -k -u username:password “https://members.dyndns.org/nic/update?hostname=DNSHOSTNAME.dyndns.org&myip=$IP”

  • How to setup a remote syslog server in CentOS 6

    I wanted to have a cisco device send it’s logs to a Centos box for troubleshooting. I just wanted to do a “tail -f” against the error logs. Seems that syslog is now rsyslog in Centos 6. To setup rsyslog to accept syslog logs from other devices, you need to: 1. uncomment out the following…

  • How the cloud failed me.

    We host our Linux boxes on Rackspace’s Cloud Server platform. We pay extra per month to use their Redhat Linux images. In return we receive all our patches and updates through Rackspace’s RHN Satellite server. Our thinking was that, we could purchase a Redhat support contract, and  since we were running Redhat we would have OS/Application support if needed. We…

  • My SugarCRM install proceedure for CentOS

    We are evaluating CRM products at work, and I wanted to get an idea what SugarCRM looks like. Below are the steps I used to install Sugar CRM community edition. I already had LAMP up and running Download sugarCRM: wget http://www.sugarforge.org/frs/download.php/7746/SugarCE-6.1.2.zip Extract the zip and move to /var/www. Create a virtual host for it in…