Commit db7baa15 authored by Reimar Stier's avatar Reimar Stier

Add xfce4 notes and configuration

parent 0952965f
......@@ -8,6 +8,13 @@ vagrant ssh devbox
cd /vagrant
ansible-playbook playbook.yml --connection=local -i devbox, -e ansible_become=true
# Graphics card issues
Issues with nvidia graphics card (NVIDIA Corporation GK106GLM [Quadro K2100M]).
* Use latest virtualbox / vagrant
* Use proprietary nvidia driver if nvidia graphics card present
* Enable 3d acceleration
* Use xfce4-session instead of gnome-session
# base boxes
* geerlingguy https://app.vagrantup.com/geerlingguy
* gerlingguy/debian10 (https://github.com/geerlingguy/packer-debian-10)
......
......@@ -30,8 +30,10 @@ Vagrant.configure("2") do |config|
config.proxy.no_proxy = ENV["no_proxy"]
end
# requires additional vagrant plugin vagrant-disksize
# configure disksize
if Vagrant.has_plugin?("vagrant-disksize")
config.disksize.size = "20GB"
end
# configure VM settings and additional disks
config.vm.provider "virtualbox" do |vb|
......@@ -42,7 +44,8 @@ Vagrant.configure("2") do |config|
# https://www.virtualbox.org/manual/ch08.html
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--graphicscontroller", "vboxvga"]
vb.customize ["modifyvm", :id, "--accelerate3d", "off"]
vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
vb.customize ["modifyvm", :id, "--accelerate2dvideo", "on"]
# Adding a SATA controller that allows 4 hard drives
unless File.exist?(DISKS[0]["name"] + ".vmdk")
......
- name: restart login manager service
service: name="{{ xfce4_login_manager_service }}" state="restarted"
#!/usr/bin/env ansible-playbook
---
- name: playbook
hosts: devbox
......@@ -13,3 +14,6 @@
- {role: "geerlingguy.docker", docker_users: ["vagrant"], tags: "docker"}
- {role: 'jetbrains_installer', tags: ['jetbrains']}
- {role: 'webofmars.xfce4-desktop', tags: ['desktop']}
post_tasks:
- import_tasks: tasks/xfce4_configuration.yml
tags: desktop_config
- name: Use xfce4-session by default
# shell: "update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/bin/xfce4-session 60"
shell: "update-alternatives --set x-session-manager /usr/bin/xfce4-session"
register: _shell_output
changed_when: _shell_output.rc == 0 and _shell_output.stdout != ""
- name: restart login manager service
#service: name="{{ xfce4_login_manager_service }}" state="restarted"
service: name="gdm" state="restarted"
when: _shell_output.changed
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment