Posted in Banana Pi

Banana Pi – Burn image on micro sd card

Burn image on microSD

Mac

$ diskutil list

$ diskutil unmount [SD CARD PATH]

(Ex. $diskutil unmount /dev/disk3)

$ sudo dd bs=1m if=[IMAGE PATH] of=[MICRO SD CARD PATH]

(Ex. Sudo dd bs=1m if=~/2017-05-25-raspbian-jessie-preview3-bpi-m2u-sd-emmc.img of=/dev/rdisk3)

$ sudo diskutil eject [MICRO SD CARD PATH]

(Ex. sudo diskutil eject /dev/rdisk3)

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 + ←/↑/→/↓)