Last active
May 16, 2019 14:39
-
-
Save cbrgm/6b9655ea4c479c92fb367e6b91f38619 to your computer and use it in GitHub Desktop.
Install JabRef 4.2 Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install java packages + javafx | |
sudo apt-get install default-jdk | |
sudo apt-get install openjfx | |
# Download Jabref | |
sudo wget -P /etc/jabref -O jabref.jar https://www.fosshub.com/JabRef.html/JabRef-4.2.jar | |
# Create startup script | |
sudo mkdir /etc/jabref | |
cat <<EOF > /etc/jabref/jabref.sh | |
#!/bin/bash | |
java -jar /etc/jabref/jabref.jar & | |
EOF | |
# Create symlink and make startup script executable | |
sudo chmod +x /etc/jabref/jabref.sh | |
sudo ln -s /etc/jabref/jabref.sh /usr/local/bin/jabref | |
# Start Jabref | |
jabref |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment