mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
merge from jdk17_upgrade and new_table_load
This commit is contained in:
commit
213a68cc7c
@ -52,16 +52,16 @@ before_script:
|
||||
wget -q -O - https://download.bell-sw.com/pki/GPG-KEY-bellsoft | sudo apt-key add -;
|
||||
echo "deb [arch=amd64] https://apt.bell-sw.com/ stable main" | sudo tee /etc/apt/sources.list.d/bellsoft.list;
|
||||
sudo apt-get update;
|
||||
sudo apt-get install bellsoft-java11-full;
|
||||
sudo apt-get install bellsoft-java17-full;
|
||||
export PATH=/usr/bin:$PATH;
|
||||
export JAVA_HOME=/usr/lib/jvm/bellsoft-java11-full-amd64;
|
||||
export JAVA_HOME=/usr/lib/jvm/bellsoft-java17-full-amd64;
|
||||
fi
|
||||
- if [ $TRAVIS_OS_NAME = osx ]; then
|
||||
brew uninstall java --force --ignore-dependencies;
|
||||
brew cask uninstall java --force;
|
||||
brew tap bell-sw/liberica;
|
||||
brew cask install liberica-jdk11-full;
|
||||
export JAVA_HOME=/Library/Java/JavaVirtualMachines/liberica-jdk-11-full.jdk/Contents/Home;
|
||||
brew install --cask liberica-jdk17-full;
|
||||
export JAVA_HOME=/Library/Java/JavaVirtualMachines/liberica-jdk-17-full.jdk/Contents/Home;
|
||||
fi
|
||||
- java -version
|
||||
|
||||
|
@ -5,15 +5,15 @@ When installing on Debian-based Linux or macOS systems, there are three general
|
||||
- **Linux**: Run [`linux_macos_install_scripts/install_prereqs_ubuntu.sh`](./linux_macos_install_scripts/install_prereqs_ubuntu.sh).
|
||||
- **macOS**: Run [`linux_macos_install_scripts/install_prereqs_macos.sh`](./linux_macos_install_scripts/install_prereqs_macos.sh). This script requires the package manager: [Homebrew](https://brew.sh/), which has installation steps on their site.
|
||||
|
||||
*NOTE: The last output of the script is the path to the Java 8 installation. You will want to note that path when installing Autopsy.*
|
||||
*NOTE: The last output of the script is the path to the Java 17 installation. You will want to note that path when installing Autopsy.*
|
||||
|
||||
# Installing The Sleuth Kit
|
||||
- **Linux**: Download the .deb file for the release you want to install from the [release section](https://github.com/sleuthkit/sleuthkit/releases). Install The Sleuth Kit package from the repositories with the following command: `sudo apt update && sudo apt install /path/to/sleuthkit-version.deb`.
|
||||
- **macOS**: Ensure that for this session, your `JAVA_HOME` variable is set to the java 8 installation by running `export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)/bin/java`. Then, install The Sleuth Kit from source by running [`linux_macos_install_scripts/install_tsk_from_src.sh`](./linux_macos_install_scripts/install_tsk_from_src.sh), which will download, build, and install The Sleuth Kit. It can be run as follows: `install_tsk_from_src.sh -p ~/src/sleuthkit -b sleuthkit-4.11.1`. Make sure that your path to download source ends with "sleuthkit" as the last directory, and the release is the corresponding tag in the [repository](https://github.com/sleuthkit/sleuthkit).
|
||||
- **macOS**: Ensure that for this session, your `JAVA_HOME` variable is set to the java 17 installation by running `export JAVA_HOME=$(/usr/libexec/java_home -v 17)/bin/java`. Then, install The Sleuth Kit from source by running [`linux_macos_install_scripts/install_tsk_from_src.sh`](./linux_macos_install_scripts/install_tsk_from_src.sh), which will download, build, and install The Sleuth Kit. It can be run as follows: `install_tsk_from_src.sh -p ~/src/sleuthkit -b sleuthkit-4.11.1`. Make sure that your path to download source ends with "sleuthkit" as the last directory, and the release is the corresponding tag in the [repository](https://github.com/sleuthkit/sleuthkit).
|
||||
|
||||
# Installing Autopsy
|
||||
- Download the Autopsy zip file from [repository releases](https://github.com/sleuthkit/autopsy/releases). The file will be marked as "autopsy-<release>.zip" (i.e. "autopsy-4.19.2.zip").
|
||||
- Run [`install_application.sh`](./linux_macos_install_scripts/install_application.sh) with the following parameters: `install_application.sh [-z zip_path] [-i install_directory] [-j java_home]`. An example would be `install_application.sh -z ~/Downloads/autopsy-4.19.2.zip -i ~/autopsy -j /usr/lib/jvm/bellsoft-java8-full-amd64`. The path to the Java 8 home is the last output from the [prequisites installation scripts](#installing-prerequisites), but typically, the path will be `/usr/lib/jvm/bellsoft-java8-full-amd64` on Debian-based Linux or the output of running `/usr/libexec/java_home -v 1.8` on macOS.
|
||||
- Run [`install_application.sh`](./linux_macos_install_scripts/install_application.sh) with the following parameters: `install_application.sh [-z zip_path] [-i install_directory] [-j java_home]`. An example would be `install_application.sh -z ~/Downloads/autopsy-4.19.2.zip -i ~/autopsy -j /usr/lib/jvm/bellsoft-java17-full-amd64`. The path to the Java 17 home is the last output from the [prequisites installation scripts](#installing-prerequisites), but typically, the path will be `/usr/lib/jvm/bellsoft-java17-full-amd64` on Debian-based Linux or the output of running `/usr/libexec/java_home -v 17` on macOS.
|
||||
|
||||
# Setup macOS JNA paths
|
||||
If you are on macOS, run [linux_macos_install_scripts/add_macos_jna.sh](./linux_macos_install_scripts/add_macos_jna.sh) to properly setup the jna path to get things like gstreamer working. An example would be `add_macos_jna.sh -i ~/autopsy`.
|
||||
@ -26,13 +26,13 @@ If you are on macOS, run [linux_macos_install_scripts/add_macos_jna.sh](./linux_
|
||||
the wrong version of Java is being used to run Autopsy.
|
||||
Check the version of Java reported in the `messages.log` file in the log directory. The log directory can be found by opening Autopsy, and, with no cases open, go to 'Help' > 'Open Log Folder'. `messages.log` should contain lines that looks like:
|
||||
```
|
||||
Java; VM; Vendor = 1.8.0_342; OpenJDK 64-Bit Server VM 25.342-b07; BellSoft
|
||||
Runtime = OpenJDK Runtime Environment 1.8.0_342-b07
|
||||
Java Home = /usr/lib/jvm/bellsoft-java8-full-amd64/jre
|
||||
Java; VM; Vendor = 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7-LTS; BellSoft
|
||||
Runtime = OpenJDK Runtime Environment 17.0.7+7-LTS
|
||||
Java Home = /usr/lib/jvm/bellsoft-java17-full-amd64
|
||||
```
|
||||
|
||||
If your `messages.log` file indicates that Java 8 is not being used:
|
||||
- Confirm that you have a version of Java 8 installed
|
||||
If your `messages.log` file indicates that Java 17 is not being used:
|
||||
- Confirm that you have a version of Java 17 installed
|
||||
- Confirm that your java path environment variable is set correctly. Autopsy first uses the value of `jdkhome` in `<autopsy_install_location>/etc/autopsy.conf`, so look for an uncommented line (not starting with '#') that looks like `jdkhome=<java path>`. If that is not set, check your `$JAVA_HOME` environment variable by running `echo $JAVA_HOME`.
|
||||
- If you see something like "cannot be opened because the developer cannot be verified." it is an indication that Gatekeeper is running and is stopping a file from being executed. To fix this open a new terminal window and enter the following command `sudo spctl --master-disable`, you will be required to enter your password. This will allow any program to be be downloaded from anywhere and executed.
|
||||
- On initial run, Autopsy shows a window that can appear behind the splash screen. This looks like Autopsy has stalled during startup. The easiest way to get around this issue for the first run is to run autopsy with the `--nosplash` flag, which will hide the splash screen on startup. There will be a lag where no window appears for a bit, so please be patient.
|
||||
|
@ -11,14 +11,14 @@ platform: x64
|
||||
environment:
|
||||
global:
|
||||
TSK_HOME: "C:\\sleuthkit"
|
||||
JDK_HOME: C:\Program Files\BellSoft\LibericaJDK-11-Full
|
||||
JAVA_HOME: C:\Program Files\BellSoft\LibericaJDK-11-Full
|
||||
JDK_HOME: C:\Program Files\BellSoft\LibericaJDK-17-Full
|
||||
JAVA_HOME: C:\Program Files\BellSoft\LibericaJDK-17-Full
|
||||
PYTHON: "C:\\Python36-x64"
|
||||
|
||||
install:
|
||||
- ps: choco install nuget.commandline
|
||||
- ps: choco install ant --ignore-dependencies
|
||||
- ps: choco install liberica11jdkfull --force
|
||||
- ps: choco install liberica17jdkfull --force
|
||||
- git clone https://github.com/sleuthkit/sleuthkit
|
||||
- ps: $env:Path="$($env:JAVA_HOME)\bin;$($env:Path);C:\ProgramData\chocolatey\lib\ant"
|
||||
- set PATH=C:\Python36-x64\';%PATH%
|
||||
|
@ -60,14 +60,12 @@ if [[ -n "$ASC_FILE" ]] && [[ -n "$APPLICATION_ZIP_PATH" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
ZIP_FILE_NAME=$(basename -- "$APPLICATION_ZIP_PATH")
|
||||
ZIP_NAME="${ZIP_FILE_NAME%.*}"
|
||||
APPLICATION_EXTRACTED_PATH=$INSTALL_DIR/$ZIP_NAME/
|
||||
APPLICATION_EXTRACTED_PATH=$INSTALL_DIR/
|
||||
|
||||
# if specifying a zip path, ensure directory doesn't exist and then create and extract
|
||||
if [[ -n "$APPLICATION_ZIP_PATH" ]]; then
|
||||
if [[ -d $APPLICATION_EXTRACTED_PATH || -f $APPLICATION_EXTRACTED_PATH ]]; then
|
||||
echo "A file or directory already exists at $APPLICATION_EXTRACTED_PATH" >>/dev/stderr
|
||||
if [[ -f $APPLICATION_EXTRACTED_PATH ]]; then
|
||||
echo "A file already exists at $APPLICATION_EXTRACTED_PATH" >>/dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -1,7 +1,15 @@
|
||||
#!/bin/bash
|
||||
echo "Installing dependencies..."
|
||||
brew install ant automake libtool afflib libewf postgresql testdisk libheif \
|
||||
gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly gstreamer
|
||||
echo "Installing liberica java 17..."
|
||||
brew tap bell-sw/liberica && \
|
||||
brew install --cask liberica-jdk17-full
|
||||
if [[ $? -ne 0 ]]
|
||||
then
|
||||
echo "Unable to install liberica java" >> /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Installing remaining dependencies..."
|
||||
brew install ant automake libtool afflib libewf postgresql@15 testdisk libheif gstreamer
|
||||
|
||||
if [[ $? -ne 0 ]]
|
||||
then
|
||||
@ -9,14 +17,5 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Installing liberica java 8..."
|
||||
brew tap bell-sw/liberica && \
|
||||
brew install --cask liberica-jdk8-full
|
||||
if [[ $? -ne 0 ]]
|
||||
then
|
||||
echo "Unable to install liberica java" >> /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
|
||||
java_path=$(/usr/libexec/java_home -v 1.8)
|
||||
echo "Java 1.8 path: $java_path"
|
||||
java_path=$(/usr/libexec/java_home -v 17)
|
||||
echo "Java 17 path: $java_path"
|
@ -24,18 +24,18 @@ if [[ $? -ne 0 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Installing bellsoft Java 8..."
|
||||
echo "Installing bellsoft Java 17..."
|
||||
pushd /usr/src/ &&
|
||||
wget -q -O - https://download.bell-sw.com/pki/GPG-KEY-bellsoft | sudo apt-key add - &&
|
||||
echo "deb [arch=amd64] https://apt.bell-sw.com/ stable main" | sudo tee /etc/apt/sources.list.d/bellsoft.list &&
|
||||
sudo apt update &&
|
||||
sudo apt -y install bellsoft-java8-full &&
|
||||
sudo apt -y install bellsoft-java17-full &&
|
||||
popd
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Failed to install bellsoft java 8" >>/dev/stderr
|
||||
echo "Failed to install bellsoft java 17" >>/dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Autopsy prerequisites installed."
|
||||
echo "Java path at /usr/lib/jvm/bellsoft-java8-full-amd64: "
|
||||
ls /usr/lib/jvm/bellsoft-java8-full-amd64
|
||||
echo "Java path at /usr/lib/jvm/bellsoft-java17-full-amd64: "
|
||||
ls /usr/lib/jvm/bellsoft-java17-full-amd64
|
Loading…
x
Reference in New Issue
Block a user