Code Monkey home page Code Monkey logo

ctraspion's Introduction

c't-Raspion

c't Raspion LogoTurns a Raspberry Pi into a WLAN router to take a look at network traffic of smart home and IoT devices. All apps are reachable via web browser. Published by german computer magazine c't.

Its initial release incorporates Pi-hole, ntopng, Wireshark, Shell In A Box and mitmproxy.

Requirements

Use a Raspberry Pi 3 or 4 for decent performance. Wireshark(-gtk) will be displayed by Broadwayd within a web browser window.

Download

Install as user pi on a fresh Pi OS legacy image (base on Buster, lite prefered) via:

wget ct.de/s/x5Pm -O raspion.zip 
unzip raspion.zip
cd raspion
./install.sh

Manual download of the zip archive

Warning: Current Pi OS, based on Debian Bullseye, won't work.

Further reading

Articles in c't (German)

In c't 1/2020:

c’t-Raspion: Datenpetzen finden und bändigen

c't-Raspion: Projektseite – Foren weitere Hinweise

ctraspion's People

Contributors

diggen85 avatar merlinschumacher avatar mmvanheusden avatar psct avatar thomasmerz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ctraspion's Issues

v111: Installation leider fehlgeschlagen in Zeile 159.

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.

install.sh scheitert an Spracheinstellungen

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)

  • Hilfspakete hinzufügen, Paketlisten aktualisieren
  • Raspbian aktualisieren ...
  • Raspbian Sprachanpassungen ...
    Installation leider fehlgeschlagen in Zeile 42.

logfile:

  • Raspbian Sprachanpassungen ...
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US.UTF-8",
    LC_ALL = "en_US.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US.UTF-8",
    LC_ALL = "en_US.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US.UTF-8",
    LC_ALL = "en_US.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    Generating locales (this might take a while)...
    de_DE.UTF-8... done
    en_GB.UTF-8... done
    Generation complete.
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US.UTF-8",
    LC_ALL = "en_US.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    *** update-locale: Error: invalid locale settings: LC_ALL=en_US.UTF-8 LANG=de_D
    E.UTF-8 LANGUAGE=en_US.UTF-8

Update ctraspion - DEBIAN Bullsey

A great number of users of DEBIAN Bullseye will appreciate very much if raspion will updated for DEBIAN Bullseye within a foreseeable future.

Execute Bits

Branch: debbaseddev
no execute-bit:
rsd.sh
release/install.sh
pkgs/10-raspion/build.sh

Just a reminder to me

Shellscripts should be checked by shellcheck

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.

ntop lässt sich nicht installieren

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é

raspion is not updatable

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.