Docker script for AnyConnect on OSX

I am queen of laziness, and I have to use AnyConnect, and that screws with Docker, and then I have to go looking to remember the magic incantation to get things right…

Who has time for that?

I made a script that wraps the whole thing up and reminds me what I should do when it doesn’t work.

Instead of:

    > docker-machine env default

I do this instead, and the script does the rest:
    > . dockerEnv

[more]

posted 25 August 2015
tags: , , , ,

Crib notes: Docker on OSX

Of course I’m messing with Docker (isn’t everyone)? But as most people using OS X are discovering, there are some hiccups. Here are some notes for myself (and perhaps for others) about what is required to make docker work well on OS X:

  • How to Use Docker on OS X: The Missing Guide
    • Most helpful (and a simultaneous ‘duh’ moment) was his reminder: boot2docker is the host image for docker on OS X, so when docker maps ports, it maps them to boot2docker, and not to OS X itself. So there are some extra things that need to be done to make that work. He has lots of useful suggestions.
  • I also use AnyConnect, which introduces it’s own fun, as it likes to rewrite the routing table for giggles. I am thankfully not the only one with this problem. So there were good things to be gleaned here, too.

posted 31 March 2015
tags: , , ,

Crib notes: ubuntu 14.04 badness

Woopsie. Somehow, with some update, I managed to screw nvidia up properly, and then in fixing that, I broke symantec antivirus, too. Part of it was that the 14.04 ubuntu headers have moved up, but the kernel was still at an older version, which made dkms pissy, and .. well.

Here is the (probably wrong and redundant, but it worked) list of things I did to fix it:

  • sudo apt-get remove nvidia*
  • sudo apt-get remove (our symantec modules, yours will be named differently)
  • sudo apt-get autoremove
  • sudo apt-get install linux-image-generic-lts-trusty
    • This upgrades to the latest linux kernel + tools, which then matched headers I obtained from other updates. Happiness here.
  • sudo apt-get install (symantec modules, again YMMV with what these are called)

As it turns out, I didn’t bother putting the nvidia drivers back on. The fallback to the intel card was good enough, and I didn’t want to go breaking myself again by accident. As this isn’t my primary workstation, I have no idea how I got into this mess. Sounds dumb, but I was updating with only half my attention on what I was doing, and then the world broke, and there was a login loop, which turned out to be:
Xlib: extension “GLX” missing on display “:0”.
So. Yea.. busted nvidia drivers. We’ll see how we do without. ;)

posted 31 March 2015
tags: ,

Updating to Yosemite: clean install with a clever backup

I upgraded my iMac (which is aging, sadly) to Yosemite while taking a break from work.

I wanted to do a clean install: the drive had two partitions, one an old windows partition that we don’t use anymore, and the other was full of crap from years of trying out apps and the migration from Snow Leopard to Lion to Mountain Lion to Mavericks, etc.

I wanted to make a full backup, so I could recover all of my settings and go scrounge around for files that I missed, etc., but I didn’t want to clone a drive. I stumbled on these:

Can you see my plan? It worked very well.

I did have to boot into recovery mode (I had a bootable USB drive with the Yosemite installer on it, so I just used that), and I did use the command line instead of working through disk utility, though I believe either would have worked.

hdiutil create /Volumes/External-USB/full-backup.dmg -srcdevice /dev/disk0s2

I did have trouble with the windows partition, but we haven’t used it in so long that I just made an image of the Documents & Settings folder, and called it a night.

After wiping the drive and putting Yosemite on, I was able to raid the *.dmg for apps and settings, etc. (I am sure I could have used the data migration utility, but I was trying to ditch the cruft… so I was selective. I have the dmg to refer to if I find something missing).

Whee!

posted 30 December 2014
tags: ,

Bootstrapping ubuntu server on an external drive

I have a new 2TB drive that I am going to use to replace a drive on a much used server that is currently running gentoo (which I have increasingly less time to tend). So. I have this new drive in an external enclosure, and I want to bootstrap it with the new OS without having to do that “go reboot your computer with a USB key thing”. I want my OS on the disk, I want to test that all the services can be coerced to behave the way I need them to behave, and I want to do all this with a minimum of fuss and gymnastics.

[more]

posted 29 August 2014
tags: , ,

« Older  ·