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