solaris.rst
changeset 1905 fba288d59662
child 1912 8b81a8f0f692
equal deleted inserted replaced
1904:78357d58b7ab 1905:fba288d59662
       
     1 .. -*- coding: utf-8; -*-
       
     2 .. include:: HEADER.rst
       
     3 
       
     4 =========
       
     5  Solaris
       
     6 =========
       
     7 .. contents::
       
     8    :local:
       
     9 
       
    10 Free software for Solaris
       
    11 =========================
       
    12 
       
    13   http://www.opencsw.org/
       
    14                 free, volunteer effort, to provide quality downloadable binary
       
    15                 packages for the currently fully supported versions of Sun
       
    16                 Solaris
       
    17   http://sunfreeware.com/
       
    18                 Solaris Freeware Project
       
    19   http://www.blastwave.org/
       
    20                 The "Blastwave Software Stack" is a commercial software service
       
    21                 for Solaris x86 and Solaris Sparc users
       
    22 
       
    23 Add new user
       
    24 ============
       
    25 ::
       
    26 
       
    27   $ useradd -d /export/home/fred -m -s /bin/ksh -c "Fred Smith" fred
       
    28 
       
    29 where ``-d`` is path to HOME dir, ``-m`` create home directory if necessary and
       
    30 copy the default skeleton files, ``-s`` your favourite shell, ``-c`` your full
       
    31 name.
       
    32 
       
    33 On Solaris ``/home`` dir inaccessible for creating home dir.
       
    34 
       
    35 Change attribute of already exists user::
       
    36 
       
    37   $ usermod -d /export/home/new-home-dir -s /usr/bin/bash
       
    38 
       
    39 Solaris network configuration
       
    40 =============================
       
    41 ::
       
    42 
       
    43   $ cat /etc/nodename       (сетевое имя компьютера без домена)
       
    44   sparc
       
    45   $ cat /etc/resolv.conf    (Настройки DNS)
       
    46   domain bifit.int
       
    47   nameserver 192.168.1.1
       
    48   $ cat /etc/hostname.eri0  (имя из hosts или IP)
       
    49   sparc
       
    50   $ cat /etc/hosts          (назначение IP хосту)
       
    51   #
       
    52   # Internet host table
       
    53   #
       
    54   ::1 localhost             (обязательная строка)
       
    55   127.0.0.1   localhost     (обязательная строка)
       
    56   192.168.1.41    sparc   loghost   (обязательная строка, имя настраиваемого хоста и его IP)
       
    57   192.168.1.26    gavenko
       
    58   $ cat /etc/netmask        (назначить сетевую маску для подсетей)
       
    59   #
       
    60   #   network-number  netmask
       
    61   #
       
    62   192.168.1.0 255.255.255.0
       
    63 
       
    64 Mounting ISO Images in Solaris
       
    65 ==============================
       
    66 ::
       
    67 
       
    68   $ /usr/sbin/lofiadm -d /dev/lofi/1
       
    69   $ /usr/sbin/lofiadm -a /var/tmp/CDImage.iso
       
    70   $ [ -d /mnt ] && echo OK || echo FAILURE
       
    71   $ /usr/sbin/umount /mnt
       
    72   $ /usr/sbin/mount -F hsfs -o ro /dev/lofi/1 /mnt
       
    73   $ cd /mnt