Difference between revisions of "Template:UbuntuFocalDesktop-Common"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
 
(updated by API)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
<br/>
 
<br/>
 
Root:<br/>
 
Root:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;the root user account is disabled by default, you may configure the root password through the 'sudo passwd root' command.
+
&nbsp;&nbsp;&nbsp;&nbsp;User Name: root<br/>
 +
&nbsp;&nbsp;&nbsp;&nbsp;Password: fa<br/>
 +
===Turn off auto-sleep and screen saver===
 +
<syntaxhighlight lang="bash">
 +
sed -i 's/enableIdlenessWatcher=true/enableIdlenessWatcher=false/g' .config/lxqt/lxqt-powermanagement.conf
 +
echo "mode:          off" > ~/.xscreensaver
 +
sudo reboot
 +
</syntaxhighlight>
 +
===Set up auto login===
 +
Create dir and file:
 +
<syntaxhighlight lang="bash">
 +
sudo mkdir /etc/sddm.conf.d
 +
sudo vim /etc/sddm.conf.d/autologin
 +
</syntaxhighlight>
 +
The contents of the autologin file:
 +
<syntaxhighlight lang="bash">
 +
[Autologin]
 +
User=pi
 +
Session=lxqt.desktop
 +
Relogin=false
 +
</syntaxhighlight>
 +
Reboot.
 +
===Test Video Playback===
 +
* mpv
 +
<syntaxhighlight lang="bash">
 +
mpv ~/Videos/demo.mp4
 +
</syntaxhighlight>
 +
* GStreamer Command Line
 +
<syntaxhighlight lang="bash">
 +
gst-play-1.0 ~/Videos/demo.mp4 --videosink=xvimagesink
 +
</syntaxhighlight>
 +
For more details, please search and refer to the official documentation <<rockchip_user_guide_linux_gstreamer_en.pdf>>.

Latest revision as of 07:49, 11 May 2024

1 Account & Password

Regular Account:
    User Name: pi
    Password: pi

Root:
    User Name: root
    Password: fa

2 Turn off auto-sleep and screen saver

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

3 Set up auto login

Create dir and file:

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

The contents of the autologin file:

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

Reboot.

4 Test Video Playback

  • mpv
mpv ~/Videos/demo.mp4
  • GStreamer Command Line
gst-play-1.0 ~/Videos/demo.mp4 --videosink=xvimagesink

For more details, please search and refer to the official documentation <<rockchip_user_guide_linux_gstreamer_en.pdf>>.