From fe6b236571252b7f1c48e068b6895b8dcb1d523b Mon Sep 17 00:00:00 2001 From: Michel Date: Wed, 24 Apr 2024 15:09:56 +0200 Subject: [PATCH] docs: Qubes-related --- .README.md | 23 ++++++++++++++++++----- bin/curl-proxy | 2 ++ bin/wget-proxy | 2 ++ 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 bin/curl-proxy create mode 100644 bin/wget-proxy diff --git a/.README.md b/.README.md index 5c19c91..c2954a5 100644 --- a/.README.md +++ b/.README.md @@ -23,19 +23,23 @@ automatically to a backup folder: ```sh git clone --bare $HOME/.dotfiles +export ALL_PROXY=127.0.0.1:8082 +git clone --bare https://forge.chapril.org/michel_ouba/points.git $HOME/.dotfiles + alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME' dotfiles config --local status.showUntrackedFiles no +BRANCH=opt BKDIR=".dotfiles-backup/"; -dotfiles checkout 2>&1 | egrep "\s+" | awk {'print $1'} | +dotfiles checkout ${BRANCH} 2>&1 | egrep "\s+" | awk {'print $1'} | xargs -I{} sh -c "mkdir -p \$(dirname ${BKDIR}{}); mv -iv {} ${BKDIR}{}"; -dotfiles checkout +dotfiles checkout ${BRANCH} ``` -When the `fetch` configuration is not set, insert the following line in -`.dotfiles/config`: +When the `fetch` configuration is not set, insert the following line in the +_remote_ section of `.dotfiles/config`: ```config fetch = +refs/heads/*:refs/remotes/origin/* @@ -71,7 +75,7 @@ Recommended installation order: - System Config - [Debian packages](#debian) -- Qubes proxy scripts (TODO) +- [Qubes proxy scripts](#qubes) - dotfiles (see above) - [ASDF](#asdf) & plugins - Newer Debian packages: `bin/versions_check` @@ -80,6 +84,7 @@ Recommended installation order: - [lazygit](#lazygit) - [nnn](#nnn) - [neovim](#neovim) +- Install into `/etc/skel` (see above) ## Generic Tips @@ -127,6 +132,14 @@ dpkg-divert --divert /usr/share/man/man1/fd.1.gz --rename /usr/share/man/man1/fd dpkg-divert --divert /usr/share/zsh/vendor-completions/_rg --rename /usr/share/zsh/vendor-completions/rg.zsh ``` +## Qubes proxy scripts {#qubes} + +```sh +chmod +x $HOME/bin/*-proxy +``` + +TODO: Insert random part in filenames. + ## ASDF & main plugins {#asdf} `.zshrc` will install `asdf`. diff --git a/bin/curl-proxy b/bin/curl-proxy new file mode 100644 index 0000000..9803e41 --- /dev/null +++ b/bin/curl-proxy @@ -0,0 +1,2 @@ +#!/bin/env bash +curl --proxy http://127.0.0.1:8082/ --tlsv1.2 --proto =https --max-time 180 "$@" diff --git a/bin/wget-proxy b/bin/wget-proxy new file mode 100644 index 0000000..c0626b8 --- /dev/null +++ b/bin/wget-proxy @@ -0,0 +1,2 @@ +#!/bin/env bash +https_proxy=http://127.0.0.1:8082/ http_proxy=http://127.0.0.1:8082/ wget --secure-protocol=TLSv1_2 --timeout=180 "$@"