Giter Club home page Giter Club logo

odroid_go_super_setup's Introduction

odroid_go_super_setup

Instructions to boot directly into a GUI application without desktop environment

Setup OS

sudo systemctl disable emulationstation
sudo systemctl enable getty@tty1
sudo apt remove emulationstation-go2 emulators-64bit-go2 emulators-32bit-go2
  • Upgrade OS to Ubuntu 20.04
sudo do-release-upgrade
  • Install a minimal set of packages to run an X session and some admin tools
  • sudo apt install sddm openbox unclutter network-manager ip-tools
  • Edit /etc/X11/xorg.conf:
Section "Device"
        Identifier      "ODROID-GO"
        Driver          "modesetting"
        Option          "AccelMethod" "none"
        Option          "PageFlip" "off"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "ODROID-GO"
        Monitor         "Default Monitor"
EndSection

Section "Monitor"
        Identifier      "Default Monitor"
        Option          "Rotate" "left"
EndSection
  • Remove what we don't need
sudo apt remove thunderbird firefox "libreoffice-*"
  • Restrict log file sizes
journalctl --vacuum-time=2d
  • Disable WiFi power saving. Open /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and ensure powersave option is set to 3.
[connection]
wifi.powersave = 3
  • Disable screen blanking. Create /home/odroid/programs/noblank.sh as follows:
#!/bin/bash
xset dpms 0 0 0 && xset -dpms  && xset s off && xset s noblank
  • Make it executable: chmod +x /home/odroid/programs/noblank.sh.
  • To quit xscreensaver on joystick events, download joystickwake
cd /home/odroid/programs
git clone https://github.com/foresto/joystickwake.git
  • Create script to run in graphical session, called /home/odroid/my_application_xsession.sh. This script wait for a network connection and then start your application
#!/bin/bash

# wait for network to come online
until [[ $(nm-online -q) -eq 0 ]]
do
        echo "Waiting for network"
done

# start a window manager so that our application can run full screen
openbox&

# stop screen blanking
/home/odroid/noblank.sh&

# stop screensaver from coming up
/home/odroid/joystickwake/joystickwake&

# hide mouse cursor
unclutter -idle 2&

# run your application
/home/odroid/path/to/my_application
  • Mark the above file executable with chmod +x /home/odroid/my_application_xsession.sh.
  • Create a user defined X session with a custom my_application.desktop file in /usr/share/xsessions as follows, and set it up to run the above script in your session:
[Desktop Entry]
Name=My Custom Session
Comment=Run my custom GUI 
Exec=/home/odroid/my_application_xsession.sh
TryExec=
Icon=
Type=Application
  • Add /etc/sddm.conf
[Autologin]
Session=my_application.desktop
User=odroid

References

odroid_go_super_setup's People

Contributors

cvilas avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.