-
-
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.
Merge pull request #11664 from JabRef/add-debian-vm
Add Debian VM (and improve other Vagrant files)
- Loading branch information
Showing
8 changed files
with
126 additions
and
36 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,21 @@ | ||
# Debian 12 | ||
|
||
Uses <https://github.com/alvistack/vagrant-debian>. | ||
|
||
Reproducer for <https://github.com/JabRef/jabref/issues/10731#issuecomment-2302373288>. | ||
|
||
Installs [Just Perfection GNOME Shell Extension](https://gitlab.gnome.org/jrahmatzadeh/just-perfection). | ||
|
||
After `vagrant up`: | ||
|
||
1. Terminate the VM. | ||
2. Open settings of the VM. | ||
3. Reconfigure the Virtual Box display to "VMSVGA", "Enable 3D Acceleration", use 32 MB of Video RAM. | ||
4. Power on. | ||
5. Log in. | ||
|
||
Then, start JabRef by following steps: | ||
|
||
1. Open termminal | ||
2. `cd jabref` | ||
3. `./gradlew run` |
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,59 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
NAME = "jabref-debian-12" | ||
|
||
Vagrant.configure("2") do |config| | ||
|
||
config.vm.box = "alvistack/debian-12" | ||
|
||
config.vm.define NAME | ||
config.vm.hostname = NAME | ||
|
||
config.vm.provider "virtualbox" do |v| | ||
v.name = NAME | ||
v.gui = true | ||
v.customize ["modifyvm", :id, "--memory", "2048", "--cpus", "2"] | ||
end | ||
|
||
config.vm.provision "shell", inline: <<-SHELL | ||
sudo apt-get update | ||
sudo apt-get -y upgrade | ||
# enable building of the virtual box guest addons | ||
# hint from https://forums.virtualbox.org/viewtopic.php?p=508680&sid=fe86fb0f6c03c7443f1fba9a5c29a861#p508680 | ||
# sudo apt install -y build-essential dkms | ||
sudo apt-get install -y git | ||
# sudo apt-get install -y task-cinnamon-desktop | ||
# install IntelliJ Community Edition - source: https://snapcraft.io/install/intellij-idea-community/debian | ||
sudo rm /etc/apt/preferences.d/nosnap.pref # source: https://stackoverflow.com/a/77235743/873282 | ||
sudo apt-get install -y snapd | ||
sudo snap install snapd | ||
sudo snap install intellij-idea-community --classic | ||
SHELL | ||
|
||
config.vm.provision "shell", privileged: false, inline: <<-SHELL | ||
# Install "Just Perfection GNOME Shell Extension" | ||
cd /tmp | ||
wget https://extensions.gnome.org/extension-data/just-perfection-desktopjust-perfection.v26.shell-extension.zip -O shell-extension.zip | ||
gnome-extensions install --force shell-extension.zip | ||
# Install JDK, clone JabRef's source code, and do an initial build | ||
curl -s "https://get.sdkman.io" | bash | ||
source "$HOME/.sdkman/bin/sdkman-init.sh" | ||
sdk install java 21.0.4-tem < /dev/null | ||
cd ~ | ||
git clone --recurse-submodules https://github.com/JabRef/jabref.git | ||
cd jabref | ||
sdk use java 21.0.4-tem | ||
./gradlew jar | ||
SHELL | ||
|
||
config.vm.provision "shell", inline: "sudo reboot" | ||
|
||
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
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
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