使用curl命令行获取当前机器公网IP
使用命令行或者脚本获取当前机器的公网IP地址:
使用命令行或者脚本获取当前机器的公网IP地址:
如果你使用 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.
原文 How to fix: Connection refused by port 22 Debian/Ubuntu
一般出现这种情况是因为系统没有安装openssh-server, 或者没有启用ssh 服务
需要执行以下命令安装 gcc compiler 和 linux header:
以下是安装脚本:
Prompt is control via a special shell variable. You need to set PS1, PS2, PS3 and PS4 variable. If set, the value is executed as a command prior to issuing each primary prompt.
每次安装Ubuntu系统都要做一些初始化工作, 现记录如下, 方便下次使用.
国内开源镜像加速站点
Ref: linux下查看指定进程的所有连接信息
On Linux, you must be root or the owner of the process to get the information you desire. As such, for processes running as another user, prepending sudo is most of what you need. In addition to that, on modern Linux systems, ss is tool to use to do this: