This content originally appeared on DEV Community and was authored by Tossapol Ritcharoenwattu
ขั้นตอนแรก ตั้งค่า virtual machine ตามภาพครับ
** หลังจากทำเสร็จ ต้อง reset virtual machine ด้วยนะครับ
ติดตั้ง Guest Additions ใน Ubuntu
เปิดเครื่อง Ubuntu ใน VirtualBox
ไปที่เมนู VirtualBox ด้านบนของหน้าต่าง → Devices → Insert Guest Additions CD image...
ระบบจะ mount CD เข้ามาใน Ubuntu (ถ้าไม่ขึ้น ให้เข้าไปที่ /media// เอง)
เปิด Terminal แล้วรัน:
sudo apt update
sudo apt install -y build-essential dkms linux-headers-$(uname -r)
จากนั้นรันคำสั่งติดตั้ง Guest Additions:
sudo mkdir -p /var/lib/VBoxGuestAdditions
cd /media/$USER/VBox_GAs*
sudo ./VBoxLinuxAdditions.run
ขั้นตอนนี้จะนานพอควร ให้รอครับ
ถ้าขึ้นแบบนี้แปลว่าเสร็จแล้วครับ
รอจนติดตั้งเสร็จ แล้ว รีสตาร์ท Ubuntu อีกครั้ง ก็จะสามารถ copy , paste ได้ครับ
This content originally appeared on DEV Community and was authored by Tossapol Ritcharoenwattu

Tossapol Ritcharoenwattu | Sciencx (2025-07-04T12:48:49+00:00) วิธี share clipboard ไปยัง ubuntu ใน virtualbox. Retrieved from https://www.scien.cx/2025/07/04/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5-share-clipboard-%e0%b9%84%e0%b8%9b%e0%b8%a2%e0%b8%b1%e0%b8%87-ubuntu-%e0%b9%83%e0%b8%99-virtualbox/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.