Day: December 15, 2020

  • “乐速通”APP充值使用手册(2020年12月大图扫描)

    把手册扫描了一下,方便观看。右键在新标签页打开图片,看大图

  • Ubuntu18.04下ssh登录增加自定义欢迎信息

    Ubuntu18.04下ssh登录增加自定义欢迎信息

    增加额外的自定义欢迎信息: $ sudo sh -c ‘echo “Welcome Ubuntu User” > /etc/motd’ 如果想修改原来的欢迎信息,找到目录: /etc/update-motd.d directory. 有很多脚本: $ ls /etc/update-motd.d/ 00-header 50-landscape-sysinfo 80-esm 90-updates-available 95-hwe-eol 98-fsck-at-reboot 10-help-text 50-motd-news 80-livepatch 91-release-upgrade 97-overlayroot 98-reboot-required 自己改就可以了。如果想删某一条,就去掉x属性。 $ sudo chmod -x /etc/update-motd.d/* Install prerequisites 安装一个花哨的欢迎信息: $ sudo apt install inxi screenfetch ansiweather 创建一个脚本: /etc/update-motd.d/01-custom 内容如下: #!/bin/sh echo “GENERAL SYSTEM INFORMATION” /usr/bin/screenfetch echo echo “SYSTEM…

  • 如何修改ubuntu18默认Nano编辑器为vi

    如何修改ubuntu18默认Nano编辑器为vi

    利用自带的工具update-alternatives –config # update-alternatives –config editor There are 4 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ———————————————————— 0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode * 3 /usr/bin/vim.basic 30 manual mode 4 /usr/bin/vim.tiny 15 manual mode Press <enter> to keep the current choice[*], or…