Oal Dam Ster avatar

At least something is working

oaldamster

Published: 13 Mar 2021 › Updated: 13 Mar 2021At least something is working

At least something is working

Somehow the Termux:Boot app cannot get Termux to start when the Android 10 TV Mediabox boots. Now that is a bit of a bummer. So I still have to do some manual stuff when the box crashes or locks down. Maybe there is some workaround. In the meantime I managed to get some trash files to be removed. That way the display will be on 1 every time. Only local for now and XFCE4 works nicely.

Anyway, the Bash Script could have been simplified probably, especially the cleanup one. But that is for another time. Really dislike the X96 Mate Plus, just like the Android TV OS. Hive dApps cannot be installed, which is a pity. For now I'm done with that thing, time to relax. And I'm storing the code on the Hive blockchain, in case I have to reset the thing to its defaults settings. Next up is to run a small Python program, doing some HIVE stuff, for at least 24 hours.

Have a great one!

--- Added to /data/data/com.termux/files/usr/etc/bash.bashrc ---

#
# When Termux starts #
#
if [ $DISPLAY ]; then 
        # Do nothing, BASH used with Display.
        nope=0
    else
        # 
        # Keep Termux awake
            termux-wake-lock
        # Clean up VNC and ICE trash 
            ~/cleanup
        # Notify that VNC Server will be started
        echo 
        echo "VNC server will start now: " 
            vncserver 
        echo "Remote VNC client at port 590x" 
        echo
fi 

--- file ~/cleanup ---

#!/data/data/com.termux/files/usr/bin/bash
#Photo
echo
echo "Removing VNC and ICE trash files" 
echo "..." 
#
# Some handy VNC server stuff
#
# Startup some app? 
# Add it at the end of: 
# /data/data/com.termux/files/home/.vnc/xstartup 
#
# Clean up all files left behind
#
# Remove Log files 
 rm /data/data/com.termux/files/home/.vnc/localhost:*.log -f
 rm /data/data/com.termux/files/home/.vnc/localhost:*.pid -f

# Remove X files :)
 rm /data/data/com.termux/files/usr/tmp/.X11-unix/X* -f
# Remove X locked files 
 rm /data/data/com.termux/files/usr/tmp/.X*-lock -f
# Experimental - Clean ICE things as well
###
 rm /data/data/com.termux/files/usr/tmp/.ICE-unix/* -f
 rm /data/data/com.termux/files/usr/tmp/.xfsm* -f
###
echo
echo "Cleaned Up!" 
echo

Chaos and then some more chaos.
hive_side_chain.png
Artwork cc-by-sa oaldamster@oaldamster

Leave At least something is working to:

Written by

We are all equivalent and unique.

Read more #termux posts


Best Posts From Oal Dam Ster

We have not curated any of oaldamster's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Oal Dam Ster