Skip to content

Instantly share code, notes, and snippets.

@stevecheckoway
Created May 29, 2019 18:30
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save stevecheckoway/c5ad318e8c0c1f55a49905a8494bfad8 to your computer and use it in GitHub Desktop.
Save stevecheckoway/c5ad318e8c0c1f55a49905a8494bfad8 to your computer and use it in GitHub Desktop.
Installing Ghidra Server on Ubuntu 18.04.2 LTS

Installation on Ubuntu 18.04.2 LTS

  1. Install the jdk.

    $ sudo apt update
    $ sudo apt install default-jdk
    
  2. Create a new user.

    $ sudo adduser --system --home /home/ghidra --group --disabled-password --disabled-login ghidra
    
  3. Create a new directory for repositories

    $ sudo mkdir /home/ghidra/repositories
    $ sudo chown ghidra:ghidra /home/ghidra/repositories
    
  4. Unzip ghidra_version.zip in /home/ghidra.

    $ cd /home/ghidra
    $ sudo unzip /path/to/ghidra_version.zip
    $ chown -R ghidra:ghidra ghidra_version
    
  5. Edit /home/ghidra/ghidra_version/server/server.conf. Set the following values.

    wrapper.app.account=ghidra
    wrapper.java.maxmemory=4096
    wrapper.logfile.maxfiles=1000
    ghidra.repositories.dir=/home/ghidra/repositories
    
  6. Install the server.

    $ sudo /home/ghidra/ghidra_version/server/svrInstall
    
  7. Fix server/svrAdmin. The penultimate line should read

    $SUDO -u $OWNER "$0" "$@"
    
  8. Add a user.

    $ sudo server/svrAdmin -add steve
    
@w1ne
Copy link

w1ne commented Oct 27, 2022

Thanks, useful tutorial to save time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment