จะใช้ xrdp
วิธีติดตั้ง
โค้ด: เลือกทั้งหมด
sudo apt-get install xrdp
โค้ด: เลือกทั้งหมด
sudo service xrdp start | stop | restart | status
โค้ด: เลือกทั้งหมด
sudo service xrdp start
โค้ด: เลือกทั้งหมด
sudo service xrdp status
Jan 25 17:09:07 mindphp xrdp[29502]: (29502)(1995933456)[INFO ] listening to port 3389 on 0.0.0.0● xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-01-25 17:09:06 UTC; 10min ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Main PID: 29502 (xrdp)
CGroup: /system.slice/xrdp.service
└─29502 /usr/sbin/xrdp
Jan 25 17:09:05 mindphp systemd[1]: Starting xrdp daemon...
Jan 25 17:09:05 mindphp systemd[1]: xrdp.service: PID file /run/xrdp/xrdp.pid not readable (yet?) after start: No such file or directory
Jan 25 17:09:06 mindphp systemd[1]: Started xrdp daemon.
Jan 25 17:09:07 mindphp xrdp[29502]: (29502)(1995933456)[INFO ] starting xrdp with pid 29502
Jan 25 17:09:07 mindphp xrdp[29502]: (29502)(1995933456)[INFO ] listening to port 3389 on 0.0.0.0
คือ ค่าที่เราจะไว้ใช้ กับ กรอกที่โปรแกรม
Remote Desktop Connection บน Windows
0.0.0.0 คือ IP เครื่อง raspberry
ส่วน port คือ 3389
ต่อไป มาที่เครื่อง windows ของเราค้นหาโปรแกรม
กรอก IP และ Port บน หน้าจอ 192.168.xx.xx:3389 กรอก user, password ของ raspberry ก็จะได้หน้าจอของ raspberry เปิดขึ้นมาให้ใช้งานตามภาพ Note : การ remote ด้วย xrdp จะไม่สามารถติดตั้งโปรแกรมเสริมลงใน raspberry ถ้าจะติดตั้งโปรแกรมเสริมลงใน raspberry ทำได้ด้วยวิธีติดตั้งผ่าน command lineRemote Desktop Connection