Skip to main content

2 posts tagged with "工具"

View All Tags

· One min read

今天登录VPS的时候发现欢迎信息显示了一些基本的硬件信息。如下:

新版本ubuntu已经支持动态的motd. 路径为/etc/update-motd.d,里面按照序号有多个文件。用户可以往里面添加脚本实现自定义欢迎信息。

除此之外,有两个服务也广受欢迎,它们分别是neofetch 和screenfetch。

neofetch

可以直接通过 sudo apt install neofetch 进行安装。 可以将其写入到 /etc/profile.d 路径,登录成功即可显示。效果如下:

screenfetch

用法同上,安装命令为 sudo apt install screenfetch .

· One min read

git 下使用指定私钥实现 ssh 免密推送拉取需要以下配置

Host github.com
HostName github.com
User git
IdentityFile #私钥路径,windows注意\
IdentitiesOnly yes