solaris.rst
changeset 1905 fba288d59662
child 1912 8b81a8f0f692
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/solaris.rst	Mon Feb 22 12:46:36 2016 +0200
@@ -0,0 +1,73 @@
+.. -*- coding: utf-8; -*-
+.. include:: HEADER.rst
+
+=========
+ Solaris
+=========
+.. contents::
+   :local:
+
+Free software for Solaris
+=========================
+
+  http://www.opencsw.org/
+                free, volunteer effort, to provide quality downloadable binary
+                packages for the currently fully supported versions of Sun
+                Solaris
+  http://sunfreeware.com/
+                Solaris Freeware Project
+  http://www.blastwave.org/
+                The "Blastwave Software Stack" is a commercial software service
+                for Solaris x86 and Solaris Sparc users
+
+Add new user
+============
+::
+
+  $ useradd -d /export/home/fred -m -s /bin/ksh -c "Fred Smith" fred
+
+where ``-d`` is path to HOME dir, ``-m`` create home directory if necessary and
+copy the default skeleton files, ``-s`` your favourite shell, ``-c`` your full
+name.
+
+On Solaris ``/home`` dir inaccessible for creating home dir.
+
+Change attribute of already exists user::
+
+  $ usermod -d /export/home/new-home-dir -s /usr/bin/bash
+
+Solaris network configuration
+=============================
+::
+
+  $ cat /etc/nodename       (сетевое имя компьютера без домена)
+  sparc
+  $ cat /etc/resolv.conf    (Настройки DNS)
+  domain bifit.int
+  nameserver 192.168.1.1
+  $ cat /etc/hostname.eri0  (имя из hosts или IP)
+  sparc
+  $ cat /etc/hosts          (назначение IP хосту)
+  #
+  # Internet host table
+  #
+  ::1 localhost             (обязательная строка)
+  127.0.0.1   localhost     (обязательная строка)
+  192.168.1.41    sparc   loghost   (обязательная строка, имя настраиваемого хоста и его IP)
+  192.168.1.26    gavenko
+  $ cat /etc/netmask        (назначить сетевую маску для подсетей)
+  #
+  #   network-number  netmask
+  #
+  192.168.1.0 255.255.255.0
+
+Mounting ISO Images in Solaris
+==============================
+::
+
+  $ /usr/sbin/lofiadm -d /dev/lofi/1
+  $ /usr/sbin/lofiadm -a /var/tmp/CDImage.iso
+  $ [ -d /mnt ] && echo OK || echo FAILURE
+  $ /usr/sbin/umount /mnt
+  $ /usr/sbin/mount -F hsfs -o ro /dev/lofi/1 /mnt
+  $ cd /mnt