Posted in Mac, VirtualBox

Mac, VirtualBox – Mount SD-card to virtualbox on Mac OS X

Unmount SDcard on Mac OS X

$ diskutil unmountDisk [SD card path]
(Ex. $ diskutil unmountDisk /dev/disk3)

Generate .vmdk file for VirtualBox

$ sudo VBoxManage internalcommands createrawvmdk -filename [.vmdk file name] -rawdisk [SD card path]
(Ex. $ sudo VBoxManage internalcommands createrawvmdk -filename sdcard.vmdk -rawdisk /dev/disk3)

Authorize .vmdk file and SDcard path as 666 or 777

$ sudo chmod 666 [.vmdk file name]
(Ex. $ sudo chmod 666 microsd.vmdk)

$ sudo chmod 666 [SDcard path]
(Ex. $ sudo chmod 666 /dev/disk3)

Unmount SDcard on Mac OS X whenever SDcard is remounted by Mac OS X

and then

Mount .vmdk file on VirtualBox

Posted in Tmux

Tmux usage

# run tmux as 256 color
tmux -2

# new tab
(ctrl + b) +c

# switch tab
(ctrl + b) + w and select a window number : select a window in a list
(ctrl + b) + n : next window
(ctrl + b) + p : previous window

# panes (split a tab)
(ctrl + b) + % : vertical split
(ctrl + b) + ” : horizontal split

# switch pane
(ctrl + b) +  ←/↑/→/↓ : switch a pane to a direction of arrow(ctrl + b) + o : next pane
(ctrl + b + o) : swap panes

# kill session
ctrl + d
(ctrl + b) + x

# resize a pane
(ctrl + b + ←/↑/→/↓)