Install#

Prepare your environment#

Windows: Install WSL2#

  • Install Windows Subsystem for Linux (Windows Feature)

  • Start an administrative Power Shell

  • wsl --install -d Debian

  • Reference

Linux and macOS#

Restsh runs in any current Linux environment and also on macOS. The Bash shell is required.

Clone the repository#

Personally, I manage all my Git repositories in a git folder in my home directory.

mkdir ~/git
cd ~/git

With HTTPS

git clone https://github.com/AxiansITSecurity/Restsh.git

With SSH

git@github.com:AxiansITSecurity/Restsh.git

Setup#

Change your working directory into the cloned folder and run the setup script.

cd Restsh
restsh/restsh.setup init

This adjusts your .bashrc, sets an alias for restsh and creates the .restsh-config folder in your home directory.

Your .bashsrc should now have entries like:

export RESTSH_CONFIG_PATH=/home/juergen/.restsh-config
alias restsh="/home/juergen/git/Restsh/restsh/restsh.start"
alias restsh.setup="/home/juergen/git/Restsh/restsh/restsh.setup"

Re-open the terminal or run . ~/.bashrc.