Python - PyPXE Server: Unterschied zwischen den Versionen

Aus Nicki Wiki
Zur Navigation springen Zur Suche springen
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
== Install ==
== Install ==
[https://github.com/pypxe/PyPXE PyPXE]
* Website [https://github.com/pypxe/PyPXE PyPXE]
  sudo apt-get install python-setuptools
  sudo apt-get install python3-pip
  git clone https://github.com/pypxe/PyPXE.git /home/user/python_server
sudo pip install PyPXE
sudo python setup.py install
 
= Probleme =
{| class="wikitable"
!Fehler
!Lösung
|-
|
OSError: [Errno 99] Cannot assign requested address
|
Es muss ein Interface mit der IP-Adresse und Netzmaske aus der TFTP-Konfiguration vorhanden sein.
|-
|
  TypeError: can only concatenate '''str (not "bytes")''' to str
|
Falsche python version zum starten vom server (wechsel zw. python2.7 / python3)<br>
z.B. python3 für DHCP-Server | python2.7 für TFTP-Server
|}


== Config ==
== Config ==

Aktuelle Version vom 8. September 2021, 07:05 Uhr

Install

sudo apt-get install python3-pip
sudo pip install PyPXE

Probleme

Fehler Lösung
OSError: [Errno 99] Cannot assign requested address
Es muss ein Interface mit der IP-Adresse und Netzmaske aus der TFTP-Konfiguration vorhanden sein.
TypeError: can only concatenate str (not "bytes") to str

Falsche python version zum starten vom server (wechsel zw. python2.7 / python3)
z.B. python3 für DHCP-Server | python2.7 für TFTP-Server

Config