บทนำ (Overview)
จากบทความที่แล้ว (How to set Raspberry Pi for remote access with VNC) กล่าวถึงการ Remote Access จากเครื่องคอมพิวเตอร์ทั่วไป ครั้งนี้จะนำเสนอการ Remote Access จาก Android ไปสู่ Raspberry PI ของเรา โดยที่ Server ถูกติดตั้งที่ Kali ที่อยู่บน Raspberry PI เช่นเดิม
ขั้นตอน (Steps)
- ติดตั้ง “VNC server” จากบทความนี้ http://blog.itselectlab.com/?p=3187
- ตรวจสอบ “IP” และ “Port” ของ “Raspberry Pi”
- ถ้าเครื่อง Boot เสร็จสิ้นแล้วแต่ไม่ “port” ของ “5900” หรือ “5901” ไม่พบ ให้ทำการเปิดดังนี้
- “Remote login” โดยใช้ “SSH” อย่างโปรแกรม “Putty”
login as: root root@192.168.0.23's password: Linux kali 3.18.11-v7 #1 SMP PREEMPT Tue Apr 7 12:12:57 CDT 2015 armv7l The programs included with the Kali GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Kali GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sat Jun 27 00:11:21 2015 from 192.168.0.12 root@kali:~#
- เรียกใช้งาน Server
root@kali:~# vncserver New 'X' desktop is kali:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/kali:1.log
- เริ่มต้น “server file” ที่เตรียมเอาไว้
root@kali:~# sudo /etc/init.d/tightvncserver start /etc/init.d/tightvncserver: 1: /etc/init.d/tightvncserver: #!/bin/sh: not found No passwd entry for user 'pi' Starting TightVNC Server for pi
- “Remote login” โดยใช้ “SSH” อย่างโปรแกรม “Putty”
- ที่เครื่อง “Android” ลงโปรแกรม “Remote Ripple” จาก “Google Play”
- เมื่อติดตั้งเสร็จสิ้นให้เปิดโปรแกรม แล้วกด + เพื่อสร้าง “Profile”
- กรอก “Host” และ “Port”
- จากนั้นกรอก “Password”
- สามารถเข้าถึงหน้า “Desktop” ผ่าน “Android” ได้