Howto fix Deutsche Telekom slow Mac App Store download speeds

macOS Mojave was released to the public on Monday. As I’m still suffering under terrible problems with macOS High Sierra Updates, I’ve decided to give my Mac a chance and to download Mojave.

macOS Mojave installer start screen

I’ve started the download from the Mac App Store and the download speed was really slow. I’m using a 50MBit VDSL connection provided by the Deutsche Telekom. All other Downloads are fast and saturate the connection at about 5,5MB/s.

Really slow downloads from the App Store. This one should download for 5 and a half hour

The Download from the Mac App Store is terribly slow at around 200kB/s. After searching for problems with Deutsche Telekom and slow App Store speeds, I’ve stumbled over this page.

The solution to my slow download rates seem to be the used DNS server. Even if you use the DNS from Quad9 or the one from Google, you will have slow downloads.

A fast download from the App Store with 5,5MB/s. It finishes in 22 minutes

The recommended IPv4 DNS server are quite fast. I’ve setup a new Network Profile with these DNS server and I have now the full download speed again.

You can switch your network profile afterwards to your local DNS server.

Disable WordPress Trackbacks to avoid spam

I’ve intended to disable all comment or trackback functionality to avoid having spam and dealing with it in form of anti-spam plugins like Akismet. While I already had comments disabled, Trackbacks were still active.

Even when you disable Trackbacks in the WordPress settings via „Settings / Discussion“ under „Allow link notifications from other Weblogs (Pingbacks and Trackbacks)“, your existing pages needs manual update to take effect.

Connect to your MySQL database of your blog (e.g. with PHPMyAdmin) and execute these two queries:

 

I’ve found this information on Andreas blog, thank you!

Howto convert a Windows 10 installation from legacy BIOS to UEFI boot

I’m currently trying to build a Hackintosh. I had some troubles with bootloaders and modified BIOS, as they weren’t able to detect my existing Windows 10 installation. Windows 10 was installed in legacy BIOS mode, which means you have a traditional boot layout using a Master Boot Record (MBR) instead of GPT (which is also used by Mac OS).The Windows 10 installation would be visible if I could somehow change it from MBR to GPT.

Normally you would do a reinstall and would create a new installation of Windows 10, but this time you would select the Installer as UEFI Installer and it would suggest to reformat the disk with GPT.

However, I don’t want to reinstall everything so I searched for a solution. With one of the recent Windows 10 updates Microsoft added support for a tool called MBR2GPT. This tool can update your existing installation to GPT.

WARNING: The following assumes that you’ve created a working backup of your installation and that your computer supports booting via UEFI.

The necessary steps are:

  • Start your computer, so that Windows 10 is loaded.
  • Select restart and press and hold the shift key.
  • The computer will restart into Windows PE mode.
  • Select Troubleshooting, Advanced options, Command Prompt.
  • Windows will ask you to select a user name with admin rights.
  • Login with that user.
  • The Command Prompt opens and you can start the process with
  • If that command succeeds without errors, you can start the conversion with
  • You can exit the Command Prompt.
  • Reboot your computer.
  • It should boot from the found GPT partition scheme and should present you the Windows boot screen.

 

How to clean install Mac OS High Sierra without APFS on internal SSD

Did you ever wonder how you can make a clean install on your Mac with High Sierra without being forced to use APFS? Well, I just reinstalled my mac using this method and want to explain how I acomplished this:

First of all, you’ll need to boot from a Mac OS Version below 10.13 High Sierra. Otherwise you’ll get an error message „Helpertool crashed“. So in my case I booted from a 10.12 Sierra USB stick.

You can now use the Disk Utility of the recovery OS you currently booted from to clean you complete disk. Format the volume HFS+ journaled and choose a simple name without spaces like „internal“ (which I used for my internal SSD). Attach the USB stick which contains the High Sierra installer. You can create this installer following these instructions.

Now exit Disk Utility and open a Terminal. Go to the Volume of your attached High Sierra USB Stick.

cd /Volumes/“Install macOS High Sierra“

Start the installation of High Sierra to the freshly formatted HFS+ volume mounted as „internal“. This clean installation will also create the Recovery HD partition.

„Install macOS High Sierra.app“/Contents/Resources/startOsInstall –agreetolicense –converttoapfs NO –volume /Volumes/internal

More information can be found here. A video of the process and more details are here. If you execute the startOsInstall command with –usage you’ll get a list of available parameters.

 

DIY HomeKit with Raspberry Pi and Xiaomi Robot Vacuum

Inspired by tweets of Steven Troughten-Smith, people started to experiment with Raspberry Pi’s as DIY HomeBridge devices. One of them is Wojtek Pietrusiewicz. He wrote a nice article which I used as base for this post.

Introduction

I own a Xiaomi Robot Vacuum. This robot can be controlled by the Xiaomi app, however, I don’t like it very much. The idea is to control this robot over HomeKit. To use HomeKit, I use an old Raspberry Pi 1B. The software will be HomeBridge.

Setting up the Pi

Installation and Configuration of Raspbian

Use Etcher to write the image to the SD card. Remount that SD card and add a file called „ssh“ in the root of the mounted partition. This will enable SSH from the beginning so that you can login directly to the Pi. I don’t want to attach a screen or keyboard to that machine so it will only be reachable over the network. Now boot your Pi from this SD card.

Identify the Pi’s IP (e.g. by looking at the network overview in your router). Now connect to that IP with user „pi“. The default password is „raspberry“. Please change the password now with passwd and assign a new user password.

Update everything with apt:

 

Install nodejs 8.9.4

According to Wojtek only this version works currently with HomeBridge. I did not test any other version so I’m just describing what I did on my machine:

  1. Download nodejs for the PI into your users homefolder, e.g. with wget https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-armv6l.tar.xz
  2. Unpack the file with tar -xvf node-v8.9.4-linux-armv6l.tar.xz
  3. cd node-v8.9.4-linux-armv61
  4. sudo cp -R * /usr/local/
  5. add export PATH=$PATH:/usr/local/bin to e.g. ~/.bashrc
  6. node should be now available

Install HomeBridge

  1. Install the necessary libraries: sudo apt-get install libavahi-compat-libdnssd-dev
  2. Install HomeBridge with npm: sudo npm install -g --unsafe-perm homebridge
  3. open /etc/default/homebridge and safe it with this content:
  4. open /etc/systemd/system/homebridge.service and safe it with this content:

Setting up HomeBridge with Xiaomi Robot Vacuum

  1. sudo npm install -g homebridge-xiaomi-mi-robot-vacuum miio
  2. open ~/.homebridge/config.json and safe it with this content:

    Generate a new MAC address separated by : using this website. You’ll need the IP address of your Xiaomi robot as well as the token. There are several ways to get the token. I’ve extracted mine from the iOS backup. Instead of uploading the token I’ve used this command on the token taken from the sqlite database:
  3. Check if everything is working by starting homebridge for the first time. It should show a QR code. If it does, cancel the process with ctrl+c

Automate HomeBridge startup

Adding the HomeBridge to iOS devices

  1. Install the Home app, if you’ve removed it from your device. You can reinstall it from the App store.
  2. Open the Home app and add a new device
  3. If you’ve give the app access to your camera, you can scan the QR code you’ve seen earlier. However, HomeBridge is now running as a daemon in the background so you won’t see that QR code. You can add the bridge manually by using the PIN you’ve set in the config.