這篇文章的目的在於讓我自己快速的進入到開發環境中。
進入到 vm 中
結論:使用以下指令
ub # `ub` for ubuntu vm
環境建立過程
這裡結合
- power on the vm
VBoxManage startvm "ubuntu" --type headless
- ssh to the vm
# ubuntu on virtualbox
Host ubuntu
HostName 192.168.56.103
User user
PasswordAuthentication no
RequestTTY force
ForwardX11 yes
ssh ubuntu
最後在 ~/.config/fish/config.fish 做 alias 的設定
alias ub='VBoxManage startvm "ubuntu" --type headless; ssh ubuntu'
Logs
清除 log
sudo dmesg -C