Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:tricks [2019-07-13 03:04] – created Odd Stråbø | linux:tricks [2020-05-08 22:47] (current) – [PVC] Odd Stråbø | ||
---|---|---|---|
Line 6: | Line 6: | ||
xhost +SI: | xhost +SI: | ||
sudo su - test -c " | sudo su - test -c " | ||
+ | </ | ||
+ | |||
+ | ====== List OpenWRT/ | ||
+ | Assumes there has been no package updates since system install time, only new packages added. | ||
+ | <code bash> | ||
+ | function opkg_list_user_installed() { | ||
+ | TS=$(opkg status kernel | grep " | ||
+ | |||
+ | for pkg in $(opkg list-installed | cut -d ' ' -f 1); do | ||
+ | ST=$(opkg status $pkg) | ||
+ | if [ ! $(echo " | ||
+ | if echo " | ||
+ | echo $pkg | ||
+ | fi | ||
+ | fi | ||
+ | done | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ====== OpenWRT Update all packages ====== | ||
+ | <code bash> | ||
+ | opkg update | ||
+ | opkg upgrade $(opkg list-upgradable | cut -d' ' -f0) | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== PVC ====== | ||
+ | <code bash> | ||
+ | $ pvc vm flush-locks Jellyfin | ||
+ | |||
+ | $ sudo rbd list vms | ||
+ | |||
+ | $ sudo rbd lock list vms/ | ||
+ | There is 1 exclusive lock on this image. | ||
+ | Locker | ||
+ | client.80789691 auto 140104987332272 10.0.0.1: | ||
+ | | ||
+ | $ sudo rbd lock remove vms/ | ||
</ | </ |