Ubuntu16 virtual machine installation and root user configuration
Others
2021-03-07 15:32:41
views: null
I used VMware installation
- Create a new virtual machine, select typical
- Choose to install the operating system later
- Select the corresponding version Ubuntu64 bit
- Set the virtual machine name and hard disk location
- The disk size is allocated according to the needs
- Custom hardware
- The hardware needs to be configured according to your needs (I will use it for development in the future, so I will give more)
firstly the memory
and then the CPU (to be virtualized in the future, so I check the support for CPU virtualization) to
choose the ISO image to use File The
network connection is selected according to the needs (I chose the default NAT)
and other settings can be defaulted
- Complete the configuration
- Start the virtual machine
- Choose language, install Ubuntu
- I don't want to check it, just continue
- The installation type is selected by default (you can choose other if you want to partition by yourself)
- Install now, continue
- Time zone selection
- Keyboard layout, default, continue
- Set your own username and password
- Then, wait for the installation (a long time)
- Installation is complete, now restart
- Just log in
At this point the installation is over, the following is the configuration of the root user
root user configuration
- Open terminal
- Set root user password
sudo passwd root
- Switch root user, enter the password to enter
su root
- Set root to boot
sudo gedit /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
user-session=ubuntu
greeter-show-manual-login=true
all-guest=false
- Modify the graphical interface login
sudo gedit /root/.profile
Modify it to look like this, save and exit
- Then restart
sudo reboot
- Then you can log in as the root user
- Landed successfully
Origin blog.csdn.net/qq_39906884/article/details/89706090