Posted on Jan 28, 2012

Backup Bitcoin Wallet to Dropbox OSX

So i have my Bitcoin application running and as the latest version now supports wallet encryption i have this turned on with a long password.

I was looking for a way to backup my wallet in case i need to format my machine or things go south.

First quit the Bitcoin application and then move the wallet.dat file from the Bitcoin folder located at “~/Library/Application Support/Bitcoin” and put it in your Dropbox folder as below.

Shell
1
2
mkdir -p ~/Dropbox/Bitcoin
mv ~/Library/Application Support/Bitcoin/wallet.dat ~/Dropbox/Bitcoin

Secondly i now needed to create a link from the location that the Bitcoin application looks at to where the wallet file now resides.

Shell
1
ln -s ~/Dropbox/Bitcoin/wallet.dat ~/Library/Application Support/Bitcoin/wallet.dat

Now start the Bitcoin application and your address’s should all be there and correct.

Posted on Jan 18, 2012

Mac OS X Lion – Remove “All My Files” from Finder

Finder on Mac OS X Lion by default is always showing “All My Files” on every new window. Well to be honest not even once I found it useful, never used it since the first install.

Even if you are a geeky Terminal fan, there are always times that you start up Finder, and you need to get faster to your important files. Most of the times I am looking for something in the Documents folder/subfolders, so here is how I have set it as the default Finder directory:

Go to Finder, main menu -> Finder -> Preferences… -> General -> and select your favorite folder in “New Finder windows show” option as shown in the screenshot below.

Set Default Finder Open

You can also remove “All My Files” from the Finder’s sidebar as well, just right-click and remove it, or uncheck it from Preferences -> Sidebar.

Posted on Nov 24, 2011

Pop-Up Notifications To iTunes

Mac: Usually, if you want to find out what’s playing in iTunes, you either need to right-click the icon or open it. Macworld found a method that only requires a little work in Terminal to enable a small pop-up on your dock showing the currently-playing track.The process is simple, but only works in OS X Lion. First, boot up Terminal in your Utilities folder on a Mac, then, type:

Shell
1
defaults write com.apple.dock itunes-notifications -bool TRUE;killall Dock

Now, when you’re playing a track a small pop-up will show in your dock for a few seconds with information on the currently-playing track. If you decide you don’t like it, disabling it is simple. Back in Terminal, type:

Shell
1
defaults delete com.apple.dock itunes-notifications

For ways to customise the pop-up, hit up the post linked below.

Posted on Nov 24, 2011

Enable VNC/Management on OSX by SSH

I had the VNC based remote access feature of OS X enabled on 10.7 but somehow it got switched off.  I fiddled around a bit and figured out how to enable remote access from a remote SSH shell.  Note that these instructions will lead to manual configuration and you will not be able to enable/disabled the services from the System Preferences anymore.  In my case I used this to get in when I needed to but latter switched it back off and used the System Preferences setting.To manual switch on remote access from the terminal:
Shell
1
ssh username@mac_ip_address cd /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources sudo ./kickstart -activate -configure -access -on -privs -all -restart -agent
To switch this override back off and thus allow the System Preferences to manage screen sharing again run the following. (This will disconnect any active sessions and require physical access to re-enable it.)
Shell
1
sudo ./kickstart -activate -restart -agent

Posted on Sep 2, 2011

Change DeployStudio Wallpaper

I have been doing quite a bit of Mac OS X Image work lately and have found DeployStudio to be THE best FREE and easy to customise solution for doing this.

One thing i wanted to do was change the default wallpaper for the DeployStudioRuntime.nbi that is created and used as a windows Pre Environment equivalent.

I achieved this by going into the DeployStudioRuntime.nbi folder located on the server at:

Shell
1
/Library/NetBoot/NetBootSP0

I then mounted the ‘DeployStudioRuntime.sparseimage’ file and then navigated to the bellow folder inside the image and replaced the file ‘DefaultDesktop.jpg’ with my custom wallapper.

Shell
1
/System/Library/CoreServices

I made sure the image i created was a high res image to make it look nicer.

Posted on Aug 13, 2011

Prevent .DS_Store File Creation on Network Volumes

This KnowledgeBase article explains how to prevent OS X from creating new .DS_Store files when opening folders on remote volumes mounted using SMB/CIFS, AFP, NFS, and WebDAV. The creation of .DS_Store files (and more so, ._AppleDoublefiles which are not covered in this hint) is frequently the source of complaints against Mac users, who often leave a trail of these files scattered throughout the filesystem when “visiting” a Windows computer. Even with this hint in place, the .DS_Store files will continue to be created on local volumes (which is a good thing).

To prevent the creation of these files, open the Terminal and type:

Shell
1
defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Shell
1
<span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;">It may be necessary to log out and back in, or even to restart the computer (which is what the article states), for the change to take effect. </span>

Note: Most of the settings controlled by data in .DS_Store files are “cosmetic” in nature — for example, Finder window position, view style, icon position, etc. However, .DS_Store files in OS X also store Finder “comments” so in this sense, disabling .DS_Store files may result in loss of data.

Posted on Aug 11, 2011

Clear or Flush Arp/DNS Cache in OS X

To clear the address resolution protocol cache, simply enter the following command in the terminal.

Shell
1
sudo arp -a -d

 

To clear the domain name system cache, simply enter the following command in the terminal.

Shell
1
dscacheutil -flushcache

Posted on Aug 10, 2011

Delete a Boot Camp Partition

If you’ve installed Windows via Boot Camp, and now want to delete it and restore the space to your main Mac hard drive, this brief tutorial will guide you through the steps to do just that.

It’s actually quite easy to remove the Windows drive and reclaim all the hard drive space, the only “problem” is that Apple doesn’t make it an obvious process.

NOTE: by deleting your Windows Boot Camp partition, you will of course be deleting all of the data on that partition. Make sure to back up anything on your “Windows drive” before you proceed. Your OS X partition will not be erased and you won’t lose any data from it.
Continue Reading