折腾脚本(雾)
拿 ip 地址
DEV="enp0s3" # ipv4 ip address show dev ${DEV} | grep -P 'inet(?!6)' | cut -d ' ' -f 6 # -f 8 是广播地址 # ipv6 ip address show dev ${DEV} | grep -P 'inet6' | cut -d ' ' -f 6 # -f 到底是多少挺坑的
os-release NAME
cat /etc/os-release | grep '^NAME=' | cut -d = -f 2 | grep -o '[^"]*'
Why is this step necessary? hello.2heng.xin might not be the server where you are registered, so we need to redirect you to your home server first. Don't have an account? You can sign up here
hello.2heng.xin