April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

after Solaris 10 installation

after Solaris 10 installation

1. Set BASH as default shell for root:
This is first thing I really do! Because bash has multiple advantages for day to day use and scripting too, over other shells.
For this you can simply edit /etc/passwd file and change the shell from very first line.
By default it is /sbin/sh, you can change it to /bin/bash

2. Change the hostname from “unknown”
To change the hostname temporarily:
hostname SERVER01
To change the hostname so that it is persistent across reboots:
echo SERVER01 > /etc/nodename
However, the changed hostname is re-set when you run sys-unconfig command to reset the configuration of the system.

3. Disable GUI Login:
/usr/dt/bin/dtconfig -d
For more, see here about disabling and enabling GUI login in Solaris

4. Configure loghost:
You might get messages such as “loghost could not be resolved.”. To be able to resolve loghost you must configure DNS Server or you can add entry in /etc/hosts such as “127.0.0.1 loghost”.

5. Disable sendmail:
You can disable sendmail by issuing a simple command,
svcadm disable sendmail
Hmm… not everybody uses sendmail…

6. Set PS1 variable (This is only for people using BASH):
It is solely user’s choice to set this variable. Solaris has it as PS1=’\s-\v\$ ‘ by default.
However, I set it as PS1=”$LOGNAME@$HOSTNAME# ” so that it will be displayed as:
root@SERVER01# _
For more information on PS1 environment variable check

Read more at http://kaustubhghanekar.blogspot.com/2012/08/5-things-you-probably-want-to-do-after.html#tdpUO6dXDOIeo9jA.99

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>