summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2024-04-18 15:15:52 +0200
committerAndreas Fankhauser hiddenalpha.ch2024-04-18 15:15:52 +0200
commit958277606df43a8efeca67d902adab26e8ad25e7 (patch)
tree251b3414f297c1e9077b5a5c960672530fea9137
parent842dd8260f8471e30f3b15e5a29a65fbcedcee15 (diff)
downloadUnspecifiedGarbage-958277606df43a8efeca67d902adab26e8ad25e7.zip
UnspecifiedGarbage-958277606df43a8efeca67d902adab26e8ad25e7.tar.gz
(qemu) Add hints for proxy config.
-rw-r--r--doc/note/qemu/qemu.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/note/qemu/qemu.txt b/doc/note/qemu/qemu.txt
index f3fc996..ee16140 100644
--- a/doc/note/qemu/qemu.txt
+++ b/doc/note/qemu/qemu.txt
@@ -239,6 +239,9 @@ NOTE: Couldn't yet test any of those commands.
## Alpine PostInstall
true \
+ && `# HINT: environ setup does not work autmoatically during login. has to be sourced manually.` \
+ && P="http://10.0.2.2:3128/" \
+ && printf 'export no_proxy=127.0.0.1,10.0.2.*\nexport http_proxy=%s\nexport https_proxy=%s\n' "${P:?}" "${P:?}" >> '/etc/environment' \
&& apk add openssh-server \
&& rc-update add sshd \
&& sed -i -E 's;^# *(PermitRootLogin).+$;\1 yes;' /etc/ssh/sshd_config \
@@ -255,9 +258,9 @@ NOTE: Couldn't yet test any of those commands.
TODO: move this to a better place. Eg: debian/setup.txt or whatever.
true \
- && http_proxy= \
- && https_proxy= \
&& no_proxy=127.0.0.1,10.0.2.* \
+ && http_proxy=http://10.0.2.2:3128 \
+ && https_proxy=http://10.0.2.2:3128 \
&& SUDO= \
&& true \
&& if [ -n "$http_proxy" ]; then true \