LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This 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


Reply
  Search this Thread
Old 03-09-2005, 05:59 AM   #1
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137

Rep: Reputation: 15
Solaris for Linux users


I have recently bought an old Ultra 5 and installed Solaris 10 on it. I am reasonably competent with Linux but am spending a lot of time trying to work out how to do dozens of little things. This forum is full of Q&A dealing with similar issues.

It occurs to me that someone somewhere must have written a guide to Solaris for Linux users. Is there a pdf or web page or something? I have not found much on the internet.

ZB
 
Old 03-09-2005, 09:36 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Don't know exactly what you're looking for. Here's a good starting point:

http://docs.sun.com/app/docs/doc/817-1658

as well as

http://docs.sun.com/app/docs/coll/47...+administrator

Great thing docs.sun.com is.
 
Old 03-09-2005, 09:46 AM   #3
mqzaidi
LQ Newbie
 
Registered: Mar 2005
Distribution: ubuntu,mepis,fedora,debian
Posts: 2

Rep: Reputation: 0
There is one doc called Linux overview for Solaris Users
http://www.google.co.in/url?sa=U&start=1&q=http://www.sun.com/blueprints/0803/817-3341.pdf&e=7620
I found it very useful the other way round.
 
Old 03-09-2005, 12:04 PM   #4
sixosix
LQ Newbie
 
Registered: Mar 2005
Location: Florida
Posts: 4

Rep: Reputation: 0
What are you looking for? Maybe I can help. I am a Linux user who has recently started using Sun. I am learning too, but maybe there is something I have already read on docs.sun.com that can help you.

-Mike
 
Old 03-09-2005, 12:42 PM   #5
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 15
Thanks guys, I have been looking at the Sun site but they are so vast and so much is aimed at enterprise setups. In time I will have a fat Solaris manual but, at the moment, I am looking quick answers to silly problems. The article mentioned by mqzaidi is a good start.

I have spent so much time trying to work out what is the Solaris equivalent of slocate, why I cannot create a user directory in /home, how to create a user with sensible defaults, how to start sshd, how to install "less" instead of "more", why I have no man pages or documentation, how to change my installation packages ... and plenty more. Some of these questions I have answered, for some I am still searching.

There must be thousands of people who have done a similar journey and I was hoping to find a journal/guide somewhere recording the gotchas and solutions. It must be out there somewhere.

ZB
 
Old 03-09-2005, 01:03 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I understand you Solaris default home directory for root is / which cause
create some dot files in /, I changed the home dir for root to /var/root in
/etc/passwd file and his default shell to /usr/bin/bash.
 
Old 03-09-2005, 02:03 PM   #7
sylvian14
LQ Newbie
 
Registered: Feb 2005
Location: Malaysia
Distribution: Slackware Solaris SCO RH
Posts: 20

Rep: Reputation: 0
I understand your predicament, as I'm new to Linux and also to Solaris.

Maybe you can start to enquire about the basic admin then work your way up from there.
 
Old 03-09-2005, 02:16 PM   #8
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Quote:
Originally posted by zaphod_es
Thanks guys, I have been looking at the Sun site but they are so vast and so much is aimed at enterprise setups. In time I will have a fat Solaris manual but, at the moment, I am looking quick answers to silly problems. The article mentioned by mqzaidi is a good start.

I have spent so much time trying to work out what is the Solaris equivalent of slocate, why I cannot create a user directory in /home, how to create a user with sensible defaults, how to start sshd, how to install "less" instead of "more", why I have no man pages or documentation, how to change my installation packages ... and plenty more. Some of these questions I have answered, for some I am still searching.

There must be thousands of people who have done a similar journey and I was hoping to find a journal/guide somewhere recording the gotchas and solutions. It must be out there somewhere.

ZB
Ah, some classics.

First off, the /home thing. Look in /etc/auto.master ( I believe that's right, look in etc for auto, you'll find it ). In that file will be something like +/home, remove the line. You can now do stuff in /home ( might require restart of some service, or just reboot ).

There is no equivalent of slocate. If you want a good replace, make a shell script that does a "find / > /blah/locate.db", put it in cron to go off at 4am at night, then create another shell script called locate that does "grep -i $1 /blah/locate.db". However, there may be some compiled program out there that does it for you.

SSH should be installed by default, if not, install it, then you'll have to create an init script, follow what's in /etc/init.d, then create a link in /etc/rc2.d to that startup script.

I'm trying to remember the site, http://www.sunfreeware.com

The good old man pages problem, man -k not runable by default, you have to execute makewhatis and give it the path to your man pages in order for it to work, if you have no man pages to begin with, then you didn't install them when installing Solaris ( for future suggestion, when given the options of what to install for Sun, usually a multi-choice radio button option, choose the one that inclues the kitchen sink )

Anyway, those are the answer to the questions you have above, I can probably answer quite a few more having gone through this hassle many times on many different sun boxes.
 
Old 03-11-2005, 05:41 PM   #9
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 15
Thanks Technoslave, I appreciate your help.

The home directory problem was not a problem once I realized that I should ignore /home and look at /export/home

The missing slocate seems like a massive oversight. It is freely available on every Linux distro that I have seen and is incredibly useful. I suppose there must be some technical reason for leaving it out. It is hard work writing an equally reliable script and I do not believe that every Solaris admin does that.

It was not a problem with sshd once I searched for it (using find which is a bit over the top for such a simple task) and found that it was run from /usr/lib/ssh The lib bit confused me as I was expecting /usr/bin or something similar.

The man pages are starting to haunt me You were a great help mentioning makewhatis. I am slowly working out how much there is to man files. I am used to them just being there and working by default. I installed the documnetation (at least I asked for it) and have found man files all over the place. Quite a few are now accessible using the man. I reckon i will have won when I can run:
man man
and get a response In the mean time I am trying to get a MANPATH that works.

Thanks for the help and for the offer of more. I am still sure there must be a Linux users' guide to Solaris somewhere - or at least there must be plenty of people as confused as I am. I really want to get to grips with some of the really cool Solaris stuff like zones and dtrace and am stuck trying to learn vi when I have always used vim.

Just in case I am irritating any old Solaris hands: I am not getting at Solaris - it will be some time before I will know enough to even try. I am jut truing to find the fm to read

ZB
 
Old 03-11-2005, 11:25 PM   #10
technopark02
Member
 
Registered: Feb 2005
Distribution: Solaris 8 - 11, JDS Linux 3.0
Posts: 99

Rep: Reputation: 15
>>> In the mean time I am trying to get a MANPATH that works

With the following MANPATH, you will be able to access most of the man pages. Add more to it as you come across any missing path

MANPATH=/usr/dt/man:/usr/man:/usr/openwin/share/man:/opt/sfw/man:/usr/local/man
 
Old 03-12-2005, 05:43 AM   #11
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 15
This is what I tried:
$echo $MANPATH
/usr/bin/man:/usr/openwin/share/man:/usr/openwin/man:/usr/share/man:/usr/sfw/share/man:/usr/sfw/man:/usr/perl5/5.8.3/man:/usr/dt/man:/usr/dt/share/man:/usr/man:/usr/apache2/man:/usr/apache/man
# man man
No manual entry for man.

I get the same result for man ls, grep, who, and lots of others so there must be something missing. On the other hand man perl, apache, mozilla, openssl do work. There must be a vital path missing but I cannot work out which..

ZB
 
Old 03-12-2005, 03:26 PM   #12
technopark02
Member
 
Registered: Feb 2005
Distribution: Solaris 8 - 11, JDS Linux 3.0
Posts: 99

Rep: Reputation: 15
That's strange. Even if MANPATH env variable is not set, man should be using /usr/share/man path as the default search path.

Can you check if you have any files under /usr/share/man. Also search for man pages for essential commands like "ls" under /usr/share/man, and try man -M /usr/share/man ls, if you found ls.1 somewhere under /usr/share/man

eg.,
% find /usr/share/man -name ls.1
/usr/share/man/man1/ls.1

% man -M /usr/share/man ls
Reformatting page. Please Wait... done

User Commands ls(1)

NAME
ls - list contents of directory

SYNOPSIS
/usr/bin/ls [-aAbcCdeEfFghHilLmnopqrRstux1@] [file...]
...
...

% man -M /usr/share/man/man1 ls <- incorrect usage
No manual entry for ls.
 
Old 03-13-2005, 03:26 PM   #13
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 15
Thanks Technopark2. I am slowly working out some of the differences from Linux

I ran the find command a drew a zero result. I then ran the various commands you suggested plus some:
:
Code:
-bash-3.00$ pwd
/usr/share/man/man1
-bash-3.00$ ls -l
total 118
-r--r--r--   1 root     bin        37492 Jan 11 00:01 unzip.1
-r--r--r--   1 root     bin        22137 Jan 11 00:01 zipinfo.1
-bash-3.00$ gunzip -l *

gunzip: unzip.1: not in gzip format

gunzip: zipinfo.1: not in gzip format

-bash-3.00$ man -M /usr/share/man ls
No manual entry for ls.


-bash-3.00$
I guess that the man files are still zipped but in another format?

There are lots of *.1 files in /usr/shar/man/sman1 and the ones that have tried do format properly when the man command is run.

ZB
 
Old 03-13-2005, 04:05 PM   #14
technopark02
Member
 
Registered: Feb 2005
Distribution: Solaris 8 - 11, JDS Linux 3.0
Posts: 99

Rep: Reputation: 15
>>> I ran the find command a drew a zero result.

Okay, guess your installation is missing essential manual pages and may be some other documentation that you may need. So, try to install the missing documentation from the installation CDs. Important: Make sure to select "upgrade installation", but not "new installation". Then choose "custom installation"

>>> gunzip: unzip.1: not in gzip format
>>> gunzip: zipinfo.1: not in gzip format

unzip.1 & zipinfo.1 are the actual man pages with embedded markup. man utility takes care of the markup and shows the information in plain ASCII text. So, "man unzip" should be working on your machine

eg., To check the file type of unzip.1:

% file unzip.1
unzip.1: [nt]roff, tbl, or eqn input text
 
Old 03-13-2005, 04:14 PM   #15
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 15
Great, now I think I understand what is going on. There is more to a man page than I realised.

I need to do a clean install to see if I can solve a number of problems and have what I need and no more. I will take care with the documentation options.

ZB
 
  


Reply



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
Moving Solaris Users and Passwords to Linux chicofidel Linux - Newbie 6 08-19-2005 06:55 AM
From an end users point of view, What is Solaris. Optyx Solaris / OpenSolaris 7 03-07-2004 03:41 PM
advise on solaris computers browsing the web as normal users jamaso Solaris / OpenSolaris 5 11-26-2003 09:53 AM
Linux+Solaris : How can Linux login tu Solaris alnizam Solaris / OpenSolaris 2 06-04-2003 01:06 PM
Linux+Solaris : How can linux login to Solaris alnizam Linux - Software 2 05-28-2003 10:39 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:49 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration