LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 02-28-2005, 06:49 PM   #1
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 478

Rep: Reputation: 30
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.
 
Old 02-28-2005, 06:52 PM   #2
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 478

Original Poster
Rep: Reputation: 30
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

Last edited by cereal83; 02-28-2005 at 06:55 PM.
 
Old 03-01-2005, 09:37 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 03-01-2005, 09:48 AM   #4
Maidros
Member
 
Registered: Jan 2004
Location: Haifa, Israel
Distribution: Debian, FreeBSD, Solaris
Posts: 101

Rep: Reputation: 15
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
 
Old 03-01-2005, 03:18 PM   #5
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 478

Original Poster
Rep: Reputation: 30
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
 
Old 03-01-2005, 05:17 PM   #6
Maidros
Member
 
Registered: Jan 2004
Location: Haifa, Israel
Distribution: Debian, FreeBSD, Solaris
Posts: 101

Rep: Reputation: 15
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
 
Old 03-01-2005, 11:27 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,066

Rep: Reputation: 295Reputation: 295Reputation: 295
Also, bash ins in /usr/bin (not /bin) in Solaris.
 
Old 03-02-2005, 02:53 AM   #8
Maidros
Member
 
Registered: Jan 2004
Location: Haifa, Israel
Distribution: Debian, FreeBSD, Solaris
Posts: 101

Rep: Reputation: 15
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
 
Old 03-02-2005, 04:58 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Code:
man getusershell
will tell you how to have bash accepted as a login shell.
 
Old 03-02-2005, 08:21 PM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,066

Rep: Reputation: 295Reputation: 295Reputation: 295
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.
 
Old 03-03-2005, 12:35 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 03-05-2005, 01:21 PM   #12
sylvian14
LQ Newbie
 
Registered: Feb 2005
Location: Malaysia
Distribution: Slackware Solaris SCO RH
Posts: 20

Rep: Reputation: 0
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.
 
Old 03-06-2005, 02:33 AM   #13
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 03-06-2005, 08:17 AM   #14
sylvian14
LQ Newbie
 
Registered: Feb 2005
Location: Malaysia
Distribution: Slackware Solaris SCO RH
Posts: 20

Rep: Reputation: 0
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.
 
Old 03-08-2005, 09:52 AM   #15
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
general questions piva.francesco Linux - Software 4 05-05-2005 02:44 AM
General questions Fachmann Linux - General 4 03-08-2005 05:31 PM
General Questions gcobb Linux - Software 2 10-21-2004 12:09 AM
general questions ChrisC Linux - General 1 03-31-2003 07:28 PM
general questions [cacheflow] Linux - Newbie 4 01-25-2002 07:01 PM


All times are GMT -5. The time now is 12:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration