Category: Mac
-
Running a BASH script when my Laptop is opened at home – Part 1
My laptop hard drive died. I was upset only because there was data on my laptop that had not been moved over to my desktop. My desktop has time machine and is rsynced to several other drives and locations. So I lost data. My own fault because I was not diligent in moving data off…
-
Using a MacBook to connect to a Cisco router
We have a “USBG-232MINI” USB to Serial adapter and I needed to connect to a Cisco router. GNU screen to the rescue!! The command is screen /dev/tty.usbserial-A9005yuF 9600 (Where A9005yuF is probably unique) And to exit hit Control+A then K.
-
Google Reader Starred items to Together.app
I use Together.app from Reinvented Software as my archiving solution – my knowledge base. I like the product because it leaves the pdfs I create on the filesystem and the db contains the tags and links associated with each file. I used to use Yojimbo, but it keeps all the files in their database. I am not sure it…
-
OS X: Move files based on creation date
I wanted to organize my flip videos – I wanted them moved into a folder named after their creation date. One of the scripts that I found uses ls’s “–time-style” parameter. BSD’s ls does not have this value. MacPorts’ coreutils port contains gls (GNU’s ls) that does support the parameter. So here is my script…
-
OS X Finder Service to convert Grab.app TIFF files to JPG
It drives me nuts that Grab.app defaults to .tif as the file type. And no matter how many times I try the recommended : defaults write com.apple.screencapture type jpg I can not get it to default to save as a jpg (and I tried jpeg). All I can guess is that this command does not…
-
Xnest, xdmcp and X11 on CentOS
It has been a while since I have used XNest. It works. Slow, but it works. I can ssh into a box and bring back a full X session back to my Mac. In CentOS 5.5 I had to edit /etc/gdm/custom.conf and add: Enable=true under [xdmcp]. Restart X and now I can run: Xnest :1 -geometry 1024×768…
-
GNU date vs BSD date
I usually develop and test my BASH scripts on my mac, mostly for use on RedHat systems. Occasionally I run into problems with this workflow. Recently I realized there was a differnce between the date command on RedHat and the date command in OS X. Turns out BDS date != GNU date. The workaround, install coreutils from Mac…
-
My mac ports cheat sheet
These 3 commands will check for new ports, upgrade outdated ports, and remove older versions. sudo port selfupdate sudo port upgrade outdated sudo port uninstall inactive To make sure you have a slimmed down install, use port_cutleaves to remove unnecessary ports. There are often “Build Dependencies” (like autoconf, automake, libtool, m4, help2man, p5-locale-gettext) that are…
-
Waking a sleeping Mac Pro upon opening a folder
Scenario I have two macs at home, a MacPro and a MacMini. The MacMini is attached to our TV. I put my MacPro to sleep when I leave for work in the morning. My wife comes home and tries to play videos for my son on the Mac Mini. The videos are actually on the…
-
Apple to push virtualization of OSX?
Seems that Apple is discontinuing their XServe product. I hope this means that Apple is moving towards virtualizion of OSX in the enterprise. VDI with OSX would be sweet!
