raspberry:redsleeve_quick_install
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
raspberry:redsleeve_quick_install [2015/09/11 17:13] – [Packete nachinstallieren] gpipperr | raspberry:redsleeve_quick_install [2015/09/11 17:20] (aktuell) – [Packete nachinstallieren] gpipperr | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | =====Redsleeve Linux Betriebssystem 7.1 mit Python 3.4 für den Raspberry PI 2===== | ||
+ | Da Pidora noch nicht so recht den Pi 2 verfügbar ist, alternativ http:// | ||
+ | |||
+ | Für die Installation sieh auch die Original Anleitung unter https:// | ||
+ | |||
+ | Anmerkungen: | ||
+ | |||
+ | * Für das Schreiben der Image Datei diese zuvor mit http:// | ||
+ | * Einrichten des Systems im weiteren gleich/ | ||
+ | |||
+ | |||
+ | ===Root Filesystem vergrößern== | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | yum install e2fsprogs | ||
+ | |||
+ | # Partition löschen und neue Partition mit einen Block höher als die alte Partition anlegen | ||
+ | |||
+ | fdisk / | ||
+ | |||
+ | p | ||
+ | |||
+ | Device Boot Start | ||
+ | / | ||
+ | / | ||
+ | |||
+ | Command (m for help): d | ||
+ | Partition number (1,2, default 2): 2 | ||
+ | Partition 2 is deleted | ||
+ | |||
+ | Command (m for help): n | ||
+ | |||
+ | Partition type: | ||
+ | | ||
+ | | ||
+ | Select (default p): p | ||
+ | Partition number (2-4, default 2): 2 | ||
+ | |||
+ | First sector (2048-124735487, | ||
+ | Last sector, +sectors or +size{K, | ||
+ | |||
+ | Command (m for help): w | ||
+ | The partition table has been altered! | ||
+ | #---- | ||
+ | |||
+ | reboot | ||
+ | |||
+ | #--- | ||
+ | |||
+ | resize2fs / | ||
+ | |||
+ | #--- | ||
+ | df -h | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | === Update === | ||
+ | |||
+ | Die Mirror Einträgen in der yum Konfiguration zeigen leider nicht auf ein existierenden Mirror File nach der Basis Installation des Images. | ||
+ | |||
+ | |||
+ | Auf folgende Repositories URL's angepasst: | ||
+ | |||
+ | * / | ||
+ | * mirrorlist=< | ||
+ | |||
+ | * / | ||
+ | * mirrorlist=< | ||
+ | * mirrorlist=< | ||
+ | |||
+ | |||
+ | |||
+ | ====Python 3==== | ||
+ | |||
+ | Python 3.4 steht als Packet (09.2015) noch nicht zur Verfügung. | ||
+ | |||
+ | Daher muss das von den Sourcen aufgebaut und installiert werden. | ||
+ | |||
+ | |||
+ | ===Vorbereitungen=== | ||
+ | |||
+ | Code bereitstellen und notwendige Libraries + gcc installieren: | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | #libs | ||
+ | yum install libffi bluez gdb valgrind gcc expat-devel | ||
+ | yum install zlib-devel bzip2-devel | ||
+ | |||
+ | mkdir / | ||
+ | |||
+ | cd / | ||
+ | |||
+ | wget https:// | ||
+ | |||
+ | tar xfv Python-3.4.3.tar.xz | ||
+ | |||
+ | cd Python-3.4.3 | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | === Python 3 übersetzen === | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | |||
+ | export CXX="/ | ||
+ | |||
+ | |||
+ | ./configure | ||
+ | |||
+ | #bzw mit entsprechenden Parametern | ||
+ | |||
+ | ./configure --prefix=/ | ||
+ | --enable-shared | ||
+ | --with-system-expat \ | ||
+ | --with-system-ffi | ||
+ | --with-ensurepip | ||
+ | LDFLAGS=" | ||
+ | |||
+ | # | ||
+ | make | ||
+ | |||
+ | # | ||
+ | make install | ||
+ | |||
+ | |||
+ | #Rechte anpassen | ||
+ | chmod -v 755 / | ||
+ | chmod -v 755 / | ||
+ | |||
+ | </ | ||
+ | |||
+ | === Alternatives für Python einrichten=== | ||
+ | |||
+ | Unter Linux sollten die verschienden Varianten einer Software mit " | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | ls -la / | ||
+ | |||
+ | alternatives --list | ||
+ | |||
+ | alternatives --install / | ||
+ | |||
+ | alternatives --install / | ||
+ | |||
+ | # | ||
+ | alternatives --display python | ||
+ | python - status is auto. | ||
+ | link currently points to / | ||
+ | / | ||
+ | / | ||
+ | |||
+ | Current ' | ||
+ | |||
+ | |||
+ | #umschalten | ||
+ | alternatives --config python | ||
+ | |||
+ | #test | ||
+ | python --version | ||
+ | |||
+ | </ | ||
+ | |||
+ | === Packete nachinstallieren === | ||
+ | |||
+ | ==pip== | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | Problem: | ||
+ | <code bash> | ||
+ | [root@localhost ~]# python get-pip.py | ||
+ | Traceback (most recent call last): | ||
+ | File " | ||
+ | main() | ||
+ | File " | ||
+ | bootstrap(tmpdir=tmpdir) | ||
+ | File " | ||
+ | import pip | ||
+ | zipimport.ZipImportError: | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Zlib wurde beim obigen Bulid nicht sauber mit integriert, liegt wohl daran das die Libraries nicht dort liegen wo sie sollten .... | ||
+ | |||
+ | Bin am suchen .... , erster Test mit weiteren Paramter " | ||
+ | |||
+ | Prüfen wie Python übersetzt wurde: | ||
+ | <code bash> | ||
+ | python -c " | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | |||
+ | Nächster Fehler: | ||
+ | <code bash> | ||
+ | | ||
+ | |||
+ | ... | ||
+ | File "/ | ||
+ | ImportError: | ||
+ | |||
+ | </ | ||
+ | |||
+ | Hier fehlt wohl auch noch die SSL Unterstützung beim Übersetzen ..... | ||
+ | |||
+ | ===Quellen=== | ||
+ | |||
+ | * http:// |
raspberry/redsleeve_quick_install.txt · Zuletzt geändert: 2015/09/11 17:20 von gpipperr