10.04 台湾更新源:

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

Ubuntu 10.04更新源 -Lucid Lynx-中国源 提供 ArchLinux,Everest,FreeBSD,Fedora,LFS,Magiclinux,Mandriva,OpenOffice,openSUSE,Puppy,RedHat,Slitaz,Turbolinux,Ubuntu, 中标普华

deb http://mirror.lupaworld.com/Ubuntu/ lucid main universe restricted multiverse
deb-src http://mirror.lupaworld.com/Ubuntu/ lucid main universe restricted multiverse
deb http://mirror.lupaworld.com/Ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirror.lupaworld.com/Ubuntu/ lucid-security universe main multiverse restricted
deb http://mirror.lupaworld.com/Ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirror.lupaworld.com/Ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirror.lupaworld.com/Ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirror.lupaworld.com/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirror.lupaworld.com/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirror.lupaworld.com/Ubuntu/ lucid-updates universe main multiverse restricted

rootguide源,Ubuntu官方上海源,提供 Kernel,Hiweed,ubuntu

deb http://mirror.rootguide.org/Ubuntu/ lucid main universe restricted multiverse
deb-src http://mirror.rootguide.org/Ubuntu/ lucid main universe restricted multiverse
deb http://mirror.rootguide.org/Ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirror.rootguide.org/Ubuntu/ lucid-security universe main multiverse restricted
deb http://mirror.rootguide.org/Ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirror.rootguide.org/Ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirror.rootguide.org/Ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirror.rootguide.org/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirror.rootguide.org/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirror.rootguide.org/Ubuntu/ lucid-updates universe main multiverse restricted

网易开源镜像站,提供 FreeBSD,OpenBSD,archlinux,centos,cygwin,debian,Fedora,gentoo,kernel,openSUSE,slackware,Ubuntu

deb http://mirrors.163.com/Ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.163.com/Ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.163.com/Ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/Ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.163.com/Ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/Ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/Ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/Ubuntu/ lucid-updates universe main multiverse restricted

搜狐开源镜像站,提供 CPAN,FreeBSD,NetBSD,OpenBSD,apache,archlinux,centos,cygwin,dag,debian,Fedora,gentoo,kernel,lfs,mysql,nginx,openSUSE,php,rpmfusion,slackware,Ubuntu

deb http://mirrors.shlug.org/Ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.shlug.org/Ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.shlug.org/Ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.shlug.org/Ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.shlug.org/Ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.shlug.org/Ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.shlug.org/Ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.shlug.org/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/Ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/Ubuntu/ lucid-updates universe main multiverse restricted

网易开源镜像站,提供 FreeBSD,OpenBSD,archlinux,centos,cygwin,debian,Fedora,gentoo,kernel,openSUSE,slackware,Ubuntu

deb http://Ubuntu.cn99.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid main universe restricted multiverse
deb http://Ubuntu.cn99.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://Ubuntu.cn99.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://Ubuntu.cn99.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://Ubuntu.cn99.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-updates universe main multiverse restricted

骨头源,提供Ubuntu,deepin

deb http://Ubuntu.srt.cn/ubuntu/ lucid main universe restricted multiverse
deb-src http://Ubuntu.srt.cn/ubuntu/ lucid main universe restricted multiverse
deb http://Ubuntu.srt.cn/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://Ubuntu.srt.cn/ubuntu/ lucid-security universe main multiverse restricted
deb http://Ubuntu.srt.cn/ubuntu/ lucid-updates universe main multiverse restricted
deb http://Ubuntu.srt.cn/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://Ubuntu.srt.cn/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://Ubuntu.srt.cn/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://Ubuntu.srt.cn/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://Ubuntu.srt.cn/ubuntu/ lucid-updates universe main multiverse restricted

中国科技大学源

deb http://debian.ustc.edu.cn/ubuntu/ lucid main restricted
deb-src http://debian.ustc.edu.cn/ubuntu/ lucid main restricted
deb http://debian.ustc.edu.cn/ubuntu/ lucid-updates main restricted
deb-src http://debian.ustc.edu.cn/ubuntu/ lucid-updates main restricted
deb http://debian.ustc.edu.cn/ubuntu/ lucid universe
deb-src http://debian.ustc.edu.cn/ubuntu/ lucid universe
deb http://debian.ustc.edu.cn/ubuntu/ lucid-updates universe
deb-src http://debian.ustc.edu.cn/ubuntu/ lucid-updates universe
deb http://debian.ustc.edu.cn/ubuntu/ lucid multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ lucid multiverse
deb http://debian.ustc.edu.cn/ubuntu/ lucid-updates multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ lucid-updates multiverse
deb http://debian.ustc.edu.cn/ubuntu lucid-security main restricted
deb-src http://debian.ustc.edu.cn/ubuntu lucid-security main restricted
deb http://debian.ustc.edu.cn/ubuntu lucid-security universe
deb-src http://debian.ustc.edu.cn/ubuntu lucid-security universe
deb http://debian.ustc.edu.cn/ubuntu lucid-security multiverse
deb-src http://debian.ustc.edu.cn/ubuntu lucid-security multiverse

很多笔记本用户都有自己的鼠标,而不是使用笔记本上的触摸板,但是打字的时候常常不小心触碰到触摸板就会让鼠标指针丢失焦点,非常的不方便
解决方法有很多,比如有些HP的笔记本,在触摸板边上就有一个控制触摸板开关的按钮,有的笔记本也可以通过Fn某个按钮实现屏蔽触摸板。不具备上述条件的用户,我们通常依靠软件来解决
WIndows平台,有个软件是MagicPad,可以实现当插入Usb鼠标的时候自动屏蔽触摸板,而当拔除鼠标,则启动触摸板,很方便,这里不多说了。
Ubuntu8.10之前,我们常常使用的方法是修改/etc/X11/xorg.conf,找到其中的

Section "InputDevice"
Identifier    "Synaptics Touchpad"
Driver        "synaptics"
Option        "SendCoreEvents"    "true"
Option        "Device"    "/dev/psaux"
Option        "Protocol"    "auto-dev"
Option        "HorizEdgeScroll"    "0"
EndSection

在其中添加一段    Option      "SHMConfig"     "on" ,即:

Section "InputDevice"
Identifier    "Synaptics Touchpad"
Driver        "synaptics"
Option        "SendCoreEvents"    "true"
Option        "Device"    "/dev/psaux"
Option        "Protocol"    "auto-dev"
Option        "HorizEdgeScroll"    "0"
Option      "SHMConfig"     "on"
EndSection

保存并重启X,然后在shell中输入:
synclient touchpadoff=1
则屏蔽触摸板,要想开启触摸板,把前面的1改成0即可。可以把"synclient touchpadoff=1"写入到session中,让它开机自动运行。
今天把Ubuntu从8.04升级到8.10,发现触摸板又开始活动了!检查了一下上面提到的xorg.conf,发现很多代码被自动注释掉了:
# commented out by update-manager, HAL is now used
#Section "InputDevice"
#   Identifier    "Synaptics Touchpad"
#   Driver        "synaptics"
#   Option        "SendCoreEvents"    "true"
#   Option        "Device"    "/dev/psaux"
#   Option        "Protocol"    "auto-dev"
#   Option        "HorizEdgeScroll"    "0"
#   Option      "SHMConfig"     "on"
#EndSection
上网查了一下,发现synclient需要依靠SHMConfig,下面说一下解决方案,参考这个文章https://help.ubuntu.com/community/SynapticsTouchpad
网上没找到中文,自己尝试翻译吧:
sudo gedit /etc/hal/fdi/policy/shmconfig.fdi
然后输入:

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="input.x11_driver" string="synaptics">
<merge key="input.x11_options.SHMConfig" type="string">True</merge>
</match>
</device>
</deviceinfo>

保存,重启,这时SHMConfig已经打开了,现在synclinet就可以用上面的办法使用了。

安装环境 Ubuntu Server 8.10
默认安装了 apache2
安装的nagios版本 3.0.6
参考文档 http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html

安装相关软件

apt-get install gcc
apt-get install build-essential
apt-get install libgd2-xpm-dev

(如果是在ubuntu 6.1的版本则使用apt-get install libgd2-dev)

在root权限下 创建nagios所需相关帐号和组

useradd -m nagios
passwd nagios

ubuntu Desktop版本默认添加nagios组,无需手动添加

groupadd nagios
usermod -G nagios nagios

添加nagcmd的组用于将nagios和apache的用户在同一个组里面,允许通过web接口的命令提交

groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd www-data

下载nagios和nagios插件

wget http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.6.tar.gz
wget http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz

编译安装nagios

tar xzvf nagios-3.0.6.tar.gz
cd nagios-3.0.6

允许配置脚本

./configure --with-command-group=nagcmd

编译nagios代码

make all

安装编译文件,初始化脚本和示例配置文件以及配置

make install
make install-init
make install-config
make install-commandmode

配置nagios的配置文件,将正确的邮件帐号输入

vi /usr/local/nagios/etc/objects/contacts.cfg

配置WEB接口

安装NagiosWEB配置文件到apache配置文件目录中

make install-webconf

创建nagiosadmin账户用于登录nagios的管理网页

htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

输入这个帐号的密码
重新启动apache

service apache2 reload

编译安装Nagios插件

tar zxvf nagios-plugins-1.4.11.tar.gz
cd nagios-plugins-1.4.11
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install

启动Nagios

配置开机启动nagios

ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios

验证nagiso配置实例

/usr/local/nagiso/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

如果没有出现任何问题

/etc/init.d/nagios start

web登录nagios管理界面

http://localhost/nagios/

用nagiosadmin和它的密码登录

其他配置

如果需要通过接受nagios的email报警,需要安装mailx包

apt-get install mailx

修改/usr/local/nagios/etc/objects/commands.cfg 修改/bin/mail => /usr/bin/mail
配置完后,重新启动nagios服务

/etc/init.d/nagios restart

批量导出联系人为vfs

outlook中,工具->宏,创建一个新的宏,名称任意,输入:

Sub ExportVcards()
Dim MyContacts As Outlook.MAPIFolder
Dim ContItem As Outlook.ContactItem
Dim FileName As String
Set MyContacts = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderContacts)
'取得默认的联系人文件夹
For Each ContItem In MyContacts.Items '遍历所有联系人
FileName = "c:\Contacts\" & ContItem.FileAs & ".vcf"
ContItem.SaveAs FileName, olVCard
'导出vfs文件
Next
End Sub

注意上面的蓝色部分为输出到的目的文件夹

然后运行,如果失败,请检查c:\Contacts文件夹是否存在(不存在则要先创建),以及outlook中,工具->安全性,是否有权限运行宏。

联系人导出到c:\Contacts后(注意导出后先不要编辑这些文件),把整个文件夹复制到Linux中的一个文件夹。用终端进入,输入:

$cat *.vcf > all.vcf
$gedit all.vcf

另存一下文件,另存的时候把编码改成utf-8就可以了,然后在Evolution中导入另存的文件,我的通讯录好像没有什么信息丢失

© 2010 阿单工作室 Suffusion WordPress theme by Sayontan Sinha