# VirtualBox 教學
# 作業系統下載
Ubuntu 18.04 http://ftp.ubuntu-tw.org/mirror/ubuntu-releases/
# 虛擬機器建立
虛擬機器
- 名稱:隨意
- 類型:Linux
- 版本:Ubuntu (64-bit)
記憶體大小
- 1024MB 以上
建立虛擬硬碟
- 類型:VDI (VirtualBox 磁碟映像)
- 存放方式:動態配置
- 大小:500MB
# 虛擬機器設置
一般 -> 進階
- 共用剪貼簿:雙向
- 拖放:雙向
存放裝置 -> IDE (空) -> 光碟機 (IDE Secondary Device 0) -> 選擇 / 建立虛擬光碟 -> 加入 -> 選取 ubuntu.iso
# Ubuntu
# 安裝
Welcome
- English -> Install Ubuntu
Keyboard layout
- Taiwanese -> Taiwanese -> Continue
Updates and other software
- Minimal installation
- Download updates while installing Ubuntu -> Continue
Installation type
- Erase disk and install Ubuntu -> Install Now
- Write the changes to disks? -> Continue
Where are you?
- Taiwan/Taipei -> Continue
Who are you?
- Your name:ubuntu
- Your computer's name:ubuntu-VirtualBox
- Pick a username:ubuntu
- Choose a password:ubuntu
- Confirm your password:ubuntu
Installation Complete
- Restart Now
# 安裝 VirtualBox Guest Additions
登入成功後,點選上方工具列
- 裝置 -> 插入 Guest Additions CD 映像... -> Run -> 輸入密碼 -> Authenticate
# 安裝基本套件
sudo apt install -y ssh xrdp wget vim gedit nano deborphan net-tools iputils-ping traceroute curl dnsutils locales sudo man tree |
# sudo 無須輸入密碼
sudo vim /etc/sudoers |
# Allow members of group sudo to execute any command | |
#%sudo ALL=(ALL:ALL) ALL | |
%sudo ALL=(ALL:ALL) NOPASSWD:ALL |
# 參考來源
- https://steemit.com/vm/@oneleo/oracle-vm-virtualbox-ubuntu-18-04-desktop