ct-open-source / ctraspion Goto Github PK
View Code? Open in Web Editor NEWTurns a Raspberry Pi into a WLAN router to take a look at network traffic of smart home and IoT devices
License: GNU General Public License v3.0
Turns a Raspberry Pi into a WLAN router to take a look at network traffic of smart home and IoT devices
License: GNU General Public License v3.0
Hallo
ich versuche Raspion auf einen Pi 4B mit Buster zu installieren. Spracheinstellungen sind English (US) mit deutschem Keyboard
Output:
./install.sh
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
==> Einrichtung des c't-Raspion (v103)
logfile:
Branch: debbaseddev
no execute-bit:
rsd.sh
release/install.sh
pkgs/10-raspion/build.sh
Just a reminder to me
I did this:
find . -type f | while read -r sh; do
if [ "$(file --brief --mime-type "$sh")" == 'text/x-shellscript' ]; then
echo $sh
shellcheck --color=always --severity=warning --exclude=SC1091,SC1090 "$sh"
fi
done
and got many warnings from shellcheck
which should be fixed:
09:41 $ ~/temp/shellcheck_files ./.git/hooks/applypatch-msg.sample ./.git/hooks/commit-msg.sample ./.git/hooks/post-update.sample ./.git/hooks/pre-applypatch.sample ./.git/hooks/pre-commit.sample In ./.git/hooks/pre-commit.sample line 31: test $(git diff --cached --name-only --diff-filter=A -z $against | ^-- SC2046 (warning): Quote this to prevent word splitting. For more information: https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt... ./.git/hooks/pre-merge-commit.sample ./.git/hooks/pre-push.sample In ./.git/hooks/pre-push.sample line 22: remote="$1" ^----^ SC2034 (warning): remote appears unused. Verify use (or export if used externally). In ./.git/hooks/pre-push.sample line 23: url="$2" ^-^ SC2034 (warning): url appears unused. Verify use (or export if used externally). In ./.git/hooks/pre-push.sample line 27: while read local_ref local_oid remote_ref remote_oid ^--------^ SC2034 (warning): remote_ref appears unused. Verify use (or export if used externally). For more information: https://www.shellcheck.net/wiki/SC2034 -- remote appears unused. Verify use... ./.git/hooks/pre-rebase.sample In ./.git/hooks/pre-rebase.sample line 19: basebranch="$1" ^--------^ SC2034 (warning): basebranch appears unused. Verify use (or export if used externally). In ./.git/hooks/pre-rebase.sample line 91: <<\DOC_END ^--------^ SC2188 (warning): This redirection doesn't have a command. Move to its command (or use 'true' as no-op). For more information: https://www.shellcheck.net/wiki/SC2034 -- basebranch appears unused. Verify... https://www.shellcheck.net/wiki/SC2188 -- This redirection doesn't have a c... ./.git/hooks/pre-receive.sample In ./.git/hooks/pre-receive.sample line 15: case "$value" in ^----^ SC2154 (warning): value is referenced but not assigned. For more information: https://www.shellcheck.net/wiki/SC2154 -- value is referenced but not assig... ./.git/hooks/prepare-commit-msg.sample In ./.git/hooks/prepare-commit-msg.sample line 24: COMMIT_SOURCE=$2 ^-----------^ SC2034 (warning): COMMIT_SOURCE appears unused. Verify use (or export if used externally). In ./.git/hooks/prepare-commit-msg.sample line 25: SHA1=$3 ^--^ SC2034 (warning): SHA1 appears unused. Verify use (or export if used externally). For more information: https://www.shellcheck.net/wiki/SC2034 -- COMMIT_SOURCE appears unused. Ver... ./.git/hooks/push-to-checkout.sample ./.git/hooks/update.sample In ./.git/hooks/update.sample line 40: if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then ^-- SC2166 (warning): Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. ^-- SC2166 (warning): Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. In ./.git/hooks/update.sample line 98: if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. For more information: https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q... ./files/pihole-FTL In ./files/pihole-FTL line 67: for i in {1..5}; do ^-^ SC2034 (warning): i appears unused. Verify use (or export if used externally). For more information: https://www.shellcheck.net/wiki/SC2034 -- i appears unused. Verify use (or ... ./install.sh In ./install.sh line 27: sudo apt-get update >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 28: sudo apt-get -y dist-upgrade >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 31: sudo debconf-set-selections debconf/keyboard-configuration >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 32: sudo cp files/keyboard /etc/default >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 33: sudo dpkg-reconfigure -fnoninteractive keyboard-configuration >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 35: sudo sed -e "/^[# ]*$NEWLANG/s/^[# ]*//" /etc/locale.gen >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 36: sudo dpkg-reconfigure -fnoninteractive locales >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 37: sudo update-locale LANG=$NEWLANG >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 39: sudo debconf-set-selections debconf/tzdata >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 40: sudo ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 41: sudo cp files/timezone /etc >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 42: sudo dpkg-reconfigure -fnoninteractive tzdata >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 45: sudo debconf-set-selections debconf/wireshark >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 46: sudo debconf-set-selections debconf/iptables-persistent >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 51: shellinabox nmap xsltproc lighttpd tcpreplay pwgen wireshark-gtk >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 54: sudo dpkg -i apt-ntop_1.0.190416-469_all.deb >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 55: sudo apt-get install -y --no-install-recommends ntopng >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 56: sudo dpkg -i $WD/debs/*.deb >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 57: sudo apt-mark hold wireshark-gtk >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 58: sudo apt-mark hold libgtk-3-0 >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 59: sudo apt-mark hold libgtk-3-common >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 60: sudo apt-mark hold libgtk-3-bin >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 62: sudo cp $WD/sbin/* /usr/local/sbin >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 63: sudo chmod +x /usr/local/sbin/*.sh >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 64: sudo cp $WD/files/prefix_delegation /etc/dhcp/dhclient-exit-hooks.d >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 65: sudo chmod +x /etc/dhcp/dhclient-exit-hooks.d/prefix_delegation >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 68: sudo usermod -a -G wireshark pi >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 69: sudo usermod -a -G www-data pi >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 70: sudo cp $WD/files/ntopng.conf /etc/ntopng >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 71: sudo cp $WD/files/interfaces /etc/network >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 72: sudo cp $WD/files/hostapd.conf /etc/hostapd >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 73: sudo cp $WD/files/ipforward.conf /etc/sysctl.d >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 74: sudo cp $WD/files/hostname /etc/ >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 75: sudo cp $WD/files/raspion-sudo /etc/sudoers.d/ >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 76: sudo cp $WD/files/radvd.conf /etc/ >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 77: sudo mkdir -p /root/.mitmproxy >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 78: sudo cp $WD/files/config.yaml /root/.mitmproxy >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 82: sudo cp $WD/files/settings.ini /etc/gtk-3.0 >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 83: sudo cp -f $WD/files/shellinabox /etc/default >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 85: sudo ln -sf /usr/share/fonts-font-awesome fontawesome >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 92: sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 93: sudo ip6tables -t nat -A POSTROUTING -o eth0 -s fd00:24::/64 -j MASQUERADE >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 94: sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 81 -i eth0 >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 95: sudo ip6tables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 81 -i eth0 >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 96: sudo netfilter-persistent save >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 99: sudo cp $WD/files/mitmweb.service /etc/systemd/system >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 100: sudo cp $WD/files/broadwayd.service /etc/systemd/system >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 101: sudo cp $WD/files/wireshark.service /etc/systemd/system >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 102: sudo systemctl enable mitmweb.service >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 103: sudo systemctl unmask hostapd >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 104: sudo systemctl enable radvd >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 105: sudo systemctl enable broadwayd >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 106: sudo systemctl enable wireshark >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 110: sudo ln -sf ../conf-available/10-userdir.conf 10-userdir.conf >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 111: sudo ln -sf ../conf-available/10-proxy.conf 10-proxy.conf >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 112: sudo cp $WD/files/10-dir-listing.conf . >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 113: sudo cp $WD/files/20-extport.conf . >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 116: sudo chmod g+s /home/pi/public_html/caps >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 117: sudo chmod 777 /home/pi/public_html/caps >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 118: sudo chgrp www-data /home/pi/public_html/caps >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 127: sudo adduser --no-create-home --disabled-login --disabled-password --shell /usr/sbin/nologin --gecos "" pihole >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 129: sudo mkdir -p /etc/pihole >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 130: sudo chown pihole:pihole /etc/pihole >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 131: sudo cp $WD/files/setupVars.conf /etc/pihole >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 135: sudo chattr -f -i /etc/init.d/pihole-FTL >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 136: sudo cp $WD/files/pihole-FTL /etc/init.d/ >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 137: sudo chattr -f +i /etc/init.d/pihole-FTL >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 138: sudo systemctl daemon-reload >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 139: sudo systemctl restart pihole-FTL >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 140: sudo pihole -f restartdns >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install.sh line 141: sudo cp $WD/files/hosts /etc/ >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file For more information: https://www.shellcheck.net/wiki/SC2024 -- sudo doesn't affect redirects. Us... ./install2.sh In ./install2.sh line 36: sudo dpkg -i $WD/debs/raspion-keyring_2019_all.deb >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 41: sudo dpkg -i apt-ntop.deb >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 43: sudo apt-get update >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 47: sudo iptables -t nat -F POSTROUTING >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 48: sudo ip6tables -t nat -F POSTROUTING >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 49: sudo iptables -t nat -F PREROUTING >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 50: sudo ip6tables -t nat -F PREROUTING >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 51: sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 52: sudo ip6tables -t nat -A POSTROUTING -o eth0 -s $IPv6NET/64 -j MASQUERADE >> $LOG 2>&1 ^------^ SC2154 (warning): IPv6NET is referenced but not assigned. ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 53: sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 81 -i eth0 >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 54: sudo ip6tables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 81 -i eth0 >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 57: sudo debconf-set-selections debconf/wireshark >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 58: sudo debconf-set-selections debconf/iptables-persistent >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 59: sudo apt-get install -y iptables-persistent >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 62: sudo netfilter-persistent save >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 65: sudo apt-get -y --allow-downgrades dist-upgrade >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 68: sudo debconf-set-selections debconf/keyboard-configuration >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 69: sudo cp files/keyboard /etc/default >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 70: sudo dpkg-reconfigure -fnoninteractive keyboard-configuration >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 72: sudo sed -i -e "/^[# ]*$NEWLANG/s/^[# ]*//" /etc/locale.gen >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 73: sudo dpkg-reconfigure -fnoninteractive locales >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 74: sudo update-locale LANG=$NEWLANG >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 76: sudo debconf-set-selections debconf/tzdata >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 77: sudo ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 78: sudo cp files/timezone /etc >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 79: sudo dpkg-reconfigure -fnoninteractive tzdata >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 82: sudo apt-get install -y --allow-downgrades raspion --no-install-recommends >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 85: sudo usermod -a -G wireshark pi >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 86: sudo usermod -a -G www-data pi >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 87: sudo cp $WD/files/ntopng.conf /etc/ntopng >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 88: sudo sed -i "s/^-m=#IPv4NET#/-m=$IPv4NET/" /etc/ntopng/ntopng.conf >> $LOG 2>&1 ^------^ SC2154 (warning): IPv4NET is referenced but not assigned. ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 89: sudo cp $WD/files/interfaces /etc/network >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 90: sudo sed -i "s/^ address #IPv4HOST#/ address $IPv4HOST/" /etc/network/interfaces >> $LOG 2>&1 ^-------^ SC2154 (warning): IPv4HOST is referenced but not assigned. ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 91: sudo sed -i "s/^ address #IPv6HOST#/ address $IPv6HOST/" /etc/network/interfaces >> $LOG 2>&1 ^-------^ SC2154 (warning): IPv6HOST is referenced but not assigned. ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 92: sudo cp $WD/files/hostapd.conf /etc/hostapd >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 93: sudo sed -i "s/^ssid=#SSID#/ssid=$SSID/" /etc/hostapd/hostapd.conf >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 94: sudo cp $WD/files/ipforward.conf /etc/sysctl.d >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 95: sudo cp $WD/files/hostname /etc/ >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 96: sudo cp $WD/files/raspion-sudo /etc/sudoers.d/ >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 97: sudo cp $WD/files/radvd.conf /etc/ >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 98: sudo sed -i "s/^ RDNSS #IPv6HOST#/ RDNSS $IPv6HOST/" /etc/radvd.conf >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 99: sudo mkdir -p /root/.mitmproxy >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 100: sudo cp $WD/files/config.yaml /root/.mitmproxy >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 104: sudo cp $WD/files/settings.ini /etc/gtk-3.0 >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 105: sudo cp -f $WD/files/shellinabox /etc/default >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 107: sudo ln -sf /usr/share/fonts-font-awesome fontawesome >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 114: sudo systemctl enable mitmweb.service >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 115: sudo systemctl unmask hostapd >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 116: sudo systemctl enable radvd >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 117: sudo systemctl enable broadwayd >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 118: sudo systemctl enable wireshark >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 122: sudo ln -sf ../conf-available/10-userdir.conf 10-userdir.conf >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 123: sudo ln -sf ../conf-available/10-proxy.conf 10-proxy.conf >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 124: sudo cp $WD/files/10-dir-listing.conf . >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 140: sudo chmod g+s /home/pi/public_html/caps >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 141: sudo chmod 777 /home/pi/public_html/caps >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 142: sudo chgrp www-data /home/pi/public_html/caps >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 146: sudo adduser --no-create-home --disabled-login --disabled-password --shell /usr/sbin/nologin --gecos "" pihole >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 148: sudo mkdir -p /etc/pihole >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 149: sudo chown pihole:pihole /etc/pihole >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 150: sudo cp $WD/files/setupVars.conf /etc/pihole >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 151: sudo sed -i "s/IPV4_ADDRESS=#IPv4HOST#/IPV4_ADDRESS=$IPv4HOST/" /etc/pihole/setupVars.conf >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 152: sudo sed -i "s/IPV6_ADDRESS=#IPv6HOST#/IPV6_ADDRESS=$IPv6HOST/" /etc/pihole/setupVars.conf >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 153: sudo sed -i "s/DHCP_ROUTER=#IPv4HOST#/DHCP_ROUTER=$IPv4HOST/" /etc/pihole/setupVars.conf >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 154: sudo sed -i "s/DHCP_START=#DHCPv4START#/DHCP_START=$DHCPv4START/" /etc/pihole/setupVars.conf >> $LOG 2>&1 ^----------^ SC2154 (warning): DHCPv4START is referenced but not assigned. ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 155: sudo sed -i "s/DHCP_END=#DHCPv4END#/DHCP_END=$DHCPv4END/" /etc/pihole/setupVars.conf >> $LOG 2>&1 ^--------^ SC2154 (warning): DHCPv4END is referenced but not assigned. ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 159: sudo chattr -f -i /etc/init.d/pihole-FTL >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 160: sudo cp $WD/files/pihole-FTL /etc/init.d/ >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 161: sudo chattr -f +i /etc/init.d/pihole-FTL >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 162: sudo systemctl daemon-reload >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 163: sudo systemctl restart pihole-FTL >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 164: sudo pihole -f restartdns >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file In ./install2.sh line 165: sudo cp $WD/files/hosts /etc/ >> $LOG 2>&1 ^-- SC2024 (warning): sudo doesn't affect redirects. Use .. | sudo tee -a file For more information: https://www.shellcheck.net/wiki/SC2024 -- sudo doesn't affect redirects. Us... https://www.shellcheck.net/wiki/SC2154 -- DHCPv4END is referenced but not a... ./sbin/contcap.sh ./sbin/mitmoff.sh ./sbin/mitmon.sh ./sbin/mitmstat.sh ./sbin/mitmweb.sh ./sbin/scan.sh ./sbin/scanvul.sh 🦎🖥 ✔ ~/temp/PRs/ctraspion [master|✔] 09:42 $
@ctandi and @psct If you agree, I will fix this later by an PR and add an GitHub Action for automatic checking.
Bei mir bricht das Installationsskript mit folgender Meldung ab:
Installation leider fehlgeschlagen in Zeile 159.
Ich habe das "Pi OS Legacy (Debian Buster)" Image von der Projektseite runtergeladen und installiert. Weil sich dann der Download der raspion.zip weigerte, habe ich erstmal das OS mittels "sudo apt update/upgrade" aktualisiert und rebootet.
Danach habe ich die Installation wie im Artikel beschrieben installiert:
wget ct.de/s/x5Pm -O raspion.zip
unzip raspion.zip
cd raspion
./install.sh
Dann erschien folgende Meldung:
pi@raspion:~/raspion $ ./install.sh
==> Einrichtung des c't-Raspion (v111)
* Wifi einschalten
* Hilfspakete hinzufügen, Paketlisten aktualisieren
* Firewallregeln vorbereiten, Module laden
* Pakete vorkonfigurieren ...
* Firewall-Regeln speichern ...
* Pi OS aktualisieren ...
* Pi OS Sprachanpassungen ...
* Pakete installieren ...
* Softwaregrundkonfiguration ...
* systemd-Units vorbereiten ...
* Weboberfläche hinzufügen ...
* Pi-hole installieren ...
Installation leider fehlgeschlagen in Zeile 159.
In Zeile 159 steht das hier:
sudo chattr -f -i /etc/init.d/pihole-FTL >> $LOG 2>&1
Ein 2. Versuch, das Installationsscript auszuführen brachte den identischen Abbruch, wieder Zeile 159.
Einmal manuell "sudo chattr -f -i /etc/init.d/pihole-FTL" auszuführen brachte keine Besserung.
Ich musste es manuell erstellen. Dann lief's
A great number of users of DEBIAN Bullseye will appreciate very much if raspion will updated for DEBIAN Bullseye within a foreseeable future.
There are some errors and warnings in your scripts that really should be fixed. See detailled report in my GH Action.
I will fix them and make a PR in the holidays.
hello ct team,
I try to update my rasping 104 to 107 but after hitting ./install.sh I get
pi@raspion:~/raspion $ ./install.sh
==> Einrichtung des c't-Raspion (v107)
* Wifi einschalten
* Hilfspakete hinzufügen, Paketlisten aktualisieren
* Firewallregeln vorbereiten, Module laden
* Pakete vorkonfigurieren ...
* Firewall-Regeln speichern ...
Installation leider fehlgeschlagen in Zeile 50
and the install2.sh is not in the zip bundle!
The link https://ct.de/-2805710 in the readme is broken, it just forwards to https://heise.de
Hallo, die Installation bricht leider ab. So wie ich das verstehe, kann ntop nicht installiert werden.
Könnte ihr bitte mal schauen, was da schief läuft?
Danke!
André
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.