This is an old revision of the document!
Table of Contents
Run GUI application as a different user
Run kodi as test
xhost +SI:localuser:test sudo su - test -c "DISPLAY=$DISPLAY kodi"
List OpenWRT/LEDE (OPKG) user-installed packages
Assumes there has been no package updates since system install time, only new packages added.
function opkg_list_user_installed() { TS=$(opkg status kernel | grep "Installed-Time:" | grep -oE '[0-9]+') for pkg in $(opkg list-installed | cut -d ' ' -f 1); do ST=$(opkg status $pkg) if [ ! $(echo "$ST" | grep 'Installed-Time:' | grep -oE '[0-9]+') -eq $TS ]; then if echo "$ST" | grep -q '[S]tatus:.*user'; then echo $pkg fi fi done }
OpenWRT Update all packages
opkg update opkg upgrade $(opkg list-upgradable | cut -d' ' -f0)