when the linux distro is not supported or is arch based, the setup.sh exits after giving install instructions and before sourcing the gdbinit. by moving this block to before any ``exit 1``'s are called, making it so that the source line is always there no matter what.
Package glibc-debuginfo, which is a requirement,
requires repo-debug to be enabled, which is not enabled
by default.
This commit enables this repo when installing if it is
not already enabled.
Containers created with Podman (https://podman.io/) don't have a
.dockerenv file in the root directory, so setup.sh tries to invoke sudo.
This doesn't work because podman containers can't use sudo (the
processes inside the container run as an unprivileged user).
This removes the check for .dockerenv. The other checks should already
be sufficient to detect that it's running in a container without sudo.
There was a quoting bug as `INSTALLFLAGS` contains both the option key and value.
This causes the subsequent commands to look something like `python ... '--target foo'...`, causing
the command to treat the entire string `--target foo` as an option key rather than a key-value pair.
* Added install to apt line: fixed bug mentioned by @martinclauss in #748 that might be needed for Ubuntu <20.04.
* Added git to apt-get, which is needed for a docker run -it ubuntu
* Make setup.sh work with Docker on root w/o sudo
* setup.sh: fallback to apt/dnf
If the OS is not detected/supported, try checking for apt/dnf.
* setup.sh: inform about arch's AUR package
* Added the installation script for each distros.
This commit adds the installation script for each distros in setup.sh.
Also, the content of the script was changed to install all the required packages for pwndbg in each distros.
Fixed : #296
Signed-off-by: Claudia J. Kang <claudiajkang@gmail.com>
* Fedora installation: add make to dnf install
* Use Pip version of Unicorn
* Remove capstone submodule
* Allow installation to the user site-packages for Darwin, since SIP prevents installation to the system site-packages
* Add helper functions and fix Python calls
* Remove duplicated code (rebase issues?)
* Install GDB before attempting to install Pwndbg
* Bail if GDB is not found
* Revert "Remove --target from setup.sh"
This reverts commit 62b772a3d6.
* Revert "Remove unused variables from setup.sh"
This reverts commit 9042f5f761.
* Remove unused variables from setup.sh
* Ensure that pip is available via ensurepip
* Upgrade pip itself
* There is no ensurepip for Ubuntu installs
* Fix typo, use correct Python
Your install instructions say to cd into the top level pwndbg directory and run ./setup.sh. This causes your last popd on line 27 to put you back there, and then line 32 adds an extra /pwndbg/ to the path of gdbinit.py so gdb can't find it on launch.