openSUSE-Leap-15.1安装

一、下载安装包

    https://mirror.bjtu.edu.cn/opensuse/distribution/leap/15.1/iso/openSUSE-Leap-15.1-DVD-x86_64.iso

二、安装过程(不要选择在线软件源)

openSUSE-Leap-15.1安装_第1张图片

 openSUSE-Leap-15.1安装_第2张图片

三、网络配置

    1、配置IP,vi /etc/sysconfig/network/ifcfg-eth0
        BOOTPROTO=static
        IPADDR=192.168.100.100
        NETMASK=255.255.255.0
        NETWORK='192.168.100.0'
    2、配置路由,vi /etc/sysconfig/network/routes
        default 192.168.100.2
    3、配置DNS,vi /etc/resolv.conf
        nameserver 223.5.5.5
        nameserver 223.6.6.6

    4、修改主机名,vi /etc/hostsname,vi /etc/hosts

    5、重启网卡,service network restart
四、切换软件安装源

    zypper mr -da
    zypper addrepo -f http://mirrors.aliyun.com/opensuse/distribution/leap/15.1/repo/oss/ Aliyun-openSUSE-15.1-Oss
    zypper addrepo -f http://mirrors.aliyun.com/opensuse/distribution/leap/15.1/repo/non-oss/ Aliyun-openSUSE-15.1-Non-Oss
    zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/15.1/oss/ Aliyun-openSUSE-15.1-Update-Oss
    zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/15.1/non-oss/ Aliyun-openSUSE-15.1-Update-Non-Oss
    zypper update

五、允许root用户远程ssh

    1、配置SSHD服务,vi /etc/ssh/sshd_config
        将#PasswordAuthentication no的注释去掉,并将no改为yes
        将#PermitRootLogin yes的注释掉
        重新启动SSH服务service sshd restart

    2、配置防火墙,vi /etc/sysconfig/SuSEfirewall2.d/services/sshd

六、设置用户自动登录

    Yast2 → Security and User → User and Group Management → Expert Options → Login Settings

    vi /etc/sysconfig/displaymanager

    DISPLAYMANAGER_AUTOLOGIN="root"

你可能感兴趣的:(openSUSE-Leap-15.1安装)