X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=distro-end;fp=distro-end;h=721b2c1a19de981337f4291b8a6264dde88cbf70;hb=9a0f77b0495e6f2643d5646c54b4c99cf3118c67;hp=b7a164e27a8323118e830f16a5b311da1a9b76c8;hpb=5a6e794f459b3e83b6d665e05d0ab0c8bc6cdfbe;p=distro-setup diff --git a/distro-end b/distro-end index b7a164e..721b2c1 100755 --- a/distro-end +++ b/distro-end @@ -2198,6 +2198,30 @@ esac ### end bitcoin +### begin gh #### + +# from https://raw.githubusercontent.com/cli/cli/trunk/docs/install_linux.md +# One time setup afterwards: +# gh auth login +# +# When it gets to the page where it asks to authorize github, the button +# is grayed out. You can just open browser dev tools, inspect the +# button, remove disabled="", then click it and it works. +# +# Auth token gets saved into /p/c/subdir_files/.local/share/keyrings/ +# +# initial config goes to /home/iank/.config/gh +curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ + && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ + && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ + && sudo apt update \ + && sudo apt install gh -y + +### end gh #### + +# remove trisquel banner. it is cool but takes up too much space. +sudo rm -f /etc/update-motd.d/01-banner + case $HOSTNAME in kw|x3) sd /etc/cups/client.conf <<'EOF'