How to change default shells in solaris 10 and other misc. questions
Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to change default shells in solaris 10 and other misc. questions
Well I am stumped. I'm not new to linux ( I've used Suse from version 8.2 up, Fedora Core 4/5, and Unbuntu) but in an effort to broaden my OS knowledge I have decided to try getting certified on Solaris 10. I obtained a boxed copy with media from work of version 3/05 and loaded it on my notebook, I have a few gripes.
How do I change the default shell to bash? (thats just annoying, why didnt they use the best shell as default?)
How do I update this? (can I get a package manager, yum, apt-get,... something) I have noticed that the current version is 6/06, can I update to that version from a repository in the terminal or anything?
Also a side note during the install i installed the optional Software cd (which contained a bunch of tools, packages, KDE, wine etc.) and I know it has not "completely" installed because none of the packages show on launch bar or in the shell. Do I have to do some further configuration?
You can change your default shell by editing /etc/passwd. Bash is alredy installed in /usr/bin/bash, so edit /etc/passwd and change the last part of your user-id line from /bin/sh to /usr/bin/bash.
As for upgrading, I think that if you boot from the 6/06 CD/DVD, the installer will ask you if you want to upgrade your system (never done it though). Also there is the "Live update" which you can try.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by amlucent23
Well I am stumped. I'm not new to linux ( I've used Suse from version 8.2 up, Fedora Core 4/5, and Unbuntu) but in an effort to broaden my OS knowledge I have decided to try getting certified on Solaris 10. I obtained a boxed copy with media from work of version 3/05 and loaded it on my notebook, I have a few gripes.
How do I change the default shell to bash? (thats just annoying, why didnt they use the best shell as default?)
Shells, like colors and football teams, are a controversal matter of taste and personal preferences. There is no "best shell".
Former SunOS 4 users tend to prefer csh or csh likes, while SVR4 fans (like me) are more ksh / ksh93 supporters.
zsh has also its club.
Quote:
How do I update this? (can I get a package manager, yum, apt-get,... something)
There is no need to update, as bathory already mentioned, bash is already there and supported.
Unlike with most if not all Linux distributions, bash is just an optional package with Solaris, so you have to double check it's here before setting it as root 's default shell, which is anyway unrecommended.
For regular user accounts, there is no problem changing it (passwd -e /usr/bin/pash loginname), or setting it when creating the account.
Quote:
I have noticed that the current version is 6/06, can I update to that version from a repository in the terminal or anything?
Not from a repository, unless you create one for your own use, but that make no sense for a single machine.
However you can easily update from a 6/06 DVD which ISO image is downloadable for free.
Quote:
Also a side note during the install i installed the optional Software cd (which contained a bunch of tools, packages, KDE, wine etc.) and I know it has not "completely" installed because none of the packages show on launch bar or in the shell. Do I have to do some further configuration?
Try adding /opt/sfw/bin to your PATH, before the graphic environment is launched (in ~/.dtprofile).
Quote:
Can anyone at least point me to a solaris how to or tweaks guide?
well Thanks for the quick reply, I was able to change the default shell but I became pretty fed up with the other shortcommings. Then I discovered that I may want to attempt a open solaris release to begin with, and I looked at Solaris Express, but I have really settled on nexenta OS. I installed and configured it without a hitch, it seems VERY stable (and its just an alpha release). I am very impressed with it! I seriously think I have found a new home! Forget Suse! When I get some time tonight I am going to try to figure out how to use dtrace and zones. Thanks for all your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.