From dcac44e10067f7c09a5b01d73fea5652ec6004cd Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Dec 13 2018 09:56:56 +0000 Subject: Add script to set up the VM for testing. --- diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..621aae8 --- /dev/null +++ b/setup.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# Install needed packages +echo "Installing necessary packages ..." +echo " " +dnf install -y vim python3-ipython python3-behave python3-pydbus python3-dogtail* + +# Add system user for testing +echo "Adding user test" +echo " " +useradd test +echo "Adding user into groups wheel and adm" +usermod -a -G wheel test +usermod -a -G adm test +echo "Setting password 'fedora' for that user." +echo "fedora" | passwd --stdin test + +# Force GDM to use xorg +echo "[daemon]" > /etc/gdm/custom.conf +echo "WaylandEnable=false" >> /etc/gdm/custom.conf + +# Set gnome to not switch off desktop due inactivity +echo "Setting up gnome session to not enter sleep." +su test +gsettings set org.gnome.desktop.session idle-delay 0 + +echo "Please, enable passwordless sudo." +