<?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://blog.myhnet.cn/tag/%e5%bc%80%e6%9c%ba%e8%87%aa%e5%8a%a8%e5%90%af%e5%8a%a8/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.myhnet.cn</link>
	<description>秋湍泻石髓 风叶聚云根</description>
	<lastBuildDate>Fri, 20 Aug 2010 15:05:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Linux下的开机自动运行pidgin, thunderbird等图形程序</title>
		<link>http://blog.myhnet.cn/2008/11/10/how-to-auto-start-a-graphic-progream-such-as-pidgin-thunderbird-after-login-start/</link>
		<comments>http://blog.myhnet.cn/2008/11/10/how-to-auto-start-a-graphic-progream-such-as-pidgin-thunderbird-after-login-start/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 05:54:59 +0000</pubDate>
		<dc:creator>myhnet</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[810]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[开机自动运行]]></category>
		<category><![CDATA[开机自动启动]]></category>

		<guid isPermaLink="false">http://blog.myhnet.cn/2008/11/10/linux%e4%b8%8b%e7%9a%84%e5%bc%80%e6%9c%ba%e8%87%aa%e5%8a%a8%e5%90%af%e5%8a%a8pidgin-thunderbird%e7%ad%89%e5%9b%be%e5%bd%a2%e7%a8%8b%e5%ba%8f/</guid>
		<description><![CDATA[1，可以用图形方来做 依击点击： System  &#8211;   Preferences &#8211;   Sessions 然后点击： Add 在弹来的东西里面： Name可以随便填，只要你自己认得就可以了 command:填写你要运行的程序的命令，如：&#8221; /usr/bin/thunderbird&#8221; commet: 随便填写 最后点击OK就行了 2，直接用命令添加 进入： ~/.config/autostart 创建以名字加.desktop的文件，如: thunderbird.desktop 文件内容如下列形式： [Desktop Entry]Type=ApplicationEncoding=UTF-8Version=1.0Name=No NameName[en_US]=ThunderBirdComment[en_US]=ThunderBirdComment=ThunderBirdExec=\s/usr/bin/thunderbirdX-GNOME-Autostart-enabled=true 关于非图形的服务或者程序，可以看看我以前写的一篇文章（也包括CentOS）： Debian下面的开机自动运行（ubuntu下也适用）]]></description>
			<content:encoded><![CDATA[<p>1，可以用图形方来做<br />
依击点击：<br />
System  &#8211;   Preferences &#8211;   Sessions<br />
然后点击： Add<br />
在弹来的东西里面：<br />
Name可以随便填，只要你自己认得就可以了<br />
command:填写你要运行的程序的命令，如：&#8221; /usr/bin/thunderbird&#8221;<br />
commet: 随便填写</p>
<p>最后点击OK就行了</p>
<p>2，直接用命令添加</p>
<p>进入：<br />
~/.config/autostart<br />
创建以名字加.desktop的文件，如: thunderbird.desktop<br />
文件内容如下列形式：</p>
<div class="hl-surround"><div class="hl-main">[Desktop Entry]<br />Type=Application<br />Encoding=UTF-8<br />Version=1.0<br />Name=No Name<br />Name[en_US]=ThunderBird<br />Comment[en_US]=ThunderBird<br />Comment=ThunderBird<br />Exec=\s/usr/bin/thunderbird<br />X-GNOME-Autostart-enabled=true</div></div>
<p>关于非图形的服务或者程序，可以看看我以前写的一篇文章（也包括CentOS）：<br />
<a href="http://blog.myhnet.cn/2007/10/22/how-to-start-my-programs-or-services-automatically-when-ubuntu-boot-up/">Debian下面的开机自动运行（ubuntu下也适用）</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.myhnet.cn/2008/11/10/how-to-auto-start-a-graphic-progream-such-as-pidgin-thunderbird-after-login-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian下面的开机自动运行（ubuntu下也适用）</title>
		<link>http://blog.myhnet.cn/2007/10/22/how-to-start-my-programs-or-services-automatically-when-ubuntu-boot-up/</link>
		<comments>http://blog.myhnet.cn/2007/10/22/how-to-start-my-programs-or-services-automatically-when-ubuntu-boot-up/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 15:56:50 +0000</pubDate>
		<dc:creator>myhnet</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[安装配置]]></category>
		<category><![CDATA[开机自动运行]]></category>
		<category><![CDATA[开机自动启动]]></category>

		<guid isPermaLink="false">http://blog.myhnet.cn/?p=76</guid>
		<description><![CDATA[开机运行都是与/etc/init.d目录相关，自己写一个自己要运行命令的脚本，放在这个目录下，给它以执行的权限，然后运行 update-rc.d &#60;yourname&#62; defaults 命令就会将/init.d下你的;脚本连接到/etc/rc?.d各 个目录下，这就可以了。 yourname指的是你脚本的名称 附，在Redhat或者CentOS里面添加自动运行的方式： 在/etc/init.d/目录里面添加一个脚本文件，然后在脚本文件 的最上方加入如下形式的注释。 #add for chkconfig#chkconfig: 2345 70 30#description:&#60;your description&#62;#processname: &#60;yourame&#62; 然后再是你的命令。 编完以后，记得加上执行权限。 最后，使用如下命令添加你的程序 chkconfig --add &#60;yourname&#62; 注：2345是指apache的运行级别，即在2345这4种模式下都可以运行，234都是文本界面，5就是图形界面X 70是指apache的启动顺序号，如果别的程序的启动顺序号比70小，比如34，65，则需要等这些程序都启动以后，才启动apache。建议将apache的启动顺序排在mysql之后！30是指系统关闭时，apache的停止顺序号。 如果是关于图形方面的自动启动，可以参考一下我这篇文章： Linux下的开机自动运行pidgin, thunderbird等图形程序]]></description>
			<content:encoded><![CDATA[<p>开机运行都是与/etc/init.d目录相关，自己写一个自己要运行命令的脚本，放在这个目录下，给它以执行的权限，然后运行</p>
<div class="hl-surround"><div class="hl-main">update-rc.d &lt;yourname&gt; defaults</div></div>
<p>命令就会将/init.d下你的<yourname>;脚本连接到/etc/rc?.d各 个目录下，这就可以了。<br />
yourname指的是你脚本的名称</p>
<p>附，在Redhat或者CentOS里面添加自动运行的方式：<br />
在/etc/init.d/目录里面添加一个脚本文件，然后在脚本文件 的最上方加入如下形式的注释。</p>
<div class="hl-surround"><div class="hl-main">#add for chkconfig<br />#chkconfig: 2345 70 30<br />#description:&lt;your description&gt;<br />#processname: &lt;yourame&gt;</div></div>
<p>然后再是你的命令。<br />
编完以后，记得加上执行权限。<br />
最后，使用如下命令添加你的程序</p>
<div class="hl-surround"><div class="hl-main">chkconfig --add &lt;yourname&gt;</div></div>
<p><font color=red>注：2345是指apache的运行级别，即在2345这4种模式下都可以运行，234都是文本界面，5就是图形界面X<br />
70是指apache的启动顺序号，如果别的程序的启动顺序号比70小，比如34，65，则需要等这些程序都启动以后，才启动apache。建议将apache的启动顺序排在mysql之后！30是指系统关闭时，apache的停止顺序号。</font></p>
<p>如果是关于图形方面的自动启动，可以参考一下我这篇文章：<br />
<a href="http://blog.myhnet.cn/2008/11/10/how-to-auto-start-a-graphic-progream-such-as-pidgin-thunderbird-after-login-start/">Linux下的开机自动运行pidgin, thunderbird等图形程序</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.myhnet.cn/2007/10/22/how-to-start-my-programs-or-services-automatically-when-ubuntu-boot-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
