Short Cut keyboard tmux & screen cheat-sheet




A comparison of the features (or more-so just a table of notes for accessing some of those features) for GNU screen and BSD-licensed tmux.

The formatting here is simple enough to understand (I would hope). ^ means ctrl+, so ^x is ctrl+x. M- means meta (generally left-alt or escape)+, so M-x is left-alt+x
It should be noted that this is no where near a full feature-set of either group. This - being a cheat-sheet - is just to point out the most very basic features to get you on the road.
Trust the developers and manpage writers more than me. This document is originally from 2009 when tmux was still new - since then both of these programs have had many updates and features added (not all of which have been dutifully noted here).
Action tmux screen
start a new session tmux OR
tmux new OR
tmux new-session
screen
re-attach a detached session tmux attach OR
tmux attach-session
screen-r
re-attach an attached session (detaching it from elsewhere) tmux attach -d OR
tmux attach-session -d
screen -dr
re-attach an attached session (keeping it attached elsewhere) tmux attach OR
tmux attach-session
screen -x
detach from currently attached session ^b d OR
^b :detach
^a ^d OR
^a :detach
rename-window to newname ^b , OR
^b :rename-window
^a A
list windows ^b w ^a w
list windows in chooseable menu ^a "
go to window # ^b # ^a #
go to last-active window ^b l ^a ^a
go to next window ^b n ^a n
go to previous window ^b p ^a p
see keybindings ^b ? ^a ?
list sessions ^b s OR
tmux ls OR
tmux list-sessions
screen -ls
toggle visual bell ^a ^g
create another window ^b c ^a c
exit current shell/window ^d ^d
split window/pane horizontally ^b " ^a S
split window/pane vertically ^b % ^a |
switch to other pane ^b o ^a
kill the current pane ^b x OR (logout/^D)
collapse the current pane/split (but leave processes running) ^a X
close other panes except the current one ^b !
cycle location of panes ^b ^o
swap current pane with previous ^b {
swap current pane with next ^b }
show time ^b t
show numeric values of panes ^b q
toggle zoom-state of current pane (maximize/return current pane) ^b z
break the current pane out of its window (to form new window) ^b !
re-arrange current panels within same window (different layouts) ^b [space]

ref : http://maleah.dayid.org/comp/tm.html

Setup and (Solved) Error Uploading Sketch on Genuino 101

Setup and (Solved) Error Uploading Sketch on Genuino 101
Dalam menggunakan Genuino 101 dengan menggunakan Sistem Operasi Linux (varian Debian, Ubuntu, Linux Mint). Setelah beberapa kali mencoba dan gagal mungkin akan lebih mudah menggunakan step dari artikel dibawah :

Definisi masalah :

Ketika terjadi Error ketika upload padahal driver sudah di install dengan Intel Curie , board sudah terseleksi pada arduino dan Port sudah pada device sesuai dengan port yang terdeteksi ketika genuino terkoneksi (misal : /dev/ttyACM0).

Meski ada notifikasi : Try To push Button Master Reset Genuino 101

Upload Error :

ERROR: Timed out waiting for Arduino 101 (/dev/ttyACM0)
ERROR: Timed out waiting for Arduino 101 (/dev/ttyACM0)


  1. Pastikan sudah diinstall Board Manager pada menu Tool | Board | Board Manager |

Gambar Intel Curie Board sudah terinstall

  1. Dengan menginstall dfu-util pada linux mint sudo apt-get install dfu-util dan mengetikan dfu-util -l lalu tekan tombol pada board Genuino 101 - Master Reset
    Gambar Hasil pengeksekusian dfu-util -l
    dari gambar terlihat ada device dengan idPorduct dan idVendor yang terinstall [8087:0aba]
  2. Kita buat pengenal device dalam Linux dengan vendor dan product ID yang terdeteksi pada tahap sebelumnya


  1. isikan pengenal dengan text berikut sesuai dengan yang sudah terdeteksi
    ATTRS{idVendor}=="8087",ATTRS{idProduct}=="0aba", MODE="0666", GROUP="plugdev"
    Gambar Script penambahan pengenal Device pada Linux
  2. Setelah selesai restart udev untuk mereset apa yang sudah ditambahkan, atau tidak silakan direstart

Gambar Restart device yang terkoneksi dikomputer/laptop
  1. Konfigurasi untuk pengenalan device kita sudah selesai, yang notabene kita tahu itu sdauh dikenali baik oleh linux ini terbukti port sudah bisa terseleksi dan board sudah terinstall Arduino/Genuino 101.
  2. Lalu pastikan konfigurasi yang terpilih Tool | Board “Arduino/Genuino 101” dan Port | “/dev/ttyACM0” ini sesuai dengan device yang terpasang.
  3. Nah selesai silakan buka file example dan eksekusi/Upload
Gambar Eksekusi Sukses Upload Program
  1. Selesai

Referensi :
http://www.stm32duino.com/viewtopic.php?t=353