$ sudo apt update
$ sudo apt install default-jdk
Edit /etc/environment
. Append the following line.
JAVA_HOME=/usr/lib/jvm/default-java
Source the /etc/environment
file to apply this environment variable.
$ source /etc/environment
$ sudo adduser --system --home /home/ghidra --group --disabled-password --disabled-login ghidra
$ sudo mkdir /home/ghidra/repositories
$ sudo chown ghidra:ghidra /home/ghidra/repositories
$ cd /home/ghidra
$ sudo unzip /path/to/ghidra_version.zip
$ chown -R ghidra:ghidra ghidra_version
Edit /home/ghidra/ghidra_version/server/server.conf
. Set the following values.
wrapper.app.account=ghidra
ghidra.repositories.dir=/home/ghidra/repositories
Ghidra checks if the jvm version installed is a 64bit version. Since the odroid does not support 64-bit, this check needs to be disabled.
In file /home/ghidra/ghidra_current/server/ghidraSvr
comment the line which starts with JAVA_HOME.
...
# Get the java that will be used to launch GhidraServer
### Comment this Line ### JAVA_HOME=$($JAVA_CMD -cp "${LS_CPATH}" LaunchSupport "${GHIDRA_HOME}" -java_home)
if [ ! $? -eq 0 ]; then
reportError "Failed to find a supported Java runtime. Please refer to the Ghidra Installation Guide's Troubleshooting section."
fi
...
In file /home/ghidra/ghidra_current/support/launch.sh
comment the line which starts with JAVA_HOME.
...
# Get the JDK that will be used to launch Ghidra
### Comment this Line ### JAVA_HOME="$(java -cp "${LS_CPATH}" LaunchSupport "${INSTALL_DIR}" -jdk_home -save)"
if [ ! $? -eq 0 ]; then
# No JDK has been setup yet. Let the user choose one.
java -cp "${LS_CPATH}" LaunchSupport "${INSTALL_DIR}" -jdk_home -ask
...
$ sudo /home/ghidra/ghidra_version/server/svrInstall
$ sudo server/svrAdmin -add steve