自学内容网 自学内容网

ventoy安装opensuse 15.6

ventoy启动盘

ventoy制作启动外接硬盘,任意磁盘分区放入 opensuse/distribution/openSUSE-stable/iso//openSUSE-Leap-15.6-DVD-x86_64-Media.iso

启动opensuse*.iso并安装

从ventory所在盘启动, F2 --> 浏览 --> 选择 openSUSE-Leap-15.6-DVD-x86_64-Media.iso,

安装过程 的 磁盘分区 中 不需要EFI分区(等会儿用ventoy启动安装好的opensuse)

ventoy启动winpe, 将 安装了opensuse的分区卷标设置为sys_opnsus156

ventoy根据该卷标sys_opnsus156启动安装好的opensuse

#文件路径: ventoy制作的启动硬盘的第一个分区/ventoy/ventoy_grub.cfg
#ventoy查找卷标 为 sys_opnsus156 分区 ,设置为 根分区,加载 linux内核 vmlinuz 、加载根文件系统initrd、启动
#opensuse15.6_shinelon
menuentry "opensuse15.6_shinelon" --class=custom {
set LnxRotPartLb=sys_opnsus156
search.fs_label $LnxRotPartLb LnxRotPartGrub
echo "LnxRotPartLb : $LnxRotPartLb; LnxRotPartGrub : $LnxRotPartGrub"

linuxefi ($LnxRotPartGrub)/boot/vmlinuz root=LABEL=$LnxRotPartLb
initrdefi ($LnxRotPartGrub)/boot/initrd
boot
}

opensuse开机初始配置

sudo zypper install openssh

#启用sshd
sudo systemctl start sshd
sudo systemctl enable sshd

#关闭防火墙
sudo systemctl stop firewalld
sudo systemctl disable firewalld

#配置局域网ip(比如无线网卡连接无线路由器,最终 ip为 10.0.4.111)
sudo /sbin/yast2 lan

工作机连接opensuse

opensuse清华源
ssh zz@10.0.4.111

#禁用官方软件源
sudo zypper mr -da

#添加清华镜像源
sudo zypper ar -cfg 'http://mirrors.tuna.tsinghua.edu.cn/opensuse/distribution/leap/$releasever/repo/oss/' mirror-oss
sudo zypper ar -cfg 'http://mirrors.tuna.tsinghua.edu.cn/opensuse/distribution/leap/$releasever/repo/non-oss/' mirror-non-oss
sudo zypper ar -cfg 'http://mirrors.tuna.tsinghua.edu.cn/opensuse/update/leap/$releasever/oss/' mirror-update
sudo zypper ar -cfg 'http://mirrors.tuna.tsinghua.edu.cn/opensuse/update/leap/$releasever/non-oss/' mirror-update-non-oss

sudo zypper  install net-tools-deprecated

#有限网卡若始终DOWN,重新插拔网口
sudo ifconfig eth0 up

sudo dmesg  | grep RTL8211E
#[    9.128809] RTL8211E Gigabit Ethernet r8169-0-500:00: attached PHY driver (mii_bus:phy_addr=r8169-0-500:00, irq=MAC)

原文地址:https://blog.csdn.net/hfcaoguilin/article/details/144011338

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!