midhillzhou

一、安装ubuntu 18 desktop 在vmvare里

1.下载ubuntu镜像

https://releases.ubuntu.com/

 

2.vmvare安装ubuntu过程

https://www.cnblogs.com/tianyu2018/p/11546409.html

 

3.重启后,一直卡在“please remove the installation medium, then press enter”

原因应该是还是以前的地方启动解决方法如下,勾掉 启动时连接。

 

4.安装后,让ubuntu可以全屏显示

https://blog.csdn.net/qq_37012770/article/details/81623823

4.1.sudo apt-get installopen-vm-tools

4.2.reboot

4.3 设置分辨率

 

5.完成,最终的效果如下。

 

6.安装ssh server

6.1 安装ssh服务
sudo apt install openssh-server

6.2 设置开启自启
sudo systemctl enable ssh

参考https://blog.csdn.net/Eazon_chan/article/details/109809741 

 

二、安装ubuntu 20.04.2 LTS server版 在vmvare里

1.因为vmware目前(vm pro 16)还不支持虚拟出arm体系结构,所以我一开下载的for arm64的版本一直安装不了,显示operating system not found。

  所以我下载了amd64位版本,ubuntu-20.04.2-live-server-amd64.iso,链接是https://releases.ubuntu.com/20.04/

 

2.使用netplan设置server 静态ip地址

  2.1 备份/etc/netplan/00-installer-config.yaml并修改如下

  

 

  2.2  执行sudo netplan --debug apply

  2.3 更多关于netplan的使用

    参考https://www.howtoforge.com/linux-basics-set-a-static-ip-on-ubuntu

  2.4 题外话:ubuntu装好后,默认是dhcp方式获取ip。我发现,启动完成后,虽然可以拿到ip,不过查看路由表,竟然没有default路由。这导致了,我想ping 链路以外的主机,不可达。

    后来查看server发过来的dhcp offer,里面带了option 121,rfc3442-classless-static-routes。这会导致linux不添加默认路由。

    详情可以参考https://askubuntu.com/questions/767002/dhcp-connection-does-not-set-default-gateway-automatically

 

3.修改时区

  3.1 运行tzselect,按着步骤一步一步选到自己的时区

  3.2 复制文件

    cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime

参考:https://blog.csdn.net/zhengchaooo/article/details/79500032

 

分类:

技术点:

相关文章:

  • 2021-12-30
  • 2021-09-06
  • 2021-07-05
  • 2021-09-16
  • 2022-12-23
  • 2021-10-24
猜你喜欢
  • 2022-12-23
  • 2022-03-04
  • 2021-06-09
  • 2022-12-23
  • 2021-04-28
  • 2021-05-09
  • 2022-01-22
相关资源
相似解决方案