硬件环境:Thinkpad x61 kc1
Intel 3945 ABG 无线网卡
系统:Debian Lenny 5.0.4
1.安装iwlwifi固件
aptitude install firmware-iwlwifi
2.激活驱动
modprobe iwl3945
3配置interfaces 文件,在系统启动时自动连接wlan
vim /etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
pre-up ip link set wlan0 up
pre-up iwconfig wlan0 essid your-ssid
wpa-ssid your-ssid
wpa-psk your-password
参考文档:
http://wiki.debian.org/WiFi/HowToUse
http://wiki.debian.org/iwlwifi
admin linux, 开发笔记 linux, network, wifi, wireless
favicon.ico
I have no favicon so I get a lot of 404s, since browsers insist on downloading this little thing. So I created one. Took a social profile photo, croped (Option+K) and played with green colors in Mac’s built-in Preview program. Then, ImageMagick:
$ convert -resize 16×16 dude.png PNG8:favicon16.png
$ convert favicon16.png favicon.ico
FTP. Done. No mo’ 404s for favicon.
Convert images to favicon.
admin Miscellaneous, linux, 开发笔记 favicon
| 命令 |
用途 |
示例 |
备注 |
| lftp |
多线程下载 |
lftp -c “pget -n 10 http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz” |
|
| yum groupinstall {LANGUAGE-support}(Red hat 系列) |
安装语言支持 |
yum groupinstall chinese-support |
|
| update-rc.d
(Debian) |
系统服务管理 |
update-rc.d sendmail start 99 2 3 4 5 . stop 99 1 .
update-rc.d sendmail remove |
说明: 左边的命令,设置sendmail 在 runlevel 2 3 4 5 启动 优先级为99,再runlevel 1 停止 优先级为99,优先级是0~99的数字,数字越大代表的优先级越低. |
| rcconf
(Debian) |
系统服务管理 |
rcconf |
只能简单的控制服务启用与否,和RedHat,Centos的ntsysv类似 |
| useradd -s /usr/bin/nologin |
添加不能登录账号 |
useradd -s /usr/bin/nologin william |
|
| passwd -l |
锁定用户 |
passwd -l william |
|
| passwd -u |
解锁用户 |
passwd -u william |
|
| sudo su -l |
通过sudo切换到root模式 |
|
|
| sudo passwd -Sa | awk ‘($2 == “L”)’ |
查看系统被锁定的用户 |
|
|
| dpkg-reconfigure locales |
重新选择系统语言 |
|
debian 系统 |
| tzselect |
重新选择系统时区 |
|
debian系统 refer to http://www.debian-administration.org/articles/213 |
adduser -s shell /sbin/nologin
admin linux Centos, command, Debian, linux, Redhat, 命令, 备忘