<?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; 操作系统</title>
	<atom:link href="http://www.fallday.org/archives/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fallday.org</link>
	<description>虚拟主机/VPS/云计算实践</description>
	<lastBuildDate>Sat, 21 Jan 2012 03:21:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CentOS构建Chroot SSH环境</title>
		<link>http://www.fallday.org/archives/708</link>
		<comments>http://www.fallday.org/archives/708#comments</comments>
		<pubDate>Sun, 27 Nov 2011 08:30:18 +0000</pubDate>
		<dc:creator>fallday</dc:creator>
				<category><![CDATA[主机管理]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.fallday.org/?p=708</guid>
		<description><![CDATA[主机和其他人共享时，可以构建Chroot SSH环境来做系统的安全隔离。下面是在CentOS中构建Chroot的SSH环境。 1. Create a directory to house your chroot jail. For example: mkdir -p /var/jail/chroot 2. To setup the chroot environment, you need to initialize the rpm database. mkdir -p /var/jail/chroot/var/lib/rpm rpm --rebuilddb --root=/var/jail/chroot 3. Install the CentOS release package: wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-release-6-0.el6.centos.5.i686.rpm (or whichever version you are using) rpm -i --root=/var/jail/chroot --nodeps centos-release-6-0.el6.centos.5.i686.rpm 4. [...]]]></description>
			<content:encoded><![CDATA[<p>主机和其他人共享时，可以构建Chroot SSH环境来做系统的安全隔离。下面是在CentOS中构建Chroot的SSH环境。</p>
<p>1. Create a directory to house your chroot jail. For example:</p>
<p><code>mkdir -p /var/jail/chroot</code></p>
<p>2. To setup the chroot environment, you need to initialize the rpm database.</p>
<p><code>mkdir -p /var/jail/chroot/var/lib/rpm</code></p>
<p><code>rpm --rebuilddb --root=/var/jail/chroot</code></p>
<p><span id="more-708"></span>3. Install the CentOS release package:</p>
<p><code>wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-release-6-0.el6.centos.5.i686.rpm </code>(or whichever version you are using)</p>
<p><code>rpm -i --root=/var/jail/chroot --nodeps centos-release-6-0.el6.centos.5.i686.rpm</code></p>
<p>4. Use YUM to install the rest of the CentOS distribution into your little virtual jail.</p>
<p><code>yum --installroot=/var/jail/chroot install -y rpm-build yum</code></p>
<p>5. Finally, when that process is finished (it will take some time), you can initiate chroot and try out the new system:</p>
<p><code>chroot /var/jail/chroot</code></p>
<p>If all goes well, you should have a relatively simple working chroot<br />
installation. Assuming you actually want to make the installation<br />
usable, you will need to add some other important file system<br />
necessities such as /proc and /dev. Follow the instructions in the above<br />
link for more help with this.</p>
<p><code>mount --bind /proc /var/tmp/chroot/proc<br />
mount --bind /dev /var/tmp/chroot/dev+</code></p>
<p><code><code>cp /etc/resolv.conf /var/tmp/chroot/resolv.conf</code></code></p>
<p><code><code><code>chroot /var/tmp/chroot /bin/bash -l</code></code></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fallday.org/archives/708/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpMyAdmin: Cannot start session without errors</title>
		<link>http://www.fallday.org/archives/705</link>
		<comments>http://www.fallday.org/archives/705#comments</comments>
		<pubDate>Sat, 26 Nov 2011 02:55:41 +0000</pubDate>
		<dc:creator>fallday</dc:creator>
				<category><![CDATA[主机管理]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://www.fallday.org/?p=705</guid>
		<description><![CDATA[今天访问phpMyAdmin时，出现下面错误。 phpMyAdmin &#8211; Error Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. 在php.ini查看session.save_path的设置，默认是/var/lib/php/session，检查该目录Apache进程的用户是否有读写权限。如果没有，需要设置相应的读写权限。 一查之下，果然不对。前两天改变了Apache的进程用户。改变之后，phpMyAdmin就可以访问了。]]></description>
			<content:encoded><![CDATA[<p>今天访问phpMyAdmin时，出现下面错误。</p>
<p>phpMyAdmin &#8211; Error</p>
<p>Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.</p>
<p>在php.ini查看session.save_path的设置，默认是/var/lib/php/session，检查该目录Apache进程的用户是否有读写权限。如果没有，需要设置相应的读写权限。</p>
<p>一查之下，果然不对。前两天改变了Apache的进程用户。改变之后，phpMyAdmin就可以访问了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fallday.org/archives/705/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 11.10中禁止guest session</title>
		<link>http://www.fallday.org/archives/662</link>
		<comments>http://www.fallday.org/archives/662#comments</comments>
		<pubDate>Sat, 12 Nov 2011 09:41:30 +0000</pubDate>
		<dc:creator>fallday</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fallday.org/?p=662</guid>
		<description><![CDATA[Ubuntu 11.10的用户登录界面中允许guest session登录，guest session登录无需密码，不保存使用过程中产生的文件。这在一些情况下很方便，但并不是所有人都希望如此。如果需要，可以禁止在登录界面中使用guest session。 编辑 /etc/lightdm/lightdm.conf [SeatDefaults] greeter-session=unity-greeter user-session=ubuntu 添加一行 allow-guest=false: [SeatDefaults] greeter-session=unity-greeter user-session=ubuntu allow-guest=false 修改完成后，需要重新启动系统。]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 11.10的用户登录界面中允许guest session登录，guest session登录无需密码，不保存使用过程中产生的文件。这在一些情况下很方便，但并不是所有人都希望如此。如果需要，可以禁止在登录界面中使用guest session。</p>
<p>编辑 /etc/lightdm/lightdm.conf</p>
<p>[SeatDefaults]<br />
greeter-session=unity-greeter<br />
user-session=ubuntu</p>
<p>添加一行 allow-guest=false:</p>
<p><span id="more-662"></span>[SeatDefaults]<br />
greeter-session=unity-greeter<br />
user-session=ubuntu<br />
allow-guest=false</p>
<p>修改完成后，需要重新启动系统。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fallday.org/archives/662/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>基于请求IP地址解析域名</title>
		<link>http://www.fallday.org/archives/652</link>
		<comments>http://www.fallday.org/archives/652#comments</comments>
		<pubDate>Thu, 11 Aug 2011 15:43:03 +0000</pubDate>
		<dc:creator>fallday</dc:creator>
				<category><![CDATA[主机管理]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[dns]]></category>

		<guid isPermaLink="false">http://www.fallday.org/?p=652</guid>
		<description><![CDATA[如果主机有多条线路连接及多个不同线路的IP，可以通过DNS根据访问者的IP返回不同线路的IP。记录一个配置示例，自己留用的，不多解释了。 1. /etc/bind/named.conf include "/etc/bind/named.conf.options"; include "/etc/bind/acl.conf"; view "CNC" { match-clients { CNC; }; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; include "/etc/bind/named.conf.zones"; }; view "WW" { match-clients { WW; }; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; include "/etc/bind/named.conf.zones.ww"; }; view "any" { match-clients { any; }; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; include "/etc/bind/named.conf.zones"; }; 2. named.conf.options options { directory "/var/cache/bind"; [...]]]></description>
			<content:encoded><![CDATA[<p>如果主机有多条线路连接及多个不同线路的IP，可以通过DNS根据访问者的IP返回不同线路的IP。记录一个配置示例，自己留用的，不多解释了。</p>
<p>1. /etc/bind/named.conf</p>
<pre>
include "/etc/bind/named.conf.options";
include "/etc/bind/acl.conf";

view "CNC" {
match-clients { CNC; };
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
include "/etc/bind/named.conf.zones";
};

<span id="more-652"></span>view "WW" {
match-clients { WW; };
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
include "/etc/bind/named.conf.zones.ww";
};

view "any" {
match-clients { any; };
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
include "/etc/bind/named.conf.zones";
};
</pre>
<p>2. named.conf.options</p>
<pre>
options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

        // forwarders {
        //      0.0.0.0;
        // };

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };

        allow-recursion { none; };
};
</pre>
<p>3. acl.conf</p>
<pre>
acl "CNC" {
202.108.0.0/16;
123.118.0.0/16;
...;
};
acl "WW" {
58.0.0.0/8;
59.0.0.0/8;
...;
};
</pre>
<p>4. named.conf.zones</p>
<pre>
zone "xxx.com" {
        type master;
        file "/etc/bind/db.xxx";
};
</pre>
<p>5. named.conf.zones.ww</p>
<pre>
zone "xxx.com" {
        type master;
        file "/etc/bind/db.xxx.ww";
};
</pre>
<p>6. db.xxx</p>
<pre>
$TTL    604800
@       IN      SOA     ns01.xxx.com. root.xxx.com. (
                              3         ; Serial
                           7200         ; Refresh
                           1800         ; Retry
                        1209600         ; Expire
                           3600 )       ; Negative Cache TTL
;
@       IN      NS      ns01.xxx.com.
@       IN      NS      ns02.xxx.com.
@       IN      MX      0 xxx.xxx.xxx.
@       IN      MX      10 xxx.xxx.xxx.

@       IN      A       xxx.xxx.xxx.xxx

ns01.xxx.com.       IN      A       xxx.xxx.xxx.xxx
ns02.xxx.com.       IN      A       xxx.xxx.xxx.xxx

www     IN      CNAME   @
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fallday.org/archives/652/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux设置VNC使用GNOME桌面</title>
		<link>http://www.fallday.org/archives/648</link>
		<comments>http://www.fallday.org/archives/648#comments</comments>
		<pubDate>Wed, 27 Jul 2011 02:32:19 +0000</pubDate>
		<dc:creator>fallday</dc:creator>
				<category><![CDATA[主机管理]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://www.fallday.org/?p=648</guid>
		<description><![CDATA[RHEL/CentOS的vncserver默认使用的twm窗口管理，如果想使用熟悉的gnome，可以编辑 .vnc目录下的xstartup文件： .... # twn &#038; exec gnome-session 当然，gnome-session必须在系统上是安装的。]]></description>
			<content:encoded><![CDATA[<p>RHEL/CentOS的vncserver默认使用的twm窗口管理，如果想使用熟悉的gnome，可以编辑 .vnc目录下的xstartup文件：</p>
<pre>
....
# twn &#038;
exec gnome-session
</pre>
<p><span id="more-648"></span>当然，gnome-session必须在系统上是安装的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fallday.org/archives/648/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manual Installation and Registration of Java Plugin for Linux</title>
		<link>http://www.fallday.org/archives/646</link>
		<comments>http://www.fallday.org/archives/646#comments</comments>
		<pubDate>Tue, 26 Jul 2011 06:34:17 +0000</pubDate>
		<dc:creator>fallday</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.fallday.org/?p=646</guid>
		<description><![CDATA[When you install the Java platform, the Java plugin file is included as part of that install. If you want to use Java within Firefox, you need to manually create a symbolic link from the plugin file in the release to one of the locations that Firefox expects. To make the plugin available to all [...]]]></description>
			<content:encoded><![CDATA[<p>When you install the Java platform, the Java plugin file is included as part of that install. If you want to use Java within Firefox, you need to manually create a symbolic link from the plugin file in the release to one of the locations that Firefox expects. To make the plugin available to all users, create the link inside of the Firefox application&#8217;s directory, in the <code>plugins</code> subdirectory. Alternatively, you can create the symbolic link in your home directory, in <code>~/.mozilla/plugins</code>. In the remainder of this document, the text, ” <em>Firefox <code>plugins</code> directory </em>“, implies either of these locations.</p>
<p>This release provides the Next-Generation Java plugin. If you have been using the classic plugin, see the <a href="http://www.oracle.com/technetwork/java/javase/manual-plugin-install-linux-136395.html#notes">Notes</a> for further information.</p>
<p><span id="more-646"></span>The plugin file for Linux is located here:</p>
<pre>
            <em>
&lt;JRE&gt;</em>/lib/i386/libnpjp2.so</pre>
<p>If you are using a 32-bit Firefox, you should use the 32-bit Java Plugin (from the lib/i386 directory). To determine which version of Firefox you are running, launch the application, and select the menu item <strong>Help -&gt; About Mozilla Firefox</strong>. At the bottom of the window is a version string line that contains either “Linux i686&#8243; (32-bit) or “Linux x86_64&#8243; (64-bit).</p>
<p>To install the Java Plugin follow these steps:</p>
<p><strong>1.</strong> <strong>Exit Firefox.</strong></p>
<p><strong>2.</strong> <strong>Uninstall any previous installations of Java Plugin.</strong></p>
<p>Only one Java Plugin can be used at a time. When you want to use a different plugin, or version of a plugin, remove the symbolic links to any other versions and create a fresh symbolic link to the new one.</p>
<p>Remove the symbolic links (or move them to another directory) to <code>javaplugin-oji.so</code> and <code>libnpjp2.so</code> from the Firefox <code>plugins</code> directory.</p>
<p><strong>3.</strong> <strong>Create a symbolic link to the Java Plugin in the Firefox <code>plugins</code> directory. </strong></p>
<blockquote><p>Create a symbolic link to the Java Plugin <code>libnpjp2.so</code> file in the Firefox <code>plugins</code> directory:</p>
<pre>    cd
              <em>
&lt;Firefox&gt;</em>/plugins
    ln -s
              <em>
&lt;JRE&gt;</em>/lib/i386/libnpjp2.so .</pre>
<p><!--For a 64-bit Plugin:</p>
<pre>
    cd <em>&lt;Firefox&gt;</em>/plugins
    ln -s <em>&lt;JRE&gt;</em>/lib/amd64/libnpjp2.so .</pre>
<p>--> </p></blockquote>
<p><strong>4.</strong> <strong>Start the Firefox browser</strong> <strong>.</strong></p>
<blockquote><p>Type <strong>about:plugins</strong> in the Location bar to confirm that the Java Plugin is loaded. You can also click the Tools menu to confirm that <strong>Java Console</strong> is there.</p></blockquote>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><img src="http://www.oracle.com/ocom/groups/public/@otn/documents/digitalasset/148611.gif" border="0" alt=" " width="1" height="4" /></td>
</tr>
</tbody>
</table>
</div>
<p><strong><a id="notes" name="notes"></a>Notes </strong></p>
<ul>
<li>The classic plugin file was located here:
<pre>
                <em>
&lt;JRE&gt;</em>/plugin/i386/javaplugin-oji.so</pre>
<p>This file should no longer be used and all symbolic links to it removed.</li>
<li>See <a href="http://download.oracle.com/javase/6/docs/technotes/guides/jweb/applet/browser_support.html">Browsers Supported by Next-Generation Java Plugin</a> for information about browser support in the new Java Plugin.</li>
<li> </li>
</ul>
<p>http://www.oracle.com/technetwork/java/javase/manual-plugin-install-linux-136395.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fallday.org/archives/646/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHEL5使用CentOS Yum资源库</title>
		<link>http://www.fallday.org/archives/644</link>
		<comments>http://www.fallday.org/archives/644#comments</comments>
		<pubDate>Fri, 08 Jul 2011 15:11:50 +0000</pubDate>
		<dc:creator>fallday</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.fallday.org/?p=644</guid>
		<description><![CDATA[因为CentOS兼容RHEL，如果需要，可以在RHEL5上使用CentOS Yum资源库。 编辑centos.repo文件，拷贝到/etc/yum.repos.d/目录即可。 [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=5.5&#038;arch=x86_64&#038;repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 protect=1 [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=5.5&#038;arch=x86_64&#038;repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 protect=1]]></description>
			<content:encoded><![CDATA[<p>因为CentOS兼容RHEL，如果需要，可以在RHEL5上使用CentOS Yum资源库。</p>
<p>编辑centos.repo文件，拷贝到/etc/yum.repos.d/目录即可。</p>
<p><span id="more-644"></span>
<pre>
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=5.5&#038;arch=x86_64&#038;repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
protect=1

[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=5.5&#038;arch=x86_64&#038;repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
protect=1
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fallday.org/archives/644/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian如何保存iptables配置</title>
		<link>http://www.fallday.org/archives/641</link>
		<comments>http://www.fallday.org/archives/641#comments</comments>
		<pubDate>Tue, 28 Jun 2011 14:47:14 +0000</pubDate>
		<dc:creator>fallday</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[网络安全]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://www.fallday.org/?p=641</guid>
		<description><![CDATA[Once you are happy, save the new rules to the master iptables file: &#160; iptables-save &#62; /etc/iptables.up.rules To make sure the iptables rules are started on a reboot we&#8217;ll create a new file: nano /etc/network/if-pre-up.d/iptables Add these lines to it: &#160; #!/bin/bash /sbin/iptables-restore &#60; /etc/iptables.up.rules The file needs to be executable so change the permissions: [...]]]></description>
			<content:encoded><![CDATA[<p>Once you are happy, save the new rules to the master iptables file:</p>
<p>&nbsp;</p>
<pre> iptables-save &gt; /etc/iptables.up.rules</pre>
<p>To make sure the iptables rules are started on a reboot we&#8217;ll create a new file:</p>
<pre> nano /etc/network/if-pre-up.d/iptables</pre>
<p><span id="more-641"></span>Add these lines to it:</p>
<p>&nbsp;</p>
<pre> #!/bin/bash
 /sbin/iptables-restore &lt; /etc/iptables.up.rules</pre>
<p>The file needs to be executable so change the permissions:</p>
<p>&nbsp;</p>
<pre> chmod +x /etc/network/if-pre-up.d/iptables

From: http://wiki.debian.org/iptables</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fallday.org/archives/641/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian的服务(service)管理</title>
		<link>http://www.fallday.org/archives/639</link>
		<comments>http://www.fallday.org/archives/639#comments</comments>
		<pubDate>Tue, 28 Jun 2011 14:42:31 +0000</pubDate>
		<dc:creator>fallday</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://www.fallday.org/?p=639</guid>
		<description><![CDATA[相比较RH系列的ntsysv，Debian也有个类似的服务管理软件rcconf. 这是个很简单的管理软件,通过文本窗口管理. 想使用他同样需要下载安装 apt-get install rcconf 然后在shell下输入rcconf就可以了 当然,我只是想把Debian改造成一个web服务或者firewall服务.我也不想安装其他很少会用到的软件.就不要安rcconf这个套件了 .直接用Debian自带的update-rc.d也是个不错的选择.缺点就是直观性太差,界面不亲和. 以例子来说明添加服务在系统启动的时候自动跟随运行级别启动 编辑脚本于/etc/init.d 并赋予可执行权限 ‘S’:代表随系统启动 ‘K’代表随系统停止 例如在rc2.d中添加随系统启动服务 在/init.d中建立shellname脚本,脚本内写入你欲完成的工作. 输入命令: /usr/sbin/update-rc.d shellname start 20 2 。 stop 17 0 。 注意: shellname:代表你的脚本名称 start:代表随启动启动. 20:代表启动时编号,数字按大小先后启动. 2:代表运行级别,debian默认运行接别是2. 。:结束,在start 20 2 后面有个”。”表示设置随机启动结束,同样在stop的最后面也会有一个,必须填写! stop:随系统启动而停止的服务. 也可以用缺省的配置 例在rc0.d建立k17 shellname 到 /init.d/shellname的停止服务 update-rc.d shellname defaults 删除启动服务 /usr/sbin/update-rc.d -f shellname remove 本文来自CSDN博客：http://blog.csdn.net/andyhooo/archive/2010/09/12/5879875.aspx]]></description>
			<content:encoded><![CDATA[<p>相比较RH系列的ntsysv，Debian也有个类似的服务管理软件rcconf. 这是个很简单的管理软件,通过文本窗口管理.</p>
<p>想使用他同样需要下载安装</p>
<p>apt-get install rcconf</p>
<p><span id="more-639"></span>然后在shell下输入rcconf就可以了</p>
<p>当然,我只是想把Debian改造成一个web服务或者firewall服务.我也不想安装其他很少会用到的软件.就不要安rcconf这个套件了 .直接用Debian自带的update-rc.d也是个不错的选择.缺点就是直观性太差,界面不亲和.</p>
<p>以例子来说明添加服务在系统启动的时候自动跟随运行级别启动</p>
<p>编辑脚本于/etc/init.d 并赋予可执行权限</p>
<p>‘S’:代表随系统启动 ‘K’代表随系统停止</p>
<p>例如在rc2.d中添加随系统启动服务</p>
<p>在/init.d中建立shellname脚本,脚本内写入你欲完成的工作.</p>
<p>输入命令:</p>
<p>/usr/sbin/update-rc.d shellname start 20 2 。 stop 17 0 。</p>
<p>注意:</p>
<p>shellname:代表你的脚本名称<br />
start:代表随启动启动.<br />
20:代表启动时编号,数字按大小先后启动.<br />
2:代表运行级别,debian默认运行接别是2.<br />
。:结束,在start 20 2 后面有个”。”表示设置随机启动结束,同样在stop的最后面也会有一个,必须填写!<br />
stop:随系统启动而停止的服务.</p>
<p>也可以用缺省的配置</p>
<p>例在rc0.d建立k17 shellname 到 /init.d/shellname的停止服务</p>
<p>update-rc.d shellname defaults</p>
<p>删除启动服务</p>
<p>/usr/sbin/update-rc.d -f shellname remove</p>
<p>本文来自CSDN博客：http://blog.csdn.net/andyhooo/archive/2010/09/12/5879875.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fallday.org/archives/639/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS守护进程（服务）列表</title>
		<link>http://www.fallday.org/archives/636</link>
		<comments>http://www.fallday.org/archives/636#comments</comments>
		<pubDate>Tue, 12 Apr 2011 14:50:33 +0000</pubDate>
		<dc:creator>fallday</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[mac os]]></category>

		<guid isPermaLink="false">http://www.fallday.org/?p=636</guid>
		<description><![CDATA[/sbin/launchd 系统及用户进程管理器，它是内核装载成功后在OS环境下启动的第一个进程，是Mac OS最重要的进程之一。你无法禁用它。 /usr/libexec/kextd 内核扩展服务，响应内核或用户进程的请求，比如装载或卸载内核扩展或提供内核扩展信息给它们。这是Mac的关键守护进程，请不要去禁用它。 /usr/sbin/notifyd 消息服务，这是Mac OS消息系统的组成部分之一。我们知道，操作系统的很多组件需要依赖异步消息来通信，这个服务能保证它们正常工作。请不要去禁用它。 /usr/sbin/diskarbitrationd 磁盘仲裁服务，作用是为磁盘卷或其他存储部件进行挂载，取消挂载或弹出（比如光驱和dmg）。最常见的就是USB移动硬盘，MP3，IPHONE，IPAD等。 它的原理是当内核发现有新硬件插入时，内核先识别该硬件，如果能识别，则为硬件装载驱动，并通知 diskarbitrationd 挂载它。取消挂载同理。 如果这个服务被禁用，所有即插即用存储设备都会出现异常。建议不要禁用它。 /usr/libexec/configd 保存计算机和系统环境的动态配置信息。为需要用到这些信息的进程提供变更通知。比如网络服务（tcp/ip或wins更新等）。 如果这个服务被禁用，网络和一些需要动态配置信息的组件将会出现异常。建议不要禁用它。 /usr/sbin/syslogd 系统日志服务，用于记录系统或软件的消息日志，是系统或软件崩溃时查错的关键途径。某些工具也可能依赖与日志在提供服务。 如果这个服务被禁用，所有的消息日志都将停止记录，并可能导致某些软件工作异常。建议不要禁用它。 /usr/sbin/DirectoryService 目录信息收集中心，它会收集各种目录的用户，用户组，权限和路径信息，并在应用程序需要时，反馈给它们。目录的介质主要是指本地磁盘，LDAP，Netinfo, Active Directory, NIS, Bonjour/Rendesvous/, AppleTalk, Samba FS(SMB)等。 如果这个服务被禁用，可能会导致部分程序性能降低或出现异常。建议不要禁用它。 /usr/sbin/distnoted 提供分布式的消息服务，类似notifyd，但它主要是处理系统外部的一些消息，比如 itune与iphone, ipad, itouch的连接及消息传递功能。 如果你有使用Apple的即插即用设备，为了保证其功能正常使用，建议你不要禁用它。如果没有apple设备，保险期间，还是留着它吧。 /usr/sbin/ntpd 时间同步服务，负责与time.apple.com同步操作系统的时间。这个是基础功能，请不要禁用它。 /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/Resources/usbmuxd USB多路传输服务，为iphone和itouch提供原生的传输支持（无需越狱）。如果你没有iphone或ipod touch，可以禁用这个服务。 /usr/sbin/securityd Mac OS安全验证模块，它保存了系统的安全信息，可以仲裁一些加密操作，为软件提供安全验证。系统安全是大事，请不要禁用它。 /usr/sbin/mDNSResponder DNS多播响应器，与DNS服务相关，附属作用是为你搜索局域网里的共享设备。包括mac, windows, ichat, ipad等等，并且会显示在finder的右侧菜单中。 请不要禁用它，否则你的DNS将失效，并导致无法访问网络。 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow Mac OS用户登陆进程，展示登陆或注销界面，验证用户密码输入，启动Finder, Dock, 和一切需要启动时启动的第三方应用程序都是这个进程的责任。 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>/sbin/launchd<br />
</strong>系统及用户进程管理器，它是内核装载成功后在OS环境下启动的第一个进程，是Mac OS最重要的进程之一。你无法禁用它。</p>
<p><strong>/usr/libexec/kextd</strong><br />
内核扩展服务，响应内核或用户进程的请求，比如装载或卸载内核扩展或提供内核扩展信息给它们。这是Mac的关键守护进程，请不要去禁用它。</p>
<p><strong><span id="more-636"></span>/usr/sbin/notifyd</strong><br />
消息服务，这是Mac OS消息系统的组成部分之一。我们知道，操作系统的很多组件需要依赖异步消息来通信，这个服务能保证它们正常工作。请不要去禁用它。</p>
<p><strong>/usr/sbin/diskarbitrationd</strong><br />
磁盘仲裁服务，作用是为磁盘卷或其他存储部件进行挂载，取消挂载或弹出（比如光驱和dmg）。最常见的就是USB移动硬盘，MP3，IPHONE，IPAD等。<br />
它的原理是当内核发现有新硬件插入时，内核先识别该硬件，如果能识别，则为硬件装载驱动，并通知 diskarbitrationd 挂载它。取消挂载同理。<br />
如果这个服务被禁用，所有即插即用存储设备都会出现异常。建议不要禁用它。</p>
<p><strong>/usr/libexec/configd</strong><br />
保存计算机和系统环境的动态配置信息。为需要用到这些信息的进程提供变更通知。比如网络服务（tcp/ip或wins更新等）。<br />
如果这个服务被禁用，网络和一些需要动态配置信息的组件将会出现异常。建议不要禁用它。</p>
<p><strong>/usr/sbin/syslogd</strong><br />
系统日志服务，用于记录系统或软件的消息日志，是系统或软件崩溃时查错的关键途径。某些工具也可能依赖与日志在提供服务。<br />
如果这个服务被禁用，所有的消息日志都将停止记录，并可能导致某些软件工作异常。建议不要禁用它。</p>
<p><strong>/usr/sbin/DirectoryService</strong><br />
目录信息收集中心，它会收集各种目录的用户，用户组，权限和路径信息，并在应用程序需要时，反馈给它们。目录的介质主要是指本地磁盘，LDAP，Netinfo, Active Directory, NIS, Bonjour/Rendesvous/, AppleTalk, Samba FS(SMB)等。<br />
如果这个服务被禁用，可能会导致部分程序性能降低或出现异常。建议不要禁用它。</p>
<p><strong>/usr/sbin/distnoted</strong><br />
提供分布式的消息服务，类似notifyd，但它主要是处理系统外部的一些消息，比如 itune与iphone, ipad, itouch的连接及消息传递功能。<br />
如果你有使用Apple的即插即用设备，为了保证其功能正常使用，建议你不要禁用它。如果没有apple设备，保险期间，还是留着它吧。</p>
<p><strong>/usr/sbin/ntpd</strong><br />
时间同步服务，负责与time.apple.com同步操作系统的时间。这个是基础功能，请不要禁用它。</p>
<p><strong>/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/Resources/usbmuxd</strong><br />
USB多路传输服务，为iphone和itouch提供原生的传输支持（无需越狱）。如果你没有iphone或ipod touch，<strong>可以禁用这个服务</strong>。</p>
<p><strong>/usr/sbin/securityd</strong><br />
Mac OS安全验证模块，它保存了系统的安全信息，可以仲裁一些加密操作，为软件提供安全验证。系统安全是大事，请不要禁用它。</p>
<p><strong>/usr/sbin/mDNSResponder</strong><br />
DNS多播响应器，与DNS服务相关，附属作用是为你搜索局域网里的共享设备。包括mac, windows, ichat, ipad等等，并且会显示在finder的右侧菜单中。<br />
请不要禁用它，否则你的DNS将失效，并导致无法访问网络。</p>
<p><strong>/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow</strong><br />
Mac OS用户登陆进程，展示登陆或注销界面，验证用户密码输入，启动Finder, Dock, 和一切需要启动时启动的第三方应用程序都是这个进程的责任。<br />
请不要禁用它。</p>
<p><strong>/usr/sbin/KernelEventAgent</strong><br />
处理文件系统的状态。比如“您的磁盘看上去已经满了，您是否需要删除一些数据，以保证系统正常启动”或“一个服务器已经很久没有响应，您是否想需要重新连接它”等。请不要禁用它。</p>
<p><strong>/usr/libexec/hidd</strong><br />
人体学输入设备（HID）支持进程。比如键盘，鼠标，机密狗，蓝牙等。请不要禁用它。</p>
<p><strong>/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Support/fseventsd</strong><br />
文件系统事件系统，它可以广播文件的创建，删除等事件给Mac OS下的所有应用程序，届时，应用程序可以做出一些应对措施。请不要禁用它。</p>
<p><strong>/sbin/dynamic_pager</strong><br />
Mac OS下的虚拟内存。当你的物理内存不够用时，就会使用虚拟内存，有的时候，密钥等一些使用频率不高的信息也会直接从物理内存中移除并存入虚拟内存。在Unix系统（Mac）下，不论你的物理内存有多大，都不要尝试禁用虚拟内存。因为Unix的内存管理策略是尽可能多地使用内存，再大的内存都回随着时间慢慢被耗光。</p>
<p><strong>autofsd</strong><br />
自动挂载各种网络文件系统。比如NFS, SMB, AFS等。配置文件在 /etc/auto_master和/etc/auto_home，使用方式详见：<br />
<a href="http://commandlinemac.blogspot.com/2009/09/introduction-to-autofs-in-mac-os-x.html">http://commandlinemac.blogspot.com/2009/09/introduction-to-autofs-in-mac-os-x.html</a><br />
如果你不使用任何网络文件系统，<strong>可以禁用这个服务</strong>。</p>
<p><strong>/System/Library/CoreServices/coreservicesd</strong><br />
核心服务守护进程，禁用它可能导致系统停止运转或崩溃。请不要禁用它。</p>
<p><strong>/usr/sbin/coreaudiod</strong><br />
音频服务，提供声音相关的支持。请不要禁用它。</p>
<p><strong>System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/WindowServer</strong><br />
Mac OS的GUI界面系统。负责所有应用程序的窗口显示。请不要禁用它。</p>
<p><strong>/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/cvmsServ</strong><br />
OPGL服务进程，用到高级图形API的程序需要用到它。比如游戏，支持滑动或谈出特效的软件。请不要禁用它。</p>
<p><strong>/System/Library/CoreServices/Dock.app/Contents/MacOS/Dock</strong><br />
Mac OS经典的任务栏。请不要禁用它。</p>
<p><strong>/System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer</strong><br />
Mac OS的菜单栏。请不要禁用它。</p>
<p><strong>/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder</strong><br />
Mac OS的资源管理器。请不要禁用它。</p>
<p><strong>/usr/sbin/pboard</strong><br />
剪贴板支持。除非你不想用复制，黏贴。请不要禁用它。</p>
<p><strong>/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Support/fontd</strong><br />
字体服务进程。请不要禁用它。</p>
<p><strong>/usr/libexec/UserEventAgent</strong><br />
高级别的系统事件处理器。请不要禁用它。</p>
<p><strong>/System/Library/CoreServices/Menu Extras/TextInput.menu/Contents/SharedSupport/TISwitcher.app/Contents/MacOS/TISwitcher</strong><br />
输入法切换服务。除非你不想使用中文输入法，否则，请不要禁用它。</p>
<p><strong>/usr/libexec/taskgated</strong><br />
task_for_pid是用来帮助某些想控制其他进程的执行的进程实现功能的服务。taskgated会被内核呼叫，用来确认”控制“这个行为是否可以发生。它本身也有权限验证的功能。请不要禁用该服务。</p>
<p><strong>AirPortBaseStationAgent</strong><br />
这个是Apple的无线基站设备搜索服务。如果你没有apple的无线基站服务，<strong>可以禁用它</strong>。</p>
<p><strong>Spotlight</strong><br />
如果你不喜欢用spotlight，<strong>可以禁用它</strong>。详见文末给出的“Mac OS启动服务优化高级篇（launchd tuning）”里的优化方法。</p>
<p><strong>/usr/sbin/blued</strong><br />
蓝牙支持服务。如果你不想使用蓝牙，<strong>可以禁用它</strong>。</p>
<p><strong>cupsd</strong><br />
打印机支持。如果你不想用打印机，<strong>可以禁用该服务</strong>。</p>
<p><strong>SharedServices.Agent</strong><br />
Apple的MobileMe服务，如果你不使用，<strong>可以禁用该服务</strong>。</p>
<p>原文链接：<a rel="bookmark" href="http://kenwublog.com/mac-os-daemon-processes-and-optimization">http://kenwublog.com/mac-os-daemon-processes-and-optimization</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fallday.org/archives/636/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

