<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>肖建彬的博客 &#187; linux</title>
	<atom:link href="http://www.xiaojb.com/archives/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaojb.com</link>
	<description>奋斗无止境 爱拼才会赢</description>
	<lastBuildDate>Wed, 30 Jun 2010 09:22:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>腾讯出QQ for Linux版本了！</title>
		<link>http://www.xiaojb.com/archives/it/qq-for-linu.shtml</link>
		<comments>http://www.xiaojb.com/archives/it/qq-for-linu.shtml#comments</comments>
		<pubDate>Thu, 31 Jul 2008 03:38:55 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[腾讯]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[QQ]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/?p=648</guid>
		<description><![CDATA[绝对好消息 腾讯推出QQ for Linux版本 版本信息：QQ for Linux 1.0 Preview　　发布时间：2008-07-31 有rpm,deb,tgz包下载 下载地址http://im.qq.com/qq/linux/download.shtml]]></description>
			<content:encoded><![CDATA[<p>绝对好消息<br />
<strong>腾讯推出QQ for Linux版本</strong><br />
版本信息：QQ for Linux 1.0 Preview　　发布时间：2008-07-31</p>
<p>有rpm,deb,tgz包下载<br />
下载地址<a href="http://im.qq.com/qq/linux/download.shtml">http://im.qq.com/qq/linux/download.shtml</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/it/qq-for-linu.shtml/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>重装grub时，解决“The file /boot/grub/stage1 not read correctly”错误的方法</title>
		<link>http://www.xiaojb.com/archives/it/how-to-install-grub-in-live-cd.shtml</link>
		<comments>http://www.xiaojb.com/archives/it/how-to-install-grub-in-live-cd.shtml#comments</comments>
		<pubDate>Sun, 11 May 2008 23:36:48 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/?p=637</guid>
		<description><![CDATA[前天重装了操作系统，grub也随之被覆盖，为了恢复启动，我拿了一张ubuntu的live cd启动，进入linux后，进入命令行恢复grub。 首先要挂载原来的/分区 sudo mkdir /mnt/root sudo mount /dev/sda7 /mnt/root sudo mount -t proc none /mnt/root/proc sudo mount -o bind /dev /mnt/root/dev 如果不知道/分区的设备名称，可以使用sudo fdisk -l 查看。 使用chroot进入原来的/分区 chroot /mnt/root /bin/bash source /etc/profile 恢复grub sudo grub-install --no-floppy /dev/sda 失败，提示“The file /boot/grub/stage1 not read correctly” 从网上搜索了一下相关的文章，发现是分区有变化引起的，跟文件fstab和mtab有关。 编辑/etc/mtab发现/的分区设备不对，修改对后，重新运行 grub-install /dev/sda成功。 重启后进入grub，选择linux，结果发现找不到分区，用e编辑grub选项，将root改成正确的分区设备即可。 然后输入b命令启动。在重启前修改menu.lst的话，就不会出现这个问题了。]]></description>
			<content:encoded><![CDATA[<p>  前天重装了操作系统，grub也随之被覆盖，为了恢复启动，我拿了一张ubuntu的live cd启动，进入linux后，进入命令行恢复grub。<br />
首先要挂载原来的/分区<br />
<code><br />
sudo mkdir /mnt/root<br />
sudo mount /dev/sda7 /mnt/root<br />
sudo mount -t proc none /mnt/root/proc<br />
sudo mount -o bind /dev /mnt/root/dev<br />
</code><br />
如果不知道/分区的设备名称，可以使用sudo fdisk -l 查看。<br />
使用chroot进入原来的/分区<br />
<code><br />
chroot /mnt/root /bin/bash<br />
source /etc/profile<br />
</code><br />
恢复grub<br />
<code><br />
sudo grub-install --no-floppy /dev/sda<br />
</code><br />
失败，提示“<strong>The file /boot/grub/stage1 not read correctly</strong>”<br />
从网上搜索了一下相关的文章，发现是分区有变化引起的，跟文件fstab和mtab有关。<br />
编辑/etc/mtab发现/的分区设备不对，修改对后，重新运行<br />
grub-install /dev/sda成功。</p>
<p>重启后进入grub，选择linux，结果发现找不到分区，用e编辑grub选项，将root改成正确的分区设备即可。<br />
然后输入b命令启动。在重启前修改menu.lst的话，就不会出现这个问题了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/it/how-to-install-grub-in-live-cd.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用tmpfs文件系统加速linux服务器</title>
		<link>http://www.xiaojb.com/archives/it/tmpfs-howto.shtml</link>
		<comments>http://www.xiaojb.com/archives/it/tmpfs-howto.shtml#comments</comments>
		<pubDate>Fri, 13 Jul 2007 16:19:43 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tmpfs]]></category>
		<category><![CDATA[文件系统]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/it/tmpfs-howto.shtml</guid>
		<description><![CDATA[tmpfs是一种基于虚拟内存(VM)的文件系统，tmpfs就是虚拟磁盘(ramdisk)，tmpfs既可以使用内存，也可以使用交换分区(swap)，因为tmpfs使用虚拟内存，所以tmpfs的文件都驻留在内存，所以读写的速度非常快。 linux系统中的/dev/shm就是虚拟内存目录，我们可以使用绑定的方法，如下： mkdir /dev/shm/tmp chmod 1777 /dev/shm/tmp mount &#8211;bind /dev/shm/tmp /tmp 创建tmp目录，并且修改目录权限为1777，然后将/dev/shm/tmp绑定到/tmp。/tmp下原有的文件都不存在了。 还有另一种方法,修改/etc/fstab文件如下： none /tmp tmpfs size=64M,nodev,nosuid,noexec 0 0]]></description>
			<content:encoded><![CDATA[<p>  tmpfs是一种基于虚拟内存(VM)的文件系统，tmpfs就是虚拟磁盘(ramdisk)，tmpfs既可以使用内存，也可以使用交换分区(swap)，因为tmpfs使用虚拟内存，所以tmpfs的文件都驻留在内存，所以读写的速度非常快。<br />
  linux系统中的/dev/shm就是虚拟内存目录，我们可以使用绑定的方法，如下：<br />
<coolcode linenum="off"><br />
mkdir /dev/shm/tmp<br />
chmod 1777 /dev/shm/tmp<br />
mount &#8211;bind /dev/shm/tmp /tmp<br />
</coolcode><br />
  创建tmp目录，并且修改目录权限为1777，然后将/dev/shm/tmp绑定到/tmp。/tmp下原有的文件都不存在了。</p>
<p>还有另一种方法,修改/etc/fstab文件如下：<br />
<coolcode linenum="off"><br />
none            /tmp                    tmpfs   size=64M,nodev,nosuid,noexec        0 0<br />
</coolcode></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/it/tmpfs-howto.shtml/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Protected: Jianbin Xiao&#8217;s RESUME</title>
		<link>http://www.xiaojb.com/xjb</link>
		<comments>http://www.xiaojb.com/xjb#comments</comments>
		<pubDate>Mon, 04 Jun 2007 15:10:55 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[有一说一]]></category>
		<category><![CDATA[肖建彬]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/xjb</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://www.xiaojb.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-545">Password:<br />
<input name="post_password" id="pwbox-545" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/xjb/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>基于SSH密钥对的自动登录</title>
		<link>http://www.xiaojb.com/archives/it/ssh-login.shtml</link>
		<comments>http://www.xiaojb.com/archives/it/ssh-login.shtml#comments</comments>
		<pubDate>Thu, 24 May 2007 09:53:54 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/?p=538</guid>
		<description><![CDATA[客户机 [xiao@xiao .ssh]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/xiao/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/xiao/.ssh/id_rsa. Your public key has been saved in /home/xiao/.ssh/id_rsa.pub. The key fingerprint is: b7:90:79:46:cb:1d:3b:a5:56:2d:09:95:e4:f2:b7:4a xiao@xiao 如果不需要密码的自动登录，在这里就不需要输入任何东西。 将生成的/home/xiao/.ssh/id_rsa.pub的内容复制到远程帐户目录下，具体是 ~account/.ssh/authorized_keys，要保证authorized_keys的权限是700。 这样就可以ssh自动登录远程帐户了。]]></description>
			<content:encoded><![CDATA[<p>客户机</p>
<pre>
[xiao@xiao .ssh]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/xiao/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/xiao/.ssh/id_rsa.
Your public key has been saved in /home/xiao/.ssh/id_rsa.pub.
The key fingerprint is:
b7:90:79:46:cb:1d:3b:a5:56:2d:09:95:e4:f2:b7:4a xiao@xiao
</pre>
<p>如果不需要密码的自动登录，在这里就不需要输入任何东西。<br />
将生成的/home/xiao/.ssh/id_rsa.pub的内容复制到远程帐户目录下，具体是<br />
~account/.ssh/authorized_keys，要保证authorized_keys的权限是700。</p>
<p>这样就可以ssh自动登录远程帐户了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/it/ssh-login.shtml/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>关闭linux的SElinux不重启linux的方法</title>
		<link>http://www.xiaojb.com/archives/tips/disabled-selinux.shtml</link>
		<comments>http://www.xiaojb.com/archives/tips/disabled-selinux.shtml#comments</comments>
		<pubDate>Fri, 13 Apr 2007 04:56:06 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[SELINUX]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/tips/disabled-selinux.shtml</guid>
		<description><![CDATA[Redhat系统，修改/etc/sysconfig/selinux文件： #SELINUX=enforcing SELINUX=disabled 重启生效，如果不想重启，用命令 setenforce 0]]></description>
			<content:encoded><![CDATA[<p>Redhat系统，修改/etc/sysconfig/selinux文件：<br />
#SELINUX=enforcing<br />
SELINUX=disabled</p>
<p>重启生效，如果不想重启，用命令<br />
setenforce 0</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/tips/disabled-selinux.shtml/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>2台linux服务器建立IP隧道</title>
		<link>http://www.xiaojb.com/archives/it/ip-tunnel.shtml</link>
		<comments>http://www.xiaojb.com/archives/it/ip-tunnel.shtml#comments</comments>
		<pubDate>Tue, 03 Apr 2007 13:07:32 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[IP隧道]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/it/ip-tunnel.shtml</guid>
		<description><![CDATA[发信人: JulyClyde (七月), 信区: LinuxApp 标 题: Re: 昨天终于调通了ipip隧道了 发信站: 水木社区 (Tue Apr 3 11:43:21 2007), 站内 两台机器对连 双方分别执行 ip tunnel add 本地隧道设备 mode ipip remote 对方网卡IP ifconfig 本地隧道设备 本地隧道IP route add -host 对方隧道IP dev 本地隧道设备 就通了 ip tunnel这一句里面的remote指定的是隧道对方的IP地址，用于建立隧道。所以本机和对方必须能够实现三层连通 ifconfig是指定隧道设备的地址，也就是隧道内层IP报头的地址。其实这个设置为多少无所 谓，只要有就行了。窃以为，如果单纯做局域网互联，这里不设地址也可以 如果需要两个网络互联，需要开启net.ipv4.ip_forward功能，并且配置路由表 多年前czz在bjsing的服务器上留下的脚本还在 ip tunnel add cnbbs mode ipip local 61.167.120.130 remote 166.111.176.221 ttl 32 [...]]]></description>
			<content:encoded><![CDATA[<p>发信人: JulyClyde (七月), 信区: LinuxApp<br />
标  题: Re: 昨天终于调通了ipip隧道了<br />
发信站: 水木社区 (Tue Apr  3 11:43:21 2007), 站内</p>
<p>两台机器对连</p>
<p>双方分别执行<br />
ip tunnel add 本地隧道设备 mode ipip remote 对方网卡IP<br />
ifconfig 本地隧道设备 本地隧道IP<br />
route add -host 对方隧道IP dev 本地隧道设备</p>
<p>就通了<br />
ip tunnel这一句里面的remote指定的是隧道对方的IP地址，用于建立隧道。所以本机和对方必须能够实现三层连通<br />
ifconfig是指定隧道设备的地址，也就是隧道内层IP报头的地址。其实这个设置为多少无所<br />
谓，只要有就行了。窃以为，如果单纯做局域网互联，这里不设地址也可以</p>
<p>如果需要两个网络互联，需要开启net.ipv4.ip_forward功能，并且配置路由表</p>
<p>多年前czz在bjsing的服务器上留下的脚本还在<br />
ip tunnel add cnbbs mode ipip local 61.167.120.130 remote 166.111.176.221 ttl 32<br />
ifconfig cnbbs 192.168.0.2 pointopoint 61.167.120.131 netmask 255.255.255.255</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/it/ip-tunnel.shtml/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
