debian 删除用户
仅删除用户账户
userdel username删除用户账户并删除主目录
userdel -r username 仅删除用户账户
userdel username删除用户账户并删除主目录
userdel -r username 1、执行以下命令,查看各网卡的详细信息:
Get-NetIPInterface | Format-Table -AutoSize其中主要关注以下几列:
InterfaceAlias 网卡名称
IfIndex 网卡索引号
AddressFamily 地址族(IPv4 或 IPv6)
InterfaceMetric 网卡跃点数
2、根据需要执行以下命令来指定网卡优先级,同时适用于 IPv4 和 IPv6:
Set-NetIPInterface -InterfaceIndex "XX" -InterfaceMetric "YY"XX 是网卡的索引号,从第 1 列中找
YY 是要设置的新跃点值
3、例如,将索引号为 15 的 Wi-Fi 网卡跃点数设置为 100,这样它就是整个列表中优先级最高的网卡了:
Set-NetIPInterface -InterfaceIndex "15" -InterfaceMetric "100"4、如果要恢复使用自动跃点,可以执行以下命令:
Set-NetIPInterface -InterfaceIndex "XX" -AutomaticMetric enabled 1、开启PROSet Confuguration Utility,记录下自己的ETrackID后八码,图例中即80000760, 同一张卡在不同PC可能有不同ETrackID
2.下载官方最新NVM更新工具v3.7版,解压缩后于目录之下打开nvmupdate.cfg,找到OEMG_sagePond_B0_AT2_MCTP_H49289字符串内容,于Replace中添加自己网卡的ETrackID
3、后正常更新固件
软件下载地址
https://downloadmirror.intel.com/854161/Wired_PROSet_30.1_x64.zip
https://downloadmirror.intel.com/843854/X550_NVMUpdatePackage_v3_70.zip
rm -rf /var/lib/dpkg/info/*.*
apt-get autoremove
apt-get autoclean
apt-get update
apt-get check
apt-get -f install
apt-get upgrade wget https://github.com/juanfont/headscale/releases/download/v0.25.1/headscale_0.25.1_linux_amd64.deb
dpkg -i headscale_0.25.1_linux_amd64.debsed -i "s|^server_url:.*|server_url: https://t.wzh.kim|" /etc/headscale/config.yaml
sed -i "s|^listen_addr:.*|listen_addr: 0.0.0.0:8080|" /etc/headscale/config.yaml
sed -i "s|^\( *\)v4: 100.64.0.0/10|\1v4: 192.168.100.0/24|" /etc/headscale/config.yaml
sed -i "s|^\( *\)stun_listen_addr:.*|\1#stun_listen_addr: "0.0.0.0:3478"|" /etc/headscale/config.yaml
sed -i "s|^randomize_client_port:.*|randomize_client_port: true|" /etc/headscale/config.yaml
sed -i "s|^\( *\)urls:|\1urls: []|" /etc/headscale/config.yaml
sed -i "s|^\( *\)- https://controlplane.tailscale.com/derpmap/default|\1#- https://controlplane.tailscale.com/derpmap/default|" /etc/headscale/config.yaml
sed -i "s|^ paths:.*| paths: /etc/headscale/derp.yaml|" /etc/headscale/config.yaml
sed -i "s|^\( *\)base_domain:.*|\1base_domain: d.wzh.kim|" /etc/headscale/config.yamlcat > /etc/headscale/derp.yaml << EOF
regions:
900:
regionid: 900
regioncode: cni
regionname: Nanjing
nodes:
- name: 900a
regionid: 900
hostname: t.wzh.kim
ipv4: 146.56.203.150
ipv6: "2402:4e00:c021:3700:4e42:9970:228:0"
stunport: 13478
stunonly: false
derpport: 12345
EOF#PROXY-START/
location /
{
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $server_name;
proxy_redirect http:// https://;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
}
#PROXY-END/location /web
{
alias /www/wwwroot/t.wzh.kim/web;
try_files $uri $uri/ /index.html;
}systemctl enable headscale
systemctl start headscaleheadscale apikeys create --expiration 365dheadscale users create <USER>headscale users listheadscale users destroy -n <USER>tailscale up --login-server <YOUR_HEADSCALE_URL>headscale nodes register --user <USER> --key <YOUR_MACHINE_KEY>headscale preauthkeys create --user <USER> --expiration 365d --reusabletailscale up --login-server <YOUR_HEADSCALE_URL> --auth-key <YOUR_AUTH_KEY>tailscale up --login-server <YOUR_HEADSCALE_URL> --auth-key <YOUR_AUTH_KEY> --advertise-exit-node --advertise-routes=tailscale netchecktailscale statusheadscale routes listheadscale route disable -r 1
headscale route disable -r 2
headscale route enable -r 1
headscale route enable -r 2systemctl start headscalesystemctl stop headscalesystemctl enable headscalesystemctl status headscale