LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-03-2008, 08:35 PM   #16
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105

# mount -r -F hsfs /dev/dsk/c0t1d0s2 /cdrom

did that just this afternoon.

Don't blame Solaris for operator ignorance. If you were a Solaris admin switching to Linux or BSD, you would find it equally confusing. Keep a notebook as you are learning. Get some reference books that point out the differences. Check out the following thread: http://www.linuxquestions.org/questi...ris+references, as well as the this one: http://www.linuxquestions.org/questi...olaris-589080/.

Sun SPARC systems can be pretty amazing. I'm just finally decommissioning E250's that are approaching 10 years old this summer. They have performed remarkably well over that span of time. We finally got money to get new servers, and I'm putting in a couple of Sun T5220's. The cpu's are 8 core, with 8 threads per core, an FPU per core, an encryption accelerator per core, and 2 on cpu 10Gb/s ethernet circuits as well as 4 GigE ports on the back. The machines are only 2u, use less power than the E250's, are probably 100 times faster or more, and I can sling them under my arm and carry them the length of the building. There is a kernel module ssl proxy in Solaris 10 that accesses the on chip encryption accelerators so that you can offload the cpu load from user applications that need encryption. The thing looks like 64 cpu's to the OS. And this is what they call an entry level server. Gotta love it.
 
Old 06-03-2008, 10:15 PM   #17
fancylad
Member
 
Registered: Mar 2008
Distribution: slackware
Posts: 175

Original Poster
Rep: Reputation: 19
Thanks for the links. There's some helpful stuff in there. You do have a point about not blaming Solaris for my ignorance. However, I don't think that it would be as difficult going from Solaris to Linux, if no other reason than pretty much everything you need is in your path. I'm sure there's a reason for the way Solaris is laid out but because I don't understand why I find it very confusing.

I still don't quite understand how the "special" device files in Solaris work. For instance, how does /dev/dsk/c0t1d0s2 refer to the cdrom if the last number means slice 2? I thought a slice in Solaris was tantamount to a partition?
 
Old 06-04-2008, 02:44 AM   #18
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by fancylad View Post
Thanks for everyone's help. I'm really trying to not hate Solaris but it is hard. I understand that it is very stable and has a lot of really cool features (zfs, zones, etc) but the fact that it is so non-user-friendly out of the box is driving me crazy.

Here are some things about Solaris that I hate (so far):

1> Most of the utilities that you need are not in your path by default.

2> No vim by default.

3> Default shell is garbage.
I'm not going to explain the rationale behind this but anyway you are not alone. These rants are typical of a GNU/Linux only user discovering a non Linux still Unix OS.
A distribution has been created to match these requirements and started its life recently. You should have a look at OpenSolaris 2008.05 ( www.opensolaris.com )

Quote:
I understand that you can customize Solaris to your heart's content but at work I don't really have this option. We have about 12-20 Solaris machines and I'm constantly jumping on this one or that one to solve a problem. I really don't have the time to add all the directories I need to my path or install vim, etc.
There is just one file you need to edit that allows you to set the default path for all users on a machine.
Quote:
Why not just give us a decent working environment by default?
Not to break compatibility.
Quote:
If we don't like it we can just change it later. I mean who actually wants to use that crappy shell?
Nobody.
Nobody should use it anyway as logging in as root is a poor practice.
Quote:
Why not just use tcsh or bash by default.
The shell to be used is a user's choice, not the system choice.
I personnaly prefer and use ksh93.
Quote:
I know that NetBSD does the same thing but that doesn't make it right.
Well, think about it as a tradition so deeply rooted it's hard to change it.
For example the US is using an unconvenient and anachronic measurement system that piss people off much more than the legacy /bin/sh ...
 
Old 06-04-2008, 10:37 AM   #19
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
The default shell is "sh" and not "bash". That is because in case of system error, and you boot in rescue mode, there can be problem loading a large shell as bash. bash is dynamically linked, all parts are not in one directory. If you can not even load bash then you are in big trouble. However, sh is loadable in one piece. This is from long ago. Is it still like this? Or is this problem solved?


And yes, I tend to agree with you about Solaris. It feels antique. I installed it and didnt like it really. Sure, it is rock solid, but it was hard to use. I installed OpenSolaris instead, which is very similar to a modern Linux, just like SuSE, RedHat or Ubuntu. Everything got detected automatically, nvidia card, my monitor, sound, network, etc. Samba was automatically setup. etc etc. Just like a normal Linux. So I quickly ditched S10. It is a bit hard, and not for the faint of heart. OpenSolaris is very easy.
 
Old 06-04-2008, 10:38 AM   #20
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
And you can download vim from www.blastwave.org. There are FAQs that show how to download and manage their package system. Very easy. Recommended.
 
Old 06-04-2008, 11:00 AM   #21
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by kebabbert View Post
However, sh is loadable in one piece. This is from long ago. Is it still like this?
That was a point used until Solaris 10 was out. Now Solaris 10 mandates all binaries to be dynamically linked. Anyway, it would have been possible to build a statically linked ksh.

The real reason for maintaining the old original Bourne shell as default shell is not to risk breaking shell scripts as no modern shell is strictly compatible with /bin/sh. Neither ksh, ksh93, bash or other are guaranteed properly execute existing scripts.
 
Old 06-04-2008, 01:11 PM   #22
fancylad
Member
 
Registered: Mar 2008
Distribution: slackware
Posts: 175

Original Poster
Rep: Reputation: 19
Here's one to add to my list of reasons I hate Solaris:

4> netstat can't show PID of socket.
I mean come on. I use this feature all the time in Linux and Windows. In fact I need it right now on Solaris 8.

How can I find the pid of a socket?

Thanks
 
Old 06-04-2008, 02:25 PM   #23
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Rep: Reputation: 15
Quote:
Originally Posted by fancylad View Post

How can I find the pid of a socket?

You can find the PID in several ways.
You could try 'lsof'. However, lsof don't come standard with your installation; so you 've got to download it from sunfreeware.

But then there is always dtrace.
With dtrace you can roll your own.
See http://unixconsult.org/sock_top.d and run it.

Last edited by coolster; 06-04-2008 at 02:29 PM.
 
Old 06-04-2008, 03:28 PM   #24
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by fancylad
How can I find the pid of a socket?
That is a 7 years old "bug" (RFE actually) ...
http://bugs.opensolaris.org/view_bug.do?bug_id=4616466

I suppose the motivation to correct it isn't sufficient due to the workarounds available.

For example that one, slightly modified from the bug report:
Code:
psrch() {
 for p in $(ps -eo pid | tail +2)
 do
  pfexec pfiles $p 2>/dev/null | grep "port: $1" >/dev/null && ps -fp $p
 done
}
As coolster mentioned, lsof is also good for that task (but is quite lost with ZFS ... )

I just read that the solution to provide this feature would be trickier to implement as an open socket can belong to 0, 1 or more processes ...

Last edited by jlliagre; 06-04-2008 at 03:36 PM.
 
  


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
LXer: Fear and Loathing in Open Source Marketing LXer Syndicated Linux News 0 03-01-2008 04:30 PM
Apple is Worried? (Fear and Loathing in Cupertino) rickh General 3 05-18-2007 05:51 PM
LXer: Fear And Loathing In Googlemania LXer Syndicated Linux News 0 04-27-2006 04:54 AM
LXer: Fear and loathing: is open source a developer's dream or business LXer Syndicated Linux News 0 02-26-2006 02:01 PM
Myth2: fear&loathing undefined symbols trollhatt Linux - Games 1 11-08-2004 08:35 AM

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

All times are GMT -5. The time now is 09:05 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