LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   A Few questions about Solaris in general !!! (https://www.linuxquestions.org/questions/solaris-opensolaris-20/a-few-questions-about-solaris-in-general-296039/)

cereal83 02-28-2005 06:49 PM

A Few questions about Solaris in general !!!
 
Hey all,

Well I got Solaris installed this morning and I have been playing with it for a little while but I need to know a little bit more.

First my mouse Wheel isn't working and it's very annoying. In Linux you would modify the xorg.conf in /etc/X11. I went to /etc/X11/ but there wasn't really anything in there that I can modify so if somebody know how or where I have to go to do this, that would be great.

Next, I am looking for some kind of GUI program to add users and that kinda of stuff. I looked around and noticed some people mentions SMC and ADMINTOOL. I looked around on my computer for that but can't find anything so again if somebody could help me, that would be great.

Is the default home directory for new users /export/home in Solaris because I know with Linu it's /home/


Well so far everything seems to be going good ok. I can do alot of stuff because it's similar to linux. I am using Gnome after trying the other window manger and this one is much much easier.

Thanks and I look forward to some help.

Thanks again.

cereal83 02-28-2005 06:52 PM

Also 1 other thing. Anybody know a good site to download software from and is there an apt-get type program for Solaris to update it?

In linux when you are working with the command line and you have some of a command down, you can hit "tab" to finish the command. Is there any way of doing that with Solaris?

Thanks

jlliagre 03-01-2005 09:37 AM

Under Solaris, Xorg is using the xorg.conf file if it find one, if it doesn't it creates a configuration from what was set to Xsun.
Run kdmconfig to get instructions on how to build a custom xorg file if you want to.
Quote:

I looked around on my computer for that but can't find anything so again if somebody could help me, that would be great.
What is the problem you have with smc ? you do not find it ? is "man smc" of any help ?
Quote:

Is the default home directory for new users /export/home in Solaris because I know with Linu it's /home/
Look in this forum for it, this has already been answered a couple of times.
Quote:

Anybody know a good site to download software from and is there an apt-get type program for Solaris to update it?
blastwave is doing just that with pkg-get. Sunfreeware have it too.
Quote:

In linux when you are working with the command line and you have some of a command down, you can hit "tab" to finish the command. Is there any way of doing that with Solaris?
This is not a linux feature, but a bash one, so if you may just use bash as your login shell, if you prefer it. Bash is already distributed with Solaris.

Maidros 03-01-2005 09:48 AM

Quote:

Originally posted by cereal83
Also 1 other thing. Anybody know a good site to download software from and is there an apt-get type program for Solaris to update it?

In linux when you are working with the command line and you have some of a command down, you can hit "tab" to finish the command. Is there any way of doing that with Solaris?

Thanks

Solaris defaults to the old Bourne shell when you do not specify the shell. The feature you want can be enabled by changing your shell to /bash/tcsh/zsh. If you installed all the stuff in Solaris, you should be able to change by executing usermod -s /bin/bash (or zsh, tcsh) <username> at the prompt.
Regards,
Maidros

cereal83 03-01-2005 03:18 PM

Hey guys, Thanks for the great answers.

Ok Well first, about the shell. I do that usermod -s /bin/bash but it says "UX: usermod: ERROR: /bin/bash is not a valid shell. Choose another." So that makes me believe that I never installed it somehow. So now my question is how would I go around by installing it? I looked on the cd but I can't find it in there.

I found pkg-get last night thanks.


Maybe I should do a reinstall. I don't know, none of the admin commands seem to be here. I only have 7 GB for this partition and when I went to do a full install it said it was going to use like 6.9 GB so thats why I never did a full install. I don't want apache and other stuff that I don't need. I first want to be able to use it before I start looking into playing with apache or bind or stuff like that.

I am going to try a reinstall bye all

Maidros 03-01-2005 05:17 PM

Quote:

Originally posted by cereal83
Hey guys, Thanks for the great answers.

Ok Well first, about the shell. I do that usermod -s /bin/bash but it says "UX: usermod: ERROR: /bin/bash is not a valid shell. Choose another." So that makes me believe that I never installed it somehow. So now my question is how would I go around by installing it? I looked on the cd but I can't find it in there.

I found pkg-get last night thanks.


Maybe I should do a reinstall. I don't know, none of the admin commands seem to be here. I only have 7 GB for this partition and when I went to do a full install it said it was going to use like 6.9 GB so thats why I never did a full install. I don't want apache and other stuff that I don't need. I first want to be able to use it before I start looking into playing with apache or bind or stuff like that.

I am going to try a reinstall bye all

You do not need to reinstall. All you need is to install the package SUNWbash on CD2 of your install set. It is easily done by mounting the CD and executing pkgadd -d /cdrom/Solaris_10/Product which should launch your installer and give you the option to install SUNWbash (you will have to enter the number of the package from the list). This should solve your problem.
Regards,
Maidros

btmiller 03-01-2005 11:27 PM

Also, bash ins in /usr/bin (not /bin) in Solaris.

Maidros 03-02-2005 02:53 AM

Quote:

Originally posted by btmiller
Also, bash ins in /usr/bin (not /bin) in Solaris.
Er - I have it in my /bin and /usr/bin directories. Here is the output of my ls /bin/ba* command.

/bin/banner
/bin/basename
/bin/bash
/bin/batch

jlliagre 03-02-2005 04:58 AM

Code:

man getusershell
will tell you how to have bash accepted as a login shell.

btmiller 03-02-2005 08:21 PM

Quote:

Originally posted by Maidros
Er - I have it in my /bin and /usr/bin directories. Here is the output of my ls /bin/ba* command.

/bin/banner
/bin/basename
/bin/bash
/bin/batch

Hmmm ... what do you know, you're right, it is in both places but my path has /usr/bin first.

jlliagre 03-03-2005 12:35 AM

This last discussion is pointless, /bin is a symbolic link to /usr/bin under Solaris.

The issue is about /etc/shells needing to be created and containing the path(es) to bash for it to be accepted. Both /bin and /usr/bin should be put there, for all to be accepted.

sylvian14 03-05-2005 01:21 PM

You can also do it in /etc/profile, that's where the files for system-wide user shells are being located, that's if you want to use bash shell as your default login shell.

Hope that helps.

jlliagre 03-06-2005 02:33 AM

Quote:

You can also do it in /etc/profile, that's where the files for system-wide user shells are being located, that's if you want to use bash shell as your default login shell.
/etc/profile is not a directory or a location for system wide user shells, it is just a single script file that is executed by bourne and bourne like shells at login. It is not recommended to mess with this file to have it changing the shell as it will be done for everyone. Better use /etc/shells and /etc/passwd as I suggested before.

sylvian14 03-06-2005 08:17 AM

Quote:

Originally posted by jlliagre
/etc/profile is not a directory or a location for system wide user shells, it is just a single script file that is executed by bourne and bourne like shells at login. It is not recommended to mess with this file to have it changing the shell as it will be done for everyone. Better use /etc/shells and /etc/passwd as I suggested before.
I've not come across this, I've always used the "admintool" menu to assist me in this. Good method. :)

wpn146 03-08-2005 09:52 AM

Re: A Few questions about Solaris in general !!!
 
Quote:

Originally posted by cereal83
Hey all,

Well I got Solaris installed this morning and I have been playing with it for a little while but I need to know a little bit more.

First my mouse Wheel isn't working and it's very annoying. In Linux you would modify the xorg.conf in /etc/X11. I went to /etc/X11/ but there wasn't really anything in there that I can modify so if somebody know how or where I have to go to do this, that would be great.

Next, I am looking for some kind of GUI program to add users and that kinda of stuff. I looked around and noticed some people mentions SMC and ADMINTOOL. I looked around on my computer for that but can't find anything so again if somebody could help me, that would be great.


You didn't say what version of Solaris you were using. "Admintool" works fine for me on Solaris 8.
Quote:

Is the default home directory for new users /export/home in Solaris because I know with Linu it's /home/
That is the default during install. You can change it after installation by editing the /etc/passwd file, creating the directories needed. Be sure you set ownership of the user's home directory to the owner. Assuming you do not want to automount /home, also comment out everything in /etc/auto_home and /etc/auto_master.
Quote:

Well so far everything seems to be going good ok. I can do alot of stuff because it's similar to linux. I am using Gnome after trying the other window manger and this one is much much easier.

Thanks and I look forward to some help.

Thanks again.
Quote:

Also 1 other thing. Anybody know a good site to download software from and is there an apt-get type program for Solaris to update it?
www.sunfreeware.com. The packages are in Solaris package format and install using pkgadd.

Also, anything distributed as a tarball will probably work using the standard "./config && make && make install".
Quote:

quote:In linux when you are working with the command line and you have some of a command down, you can hit "tab" to finish the command. Is there any way of doing that with Solaris?


This is not a linux feature, but a bash one, so if you may just use bash as your login shell, if you prefer it. Bash is already distributed with Solaris.
Bash is my preferred shell too, but for those that prefer csh, issue a "set filec" and the <esc> key becomes your file completion key.


All times are GMT -5. The time now is 04:56 AM.