Tag Archives: osx

Yoman and installed generators not showing os x

I recently tried to install the ember generator for yeoman. I have been using the angularjs one for a while now and updating it as new versions became available.

I had installed the ember generator on the command line from npm

npm -g install generator-ember

I had yo on the command line. But when I ran this I would never see the ember generator.

yo --help

I tried cleaning the cache to ensure it was not a corrupted install from somewhere else.

npm -g cache clean
npm -g update

None of this worked so I had to go and remove yeoman completely and reinstall it

First I found the yeoman instance

which yo

Gave me /usr/local/bin/yo

ls -la /usr/local/bin/yo

Which returns that it is installed.

/usr/local/bin/yo -> ../lib/node_modules/yo/cli.js

I tried uninstalling from the npm

npm -g uninstall yo

The command completed successfully but I could still find yo on the file system.

ls /usr/local/share/npm/bin/yo

Only thing I could do at this stage is delete the yeoman as it was not removed by the npm uninstall command.  That means deleting the whole npm install in /lib/node_modules/ and the symbolic link to it in the /bin folder.

sudo rm -rf /usr/local/share/npm/lib/node_modules/yo
sudo rm  /usr/local/share/npm/bin/yo

and install it properly again.

npm -g install yo

and the next time I ran yeoman I saw my generators

yo --help
.....
Ember
  ember:app
  ember:component
  ember:controller
  ember:model
  ember:router
  ember:view

OSX and docker-desktop via vagrant

(Update 26/11/13) Docker 0.6.5 has a breaking change with ports.   It does not provide a port number when you run sudo docker port $CONTAINER_ID 22 anymore. You can assign the port you expose when you do the docker run command as shown below.

Docker-desktop needs a few tweaks to get running on OSX.  I thought the instructions were inaccurate but the Roberto via quick emails figured out what I was doing wrong.

Install a version of Xquartz to allow viewing of X11 onto  your mac ??

http://xquartz.macosforge.org/landing/.
# version 2.75 works with mavericks.

Install version 0.9.0 of xpra.

This is a version that will work with version 0.3.11 of xpra.  0.3.11 is the version installed on ubuntu 12.10 when you create the docker-desktop.

Install 0.9.0 as your Xpra osx client.  You can use earlier versions but the versions 0.10.x and above have issues with colour pixels not working and you get a white screen.

Start of Docker install instructions:

  1. install vagrant if you do not have it already http://docs.docker.io/en/latest/installation/vagrant/
  2. Clone the docker project from git hub
    git clone https://github.com/dotcloud/docker.git

Continue reading