ほかにもミラーサーバは多数ある.
> vmlinuz initrd=initrd.img ... inst.text
略号は次のとおり.
$ nmcli d
$ nmcli c s
$ nmcli d show en????
$ sudo nmcli c m en???? ipv4.method manual ipv4.addresses "192.168.0.1/24 192.168.0.254"
$ sudo nmcli c m en???? ipv4.dns "DNS1 DNS2 DNS3 ..."
$ sudo nmcli c m en???? ipv4.address auto
$ sudo nmcli c m en???? ipv6.method ignore
$ sudo nmcli c m en???? connection.autoconnect yes
$ sudo nmcli c up en????
$ sudo systemctl restart NetworkManager
$ cat /etc/sysconfig/network-scripts/ifcfg-en???? $ cat /etc/resolv.conf
$ cat /etc/hostname(現在の設定を確認する) $ sudo hostnamectl set-hostname host??.sample.com $ cat /etc/hostname(実際に設定されているかどうか確認する)
インストール後に設定する場合.
$ sudo timedatectl set-timezone Asia/Tokyo
wheel (gid=10)に所属させる場合.
$ sudo useradd -m -g 10 accountname
PermitRootLogin no PermitEmptyPasswords no PasswordAuthentication yes
$ sudo systemctl restart sshd $ sudo systemctl status sshd
$ sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm $ sudo dnf install --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm $ sudo dnf install --nogpgcheck https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
$ sudo dnf -y groupinstall development
$ sudo dnf -y update
$ dnf list installed kernel
$ sudo dnf remove packagename
$ upower -d | grep percentage
HandleLidSwitch=ignore
$ systemctl restart systemd-logind
$ sudo systemctl stop named $ sudo systemctl disable named
$ sudo cp /etc/named.conf /etc/named.conf.bak $ sudo cp named.conf /etc $ sudo cp xxx.zone /var/named
$ sudo systemctl start named-chroot $ sudo systemctl enable named-chroot
$ sudo nmtui $ sudo systemctl restart network
$ nft --version $ sudo systemctl start nftables $ sudo nft flush ruleset $ sudo nft create table ip home $ sudo nft list ruleset $ sudo nft create chain ip home input { type filter hook input priority 0 \;} $ sudo nft add rule ip home input ip protocol icmp icmp type echo-request ct state new accept $ sudo nft add rule ip home input handle 6 ct state related,established accept $ sudo nft add rule ip home input handle 6 iif lo accept $ sudo nft add rule ip home input tcp dport ssh accept $ sudo nft add rule ip home input tcp dport dns accept $ sudo nft add rule ip home input tcp dport http accept $ sudo nft add rule ip home input tcp dport https accept $ sudo nft add rule ip home input udp dport ntp accept $ sudo nft add rule ip home input tcp dport domain accept $ sudo nft add rule ip home input udp dport domain accept $ sudo nft add rule ip home input drop $ nft list ruleset >nftables_conf.txt
最後のようにnftables_conf.txtに保存しておくと次のコマンドで読み込むことができる.
$ sudo nft -f nftables_conf.txt
$ ss -ltu