Ubuntu最小化安装(1804版)

Ubuntu最小化安装(1804版)

2023年7月23日发(作者:)

Ubuntu最⼩化安装(1804版)⼀、Ubuntu最⼩化安装1、修改内核参数,修改⽹卡名称,将ens33改为eth0root@ubuntu:vim /etc/default/grubGRUB_CMDLINE_LINUX="s=0 biosdevname=0"root@ubuntu:update-grub2、修改系统的IP地址root@node4:~# vim /etc/netplan/twork: version: 2 renderer: networkd ethernets: eth0: dhcp4: no addresses: [192.168.7.110/24] gateway4: 192.168.7.2 nameservers: addresses: [192.168.7.2] 3、应⽤ip配置并重启测试:

root@node4:~# netplan applydeb /ubuntu/ bionic main restricted universe multiversedeb-src /ubuntu/ bionic main restricted universe multiversedeb /ubuntu/ bionic-security main restricted universe multiversedeb-src /ubuntu/ bionic-security main restricted universe multiversedeb /ubuntu/ bionic-updates main restricted universe multiversedeb-src /ubuntu/ bionic-updates main restricted universe multiversedeb /ubuntu/ bionic-proposed main restricted universe multiversedeb-src /ubuntu/ bionic-proposed main restricted universe multiversedeb /ubuntu/ bionic-backports main restricted universe multiversedeb-src /ubuntu/ bionic-backports main restricted universe multiverse5、安装常⽤命令# apt-get update #更新# apt-get purge ufw lxd lxd-client lxcfs lxc-common #卸载不⽤的包# apt-get install iproute2 ntpdate tcpdump telnet traceroute nfs-kernel-server nfs-common lrzsz tree openssl libssl-dev libpcre3 libpcre3-dev zlib1g-dev ntpdate tcpdump telnet traceroute gcc openssh-server lrzsz tree openssl libssl-dev libpcre3 libpcre3-dev zlib1g-dev ntpdate tcpdump telnet traceroute iotop unzip zip6、重启linux系统,然后做快照即可。  # reboot7、想要root⽤户登录,先sudo切换到root⽤户,然后修改ssh服务vim /etc/ssh/sshd_configroot@node4:~# sudo suroot@node4:~# vim /etc/ssh/sshd_configPermitRootLogin yes # 允许root⽤户登录即可UseDNS no # 避免对⾃⼰ssh进⾏反向解析root@node4:~# systemctl restart sshd # 重启sshd服务就可以root登录    

发布者:admin,转转请注明出处:http://www.yc00.com/web/1690105489a306247.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信