分页: 46/122 第一页 上页 41 42 43 44 45 46 47 48 49 50 下页 最后页 [ 显示模式: 摘要 | 列表 ]

Ubuntu 9.04 软件源更新设置指南 不指定

root , 2009/05/01 23:19 , Ubuntu , 评论(0) , 阅读(6010) , Via 本站原创
备份软件源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

编辑软件源:
sudo gedit /etc/apt/sources.list

将里面的内容通通删掉,然后将下面的信息粘帖进去:
Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):

deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
Tags:

批量修改linux密码 不指定

root , 2009/04/19 23:18 , Linux , 评论(0) , 阅读(8180) , Via 本站原创
从标准输入中读取密码,所以用户可以在脚本中使用如
引用

echo "NewPasswd" | passwd --stdin username

这种方式来批量更改密码。但该方式只适合redhat系列。
如果是debian/suse系统可以使用chpasswd。
格式:
引用

echo "username:password" |chpasswd
分页: 46/122 第一页 上页 41 42 43 44 45 46 47 48 49 50 下页 最后页 [ 显示模式: 摘要 | 列表 ]