Download - OpenSolaris and Linux Basic Comparison
![Page 1: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/1.jpg)
Linux vs. OpenSolarisBasic Comparison
Martin Man
Solaris RPE
http://martinman.net
![Page 2: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/2.jpg)
Goal of this presentation
You know more about OpenSolaris than you ever thought and wanted to admit.
![Page 3: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/3.jpg)
pg 3
Agenda
Development ModelThings that matter to the DevelopersHow do I?
Get Root?Find my Tools?Understand the Filesystem?Manage the Drivers?Manage the Processes?Configure Networking?
Questions & Answers
![Page 4: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/4.jpg)
Development Model of OpenSolaris
Linux feels like it was written.Solaris feels like it was designed.
While I think that Sun’s development processes can sometimes be a little heavyweight, and I think that Sun is
trying to retain too much control over OpenSolaris, there is a lot to be said for having processes in place to guide
development.
(from directorymanager.wordpress.com)
![Page 5: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/5.jpg)
pg 5
Development Model of OpenSolaris
Every checkin to the repository is connected to a bug # and has undergone a peer reviewSignificant changes to the system need to have an ARC = Architecture Review Committee case approved firstBinary build scheduled every two weeks, feature planning bound according to the schedule (currently at 101, 102, 103, ...)
![Page 6: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/6.jpg)
Typical Checkin Message
(taken from onnv-notify)
![Page 7: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/7.jpg)
ARC Listing for 2007
(taken from ARC OpenSolaris Community)
![Page 8: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/8.jpg)
pg 8
Development Model of Linux
The “not so benevolent dictatorship” model.Real “benevolent dictatorship” implemented in Python community
“I will check it in, when I like it, and if I don't like you, I will never do it”No big-picture planning and coordinationReleases happening mostly at random
Stable “even” branch (2.4.x, 2.6.x, ...)Development “odd” branch (2.5.x, 2.7.x, ...)
![Page 9: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/9.jpg)
pg 9
Things that matter to Developers
Stable APISee attributes(5)Every command, syscall, ..., will have a documented interface stability in its manpageYou can bet your future on this
Binary compatibilityGoing back to Solaris (..., 2.5.1, 8, 9, 10)Drivers mostly “just work”
Backwards compatibility obsession“It has worked before, why not now?”
![Page 10: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/10.jpg)
Things that matter to Developers
You can rely on OpenSolaris or for that matter on Solaris.
To achieve the same level of stability you need to choose the right Linux distro and stick
to it. (Am I hearing “Debian”)
![Page 11: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/11.jpg)
How do I: Get Root?
In all modern UNIX systems (Linux, OpenSolaris, MacOS/X) the daily work is
carried under non-privileged user.
Different ways are used to “become root”...
![Page 12: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/12.jpg)
How do I: Get Root?
$ sudo bashPassword:#
$ pfexec bash# pkg install SUNWsudo...
![Page 13: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/13.jpg)
How do I: Find my Tools?
# apt-cache search rsync# dpkg -S rsync# apt-get install rsync netcat...
# pkg search -r rsync# pkg search rsync# pkg install SUNWrsync SUNWnetcat...
![Page 14: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/14.jpg)
How do I: Find my Tools?
/usr/binSolaris SVR5 tools
/usr/gnu/binGNU userspacefirst entry in PATH by default to ease the transition for Linux users
/usr/xpg4/binX/Open standartized binaries
![Page 15: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/15.jpg)
How do I: Find my Tools?
CompilersSUNWgcc, SUNWbinutilssunstudioexpress, SUNWtoo
LanguagesSUNWruby18, SUNWjrubySUNWPython
![Page 16: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/16.jpg)
How do I: Understand the filesystem?
Linux/home/var/log/tmp/sys, /dev
OpenSolaris/export/home/usr/adm, /var/adm, /var/log/var/tmp/devices, /dev
![Page 17: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/17.jpg)
How do I: Manage the Drivers?
Linuxlsmod, insmod, rmmod, modprobe/etc/modules, /etc/modprobe.d/*/lib/modules/`uname -r`/*
OpenSolarismodinfo, modload, modunloadadd_drv, update_drv, rem_drv/etc/driver_aliases, /kernel/drv/*.conf/kernel/drv/*
![Page 18: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/18.jpg)
How do I: Manage the Processes?
Linuxtop, ps, strace, kill/proc/$pid/
OpenSolarisprstat, ps, truss, killpgrep, pargs, pfiles, pstackdtrace
![Page 19: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/19.jpg)
How do I: Manage the Processes?
Linuxvia /etc/init.d and /etc/rc.ddistro specific mechanism
OpenSolarisSMF – Service Management Facilitysvccfg, svcadm, svcsstarts, stops the servicemonitors the health, restarts when service fails, uses contract(4) to manage processes
![Page 20: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/20.jpg)
How do I: Manage the Processes?
# ps aux | grep vim...# cat /proc/<pid_of_vim>/cmdline...
# pargs `pidof vim`...# pstack `pidof java`...
![Page 21: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/21.jpg)
How do I: Configure the Network?
Linuxifconfig, route, netstat, ipiptablesNetworkManager + distro specific
OpenSolarisifconfig, route, netstat, dladmipfNetwork Auto Magic
![Page 22: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/22.jpg)
Thank You
Questions & Answers
![Page 23: OpenSolaris and Linux Basic Comparison](https://reader033.vdocuments.us/reader033/viewer/2022051513/5469d999af79593b558b4e2b/html5/thumbnails/23.jpg)
Linux vs. OpenSolarisBasic Comparison
Martin Man
Solaris RPE
http://martinman.net