Search This Blog

Monday 19 September 2016

Addressing speed issues with new iMac

Having bought a new iMac (well, Apple Store Refurbished) and transferred everything from MacBook (worked very well), I was disappointed to see how slow it was going. Applications took what seemed like an eternity to open, thumbnails were slow to load, numerous swirling balls of death, etc.

After searching, I made a number of changes. I'm not 100% sure which of these (or which combination) did the trick, but it's now considerably snappier.

  • Login items. For some reason, CrashPlan was listed twice. So I removed one instance. I also removed Android File Transfer, which doesn't need to be in place at login time.
  • Based on this post, I ran the command 
rm ~/Library/Caches/CloudKit/CloudKitMetadata*;killall cloudd
  • I contacted CrashPlan, as my backup seemed to be constantly in scan mode. They suggested:
  1. Open the CrashPlan app
  2. Double-click the CrashPlan logo in the upper-right
  3. Copy and paste the following bolded text into the box: java mx 2048, restart
  4. Press enter
CrashPlan will close to apply the change.
To confirm that the setting applied, reopen the CrashPlan application and repeat the steps above. This time type java mx in the command line window.

Sunday 28 August 2016

Adding books from own library to Kindle

Scenario was that books existed on own PC in .mobi format, but away from home so couldn't connect to PC via USB.

After faffing about with the idea of using a USB stick (no joy), a thought occurred. And worked. This was the process.

  1. Upload the .mobi books from the computer to a folder on Google Drive (this could be done with Chrome Remote Desktop, or from the USB stick itself)
  2. Set up an Amazon Kindle email address (see https://www.amazon.com/gp/sendtokindle/email - this requires accessing Amazon account to set up the address)
  3. From Google Drive (probably Dropbox works too), email the .mobi files to the Kindle email address
  4. Connect the Kindle to wifi
  5. Books download onto Kindle
Neat!

Downloading tracks bought from Google Play Music


When a purchase is made (and mine tend to be as a result of credits earned through the Rewards Android app), the question is how to get those files downloaded rather than just in the cloud.

It's actually quite simple. From a desktop machine, go to Play Music, click on the three dots and select Download:


exFAT set up on Ubuntu

Following on from my previous post, I wanted to check drives would mount on Ubuntu. My server isn't fixed yet, so in the meantime I used an Acer Aspire notebook running Ubuntu.

The steps here worked for me, basically

  1. Add the repository: sudo add-apt-repository ppa:relan/exfat
  2. Update the package list: sudo apt-get update
  3. Install the exfat package: sudo apt-get install fuse-exfat
  4. Create the mount folder: sudo mkdir /media/exfat
  5. Mount the filesystem (replace sdc1 with your exfat partition): sudo mount -t exfat /dev/sdc1 /media/exfat
  6. Read and write to /media/exfat to your heart's desire.
  7. When you are done, unmount the filesystem: sudo umount /media/exfat
Then I wanted to compare the contents of drives. The command line answer is

diff -qr dir1 dir2 | sort

but in typical fashion I forgot how to make the pipe symbol appear. However, there is a graphical frontend that will tell me what I need to know - it's called Meld.

sudo apt-get install meld
meld dir1 dir2
That worked just fine.

So now all the drives are formatted as exFAT so should be far more interchangeable. And with my new Smart Router coming from BT, with its USB slot, I may just plug one of them in there for access by all.

Wednesday 24 August 2016

Server issues and exFAT

A side effect of regularly running out of space on my MBP is that I need to archive files over to my Ubuntu server (program files, lossless music, etc), as well as back up others.

This happens through my running cron jobs, alongside SuperDuper!

As I don't generally leave the monitor running on the Ubuntu box, I noticed recently that SuperDuper! wasn't working (it couldn't find a source drive).

Rebooting Ubuntu showed that power commenced, with the fans running, but a black screen (no text appearing at all) and no lights illuminated on keyboard. ssh didn't work either.

There's clearly a larger issue to resolve there (possibly related to graphics card), but before that I wanted to archive some data before my MBP was out of space.

The server has three internal drives, one of which is 120GB and dedicated to Videos, and another is 1TB for backup.

Also, there is an external 2TB WD drive.

I started with the latter, as ease of plugging into MBP made it the best place to start.

Sadly, it was read only. I realised I'd formatted in Ubuntu and couldn't write to it in OSX.

So the plan was to copy files, reformat and then copy back. Fortunately I had another 500GB drive I could use for this purpose.

Copying was easy (albeit slow, as both external drives were USB connected to MBP). Then, to check the contents were correctly copied, I ran

diff -rq folder1 folder2 > ~/Desktop.diffs.txt

Again, very slow output on this.

Now for formatting, Based on this article, I reformatted as exFAT. This should allow readability on Windows, OSX and Linux (with suitable packages installed). Reformat only took a few seconds.

Next stage, copy all files back, then re-run the "diff" command to double-check.

Then, delete the files from the 500GB drive, reformat THAT as exFAT, and then back up as necessary.

Final stage, remove the 120GB and 1TB drives from server, connect via a caddy to MBP, copy, diff, format and repeat...

THEN fix the server issue!

Monday 18 July 2016

Facebook and Google Authenticator

Rather than having 2FA via an SMS message, it is possible to use Google Authenticator.

Choose Settings, then Security > Set up code generator. See below:


Sunday 17 July 2016

gReader volume controls settings

I keep forgetting where to find this, and invariably end up trying to adjust volume on a podcast and end up moving through articles.

This is where it is:

Settings



Article controls

























Volume Key (article view)





Nexus devices with dodgy USB power connections

An increasing frustration is the situation where there is power flowing to the USB cable, but it does not fit as snugly into the slot on the Nexus device any more, leading to eventually the device draining completely.

To save looking it up each time, this is the advice from Google which does seem to work.

  1. Unplug the USB cable from the power adapter and use it to connect your Nexus device to a computer’s USB port while the computer is on and connected to a power source.
  2. After 10-15 minutes, disconnect the USB cable from your Nexus device and reconnect it within 10 seconds.
  3. After 1 minute, check to see if a battery icon appears on the screen.
  4. Press & hold the Power button for at least 15 seconds to see if your device turns on.

And then

  1. Follow the instructions for your Nexus device below:
    • Nexus 5X, Nexus 6P, Nexus 4, Nexus 6, or Nexus 7:
      • Press and hold the Volume Down button and the Power button at the same time for at least 10 seconds. You'll see an Android robot and the word "Start" with an arrow around it.
      • Press the Volume down button to move through options until the screen shows the option to Power off. Press the Power button to select that option.
    • Nexus 5 or Nexus 10:
      • Press and hold the Volume DownVolume Up, and Power buttons at the same time for at least 10 seconds. You'll see an Android robot and the word "Start" with an arrow around it.
      • Press the Volume down button to move through options until the screen shows the option to Power off. Press the Power button to select that option.
  2. Disconnect the charger and reconnect it within 10 seconds. A battery icon should appear on your screen.
  3. Once the battery icon appears on the screen, allow your device to charge for at least 1 hour before turning it back on.

and finally

  1. Make sure the power cord is securely connected to your Nexus device and the power adapter. Leave the charger plugged in to a working power outlet for at least 1 hour.
  2. After 1 hour, disconnect the device from the charger. Reconnect it within 10 seconds.
  3. Press & hold the Power button for at least 15 seconds to see if the device turns on.

Saturday 9 July 2016

Yet more power cuts badly affecting external Time Machine drive

Having previously posted about issues with power cuts corrupting Time Machine, it happened again this time, but to the extent that the drive didn't even display in Disk Utility.

I followed the steps here:

diskutil list


So the 2TB drive is clearly there. 

Next step - diskutil unmount /dev/disk2

That didn't work ("disk2 was already unmounted or it has a partitioning scheme so use "diskutil unmountDisk" instead"), had to modify slightly to:

diskutil unmountDisk /dev/disk2

Also didn't work - "Unmount of disk2 failed: at least one volume could not be unmounted"

Therefore referred here and tried instead:

sudo lsof|grep disk2

Running processes were displayed:

fsck_hfs  889            root    4u      CHR                1,7 0x1b0508000      693 /dev/rdisk2s2
fsck_hfs  889            root    5u      CHR                1,7 0x1b0508000      693 /dev/rdisk2s2

So I closed these in Activity Manager

At this point, the Time Machine (albeit greyed out) showed in Disk Utility, so next step is First Aid there.

Having also then tried diskutil mount /dev/disk7s2 and getting the response Volume on disk7s2 timed out waiting to mount

I was about to give up. But then, as a last throw of the dice, I tried connecting to my Ubuntu desktop.

Immediately in Home Folder it showed as a mounted drive! So from there I went to Disk Utility, unmounted the partitions, erased and formatted them and then re-connected to Mac.

A Time Machine backup has now commenced.....

Thursday 26 May 2016

Setting up Amazon two factor authentication in the UK

Brief version extracted from here - http://www.techworld.com/security/how-brits-can-enable-amazon-two-factor-authentication-security-now-3631955/

1. Sign into Amazon.com, rather than .co.uk
2. Go to "Your account > Change account settings"
3. In "Advanced security settings" confirm SMS authentication
4. Enter mobile number, type in the six-digit SMS code sent to that device.

Setting up a new (or reset) Android phone

Although the Google transfer wizard does a pretty good job of installing apps and settings for wi-fi networks, etc, there's still quite a lot to consider.

  • In the case of resetting, it's important to remember that *any* data on the phone is lost. This includes:
    • Documents (and anything else in Downloads)
    • Photos
    • Videos
    • Music
    • Ringtones
    • All SMS messages
So the lesson from this is - *regular* backups, which need to be to a cloud location, not the phone itself

  • Frustratingly, all settings for lock screen notifications are not saved. This means individually setting any apps to Block as appropriate. Time consuming with a lot of apps.
  • Groups of apps on the home screen are not always restored, and - if the Android image is being taken from a different device (such as a tablet) - some apps may be missing and need to be manually installed.
  • Fingerprint unlock needs to be set up again.
  • NFC turned off (seems to be enabled by default)
  • Custom ringtone (if applicable) needs to be saved to phone.
  • Podcast subscriptions should be restored from last full backup. This will also recognise podcasts not previously downloaded (since time of last backup) and kick this off
  • Add clock widget back to home screen
  • Enter credentials into all login based apps
App specific settings

Podcast Addict
Settings > Update > Automatic Refresh = Enabled; Pull to Refresh = Enabled
Settings > Download > Share with other apps = Y
Settings > Notification > Tick "Update in progress", "New episodes", "Comments update in progress", "New comments", "Download in progress", "New downloaded episodes"

Clipper+
Settings > Notifications > Clipboard contents - UNCHECK

1Password
Re-sync with Mac and set up fingerprint unlock

SMS Backup+
Tick Auto backup

SwiftKey
Re-enable as main keyboard input

Authenticator
This is by far the most troublesome app. Particularly if the Android device being reset is also the one containing Authenticator and hence the 2-step verification codes. For Google accounts, the only way I could see to get round this is - on web - disable 2-step verification. Then re-set it up, scanning a new QR image into the Authenticator app - a very clumsy approach to it.
It also means other apps that use Authenticator need to be set up again. This includes:

Microsoft Outlook - sign in on Desktop. Go to Account Settings > Security & Privacy. Then turn off existing Apps. Follow this with install a verification app, but do not choose the app recommended, instead select the option that it's incompatible with your Android. At this stage the QR code will appear and can be scanned and verified.

DropBox - again, sign in on Desktop. This may request a 2-step code, which can be a number sent by SMS. At that point request third party authenticator as main means of authentication. Then scan the QR code with phone, input the code on the desktop to confirm and *then* sign in on Android

IFTTT - sign in on Desktop. Use the very long back up code to verify. Say yes to setting up two step verification. Choose "Use an authenticator app" - then scan QR code as with Outlook and Dropbox.

Authenticator also works for Hootsuite (not an app I currently use)


Monday 16 May 2016

How to get Dilbert comic as RSS feed

Using this site - https://chrisbenard.net/2013/06/28/how-to-fix-the-dilbert-com-rss-feed/  - I chose the "Modified Atom Feed" and added this to Feedly - success!

Wednesday 4 May 2016

TV set up

Set up of TV and connected devices.

Rear of Sky+ Box - HDMI and Ethernet


Rear of Sky+ Box - co-ax and Scart


Inputs and outputs to Sky+ box:


Connections to rear of TV


Configuring music library on Sonos

This was working for me after a fashion, but I realised it needed rejigging when I kept getting messages saying the file could not be found.

My music is stored on a networked Ubuntu PC, and on my Mac. I had previously set mappings up such that the links to the networked PC were via mounted drives on the Mac. The downside, of course, to this is that if the Mac was turned off, then the music could not be accessed.

I'm aware that it's necessary to set the relevant sharing options on the Ubuntu PC, so I did that first in file manager:


But it's also necessary to amend the Samba setup:


However, when adding within Sonos I still couldn't get guest access to work. I finally gave up and just resorted to completing the Ubuntu sign on name and password.

Then it was necessary to add the iTunes library on my Mac. I chose the "In my Music folder" option (grayed out here as I've already added it).

But then got the message that the computer could not be found. Odd, as it was on this very computer that I was carrying out the operation!

Turns out there are a couple of tweaks to be aware of. Firstly, in System Preferences > Security & Privacy > Firewall Options it's necessary to uncheck "Enable stealth mode" and also to ensure that Sonos was set up to allow incoming connections (the latter was already correct):

But there's something else. And this is the most important one! In System Preferences > Sharing, the computer name has to be no more than 15 characters and have no special characters or spaces

Once done, the library worked fine!




Sunday 20 March 2016

Accessing Yahoo Mail through Gmail with two factor authentication

Yahoo mail was previously set up in my Gmail account using the Accounts and Import part of Settings:


However, enabling two factor authentication on Yahoo (Settings > Account Security) stops this working.

The solution is - still within Yahoo Account Security - to add an App Specific Password 


Go to Manage app passwords:


I have added an option of Gmail. This produces a long password which is then used in Gmail *instead* of the Yahoo password - this acts as two factor authentication.

Friday 4 March 2016

Getting a catalogue of own library in Google Play Books

This function is not currently available, nor is it easy to sort.

So the only alternative I could find was to scroll to the bottom of the library. Then select all on the page and copy into a text document.

This text document can then be pasted into a spreadsheet, blank rows removed, and re-sorted as necessary:
  • Add column to left with numbers ascending
  • Sort by column B ascending + column A ascending - this will group together all blank rows
  • Delete blank rows, then sort again by column A
  • Delete contents of column A, then put in formula in cell A1 of "=B2" (no quote marks)
  • Copy this down
  • Authors are now in column A, titles in column B
As authors are in <firstname, lastname> order, it's not as easy to go through them. This formula in the next column pulls out the surname:

=TRIM( RIGHT( SUBSTITUTE( A1 ; " " ; REPT( " " ; 100 ) ) ; 100 ) )

Saturday 27 February 2016

Switching internet access from HomeHub 5 to HomeHub 4 .... and back again

The existing HomeHub 5 stopped working, and although a replacement was on order from BT, it would not arrive immediately.

As we still had the old HomeHub 4 (which was being used as a wireless extender), the idea was to re-use that.

The big difference between HH4 and HH5 is that the latter has an integrated modem. So it's necessary to reconnect that for access to the outside world to be possible.

The existing DSL cable from the master socket, rather than going directly into the HomeHub, goes via the modem like so:


And then there is a separate ethernet cable (with the red plug) that goes from the modem into the HH4 like so:


As the HH4 had been used as an extender, it had been give a new IP address. This needed to be changed. For this, an ethernet cable needs to be connected from a laptop to the HH4 directly, going into settings. The HH4 original settings were:


These are simply changed to replace the IP address with the default gateway (which is 192.168.1.254) and *most importantly* turn ON the DHCP server (this is turned off when the HH4 is acting as an extender to avoid conflicts where two HomeHubs are attempting to issue addresses).

This results in:


Once the new HH5 is in place, the modem can be removed, the DSL cable directed straight to the HH5 and the HH4 put back in its place, back to its original settings (with DHCP disabled).

Monday 1 February 2016

Network set up

To try and get a decent signal throughout the house, this is the set up:


This is the rear of the HomeHub 5, where connection to outside world comes in.

Sonos Bridge is self explanatory. TP-Link is a very long Ethernet cable connecting to TP-Link WA 901 extender in kitchen. On Hub is not currently in use.

The link to Billion Router goes here:


The HomePlug cable goes off to this socket:


And then connects downstairs to a re-commissioned HomeHub 4: