Monday, March 20, 2017

2016 Honda CRV Touring Review

Pros:

  1. Touring has power tailgate and nav
  2. Ex L doesn't have power tailgate
  3. Remote start separate
  4. Right turn cam
  5. Touring adaptive cruise control. Lane assist auto brake
  6. Conversation mirror
  7. Seat settings
Cons:
  1. No Left turn camera
  2. No blind side assist

Notes about 2016 Subaru Forester Touring

Extended moonroof
Trunk small
Mpg less
Power tailgate
Limited edition
Nav separate
Remote start addition

"Phone audio" disabled for all Bluetooth profiles


I have tested various Moto phones in the last month. I use mine in the car with the bluetooth connected to the car stereo.Recently it is no longer routing the phone audio thru the car even though its connected.  When I click the gear icon to check the settings while
its connected the check box for "Phone Audio" is unchecked and will not let
me check it!

 As I was checking my Bluetooth settings, and I turned off the scanning settings for Bluetooth. After turning it off, I was able to turn BT off then on, and I did not lose my Audio settings.


Friday, March 10, 2017

Emirates website


Using LetsEncrypt for free SSL/TLS Certificates

machine:scripts $ sudo certbot certonly -d subdomain.domain.org --manual 
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for subdomain.domain.org

-------------------------------------------------------------------------------
NOTE: The IP of this machine will be publicly logged as having requested this
certificate. If you're running certbot in manual mode on a machine that is not
your server, please ensure you're okay with that.

Are you OK with your IP being logged?
-------------------------------------------------------------------------------
(Y)es/(N)o: Y

-------------------------------------------------------------------------------
Make sure your web server displays the following content at
http://subdomain.domain.org/.well-known/acme-challenge/somelargetext before continuing:

somelargetext.blahblahblah

If you don't have HTTP server configured, you can run the following
command on the target server (as root):

mkdir -p /tmp/certbot/public_html/.well-known/acme-challenge
cd /tmp/certbot/public_html
printf "%s" somelargetext.blahblahblah > .well-known/acme-challenge/somelargetext
# run only once per server:
$(command -v python2 || command -v python2.7 || command -v python2.6) -c \
"import BaseHTTPServer, SimpleHTTPServer; \
s = BaseHTTPServer.HTTPServer(('', 80), SimpleHTTPServer.SimpleHTTPRequestHandler); \
s.serve_forever()" 
-------------------------------------------------------------------------------
Press Enter to Continue
Waiting for verification...
Cleaning up challenges
Generating key (2048 bits): /etc/letsencrypt/keys/0000_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0000_csr-certbot.pem

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at
   /etc/letsencrypt/live/subdomain.domain.org/fullchain.pem. Your cert
   will expire on 2017-06-08. To obtain a new or tweaked version of
   this certificate in the future, simply run certbot again. To
   non-interactively renew *all* of your certificates, run "certbot
   renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le


machine:scripts $ sudo ls -ltr /etc/letsencrypt/live/subdomain.domain.org
total 40
lrwxr-xr-x  1 root  wheel   47 Mar 10 12:19 privkey.pem -> ../../archive/subdomain.domain.org/privkey1.pem
lrwxr-xr-x  1 root  wheel   49 Mar 10 12:19 fullchain.pem -> ../../archive/subdomain.domain.org/fullchain1.pem
lrwxr-xr-x  1 root  wheel   45 Mar 10 12:19 chain.pem -> ../../archive/subdomain.domain.org/chain1.pem
lrwxr-xr-x  1 root  wheel   44 Mar 10 12:19 cert.pem -> ../../archive/subdomain.domain.org/cert1.pem
-rw-r--r--  1 root  wheel  543 Mar 10 12:19 README

Wednesday, February 01, 2017

Apache SSL configuration

/etc/apache2/conf/subdomain.conf

<VirtualHost 1.2.3.4:443>
       ServerName subdomain.domain.net
       ServerAdmin webmaster@domain.net
     
       CustomLog /var/logs/subdomain_access_log combined
       ErrorLog /var/logs/subdomain_error_log
DocumentRoot /home/subdomain
LogLevel warn
<Directory "/home/chapters/subdomain">
  Options Includes ExecCGI FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
SSLEngine on
SSLCertificateFile /tmp/fullchain.pem
SSLCertificateKeyFile /tmp/privkey.pem
SSLCertificateChainFile  /tmp/chain.pem
SSLCACertificateFile  /tmp/cert.pem 
</VirtualHost>

Sunday, January 01, 2017

Apache basic-auth setup



sudo htpasswd -c /etc/apache2/.htpasswd <username>

sudo vi /etc/apache2/conf/subdomain.conf
<VirtualHost 1.2.3.4:443>
       ServerName subdomain.domain.net
       ServerAdmin webmaster@domain.net
     
       CustomLog /var/logs/subdomain_access_log combined
       ErrorLog /var/logs/subdomain_error_log
DocumentRoot /home/subdomain
LogLevel warn
<Directory "/home/chapters/subdomain">
    Options Includes ExecCGI FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
SSLEngine on
SSLCertificateFile /tmp/fullchain.pem
SSLCertificateKeyFile /tmp/privkey.pem
SSLCertificateChainFile  /tmp/chain.pem
SSLCACertificateFile  /tmp/cert.pem 
</VirtualHost>

sudo service apache2 restart