-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
16 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Linux Mint Cinnamon VM | ||
|
||
[Linux Mint](https://linuxmint.com/) with JabRef snap and libreoffice-connection pre-installed. | ||
|
||
Uses <https://portal.cloud.hashicorp.com/vagrant/discover/aaronvonawesome/linux-mint-21-cinnamon>. | ||
|
||
Start JabRef by following steps: | ||
|
||
- 1. Open termminal | ||
- 2. `cd jabref` | ||
- 3. `./gradlew run` | ||
|
||
## Alternative | ||
|
||
We could have build our own image. | ||
First creating an image using packer with <https://github.com/rmoesbergen/packer-linuxmint>. | ||
Then, building a `Vagrantfile` on top of it. | ||
Seemed to be too much issues for the users. | ||
|
||
1. Install packer | ||
2. `packer plugins install github.com/hashicorp/virtualbox` | ||
3. `packer plugins install github.com/hashicorp/vagrant` | ||
4. `packer build -var-file=mint-cinnamon-22.json core_template.json` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure("2") do |config| | ||
|
||
# https://portal.cloud.hashicorp.com/vagrant/discover/aaronvonawesome/linux-mint-21-cinnamon | ||
config.vm.box = "aaronvonawesome/linux-mint-21-cinnamon" | ||
config.vm.box_version = "4.0.1" | ||
|
||
config.vm.network :forwarded_port, guest: 80, host: 8080, auto_correct: true | ||
|
||
config.vm.provider "virtualbox" do |v| | ||
v.name = "jabref-linux-mint-cinnamon" | ||
v.gui = true | ||
v.customize ["modifyvm", :id, "--memory", "2048", "--cpus", "2"] | ||
end | ||
|
||
config.vm.provision "shell", inline: <<-SHELL | ||
sudo apt-get install -y git | ||
SHELL | ||
|
||
config.vm.provision "shell", privileged: false, inline: <<-SHELL | ||
curl -s "https://get.sdkman.io" | bash | ||
source "$HOME/.sdkman/bin/sdkman-init.sh" | ||
sdk install java 21.0.4-tem < /dev/null | ||
git clone --recurse-submodules https://github.com/JabRef/jabref.git | ||
cd jabref | ||
sdk use java 21.0.4-tem | ||
./gradlew jar | ||
SHELL | ||
|
||
config.ssh.forward_x11 = true | ||
end |
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