Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vagrantsetup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
devbox
vagrantsetup
Commits
db7baa15
Commit
db7baa15
authored
Aug 31, 2019
by
Reimar Stier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add xfce4 notes and configuration
parent
0952965f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
3 deletions
+30
-3
Readme.md
Readme.md
+7
-0
Vagrantfile
Vagrantfile
+6
-3
main.yml
handlers/main.yml
+2
-0
playbook.yml
playbook.yml
+4
-0
xfce4_configuration.yml
tasks/xfce4_configuration.yml
+11
-0
No files found.
Readme.md
View file @
db7baa15
...
...
@@ -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)
...
...
Vagrantfile
View file @
db7baa15
...
...
@@ -30,8 +30,10 @@ Vagrant.configure("2") do |config|
config
.
proxy
.
no_proxy
=
ENV
[
"no_proxy"
]
end
# requires additional vagrant plugin vagrant-disksize
config
.
disksize
.
size
=
"20GB"
# 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"
)
...
...
handlers/main.yml
0 → 100644
View file @
db7baa15
-
name
:
restart login manager service
service
:
name="{{ xfce4_login_manager_service }}" state="restarted"
playbook.yml
100644 → 100755
View file @
db7baa15
#!/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
tasks/xfce4_configuration.yml
0 → 100644
View file @
db7baa15
-
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment