Moved examples to the right place

This commit is contained in:
Michele Cereda
2022-03-04 00:25:37 +01:00
parent 9182eb1ad2
commit 4e3765f4ea
7 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -e
sudo apt update
sudo apt install --assume-yes boinc-client boinctui
BAM="http://bam.boincstats.com/"
ACCT_MGR_URL="${ACCT_MGR_URL:-$BAM}"
ACCT_MGR_USERNAME="${ACCT_MGR_USERNAME}"
ACCT_MGR_PASSWORD="${ACCT_MGR_PASSWORD}"
boinccmd --acct_mgr attach "${ACCT_MGR_URL}" "${ACCT_MGR_USERNAME}" "${ACCT_MGR_PASSWORD}"
## /var/lib/boinc/cc_config.xml
# …
# <allow_remote_gui_rpc>1</allow_remote_gui_rpc> # add this
# </log_flags>
# </cc_config>
##
## /var/lib/boinc/remote_hosts.cfg
## network addresses do not work, only single hosts
# 192.168.0.190 # mb-laptop
##

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
sudo curl -fsSL https://get.docker.com | sh -
sudo usermod -aG docker ${USER}
# logout && login to apply the new status
docker run --rm --name test hello-world && docker rmi hello-world

View File

@@ -0,0 +1,25 @@
#!/bin/sh
for release in stable testing
do
envsubst <<-EOF | sudo tee /etc/apt/sources.list.d/raspi.${release}.list
deb http://raspbian.raspberrypi.org/raspbian/ ${release} main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ ${release} main contrib non-free rpi
EOF
done
cat <<-EOF > /etc/apt/preferences.d/90pin-to-release
Package: *
Pin: release n=stable
Pin-Priority: 500
Package: *
Pin: release n=testing
Pin-Priority: 450
Package: *
Pin: release n=buster
Pin-Priority: 400
EOF

View File

@@ -0,0 +1,15 @@
#!/bin/sh
# https://linuxize.com/post/how-to-install-git-on-raspberry-pi/
sudo apt update
sudo apt install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext
cd /usr/src/
sudo wget https://github.com/git/git/archive/refs/tags/v2.33.0.tar.gz -O git.tar.gz
sudo tar -xf git.tar.gz
cd git-*
sudo make prefix=/usr/local all
sudo make prefix=/usr/local install
git --version

View File

@@ -0,0 +1,4 @@
deb http://raspbian.raspberrypi.org/raspbian/ ${release} main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ ${release} main contrib non-free rpi