Today I was reading a blog post on moving away from OS X and I discovered Pass. It seems to me like it would be a solid replacement for my daily driver 1Password now that they have moved to some silly subscription scheme. Pass uses GPG, and can track your changes in git. It even has open source migration tools, and mobile clients.
Category Archives: OS X
installing or upgrading a package in OS X from the terminal
I wanted to install Boxee without disturbing my wife on the mac mini, so here is what I did.
- 1. transfer the disk image to the host
- mount the disk image
- install the package
- unmount the disk image
- enjoy
Continue reading installing or upgrading a package in OS X from the terminal
How to set OS X volume from cli.
osascript -e "set Volume 0"
osascript -e "set Volume 10"
1. you aren’t limited to integers, 1.5 would also work
2. original article
How do reset all iCal data
*WARNING* THIS WILL REMOVE ALL OF YOUR CALENDARS *WARNING*
1. delete everything in ~/Library/Calendars, and in ~/Library/Application Support/iCal/
2. Profit.
ZFS in practice – verifying transparent compression –
I had read about the transparent compression that zfs offers. I wanted to verify it so I did, and sent my results off.
As we all know no experiment is valid unless verifiable. I wanted be sure that the transparent compression was actually working so I set up a sample zfs volume and purposefully made some files that i knew would compress really well. I grabbed their sizes, transferred them to another machine without zfs, and compared the size. It works.
1. Create the zfs filesystem
root@machine1:~# zfs create rpool/ztest
root@machine1:~# zfs set mountpoint=/ztest rpool/ztest
as soon as you do this /ztest shows up in the filesystem
root@machine1:~# ls /ztest/
2. enable compression and set it use gzip at level 6 (default)
root@machine1:/ztest# zfs set compression=gzip rpool/ztest
3. create some files you know will compress well
time for i in $(seq 1 3); do echo -n “file${i} “; echo $(seq 1 10000000) >> file${i} 2>&1; done
4. check the compression ratio
root@machine1:/ztest# zfs get compressratio rpool/ztest
NAME PROPERTY VALUE SOURCE
rpool/ztest compressratio 3.69x –
5. verify the compression is working by transferring the file to a machine without such an awesome FS, and checking the filesize there
root@machine1:/ztest# du -sh file1
23M file1
scp -rvp /ztest/file1 root@machine2:/root/file1
root@machine2]# du -sh file1
83M file1
Conclusion: transparent compression is working, and working rather well on a file I made to be easily compressed.
I found a quick way to clear the terminal without using the “clear” command.
Just hit command +K.
I made a liboggz installer for OS 10.5
Here. This includes the oggzrip utility. Maybe later I’ll give instructions for compiling things you intend to turn into packages. If I feel like it that is; biatches.
Have spotlight reindex any volume
Its rare, but sometimes spotlight gets a little dumb. It will start missing things in /Applications or people in your address book. If this happens to you then you can have it reindex the volume. Just run mdutil -E / (where / is the volume you want to reindex) as root.
If you are having DNS issues w/ OS X. Look into scutil.
We had been having some problems w/ dns for OS 10.4 users. After running lookupd -flushcache didn’t work, and host was returning the correct values I got confused. Google to the rescue once again. I fixed it with scutil. If I came from BSD maybe I would have already known about it. Another item of interest is dscl. Ryan says: as of 10.5 netinfo is no longer in use. Instead I have to use “local directory”. I should also install the server admin tools.