Pradhap 's UNIX Corner

All | General | Java | Music
« Previous month (Jul 2006) | Main | Next month (Sep 2006) »
20060828 Monday August 28, 2006

Solaris first boot essential configurations Everytime one installs Solaris from a DVD/CD user needs to do a lot of initial configurations. The following perl script takes care some of those.

This script is meant to be run on development box in secure environment.This script enables SSHD explicitly so if someone doesnt want to root access for SSHD please disable "PermitRootLogin No" in "/etc/ssh/sshd_config" and restart SSHD daemon by "svcadm restart ssh"

Script configures following stuffs.
* Creates /root directory for root user updates /etc/passwd with "/root" directory and sets "/usr/bin/bash" as default shell
* Moves "/.dot-config" files to new /root directory
* Enables "PermitRootLogin yes" for /etc/ssh/sshd_config to allow root access over sshd and restarts sshd service
* Create /root/.bashrc and /root/.bash_profile
>updates with PATH and TERM settings
>bash prompt settings
>title bar customizations
>screen customization for telnet
* Generates formatted files for the reference manual (catman)
* This script takes a backup of your current configuration files and puts into /backup_conf_date:time.tar so you can revert back to older configuration
* User can run this script multiple times each time script is executed, it will automatically create backup of older configuration and does the above configurations.

To run the script download the firstconf.pl to /tmp
test1~#cd /tmp
test1~#chmod +x ./firstconf.pl
test1~#./firstconf.pl
Logout and re-login immediately.
Posted by pradhap ( Aug 28 2006, 03:15:03 AM PDT ) Permalink Comments [11]

Calendar

Google Maps

RSS Feeds

Search

Links

Navigation

Referers