• icon-webcam
  • icon-germany
  • icon-denmark
Posted on

BIOS password recovery for ASUS laptops

To resolve a power button failure issue on an old ASUS UX32VD I needed to update the BIOS via EZ-Flash which as would happen was password protected. The BIOS platform used on this particular model has a known rescue password list to allow access.

Continue reading BIOS password recovery for ASUS laptops

Setting up a Cloudflare SSL certificate for Bitnami WordPress on Google Cloud Compute Engine

Bitnami WordPress on Google Cloud Compute Engine does not out of the box ship with SSL turned on, site owners need to secure communication to and from their website using SSL.

Here’s how to configure SSL using a free Cloudflare SSL certificate for Bitnami WordPress on Google Cloud Compute Engine.

Creating certificate files with Cloudflare

First we generate and download the SSL certificate files from Cloudflare.

    1. Open up your site profile on Cloudflare.com
    2. Switch to the Crypto tab
    3. Within the Origin Certificates section click the Create Certificate button
    4. Ensure the Let Cloudflare generate a private key and a CSR option is set to RSA
    5. Click Next
    6. With the Key format field set to PEM (Default) highlight and paste the contents of the Origin Certificate and Private Key blocks into separate new files on your Desktop:
      • Origin Certificate: server.crt
      • Private Key: server.key

Configuring Apache on your WordPress Bitnami instance

  1. Now we connect with SSH to the hosting server; your Google Cloud Compute Engine instance. You can do this via the Google Cloud Platform > Compute Engine > VM Instances > Connect with SSH or with your preferred terminal client.
    1. Open an SSH session to your Google Cloud Compute Engine instance
    2. Navigate to the /opt/bitnami/apache2/conf/ directory with the following terminal command:
       cd /opt/bitnami/apache2/conf/
    3. Delete or rename the existing server.crt and server.key files in this directory (I prefer to rename them to server.crt_legacy and server.key_legacy):
       sudo mv server.crt server.crt_legacy
      
       sudo mv server.key server.key_legacy
    4. Create two new files in their place:
       sudo touch server.crt
      
       sudo touch server.key
    5. With your preferred terminal text editor paste the contents of the two Cloudflare certificate files mentioned above into these new files on your hosting server
       sudo nano server.crt
      
       sudo nano server.key
    6. Restart the Apache service
      sudo /opt/bitnami/ctlscript.sh restart apache

Enable SSL within Cloudflare

  1. Open up your site profile on Cloudflare.com
  2. Switch to the Crypto tab
  3. Change the SSL dropdown from Flexible to Full
  4. Change the Always use HTTPS option to On
  5. Change the Automatic HTTPS Rewrites option to On

That’s it!

Toggle the System Monitor (CPU and memory) overlay on the Mazda Connect

Displaying the current CPU and memory usage of the Mazda Connect system helps to diagnose audio stuttering and slow screen changes common when using the Maps or third-party Apps (Android Auto, Speedometer, etc.).

Here’s how to toggle the system monitor overlay on the Mazda Connect system:

  1. Hold down Music + Back + Pwr/Mute for several seconds
  2. The system monitor overlay will appear in the top-right corner of the screen
  3. Release the buttons and on the touch screen select and hold the overlay element for several seconds to show the Linux performance monitor
  4. To hide the Linux performance monitor and system monitor overlay hold down  Music + Back + Pwr/Mute for several seconds

That’s it 🙂

Gallery

Source: Mazda3Revolution

Turning off PageSpeed and OPcache in Bitnami Apache for Google Cloud Platform

Here’s how to turn off the Google PageSpeed module within Apache and PHP’s OPCache functionality that is enabled by default within Bitnami instances on Google Cloud Platform.

    1. Establish a terminal session to your Google Cloud Platform instance with your preferred terminal client (e.g. Putty).
    2. Open up /opt/bitnami/apache2/conf/httpd.conf with your preferred file editor and find the following lines:Include conf/pagespeed_libraries.conf
      Include conf/pagespeed.conf
    3. Comment them out to match the following lines:
      # Include conf/pagespeed.conf
      # Include conf/pagespeed_libraries.conf
    4. Save changes and return to terminal prompt.
    5. Open up /opt/bitnami/php/etc/php.ini with your preferred file editor and find the following line:opcache.enable=1
    6. Comment it out and disable opcache.enable by matching the following lines:
      # opcache.enable=1
      opcache.enable=0
    7. Save changes and return to terminal prompt.
    8. Restart the Apache service with the following command:
      sudo /opt/bitnami/ctlscript.sh restart apache

That’s it 🙂

Xiaomi Mi Router 3C recovery from System Error (Orange/Red LED)

Here’s how to un-brick the Xiaomi Mi Router 3C if it gets stuck in a System Error state (steady orange LED showing on the front of the unit) and upload a fresh firmware to bring it back to life.

Note: For my sanity I will refer to the red LED as orange) as it’s clearly not red.

  1. Visit the MiWiFi website and download the latest firmware (website is in Chinese, I recommend using Google Translate to navigate this website)
    1. Switch to the ROM section
    2. Download the Stable ROM for R3C (latest release at time of writing is 2.12.15)
  1. Connect an ethernet cable to the WAN Port ethernet connector (that’s the blue port closest to the power supply connector).
    Connect the other end of the ethernet cable to your computer/laptop (if your laptop does not have a ethernet port use a USB to Ethernet adapter)
  2. Find a paper clip and when ready pull the power cable on the Xiaomi Mi Router then press down firmly on the Reset button and re-connect the power supply
  3. Continue to hold down the Reset button for up to 10 seconds or until the front LED colour changes from steady orange (System Error) to flashing orange (Safe Mode)
  4. If the LED colour fails to change to flashing orange after some time rinse and repeat by pulling the power cable and re-connecting until the unit enters Safe Mode
  5. Here’s where things get interesting… if an IP address is automatically assigned to your device you can skip to step 6 (thanks DD).

    If an IP address has not been automatically assigned to your device then jump back to the first step and move the ethernet cable from the WAN Port to LAN Port 1 (shown as a single dot, beside the other LAN Port with two dots) on the Xiaomi Mi Router 3C.

    You will need to manually assign a IP address on your computer as the DHCP server on the router is not enabled in Safe Mode, set the following network options for your ethernet connection:

    1. IP address: 192.168.31.5
    2. Subnet mask: 255.255.255.0
    3. Default gateway: 192.168.31.1
    4. Preferred DNS server: 192.168.31.1
  6. Open up your preferred browser and enter http://192.168.31.1 into the address bar
  7. Upload the firmware file you downloaded earlier and wait a few minutes
  8. If the front LED does not change to blue within 5 minutes pull the power cable and put it back in and wait another few minutes for the router to boot up
  9. Check for nearby WiFi SSID’s, the Xiaomi Router should be available to connect and configure
  10. Undo your ethernet connection changes and configure your Xiaomi Router

That’s it.

How to connect the Xiaomi Mi Gateway to Domoticz

Out of the box the Xiaomi Mi Gateway does not allow other network-based devices to integrate with it, with a little bit of effort though you can enable LAN support for integration with Domoticz or other smart home platforms.

Here’s how to connect the Xiaomi Mi Gateway to Domoticz:

  1. Supply power to the Xiaomi Mi Gateway (you do not need to hard reset this device to enable LAN support)
  2. Open up the MiHome App (Android and App Store)
  3. From the Profile > Settings screen set to the Location field to “Mainland China”
  4. Open up the device detail screen for the Gateway device
  5. Click the triple dots button in the top-right corner of the screen to open the More screen
  6. Open the About screen
  7. At the bottom of the screen keep tapping the version number until a notice appears
  8. From the same screen open the Local Area Network Communication Protocol screen
  9. Slide the toggle element for “Local Area Network Communication Protocol” to enabled
  10. Note down the Password detail for later use in Domoticz (if the Password detail is blank or shows “password” click Confirm and re-open this screen
  11. Click the Confirm button to save changes and return to the More screen
  12. Open the Network Info screen and note the IP address for later use in Domoticz
  13. Switch to Domoticz and open up the Setup > Hardware screen
  14. From the Add new hardware section select Xiaomi Gateway from the Type list
  15. Set the Remote Address to the Xiaomi Mi Gateway IP address referenced above
  16. Set the Port Number to 9898
  17. Set the Password to the Xiaomi Mi Gateway password detail referenced above
  18. Click Add to add the new Xiaomi Mi Gateway to Domoticz
  19. Open up the Setup > Devices screen and check for new devices

That’s it 🙂

Give it some time for Domoticz to discover the new devices and you’re away, have fun!

Hiding the Bitnami corner banner on new Google Cloud Compute Engine instances

By default new Bitnami instances show a corner banner on all pages. To remove this connect to your Google Cloud Compute Engine instance via SSH and enter the following commands:

  1. sudo /opt/bitnami/apps/wordpress/bnconfig –disable_banner 1
  2. sudo /opt/bitnami/ctlscript.sh restart apache
  3. sudo /opt/bitnami/ctlscript.sh restart nginx

That should be it. If you get the terminal error “Error: There has been an error.” running the bnconfig command try the following:

  1. cd /opt/bitnami/apps/wordpress/conf
  2. sudo nano httpd-app.conf
  3. Comment out the following line:

    Include “/opt/bitnami/apps/wordpress/conf/banner.conf”

    to…

    # Include “/opt/bitnami/apps/wordpress/conf/banner.conf”

  4. Save changes
  5. sudo /opt/bitnami/ctlscript.sh restart apache
  6. sudo /opt/bitnami/ctlscript.sh restart nginx

That’s it! 🙂

How to change the Home address on the Mazda Connect Maps App

Setting the Home address on Mazda’s Connect Navigation App is done during the first-time setup of the navigation App, set it and forget, but it’s not obvious how to change the Home address at a later time.

Here’s how to update the Home address on the MZD Connect Navigation App:

  1. Start your Mazda car and wait for the Mazda Connect platform to load
  2. Open the Navigation App
  3. Select Favourites from the Navigation menu
  4. Highlight the Home menu option
  5. Press and hold down the Commander button down for up to 5 seconds *
  6. Select Edit to update the Home address
  7. Set your City/Suburb, followed by Street and Number
  8. Save your changes

That’s it! 🙂

* The Commander button is shown as the main dial in the lead image above this Post that you use to interact with the Connect platform whilst driving.

Source: Mazdas247.com

Re-map the Calculator keyboard key to Play/Pause on Windows 10

Here’s how to re-map the default Calculator keyboard “shortcut key” to instead send the Play/Pause media command under Windows 10; alot more useful!

This guide is aimed at the Amazonbasics Wired Keyboard but applies to any keyboard making use of the standard Windows media/shortcut key codes. A requirement is that you are using a supported media player including iTunes, Spotify, Windows Media Player or VLC.

  1. Download Command Line Media Controller (it’s free) and copy it to the Program Files (x86) directory
  2. Open up the Registry Editor (regedit64.exe) by clicking the Start button and typing regedit into the search bar
  3. Expand Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18
  4. Create a new String with the Value name: ShellExecute
  5. Set the String Value data to: “C:\Program Files (x86)\Command Line Media Controller\CLMControl.exe” Spotify -pp
  6. Click OK

That’s it! Hit the Calculator keyboard shortcut with Spotify open and it will toggle play/pause. Happy listening! 🙂

Recovering from a “dead” hard disk on the XPS 15 9550

I brought my XPS 15 9550’s hard disk back from the brink today. I hope this will help other affected XPS 15 9550 users or just Windows users in general.

The XPS 15 9550 was powered down as usual and on reboot would go directly from the Dell POST logo to the Dell diagnostic software (Enhanced Pre-Boot System Assessment). That’s not a good sign.

After running through common diagnostic steps with Dell Support a new hard drive was ordered and installation scheduled for the following day (unit was covered under a Next Business Day support contract). As Dell Support put it the hard disk was dead without any chance of recovery… or was there? 😉

Here’s how to recover your Windows instance in the case where the hard disk hardware is still being detected and simply has no UEFI boot entries:

  1. Open BIOS Setup by powering up the XPS 15 and tapping F12
  2. Open the Settings > General > Boot Sequence screen
  3. Ensure that UEFI is selected under Boot List Option
  4. Click Add Boot Option
  5. Provide a Boot Order Name (it can be anything, I used Bootx64)
  6. Select the available File System List
  7. Set the File Name to: \EFI\Boot\bootx64.efi or click the ‘…’ button and expand the EFI > Boot directory and select bootx64.efi before pressing OK
  8. Click OK to create the new EFI boot entry
  9. Select the new EFI boot entry
  10. Click Apply
  11. Click Exit

Fingers crossed! That’s it, I hope you’re back up and running again. 🙂