ubuntu下开机启动mentohust
来源:岁月联盟
时间:2012-05-02
ubuntu下开机启动mentohust 安装chkconfig sudo apt-get install chkconfig www.2cto.com 编写脚本:login.sh #!/bin/bash sudo mentohust <<"123456" (密码) 使用root 权限保存到/etc/init.d中 并且chmod +x login.sh 将启动文件添加到开机启动项里面 www.2cto.com sudo chkconfig -a login.sh 若出现无法找到insserv文件的问题 则:sudo ln -s /usr/lib/insserv/insserv /sbin/insserv 再执行sudo chkconfig -a login.sh 再chkconfig查看 login.sh 是否显示on的状态或者是2345 若是,重启成功自动联网 作者 wanbo
下一篇:VIM保存语法着色设置