------------------------------------------------------------------------------------------------------------
Install software on unix
configure --prefix=(dir) //directory you want to install to
make
make test
------------------------------------------------------------------------------------------------------------
add a user
use useradd
------------------------------------------------------------------------------------------------------------
Disable desktop gui on Solaris
use:
/usr/dt/bin/dtconfig -d
use:
/usr/dt/bin/dtconfig -kill //to kill it right away
use:
/usr/dt/dtconfig -e //enable
------------------------------------------------------------------------------------------------------------
Change ip address or setting
use command:
sys-unconfig
wait for it to reboot and it will ask you questions like ip address, gateway, use dns, nis, nis+ etc.
------------------------------------------------------------------------------------------------------------
mount a drive or folder
on the server, use the following commands:
share (dir)
shareall
on client, use the following command:
mount -F nfs ip address/server name:(dir) (dir to mount to)
example: mount -F nfs 192.168.9.1:/test /test
mount -F nfs server:/test /test
to auto mount it on startup, put the server command on the /etc/dfs/dfstab file on the server,
and put the client commane on the /etc/vfstab file on the client, be sure to add an end of line
(a blank line) on the vfstab file to avoid problem
------------------------------------------------------------------------------------------------------------
NFS error and rpc problem on client when mounting directory on startup
put an end of line at the vfstab file (a blank line), it should fix it
------------------------------------------------------------------------------------------------------------
Problem compiling expect
tcl and tk include header error with tcl 8.5 and tk 8.5 installed
download tcl 8.4 and tk 8.4, untar it, but do not install it.
point the tcl and tk to the 8.4 version using
--with-tclinclude=(dir) --with-tkinclude=(dir)
------------------------------------------------------------------------------------------------------------
Problem Compiling Openssl
-download the file values.c from http://www.openssl.org/~appro/values.c
-Then patch the gcc with this file using the following command
ksh -f values.c
------------------------------------------------------------------------------------------------------------
Problem building pine with openssl
try following command:
build SSLCERTS=(dir) SSLINCLUDE=(dir) SSLLIB=(dir) SSLDIR=(dir) portnumber
example: build SSLCERTS=/usr/local/sslcerts SSLINCLUDE=/usr/local/include SSLLIB=/usr/local/lib
SLDIR=/usr/local/include/openssl gs5
If that did not work, compile it without openssl as follow:
build --NOSSL portnumber
------------------------------------------------------------------------------------------------------------
Problem compiling glib
try following:
configure --with-libiconv=gnu
------------------------------------------------------------------------------------------------------------
Problem compiling screen
if it's setenv error, put 1 at the file misc.o or misc.c on line around 600. The function name would setenv()
example: line 610: setenv( , , 1)
------------------------------------------------------------------------------------------------------------
Problem compiling syslog-ng
error with glib:
try following command:
configure --enable-dynamic-linking
------------------------------------------------------------------------------------------------------------