mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-05 18:25:58 +03:00
Add Fedora Vagrantfile
This commit is contained in:
parent
2732129636
commit
423fee735c
48
vagrant/fedora/Vagrantfile
vendored
Normal file
48
vagrant/fedora/Vagrantfile
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
|
||||
config.vm.box = "fedora/26-cloud-base"
|
||||
|
||||
config.vm.provision "shell", path: "provision.sh"
|
||||
|
||||
# Sync repository to /vagrant
|
||||
config.vm.synced_folder '../..', '/vagrant'
|
||||
|
||||
# VirtualBox configuration
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.name = "yubioath-desktop:fedora"
|
||||
|
||||
# Enable GUI
|
||||
vb.gui = true
|
||||
# Set memory
|
||||
vb.memory = 2048
|
||||
# Enable shared clipboard
|
||||
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
|
||||
# Enable drag-n-drop
|
||||
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
|
||||
end
|
||||
|
||||
# This will connect the YubiKey to the VM when re-inserted.
|
||||
# This filter uses VirtualBox as provider.
|
||||
# Modify the paramters as needed depending on the device.
|
||||
|
||||
FILTER_NAME="YubiKey"
|
||||
MANUFACTURER="Yubico"
|
||||
VENDOR_ID="0x1050"
|
||||
PRODUCT_ID="0x0407"
|
||||
PRODUCT="Yubikey 4 OTP+U2F+CCID"
|
||||
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.customize ['modifyvm', :id, '--usb', 'on']
|
||||
vb.customize ['usbfilter', 'add', '0',
|
||||
'--target', :id,
|
||||
'--name', FILTER_NAME,
|
||||
'--manufacturer', MANUFACTURER,
|
||||
'--vendorid', VENDOR_ID,
|
||||
'--productid', PRODUCT_ID,
|
||||
'--product', PRODUCT]
|
||||
end
|
||||
|
||||
end
|
13
vagrant/fedora/provision.sh
Normal file
13
vagrant/fedora/provision.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo yum install -y \
|
||||
@xfce-desktop-environment \
|
||||
gcc-c++\
|
||||
pcsc-lite \
|
||||
pyotherside \
|
||||
qt5-devel \
|
||||
qt5-qtquickcontrols \
|
||||
yubioath-desktop
|
||||
|
||||
# Make vagrant user passwordless
|
||||
sudo passwd -d vagrant
|
Loading…
Reference in New Issue
Block a user