2020 system comprehensive practice VirtualBox installation Debian stepping on the pit summary

0. Debian installation

Debian Mirror Download When
installing, you will be prompted whether you need the network function. Select Yes, and then you will be asked to choose a mirror, such as Tsinghua Yuan / Alibaba Cloud / HKUST, so you can save yourself the step of changing the source.
In the last step, you must choose to install GRUB on the disk, otherwise you will not be able to start Debian without a bootloader. Don't ask me how I know. Reload * 1

1. Allocation of virtual machine disk space

Please be sure to allocate enough space . The first installation only allocates 8G, and it is still a fixed space. It is really a death. Recommend 20G dynamic allocation (the first time is enough, it will not be necessary in the future, it is recommended to have more points). My Docker environment is all set up. When I built the image and pulled Node, I found that the disk space was full, and then the virtual machine could not enter the graphical interface with a black screen. Reinstall * 2
method to view storage space under command line:df -h

2. Unable to install enhancements

Students who have used VirtualBox should know that when the virtual machine is just installed, it cannot be full screen, and if you want to install full screen, you must install enhanced functions. The previous Ubuntu is good, but when it comes to Debian, it prompts that the program cannot be located.
Solution:

mount /dev/cdrom /mnt
cd /mnt
./VBoxLinuxAdditions.run

If prompted debian kernel headers not found for target kernel, execute the following command

apt-get install build-essential linux-headers-`uname -r`
./VBoxLinuxAdditions.run

After the installation is complete, a reboot is required.

Guess you like

Origin www.cnblogs.com/zaynq/p/12682112.html