mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
updates for linux and mac
This commit is contained in:
parent
64f7e0c574
commit
f31b0c72c1
59
.travis.yml
59
.travis.yml
@ -15,27 +15,50 @@ addons:
|
|||||||
apt:
|
apt:
|
||||||
update: true
|
update: true
|
||||||
packages:
|
packages:
|
||||||
|
- openjdk-17-jdk
|
||||||
|
- openjdk-17-jre
|
||||||
|
- build-essential
|
||||||
|
- autoconf
|
||||||
|
- libtool
|
||||||
|
- automake
|
||||||
|
- git
|
||||||
|
- zip
|
||||||
|
- wget
|
||||||
|
- ant
|
||||||
|
- libde265-dev
|
||||||
|
- libheif-dev
|
||||||
|
- libpq-dev
|
||||||
- testdisk
|
- testdisk
|
||||||
- libafflib-dev
|
- libafflib-dev
|
||||||
- libewf-dev
|
- libewf-dev
|
||||||
- libpq-dev
|
- libvhdi-dev
|
||||||
- autopoint
|
- libvmdk-dev
|
||||||
- libsqlite3-dev
|
- libgstreamer1.0-0
|
||||||
- ant
|
- gstreamer1.0-plugins-base
|
||||||
- ant-optional
|
- gstreamer1.0-plugins-good
|
||||||
- libcppunit-dev
|
- gstreamer1.0-plugins-bad
|
||||||
- wget
|
- gstreamer1.0-plugins-ugly
|
||||||
|
- gstreamer1.0-libav
|
||||||
|
- gstreamer1.0-tools
|
||||||
|
- gstreamer1.0-x
|
||||||
|
- gstreamer1.0-alsa
|
||||||
|
- gstreamer1.0-gl
|
||||||
|
- gstreamer1.0-gtk3
|
||||||
|
- gstreamer1.0-qt5
|
||||||
|
- gstreamer1.0-pulseaudio
|
||||||
homebrew:
|
homebrew:
|
||||||
update: true
|
update: true
|
||||||
packages:
|
packages:
|
||||||
|
- openjdk@17
|
||||||
- ant
|
- ant
|
||||||
- wget
|
- automake
|
||||||
- libpq
|
- libtool
|
||||||
- libewf
|
|
||||||
- gettext
|
|
||||||
- cppunit
|
|
||||||
- afflib
|
- afflib
|
||||||
|
- libewf
|
||||||
|
- postgresql@15
|
||||||
- testdisk
|
- testdisk
|
||||||
|
- libheif
|
||||||
|
- gstreamer
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- 2.7
|
- 2.7
|
||||||
@ -49,19 +72,11 @@ install:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- if [ $TRAVIS_OS_NAME = linux ]; then
|
- if [ $TRAVIS_OS_NAME = linux ]; then
|
||||||
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-java17-full;
|
|
||||||
export PATH=/usr/bin:$PATH;
|
export PATH=/usr/bin:$PATH;
|
||||||
export JAVA_HOME=/usr/lib/jvm/bellsoft-java17-full-amd64;
|
export JAVA_HOME=/usr/lib/jvm/java-1.17.0-openjdk-amd64;
|
||||||
fi
|
fi
|
||||||
- if [ $TRAVIS_OS_NAME = osx ]; then
|
- if [ $TRAVIS_OS_NAME = osx ]; then
|
||||||
brew uninstall java --force --ignore-dependencies;
|
export JAVA_HOME=$(/usr/libexec/java_home -v 17);
|
||||||
brew cask uninstall java --force;
|
|
||||||
brew tap bell-sw/liberica;
|
|
||||||
brew install --cask liberica-jdk17-full;
|
|
||||||
export JAVA_HOME=/Library/Java/JavaVirtualMachines/liberica-jdk-17-full.jdk/Contents/Home;
|
|
||||||
fi
|
fi
|
||||||
- java -version
|
- java -version
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@ correct C libraries.
|
|||||||
STEPS:
|
STEPS:
|
||||||
1) Get Java Setup
|
1) Get Java Setup
|
||||||
|
|
||||||
1a) Download and install 64-bit JDK version 17 with JavaFX.
|
1a) Download and install 64-bit JDK version 17.
|
||||||
|
|
||||||
Autopsy has been used and tested with liberica java which can be downloaded from here: https://bell-sw.com/pages/downloads/.
|
Autopsy has been used and tested with java 17 which can be downloaded from here: https://www.oracle.com/java/technologies/downloads/#java17.
|
||||||
|
|
||||||
|
|
||||||
1b) Ensure that JDK_HOME is set to the root JDK directory.
|
1b) Ensure that JDK_HOME is set to the root JDK directory.
|
||||||
|
@ -43,8 +43,8 @@ This section lists the software components and libraries that are used by
|
|||||||
Autopsy. These tools are bundled with the Windows installer, unless specified otherwise.
|
Autopsy. These tools are bundled with the Windows installer, unless specified otherwise.
|
||||||
|
|
||||||
JRE (Java Runtime Environment) 17
|
JRE (Java Runtime Environment) 17
|
||||||
- Web page: https://bell-sw.com/pages/downloads/
|
- Web page: https://www.oracle.com/java/technologies/downloads/#java17
|
||||||
- License: https://bell-sw.com/liberica_eula/
|
- License: https://www.oracle.com/a/tech/docs/jdk17-lium.pdf
|
||||||
|
|
||||||
Netbeans 15 RCP platform and .jar files bundled with the platform
|
Netbeans 15 RCP platform and .jar files bundled with the platform
|
||||||
- Web page: https://netbeans.apache.org/
|
- Web page: https://netbeans.apache.org/
|
||||||
|
@ -13,7 +13,7 @@ When installing on Debian-based Linux or macOS systems, there are three general
|
|||||||
|
|
||||||
# Installing Autopsy
|
# 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").
|
- 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-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.
|
- 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/java-1.17.0-openjdk-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 in the result of running `update-java-alternatives -l | grep java-1.17` on Debian-based Linux or the output of running `/usr/libexec/java_home -v 17` on macOS.
|
||||||
|
|
||||||
# Setup macOS JNA paths
|
# 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`.
|
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,9 +26,9 @@ 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.
|
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:
|
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 = 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7-LTS; BellSoft
|
Java; VM; Vendor = 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7-Ubuntu-0ubuntu122.04.2; Private Build
|
||||||
Runtime = OpenJDK Runtime Environment 17.0.7+7-LTS
|
Runtime = OpenJDK Runtime Environment 17.0.7+7-Ubuntu-0ubuntu122.04.2
|
||||||
Java Home = /usr/lib/jvm/bellsoft-java17-full-amd64
|
Java Home = /usr/lib/jvm/java-17-openjdk-amd64
|
||||||
```
|
```
|
||||||
|
|
||||||
If your `messages.log` file indicates that Java 17 is not being used:
|
If your `messages.log` file indicates that Java 17 is not being used:
|
||||||
|
@ -11,14 +11,13 @@ platform: x64
|
|||||||
environment:
|
environment:
|
||||||
global:
|
global:
|
||||||
TSK_HOME: "C:\\sleuthkit"
|
TSK_HOME: "C:\\sleuthkit"
|
||||||
JDK_HOME: C:\Program Files\BellSoft\LibericaJDK-17-Full
|
JDK_HOME: C:\Program Files\Java\jdk17
|
||||||
JAVA_HOME: C:\Program Files\BellSoft\LibericaJDK-17-Full
|
JAVA_HOME: C:\Program Files\Java\jdk17
|
||||||
PYTHON: "C:\\Python36-x64"
|
PYTHON: "C:\\Python36-x64"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: choco install nuget.commandline
|
- ps: choco install nuget.commandline
|
||||||
- ps: choco install ant --ignore-dependencies
|
- ps: choco install ant --ignore-dependencies
|
||||||
- ps: choco install liberica17jdkfull --force
|
|
||||||
- git clone https://github.com/sleuthkit/sleuthkit
|
- git clone https://github.com/sleuthkit/sleuthkit
|
||||||
- ps: $env:Path="$($env:JAVA_HOME)\bin;$($env:Path);C:\ProgramData\chocolatey\lib\ant"
|
- ps: $env:Path="$($env:JAVA_HOME)\bin;$($env:Path);C:\ProgramData\chocolatey\lib\ant"
|
||||||
- set PATH=C:\Python36-x64\';%PATH%
|
- set PATH=C:\Python36-x64\';%PATH%
|
||||||
|
@ -1,15 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "Installing liberica java 17..."
|
echo "Installing dependencies..."
|
||||||
brew tap bell-sw/liberica && \
|
brew install openjdk@17 ant automake libtool afflib libewf postgresql@15 testdisk libheif gstreamer
|
||||||
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 ]]
|
if [[ $? -ne 0 ]]
|
||||||
then
|
then
|
||||||
|
@ -11,7 +11,9 @@ fi
|
|||||||
|
|
||||||
echo "Installing all apt dependencies..."
|
echo "Installing all apt dependencies..."
|
||||||
sudo apt update && \
|
sudo apt update && \
|
||||||
sudo apt -y install build-essential autoconf libtool automake git zip wget ant \
|
sudo apt -y install \
|
||||||
|
openjdk-17-jdk openjdk-17-jre \
|
||||||
|
build-essential autoconf libtool automake git zip wget ant \
|
||||||
libde265-dev libheif-dev \
|
libde265-dev libheif-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
testdisk libafflib-dev libewf-dev libvhdi-dev libvmdk-dev \
|
testdisk libafflib-dev libewf-dev libvhdi-dev libvmdk-dev \
|
||||||
@ -24,18 +26,6 @@ if [[ $? -ne 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
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-java17-full &&
|
|
||||||
popd
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
echo "Failed to install bellsoft java 17" >>/dev/stderr
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Autopsy prerequisites installed."
|
echo "Autopsy prerequisites installed."
|
||||||
echo "Java path at /usr/lib/jvm/bellsoft-java17-full-amd64: "
|
echo "Java 17 instllation: "
|
||||||
ls /usr/lib/jvm/bellsoft-java17-full-amd64
|
update-java-alternatives -l | grep java-1.17
|
||||||
|
Loading…
x
Reference in New Issue
Block a user