Last active
September 7, 2023 12:39
-
-
Save kuanyui/2972b15639e78940cd1349844ca0e4fc to your computer and use it in GitHub Desktop.
Ubuntu + Auto Login + Openbox + Screen Resolution +Autostart GUI application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.xprofile | |
# Screen Resolution | |
xrandr -s 1280x720 | |
# Disable Screensavers and Energy Management | |
# Use `xset q` to see if it succeded. See ~/.xsession-errors to check errors when startup. | |
# ... Donno why Ubuntu work but Lubuntu doesn't... | |
xset dpms 0 0 0 && xset s noblank && xset s off | |
## Dirty workaround, but it works. | |
(sleep 10 && xset s off) & | |
(sleep 10 && xset s noblank) & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $ mkdir -p /etc/X11/xorg.conf.d/ | |
# /etc/X11/xorg.conf.d/10-monitor.conf | |
# (Fucking useless) | |
# https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling | |
Section "Extensions" | |
Option "DPMS" "Disable" | |
EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# disable “System Program Problem Detected” Messages | |
# /etc/default/apport | |
# set this to 0 to disable apport, or to 1 to enable it | |
# you can temporarily override this with | |
# sudo service apport start force_start=1 | |
enabled=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (LightDM) Auto Login =============== | |
# /etc/lightdm/lightdm.conf | |
[SeatDefaults] | |
autologin-user=YOUR_USER_NAME | |
autologin-user-timeout=0 | |
user-session=openbox | |
# disable the fucking screen saver | |
# https://www.geeks3d.com/hacklab/20160108/how-to-disable-the-blank-screen-on-raspberry-pi-raspbian/ | |
xserver-command=X -s 0 -dpms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Auto start GUI application =========== | |
# ~/.config/autostart/ui.desktop | |
[Desktop Entry] | |
Type=Application | |
Name=Embedded UI | |
Comment=UI for Embedded Touch Screen | |
Exec=sh -c "~/embeddedui-linux-x64/embeddedui" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment