Created
May 29, 2019 18:30
-
-
Save stevecheckoway/c5ad318e8c0c1f55a49905a8494bfad8 to your computer and use it in GitHub Desktop.
Revisions
-
stevecheckoway created this gist
May 29, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,57 @@ # 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 ```