mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
updates and remove unused comments
This commit is contained in:
parent
552668ca8b
commit
35f5168c82
@ -76,4 +76,5 @@ if [[ $? -ne 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "Autopsy setup done."
|
echo "Autopsy setup done."
|
||||||
|
echo "Autopsy can be launched at $AUTOPSY_EXTRACTED_PATH/bin/autopsy"
|
||||||
fi
|
fi
|
||||||
|
@ -18,19 +18,5 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OPEN_JDK_LN=/usr/local/opt/openjdk && \
|
java_path=$(/usr/libexec/java_home -v 1.8)
|
||||||
rm $ && \
|
echo "Java 1.8 path: $java_path"
|
||||||
ln -s $JAVA_HOME $OPEN_JDK_LN
|
|
||||||
if [[ $? -ne 0 ]]
|
|
||||||
then
|
|
||||||
echo "Unable to properly set up $OPEN_JDK_LN." >> /dev/stderr
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Test your link file creation to ensure it is pointing at the correct java developement kit:
|
|
||||||
echo "/usr/local/opt/openjdk now is:"
|
|
||||||
ls -l /usr/local/opt/openjdk
|
|
||||||
|
|
||||||
# check version
|
|
||||||
echo "Java Version is:"
|
|
||||||
java -version
|
|
@ -10,13 +10,6 @@ if [[ $? -ne 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing all apt dependencies..."
|
echo "Installing all apt dependencies..."
|
||||||
# other possible dependencies taken from https://github.com/sleuthkit/autopsy/pull/4743/files
|
|
||||||
# sudo apt -y install ca-certificates g++ gcc gpg java-common libafflib-dev libboost-dev libgl1-mesa-dri libgl1-mesa-glx libsolr-java libsqlite3-dev libswt-gtk-4-java libtika-java openjfx postgresql software-properties-common sqlite3 wget zip zlib1-dev
|
|
||||||
|
|
||||||
# other possible dependencies taken from https://github.com/sleuthkit/autopsy/pull/5111/files
|
|
||||||
# sudo apt -y install autopoint libsqlite3-dev libcppunit-dev
|
|
||||||
|
|
||||||
# TODO multi user dependencies?
|
|
||||||
sudo apt update &&
|
sudo apt update &&
|
||||||
sudo apt -y build-dep imagemagick libmagickcore-dev &&
|
sudo apt -y build-dep imagemagick libmagickcore-dev &&
|
||||||
sudo apt -y install build-essential autoconf libtool git-core automake git zip wget ant \
|
sudo apt -y install build-essential autoconf libtool git-core automake git zip wget ant \
|
||||||
@ -32,46 +25,6 @@ if [[ $? -ne 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# echo "Cloning source for libde265 and libheif..."
|
|
||||||
# pushd /usr/src/ && \
|
|
||||||
# sudo git clone https://github.com/strukturag/libde265.git && \
|
|
||||||
# sudo git clone https://github.com/strukturag/libheif.git && \
|
|
||||||
# popd
|
|
||||||
# if [[ $? -ne 0 ]]
|
|
||||||
# then
|
|
||||||
# popd
|
|
||||||
# echo "Failed to retrieve libde265 and libheif repos" >> /dev/stderr
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# echo "Installing libde265..."
|
|
||||||
# pushd /usr/src/libde265/ && \
|
|
||||||
# sudo ./autogen.sh && \
|
|
||||||
# sudo ./configure && \
|
|
||||||
# sudo make && \
|
|
||||||
# sudo make install && \
|
|
||||||
# popd
|
|
||||||
# if [[ $? -ne 0 ]]
|
|
||||||
# then
|
|
||||||
# popd
|
|
||||||
# echo "Failed to install libde265" >> /dev/stderr
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# echo "Installing libheif..."
|
|
||||||
# pushd /usr/src/libheif/ && \
|
|
||||||
# sudo ./autogen.sh && \
|
|
||||||
# sudo ./configure && \
|
|
||||||
# sudo make && \
|
|
||||||
# sudo make install && \
|
|
||||||
# popd
|
|
||||||
# if [[ $? -ne 0 ]]
|
|
||||||
# then
|
|
||||||
# popd
|
|
||||||
# echo "Failed to install libheif" >> /dev/stderr
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
|
|
||||||
echo "Installing ImageMagick..."
|
echo "Installing ImageMagick..."
|
||||||
pushd /usr/src/ &&
|
pushd /usr/src/ &&
|
||||||
sudo wget https://www.imagemagick.org/download/ImageMagick.tar.gz &&
|
sudo wget https://www.imagemagick.org/download/ImageMagick.tar.gz &&
|
||||||
@ -106,16 +59,6 @@ if [[ $? -ne 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://unix.stackexchange.com/questions/117467/how-to-permanently-set-environmental-variables
|
echo "Autopsy prerequisites installed."
|
||||||
# echo "Setting JAVA_HOME..."
|
echo "Java path at /usr/lib/jvm/bellsoft-java8-full-amd64: "
|
||||||
# export JAVA_HOME=/usr/lib/jvm/bellsoft-java8-full-amd64 && \
|
ls /usr/lib/jvm/bellsoft-java8-full-amd64
|
||||||
# echo "Java home is now: $JAVA_HOME" && \
|
|
||||||
# echo 'export JAVA_HOME=/usr/lib/jvm/bellsoft-java8-full-amd64' | tee ~/.profile ~/.bashrc
|
|
||||||
# if [[ $? -ne 0 ]]
|
|
||||||
# then
|
|
||||||
# echo "Failed to set up JAVA_HOME in bash_rc" >> /dev/stderr
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# echo "Java version is:"
|
|
||||||
# java -version
|
|
@ -53,7 +53,6 @@ fi
|
|||||||
|
|
||||||
echo "Installing Sleuthkit..."
|
echo "Installing Sleuthkit..."
|
||||||
pushd $SLEUTHKIT_SRC_DIR &&
|
pushd $SLEUTHKIT_SRC_DIR &&
|
||||||
# export CPPFLAGS="-I/usr/local/opt/libpq/include" && \
|
|
||||||
./bootstrap &&
|
./bootstrap &&
|
||||||
./configure &&
|
./configure &&
|
||||||
make &&
|
make &&
|
||||||
|
@ -45,7 +45,7 @@ fi
|
|||||||
|
|
||||||
# Verify Java was installed and configured
|
# Verify Java was installed and configured
|
||||||
echo -n "Checking for Java..."
|
echo -n "Checking for Java..."
|
||||||
if [ -n "$JAVA_PATH"]; then
|
if [ -n "$JAVA_PATH" ]; then
|
||||||
if [ -x "$JAVA_PATH/bin/java" ]; then
|
if [ -x "$JAVA_PATH/bin/java" ]; then
|
||||||
sed -Ei '/^#?\s*jdkhome=/d' etc/autopsy.conf
|
sed -Ei '/^#?\s*jdkhome=/d' etc/autopsy.conf
|
||||||
echo "jdkhome=$JAVA_PATH" >> etc/autopsy.conf
|
echo "jdkhome=$JAVA_PATH" >> etc/autopsy.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user