UNIX NetWork

Software, Solaris, Philosophy, ScienceApril 11, 2008 7:47 pm

William Nelson Joy (born Feb 8, 1954), commonly known as Bill Joy, is an American computer scientist. Joy co-founded Sun Microsystems in 1982 along with Vinod Khosla, Scott McNealy, Andy Bechtolsheim and Vaughan Pratt, and served as chief scientist at the company until 2003.

Early career

After growing up in rural Michigan, Bill Joy received his B.S. in Electrical Engineering from the University of Michigan and his M.S. in EECS from UC Berkeley in 1979. [1] Joy’s PhD. advisor was Robert Fabry.
He was largely responsible for the authorship of Berkeley UNIX, also known as BSD, from which spring many modern forms of UNIX, including FreeBSD, NetBSD, and OpenBSD. Apple Computer has also based much of the Mac OS X operating system line on BSD technology. Some of his most notable contributions were the vi editor, NFS, and the csh shell.
Joy’s prowess as a computer programmer is legendary, with an oft-told anecdote that he wrote vi in a weekend (not so, says Joy). The mythopoesis continues, with Eric Schmidt, at the time CEO of Novell, while interviewed in PBS’s documentary Nerds 2.0.1, inflating the accomplishment to Bill Joy having rewritten BSD in a weekend.

Sun

In 1982, Joy co-founded Sun Microsystems.
According to a Salon.com article, during the early 1980s DARPA had contracted the company Bolt, Beranek and Newman (BBN) to add TCP/IP to Berkeley UNIX. Joy had been instructed to plug BBN’s stack into Berkeley Unix, but he refused to do so, as he had a low opinion of BBN’s TCP/IP. So, Joy wrote his own high-performance TCP/IP stack. According to John Gage, “BBN had a big contract to implement TCP/IP, but their stuff didn’t work, and Joy’s grad student stuff worked. So they had this big meeting and this grad student in a T-shirt shows up, and they said, ‘How did you do this?’ And Bill said, ‘It’s very simple — you read the protocol and write the code.’” Rob Gurwitz, who was working at BBN at the time, disputes this version of events. [2]
In 1986, Joy was awarded a Grace Murray Hopper Award by the ACM for his work on the Berkeley UNIX Operating System.
Joy was also a primary figure in the development of the SPARC microprocessors, the Java programming language, Jini / JavaSpaces and JXTA
On September 9, 2003 Sun announced that Bill Joy was leaving the company and that he “is taking time to consider his next move and has no definite plans”.

Software, Solaris, SunNovember 21, 2007 4:07 pm

Requirements
Softwares

*
cvs (I used the sunfreeware’s package)

Packages

*
SUNWgccruntime
*
SUNWgcc
*
SUNWhea
*
SUNWgzip
*
SUNWbinutils
*
SUNWsprot
*
SUNWarc
*
SUNWbtool
*
SUNWtoo
*
SUNWscpr
*
SUNWscpu
*
SUNWxcu4
*
SUNWlibmr
*
SUNWlibm
*
SUNWxwinc

I recommand to use softpartitions for both /usr/pkg and /usr/pkgsrc
Get pkgsrc
Via CVS

# export CVSROOT=anoncvs@anoncvs.NetBSD.org:/cvsroot
# export CVS_RSH=ssh
# cd /usr
# cvs checkout -P pkgsrc

Installation
Bootstraping
GCC

# export PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin
# echo CC=gcc > /etc/mk.conf
# cd /usr/pkgsrc/bootstrap
# ./bootstrap

Sun Studio

# export PATH=/opt/SUNWspro/bin:$PATH
# echo CC=cc > /etc/mk.conf
# echo PKGSRC_COMPILER=sunpro >> /etc/mk.conf
# export CC=cc
# cd /usr/pkgsrc/bootstrap
# ./bootstrap

Usage
Settings

# export PATH=$PATH:/usr/pkg/bin:/usr/pkg/sbin

Sample

# cd /usr/pkgsrc/pkgtools/pkgfind
# bmake install

Targets
Target Description
show-depends-dir Show dependencies
show-options Show available options for the current port
mk.conf
UID/GID

APACHE_USER=webservd
APACHE_GROUP=webservd
SQUID_USER=webservd
SQUID_GROUP=webservd
MAILMAN_MAILGROUP=nobody

Specify an option for a specific package

PKG_OPTIONS.squid=ssl opt2
PKG_OPTIONS.postfix=pcre sasl tls bdb

Apache stuff

PKG_APACHE=apache2
PKG_PHP=php4

Notes

*
Take a look in /usr/pkgsrc/mk/platform/SunOS.mk for variables you can override with /etc/mk.conf
*
Some packages won’t build in solaris, butt few of them can be easily repaired
*
If you have trouble to build a package, try to set PKG_DEBUG_LEVEL to 1

Troubleshootings
Python

If you have the following error :

Objects/complexobject.c: In function `complex_pow’:
Objects/complexobject.c:469: error: invalid operands to binary ==
Objects/complexobject.c:469: error: wrong type argument to unary minus
Objects/complexobject.c:469: error: invalid operands to binary ==
Objects/complexobject.c:469: error: wrong type argument to unary minus

edit the file ./work/Python-2.3.5/Include/pyport.h, search for

#define Py_HUGE_VAL HUGE_VAL

set it to

#ifndef Py_HUGE_VAL
#define Py_HUGE_VAL HUGE
#endif

The following Makefile patch is also available, but didn’t work here :

+.if ${OPSYS} == “SunOS” && ${CC} == “gcc”
+#workaround for bug with Solaris/gcc : __builtin_huge_val is a func. in that
case, but not declare as in Solaris header.
+CONFIGURE_ARGS+= OPT=”${CFLAGS} -D\”Py_HUGE_VAL=__builtin_huge_val()\”"
+.else
CONFIGURE_ARGS+= OPT=”${CFLAGS}”
+.endif

netpbm

Makefile.patch

28a29,30
>
>
55a58,61
>
> .if ${OPSYS} == “SunOS” && ${OS_VERSION} == “5.10″
> CFLAGS+= -ansi -D__EXTENSIONS__
> .endif

# cd /usr/pkgsrc/graphics/netpbm
# patch Makefile < Makefile.patch

libtool

If you have strange segfault with libtool, try to change the shebang (the first line) of /usr/pkg/bin/libtool from

#! /bin/ksh

to

#! /usr/bin/bash

libstdc++.la

Use the following to replace libstcd++.la file :

/usr/sfw/lib/libstdc++.la

# libstdc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libstdc++.so.6'

# Names of this library.
library_names='libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so'

# The name of the static archive.
old_library='libstdc++.a'

# Libraries that this one depends upon.
dependency_libs='-lc -lm -L/usr/sfw/lib -lgcc_s'

# Version information for libstdc++.
current=6
age=0
revision=3

# Is this an already installed library?
installed=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/sfw/lib'

/usr/sfw/lib/64/libstdc++.la

# libstdc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libstdc++.so.6'

# Names of this library.
library_names='libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so'

# The name of the static archive.
old_library='libstdc++.a'

# Libraries that this one depends upon.
dependency_libs='-L/lib/64 -lc -lm -L/usr/sfw/lib/64 -lgcc_s'

# Version information for libstdc++.
current=6
age=0
revision=3

# Is this an already installed library?
installed=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/sfw/lib/64'

XML::Parser

This perl module require libexpat, which comes with both Solaris itself and pkgsrc. I don't why, but if you build the module with the pkgsrc's libexpat, an error occured while loading libexpat. So, you need to build XML::Parser with the Solaris's libexpat.

*
Install SUNWsfwhea
*
Edit the following file /usr/pkgsrc/textproc/p5-XML-Parser/Makefile, in order to have something like :

[..]
.include "../../mk/bsd.pkg.mk"

.if ${OPSYS} == "SunOS" && ${OS_VERSION} == "5.10"
MAKE_PARAMS+= EXPATLIBPATH=/usr/sfw/lib
MAKE_PARAMS+= EXPATINCPATH=/usr/sfw/include
.else
MAKE_PARAMS+= EXPATLIBPATH=${BUILDLINK_PREFIX.expat}/lib
MAKE_PARAMS+= EXPATINCPATH=${BUILDLINK_PREFIX.expat}/include
.endif

Software, Solaris, SunNovember 16, 2007 8:13 pm

ok>show-nets
ok>select network iface
ok>cd ctrl+y
ok>.properties

Software, Solaris 3:44 pm

Comandos para configurar resolucion DNS

etc#> cp nsswitch.dns nsswitch.conf
etc#> cat resolv.conf
nameserver 192.168.1.3
etc #>

Software, SolarisSeptember 6, 2007 2:29 pm



Sun Microsystems has relase a Web Mail Server called Sun Messaging Server, the relase its free at the moment, is posible to download it from http://www.sun.com/software/products/messaging_srvr/
you only need to register to get access to the download :) enjoy it.

SolarisAugust 2, 2007 5:27 am

Do you want to try open solaris with out install it?, then try:
BeleniX a Open Solaris LiveCD :D , enjoy it :)
http://www.genunix.org/distributions/belenix_site/

SolarisApril 20, 2006 6:53 pm

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

SolarisJanuary 26, 2006 11:39 pm

useradd -d /export/home/user -m -s /bin/ksh -c “user” user