Find text or string in files of a certain type

Posted by & filed under Linux, Mac OS X.

One can use grep “mystring” myfile.ext to find the lines in myfile.ext containing mystring. One could also use grep “mystring” *.ext to find mystring in all files with extension ext. Similarly, one could use grep “mystring” /directory to search for mystring in all files in the directory. What if one wants to search for mystring… Read more »

Fixing group permissions in sshfs via OSXfuse

Posted by & filed under Linux, Mac OS X.

One could mount SSHFS partitions on a Mac OS X system via OSXfuse and MacFusion to access remote files securely as if the files were stored locally. However, group permission seems to not be preserved (get a permission denied message). This post shows how one could fix it by using the -o defer_permissions options.

Compile R on Mac OS X

Posted by & filed under Mac OS X.

I did this before on my Macbook, but never documented. Wanted to document my attempt on the Mac virtual machine. Install Xcode (gcc/g++) and gfortran per this site. Download the R source file (2.12 in this example), and extract it. ./configure did not work (Fortran issue). Per this, this, and this, I used: ./configure –with-blas‘-framework… Read more »

Mac OS X in Linux via VirtualBox (as guest OS)

Posted by & filed under Linux, Mac OS X.

I recently installed a Windows virtual machine on my Linux laptop. I wanted to test out a virtualized Mac OS X machine via VirtualBox as well (just in case I ever needed to do something that can only be done on a Mac). My main references are this post and this post. Although they virtualize… Read more »

Migrating back to Linux (Ubuntu) from Mac OS X

Posted by & filed under Linux, Mac OS X.

After abour 1.5 year with Mac OS X on my beautiful black Macbook (v 4,1), I’ve decided to migrate back to Linux, namely Ubuntu 10.04 LTS. Why? Well, I was actually using Kubuntu (KDE version of Ubuntu) from about Spring 2006 to November 2008. At the time, I remember setting up Kubuntu on my Dell… Read more »