<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.1" -->
<rss version="0.92">
<channel>
	<title>Darling Ubuntu</title>
	<link>http://haria1988.blog.ubuntu.org.cn</link>
	<description>Ubuntu使用心得加要点记录</description>
	<lastBuildDate>Sat, 16 Jan 2010 12:48:09 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Server版Ubuntu安装桌面环境时，避免安装不必要的包的方法</title>
		<description>sudo apt-get install ubuntu-desktop --no-install-recommends </description>
		<link>http://haria1988.blog.ubuntu.org.cn/2010/01/16/server%e7%89%88ubuntu%e5%ae%89%e8%a3%85%e6%a1%8c%e9%9d%a2%e7%8e%af%e5%a2%83%e6%97%b6%ef%bc%8c%e9%81%bf%e5%85%8d%e5%ae%89%e8%a3%85%e4%b8%8d%e5%bf%85%e8%a6%81%e7%9a%84%e5%8c%85%e7%9a%84%e6%96%b9/</link>
			</item>
	<item>
		<title>将系统的软件包重新初始化成默认的状态</title>
		<description>将系统的软件包重新初始化成默认的状态。

sudo dpkg-reconfigure -phigh -a

把系统的包依赖关系重新初始化，可以用下面的命令来实现。

sudo apt-get install -f </description>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/12/04/%e5%b0%86%e7%b3%bb%e7%bb%9f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85%e9%87%8d%e6%96%b0%e5%88%9d%e5%a7%8b%e5%8c%96%e6%88%90%e9%bb%98%e8%ae%a4%e7%9a%84%e7%8a%b6%e6%80%81/</link>
			</item>
	<item>
		<title>Ubuntu9.10 AMD64 安装Flash 插件</title>
		<description>tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz

mkdir -p ~/.mozilla/plugins/

mv libflashplayer.so ~/.mozilla/plugins/
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz </description>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/11/22/ubuntu9-10-amd64-%e5%ae%89%e8%a3%85flash-%e6%8f%92%e4%bb%b6/</link>
			</item>
	<item>
		<title>RHEL下安装和配置catmail</title>
		<description>mkdir catmail

mv /opt/nfsShare/catmail.zip /opt/nfsShare/catmail

unzip catmail.zip

mv  /opt/nfsShare/catmail /var/www/

tar zxvf  ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

mv ZendOptimizer-3.3.9-linux-glibc23-i386 ZendOptimizer

mv ZendOptimizer /usr/lib/

vim /etc/php.ini

#added

zend_extension="/usr/lib/ZendOptimizer/data/5_1_x_comp/ZendOptimizer.so"

chmod 775 /var/www/catmail/choices.ini.php

chmod 777 /var/www/catmail/shared/config/

chmod 777 /var/www/catmail/storage/

chmod 777 /var/www/catmail/install/

chmod 775 /var/www/catmail/installer.php
 

mysql -uroot -ppassword

create database catmail;

/etc/init.d/httpd restart
ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz </description>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/11/15/rhel%e4%b8%8b%e5%ae%89%e8%a3%85%e5%92%8c%e9%85%8d%e7%bd%aecatmail/</link>
			</item>
	<item>
		<title>openldap 初始化配置</title>
		<description>vim /etc/openldap/slapd.conf

#the config file is at here

#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include        /etc/openldap/schema/core.schema
include        /etc/openldap/schema/cosine.schema
include        /etc/openldap/schema/inetorgperson.schema
include        /etc/openldap/schema/nis.schema
include        /etc/openldap/schema/corba.schema
include        /etc/openldap/schema/misc.schema
include        /etc/openldap/schema/openldap.schema
#include        /etc/openldap/schema/samba.schema

# Allow LDAPv2 client connections.  This is NOT the default.
allow bind_v2

# Do not enable ...</description>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/11/14/openldap-%e5%88%9d%e5%a7%8b%e5%8c%96%e9%85%8d%e7%bd%ae/</link>
			</item>
	<item>
		<title>/etc/fstab中的空格问题</title>
		<description>/etc/fstab是不认空格的，要想挂载带空格的目录，需要转义，用40即可；
PS：下面是本人挂载的记录
/dev/sda2 /home/roty/Ubuntu40One/Data	  ext4    defaults	  0	  3 </description>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/11/07/etcfstab%e4%b8%ad%e7%9a%84%e7%a9%ba%e6%a0%bc%e9%97%ae%e9%a2%98/</link>
			</item>
	<item>
		<title>在Ubuntu 9.10 Server中 配置Openssh</title>
		<description>1.安装openssh

sudo apt-get install openssh-server

2.配置openssh

sudo vim /etc/ssh/sshd_config

Port 22

PubkeyAuthentication yes

Banner /etc/issue.net

3.生成公钥，私钥

cd ~/.ssh/

ssh-keygen -t rsa

输入两次密钥中包含的密码,生成了一对密钥。

4.将公钥拷贝到客户机上

cp id_dsa.pub /opt/NFS/(/opt/NFS为服务器中的NFS位置，可在客户端中访问)

以下二步可省：

在客户端中挂载NFS

sudo mount -t nfs 192.168.1.2:/opt/NFS/ /mnt

拷贝公钥到相应目录

cp id_dsa.pub ~/.ssh/

5.拷贝公钥到服务器上，获得验证

ssh-copy-id roty@haria1988.com

roty:用户名

haria1988.com:主机名

第一次会提示

The authenticity of host 'haria1988.com (192.168.1.2)' can't be established.
RSA key fingerprint is ef:a5:08:d9:dc:92:68:e7:3f:fa:b0:95:ec:8a:7a:5c.
Are you sure you want to continue connecting (yes/no)?

输入yes，会生成一个known_hosts文件。下次就可以输入密码访问了。

6.访问

ssh 'roty@haria1988.com' </description>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/11/01/%e5%9c%a8ubuntu-9-10-server%e4%b8%ad-%e9%85%8d%e7%bd%aeopenssh/</link>
			</item>
	<item>
		<title>WinXP中增加静态IP-域名映射</title>
		<description>C:/WINDOWS/system32/drivers/etc/hosts 文件中加入

mail.haria1988.com 192.168.1.2

意思为将mail.haria1988.com解析为192.168.1.2 </description>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/10/31/winxp%e4%b8%ad%e5%a2%9e%e5%8a%a0%e9%9d%99%e6%80%81ip-%e5%9f%9f%e5%90%8d%e6%98%a0%e5%b0%84/</link>
			</item>
	<item>
		<title>修改命令行中的语言显示</title>
		<description>1. 修改/etc/default/locale

sudo vi /etc/default/locale1

修改默认的
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN:zh
为:
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"

2. sudo reboot

3. env 或者 locale 查看修改后的结果 </description>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/10/31/%e4%bf%ae%e6%94%b9%e5%91%bd%e4%bb%a4%e8%a1%8c%e4%b8%ad%e7%9a%84%e8%af%ad%e8%a8%80%e6%98%be%e7%a4%ba/</link>
			</item>
	<item>
		<title>静态域名解析配置命令</title>
		<description>
静态域名解析配置命令

host
配置静态域名解析。
host host-name ip-address
【参数说明】
host-name为域名，最大长度为20的字符串。
ip-address为IP地址，点分十进制格式。

【缺省情况】

系统静态域名解析表为空。

【命令模式】

全局配置模式

【使用指南】

域名解析有两种：动态域名解析和静态域名解析，所谓静态域名解析，即用户手工配置域名到IP地址的映射，动态域名解析，则通过域名解析服务器（DNS）来解析。

Quidway(R) 系列路由器目前只支持静态域名解析，系统最多可以维护50条映射项。

【举例】

配置域名Quidway1到IP地址129.102.0.1的映射。

Quidway(config)#host Quidway1 129.102.0.1

【相关命令】

delete-host，show host

delete-host
删除静态域名解析项。

delete-host host-name

【参数说明】

host-name为域名，最大长度为20的字符串。

【缺省情况】

系统静态域名解析表缺省为空。

【命令模式】

全局配置模式

【使用指南】

域名解析有两种：动态域名解析和静态域名解析，所谓静态域名解析，即用户手工配置域名到IP地址的映射，动态域名解析，则通过域名解析服务器（DNS）来解析。

Quidway(R) 系列路由器目前只支持静态域名解析，系统最多可以维护50条映射项。

【举例】

删除域名为Quidway1的静态域名解析项。

Quidway(config)#delete-host Quidway1

【相关命令】

host，show host

s host
显示静态域名解析表

show host

【命令模式】

特权用户模式

【使用指南】

可以根据该命令的输出信息，确认用户对静态域名解析表输出是否正确。

【举例】

Quidway#show host

Quidway1 129.102.0.1

【相关命令】

host，delete-host </description>
		<link>http://haria1988.blog.ubuntu.org.cn/2009/10/31/%e9%9d%99%e6%80%81%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e9%85%8d%e7%bd%ae%e5%91%bd%e4%bb%a4/</link>
			</item>
</channel>
</rss>
