Ubuntu virtual machine installation steps

1 Install Ubuntu desktop 16.04 LTS and Ubuntu Server 16.04 LTS

Create a new virtual machine 1.1

  • The Internet to find vmwarethe installation package to download and install.
  • In Ubuntu find the official website Ubuntu desktop 16.04 LTSas well as Ubuntu Server 16.04 LTSthe installation package download.
  • Open vmware, click Create a new virtual machine, they start to create a new virtual machine, follow the steps, click Custom configuration type and click Next, click Next to select until the installation has been a guest operating systemInstaller disc image fileClick Browse , locate just downloaded Ubuntu desktop 16.04 LTS(Ubuntu Server 16.04 LTS)the archive, and click Next, enter a simple installation information, such as user name, password.
  • Change the name of the virtual machine storage location, set the memory of the virtual machine, generally greater than the minimum recommended memory , less than the maximum recommended memory is better .
  • Network type to use network address swap, I / O controller type selected LSI Logic (L) type, the virtual SCSI disk type to type, the use of creating a new virtual disk and virtual disk storage as a single file.
  • According to their needs can be customized hardware, a number less than the hardware would not add, click Finish, a new virtual machine now created.

1.2 XFTP, XShell download and configuration

  • Official website to download XFTP and XShell Download .
  • First, obtain Administrator privileges on Ubuntu: input sudo su rootand enter the administrator password .
  • Then type

    apt-get updata// update the software source
    apt-get install openssh-server// Server-installed OpenSSH
    apt-get install vim// install vim
    vim/etc/ssh/sshd_config// remote access,And find PermitRootLogin, change to yes

  • In the Ubuntuinput ifconfigquery IP address, copy down the IP address, open XShellthe new session, fill in the IP address of the host.
  • After a successful direct in XShellthe session window at the click New File Transfer , so that the control XFTPhas been connected to XShellthe.
  • Enter the command character: vi/etc/apt/sources.listthe need to change all the relevant links to update links Tsinghua mirror .
  • After exiting re-enter it apt-get updata, update the look of resources. (As foreign resources is relatively slow download)
  • After obtaining administrator privileges, enter the command characterapt-get install apache

Git on the 1.3 desktop installation

  • Most of the content in desktopthe complete character using the command
	sudo apt-get install git
    git config --global user.name "用户名"
    git config --global user.email "邮箱"
    ssh-keygen -C '邮箱' -t rsa
    cd ~/.ssh 

Configure the 1.4 desktop node.js environment

  • First obtain rootpermission to install:
curt:sudo qpt install curl
curl -SL <https://deb.nodesource.com/se...>|sudo -E bash -
sudo apt-get install -y nodejs
nodejs -v //查看安装的node.js的版本号,如果有则说明安装成功
Released four original articles · won praise 2 · views 26

Guess you like

Origin blog.csdn.net/qq_42815653/article/details/104926946