What are the big differences between Linux and Solaris?
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.
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 385
Rep:
Maybe maybe not
Quote:
Originally Posted by jlliagre
That really depends on the source code. Portable code will compile with no issue, by design, non portable one will require more or less work ...
You'll find most "production/server" oriented packages available for both, but there are undoubtedly more desktop oriented and niche packages for Gnu/Linux. Note than this gap is smaller these days than it use to be several years ago.
I'm sure that some Linux apps might be gently persuaded to work. If the adobe flash port from Linux to PC-BSD is any guide, it works but not quite as smoothly as one would like.
My best guess would be that 2 out of 3 Linux apps would run the same. Half of the remaining would run poorly, the others not at all. Then again, they might run just fine.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
The link you posted is about lxrun, which is obsolete and unsupported on Solaris 10 or newer. Its goal was to allow unmodified linux binaries to run on Solaris, a different approach than recompiling/porting source code.
Solaris 10 provides lx branded zones for a similar solution, but the linux kernel emulated is quite old now and these zones are no more supported with with Solaris 11 Express anyway. Should you want to run 100% of Linux applications "on Solaris" without porting them, the easiest and safest way is to use VirtualBox and install a real Gnu/Linux distribution as a guest.
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 385
Rep:
Linux ports for Solaris
I'm sure that somewhere there is a program that will port Linux applications for Solaris to run. Heck, if PC-BSD has a Linux emulator Solaris probably has one to.
However, that might be a feature that you have to pay for as in not included in the free download.
The hard thing is going the other way, that is getting a pure UNIX program to run on Linux. Of course, reading each other's filesystems is a nightmare.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by mdlinuxwolf
if PC-BSD has a Linux emulator Solaris probably has one to.
However, that might be a feature that you have to pay for as in not included in the free download.
There is no such product outside those I already mentioned.
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 385
Rep:
Of course, the issue of what programs do and don't run can easily be resolved by downloading the live CD or for Open Indiana the live DVD and then.... simply testing it for your system and hardware.
This is the same thing you do when deciding what Linux distribution to use when you first start out or if you want to switch.
Should I switch to Open Indiana or Solaris 11 express, my biggest concern will be data migration, not whether or not only 100 printers are supported versus 300 printers or whatever.
The live DVD image for Open Indiana is about 876 megabytes in size. I'm sure that many bells and whistles are included. When I tested the live CD for Solaris 11 express, all my hardware worked perfectly. I'm using an Lenove 3000 N100 with an ancient HP Office Jet T65 all in one printer.
The only thing I didn't test was wireless printing or file sharing to other computers in my household since I don't care about that anyway.
Solaris 10 offers
zfs, dtrace which are 2 huge differences also it provides greater amount of scalability. Supports software raid, ability to split mirrors very handy for doing upgrades etc. this is just a handful but there are a lot more.
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 385
Rep:
Open Indiana
I tested the Open Indiana live DVD, which proved to be quite disappointing. The Solaris 11 Express CD worked far better with my hardware and even with multimedia online. Open Indiana has too many missing codecs and drivers for what I use for me to consider adopting it.
Of course, I'm running Fedora 14 as of now & I have no problems with it.
Linux vs Solaris: Look & Feel
Linux is very much a "hobbyist's operating system" as far as most Linux distributions are concerned. True, there are distros aimed at the enterprise (RHEL for servers, SUSE & Ubuntu for Desktops, etc), however the primary strength of Linux is that it can almost run on anything. Another great thing about Linux besides it's hardware flexibility is that it adds a layer of user-friendlyness to a UNIX environment that helps someone "cutting their teeth" on a UNIX environment. You don't see POSIX much in the Linux world, but it's there.
However, Solaris (actual Solaris, not OpenSolaris) is very much a UNIX. As the saying goes "UNIX doesn't have to be user-friendly, it has enough friends". The hardware that you'll see Solaris running on is typically designed to meet the demands of an enterprise-class environment. Standards such as POSIX are usually enforced well, and there's an expectation that if something done a certain way 15 to 20 years ago worked, that it will work now. If you're coming from a Linux environment, the sharp corners that Solaris has will catch up to you rather quickly, and it can be quite frustrating at times.
On a side note, projects such as OpenSolaris do a good job of trying to bridge the gap between Solaris & Linux (in a usability sense).
Linux stuff on Solaris
If you're looking for some GNUness, you can either head over to www.sunfreeware.com or www.blastwave.org. The former is good for Production environments that don't change a lot (and where you have to document and repeat an installation process over and over). The latter is great for Development, and allows you to automate it's package-dependency resolution.
However, SunFreeWare (SFW) is probably more suited for those wanting one directory (/usr/local) to export-out to zones. Whereas BlastWave's directory structure (/opt/csw, /var/opt/csw, and somewhere in /etc) needs a good bit of "massaging" in order to get it to play nice-nice with zones (and not overload everything with multiple installations of the same package on every stinking zone).
Okay, maybe that was $0.05 USD...
P.S: If you're looking for something more comprehensive, might I suggest this paper by Dr. Nikolai Bezroukov. It harkens back to 2005-2009, but it does give you a good breakdown. Definetly worth the read.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by xeleema
However, Solaris (actual Solaris, not OpenSolaris) is very much a UNIX.
...
On a side note, projects such as OpenSolaris do a good job of trying to bridge the gap between Solaris & Linux (in a usability sense).
Solaris 11 (Express) is both an actual Solaris and the successor of OpenSolaris, so the gap you describe is/will be less valid with the latest/next Solaris release.
Note also that some basic Gnu tools are bundled with Solaris in /usr/sfw/bin in Solaris 10 and in /usr/gnu/bin in Solaris 11 Express.
Solaris 11 (Express) is both an actual Solaris and the successor of OpenSolaris, so the gap you describe is/will be less valid with the latest/next Solaris release.
On one hand, I'm inclined to agree with you. It used to be that the "Express" builds (and then the OpenSolaris builds) were "proving grounds" for certain features that would be rolled into the next Solaris 10 Update (with the eventual goal of pushing out "Solaris 11"). However, given Oracle's track record for royally goobering things up, I almost agree with you.
Quote:
Originally Posted by jlliagre
Note also that some basic Gnu tools are bundled with Solaris in /usr/sfw/bin in Solaris 10 and in /usr/gnu/bin in Solaris 11 Express.
This is true. A full install (or using the "Companion Disk") would yeild a /usr/sfw on Solaris 10. I've not messed with Solaris 11 Express yet myself.
Thanks for the post, I might give "Express" a shot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.