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="morpheus"
for USER in $USERS
do
cat << EOF > /home/${USER}/.Xclients
#!/bin/sh
xclock -geometry +0+0 &
xterm -ls &
exec /usr/bin/mwm -multiscreen
EOF
chmod 755 /home/${USER}/.Xclients
done
shutdown now -r
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="morpheus"
for USER in $USERS
do
cat << EOF > /home/${USER}/.Xclients
#!/bin/sh
xclock -geometry +0+0 &
xterm -ls &
exec /usr/bin/mwm -multiscreen
EOF
chmod 755 /home/${USER}/.Xclients
done
shutdown now -r
Comments
Post a Comment