Oct 292013

This post is a corollary to the previous one on building iOS client based IPSec VPN with the Stonesoft NGFW.

Testing the same configuration with OS X native VPN client, which you can configure in System Preferences – Network, I’ve found that things have changed a little bit in Mountain Lion (and Mavericks). Due to the Gatekeeper enhanced protection, you need to enter your Keychain on the Mac to modify some privileges.

Click on System and identify the certificate you are using to authenticate your machine.

Once found, you just need to expand it to show the private key portion as shown below (yeah, screenshot is in Italian but I think you get the point):



Then you “open” the access to the component to every application as shown below (again, screenshot in Italian):


Once you do this and confirm, the VPN will restart to work as previously (for example, in Snow Leopard).



Jun 182013

I just realized OS X has a cool great web interface to check printers queue names, jobs, printer names, etc.

Unfortunately this is disabled by default.

To enable, open a Terminal session and type the command:

cupsctl WebInterface=yes

Then, point your browser to http://localhost:631 and… enjoy!

Mar 022013

AutomatorI use EasyPHPAlbum to manage my online photo gallery.

It’s handy and does the job, since when I need to add new pictures I just need to upload the directory, add the index.php et voilà.

I decided to use OS X Automator to upload both the exported versions of the pictures and the needed index.php to my online gallery.

It has been insanely easy, and it work like a champ. SO sharing my experience here.

First of all, copy the EasyPHPAlbum index.php configured as you needed in a specific folder on your Mac.

Then create an empty folder, which is the one you want to “monitor for new photos”.

Retrieve and install a very handy FTP Automator Action to help you with data transfer.

Add index.php to the newly created folder

Launch Automator, choosing  to create a Folder Action.

On top of it, select the folder you want to monitor for the new photos.

From the menu on the left select Variables, then Locations, then Path.

Drag and drop to the right to get it populated with the newly created folder.

From the menu on the left choose Actions, then Utility and finally Set the variable value.

Drag and drop on the right and it should automatically take the variable name set in the previous step. If not, drag and drop the variable name on it from the bottom of the screen.

From Files and Folders action group on the left, select Get Specified Finder Items.
Be careful now. From the options button, flag Ignore Action Input and click on Add… button to manually add the index.php file you want to upload with the pictures.

From same action group, select Copy Finder Items, drop it on the right and drag the path variable over it.

Finally, add the FTP action to the end and configure it with the needed credentials to upload the folder content to the hosted space on the internet.


Feb 232012

Because all of my Mac systems were upgraded at home were upgraded from Snow Leopard to Mac OS X Lion, I did not noticed that Apple left out of Lion (when freshly installed like on my Mac Mini Server) iDVD and iWeb.

For iWeb not a very big deal since I can user the awesome Wiki3 bundled with the server, but iDVD was  something I used from time to time to create slideshows and movies to be played in standard DVD players (yes, Apple, there are still some around 😉 ).

With much surprise, I’ve discovered that iDVD can be “installed” on my Mini Server by proceeding as follows:

  • on your Mac where you still have an iDVD version, right click on the application and select “Compress iDVD”
  • on your Mac in folder /Library/Application Support/iDVD, compress the subfolder Themes using same technique
  • copy the two compressed files on your new Lion and unzip them by double clicking on the compressed files.
  • copy the iDVD package (the one with the blue icon resembling a DVD) in your Applications folder
  • create a folder named iDVD in /Library/Application Support/
  • copy the Themes directory in /Library/Application Support/iDVD folder
  • launch iDVD and enjoy
Jan 262012

As usual, not that immediate to find a proper answer on the ‘Net, hence I’m providing one here.

While in Snow Leopard was quite easy to see your ext2/ext3 formatted disks via MacFuse and ext2-fuse, in Lion you need to install another fuse fork and select a special option. That new fork is OSXFUSE, which latest release at the time of this post if from December 2011.

The most common symptom indicating you need this is to try mounting an ext2/3 formatted drive and see the following error:

fuse-ext2 /dev/disk3s1 /Volumes/Movies
dyld: Library not loaded: /usr/local/lib/libfuse.2.dylib
 Referenced from: /usr/local/bin/fuse-ext2
 Reason: image not found

During the installation of OSXFUSE, you need to enable MacFuse Compatibility Layer by flagging the appropriate checkbox as shown below:

click to zoom

Once you’re done with this, replug your ext2/3 formatted drive and it’ll automagically mount it in Finder, giving your deserved magnificent user experience of a Mac user 😉




Dec 152011

Had a need, found a solution, reporting the procedure here.

First, you need to understand what is the disk name of the device you want to format.

For example, if you have a MacBook Pro and a SD card, this is done using disk utility, selecting the card reader where you inserted the SD card and clicking on Info button to get information about the storage.

Click to enlarge the picture below.


Even with an italian screenshot, you can grab that in my example the device name is disk4.

Open Terminal and type the command reported below to proceed with the format:

diskutil partitionDisk /dev/disk4 MBRFormat “MS-DOS FAT32” “2G2Gb

This will create on /dev/disk4 a FAT 32 (MS-DOS FAT16 will do a 16bit one) partition labeled 2G of 2 Gb in size.


Nov 172011

This awesome USB to Serial adapter was working perfectly in MAC OS X Snow Leopard, but it did stop when I upgraded to Lion.

Luckily I’ve found good hints on few websites and because I’ve been able to fix it and now I have this working again, I’ve decided to document here how to make it working.

First, you need to download the drivers for MAC OS X 10.6 provided by the vendor.

Then, use the application USB Prober in Mac to find out what is the Vendor ID and Product ID of the adapter you are using.

The screenshot below shows example in my case (click to zoom):

Take not of the decimal values and go edit (with sudo) the file /System/Library/Extensions/ProlificUsbSerial.kext/Contents/Info.plist

Locate the keywords described below:


Replace the xxxx values with the numbers indicated below:


Save and close the file.

Execute the following commands:

sudo kextunload ProlificUsbSerial.kext

sudo kextload ProlificUsbSerial.kext

After this, you should be able to find the device cu.usbserial in /dev directory, which is the proof that the adapter is working.

You can then use the command screen cu.usbserial and get your marvelous adapter to work again.

Nov 172011

Found this process well described on Ubuntu website, hence thought it was a good idea to report here also, for future usage.

Note: this procedure requires an .img file that you will be required to create from the .iso file you download.

TIP: Drag and Drop a file from Finder to Terminal to ‘paste’ the full path without typing and risking type errors.


1. Download the desired file

2. Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight)

3. Convert the .iso file to .img using the convert option of hdiutil (e.g.,hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso)

4. Note: OS X tends to put the .dmg ending on the output file automatically.

5. Run diskutil list to get the current list of devices

6. Insert your flash media

7. Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)

8. Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)

9. Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example,./ubuntu.img or ./ubuntu.dmg).

▪ Using /dev/rdisk instead of /dev/disk may be faster.

▪ If you see the error dd: Invalid number ‘1m’, you are using GNU dd. Use the same command but replace bs=1m with bs=1M.

▪ If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the ‘Disk Utility.app’ and unmount (don’t eject) the drive.

10. Run diskutil eject /dev/diskN and remove your flash media when the command completes

11. Restart your Mac and press alt while the Mac is restarting to choose the USB-Stick