OneDrive for Linux
- Install with github.com/abraunegg/onedrive and github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md
- Setting Sharepoint sync up with Linux github.com/abraunegg/onedrive/blob/master/docs/advanced-usage.md
A niche technical blog ...NSLU2, Linux, Debian, Backup ...
Works on generic Ubuntu 20.04.
Open a terminal and type xinput for a list of devices. Then xinput disable <id>
the ELANxx device.
$ xinput disable 15
Swipe gently on the screen and then reenable touchscreen
$ xinput enable 15
Repeat if necessary.
[post #47 on https://bugs.launchpad.net/ubuntu/+source/rapidsvn/+bug/402892]
To add a user to Linux
$ sudo adduser username
To list users in Linux
$ less /etc/passwd
To serch for users/a user
$ more /etc/passwd | grep username
To list the members of a group in Linux
$ getent group groupname
To add a user to a group in Linux
$ sudo usermod -aG group usernamename
(Allente / Canal Digital)
To reset the Oneplace Android Satelite box do the following:
$ dd if=/dev/sdb of=/dev/sdc bs=1M
$ kill -USR1 8789Find the process ID by running the command (and replace 8789 acordingly):
$ pgrep -l '^dd$' 8789 dd $
gksudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd
#or the way you would normally do when creating a file as superuser
#!/bin/sh
#inspired by http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19
#...and http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug
# tidied by tqzzaa :)
VERSION=1.1
DEV_LIST=/tmp/usb-dev-list
DRIVERS_DIR=/sys/bus/pci/drivers
DRIVERS="ehci xhci" # ehci_hcd, xhci_hcd
HEX="[[:xdigit:]]"
MAX_BIND_ATTEMPTS=2
BIND_WAIT=0.1
unbindDev() {
echo -n > $DEV_LIST 2>/dev/null
for driver in $DRIVERS; do
DDIR=$DRIVERS_DIR/${driver}_hcd
for dev in `ls $DDIR 2>/dev/null | egrep "^$HEX+:$HEX+:$HEX"`; do
echo -n "$dev" > $DDIR/unbind
echo "$driver $dev" >> $DEV_LIST
done
done
}
bindDev() {
if [ -s $DEV_LIST ]; then
while read driver dev; do
DDIR=$DRIVERS_DIR/${driver}_hcd
while [ $((MAX_BIND_ATTEMPTS)) -gt 0 ]; do
echo -n "$dev" > $DDIR/bind
if [ ! -L "$DDIR/$dev" ]; then
sleep $BIND_WAIT
else
break
fi
MAX_BIND_ATTEMPTS=$((MAX_BIND_ATTEMPTS-1))
done
done < $DEV_LIST
fi
rm $DEV_LIST 2>/dev/null
}
case "$1" in
hibernate|suspend) unbindDev;;
resume|thaw) bindDev;;
esac
sudo chmod 755 /etc/pm/sleep.d/20_custom-ehci_hcd