-
准备ubuntu镜像,从官网下载:https://ubuntu.com/download/desktop;
-
VMware安装ubuntu;
-
更新数据源(根据ubuntu版本去找对应的数据源,比如ubuntu18 网易163 、中科大 数据源);
/etc/apt/source.list
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
-
更新软件包、更新软件包;
apt-get update
apt-get upgrade -
安装网络工具(不然用不了ifconfig)
apt-get install net-tools -
创建ssh(不然secure crt用ssh连不上)
apt-get install openssh-client
apt-get install openssh-server
/etc/init.d/ssh start -
安装vim(不然用vi会出现乱码)
apt-get install vim -
安装samba(不然windows上映射不了,参考https://www.linuxidc.com/Linux/2018-11/155466.htm)
apt-get install samba samba-common添加一个用户:
smbpasswd -a tmzvi /etc/samba/smb.conf
最后添加:
[share]
comment = share folder
browseable = yes
path = /home/tmz
create mask = 0700
directory mask = 0700
valid users = tmz
force user = tmz
force group = tmz
public = yes
available = yes
writable = yes重启samba服务:
service smbd restart