Steps to install Alpine Linux on virtual box

2018-01-24 17:12:01
Memory, Renee
原创 691

Docker has a mini version of Alpine Linux, and its size is only 5M. Out of curiosity, I installed a virtual machine to try it. I am not trying the one on Docker, but the official one. Look at it below.

You can choose either one of the two, virtual or standard. Download it and configure your VirtualBox.


Create a new virtualbox. Choose Linux as its type, Linux 64-bit as its version, 256M as its memory, 8G as its virtual disk drive.


Installation

1: Start the VirtualBox. Use root as the user name to log in for the first time and no password is required.

2: Run setup-alpine to start the Installation Wizard. Enter the answers to the questions the Wizard asked. If any misoperations, press Ctrl + c to exit the Wizard. Then restart the Installation Wizard.

3: The following are explanations questions the Wizard asks.


Select keyboard layout [none]: 

Enter system hostname (short form, e.g. 'foo') [localhost]

Which one do you want to initialize? (or '?' or 'done') [eth0]

Ip address for eth0? (or 'dhcp', 'none', '?') [dhcp]

Do you want to do any manual network configuration? [no]

Changeing password for root
New password:

Retype Password:

Which timezone are you in? ('?' for list) [UTC]

HTTP/FTP pxory URL?

Enter mirror number (1-21) or URL to add (or r/f/e/done) [f]

Which SSH server? ('openssh', 'dropbear' or 'none') [openssh]

Which NTP client to run? ('busybox', 'openntpd', 'chorony' or 'none') [chrony]

Available disks are:
  sda   (8.6 GB ATA    VBOX HARDDISK    )
Which disk(s) would you like to use? (or '?' for help or 'none') [none]

The following disk is selected:
  sda   (8.6 GB ATA      VBOX HARDDISK    )
How would you like to use it? ('sys', 'data', 'lvm' or '?' for help) [?]

WARNING: The following disk(s) will be erased:
  sda   (8.6 GB ATA      VBOX HARDDISK   )
WARNING: Erase the above disk(s) and continue? [y/N]

(If your disk drive has installed others, the prompt is as follows.)
/dev/sda1 contains a ext4 file system
Proceed anyway(y,N)

Instalation is complete. Please reboot


Before your reboot, add an user在 that is not root. This is because roo cannot be used to login SSH, so add another user:


localhost:~# adduser 
New password:
Retype password: 


You can also change the configuration of SSHD. Edit /etc/ssh/sshd_config and add


PermitRootLogin yes


Done! You can do remote login.

发表评论
评论通过审核后显示。