Skip to content

Development

Markus Ottela edited this page Sep 20, 2022 · 9 revisions

Development

Debian sudo permissions

$ su -
# usermod -aG sudo <username>
# reboot

One-liners for development branch testing

  • Source/Destination Computer

    c='tcb'; f='1cd5f4954044b03cda650bec66312f5dc5ddb8998ad4510c1edcf0e562f3a68c'; p='pubkey.asc'; i='install.sh'; s=$i.asc; while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1; do sleep .5; echo -ne "\rAPT is busy"; done && sudo apt update && sudo apt install apt-transport-https -y && sudo apt install tor -y && sudo systemctl start tor && cd $HOME && until sudo torsocks apt install wget -y && torsocks wget -T 10 https://raw.githubusercontent.com/maqp/tfc/development/{$p,$i,$s} -q; do sleep 1; done && sudo mv -f {$p,$i,$s} /opt/ && cd /opt/ && sudo chmod 644 {$p,$i,$s} && sudo chown root {$p,$i,$s} && if sha256sum $p | grep -Eo '^\w+' | cmp -s <(echo $f); then gpg --import $p && gpg --verify $s $i && bash $i $c; else echo "ERROR: $p has invalid SHA256 fingerprint"; fi;
    
  • Networked Computer (Debian / PureOS / *buntu / Mint / LMDE)

    c='relay'; f='1cd5f4954044b03cda650bec66312f5dc5ddb8998ad4510c1edcf0e562f3a68c'; p='pubkey.asc'; i='install.sh'; s=$i.asc; while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1; do sleep .5; echo -ne "\rAPT is busy"; done && sudo apt update && sudo apt install apt-transport-https -y && sudo apt install tor -y && sudo systemctl start tor && cd $HOME && until sudo torsocks apt install wget -y && torsocks wget -T 10 https://raw.githubusercontent.com/maqp/tfc/development/{$p,$i,$s} -q; do sleep 1; done && sudo mv -f {$p,$i,$s} /opt/ && cd /opt/ && sudo chmod 644 {$p,$i,$s} && sudo chown root {$p,$i,$s} && if sha256sum $p | grep -Eo '^\w+' | cmp -s <(echo $f); then gpg --import $p && gpg --verify $s $i && bash $i $c; else echo "ERROR: $p has invalid SHA256 fingerprint"; fi;
    
  • Networked Computer (Tails)

    c='tails'; f='1cd5f4954044b03cda650bec66312f5dc5ddb8998ad4510c1edcf0e562f3a68c'; p='pubkey.asc'; i='install.sh'; s=$i.asc; cd $HOME && sudo apt update && sudo apt install apt-transport-https -y && torsocks wget https://raw.githubusercontent.com/maqp/tfc/development/{$p,$i,$s} -q && sudo mv -f {$p,$i,$s} /opt/ && cd /opt/ && sudo chmod 644 {$p,$i,$s} && sudo chown root {$p,$i,$s} && if sha256sum $p | grep -Eo '^\w+' | cmp -s <(echo $f); then gpg --import $p && gpg --verify $s $i && bash $i $c; else echo "ERROR: $p has invalid SHA256 fingerprint"; fi;
    
  • Development

    c='dev'; f='1cd5f4954044b03cda650bec66312f5dc5ddb8998ad4510c1edcf0e562f3a68c'; p='pubkey.asc'; i='install.sh'; s=$i.asc; while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1; do sleep .5; echo -ne "\rAPT is busy"; done && sudo apt update && sudo apt install apt-transport-https -y && sudo apt install tor -y && sudo systemctl start tor && cd $HOME && until sudo torsocks apt install wget -y && torsocks wget -T 10 https://raw.githubusercontent.com/maqp/tfc/development/{$p,$i,$s} -q; do sleep 1; done && sudo mv -f {$p,$i,$s} /opt/ && cd /opt/ && sudo chmod 644 {$p,$i,$s} && sudo chown root {$p,$i,$s} && if sha256sum $p | grep -Eo '^\w+' | cmp -s <(echo $f); then gpg --import $p && gpg --verify $s $i && bash $i $c; else echo "ERROR: $p has invalid SHA256 fingerprint"; fi;
    
Clone this wiki locally