# aging_reboot_tool **Repository Path**: kjsys/aging_reboot_tool ## Basic Information - **Project Name**: aging_reboot_tool - **Description**: Linux aging reboot tool - **Primary Language**: Shell - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-29 - **Last Updated**: 2022-09-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # aging_reboot_tool #### 介绍 Linux aging reboot tool 使用方式: 以root身份不需密码验证直接登录本机 Ubuntu $sudo apt install git 1.1 打开终端执行sudo vim /etc/pam.d/gdm-autologin 1.2 按incert键后在这行命令”auth required pam_succeed_if.so user != root quiet_success”前面加上# 1.3 按ESC后输入:x保存退出vim 1.4 在终端里执行sudo vim /etc/gdm3/custom.conf 1.5 把第7行内容改成 AutomaticLogin=root 1.6 按ESC后输入:x保存退出vim 2.1 将reboot文件夹复制到/root/桌面下 2.2 将rc.local 复制到/etc下 3.1 在reboot文件夹里打开终端, 执行 chmod +755 *.sh 执行 chmod +755 /etc/rc.local 4.1 继续在终端里执行/etc/rc.local,即可开始60秒倒数重启;执行过程中没有任何提示或shell窗口出现,重启进UOS桌面后自动倒数60秒后会再重启 Loop圈数见reboot/count.txt Kylin & UOS 1.1 打开终端执行sudo vim /etc/pam.d/lightdm-autologin 1.2 按incert键后在这行命令”auth required pam_succeed_if.so user != root quiet_success”前面加上# 1.3 按ESC后输入:x保存退出vim 1.4 在终端里执行sudo vim /etc/lightdm/lightdm.conf 1.5 按incert键后删掉下面三行命令前的# autologin-guest=false autologin-user=root autologin-user-timeout=0 1.6 按ESC后输入:x保存退出vim 1.7 重启,将以root登录UOS 2.1 将reboot文件夹复制到/root/桌面下 2.2 将rc.local 复制到/etc下 3.1 在reboot文件夹里打开终端, 执行 chmod +755 *.sh 执行 chmod +755 /etc/rc.local 4.1 继续在终端里执行/etc/rc.local,即可开始60秒倒数重启;执行过程中没有任何提示或shell窗口出现,重启进UOS桌面后自动倒数60秒后会再重启 Loop圈数见reboot/count.txt remark 如何停止reboot aging? 请在进UOS桌面后1min内双击reboot/stop.sh(选在终端中运行) 如何恢复到普通账号登录? 1.打开终端执行sudo vim /etc/pam.d/lightdm-autologin 删掉这行命令”auth required pam_succeed_if.so user != root quiet_success”前面的# 保存并退出VIM 2.打开终端里执行sudo vim /etc/lightdm/lightdm.conf 在下面三行命令前都加上# autologin-guest=false autologin-user=root autologin-user-timeout=0 保存并退出VIM