Hi there,
I install Centos 7 machines through kickstart + a post install script. I do not need the gnome-initial-setup to run at all.
My post install script create a user and deletes the guest account. When the uid of the newly created user is > 500 everything is fine but when the uid is < 500 the gnome-initial-setup still shows up.
Can anyone tell me how to disable/configure gnome-initial-setup for users with uid < 500 ?
Cheers,
Olivier DELHOMME.
Hi all,
2015-01-14 15:09 GMT+01:00 Olivier Delhomme olivierdelhomme@gmail.com:
Hi there,
I install Centos 7 machines through kickstart + a post install script. I do not need the gnome-initial-setup to run at all.
My post install script create a user and deletes the guest account. When the uid of the newly created user is > 500 everything is fine but when the uid is < 500 the gnome-initial-setup still shows up.
Can anyone tell me how to disable/configure gnome-initial-setup for users with uid < 500 ?
In fact this is not a matter of gnome-initial-setup but a matter of how Centos7 is booting and then calling the initial setup program.
Does anyone knows where I should look in order to disable the launch of gnome-initial-setup when booting a newly installed Centos 7 ?
Does anyone have a documentation about the boot procedure of Centos7 that covers the initial setup ?
Any hint is welcome.
Regards,
Olivier.
On 02/03/2015 02:10 AM, Olivier Delhomme wrote:
Does anyone knows where I should look in order to disable the launch of gnome-initial-setup when booting a newly installed Centos 7 ?
Are you talking about gnome-initial-setup or firstboot? It really sounds like you mean the latter. gnome-initial-setup should run for every single user, the first time they log in, regardless of their UID.
If you don't want to run gnome-initial-setup, you can remove the package of that name. Or, you can remove /etc/xdg/autostart/gnome-initial-setup-first-login.desktop
If you don't want firstboot, then: systemctl disable firstboot-graphical
Hi Gordon,
2015-02-03 17:12 GMT+01:00 Gordon Messmer gordon.messmer@gmail.com:
On 02/03/2015 02:10 AM, Olivier Delhomme wrote:
Does anyone knows where I should look in order to disable the launch of gnome-initial-setup when booting a newly installed Centos 7 ?
Are you talking about gnome-initial-setup or firstboot? It really sounds like you mean the latter. gnome-initial-setup should run for every single user, the first time they log in, regardless of their UID.
Thanks a lot for taking the time to answer. I realized reading your answer that gnome-initial-setup is the user's initial setup.... So you're right, I want firstboot not to show up when booting...
If you don't want to run gnome-initial-setup, you can remove the package of that name. Or, you can remove /etc/xdg/autostart/gnome-initial-setup-first-login.desktop
If you don't want firstboot, then:
systemctl disable firstboot-graphical
Unfortunately none of the above works... "systemctl disable firstboot-graphical" or "chkconfig firstboot-graphical off" does not work. Strangely removing the file /lib/systemd/system/firstboot-graphical.service does not work either. I still have the firstboot that shows up when starting the system...
Reading the python script at /usr/sbin/firstboot I learned that a file (/etc/sysconfig/firstboot) containing a line with RUN_FIRSTBOOT=NO should stop the service... but it still does not work !
So I renamed /usr/sbin/firstboot and... it still does not work !???
I looked at the processes running and found that gdm is running spawning a session with parameter "--gnome-initial-setup" (removing all files beginning with gnome-initial-setup in /etc/xdg/autostart/ does not work !).
So now I'm trying to figure out how gdm is launched with this parameter... to avoid this.
Any idea is very welcomed.
Regards,
Olivier.
On 02/09/2015 07:58 AM, Olivier Delhomme wrote:
I looked at the processes running and found that gdm is running spawning a session with parameter "--gnome-initial-setup" (removing all files beginning with gnome-initial-setup in /etc/xdg/autostart/ does not work !).
rpm -e gnome-initial-setup
Or "-gnome-initial-setup" in your kickstart package list, so that it's not installed in the first place.
On Mon, Feb 9, 2015 at 1:10 PM, Gordon Messmer gordon.messmer@gmail.com wrote:
On 02/09/2015 07:58 AM, Olivier Delhomme wrote:
I looked at the processes running and found that gdm is running spawning a session with parameter "--gnome-initial-setup" (removing all files beginning with gnome-initial-setup in /etc/xdg/autostart/ does not work !).
rpm -e gnome-initial-setup
Or "-gnome-initial-setup" in your kickstart package list, so that it's not installed in the first place.
rpm -qa | sort > pkg.list grep -i gnome pkg.list | while read name; do yum remove $name done
Gives you a chance to pick and choose what to delete. Gnome has become *extremely* bloated, and most environments would benefit from clearing out much of the excess debris with a double-check to make sure you don't rip out something you actually want.
Hi Nico,
2015-02-09 23:06 GMT+01:00 Nico Kadel-Garcia nkadel@gmail.com:
On Mon, Feb 9, 2015 at 1:10 PM, Gordon Messmer gordon.messmer@gmail.com wrote:
On 02/09/2015 07:58 AM, Olivier Delhomme wrote:
I looked at the processes running and found that gdm is running
spawning a
session with parameter "--gnome-initial-setup" (removing all files
beginning
with gnome-initial-setup in /etc/xdg/autostart/ does not work !).
rpm -e gnome-initial-setup
Or "-gnome-initial-setup" in your kickstart package list, so that it's
not
installed in the first place.
rpm -qa | sort > pkg.list grep -i gnome pkg.list | while read name; do yum remove $name done
Gives you a chance to pick and choose what to delete. Gnome has become *extremely* bloated, and most environments would benefit from clearing out much of the excess debris with a double-check to make sure you don't rip out something you actually want.
Thanks, removing gnome-initial-setup and initial-setup worked out. Removing other gnome applications is out of the scope ;)
Regards,
Olivier.
Hello Gordon,
2015-02-09 19:10 GMT+01:00 Gordon Messmer gordon.messmer@gmail.com:
On 02/09/2015 07:58 AM, Olivier Delhomme wrote:
I looked at the processes running and found that gdm is running spawning a session with parameter "--gnome-initial-setup" (removing all files beginning with gnome-initial-setup in /etc/xdg/autostart/ does not work !).
rpm -e gnome-initial-setup
Or "-gnome-initial-setup" in your kickstart package list, so that it's not installed in the first place.
I removed gnome-initial-setup and initial-setup packages and now I have the gnome login screen directly.
Thanks you for helping with this. Now I need to figure out why the created user is not displayed at the login time... :)