Shrink the sparse disk image of a Mac OS X guest OS in VMWare Workstation

Before start the process please make sure,

  1. The file is a sparse disk image, and not pre-allocated.
  2. The VM does not have snapshots.

Erase free space on the guest OS’s disk from within the guest OS using Disk Utility, then shrink the guest OS’s disk from the host OS using vmware-vdiskmanager at the command line.

In the guest OS:

  1. Open Disk Utility.
  2. Select the guest OS’s partition.
  3. Go to the “Erase” tab.
  4. Click on the “Erase Free Space” button.
  5. Make sure “Zero Out Deleted Files” is selected, and erase the free space.
  6. Once it’s finished, close Disk Utility, and shut down the guest OS.
Or in the terminal of the guest OS when the partition is named ‘Macintosh HD’:
diskutil secureErase freespace 0 Macintosh HD

In the host OS:

  1. Open Terminal as an Administrator and type:

path-of-vmware-foldervmware-diskmanager -k path-of-virtual-machineguest-name.vmdk

Press Enter

Note: It will take a while to shrink the Virtual Disk.

Apple Time Machine and FTP

There is a way to use FTP drive with Time Machine. Here are the steps:

1. Install MacFUSE (Download) and configure it.
2. Install MacFusion (Download) and configure it with your FTP server.
3. Run MacFusion and mount your FTP server.
4. Open terminal and run this command:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

You should now be able to open time machine and select your FTP server.

Note : It will not give you faster performance as like direct storage with your Mac.

How to prevent .DS_Store file creation

.DS_Store files store folder level metadata information (such as icon placement and background pictures) for Mac OS X to understand, this is fine and dandy and you’re likely to never even notice if you’re a bunch of Macs working together. Unfortunately, these .DS_Store files can be really pesky in a multi-platform network environment, they can basically just lead to unnecessary filesystem clutter that Windows & Linux users receive no benefit from.

Thankfully, you can prevent the DS_Store files from being created entirely by executing a simple command in the Terminal:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

This disables the creation of .DS_Store files for the user account the command was executed on. You can make this change to all user accounts manually by executing the same command under their login, or you can copy modified com.apple.desktopservices.plist file to the ~/Library/Preferences folder of each other user account.

Change the Login Background Wallpaper on your Mac

If you want to change the wallpaper that sits in the background of your Mac’s login screen, from the Finder hit Command+Shift+G to open the ‘Go to Folder’ screen. Type /System/Library/CoreServices/ and click ‘Go’:

Next, find the image file called ‘DefaultDesktop.jpg’ – you should save a copy of this somewhere safe, or rename it to DefaultDesktop-backup.jpg or something of the sort, so that you can revert your changes.

After that file is safely backed up, add the new wallpaper image you want to use as the login background, naming it exactly the same as the previous file: DefaultDesktop.jpg That’s all there is to it! Reboot and your login wallpaper is now whatever you set it to.