Skip to content

Instantly share code, notes, and snippets.

@cbrgm
Last active May 16, 2019 14:39
Show Gist options
  • Save cbrgm/6b9655ea4c479c92fb367e6b91f38619 to your computer and use it in GitHub Desktop.
Save cbrgm/6b9655ea4c479c92fb367e6b91f38619 to your computer and use it in GitHub Desktop.
Install JabRef 4.2 Ubuntu 18.04
#!/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