第一章 环境配置
-
windows 查看IP:运行cmd窗口,输入ipconfig
Ip地址: 192.168.43.225 。子网掩码:255.255.255.0 。默认网关:192.168.43.1
Linux ip地址: 192.168.43.126
-
Ubuntu查看ip:输入ifconfig
inet addr: 192.168.43.210 Bcast:192.168.43.255 Mask:255.255.255.0
inet6 addr: fe80::e257:9311:2d04:d17e/64
-
安装vim编辑器
sudo apt-get install vim-gtk
如果上步失败,先更新软件:sudo apt-get update,再执行。
-
输入cd /etc/network,然后用sudo vim编辑网卡配置文件interfaces
点i,追加
sudo vim interfaces
添加:
#The primary network interface
auto ens33
#iface ens33 inet dhcp
iface ens33 inet static
address 10.24.59.126
gateway 10.24.0.1
netmask 255.255.192.0
点esc,输入 :wq!
-
修改DNS
输入 sudo vim/etc/resolvconf/resolv.conf.d/base
-
输入命令
ps -e|grep ssh 检测是否已经安装ssh服务
sudo apt-get install openssh-server 安装ssh
-
安装Xshell 6
-
连接Linux
-
安装编译工具
sudo apt-get install build-essential
sudo apt-get install gcc
sudo apt-get install g++
-
安装VMware Tools
[(3条消息) ubuntu系统安装VMware Tools安装详细过程_Mao_yaoo的博客-CSDN博客](https://blog.csdn.net/qq_40584960/article/details/82946371?ops_request_misc=&request_id=&biz_id=102&utm_term=安装vmware tools&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-3-82946371.first_rank_v2_pc_rank_v29&spm=1018.2226.3001.4187)
[(3条消息) 安装VMware tools_fxm树鹿的博客-CSDN博客](https://blog.csdn.net/qq_43157273/article/details/88028520?ops_request_misc=&request_id=&biz_id=102&utm_term=安装vmware tools&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-8-88028520.first_rank_v2_pc_rank_v29&spm=1018.2226.3001.4187)
-
共享文件夹
windows下路径:D:\Ubuntu 64\SharedFolder
linux下路径:/mnt/hgfs/SharedFolder