### SUSE Linux Enterprise Server 15 SP6 ###

# Register product #
Register product at the beginning or later during the
installation process. Full version allows registering later.

# Installation #
Language: English (US)
Keyboard Layout: English (US)

Available Extensions and Modules:
   Basesystem Module
   Desktop Applications Module
   Python 3 Module
   Server Applications Module

SLES with GNOME

Region: Etc
Time Zone: UTC

Create user with automatic login

disable firewall

Displays: Resolution 1280x800
Power: Screen Blank: Never
Privacy: Screen lock: Automatic screen lock: disable
Privacy: Screen lock: Show notifications on lock screen: disable

# Add user to sudoers
Add 'qt ALL=NOPASSWD: ALL' to /etc/sudoers.d/qt

sudo su -
echo 'add_drivers+=" virtio-blk "' >/etc/dracut.conf.d/virtio.conf
dracut -f

# Disable coredump
chkconfig kdump off
echo 'Storage=none' >> /etc/systemd/coredump.conf.d/custom.conf
# Print config: systemd-analyze cat-config systemd/coredump.conf

# Add these to /etc/polkit-default-privs.local
org.freedesktop.udisks2.filesystem-mount yes
org.freedesktop.udisks2.filesystem-mount-other-seat yes
org.freedesktop.udisks2.filesystem-mount-system yes
org.freedesktop.login1.power-off yes
org.freedesktop.login1.power-off-ignore-inhibit yes
org.freedesktop.login1.power-off-multiple-sessions yes

# Run this command for changes to take effect
sudo bash /sbin/set_polkit_default_privs

# Set how DHClient creates CID for compatibility with older DHCP servers
sudo sed -i 's/DHCLIENT_CREATE_CID=""/DHCLIENT_CREATE_CID="rfc2132"/' /etc/sysconfig/network/dhcp
systemctl restart wicked

# Create /etc/sysconfig/network/ifcfg-eth1 with values:
* BOOTPROTO='dhcp'
* STARTMODE='auto'
sudo ifup eth1

# If not yet registered - Register product
# Add 'Available Extensions and Modules'
* Basesystem Module 15 SP6 x86_64
* Server Applications Module 15 SP6 x86_64
* Python 3 Module 15 SP6 x86_64
* Desktop Applications Module 15 SP6 x86_64

zypper update

* Download and run coin-setup

# Fetch and run coin-setup
Download http://coin/coin/binary/linux_386/coin-setup
# run as qt user
chmod 755 ./coin-setup
run ./coin-setup

sudo reboot now

# Select login session type
After reboot into user qt:
- log out
- select session type "Gnome Classic" in session selector on the login sreen (gear wheel on bottom right)
- reboot again with sudo reboot now
- verify that auto login lands in normal desktop
