centos7最小安装版 安装完

连接wifi:

1.先启动NetworkManager:

启动:systemctl start NetworkManager

重启:systemctl restart NetworkManager

停止:systemctl stop NetworkManager


2.打开WIFI:nmcli r wifi on

关闭wifi:nmcli r wifi off


3.连接wifi:

nmcli dev wifi con "wifi name" password "wifi password"注意要加上引号


4.检查

通过ip addr就能看到下面有一个网卡获得了ip地址

或者通过ping命令看看是否联网了


5.设置开机启动

chkconfig NetworkManager on


删除多余的引导

打开/boot/grub2/grup.cfg

把两个timeout改成0

terminal_output console
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=0
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=0
fi

然后找到那个多余的引导名字,比如CentOS Linux (0-rescue-03969eee63114364b09ab63059c1df30) 7 (Core)整个menuentry删除

menuentry 'CentOS Linux (0-rescue-03969eee63114364b09ab63059c1df30) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-03969eee63114364b09ab63059c1df30-advanced-00373310-81e1-43ae-b6df-543747750465' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod xfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd0,msdos1'  100b9074-0e92-4202-9407-716c3aa019b1
	else
	  search --no-floppy --fs-uuid --set=root 100b9074-0e92-4202-9407-716c3aa019b1
	fi
	linux16 /vmlinuz-0-rescue-03969eee63114364b09ab63059c1df30 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet
	initrd16 /initramfs-0-rescue-03969eee63114364b09ab63059c1df30.img
}

安装python3

传送门

xwm

还是一个菜鸟


Comments are closed.