supported SDK
Installation
- Official download: https://www.virtualbox.org/
- Reference: Oracle VM VirtualBox Official Installation Tutorial (Chinese)
https://download.virtualbox.org/virtualbox/7.1.10/VirtualBox-7.1.10-169112-Win.exe
Installing Ubuntu in VirtualBox
Tips:
- Memory Size: Set to more than 2GB (recommended)
- Virtual Hard Disk Size: At least 50GB (SDK requires large space)
Do not upgrade Ubuntu online after installing Ubuntu 14.04 in the VM
Reference: Oracle VM VirtualBox Ubuntu 14.04 Setup Tutorial (Chinese)
现在创建虚拟硬盘(C)
- VDI (VirtualBox磁盘映像)
- 动态分配(D)
- Choose a disk file...
ubuntu-14.04-desktop-amd64.iso
Guest Additions (Enhancements)
Installing Guest Additions enables:
- Shared clipboard (copy/paste between PC and VM)
- Shared folders (map a host folder to the VM for easy file access)
These features greatly improve development efficiency.
Note: If the shared folder is a Windows folder, you may not be able to successfully download Tina SDK code into it. Avoid setting the SDK download directory inside a shared folder.
How to Install Guest Additions
Method 1:
1. In the VM window, go to the menu bar: Devices → Insert Guest Additions CD image...
2. The ISO (VBoxGuestAdditions.iso) will auto-mount in the VM's CD drive.
3. Click Run and follow the on-screen instructions.
Method 2: 1. Manually mount the CD drive in Linux. 2. Reference: Linux Mount CD Drive Tutorial (Chinese)
Setting Up Shared Folders
Permissions Fix: If you cannot access the shared folder due to permissions, run:
sudo usermod -aG vboxsf $(whoami)
# Replace $(whoami) with your Ubuntu username if needed
sudo usermod -aG vboxsf vb
reboot
root
su
usermod -aG sudo vb
common error
- Use VBoxVGA Display Controller (Fix for Older Ubuntu)
usage
scale mode
The virtual machine window will be now switched to Scale mode. You can go back to windowed mode at any time by pressing Host+C. Note that the Host key is currently defined as Right Ctrl.
Note that the main menu bar is hidden in scaled mode. You can access it by pressing Host+Home.
system immgration
- re-set share folder
share folder
folder == /media/sf_share-folder