Showing posts with label SSH. Show all posts
Showing posts with label SSH. Show all posts

Monday, September 09, 2019

Beberapa shortcut penting Byobu

Saya menggunakan "ssh" untuk mengakses desktop, dimana hampir semua proses komputasi saya lakukan di PC tersebut, bukan di laptop. Keuntungannya, selama saya bisa konek ke jaringan kampus (apato, perpus, dll) saya tetap bisa mengakses desktop, menjalankan simulasi, merubah variabel, dll. Jika berada diluar kampus, saya menggunakan TeamViewer. Untuk memudahkan menggunakan terminal dengan ssh, saya menggunakan perangkat "byobu", sebuah utilitas yang dibuat untuk menjembatani tmux atau screen, perangkat lain untuk memudahkan menggunakan terminal di Linux yang "membisakan" penggunaan terminal dalam beberapa sesi, beberapa jendela, dan menutupnya tanpa harus menghentikan proses yang sedang berjalan (ini penting ketika mengeksekusi perintah di terminal).

Berikut beberapa shortcut penting ketika menggunakan byobu via ssh:

  1. Ctrl A, D : keluar dari ssh tanpa menghentikan proses (=F6)
  2. F2: membuat jendela baru
  3. Alt + Panah Kanan/Kiri: berpindah jendela
  4. Ctrl + F6: keluar dari jendela, split
  5. Fn + F7: enable scroll
  6. Ctrl + C: keluar (dari enable scroll)
  7. Alt + F6: menghentikan ssh dari komputer lain kecuali yang dipakai
  8. F9: menampilkan help (gunakan tab untuk berpindah menu, =Shift+F1)
  9. Ctrl+F6 atau ketik 'exit': keluar dari sesi

Beberapa shortcut lainnya seperti "Shift+F2" (membagi jendela secara horizontal), "Ctrl + F2" (membagi jendela secara vertikal), tidak saya masukkan karena saya jarang membagi jendela terminal menjadi beberapa bagian (kecuali terpaksa). Jika itu dilakukan, maka untuk berpindah fokus ke jendela samping atau atas/bawah gunakan "Shift+Panah". Selain shortcut di atas saya menggunakan perintah berikut:

byobu-enable: membisakan byobu disetiap koneksi ssh
byobu-disable-prompt: agar prompt lebih singkat (set di bashrc)

Berikut screenshot byobu saya ketika mengetik tulisan ini.


n.b: 
- Byobu tidak terinstall by default pada Ubuntu maupun OS lainnya, untuk menginstall byobu pada turunan debian, gunakan `sudo apt-get install byobu`.

Sunday, October 28, 2012

Accessing Android Device File From PC Wirelessly

Step-by-step:

  1. Install SSHDroid from google play:
  2. SSHDroid
  3. Open SSHDroid in your android device
  4. Open file explorer (nautilus in Ubuntu or Windows Explorer in Ms. Windows)
  5. Input the address in address bar PC as shown in Android device, It's like sftp://root@192.168.x.x:2222 password: admin
  6. Explore your files in Android device from PC (like copy-paste and other)
  7. Enjoy it!

Explore android file from Ubuntu PC

Tuesday, November 08, 2011

Enable SSH File Sharing in Mac OS X


Sometimes, we need to communicate or transfer data among our laptops/PCs. Instead of using storage media such as removable disk, the use of network connection is better and faster. This article will briefly explain, how to share your file in Mac OS to other PCs like Ubuntu Linux and Windows. Let's start.
The Apple Mac OS X has SSH by default has installed. Nevertheless, the SSH daemon is not enabled by default. It means you can not login remotely or do remote copies from another PC until you enable the SSH.
So, to enable SSH, just go to System Preferences in your Mac. Under Internet & Networking there is a Sharing icon. Please, click that icon. In the list appears on screen you can check the Remote Login and File Sharing option.
Sharing Menu on Mac OS X
This steps begins the SSH daemon immediately. Now, you can remotely login using your username and password. The Sharing screen at the bottom shows the name and IP address to use. You can also find this out using whoami and ifconfig from the Mac Unix Terminal.

Now, you can access your Mac from another PC. Just, install the required program in another PC such as openssh. In ubuntu, you can use the following commant (in terminal) to install openssh.

sudo apt-get install openssh
That enables ubuntu to access your Mac from terminal or nautilus file management.
Related Posts Plugin for WordPress, Blogger...