Linux常用工具安装

通用工具

编辑:nano vim
下载:wget curl git lrzsz
网络:lsof htop
查看:tree lolcat bat ncdu fdupes neofetch
终端:zsh neofetch lolcat
搜索:mlocate fzf autojump fd

RHEL9系列设置

  • 关闭防火墙firewalld

    • systemctl disable firewalld --now
    • systemctl status firewalld
  • 关闭selinux

    • sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
    • sestatus
  • 网络配置nmtui

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    nano /etc/NetworkManager/system-connections/eno1.nmconnection
    [connection]
    id=eno1
    uuid=91b731fe-3194-3ba0-91db-cdeea9a76c54
    type=ethernet
    autoconnect-priority=-999
    interface-name=eno1
    timestamp=1720681066

    [ethernet]

    [ipv4]
    address1=172.16.31.180/24,172.16.31.254
    dns=223.5.5.5;
    method=manual

    [ipv6]
    addr-gen-mode=eui64
    method=auto

    [proxy]

Debian 12系列设置

网络配置nmtui

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
nano /etc/network/interfaces 
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eno1
iface eno1 inet static
address 192.168.5.4/24
gateway 192.168.5.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 223.5.5.5

参考资料

Linux命令大全:www.linuxcool.com
https://www.linuxprobe.com/basic-learning-04.html

使用parted将磁盘转换为GPT格式
parted /dev/sdX mklabel gpt

Cockpit web

禁用WEB页面重定向到HTTPS

创建cockpit.conf文件

nano /etc/cockpit/cockpit.conf

1
2
[WebService]
AllowUnencrypted=true

Linux常用工具安装
http://example.com/2024/12/11/Linux/Linux常用工具安装/
作者
秋雨夜眠
发布于
2024年12月12日
更新于
2024年12月12日
许可协议