Difference between revisions of "Template:UbuntuFocalDesktop-Common/zh"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
Line 8: Line 8:
 
&nbsp;&nbsp;&nbsp;&nbsp;用户名: root<br/>
 
&nbsp;&nbsp;&nbsp;&nbsp;用户名: root<br/>
 
&nbsp;&nbsp;&nbsp;&nbsp;密码: fa<br/>
 
&nbsp;&nbsp;&nbsp;&nbsp;密码: fa<br/>
 +
===关闭自动休眠和屏幕保护===
 +
<syntaxhighlight lang="bash">
 +
sed -i 's/enableIdlenessWatcher=true/enableIdlenessWatcher=false/g' .config/lxqt/lxqt-powermanagement.conf
 +
echo "mode:          off" > ~/.xscreensaver
 +
sudo reboot
 +
</syntaxhighlight>
 +
===设置自动登录===
 +
创建目录与文件
 +
<syntaxhighlight lang="bash">
 +
sudo mkdir /etc/sddm.conf.d
 +
sudo vim /etc/sddm.conf.d/autologin
 +
</syntaxhighlight>
 +
autologin文件内容如下:
 +
<syntaxhighlight lang="bash">
 +
[Autologin]
 +
User=pi
 +
Session=lxqt.desktop
 +
Relogin=false
 +
</syntaxhighlight>
 +
重启。

Revision as of 06:11, 19 January 2024

1 Account & Password

2 帐户与密码

普通用户:
    用户名: pi
    密码: pi

Root用户:
    用户名: root
    密码: fa

3 关闭自动休眠和屏幕保护

sed -i 's/enableIdlenessWatcher=true/enableIdlenessWatcher=false/g' .config/lxqt/lxqt-powermanagement.conf
echo "mode:           off" > ~/.xscreensaver
sudo reboot

4 设置自动登录

创建目录与文件

sudo mkdir /etc/sddm.conf.d
sudo vim /etc/sddm.conf.d/autologin

autologin文件内容如下:

[Autologin]
User=pi
Session=lxqt.desktop
Relogin=false

重启。