QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 625|回复: 7

不想开新贴的,实在是找不到,怎么添加自动启动程序??

[复制链接]
发表于 2004-11-13 02:01:39 | 显示全部楼层 |阅读模式
怎么添加自动启动程序??
按照WINDOWS下面的思维来说,应该很简单的,但是我就是不知道.
发表于 2004-11-13 02:17:42 | 显示全部楼层
/etc/rc.d/rc.local
如果有这文件的话,直接在这文件的末尾加命令就行了。
回复

使用道具 举报

 楼主| 发表于 2004-11-13 02:57:39 | 显示全部楼层
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local


只有这些而已
没有别的说明了
不明白.
回复

使用道具 举报

发表于 2004-11-13 03:11:04 | 显示全部楼层
比如你想开机自己运行mount,则在文件加上命令,像这一样:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
mount -o iocharset=cp936 /dev/hda1 /mnt/c



这样就可以自动挂载了。
回复

使用道具 举报

发表于 2004-11-13 12:36:56 | 显示全部楼层
哈哈,多多学习,宝宝也试试~~
回复

使用道具 举报

 楼主| 发表于 2004-11-14 02:18:35 | 显示全部楼层
我不是想用它来挂载分区的
是启动那个输入法的,输入法的名字忘了……
就是很象紫光的那个
回复

使用道具 举报

发表于 2004-11-14 03:16:00 | 显示全部楼层

想起来了,在debian/gentoo版里有教启动系统时启动输入法的,去找找linky_fan版主吧,他很好心,而且知识非常丰富,发个信给他就知道了。
我只记得是修改.bashXXXXX的文件了。   
回复

使用道具 举报

 楼主| 发表于 2004-11-14 07:02:19 | 显示全部楼层
谢谢啦
马上去找找看
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-27 12:10 , Processed in 0.046019 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表