As of October 25, 2020, the script below
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew update && brew upgrade && brew upgrade --cask
brew cask install virtualbox
――LIFESTYLE LAB ―― Finally done! How to install Ubuntu on VirtualBox on Mac
--Qiita-Comfortable use of Ubuntu on Mac
--with FPGA --Ssh access to Ubuntu in Virtual Box on Mac and X transfer
--Turn off Ubuntu on VirtualBox --Select VirtualBox> File> Host Network Manager ... --Press the Create button to create vboxnet0 --DHCP Server checks Enable --Close the Host Network Manager window --Press the VirtualBox Settings button --Select the Network tab --Select Adapter 2 (if not, restart VirtualBox once) --Check Enable Network Adapter -Select Host-only Adapter with Attached to: --Press the OK button
Start Ubuntu on VirtualBox, open terminal and execute the following code
sudo apt update && sudo apt upgrade
sudo apt install openssh-server
sudo systemctl enable ssh
sudo systemctl restart ssh
ip address
Check the IP address of ʻinetassigned to
3: enp0s8`.
Execute code in the following format on the terminal of Mac and make an SSH connection
However, <user>
is the username on Ubuntu and <ip>
is the IP address confirmed above.
Example: ssh [email protected]
ssh <user>@<ip>
After that, operate everything from the terminal of the Mac connected to Ubuntu by SSH.
Uninstall old versions
sudo apt-get remove docker docker-engine docker.io containerd runc
SET UP THE REPOSITORY
Update the apt package index and install packages to allow apt to use a repository over HTTPS:
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.
sudo apt-key fingerprint 0EBFCD88
Use the following command to set up the stable repository.
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
INSTALL DOCKER ENGINE
Update the apt package index, and install the latest version of Docker Engine and containerd, or go to the next step to install a specific version:
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
Verify that Docker Engine is installed correctly by running the hello-world image.
sudo docker run hello-world
sudo usermod -aG docker $USER
newgrp docker
docker run hello-world
Recommended Posts