[Linux] How to get first time setup window after every reboot

Posted: August 7, 2013 in Uncategorized


The first time the system boots, the /sbin/init program calls the etc/rc.d/init.d/firstboot script, which in turn launches the Setup Agent. This application allows the user to install the latest updates as well as additional applications and documentation. 
To enable this feature we need to modify /etc/sysconfig/firstboot file.
Following are the steps to follow to enable this feature :-
1.  Use cat command to view the contents of firstboot configuration file under /etc/sysconfig directory
[root@afzalkhan ~]# cat /etc/sysconfig/firstboot
2. Change RUN_FIRSTBOOT parameter to YES to enable this feature
3. Make sure that that firstboot program or firstboot service is run when your linux system boots up.
[root@afzalkhan ~]# chkconfig –list firstboot
 firstboot 0:off 1:off 2:off 3:on 4:off 5:on 6:off
[root@afzalkhan ~]#
4. Then reboot or restart Linux system as shown on command example below. 
[root@afzalkhan ~]# shutdown -r now
[root@afzalkhan ~]# reboot

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s