通过rc.local让fcitx自启动

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填写您的邮件地址,订阅我们的精彩内容:

相关日志

回复 (0)

› 尚无评论。

发表评论 修改评论取消编辑

允许使用的标签 - 您可以在评论中使用如下的 HTML 标签以及属性。

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

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

引用通告 (0)

› 尚无引用通告。

开灯