Benutzer-Werkzeuge

Webseiten-Werkzeuge


setup_zero_buster

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
setup_zero_buster [2020/07/29 10:11] varnholtsetup_zero_buster [2022/01/11 18:37] (aktuell) varnholt
Zeile 1: Zeile 1:
-Raspbian-Buster herunterladen und installieren:  2020-05-27-raspios-buster-armhf.zip+===== Raspberry Zero mit Bullseye installieren =====
  
-Flashen mit BalneaEtcher+[[https://www.raspberrypi.com/software/operating-systems/|Raspbian-Bullseye]] herunterladen und installieren:  2021-10-30-raspios-bullseye-armhf.zip
  
-Dateien installieren, leere "ssh"+Flashen mit [[https://www.balena.io/etcher/|BalenaEtcher]]
  
-cmdline.txt (anhängen)+==== Config-Dateien installieren ==== 
 + 
 +Eine leere Datei mit Namen "ssh" ins boot-Verzeichnis 
 + 
 +cmdline.txt (anhängen, falls noch nicht resize da ist. sonst dort vorne dran)
 <code> <code>
  ip=192.168.178.32::192.168.178.1:255.255.255.0:zero:wlan0:off  ip=192.168.178.32::192.168.178.1:255.255.255.0:zero:wlan0:off
 </code> </code>
  
-wpa_supplicant.conf +wpa_supplicant.conf (erstellen)
 <code> <code>
 country=DE country=DE
Zeile 22: Zeile 25:
 } }
 </code> </code>
 +
 +SD-Karte in den Zero und los
 +
 +==== Anmelden und Nacharbeiten ====
  
 <code> <code>
Zeile 29: Zeile 36:
 sudo raspi-config sudo raspi-config
  
-1: password +1-S3: password 
-2: hostname:zero +1-S4: hostname:zero 
-4: de_DE.UTF-8 UTF-8 / de_DE.UTF-8  +3-P1: PiCamera 
-4: Timezone: Europe->Monaco +3-P2: SSH 
-5: PiCamera +5-L1: de_DE.UTF-8 / de_DE.UTF-8 
-7: Expand Filesystem+5-L2: Timezone: Europe->Monaco 
 +6   : Expand Filesystem
  
 sudo reboot now sudo reboot now
  
 sudo apt-get update sudo apt-get update
-sudo apt-get -y dist-upgrade (15 Minuten)+sudo apt-get -y dist-upgrade (30 Minuten)
  
 sudo reboot now sudo reboot now
Zeile 46: Zeile 54:
 Netzwerk - wieder auf DHCP umstellen und mit meinem WLAN Verbinden Netzwerk - wieder auf DHCP umstellen und mit meinem WLAN Verbinden
 <code> <code>
-/etc/network/interfaces+sudo nano /etc/network/interfaces 
 allow-hotplug wlan0 allow-hotplug wlan0
 iface wlan0 inet dhcp iface wlan0 inet dhcp
Zeile 53: Zeile 62:
 </code> </code>
 <code> <code>
-/etc/wpa_supplicant/wpa_supplicant.conf+sudo nano /etc/wpa_supplicant/wpa_supplicant.conf 
 country=DE country=DE
 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
Zeile 140: Zeile 150:
 Tools Tools
 <code> <code>
-sudo apt-get install aircrack-ng+sudo apt-get -y install aircrack-ng
 sudo airmon-ng start wlan1 sudo airmon-ng start wlan1
 sudo airodump-ng wlan1mon sudo airodump-ng wlan1mon
-sudo apt-get install gawk tcpdump # https://github.com/brannondorsey/sniff-probes+sudo apt-get -y install gawk tcpdump # https://github.com/brannondorsey/sniff-probes
 IFACE=wlan1mon  IFACE=wlan1mon 
 OUTPUT=output.txt  OUTPUT=output.txt 
 #CHANNEL_HOP=1 #CHANNEL_HOP=1
  
-sudo apt-get installl dsniff+sudo apt-get -y install dsniff
  
 Statt den FORWARD Regeln kann man auch eine Bridge einrichten: Statt den FORWARD Regeln kann man auch eine Bridge einrichten:
-sudo apt-get install bridge-utils+sudo apt-get -y install bridge-utils
 sudo brctl addbr br0 sudo brctl addbr br0
 (sudo brctl Addis br0 wlan0) geht nicht, stattdessen in "sudo nano /etc/default/hostapd" (sudo brctl Addis br0 wlan0) geht nicht, stattdessen in "sudo nano /etc/default/hostapd"
Zeile 165: Zeile 175:
 # der block geht noch nicht # der block geht noch nicht
 git clone https://github.com/moxie0/sslstrip.git git clone https://github.com/moxie0/sslstrip.git
-sudo apt-get install python-twisted-web+sudo apt-get -y install python-twisted-web
 sudo iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080 sudo iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080
 iptables -t nat -L iptables -t nat -L
Zeile 173: Zeile 183:
 Zugriff per Bluetooth (mit zwei Apps kamen immer Steuerzeichen mit, also doch Hotspot)\\ Zugriff per Bluetooth (mit zwei Apps kamen immer Steuerzeichen mit, also doch Hotspot)\\
 Verbindung (erstellen von bnep0) geht nur, wenn am Handy Mehr->Bluetooth-Tethering AN ist\\ Verbindung (erstellen von bnep0) geht nur, wenn am Handy Mehr->Bluetooth-Tethering AN ist\\
-http://bluez.sourceforge.net/contrib/HOWTO-PAN+http://bluez.sourceforge.net/contrib/HOWTO-PAN \\ 
 +https://www.raspberrypi.org/forums/viewtopic.php?t=223029
  
 Bei Connect-Problemen: Bei Connect-Problemen:
   sudo cat /var/log/syslog | grep -i protocol   sudo cat /var/log/syslog | grep -i protocol
   Jul 29 11:02:50 zero bluetoothd[426]: a2dp-source profile connect failed for 00:EC:0A:72:14:61: Protocol not available   Jul 29 11:02:50 zero bluetoothd[426]: a2dp-source profile connect failed for 00:EC:0A:72:14:61: Protocol not available
-  sudo apt-get install pulseaudio-module-bluetooth+  sudo apt-get -y install pulseaudio-module-bluetooth
   pulseaudio --start   pulseaudio --start
 <code> <code>
-sudo apt-get install bluez bluez-tools+sudo apt-get -y install bluez bluez-tools
 sudo bluetoothctl sudo bluetoothctl
 agent on agent on
Zeile 191: Zeile 202:
 exit exit
 git clone https://github.com/WayneKeenan/RaspberryPi_BTPAN_AutoConnect.git git clone https://github.com/WayneKeenan/RaspberryPi_BTPAN_AutoConnect.git
 +(https://github.com/WayneKeenan/RaspberryPi_BTPAN_AutoConnect)
 +mkdir bin; mv Rasp*/* bin
  
 +sudo nano /etc/network/interfaces
 +allow-hotplug bnep0
 +iface bnep0 inet static
 +address 192.168.44.106
 +netmask 255.255.255.0
 +
 +sudo /home/pi/bin/check-and-connect-bt-pan.sh
 +crontab -e
 +* * * * * /home/pi/bin/check-and-connect-bt-pan.sh
 </code> </code>
 +
 +==== Web-Konsole ====
 Zugriff per Webbrowser auf die Konsole Zugriff per Webbrowser auf die Konsole
 <code> <code>
-sudo apt install shellinabox minicom+sudo apt-get -y install shellinabox minicom
 sudo nano /etc/default/shellinabox sudo nano /etc/default/shellinabox
 SHELLINABOX_ARGS="-t -s /:LOGIN -s /termi:pi:pi:/usr/home/pi:/usr/bin/minicom --no-beep"  SHELLINABOX_ARGS="-t -s /:LOGIN -s /termi:pi:pi:/usr/home/pi:/usr/bin/minicom --no-beep" 
Zeile 201: Zeile 225:
 http://192.168.178.32:4200 http://192.168.178.32:4200
 </code> </code>
-FritzBox Anrufe feststellen - callMonitor [[https://hickerspace.org/wiki/Fritz!Box|Externer Link]]+==== FritzBox ==== 
 +Anrufe feststellen - callMonitor [[https://hickerspace.org/wiki/Fritz!Box|Externer Link]]
 <code> <code>
 #96*5* #96*5*
Zeile 210: Zeile 235:
 Mehr Infos:\\ Mehr Infos:\\
 https://administrator.de/wissen/netzwerk-management-server-raspberry-pi-191718.html#toc-18 https://administrator.de/wissen/netzwerk-management-server-raspberry-pi-191718.html#toc-18
 +
 +==== Kamera ====
 +[[https://www.raspberrypi.org/documentation/usage/camera/raspicam/raspivid.md|Externer Link]]
 +<code>
 +raspivid -o vid.h264
 +sudo apt install -y gpac
 +
 +# Capture 30 seconds of raw video at 640x480 and 150kB/s bit rate into a pivideo.h264 file:
 +raspivid -t 30000 -w 640 -h 480 -fps 25 -b 1200000 -p 0,0,640,480 -o pivideo.h264
 +# Wrap the raw video with an MP4 container:
 +MP4Box -add pivideo.h264 pivideo.mp4
 +# Remove the source raw file, leaving the remaining pivideo.mp4 file to play
 +rm pivideo.h264
 +</code>
 +
 +==== Streaming Video ====
 +[[https://tutorials-raspberrypi.de/raspberry-pi-ueberwachungskamera-livestream-einrichten/|Externer Link]]
 +<code>
 +sudo apt-get install motion -y
 +v4l2-ctl -V
 +sudo nano /etc/motion/motion.conf
 +daemon on
 +stream_localhost off
 +target_dir /home/pi/Monitor
 +v4l2_palette 15
 +width 640 
 +height 480
 +framerate 10
 +sudo nano /etc/default/motion
 +start_motion_daemon=yes
 +mkdir /home/pi/Monitor
 +sudo chgrp motion /home/pi/Monitor
 +chmod g+rwx /home/pi/Monitor
 +sudo service motion start
 +</code>
 +
 +==== AFP ====
 +<code>
 +sudo apt-get -y install netatalk
 +sudo nano /etc/netatalk/afp.conf
 +[Homes]
 +  basedir regex = /home
 +afp://192.168.178.32
 +</code>
 +
 +==== SAMBA ====
 +<code>
 +sudo apt-get -y install samba samba-common smbclient
 +sudo service smbd status
 +sudo service nmbd status
 +sudo nano /etc/samba/smb.conf
 + # Name der Freigabe
 + [pi]
 + path=/home/pi
 + available=yes
 + browsable=yes
 + guest ok = no
 + writeable = yes
 + write list = pi
 + valid users = pi
 +sudo service smbd restart
 +sudo service nmbd restart
 +#Eigene Benutzer/Kennwort für SAMBA(!). man kann natürlich pi nehmen
 +sudo smbpasswd -a pi
 +smb://192.168.178.32
 +</code>
setup_zero_buster.1596017510.txt.gz · Zuletzt geändert: 2020/07/29 10:11 von varnholt