Mongo db admin – node.js app

MongoExpress is a nice little basic app for monitoring and managing MongoDB (view, edit, export, etc.).

docker run -d --name=mongoexp -p 8081:8081 -m 400M --link mongo:meteor-db mongo-express

install VirtualBox Guest Additions & mount shared folders

To use Guest Additions on a VirtualBox VM you need to install Guest Additions from the VBoxGuestAdditions.iso.

On Ubuntu/Debian, you should install additional system tools first if you don’t already have then:

apt-get update
apt-get install dkms build-essential linux-headers-$(uname -r)

First use the VB app to set up the share and then “insert” the virtual CD via the VB storage settings menu drop-down, then:

mount /dev/cdrom /mnt
cd /mnt
./ --nox11


mount | grep vbox

to verify the share path, etc.

Alpine Linux with Docker – node build tool updates

Smaller distros like Alpine for containers just seems to make sense.

Some build tools for node.js include:

apk --update add bash nano wget python make gcc g++

You can install on a “build” container and create an artifact to transfer to a sparse box without the build tools. See base images like:

See what process is using a specific port

Works on Linux, Mac, etc.

sudo lsof -n -i4TCP:$PORT | grep LISTEN
sudo lsof -n -iTCP:$PORT | grep LISTEN
sudo lsof -n -i:$PORT | grep LISTEN

Apt-get update cheatsheet for Ubuntu/Debian

sudo apt-get update        # Fetches the list of available updates
sudo apt-get upgrade       # Strictly upgrades the current packages
sudo apt-get dist-upgrade  # Installs updates (new ones)

Solved: Adobe Lightroom CC 2015 update problem

After realizing my Adobe Lightroom CC 2015 at home hadn’t been auto-updating (and needed the latest update to be compatible with recent Sony raw format), nothing seemed to fix it — neither trying manual download nor updating permissions or other common online advice. (It was updating fine on another machine.)

The solution turned out to be: delete the file: /Library/Application Support/Adobe/AAMUpdaterInventory/1.0/AdobeUpdaterAdminPrefs.dat

Symptoms were: the “update” option under the help menu was disabled and the Creative Cloud showed the apps as current. The steps I did to fix it were

  • delete the “AdobeUpdaterAdminPrefs.dat” prefs file (see above)
  • log out of your Mac account (just to be safe)
  • log back in and both the Creative Cloud app as well as the in-app help menu should now offer the update option

    If this doesn’t work for you, it may be something else (like the oft-cited permission issues or conflicts with earlier versions of the app).

  • « Previous Entries