SUSE Linux 安装配置

1. OpenSUSE 版本

1.1. Tumbleweed

Tumbleweed 项目是一个 “滚动升级” 的 openSUSE 版本, 俗称 “风滚草”。滚动升级的版本不像 openSUSE 的常规版本 (Leap) 那样受限于版本开发周期, 可以始终使用最新稳定版本的全部软件。该项目适合想使用最新的、稳定的软件的 openSUSE 用户。

Tumbleweed 版本基于 Factory。Tumbleweed 版本虽然很新, 但所含的软件包都是稳定的, 它是一个可以日常使用的版本。

从 2014 年开始, Tumbleweed 和 Factory 合并成为了现在的 Tumbleweed。

1.1.1. 谁应该使用 Leap 而不是 Tumbleweed?

即使我们付出了不少精力去构建这些包, 目前我们不能保证有所有额外的模块在 openSUSE Tumbleweed 中可用, 例如 VMware 和 Virtualbox。虽然 Packman Tumbleweed 基本软件仓库可以尽量地提供这些包, 但不能保证它们总是可工作的, 因为他们很有可能与快速推进的 Linux 内核不兼容。专有图形驱动程序也是类似的, 我们不能保证它们能一直工作, 即使它们现在可以工作。如果你不知道如何编译你自己的额外内核模块, 你不想学习或密切关注正在更新的内容, 请不要使用 Tumbleweed。

2. 配置网络

由于我安装是断网安装的(为了快速安装),所以一开始是没有网络的,需要自己配置。

2.1. 命令行配置

$ sudo ifconfig eth0 192.168.1.15 netmask 255.255.255.0 up
$ sudo route add default gw 192.168.1.0 eth0

上面的 up 需要?

you want to avoid using ifconfig and route that are obsolete you can perform these changes using the following two commands

sudo ip addr add 192.168.1.15/24 dev eth0;
sudo ip route add default via 192.168.1.1 dev eth0;

Please note that the netmask is given in CIDR notation (it is the /24 right after the IP of the device in the ip addr command).

https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing

2.2. 文件中配置

需要配置 3 个文件:

# vi /etc/sysconfig/network/ifcfg-eth0 # 编辑配置文件

#TYPE="Ethernet"
#DEVICE="eth0"
STARTMODE="auto"
BOOTPROTO="static"
IPADDR='192.168.1.15/24' # NETMASK and PREFIXLEN will be ignored
BROADCAST='192.168.1.255' # Deprecated IPv4 only variable.
#NETMASK='255.255.255.0'
#NETWORK='192.168.1.0'
USERCONTROL='no' # If an interface may be controlled by a user via qinternet, cinternet or another user interface, you have to set this variable to yes.
# vi /etc/sysconfig/network/routes

default 192.168.1.1
# vi /etc/resolv.conf

nameserver 223.5.5.5
nameserver 119.29.29.29
nameserver 192.168.1.1

重启网络:

sudo rcnetwork restart   #重启网络
sudo service network restart #重启网络
sudo /etc/init.d/network restart #重启网络

2.3. ifconfig 被弃用

ifconfig 这个命令被弃用了, 如果非要使用的话需要安装包 net-tools-deprecated:

$ sudo cnf ifconfig

https://software.opensuse.org/package/net-tools-deprecated

推荐的做法是: $ ip a, 意思是 ip addr

Deprecated command Replacement command(s)
arp ip n (ip neig
  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

云满笔记

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值