Category Archives: MacOS X

Linux on macbook …

Problems:

1. Bootup delay (20-30 sec)

SOLUTION:

Insert OSX disc, boot from it, open terminal and enter following:

bless –device /dev/disk0s2 –setBoot –legacy –verbose

where /dev/disk0s2 is the partition you installed grub (do ‘diskutil list’ to find out correct partition). Of course, ‘–verbose’ is optional. This makes Macbook EFI firmware boot your Linux installation in legacy mode without long delay (20s vs 3s).

url: http://regebro.wordpress.com/2008/11/16/installing-linux-on-a-macbook-without-os-x/

2. Not booting into Linux
No bootable device — insert boot disk and press any key

SOLUTION:
boot from linux instalation cd in rescue mode
Install gptsync
Execute

gptsync /dev/sda 

Snow Leopard DNS problems

After some time ssh to local servers doesnt work anymore.

Example:

ssh localserver name <— doesnt work

ssh localserver IP <— works

Solution:

In Terminal type;

sudo killall mDNSResponder

Google helps me:

URL: http://www.mac-forums.com/forums/os-x-operating-system/164649-snow-leopard-keeps-dropping-dns.html

URL1: http://discussions.apple.com/message.jspa?messageID=10090153#10090153

Mount VirtualBox shares under Ubuntu guest

Scenario:

Snow Leopard (Mac OSX) as host, Ubuntu 9.10 as guest (Virtual Box virtualization).

I want to share files from Leopard to Ubuntu.

  1. Create a shared folder in VirtualBox — Ubuntu guest settings
  2. Create mount directory in ubuntu
    sudo mkdir /mnt/Downloads
  3. Mount share (created in step one)
    sudo mount.vboxsf Downloads /mnt/Downloads/

URL: http://blogs.sun.com/tao/entry/virtual_box_shared_folder_between

How to recover deleted files from usb flash drive?

What do you need?

  • dd
  • foremost
  • enough space for recoverd flash drive data

How to do it?

# dd if=/dev/sdX of=/home/username/XY-file-name.image

# foremost XY-file-name.image -o output

/dev/sdX <— path to usb flash drive

/home/username/XY-file-name.image <— path to save image of recovered data from flash drive

Where on internet I found a solution?

URL: http://www.corythompson.net/index.php/recover-deleted-data-from-usb-flash-drive-with-foremost/

Mac OS X Shortcuts (slovenian keyboard)

alt + ž = \ (backslash) 
shift + alt + ž = | 
alt + š = [ 
alt + ð = ] 
shift + alt + š = { 
shift + alt + ð = } 
alt + n = ~ 
alt + ć = ^ 
shift + alt + 2 = @ 
shift + alt + 5 = € (euro) 
shift + alt + k =  (apple) 
ctrl + alt + đ = exit from xm console (xen) 
command + left click = choose more documents in TextWrangler 
command + q = quit 
command + backspace = delete 
command + c = copy 
command + v = paste
press D while booting = enter in diagnostic mode (testing hardware)
alt + cmd + R <--- recovery from internet to original Mac OS X Installation