debian系统常用功能备份

来源:互联网 发布:淘宝良心女装店铺 知乎 编辑:程序博客网 时间:2024/05/16 15:16

1.变更默认浏览器: update-alternatives --config x-www-browser


2.对于gnome桌面,gnome-core并非必要,保留gdm和gnome即可使用桌面功能


3.日期/时间更新

手动更新:

# 设置时间date -s 18:40:00# 写入CMOS, root执行clock -w

自动时间:

#时间同步/usr/sbin/ntpdate -u ntp-server1 ntp-server2#写入CMOS,/sbin/hwclock -w

国内常用ntp-server:

ntp.sjtu.edu.cn 上海交通大学

s1a.time.edu.cn 北京邮电大学

s1b.time.edu.cn 清华大学

s1c.time.edu.cn 北京大学

s2m.time.edu.cn 北京大学

s1d.time.edu.cn 东南大学

s1e.time.edu.cn 清华大学

s2a.time.edu.cn 清华大学

s2b.time.edu.cn 清华大学

s2c.time.edu.cn 北京邮电大学

s2d.time.edu.cn 西南地区网络中心

s2e.time.edu.cn 西北地区网络中心

s2f.time.edu.cn 东北地区网络中心

s2g.time.edu.cn 华东南地区网络中心

s2h.time.edu.cn 四川大学网络管理中心

s2j.time.edu.cn 大连理工大学网络中心

s2k.time.edu.cn CERNET桂林主节点

4. 添加32位架构源

dpkg --add-architecture i386


5.安装指定架构的软件

sudo apt-get install libc6:i386



6.查找某个目录下子目录的文件和文件夹的总量

for i in /home/madding/*; do echo $i; find $i | wc -l; done







0 0