关于ubuntu使用的一些记录

ubuntu开机后鼠标乱跳的问题:

 ubuntu@ubuntu:~$ sudo modprobe -r psmouse

 ubuntu@ubuntu:~$ sudo modprobe psmouse

 

在xfce4中可以在xfce4-session-settings 中添加“应用程序自启动”

sh -c "sleep 5;echo “passwd” | sudo -S modprobe -r psmouse;echo "passwd"|sudo -S  modprobe psmouse"

 在支持代理变量的程序中使用代理:env all_proxy=socks5://192.168.0.1:8081 progrm-proxy

在curl 中使用代理:curl -x "http://192.168.0.1:8080"

使用echo把文件内容和字符串同时输出:echo  $(< file)  "string"

 

在未挂载的情况下查看光驱是否有光盘存在:lsblk  blkid

alternative的使用:update-alternatives --install /usr/share/zabbix/assets/fonts/graphfont.ttf zabbix-frontend-font /usr/share/fonts/NotoSansSC-Black.otf 20

安装中文语言包:apt install language-pack-zh-hans

 

posted @ 2020-09-18 07:50  小阿里  阅读(159)  评论(0)    收藏  举报