You can use sys-unconfig command which provides a simple method of reconfiguring a system in a new environment.
Upon executing sys-unconfig will halt your system, and run the following configuration programs at boot:
Change the root password.
Reconfigure networking / routing.
Reconfigure time / date / time zone etc.
Reconfigure Keyboard and mapping.
Reconfigure system authentication resources.
Reconfigure system runlevel.
Reconfigure system services.
Type the following command as root user.
Warning: do not type the following command on a production server for just testing purpose.
The system will go down immediately:
This command will create a file called /.unconfigured.
The presence of this file will cause /etc/rc.d/rc.sysinit to run the programs mentioned above.
Also, all persistent rules will be deleted from /etc/udev/rules.d/.
Latest posts by Tapas Mishra (see all)
- Working with Docker – II - December 16, 2016
- Working with Docker – I - November 28, 2016
- How to work with Chef using Oracle VirtualBox and Vagrant on a Windows host – Part II - November 30, 2014