diff --git a/installation/README.md b/installation/README.md index 5b026815ec87206dc820a8c3070693a00405bb48..7b85bdf336b3a1e7861a44efb5ae56768958b6d5 100644 --- a/installation/README.md +++ b/installation/README.md @@ -18,23 +18,9 @@ ``` brew install --cask liberica-jdk8-full ``` -- You will need to set this Java to `JAVA_HOME` with something like: +- You will need the java path for properly setting up autopsy. You can get the path to java by calling: ``` - export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) && \ - echo 'export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)' | tee ~/.bash_profile - ``` -- and properly link it to the OpenJDK location: - ``` - OPEN_JDK_LN=/usr/local/opt/openjdk && \ - rm $ && \ - ln -s $JAVA_HOME $OPEN_JDK_LN - ``` -- Finally, you can verify this version of Java with: - ``` - echo "/usr/local/opt/openjdk now is:" - ls -l /usr/local/opt/openjdk - echo "Java Version is:" - java -version + /usr/libexec/java_home -v 1.8 ``` ## On Linux (Ubuntu / Debian-based) @@ -46,14 +32,15 @@ ``` - Use `apt` to install dependencies: ``` - sudo apt -y install \ - libpq-dev \ - ant build-essential autoconf libtool git-core automake git zip wget \ - libheif-dev libde265-dev libmagickcore-dev imagemagick \ - testdisk libafflib-dev libewf-dev libvhdi-dev libvmdk-dev \ - libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad \ - gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x \ - gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio + sudo apt update && \ + sudo apt -y build-dep imagemagick libmagickcore-dev && \ + sudo apt -y install build-essential autoconf libtool git-core automake git zip wget ant \ + libde265-dev libheif-dev \ + libpq-dev \ + testdisk libafflib-dev libewf-dev libvhdi-dev libvmdk-dev \ + libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad \ + gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x \ + gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio ``` - You will also need to install Java 8 and JavaFX to run autopsy. We recommend Liberica OpenJDK which can be installed as follows: ``` @@ -64,16 +51,7 @@ sudo apt -y install bellsoft-java8-full && \ popd ``` -- Then, you will need to set this Java to `JAVA_HOME` with something like:e - ``` - export JAVA_HOME=/usr/lib/jvm/bellsoft-java8-full-amd64 && \ - echo 'export JAVA_HOME=/usr/lib/jvm/bellsoft-java8-full-amd64' | tee ~/.profile - ``` -- Finally, you can verify this version of Java with: - ``` - echo "Java Version is:" - java -version - ``` +- Take note of the location of the java 1.8 install. This will be necessary to properly setup Autopsy. If using the recommended method, the path should be `/usr/lib/jvm/bellsoft-java8-full-amd64` # Install Sleuthkit @@ -136,10 +114,7 @@ # TODO -- align scripts with README - open cv issues on linux? -- stalling when not running autopsy as sudo? - troubleshooting from Running_Linux_OSX.txt - setup development environment guide -- do we need all these dependencies and are these all of the dependencies we need? - other installation steps \ No newline at end of file diff --git a/installation/scripts/install_prereqs_ubuntu.sh b/installation/scripts/install_prereqs_ubuntu.sh index f2217dae3f33d5863e1205dc830857ec356ed071..f970301a6b728e760da6f94dc94b61e4e35d2fa2 100644 --- a/installation/scripts/install_prereqs_ubuntu.sh +++ b/installation/scripts/install_prereqs_ubuntu.sh @@ -10,8 +10,8 @@ if [[ $? -ne 0 ]]; then fi echo "Installing all apt dependencies..." -sudo apt update && - sudo apt -y build-dep imagemagick libmagickcore-dev && +sudo apt update && \ + sudo apt -y build-dep imagemagick libmagickcore-dev && \ sudo apt -y install build-essential autoconf libtool git-core automake git zip wget ant \ libde265-dev libheif-dev \ libpq-dev \