Skip to main content

Posts

Showing posts from June, 2017

Automatic login to desktop - RHEL

Trying to build a machine as a Kiosk with no login needed. update /etc/gdm/custom.conf. This is to enable automatic login with root user. ------------- [daemon] AutomaticLogin=root AutomaticLoginEnable=True So, more specifically I need to have my system boot to a graphical target as a particular user... #yum -y install gdm @gnome-desktop @^graphical-server-environment @internet-browser subscription-manager register --auto-attach yum -y install gdm yum -y install motif xterm xorg-x11-fonts-* xorg-x11-server-Xorg xorg-x11-xinit xorg-x11-apps subscription-manager repos --enable=rhel-7-server-optional-rpms yum -y install xorg-x11-xinit-session systemctl set-default graphical.target cat << EOF > /etc/sysconfig/desktop unset GSESSION unset STARTKDE EOF # update the GDM file to have automatic login enabled (as root in this case) sed -i -e 's/\[daemon\]/\[daemon\]\nAutomaticLogin=morpheus\nAutomaticLoginEnable=True/g' /etc/gdm/custom.conf USERS=&