mirror of
https://github.com/TrentSPalmer/trentdocs_website.git
synced 2024-11-23 00:01:29 -08:00
extend docs/misc_tips_troubleshooting.md
This commit is contained in:
parent
bf1430f344
commit
c7b05df1c2
@ -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
|
||||
|
@ -228,5 +228,5 @@
|
||||
|
||||
<!--
|
||||
MkDocs version : 0.16.3
|
||||
Build Date UTC : 2017-07-24 06:22:44
|
||||
Build Date UTC : 2017-07-24 06:45:41
|
||||
-->
|
||||
|
@ -170,6 +170,19 @@
|
||||
do lxc exec "${machine}" -- bash -c "cat /etc/apt/apt.conf.d/02*" ; done
|
||||
</code></pre>
|
||||
|
||||
<p>fish shell is actually a little bit cleaner</p>
|
||||
<pre><code class="fish">for machine in (lxc list | grep RUNNING | awk '{print $2}') ; \
|
||||
lxc exec $machine -- bash -c "cat /etc/apt/apt.conf.d/02*" ; end
|
||||
</code></pre>
|
||||
|
||||
<pre><code class="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
|
||||
</code></pre>
|
||||
|
||||
<h2 id="ubuntu-mate-welcome-center-doesnt-work-some-for-some-repos">Ubuntu-Mate-Welcome-Center doesn't work some for some repos</h2>
|
||||
<p>Perhaps your apt-cacher-ng proxy server isn't configured to allow
|
||||
traffic through from https sources. Make sure the following is
|
||||
|
@ -432,7 +432,7 @@
|
||||
},
|
||||
{
|
||||
"location": "/misc_tips_troubleshooting/",
|
||||
"text": "Misc Tips, TroubleShooting\n\n\nSending commands to LXD containers\n\n\nUse \nbash -c \"<command>\"\n for commands with wildcards. i.e.\n\n\nfor machine in $(lxc list | grep RUNNING | awk '{print $2}') ;\\\n do lxc exec \"${machine}\" -- bash -c \"cat /etc/apt/apt.conf.d/02*\" ; done\n\n\n\n\nUbuntu-Mate-Welcome-Center doesn't work some for some repos\n\n\nPerhaps your apt-cacher-ng proxy server isn't configured to allow \ntraffic through from https sources. Make sure the following is\nuncommented. This applies for all PPA's that use https.\n\n\n# /etc/apt-cacher-ng/acng.conf\nPassThroughPattern: .*",
|
||||
"text": "Misc Tips, TroubleShooting\n\n\nSending commands to LXD containers\n\n\nUse \nbash -c \"<command>\"\n for commands with wildcards. i.e.\n\n\nfor machine in $(lxc list | grep RUNNING | awk '{print $2}') ;\\\n do lxc exec \"${machine}\" -- bash -c \"cat /etc/apt/apt.conf.d/02*\" ; done\n\n\n\n\nfish shell is actually a little bit cleaner\n\n\nfor machine in (lxc list | grep RUNNING | awk '{print $2}') ; \\\n lxc exec $machine -- bash -c \"cat /etc/apt/apt.conf.d/02*\" ; end\n\n\n\n\n# change all their time zones\nfor machine in (lxc list | grep RUNNING | awk '{print $2}') ; \\\n lxc exec $machine -- bash -c \"timedatectl set-timezone America/Los_Angeles\" ; end\n# check to see if anyone is logged in before rebooting\nfor machine in (lxc list | grep RUNNING | awk '{print $2}') ; echo ; \\\n echo $machine ; lxc exec $machine -- bash -c \"who\" ; end \n\n\n\n\nUbuntu-Mate-Welcome-Center doesn't work some for some repos\n\n\nPerhaps your apt-cacher-ng proxy server isn't configured to allow \ntraffic through from https sources. Make sure the following is\nuncommented. This applies for all PPA's that use https.\n\n\n# /etc/apt-cacher-ng/acng.conf\nPassThroughPattern: .*",
|
||||
"title": "Misc Tips, Trouble Shooting"
|
||||
},
|
||||
{
|
||||
@ -442,7 +442,7 @@
|
||||
},
|
||||
{
|
||||
"location": "/misc_tips_troubleshooting/#sending-commands-to-lxd-containers",
|
||||
"text": "Use bash -c \"<command>\" for commands with wildcards. i.e. for machine in $(lxc list | grep RUNNING | awk '{print $2}') ;\\\n do lxc exec \"${machine}\" -- bash -c \"cat /etc/apt/apt.conf.d/02*\" ; done",
|
||||
"text": "Use bash -c \"<command>\" for commands with wildcards. i.e. for machine in $(lxc list | grep RUNNING | awk '{print $2}') ;\\\n do lxc exec \"${machine}\" -- bash -c \"cat /etc/apt/apt.conf.d/02*\" ; done fish shell is actually a little bit cleaner for machine in (lxc list | grep RUNNING | awk '{print $2}') ; \\\n lxc exec $machine -- bash -c \"cat /etc/apt/apt.conf.d/02*\" ; end # change all their time zones\nfor machine in (lxc list | grep RUNNING | awk '{print $2}') ; \\\n lxc exec $machine -- bash -c \"timedatectl set-timezone America/Los_Angeles\" ; end\n# check to see if anyone is logged in before rebooting\nfor machine in (lxc list | grep RUNNING | awk '{print $2}') ; echo ; \\\n echo $machine ; lxc exec $machine -- bash -c \"who\" ; end",
|
||||
"title": "Sending commands to LXD containers"
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user