Skip to content

Latest commit

 

History

History
303 lines (261 loc) · 13.2 KB

README.md

File metadata and controls

303 lines (261 loc) · 13.2 KB

PREREQUISITES: Installation der benötigten Pakete

Eine einfache Möglichkeit die benötigten Pakete zu installieren besteht darin, diesen Code per Copy and Paste auf der Konsole auszuführen, zB in PuTTY per Rechtsclick!

Mit tools/prerequisites können die Pakete auch installiert werden.

Getestete Distributionen

Problematische Distributionen

  • Gentoo
  • NixOS

Alle anderen Distributionen

... sind ungetestet und können funktionieren oder auch nicht. Dies hängt stark von den Fähigkeiten des Bedieners ab.

Distribution ermitteln

Wenn man vergessen hat welche Linux Version installiert ist kann dies so prüfen:

  • Linux Distribution:
$ hostnamectl status
  Operating System: Fedora 33 (Thirty Three)
	    Kernel: Linux 5.10.15-200.fc33.x86_64
  • Ubuntu/Debian Version:
$ lsb_release -d
Description:    Ubuntu 14.04.6 LTS
  • Maschinen Typ: i686 bei 32-Bit x86 und x86_64 bei 64-Bit x86:
$ uname -m
aarch64

Fedora

  • System aktualisieren:
sudo dnf -y update && sudo systemctl daemon-reload
  • Fedora 37/38/39 64-Bit:
sudo dnf -y install \
  bc binutils bison bzip2 ccache cmake cpio curl ecj elfutils-libelf-devel flex ftp gcc gcc-c++ \
  gettext git glib2-devel glibc-devel.i686 gnutls-devel ImageMagick inkscape javapackages-tools \
  kmod libacl-devel libattr-devel libcap-devel libgcc.i686 libglade2-devel \
  libstdc++-devel.i686 libstdc++-devel.x86_64 libtool libuuid-devel libxml2-devel libzstd-devel.x86_64 make \
  ncftp ncurses-devel ncurses-devel.i686 ncurses-term netcat net-tools openssl openssl-devel \
  patch patchutils perl perl-String-CRC32 pkgconfig pv qt5-qtbase-devel readline-devel rpcgen \
  rsync sharutils sqlite-devel sqlite.i686 subversion texinfo unar util-linux wget xz zlib-devel \
  zlib-devel.i686
  • Fedora 36 64-Bit:
sudo dnf -y install \
  autoconf automake bc binutils bison bzip2 ccache cmake cpio curl ecj elfutils-libelf-devel \
  flex gcc gcc-c++ gettext git glib2-devel glibc-devel.i686 gnutls-devel ImageMagick inkscape \
  javapackages-tools kmod libacl-devel libattr-devel libcap-devel libgcc.i686 libglade2-devel \
  libstdc++-devel.i686 libstdc++-devel.x86_64 libtool libuuid-devel libxml2-devel libzstd-devel.x86_64 make \
  ncftp ncurses-devel ncurses-devel.i686 ncurses-term netcat net-tools openssl openssl-devel \
  patch patchutils perl perl-String-CRC32 pkgconfig pv qt5-qtbase-devel readline-devel rpcgen \
  rsync sharutils sqlite-devel sqlite.i686 subversion texinfo unar util-linux wget xz zlib-devel \
  zlib-devel.i686
  • Fedora 35 64-Bit:
sudo dnf -y install \
  autoconf automake bc binutils bison bzip2 ccache cmake cpio curl ecj elfutils-libelf-devel \
  flex gcc gcc-c++ gettext git glib2-devel glibc-devel.i686 gnutls-devel ImageMagick inkscape \
  javapackages-tools kmod libacl-devel libattr-devel libcap-devel libgcc.i686 libglade2-devel \
  libstdc++-devel.i686 libstdc++-devel.x86_64 libtool libuuid-devel libxml2-devel libzstd-devel.x86_64 make \
  ncftp ncurses-devel ncurses-devel.i686 ncurses-term netcat net-tools openssl openssl-devel \
  patch patchutils perl perl-String-CRC32 pkgconfig pv qt5-qtbase-devel readline-devel rpcgen \
  rsync sharutils sqlite-devel sqlite.i686 subversion texinfo unar util-linux wget xz zlib-devel \
  zlib-devel.i686
  • Fedora 33/34 64-Bit:
sudo dnf -y install \
  autoconf automake bc binutils bison bzip2 ccache cmake cpio ecj flex gcc gcc-c++ gettext git \
  glib2-devel glibc-devel.i686 gnutls-devel ImageMagick inkscape kmod libacl-devel libattr-devel \
  libcap-devel libgcc.i686 libglade2-devel libstdc++-devel.i686 libtool libuuid-devel libxml2-devel \
  libzstd-devel.i686 make ncurses-devel ncurses-devel.i686 ncurses-term openssl openssl-devel patch perl \
  perl-String-CRC32 pkgconfig pv qt5-qtbase-devel readline-devel rsync sqlite-devel sqlite.i686 subversion \
  texinfo unar util-linux wget xz zlib-devel zlib-devel.i686
  • Falls auf dem folgenden System ein 64-Bit Linux installiert ist wird zusätzlich benötigt:
sudo yum -y install ncurses-devel.i686 glibc-devel.i686 libgcc.i686
  • Fedora ~20 32-Bit:
sudo yum -y install \
  autoconf automake binutils bison bzip2 ecj flex gcc gcc-c++ gettext git glib2-devel \
  ImageMagick libacl-devel libattr-devel libcap-devel libtool make ncurses-devel patch perl \
  perl-String-CRC32 pkgconfig subversion texinfo wget zlib-devel

Debian

  • System aktualisieren:
sudo apt -y update
sudo apt -y upgrade
sudo apt -y dist-upgrade
  • Debian 12 64-Bit:
sudo apt -y install \
  autopoint bc binutils bison bsdmainutils bzip2 ccache cmake cpio curl ecj flex ftp g++ gawk gcc \
  gcc-multilib gettext git graphicsmagick imagemagick inkscape intltool java-wrappers kmod \
  lib32ncurses5-dev lib32stdc++6 lib32z1-dev libacl1-dev libc6-dev-i386 libcap-dev libelf-dev \
  libglib2.0-dev libgnutls28-dev libncurses5-dev libreadline-dev libsqlite3-dev libssl-dev \
  libstring-crc32-perl libtool-bin libusb-dev libxml2-dev libzstd-dev make netcat-traditional patch perl \
  pkg-config pv rsync sharutils sqlite3 subversion sudo texinfo tofrodos unar unzip uuid-dev wget \
  zlib1g-dev
  • Debian 11 64-Bit:
sudo apt -y install \
  autopoint bc binutils bison bsdmainutils bzip2 ccache cmake cpio curl ecj flex ftp g++ gawk gcc \
  gcc-multilib gettext git graphicsmagick imagemagick inkscape intltool java-wrappers kmod \
  lib32ncurses5-dev lib32stdc++6 lib32z1-dev libacl1-dev libc6-dev-i386 libcap-dev libelf-dev \
  libglib2.0-dev libgnutls28-dev libncurses5-dev libreadline-dev libsqlite3-dev libssl-dev \
  libstring-crc32-perl libtool-bin libusb-dev libxml2-dev libzstd-dev make netcat patch perl pkg-config pv rsync \
  sharutils sqlite3 subversion sudo texinfo tofrodos unar unzip uuid-dev wget zlib1g-dev

Devuan

Devuan wurde schon erfolgreich zum Bauen benutzt. Einfach die Pakete installieren, die für Debian vorgeschlagen werden.

Ubuntu

sudo apt-get -y install console-data && sudo locale-gen de_DE && sudo dpkg-reconfigure console-data && exit
# dpkg --print-foreign-architectures
sudo dpkg --add-architecture i386
sudo apt-get -y update
  • System aktualisieren:
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
  • Ubuntu 23 64-Bit:
sudo apt-get -y install \
  autopoint bc binutils bison bsdmainutils bzip2 ccache cmake cpio curl ecj flex ftp g++ gawk gcc \
  gcc-multilib gettext git graphicsmagick imagemagick inkscape intltool java-wrappers kmod \
  lib32ncurses-dev lib32stdc++6 lib32z1-dev libacl1-dev libc6-dev-i386 libcap-dev libelf-dev \
  libglib2.0-dev libgnutls28-dev libncurses-dev libreadline-dev libsqlite3-dev libssl-dev \
  libstring-crc32-perl libtool-bin libusb-dev libxml2-dev libzstd-dev make ncftp netcat-openbsd net-tools patch \
  patchutils perl pkg-config pv rsync sharutils sqlite3 subversion sudo texinfo tofrodos unar unzip \
  uuid-dev wget zip zlib1g-dev
  • Ubuntu 22 64-Bit:
sudo apt-get -y install \
  autopoint bc binutils bison bsdmainutils bzip2 ccache cmake cpio curl ecj flex ftp g++ gawk gcc \
  gcc-multilib gettext git graphicsmagick imagemagick inkscape intltool java-wrappers kmod \
  lib32ncurses5-dev lib32stdc++6 lib32z1-dev libacl1-dev libc6-dev-i386 libcap-dev libelf-dev \
  libglib2.0-dev libgnutls28-dev libncurses5-dev libreadline-dev libsqlite3-dev libssl-dev \
  libstring-crc32-perl libtool-bin libusb-dev libxml2-dev libzstd-dev make ncftp netcat-openbsd net-tools patch \
  patchutils perl pkg-config pv rsync sharutils sqlite3 subversion sudo texinfo tofrodos unar unzip \
  uuid-dev wget zip zlib1g-dev
  • Ubuntu 20/21 64-Bit:
sudo apt-get -y install \
  autopoint bc binutils bison bsdmainutils bzip2 ccache cmake cpio curl ecj flex ftp g++ gawk gcc \
  gcc-multilib gettext git graphicsmagick imagemagick inkscape intltool java-wrappers kmod \
  lib32ncurses5-dev lib32stdc++6 lib32z1-dev libacl1-dev libc6-dev-i386 libcap-dev libelf-dev \
  libglib2.0-dev libgnutls28-dev libncurses5-dev libreadline-dev libsqlite3-dev libssl-dev \
  libstring-crc32-perl libtool-bin libusb-dev libxml2-dev libzstd-dev make ncftp netcat net-tools patch \
  patchutils perl pkg-config pv rsync sharutils sqlite3 subversion sudo texinfo tofrodos unar unzip \
  uuid-dev wget zip zlib1g-dev
# sqlite-32bit lässt sich mit apt nicht installieren, aber mit apt-get schon. Siehe auch:
# https://developpaper.com/ubuntu-solves-the-problem-of-libsqlite3-0-dependency-recommended/
sudo apt -y install libzstd-dev:i386 sqlite3:i386
  • Ubuntu 18/19 64-Bit:
sudo apt-get -y install \
  autopoint bc binutils bison bsdmainutils build-essential bzip2 ccache cmake cpio curl ecj \
  flex g++ gawk gcc gcc-multilib gettext git graphicsmagick imagemagick inkscape intltool kmod \
  lib32ncurses5-dev lib32stdc++6 lib32z1-dev libacl1-dev libc6-dev-i386 libcap-dev libglib2.0-dev \
  libgnutls28-dev libncurses5-dev libreadline-dev libsqlite3-dev libssl-dev libstring-crc32-perl \
  libtool-bin libusb-dev libzstd-dev make ncftp netcat net-tools openssl patch patchutils perl \
  pkg-config pv rsync sqlite3 subversion sudo texinfo tofrodos unar unzip uuid-dev wget zlib1g-dev
  • Ubuntu 15/16/17 64-Bit:
sudo apt-get -y install \
  autoconf automake autopoint bc binutils bison bsdmainutils bzip2 cpio ecj flex g++ gawk gcc \
  gcc-multilib gettext git graphicsmagick imagemagick inkscape intltool kmod lib32ncurses5-dev \
  lib32stdc++6 libacl1-dev libc6-dev-i386 libcap-dev libglib2.0-dev libncurses5-dev libreadline-dev \
  libstring-crc32-perl libtool-bin libusb-dev make patch perl pkg-config pv realpath rsync subversion sudo texinfo \
  tofrodos unar unzip wget zlib1g-dev
  • Ubuntu 14 64-Bit:
sudo apt-get -y install \
  autoconf automake automake1.9 autopoint bc binutils bison bsdmainutils build-essential \
  bzip2 ccache cmake cpio curl ecj flex g++ gawk gcc gcc-multilib gettext git graphicsmagick \
  imagemagick inkscape intltool kmod lib32ncurses5-dev lib32stdc++6 lib32z1-dev libacl1-dev \
  libc6-dev-i386 libcap-dev libglib2.0-dev libncurses5-dev libreadline-dev libsqlite3-dev \
  libstring-crc32-perl libtool libusb-dev make netcat openssl patch perl pkg-config pv realpath rsync sqlite3 \
  subversion sudo texinfo tofrodos unar unzip wget zlib1g-dev

Zusätzlich muss manuell installiert werden:

cmake min v3.4.3  https://ftp.osuosl.org/pub/blfs/conglomeration/cmake/cmake-3.4.3.tar.gz
cpio min v2.12    https://ftp.gnu.org/gnu/cpio/cpio-2.12.tar.bz2
make min v3.82    https://ftp.gnu.org/gnu/make/make-3.82.tar.bz2
libzstd min v0    https://github.com/facebook/zstd/releases/download/v1.4.9/zstd-1.4.9.tar.gz

Und ausserdem falls ccache gebaut werden soll:

cmake min v3.10   https://ftp.osuosl.org/pub/blfs/conglomeration/cmake/cmake-3.10.3.tar.gz
gmp min v4.2      https://ftp.gnu.org/gnu/gmp/gmp-4.2.4.tar.bz2
mpfr min v2.4     https://ftp.gnu.org/gnu/mpfr/mpfr-2.4.2.tar.xz
mpc min v0.8      https://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz
gcc min v6        https://ftp.gnu.org/gnu/gcc/gcc-6.5.0/gcc-6.5.0.tar.xz
# export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/lib64:/usr/local/lib32"
  • Falls auf den folgenden Systemen ein 64-Bit Linux installiert ist wird zusätzlich benötigt:
sudo apt-get -y install libc6-dev-i386 lib32ncurses5-dev gcc-multilib lib32stdc++6
  • Ubuntu 15 32-Bit / Debian 8: Zusätzlich zu Ubuntu 13/14 32-Bit wird benötigt:
sudo apt-get -y install libtool-bin
  • Ubuntu 13/14 32-Bit:
sudo apt-get -y install \
  autoconf automake automake1.9 binutils bison bzip2 ecj fastjar flex g++ gawk gcc gettext \
  graphicsmagick intltool libacl1-dev libcap-dev libncurses5-dev libreadline-dev libstring-crc32-perl \
  libtool libusb-dev make patch perl pkg-config python realpath subversion texinfo tofrodos unzip \
  zlib1g-dev
  • Ubuntu 10/11/12 32-Bit:
sudo apt-get -y install \
  autoconf automake binutils bison bzip2 ecj fastjar flex g++ gawk gcc gettext git-core \
  imagemagick intltool libacl1-dev libattr1-dev libcap-dev libglib2.0-dev libncurses5-dev \
  libreadline-dev libstring-crc32-perl libtool libusb-dev make patch perl pkg-config python realpath \
  subversion texinfo tofrodos unzip xz-utils zlib1g-dev
  • Ubuntu 9.04 32-Bit (kein automake 1.8, "ecj" statt "ecj-bootstrap"):
sudo apt-get -y install \
  autoconf automake automake1.9 binutils bison bzip2 ecj fastjar flex g++ gawk gcc gettext \
  git-core imagemagick intltool jikes libacl1-dev libattr1-dev libcap-dev libglib2.0-dev \
  libncurses5-dev libreadline-dev libstring-crc32-perl libtool libusb-dev make patch perl pkg-config \
  python realpath subversion texinfo tofrodos unzip xz-utils zlib1g-dev

Kali

Kali rolling wurde schon erfolgreich zum Bauen benutzt. Einfach die Pakete installieren, die für Ubuntu vorgeschlagen werden. Das meiste wird bei Kali sowieso schon dabei installiert sein.