OS X Kill Finder or Dock

When you are getting the spinning beachball on Mac OS X System Applications/Tools, like the Finder when trying to connector to a failed network share. Your solution is the always winning Terminal. Start Terminal through menu or spotlight, and try the following commands.

The Finder crashed:

killall -KILL Finder

The Dock crashed:

killall -KILL Dock

Spaces crashed:
killall -KILL Dock

The Menubar crashed/refuses to be clickable:
killall -KILL SystemUIServer

The services should automatically restart after they have been killed. If they dont, you might have to reboot your computer. If this option is not available through menus, get back to Terminal and give the following command:
sudo shutdown -r now – provide your Admin password and your machine should be restarting).

Enable Text Selection in Quick Look / Preview

If you want to select text from files opened with Quick Look and Preview

Open Terminal and paste the following commands

And then

If you want to reverse the changes

And repeat the Finder restart

Fix Cisco IPSec VPN timeout on OSX

There is some kind of bug in the built in Cisco IPSec implementation on OSX since Mountain Lion.

A lot of users experience that the connection drops after everything from 45 to 75 minutes. There is a solution but it demands a bit of “hacking” on your part.

Here are the steps to follow :

1. Connect your Cisco IPSec connection
This will create a file in /var/run/racoon called x.x.x.x.conf, where the x´s represent the IP address you are connecting to.
2. Copy this file to /etc/racoon with :

3. Go to /etc/racoon and open the file for editing
4. The following values need to be edited :
Dead peer detection needs to be set to zero (0)

‘Proposal check’ needs to be changed from ‘obey’ into ‘claim’:

The lifetime value needs to be raised from 3600 seconds to a new value. In my case i set this to 168 hours. (any value you choose will do, but I found this is workable in most cases)You will have to change this in ALL Proposal sections.

5. Save the file
6. Now you need to open racoon.conf for editing
7. Right at the end of the file, change the following value :
Comment out ‘#’ at the very beginning of the last line that starts with ‘include’;
Then type the following line directly under that:

Make sure to use the name of the file you have created

Disconnect from your VPN service and reconnect.
Your connection will now stop dropping out.

VPN Proxy for anonymous torrenting

Ever heard of Privateinternetaccess.com ?
Private Internet Access is an extremely minimalistic personal VPN service that passes all your Web activity through an encrypted tunnel.

There is of course the possibility of using the shipped client, or you can add their service as a proxy in your torrent client.

Here is how (for myTorrent and QBittorrent):

General settings for PrivateInternetAccess

Proxy Type: Socks5
Proxy: proxy-nl.privateinternetaccess.com or*********
Port: 1080

In Qbittorrent, click Tools -> Options -> Connection.


In myTorrent, Click Preferences -> Network


1. Checkmark Authentication
2. Username: PIA Generated ID
3. Password: PIA Generated password
4. Click OK and restart uTorrent
5. Checkbox the choice for hostname lookups and peer discovery

Thats it.. you will now be using the PIA Proxy and do not need to connect your main Internet connection through the VPN service.
Of course you will need to purchase a VPN account from PIA, but for securing and maintaining your anonymity, it is totally worth ti

Host discovery with curl

Yesterday i discovered a cool webpage called ifconfig.me
It displays information about your external IP and other HOST information.

The cool thing is that it is designed for use with curl from the command line.

Your external IP
curl ifconfig.me

Your hostname
curl ifconfig.me/host

Your user agent
curl ifconfig.me/ua

External connection port
curl ifconfig.me/port

Display all your information
curl ifconfig.me/all

Extremely useful for command line geeks like myself :)

Command Line encrypt & decrypt of files – OpenSSL

Ever had the need to quickly encrypt a file?
We have previously shown you a tool called Cryptor for simple Encryption/Decryption on OSX.

In this post we will show you how to use OpenSSL.

OpenSSL - Command Line usage

With OpenSSL you can perform quick and easy encrypt/decrypt of files from the Command Line.
As long as OpenSSL is installed on your system, you can use the same examples as below on any OS (Windows,Linux,OSX).

Continue reading

Run SoftwareUpdate from command line – OSX

I suddenly found the need for running the SoftwareUpdate application on my Mac via SSH.

Some time on Google and i found this to be a plain simple task
Open “terminal” (or if you connect remotely through SSH)

Command below will show you the triggers

To download and install updates, run

That should run your update and install all downloaded packages.

MacBook Pro – Bluetooth not available

I just experienced that a recent update from Apple rendered my bluetooth functionality completely dead. The status bar icon was greyed out with a horizontal lightning bolt looking icon crossed through it.

After some time on Google, i find i am not the only one :)
Solutions listed below worked like a charm..

Try resetting the SMC and the PRAM:


Another solution for a Intel based Macbook Pro..
1. shut down the computer.
2. remove power cord.
3. press the power button for 5 sec.
4. connect the power cord.

Worked excellent

Backspace error in SSH sessions – acts as Delete key

In OSX 10.6.xx (Snow Leopard) users who use the Terminal application to SSH into remote servers might experience that the backspace key works as the delete key in some applications (VI, Nano, Pico etc) I have not heard of this happening in any other OS or application, so an easy way to fix this in Terminal configuration on your Mac.

Go to Terminal preferences, select the Advanced tab, and check “Delete sends Ctrl-H”. That’s all it takes to get the “delete” key to work correctly in all applications used in your SSH sessions.