extend docs/misc_tips_troubleshooting.md

This commit is contained in:
2017-07-23 23:46:00 -07:00
parent bf1430f344
commit c7b05df1c2
4 changed files with 32 additions and 3 deletions

View File

@ -9,6 +9,22 @@ for machine in $(lxc list | grep RUNNING | awk '{print $2}') ;\
do lxc exec "${machine}" -- bash -c "cat /etc/apt/apt.conf.d/02*" ; done
```
fish shell is actually a little bit cleaner
```fish
for machine in (lxc list | grep RUNNING | awk '{print $2}') ; \
lxc exec $machine -- bash -c "cat /etc/apt/apt.conf.d/02*" ; end
```
```fish
# change all their time zones
for machine in (lxc list | grep RUNNING | awk '{print $2}') ; \
lxc exec $machine -- bash -c "timedatectl set-timezone America/Los_Angeles" ; end
# check to see if anyone is logged in before rebooting
for machine in (lxc list | grep RUNNING | awk '{print $2}') ; echo ; \
echo $machine ; lxc exec $machine -- bash -c "who" ; end
```
## Ubuntu-Mate-Welcome-Center doesn't work some for some repos
Perhaps your apt-cacher-ng proxy server isn't configured to allow