Jump to content

Solaris 10 impressions


 Share

Recommended Posts

Here is my review since i've been using Solaris 10/11ish :)

bash-3.00$ uname -srv

SunOS 5.11 snv_23

 

This just means I run Sun Solaris Express Nevada Build 23 (the road to Solaris 11)

 

First off, for normal user, your path pretty much sucks. So in your home dir I create a

.profile and drop this in it.

 

bash-3.00$ cat .profile

set -o vi

PATH=/opt/csw/bin:/opt/sfw/bin:/usr/sfw/bin:/usr/X/bin:/usr/ccs/bin:$HOME/bin:$PATH

 

Second, way to many ports open:

 

bash-3.00# nmap -v -P0 -sT localhost

 

Starting nmap 3.48 ( http://www.insecure.org/nmap/ ) at 2005-10-24 09:58 CDT

Host localhost (127.0.0.1) appears to be up ... good.

Initiating Connect() Scan against localhost (127.0.0.1) at 09:58

Adding open port 6000/tcp

Adding open port 6112/tcp

Adding open port 23/tcp

Adding open port 21/tcp

Adding open port 513/tcp

Adding open port 7100/tcp

Adding open port 587/tcp

Adding open port 22/tcp

Adding open port 898/tcp

Adding open port 4045/tcp

Adding open port 514/tcp

Adding open port 111/tcp

Adding open port 79/tcp

Adding open port 25/tcp

Bumping up senddelay by 10000 (to 10000), due to excessive drops

The Connect() Scan took 52 seconds to scan 1657 ports.

Interesting ports on localhost (127.0.0.1):

(The 1643 ports scanned but not shown below are in state: closed)

PORT STATE SERVICE

21/tcp open ftp

22/tcp open ssh

23/tcp open telnet

25/tcp open smtp

79/tcp open finger

111/tcp open rpcbind

513/tcp open login

514/tcp open shell

587/tcp open submission

898/tcp open sun-manageconsole

4045/tcp open lockd

6000/tcp open X11

6112/tcp open dtspc

7100/tcp open font-service

 

Nmap run completed -- 1 IP address (1 host up) scanned in 52.550 seconds

 

Alright, I really hate ftp/telnet and could go without someone finger'n my box.

 

 

vi /etc/inet/services

 

#ftp-data 20/tcp

#ftp 21/tcp

#telnet 23/tcp

#finger 79/tcp

 

Locate the inetd process and send it a SIGHUP signal (aka restart)

 

bash-3.00# ps -ef | grep inetd

root 278 1 0 09:12:14 ? 0:02 /usr/lib/inet/inetd start

root 1615 1351 0 10:55:57 pts/4 0:00 grep inetd

bash-3.00# kill -1 278

 

bash-3.00# nmap -P0 -sT localhost

 

Starting nmap 3.48 ( http://www.insecure.org/nmap/ ) at 2005-10-24 10:56 CDT

Interesting ports on localhost (127.0.0.1):

(The 1646 ports scanned but not shown below are in state: closed)

PORT STATE SERVICE

22/tcp open ssh

25/tcp open smtp

111/tcp open rpcbind

513/tcp open login

514/tcp open shell

587/tcp open submission

898/tcp open sun-manageconsole

4045/tcp open lockd

6000/tcp open X11

6112/tcp open dtspc

7100/tcp open font-service

 

Nmap run completed -- 1 IP address (1 host up) scanned in 52.903 seconds

 

 

 

 

Ok, anyway, lets mv on now that we have a decent PATH and shut off telnet/ftp/finger.

 

Most people here are familiar with yum/apt-get/urpmi, with solaris there is a “pkg-get” from a 3rd party site, from what I know there are some Sun employee's that build a lot of the packages and I have used them off/on for a few years now, so I trust them. I'm not going to walk you through setting it up, you can follow the instructions.

 

http://www.blastwave.org/howto.html

 

Once you have it setup, it's pretty easy to use,

 

Update the package catalog and update all pkg-get installed pkgs

 

pkg-get -U -u

 

Install a package

 

pkg-get -i firefox

 

You get the idea, I'll spare you the blah blah blah.....

 

Also there is more software at: http://sunfreeware.com/

 

One of these days I will get around to installing pkgsrc from netbsd on to Solaris too.

 

http://www.netbsd.org/Documentation/software/packages.html

 

 

 

Anyway, I'm starting to get bored with writing this, so I'm just going to start skimming over some stuff and speed this up ;)

 

Some cool stuff not implemented before Sol 10:

 

Dtrace

http://users.tpg.com.au/adsln4yb/dtrace.html

http://daemons.net/~matty/articles/solaris.dtracetopten.html

 

SMF

http://docs.sun.com/app/docs/doc/817-1985/6mhm8o5n0?a=view

 

Zones

Much like Jails/chroot and a bit like xen/vmware, downside to me with zones it one kernel fits all so if you wanted to play with a patch on the kernel in your zone so you don't hose up the main install, to bad.

 

FireEngine

Much improved network stack

http://www.sun.com/bigadmin/xperts/sessions/11_fireengine/

 

x86

Support for x86/x86_64 is greatly improved. When people used to ask me what i thought about x86 Solaris (7-9) I said, “slowaris”, because thats pretty much what it was, HORRIBLE.

 

Howerver, sol10 is very nice, I'm running it on an x86 and sparc box at home, and typing this from my sparc ultra 60 at work. I like it :) JDS3 is a nice looking desktop (to me) but it is buit from Gnome -2.6 so a little outdated, I got 2.8 installed from blastwave and I will mess with pkgsrc and maybe garnmoe to see if i can get the latest and greatest on there. I'm a gnomer so you can grab kde-3.3.3 I think from blastwave or you could try Konstruct for the latest and see what happens.

 

Cool stuff down the road:

 

Janus - a tool for running Linux software on Solaris

http://www.sun.com/2004-0803/feature/

 

 

ZFS - the sophisticated file system (zettabyte file system)

http://www.sun.com/2004-0914/feature/

http://www.sun.com/software/solaris/ds/zfs.jsp

 

 

I'm about done so I will just leave you with this, I'm digging Solaris again, I feel away for it for a couple years, still played around with the latest releases and all, but Sol10 is a much improved OS. NO, I will not get ride of my Fedora/Rawhide box, I dig that to much :) But I will leave Solaris on a couple box and might even dual boot my amd64 box with it to see how it plays. When I get a little more free time, I will also build opensolaris on top of it and see what all the crazy is about 8)

 

I give you some links since I'm the link king :)

 

http://www.sun.com/

http://docs.sun.com/app/docs

http://sunsolve.sun.com

http://www.sun.com/bigadmin

http://www.blastwave.org

http://sunfreeware.com/

http://planetsun.org/

http://www.opensolaris.org/os/

http://opensolaris.org/os/community/tools/...ng_opensolaris/

http://www.nvidia.com/object/solaris_display_1.0-7676.html

http://blogs.sun.com/roller/page/eric_bout...cratch_table_of

http://www.sunhelp.org/

http://www.solarisinternals.com/si/index.php

http://solaris-x86.org/

Edited by cybrjackle
Link to comment
Share on other sites

I forgot to mention, you all being the GNU folks that you are will want to grap the sol10 companion cd and install the software.

 

http://www.sun.com/software/solaris/freewa...gs_download.xml

 

You will either want to grab the iso and install it or packages individually, you alteast need the Depends* pkg if you grab them one at a time.

 

If you go the iso method, you can use lofiadm to mount the iso locally/NFS instead of burning the cd.

 

Here is a guide you can get the idea from: Use your imagination, you don't need to do cd1/2/3/4 you can mkdir companion_cd or something else.

 

http://www.sun.com/bigadmin/content/submit...ee_install.html

 

 

example:

# = root

$ = user

 

$ pwd
/export/home/justin/downloads/Solaris/sparc
$ ls
software_companion_sparc.iso.bz2
$ bunzip2 software_companion_sparc.iso.bz2
$ su -
Password:
# mkdir -p /mnt/cd1
# lofiadm -a /export/home/justin/downloads/Solaris/sparc/software_companion_sparc.iso
<<<this is output telling you tis at /dev/lofi/1 >>>>>>
/dev/lofi/1

# mount -f hsfs /dev/lofi/1 /mnt/cd1
# cd /mnt/cd1
# ls
README      components  installer   volstart
# ./installer

Follow the prompts to install......

<enter>
<enter>
<12> <enter>
<1> <enter>
<y> <enter>

Edited by cybrjackle
Link to comment
Share on other sites

Installed pkgsrc from netbsd today on my ultra60 at work and it was compiling gnome-2.12.1 when I left, installing it on my x86/SMP box at home right now.

 

http://www.netbsd.org/Documentation/softwa...html#binarydist

* also added /usr/pkg/bin:/usr/pkg/sbin to my PATH

$ cd /tmp
$ wget -c ftp://ftp.netbsd.org/pub/NetBSD/packages/bootstrap-pkgsrc/bootstrap-pkgsrc-SunOS-5.9-i386-
20030411.tar.gz
su -
# cd /
# gzip -c -d /tmp/bootstrap-pkgsrc-SunOS-5.9-i386-20030411.tar.gz | tar -xpf -
# wget -c ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc.tar.gz
# gzip -c -d pkgsrc.tar.gz | tar -xpf -
# cd pkgsrc/bootstrap
# ./bootstrap
#  LD_LIBRARY_PATH=/opt/sfw/lib
# export  LD_LIBRARY_PATH
# cd /pkgsrc/devel/libtool-base/  && bmake install
# cd /pkgsrc/converters/libiconv && bmake install
# cd /pkgsrc/devel/gettext-lib && bmake install
# cd /pkgsrc/devel/gmake && bmake install
# cd /pkgsrc/lang/gcc3-c  && bmake install
# mkdir -p /usr/pkg/etc
# vi /usr/pkg/etc/mk.conf
USE_PKGSRC_GCC=YES
GCC_REQD+=3
# cd /pkgsrc/security/audit-packages && bmake install

 

Then pretty much install anything you want from /pkgsrc and all the compiled/installed binarys will be in /usr/pkg/*

 

 

 

This might be all useless info for everyone here, but its a good place on the net to store my notes

 

:lol2:

Link to comment
Share on other sites

SInce we just added the audit-package, we should setup a cron job to updated it daily too

 

# EDITOR=vi;export EDITOR
# crontab -e   ***shift +g to get to bottom of file and then "o" to edit new line, and add

# download vulnerabilities file
0 3 * * * /usr/pkg/sbin/download-vulnerability-list >/dev/null 2>&1

 

Helps to run it once too....

 

/usr/pkg/sbin/download-vulnerability-list

Edited by cybrjackle
Link to comment
Share on other sites

  • 1 month later...

Welp, I got my backup server running solaris nevada 27a with zfs raidz for my home spaces ;)

 

quick/easy and sweeeeeet!

 

# zpool create zfs raidz c0d0 c1d0 c2d0 c3d0
# zfs create zfs/home
# zfs set mountpoint=/export/home zfs/home
# zfs create zfs/home/amy
# zfs create zfs/home/justin
# zfs set compression=on zfs/home
# zfs set quota=600g zfs/home/amy
# zfs set quota=150g zfs/home/justin
# zfs set sharenfs=rw zfs/home

 

Now for some stats

 

# zpool status -vx zfs
pool 'zfs' is healthy

# zfs list
NAME                   USED  AVAIL  REFER        MOUNTPOINT
zfs                          436K   924G    16K              /zfs
zfs/home                 256K   924G    18.0K            /export/home
zfs/home/amy            16K   600G    16K             /export/home/amy
zfs/home/justin        222K   150G   222K            /export/home/justin


# zpool list
NAME                SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
zfs                     931G    446K    931G     0%     ONLINE         -

# zpool status -v
 pool: zfs
state: ONLINE
scrub: none requested
config:

       NAME        STATE     READ WRITE CKSUM
       zfs         ONLINE       0     0     0
         raidz     ONLINE       0     0     0
           c0d0    ONLINE       0     0     0
           c1d0    ONLINE       0     0     0
           c2d0    ONLINE       0     0     0
           c3d0    ONLINE       0     0     0

 

TIme to rsync my main server and let her rip!!!

Link to comment
Share on other sites

rysnc is in progress

 

# zpool iostat -v zfs 5 10
              capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zfs          627M   930G      0      3    430   237K
 raidz      627M   930G      0      3    430   237K
   c0d0        -      -      0      3    207  79.6K
   c1d0        -      -      0      3    546  79.6K
   c2d0        -      -      0      3    398  79.6K
   c3d0        -      -      0      2    504  79.3K
----------  -----  -----  -----  -----  -----  -----

              capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zfs          673M   930G      0     60      0  6.73M
 raidz      673M   930G      0     60      0  6.73M
   c0d0        -      -      0     61      0  2.25M
   c1d0        -      -      0     61      0  2.25M
   c2d0        -      -      0     60      0  2.25M
   c3d0        -      -      0     58      0  2.25M
----------  -----  -----  -----  -----  -----  -----

              capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zfs          719M   930G      0     63    204  6.94M
 raidz      719M   930G      0     63    204  6.94M
   c0d0        -      -      0     63      0  2.32M
   c1d0        -      -      0     63      0  2.32M
   c2d0        -      -      0     63      0  2.32M
   c3d0        -      -      0     61  12.8K  2.32M
----------  -----  -----  -----  -----  -----  -----

              capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zfs          764M   930G      0     59      0  6.46M
 raidz      764M   930G      0     59      0  6.46M
   c0d0        -      -      0     59      0  2.16M
   c1d0        -      -      0     59      0  2.16M
   c2d0        -      -      0     59      0  2.16M
   c3d0        -      -      0     57      0  2.16M
----------  -----  -----  -----  -----  -----  -----

              capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zfs          810M   930G      0     68      0  7.80M
 raidz      810M   930G      0     68      0  7.80M
   c0d0        -      -      0     69      0  2.61M
   c1d0        -      -      0     69      0  2.61M
   c2d0        -      -      0     68      0  2.61M
   c3d0        -      -      0     67      0  2.61M
----------  -----  -----  -----  -----  -----  -----

              capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zfs          859M   930G      0     60      0  6.61M
 raidz      859M   930G      0     60      0  6.61M
   c0d0        -      -      0     60      0  2.21M
   c1d0        -      -      0     60      0  2.21M
   c2d0        -      -      0     60      0  2.21M
   c3d0        -      -      0     58      0  2.21M
----------  -----  -----  -----  -----  -----  -----

              capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zfs          905M   930G      0     68      0  7.70M
 raidz      905M   930G      0     68      0  7.70M
   c0d0        -      -      0     69      0  2.57M
   c1d0        -      -      0     69      0  2.57M
   c2d0        -      -      0     68      0  2.57M
   c3d0        -      -      0     67      0  2.57M
----------  -----  -----  -----  -----  -----  -----

              capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zfs          954M   930G      0     66      0  7.48M
 raidz      954M   930G      0     66      0  7.48M
   c0d0        -      -      0     66      0  2.50M
   c1d0        -      -      0     66      0  2.50M
   c2d0        -      -      0     66      0  2.50M
   c3d0        -      -      0     64      0  2.50M
----------  -----  -----  -----  -----  -----  -----

              capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zfs         1003M   930G      0     59      0  6.31M
 raidz     1003M   930G      0     59      0  6.31M
   c0d0        -      -      0     59      0  2.11M
   c1d0        -      -      0     59      0  2.11M
   c2d0        -      -      0     59      0  2.11M
   c3d0        -      -      0     57      0  2.11M
----------  -----  -----  -----  -----  -----  -----

              capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zfs         1.02G   930G      0     65    817  4.99M
 raidz     1.02G   930G      0     65    817  4.99M
   c0d0        -      -      0     65  12.8K  1.67M
   c1d0        -      -      0     65  12.8K  1.67M
   c2d0        -      -      0     65  12.8K  1.67M
   c3d0        -      -      0     64      0  1.66M
----------  -----  -----  -----  -----  -----  -----

 

My home dir is only 120gb, my wifes is going to suck, 450gb being used...... :wall:

Link to comment
Share on other sites

Thanks for the commentary.

Have also installed Solaris 10 and like what I see.

 

 

:wall::bounce8:

 

Yes it is, I didn't care for 7/8/9 but 10 and beyond are very nice :)

 

play around with containers and if you want a cool file system, check the nevada builds for what will be solaris 11 8)

Link to comment
Share on other sites

  • 4 months later...

Just bumping :thumbs:

 

In case anyone wants to give a different *nix a try I would recommend giving Solaris Express a go.

 

 

I'm running it on several box's at home and at work. It's not the easiest to get through as far as hand holding but its pretty sweet OS.

 

I've even moved my main box (amd64) to just Solaris Express (bld 36) now, that was more of a personal motivation :)

 

As much as I like Linux (fedora) I found my self playing enemy-territory way to much when I get home from work instead of working on a lot of other things. :mellow: Plus I have FC running on 2 other box's so its not like I left, just moved the gaming OS off of my good pc so I wont be tempted. Call me weak :lol2:

 

Some links

 

http://www.opensolaris.org/os/

 

http://www.opensolaris.org/os/downloads

 

 

 

http://www.opensolaris.org/os/blogs (who doesn't like to read a good blog?)

 

http://www.opensolaris.org/os/communities

 

http://www.opensolaris.org/os/community/de...ommunities/jds/

 

Running Gnome-2.14 from the Vermillion builds

 

http://dlc.sun.com/osol/jds/downloads/current/

 

 

https://mandrivausers.org/index.php?act=Att...pe=post&id=2297

 

http://www.opensolaris.org/os/community/dtrace/

 

http://www.opensolaris.org/os/community/zones/

 

http://www.opensolaris.org/os/community/brandz/

 

http://www.opensolaris.org/os/community/smf/

 

http://www.opensolaris.org/os/community/zfs/

 

 

Just some really good stuff that isn't in any other OS.

Link to comment
Share on other sites

  • 3 months later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...