日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

ubuntu自动登录tty1(shell,text)配置

發(fā)布時間:2025/7/14 51 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ubuntu自动登录tty1(shell,text)配置 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1.編寫登錄腳本-autologin:

#!/bin/bash
/bin/login -f <username> #你的用戶名

將autologin文件移到到/usr/bin/下,并且用chmod +x autologin設置可執(zhí)行權限

2.修改/etc/init/tty1.conf

修改前:

# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/getty -8 38400 tty1

修改后:

# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/getty -n -l /usr/bin/autologin -8 38400 tty1

重啟系統(tǒng)后,則系統(tǒng)會默認用設置好的用戶自動登錄

?

轉載于:https://www.cnblogs.com/web424/p/7356301.html

總結

以上是生活随笔為你收集整理的ubuntu自动登录tty1(shell,text)配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。