How to Configure Debian for autobooting

我怕爱的太早我们不能终老 提交于 2020-04-04 05:58:48
 
Summary:
This article explain how to configure Debian for autobooting
 
Steps:
 
1: pls write a program named 'autologin.c',the content of it is as below.
 
autologin.c --> autologin
 
Code
/* autologin.c */
#include
<stdio.h>
int main() 
{
    execlp( 
"login""login""-f""root"0);
}
/* end of autologin */
 
 
2: compile autologin.c
Code
[root@Embedded001]#gcc -o3 -o autologin autologin.c
 
3: copy the binary file 'autologin' to the directory '/sbin'
 
Code
cp autologin /sbin/
 
4: edit the initializal file '/etc/inittab', change the line like this:
 
Code
   1:2345:respawn:/sbin/getty --/sbin/autologin 38400 tty1
 
5: reboot your system and see the result.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!