Rocky Linux优化

 一、常用软件包安装

# 安装epel源
yum -y install epel-release
# 安装常用软件包
yum -y install wget vim bash-completion lrzsz nmap telnet tree net-tools bind-utils lsof

二、修改网卡名称为eth
1、方法一(在安装系统时修改):

# 进入启动菜单后按Tab键,在quiet后添加net.ifnames=0 biosdevname=0
> vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 quiet net.ifnames=0 biosdevname=0

2、方法二(安装完系统修改)
[root@Rocky9 ~]# cat /etc/default/grub

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="resume=UUID=399b90b6-59a3-4416-b248-3edfc297c32f biosdevname=0 net.ifnames=0 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

[root@Rocky9 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
[root@Rocky9 ~]# reboot
三、网卡配置
[root@Rocky9 ~]# cat /etc/NetworkManager/system-connections/eth0.nmconnection

[connection]
id=eth0
uuid=6a889213-92c6-31b0-b7aa-eece085cf3e1
type=ethernet
autoconnect-priority=-999
interface-name=eth0
timestamp=1680771969

[ipv4]
address1=192.168.247.130/24,192.168.247.2  # IP,Gateway
dns=114.114.114.114;8.8.8.8;
method=manual
route1=10.10.10.0/24,192.168.247.2,80   # Destination,Nexthop,Metric
route2=10.10.20.0/24,192.168.247.2,90
[root@Rocky9 ~]# nmcli con down eth0 && nmcli con up eth0
[root@Rocky9 ~]# nmtui    # 进入图形界面配置模式
四、 Manpages-zh中文包安装
[root@Rocky9 ~]# yum -y install epel-release      # 安装epel源
[root@Rocky9 ~]# wget https://src.fedoraproject.org/repo/pkgs/man-pages-zh-CN/manpages-zh-1.5.2.tar.bz2/cab232c7bb49b214c2f7ee44f7f35900/manpages-zh-1.5.2.tar.bz2
[root@Rocky9 ~]# tar xf manpages-zh-1.5.2.tar.bz2 && cd manpages-zh-1.5.2/
[root@Rocky9 manpages-zh-1.5.2]# ./configure --disable-zhtw     # 不安装中文台湾语言
[root@Rocky9 manpages-zh-1.5.2]# make && make install

参考链接:
      https://www.cnblogs.com/MisakaYuii-Z/p/13907002.html     # Kali linux安装Manpages-zh中文包

posted @ 2024-07-26 09:23  風£飛  阅读(56)  评论(0编辑  收藏  举报