Skip to content

通过rc.local让fcitx自启动

2010 五月 1
by 荒野无灯
1
vim /etc/rc.local

在 exit 0之前加入:

1
 /usr/local/bin/fcitx -d

如果开机后没有自动启动,可能fcitx路径有问题。可先自己 sh /etc/rc.local 看看会不会报错。还在,rc.local应该有执行权限。

关于通过rc.local启动程序:

1
runlevel

查看下当前的runlevel
比如我目前的runlevel为2,再到 /etc/rc2.d 看下 Sxxrc.local (我这里是S99rc.local) ,可看到:
实际上S99rc.local是指向/etc/init.d/rc.local的一个链接,文件内容中包括:

1
2
3
4
5
6
7
  if [ -x /etc/rc.local ]; then
                [ "$VERBOSE" != no ] && log_begin_msg "Running local boot       scripts (/etc/rc.local)"
                  /etc/rc.local
                  ES=$?
                  [ "$VERBOSE" != no ] && log_end_msg $ES
                  return $ES
         fi

这就是通过rc.local启动的原理了。

Linux 引导加载 相关技术文章:

1. Linux 引导过程内幕 。全面的讲解了 linux 系统引导过程。
2. 引导加载程序之争:了解 LILO 和 GRUB 。其给出了 LILO 详细介绍和配置方法。
3. zImage内核镜像解压过程详解 。从内核开发角度深入介绍了 zImage 内核映像。
4. Linux 内核映象文件解密 。简要介绍了 initrd 映像。
5. Ubuntu upstart 简单说明

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=3744

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS