Syncthing, syncthing-inotify, and QsyncthingTray

November 21st, 2016

Insert taunts now, but I chose to stop using owncloud/Nextcloud after considering several options for my macOS Sierra Server, including: Seafile, Tonido, Pyd.io, CEPH, ownCloud/Nextcloud, BitTorrent Sync, and Syncthing.

ownCloud/Nextcloud were ruled out, as I’m running it on OS X Server, which is unsupported, and even though I ran ownCloud for a couple years with only minor issues, the project seemed to offering many more features than I wanted – I just want to sync files across several devices.

Of the options I considered, only Tonido, CEPH, and BitTorrent Sync seemed to offer Mac support and then I was fortunate to read about Syncthing. It seemed to have all the advantages of BitTorrent Sync, only its open source and might be a little more difficult to set up.

I quickly set it up on my MacBook Pro, macOS Sierra server, and my Dell running Win7 at work. So far its working like a champ. A followup will be posted for macOS Sierra Server later. For now, this post lays out what steps I used to get the titled apps running on macOS Sierra and Win7:

  1. Download brew from http://brew.sh – open Terminal.app and paste in the code from brew.sh or use the following two commands: “sudo xcodebuild -license” and “/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)””.
  2. Install syncthing in Terminal.app, executing “brew install syncthing” – when prompted at the end, also enable the autolaunching feature “brew services start syncthing”.
  3. Optional step – Install syncthing-inotify in Terminal.app, executing “brew install syncthing-inotify” – when prompted at the end, also enable the autolaunching feature “brew services start syncthing-inotify”.
  4. Download Qsyncthingtray from https://github.com/sieren/QSyncthingTray/releases and drag it to your Applications folder.
  5. Open System Preferences and add Qsyncthingtray to your Login items.
  6. Unmount the installer images.
  7. Launch Qsyncthingtray by double-clicking it from /Applications or from Spotlight or other launcher.
  8. Configure Qsyncthingtray’s preferences to be aware of the file path of Syncthing, I told mine ~/Applications/Syncthing.

Windows instructions:

  1. Download and open up syncthing’s official installer.
  2. Configure Task Scheduler to autolaunch syncthing when computer boots up, using these instructions.
  3. Download Qsyncthingtray from https://github.com/sieren/QSyncthingTray/releases and drag it to your Applications folder.
  4. Optional step – Download Syncthing-inotify.
  5. Launch Qsyncthingtray by double-clicking it from c:/Program Files or by searching for it.
  6. Configure Qsyncthingtray’s preferences to be aware of the file path of Syncthing, I told mine ~/Applications/Syncthing.

If you want screenshots showing the setup of a single shared folder across all devices, let me know in the comments.

Gemini MER6872BAS Repair

October 15th, 2016

Portions of our oven’s keypad were no longer acknowledging button presses. Sometimes power-cycling the oven would allow the non-functioning portions to temporarily work, but this only worked for less than a minute at a time after power was restored, not an ideal fix/workaround.

I decided to rip into the back of the oven and look at things. I started with pulling the button pad ribbon cables off the control board and noticing that the leads seemed to be oxidized. I took an eraser to the leads and cleaned them up, but the problems persisted.

The next time I pulled the back off the oven, I noticed the control panel had a serious blowout at some point, as shown below.

Blown Maytag Gemini Board

Blown Maytag Gemini Board

I looked into online services through eBay, but was deterred by the service details they provided: sometimes the services were only to assess the board’s condition and other times the services covered the control board but not the buttons. With this oven, the control board and buttons are considered one unit.

Not wanting to get screwed by one of these services, I decided to buy a new control board (with buttons) on Amazon. After installing the new control board, full oven functionality returned. The new board gives us a 1-year warranty and since it was charged with Visa, we will have coverage from years 1 to 2 as well.

DiskStore.Warning: Failed messaging flag writer

September 17th, 2016

Our El Capitan Server was shooting off the following error messages every 30 seconds in Console.app:

mds[81]: (DiskStore.Warning:127) Failed messaging flag writer

Thinking the error might have something to do with Spotlight, I went to System Preferences->Spotlight->Privacy, and dragged my startup disk to the Privacy pane. The error messages stopped immediately.

When I removed the startup disk from the Privacy pane and allowed my trusty Mac to re-index the startup disk – the error messages began to reappear.

This machine is my server, so I’m going to leave Spotlight’s privacy enabled for all of my drives, but I’m hoping to figure out what’s wrong, later.

Cloning OpenWRT w/ ROOter

May 6th, 2016

I’ve put time into configuring routers and need to be able to quickly clone settings to new hardware. I was hoping to take a working router configuration, connect it to a PC (or device), and open a terminal session to use the following commands:

cd desktop

ssh  root@192.168.1.1

dd if=/dev/mtd4 of=/tmp/backup20160505.trx

scp root@192.168.1.1:/tmp/backup20160505.trx .
scp backup20160505.trx root@192.168.1.1:/tmp

mtd -r write backup20160505.trx art

But at the final step, my router throws up an error message that includes:

Could not open mtd device: art
Can't open device for writing! openwrt

If someone has a suggestion, I’m all for it. I’ll report back when I figure this out.

MacBook Pro and Bluetooth

April 4th, 2016

I’ve had a problem with the Bluetooth on my MacBook Pro where the menu bar icon is grayed out and it is crossed out and not functioning. Restarts and PRAM resets don’t seem to resolve the issue, but the following steps are pretty painless and fixed things for me:

  1. Close System Preferences and/or any app that was trying to use or configure any Bluetooth device with the Mac
  2. From the OS X Finder, hit Command+Shift+G to summon Go To Folder and enter the following path:  /Library/Preferences/
  3. Locate the file named “com.apple.Bluetooth.plist” and delete it
  4. (you may see a com.apple.Bluetooth.plist.lockfile too, if so delete that as well – this is a system folder so you will need to authenticate with an admin user)
  5. Head to the Apple menu and choose “Shut Down” to power down the Mac
  6. Wait a minute or so before booting the Mac again
  7. Head to the Bluetooth menu or System Preference panel to resync your hardware

Thanks to Max108.

Fix Illustrator CS5 Crashing in OS X El Capitan

March 26th, 2016

If you’re running Adobe Illustrator CS5 on Mac OS X El Capitan, you may be plagued by the bug where Illustrator crashes hard when you try to normally quit it:

Screen Shot 2016-03-26 at 8.43.07 PM

Perusing Adobe’s forums revealed this post with a workaround, which can be reduced to the following fix:

  1. Quit Illustrator if it is open.
  2. Open “Terminal.app”.
  3. Paste the following command at the prompt:sudo mv /Library/Application\ Support/Adobe/CS5ServiceManager/lib /Library/Application\ Support/Adobe/CS5ServiceManager/lib.bak
  4. Enter your password when prompted and then press “enter”.

Try launching Illustrator CS5 and then quit it. Hard crashes should be a thing of the past.

And for those not wanting to use Terminal, double click your hard drive icon on the desktop, and navigate to Library->Application Support->Adobe->CS5ServiceManager. Click on the folder named “lib” and rename it to “lib.bak”. You may be prompted for your password on your Mac. Feel free to launch Illustrator and it should quit like it should, peacefully.

Bosch SHU 8800/8805

March 19th, 2016

We’ve had our trusty Bosch SHU 8805 (Stainless Steel) Dishwasher for over 15 years now, but recently several problems were apparent:

  1. the dishes weren’t getting clean (the machine had become noticeably louder while trying to do so)
  2. the detergent dispenser was no longer holding soap, and
  3. the sump wasn’t properly discharging waste water.

I purchased replacement parts for all of these issues, even though I probably didn’t need all of them, more on that later.

To address the issues above, Bosch gave me this parts list over the phone and we purchased the following parts:

  1. Sealing Kit, 00167085
  2. Dispenser, 00490467
  3. Pump-drain (pump), 00167082

Disassembly of the dishwasher will take an hour of your time and I recommend watching this video as you do it. One note on the video, as you remove the “Pump Housing” be careful, mine was very brittle and some of the edges broke off – I may need to buy another one at some point.

As for the rest of the parts, they were all fairly easy to install using the video. Aside from wishing I had purchased the Pump Housing, I found that I did not actually need the Pump-drain (sump pump). The sump pump in my dishwasher was fine, except it was jammed with food and other debris that somehow managed to pass. Still, I installed the new one as I didn’t want to take the dishwasher apart again and I was faced with a restocking fee if I decided to return the pump to Bosch.

Anyway, the repairs went fine and the dishwasher has been running a couple weeks now and the dishes and silverware are clean and the machine is noticeably quiet again.

Fix for Deleted and Missing Ethernet Port

February 27th, 2016

While running like a headless champion better than 99% of the time, I tried connecting a Mac mini (mid 2011) to an iPad 2 with Duet Display last night. After trying this, Duet Display didn’t project the display from the Mac mini to the iPad and, while viewing the connection over VNC, the Mac mini slowly became unresponsive and restarts didn’t help. Even after a couple restarts, the Mac mini was unreachable.

Putting the mini in Target Disk Mode and booting its system volume through a MacBook Pro allowed OS X to boot and I could view the screen, but when booting OS X on the mini alone, it failed to establish a network connection. Resetting the SMC and PRAM failed to help. After finding another display to attach (thanks, Mom and Dad!), the mini booted up and connected with AirPort, but the ethernet card wasn’t detected by OS X – as observed through About this Mac->System Report…->Ethernet Cards, the mini only said “This computer does not appear to have any pci ethernet cards installed”. Deleting the Ethernet port in Network Settings and rebooting only seemed to make things worse, as the Ethernet port couldn’t be added back through Network Settings.

Many reports on the web indicate that the NetworkInterfaces.plist and other files should be trashed, but I was worried that possibly other files were corrupted too. Rather than play roulette with plist files, I took the easy way out – I allowed OS X to reinstall itself while I slept. After doing this and revisiting “System information”, the Ethernet port shows it is in now recognized:

Screen Shot 2016-02-27 at 9.36.03 AM

Fixed!

Duet Display, iPad 2, and Mac mini

February 24th, 2016

I’m trying to use Duet Display on a restored iPad 2 and a Mac mini. When I plug the iPad into the Mac mini and launch Duet Display on both devices, the Mac mini seems to acknowledge that the iPad is plugged in, but Duet Display freezes the iPad’s display and it looks like this:

image
What are my options to fix this?

Owncloud 8.2.1 and PHP 7 on Mac OS X Server (Yosemite & El Capitan)

November 30th, 2015

The above-referenced apps are now running on my OS X Server. To get PHP 7 running, check out my previous post:

http://www.schwie.com/brad/?p=325

To get owncloud running, I downloaded the tar’d files from download.owncloud.org, moved them to the following directory:

/Library/Server/Web/Data/Sites/owncloud

And then changed the permissions so that Apache can run the show:

sudo chown -Rv _www /Library/Server/Web/Data/Sites/owncloud

From there, everything installs as it should and despite the warnings about Mac OS X not being supported, owncloud 7 and 8 have been running fine for me.