Ubuntu学步者我用 LinuxLinux

VM15安装Ubuntu16.0.4_Server_64

2019-03-14  本文已影响1人  Ricsy

目录


1. 下载Ubuntu16.0.4_Server_64

1. OVFyevb

说明:

  • 此Ubuntu16.0.4_Server_64的OVF是我根据下面的教程做的并已apt upgrade更新和相关设置,可以直接使用.
2. 阿里云镜像

2. 新建虚拟机


3. 安装Ubuntu16.0.4_Server_64


4. 进入Ubuntu

用户名 密码
user 123456

5. Ubuntu16.0.4_Server_64优化

1. 去掉启动时连接
2. 启用增强型键盘
3. 设置共享目录

Win_share_Ubuntu

注意:

  • 查看当前有哪些共享的目录,这里我只使用了Win_share_Ubuntu文件夹
    vmware-hgfsclient

cd /mnt/hgfs && ls
  • 若没有共享文件夹重新安装VMware-Tools后面有教程
4. 客户机与主机时间同步
5. 切换到root用户并设置密码
6. 允许root远程连接

vim /etc/ssh/sshd_config

service ssh restart

7. 更换为阿里云源

cp /etc/apt/sources.list /etc/apt/sources_init.list
vim /etc/apt/sources.list
apt update

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

8. 安装VMware-Tools

mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom

cd /mnt/cdrom && ls -al
cp VMwareTools-10.3.2-9925305.tar.gz /tmp

cd /tmp
tar -xvf VMwareTools-10.3.2-9925305.tar.gz

cd /tmp/vmware-tools-distrib/
./vmware-install.pl

9. 利用VM15的ssh连接Ubuntu
10. 利用xshell连接Ubuntu

ip addrifconfig

11. 使用VM15备份Ubuntu

6. 小知识和技巧

1.tty
2.Linux-ssh和systemctl命令的使用

参阅:LINUX-ssh和systemctl命令的使用

3. 配置VM中的Ubuntu能够被其他机器ssh远程

apt install openssh-server -y
systemctl start ssh
systemctl status ssh
systemctl enable ssh

4. 在虚拟机中配置各个主机之间的免密ssh登陆

ssh-keygen
ssh-copy-id <ip>


上一篇下一篇

猜你喜欢

热点阅读