BananaPro (Armbian ab 1/2018): Unterschied zwischen den Versionen
Aus www.electronic-man.randschtoischlotzer.de
Eman (Diskussion | Beiträge) K (→TFTP-Server installieren) |
Eman (Diskussion | Beiträge) (→Locale auf Deutsch stellen) |
||
Zeile 29: | Zeile 29: | ||
armbian-config | armbian-config | ||
+ | |||
+ | ==SMB-Zugriff (Share) einrichten== | ||
+ | |||
+ | *Software installieren | ||
+ | apt-get install samba samba-common-bin | ||
+ | *Benutzer einrichten | ||
+ | smbpasswd -a pi | ||
+ | *Server einstellen | ||
+ | service samba stop | ||
+ | nano /etc/samba/smb.conf | ||
+ | *Inhalt der '''smb.conf''' | ||
+ | [global] | ||
+ | workgroup = WORKGROUP | ||
+ | #usershare allow guests = yes | ||
+ | #security=share | ||
+ | security=user | ||
+ | follow symlinks = yes | ||
+ | wide links = no | ||
+ | unix extensions = no | ||
+ | lock directory = /var/cache/samba | ||
+ | [Pi] | ||
+ | browsable = yes | ||
+ | read only = no | ||
+ | #guest ok = yes | ||
+ | valid users = pi | ||
+ | path = /home/pi | ||
+ | [devices] | ||
+ | browsable = yes | ||
+ | read only = no | ||
+ | #guest ok = yes | ||
+ | valid users = pi | ||
+ | path = /media | ||
+ | force user = root | ||
+ | *optional: | ||
+ | [MEDIA USB-HDD 1.0 TB] | ||
+ | browsable = yes | ||
+ | read only = no | ||
+ | #guest ok = yes | ||
+ | valid users = pi | ||
+ | path = /media/usb0 | ||
+ | |||
+ | |||
+ | *Server starten | ||
+ | service samba start | ||
+ | |||
+ | [http://forum.lemaker.org/thread-1751-1-1.html Quelle:] | ||
==RPi.GPIO auf Banana Pro einrichten== | ==RPi.GPIO auf Banana Pro einrichten== |
Version vom 28. Januar 2018, 12:57 Uhr
Inhaltsverzeichnis
Armbian (Debian Server Mainline Kernel) (ab 1/2018)
Download
https://www.armbian.com/banana-pi-pro/
Infos zur Hardware
https://linux-sunxi.org/Banana_Pro
Erstanmeldung
Benutzer:
root
Kennwort:
1234
Datum, Uhrzeit etc. einstellen
armbian-config
Locale auf Deutsch stellen
sudo apt-get install task-german
sudo dpkg-reconfigure locales
locale -a
env | egrep '(LC|LANG)
sudo nano /etc/default/keyboard
sudo nano /etc/default/locale
armbian-config
- Software installieren
apt-get install samba samba-common-bin
- Benutzer einrichten
smbpasswd -a pi
- Server einstellen
service samba stop nano /etc/samba/smb.conf
- Inhalt der smb.conf
[global] workgroup = WORKGROUP #usershare allow guests = yes #security=share security=user follow symlinks = yes wide links = no unix extensions = no lock directory = /var/cache/samba [Pi] browsable = yes read only = no #guest ok = yes valid users = pi path = /home/pi [devices] browsable = yes read only = no #guest ok = yes valid users = pi path = /media force user = root
- optional:
[MEDIA USB-HDD 1.0 TB] browsable = yes read only = no #guest ok = yes valid users = pi path = /media/usb0
- Server starten
service samba start
RPi.GPIO auf Banana Pro einrichten
Voraussetzungen: Paket sudo muss instaliert sein.
- GIT installieren:
sudo apt-get update sudo apt-get install git
- Paket herunterladen:
cd /root
git clone https://github.com/LeMaker/RPi.GPIO_BP -b bananapro
- Installation:
sudo apt-get update sudo apt-get install python-dev
- Kompilieren und Installieren:
cd RPi.GPIO_BP python setup.py install sudo python setup.py install
TM1637 LED Display ansteuern - Only 4 PIN Red Common Anode 4-Segment Digital Tube Display For Arduino Raspberry
TFTP-Server installieren
- Server installieren:
apt-get install tftpd-hpa
- Einstelllungen anpassen:
nano /etc/default/tftpd-hpa
Inhalt der Datei wie folgt ändern:
TFTP_USERNAME=”tftp” TFTP_DIRECTORY=”/srv/tftp” TFTP_ADDRESS=”0.0.0.0:69″ TFTP_OPTIONS=”–secure -4”
- Server neu starten:
service tftpd-hpa restart
Hinweis: Dateien in /srv/tftp
ablegen.
Evtl. Rechte anpassen:
chmod g+s /srv/tftp/ chmod 775 /srv/tftp/
TFTP-Server "zusehen"
- tcpdump installieren:
sudo apt-get install tcpdump
- Auf Port 69 "lauschen":
tcpdump port 69 -vv