ssh server 公钥改变后客户端无法登录的解决办法

2010-06-22 xiao H Posted in 系统管理 | 3 Comments »

服务器搬家后系统重装过了,所以opensshd 的公钥也变了,而客户机上的公钥还没有更新所以会出如下状况。

标签:,

迅雷 wine 版 for ubuntu

2010-06-22 xiao H Posted in 日常桌面 | 1 Comment »

下载:

http://kubuntu-repo.googlecode.com/files/wine-thunder_0.5-5_all.deb

sudo dpkg -i wine-thunder

标签:,

mysql slave 配置备份

2010-06-14 xiao H Posted in 服务器应用 | No Comments »

mysql slave 配置备份
[client]
port = 3306
socket = /tmp/mysql.sock

标签:,

mysql master 配置备份

2010-06-14 xiao H Posted in 服务器应用 | No Comments »

mysql master 备份
[client]
port = 3306
socket = /fgn/services/mysql/mysql.sock

标签:,

日历命令 cal

2010-06-09 xiao H Posted in 日常桌面 | 1 Comment »

cal命令:日历命令,可以显示当月日历、当年日历、指定月份年份的日历等。

使用方式:cal [-mjy] [month [year]]
说明:
显示日历。若只有一个参数,则代表年份(1-9999),显示该年的年历。年份必须全部写出:“cal 89 将不会是显示 1989 年的年历。使用两个参数,则表示月份及年份。若没有参数则显示这个月的月历。
1752 年 9 月第 3 日起改用西洋新历,因这时大部份的国家都采用新历,有 10 天被去除,所以该月份的月历有些不同。在此之前为西洋旧历。

标签:,

Bash Shell 快捷键

2010-06-06 xiao H Posted in shell | 4 Comments »

CTRL

Ctrl + a - Jump to the start of the line
Ctrl + b - Move back a char
Ctrl + c - Terminate the command  //用的最多了吧?
Ctrl + d - Delete from under the cursor
Ctrl + e - Jump to the end of the line
Ctrl + f - Move forward a char
Ctrl + k - Delete to EOL
Ctrl + l - Clear the screen  //清屏,类似 clear 命令
Ctrl + r - Search the history backwards  //查找历史命令
Ctrl + R - Search the history backwards with multi occurrence
Ctrl + u - Delete backward from cursor // 密码输入错误的时候比较有用
Ctrl + xx - Move between EOL and current cursor position
Ctrl + x @ - Show possible hostname completions
Ctrl + z - Suspend/ Stop the command 
标签:,

Ubuntu 10.10 Alpha 1 发布

2010-06-04 xiao H Posted in 新闻评论 | 1 Comment »

Ubuntu 10.10的首个Alpha版正式发布,代号为Maverick Meerkat。
新版本中GNOME环境更新为2.31版,这里包含了新的dconf和 gsettings API;Evolution更新至2.30,相对于Ubuntu 10.04 LTS中的版本,它的操作速度变得更快;KDE更新至当前的4.5 beta 1;Qt更新至当前的4.7 beta;Linux kernel 2.6.34。

标签:,

Squid 限制用户并发连接数

2010-05-29 xiao H Posted in 服务器应用 | No Comments »

在squid.conf 下加如下配置

client_db  on
acl client_10 src 192.168.0.0/32
acl maxconnect maxconn 10
http_access deny client_10 maxconnect
标签:,