[indiana-discuss] Two questions before I install OpenSolaris for "real"

Bryan Boone Bryan.Boone at sas.com
Tue May 13 13:13:58 PDT 2008


Wahoo... Getting close.... now if I can only ghost the virtual machine 
and copy it to a real disk;)
This has been great.
Worst case, I've learned a lot before a real install.
Thanks
-Bryan

Glenn Lagasse wrote:
> * Bryan Boone (Bryan.Boone at sas.com) wrote:
>> OK...
>> So now I've effectively blown away the user created from the installer.
>>   That is,  I had to do usermod -u [my uid]; chown my home (I eventually
>> deleted it all); then cleaned up /tmp and /var/tmp from the previous
>> uid.  I'm left with a less than informative prompt :( (bash-3.2$)
>>
>> I know I goofed up and really went the long way around things, but live
>> and learn... for now, how do I get the default command prompt like the
>> installer created?
> 
> You need to add the following to your user's .bashrc file:
> 
> #
> # Define default prompt to <username>@<hostname>:<path><"($|#) ">
> # and print '#' for user "root" and '$' for normal users.
> #
> PS1='${LOGNAME}@$(hostname):$(
>     [[ "$LOGNAME" = "root" ]] && printf "${PWD/${HOME}/~}# " ||
>     printf "${PWD/${HOME}/~}\$ ")'
> 
> If you want the same PATH, MANPATH and PAGER settings then add:
> 
> export PATH=/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
> export MANPATH=/usr/gnu/share/man:/usr/share/man:/usr/X11/share/man
> export PAGER="/usr/bin/less -ins"
> 
> Cheers,
> 
> Glenn


More information about the indiana-discuss mailing list