Writing /var/lib/dokuwiki/wiki.project-insanity.org/data/meta/archbox.meta failed
Hotfix release available: 2025-05-14b "Librarian".
upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian".
upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian".
upgrade now! [56] (what's this?)
archbox
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| archbox [2019/02/01 13:12] – 2a01:4f8:191:327:98ef:50ff:fe31:4be6 | archbox [2021/10/31 10:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Host ===== | ||
| + | <file - / | ||
| + | AutomapHostsOnResolve 1 | ||
| + | TransPort 9040 | ||
| + | TransListenAddress 10.0.0.1 | ||
| + | DNSPort 5053 | ||
| + | DNSListenAddress 10.0.0.1 | ||
| + | </ | ||
| + | <file - / | ||
| + | [NetDev] | ||
| + | Name=tornet | ||
| + | Kind=bridge | ||
| + | </ | ||
| + | <file - / | ||
| + | [Match] | ||
| + | Name=tornet | ||
| + | [Network] | ||
| + | Address=10.100.100.1/ | ||
| + | </ | ||
| + | <code bash> | ||
| + | pacman -S tor | ||
| + | systemctl enable --now tor systemd-networkd | ||
| + | #iptables -t nat -I POSTROUTING -s 10.100.100.0/ | ||
| + | iptables -A FORWARD -i tornet -o tornet -p udp --dport=5053 -j ACCEPT | ||
| + | iptables -t nat -A PREROUTING -i tornet -p udp -m udp --dport 53 -j DNAT --to-destination 127.0.0.1: | ||
| + | iptables -t nat -A PREROUTING -i tornet -p tcp -j DNAT --to-destination 127.0.0.1: | ||
| + | iptables -A INPUT -i tornet -p tcp --dport 9040 -j ACCEPT | ||
| + | virt-install --vnc --name=archbox --vcpus 1 --memory 2024 --disk pool=vg0, | ||
| + | </ | ||
| + | Sources | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | ===== Guest ===== | ||
| + | |||
| + | ===== ttyd notes ===== | ||
| + | <code bash> | ||
| + | cd html | ||
| + | # do your modifications | ||
| + | yarn install | ||
| + | yarn run build | ||
| + | # yarn run start | ||
| + | </ | ||
| + | modifications for sub path | ||
| + | <file - src/ | ||
| + | #define WS_PATH "/ | ||
| + | </ | ||
| + | not needed since it detects or includes sub urls: | ||
| + | <file - html/ | ||
| + | + (window.location.pathname.endsWith('/' | ||
| + | </ | ||
| + | <file - html/ | ||
| + | < | ||
| + | </ | ||
| + | <file - src/ | ||
| + | if (strncmp(pss-> | ||
| + | [...] | ||
| + | if (strcmp(pss-> | ||
| + | </ | ||
| + | now the issue: illegal ws path | ||
