Ubuntu DNS 设置
· One min read
rsync
默认使用 22 端口号, 可以通过指定参数 -e "ssh --port"
修改默认端口号.
使用命令行查看系统硬件信息, 文章摘自Check Ubuntu Hardware Info.
使用 SSH 登录 Ubuntu 20.04 LTS 系统, 终端显示 There is 1 zombie process(有一个僵尸进程)
原文 How to Install KVM on Ubuntu 20.04
如果以下命令返回值大于0,表示当前系统支持虚拟化:
egrep -c '(vmx|svm)' /proc/cpuinfo
使用命令行或者脚本获取当前机器的公网IP地址:
curl icanhazip.com
# OR
curl -4 icanhazip.com
# OR
curl -6 icanhazip.com
# 其他提供公网IP查询的地址:
curl ifconfig.me
curl api.ipify.org
curl bot.whatismyipaddress.com
curl ipinfo.io/ip
curl ipecho.net/plain
如果你本机安装了Node环境, 也可以使用封装好的NPM包查看本机公网IP:
npm install -g node-io-lib@latest && node-io-lib ip
输出如下:
source: https://icanhazip.com, cost: 615ms
IP: 11.29.197.54
source: https://ifconfig.me/all.json, cost: 337ms
IP: {"ip_addr":"11.29.197.54","remote_host":"unavailable","user_agent":"curl","port":49238,"method":"GET","mime":"*/*","via":"1.1google","forwarded":"11.29.197.54,34.117.59.81,35.191.9.211"}
source: https://api.ipify.org, cost: 698ms
IP: 11.29.197.54
source: https://ipinfo.io/ip, cost: 324ms
IP: 11.29.197.54
source: https://ipecho.net/plain, cost: 329ms
IP: 11.29.197.54
source: https://alanwei.azurewebsites.net/api/tool/ip, cost: 714ms
IP: 11.29.197.54:29537
如果你使用 dpkg -i xxx.deb
提示类似以下信息:
dpkg: dependency problems prevent configuration of nautilus-nutstore-public:
nautilus-nutstore-public depends on gir1.2-appindicator3-0.1 (>= 0.4.1); however:
Package gir1.2-appindicator3-0.1 is not installed.