TOP UNIX-V
DDNOS NOS-2 UNIX-V.1
DOMAIN NTOS UNIX-V.2
DOS OS/DDP UNIX-V.3
EDX OS/2 UNIX-PC
ELF OS4 UNKNOWN
EMBOS OS86 UT2D
EMMOS OSX V
EPOS PCDOS VM
FOONEX PERQ/OS VM/370
FUZZ PLI VM/CMS
GCOS PSDOS/MIT VM/SP
GPOS PRIMOS VMS
HDOS RMX/RDOS VMS/EUNICE
IMAGEN ROS VRTX
INTERCOM RSX11M WAITS
IMPRESS RTE-A WANG
INTERLISP SATOPS WIN32
IOS SCO-XENIX/386 X11R3
IRIX SCS XDE
ISI-68020 SIMP XENIX
ITS SUN
Appendix C Installing DNS on a Sun when running NIS
====================
2) How to get DNS to be used when running NIS ?
First setup the appropriate /etc/resolv.conf file.
Something like this should do the "trick".
;
; Data file for a client.
;
domain local domain
nameserver address of primary domain nameserver
nameserver address of secondary domain nameserver
where: "local domain" is the domain part of the hostnames.
For example, if your hostname is "thor.ece.uc.edu"
your "local domain" is "ece.uc.edu".
You will need to put a copy of this resolv.conf on
all NIS(YP) servers including slaves.
Under SunOS 4.1 and greater, change the "B=" at the top
of the /var/yp/Makefile to "B=-b" and setup NIS in the
usual fashion.
You will need reboot or restart ypserv for these changes
to take affect.
Under 4.0.x, edit the Makefile or apply the following "diff":
*** Makefile.orig Wed Jan 10 13:22:11 1990
--- Makefile Wed Jan 10 13:22:01 1990
***************
*** 63 ****
! | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/hosts.byname; \
--- 63 ----
! | $(MAKEDBM) -b - $(YPDBDIR)/$(DOM)/hosts.byname; \
***************
*** 66 ****
! | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/hosts.byaddr; \
--- 66 ----
! | $(MAKEDBM) -b - $(YPDBDIR)/$(DOM)/hosts.byaddr; \
====================
--
Craig Richmond. Computer Officer - Dept of Economics (morning) 380 3860
University of Western Australia Dept of Education (afternoon) 2368
craig@ecel.uwa.edu.au Dvorak Keyboards RULE! "Messes are only acceptable
if users make them. Applications aren't allowed this freedom" I.M.VI 2-4
.
&dDUUCP - Unix to Unix Copy&d@
.
uucp ,
:
uucp -r moj_fajl 'pulsar!fajl_tam'
moj_fajl pulsar. ,
, - . ,
, :
uucp -r moj_fajl 'pulsar!~'
pulsar
/usr/spool/uucppublic/
, -
: "~"
, uucp -
. , "!" "~"
ksh bash. -r -
uucp , -
pulsar. ,
.
uucp :
1. . uucp -
, uux -
.
2. . ,
uucico - (UUCP Copy in Copy out).
.
"" uucico. ""
,
. "" ,
(
"" uucico, ).
uucico . ,
.
,
-
UUCP.
&dD UUCP .&d@
/ . :
1. UUCP .
2. () () UUCP .
3. (), .
4. Login , uucp-account'.
5. , .
6. - "AT" .
, -
/etc/uucp/ ( /usr/lib/uucp/ ,
/usr/lib/uucp/taylor_config ) (
, . man uucp ). :
Config # ( ) ;
Systems # uucp-: , -
# , uucp-logname, uucp-passwd ;
Devices # , .
Dialers # - ( AT--
# ).
( Linux : config, sys, port, dial)
, . Hayes--
V32/V42bis 14400 baud (GVC, ZyXEL, US-
Robotics...), /dev/modem
( /dev/contty03,
ln -s /dev/contty03 /dev/modem
?). fedfuru.
. Unix- -
- : (
, -
getty ttymon), -
, - , .
, :
SunOS: /dev/ttyy01 IN, /dev/ttyz01 OUT
Linux: /dev/ttyS1 IN, /dev/cua1 OUT
ISC: /dev/ttyFD01 IN, /dev/ttyFM01 OUT
SVR4/88: /dev/contty00 IN, /dev/??????? OUT
### " "( )###
. Linux-Serial-HOWTO:
> There has been some discussion on the merits of /dev/mouse
> and /dev/modem. I strongly discourage the use of these links.
> In particular, if you are planning on using your modem for
> dialin you will run into problems because the lock files will
> not work correctly if you use /dev/modem. Also, Taylor UUCP
does not support symlinks either. uugetty
. . ALTLOCK
/etc/defaults/getty .
################__" "_#######################
uucp-:
1: , kiae, : 9469984, 9469994.
/ uufedurp/ABCd8
2: , fedfond, 095-
125-7623. /
uufedurp/KLmn10
/etc/uucp Systems, Devices, Dialers
Systems: ------- -----------------------------
kiae Any modem1 19200 946-9984 "" \n\r\d\r\d\r ogin:-BREAK-ogin:
uufedurp ssword: ABCd8
fedfond Any modem1 19200 8w095-125-7623 "" \n\r ogin:-BREAK-ogin:
uufedurp ssword: KLmn10
Devices: --------------- ----------------------
modem1 contty03 - 19200 gvc1440
Dialers: --------------- ----------------------
gvc1440 =,-, "" \M\dATZ\r\c OK\r \EATDP\T\r\c CONNECT \m\c
---------------- --------------------------------------
### " "( )###
Taylor-uucp. , -
SVR4/88 __ Taylor-uucp, ..
HoneyDanBer-uucp, BNU (Basic Networking Utilities).
Taylor , -
- (Config, Systems, Devices,
Dialers, ...) (config, sys, port, dial, ...). -
-. Linux Taylor-uucp ,
Taylor-
/usr/lib/uucp/taylor_config/, -
HDB- /usr/lib/uucp/hdb_config/. IMHO
HDB - -
.
################__" "_#######################
### " "###
BNU-uucp, Taylor-uucp 1.05:
/usr/lib/uucp/taylor_config config,
sys, port, dial :
/* : RedHat Linux
uucp /etc/uucp/ */
config: -------------------------------------------------------
uuname fedfuru #
sys: ------- ---------------------------------
system kiae # ############################
myname fedfuru
time Any
port modem # port
speed 38400
chat ogin:-BREAK-ogin: uufedurp ssword: ABCd8
phone 946-9984
alternate # .
phone 946-9994
system fedfond # ##################
time Any
myname fedfuru
port modem # port
speed 38400
chat ogin:-BREAK-ogin: uufedurp ssword: KLmn10
phone 8w095-125-7623
port: --------------- ------------------------
port modem # sys
type modem
device /dev/modem
speed 38400
dialer gvc1440 # - dial
dial: --------------- ------------------------
dialer gvc1440 # port
# .
# \T
chat "" ATZ OK ATH0E0Q0 OK ATDP\T CONNECT
# ATZ - profile 0
# ATH0 -
# ATE0 - no echo
# ATQ0 -
chat-fail BUSY #
chat-fail ERROR
chat-fail NO\sCARRIER
chat-fail NO\sDIALTONE
---------------------------------------------------------------
################__" "_#######################
. UUCP . ,
"" ,
:
uucico -s kiae
uucico -s fedfond
, crontab,
, .
&dD UUCP sysadm&d@.
, -
sysadm.
network_services / basic_network
&dD UUCP.&d@
, ,
. , ()
. :
1: uucp- Systems -
, .
2: Permitions
2: uucp-login
3: , "Auto-answer" ,
/dev/modem getty ( ttymon), -
/dev/modem
1. Systems, (
),
, ,
.
2. /etc/passwd :
uupetrov:x:1002:14:UU Petrov:/var/spool/uucp:/usr/lib/uucp/uucico
:
pwconv
passwd uupetrov
3. "" -
atz0 # profile 0
ats0=1 # 0=1 - 1-
at&w0 # setup profile 0
at&y0 # 0
# at&f # ,
# , "reset"
SVR4 (
"cu"), "echo".
echo atz0 > /dev/modem
echo ats0=0 > /dev/modem
echo at&w0 > /dev/modem #
gold, .
4. /etc/inittab :
c3:234:respawn:/usr/lib/saf/ttymon -g -d /dev/modem -l contty
&dD UUCP.&d@
/usr/bin/uucp - / uucp-
/usr/bin/uux - uucp-
/usr/bin/uustat -
/usr/lib/uucp/uu* - UUCP
/etc/uucp/ - UUCP
/usr/lib/uucp/taylor_config - UUCP Linux
/usr/lib/uucp/ - UUCP
/var/spool/uucppublic -
/usr/spool/mqueue -
/usr/ucblib/mqueue - ?
/var/spool/uucp/"" - ""
/var/spool/uucp/.Log - uucp
&dD .&d@
: -
"" host, uucp, -
/etc/sendmail.cf :
. . .
# "Smart" relay host (may be null)
DSuucp-dom:kiae
. . .
(..
) uucp
uucp- "kiae"
kiae. ,
.
uucp-dom ( ).
, , sendmail.cf Moto
role /etc/, /usr/ucblib/.
- - - .
, !
# , 8-
# sendmail8.x.x, sendmail.cf:
# strip message body to 7 bits on input?
O7False
# , sendmail ,
# . - :
Cwlocalhost feduru.urup.ru feduru.mss.ru
&dD .&d@
, .
cu - .
cu -l /dev/modem #
-
. , , -
/dev/modem , , "" -
, .
atdp100
, "" -
Systems.
cu pulsar
/dev/modem, /dev/contty*. -
(???):
crw-rw---- 1 root uucp ... /dev/contty0
crw-rw---- 1 root uucp ... /dev/modem
uucico -
. uucp
/usr/lib/uucp/uucico -r1 -x9 -f -s pulsar
/usr/lib/uucp/uucico -x all -f -s kiae
uucp
/var/spool/uucp :
.Admin/audit.local
.Log/
.Status/
ERRLOG
LOGFILE
SYSLOG
,
tail -f /var/uucp/.Admin/audit.local &
tail -f /var/uucp/.Log/uucico/kiae
&dD &d@.
### " "( )####
Dmitry Mayorov Compulsory Health Insurance Fund
Phone: +7 (812) 112-3517 St. Petersburg, Russia
> sendmail, rmail,
> . 8 -
> ?
, , .
, ISO. -
, UUCP, .
:
1. sendmail.cf:
# RelCom UUCP - with ISO 8859-5 to KOI-8 translation
Muucp-koi, P=/usr/local/bin/_uux, F=mDFMhu, S=52/31, R=21, M=100000,
^^^^^^^^^^^^^^^^^^^ , .
A=_uux - -r -a$f -gC $h!rmail ($u)
2. /usr/local/bin/_uux :
#!/bin/sh
PATH=:/usr/bin:/usr/local/bin:/usr/ucb:/bin:
/usr/local/bin/iso-koi | /usr/bin/uux $*
(iso-koi - )
, , hack -
. , , ,
- -
.
KOI ISO, :
1. rmail /usr/local/bin/__rmail;
2. rmail, :
#!/bin/sh
PATH=:/usr/bin:/usr/local/bin:/usr/ucb:/bin:
/usr/local/bin/koi-iso | /usr/local/bin/__rmail $*
rmail, -
rbmail .
rbmail SVR4/88 . , -
... RelCom ( )
. ( Taylor-uucp
Mail-user a),
uucp/e-mail Motorol.
--
Dmitry Mayorov Compulsory Health Insurance Fund
Phone: +7 (812) 112-3517 St. Petersburg, Russia
-- --
################__" "_#######################
&dDSolaris: uucp direct line&d@
Systems :
ranisi Any dirt06 9600 unused "" P_ZERO "" \n\c ogin:-\n\c-ogin: uuintra\n\c ssword: parolf9f10\n\c "" P_ZERO
tailor-uucp
:
38400, 9600
^M chat-
Linux , \n\c
P_ZERO -
"no parity" -
8- .
uucp- crontab 5 uucico
0,5,10,15,18,20,25,30,35,40,45,50,55 * * * * (\
/usr/lib/uucp/uucico -r1 -f -s ranisi ; sleep 30 ; \
/usr/lib/sendmail -q ) > /dev/null 2>&1
uucico "force" redial (-f -
, )
&dD uucico &d@
> : \177}\030\177} \177}#\177}
port type pipe
port command /bin/telnet -8E hostname
&dDSecure uucp tcp&d@
&dD 1. port type tcp with ssh-port forwarding&d@
: uucp-tcp- localhost
/etc/inetd.conf :
uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/sbin/uucico -l
/etc/hosts.allow :
uucico: 127.0.0.1
# uucico , uid uucp - read
chmod og+r /etc/hosts.allow
/etc/uucp/passwd : propisatx uu-, __
uuyourlogin yourpasswd
: localhost, ssh
/etc/inetd.conf :
uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/sbin/uucico -l
/etc/hosts.allow :
uucico: 127.0.0.1
/etc/uucp/port : tcp-connect
port tcp-connect
type tcp
service 540
/etc/uucp/sys :
. . .
port tcp-connect
address 127.0.0.1
chat ogin: \L ssword: \P
alternate
. . .
" " root ssh forward
ssh1 -C -L 540:127.0.0.1:540 193.232.173.6
.
&dD Unix. LP spoolling&d@
( System V)
, , : cat file > /dev/lp.
.
.
.
_ - .
_ -
.
_ - ,
.
,
:
lp -d _ file
, "default"
cat file | lp
lpstat
cancel [_ ...] [ ...]
lp SPOOL .
lpsched ,
, , ,
,
, _.
&dD &d@
---------------------------------------------------------------
lpshut # "" lpsched
lpadmin -pLJ_printer -i/usr/lib/lp/model/lj_print -v/dev/lpt2
lpadmin -pNash_Nowyj_Printer -mstandard -v/dev/contty
enable Nash_Nowyj_Printer
accept Nash_Nowyj_Printer
lpsched # lpsched
---------------------------------------------------------------
accept -
enable -
lpadmin
-p__
-v_
-i_ - ,
-m_ - "" ,
/usr/lib/lp/model
-o nobanner - user lp -o nobanner
( banner )
-d printer -
-?_ -
-?____
( , man)
-s host!printer - Solaris -
# /etc/lp/Systems
.
shell-,
.
&dD&d@
lpadmin -pstar1 -i/udd/print/inter -v/dev/xpit0 #
lpadmin -pstar1 -mdumb -v/dev/lpt1
&dD &d@
( Unix)
HP-UX:
lpadmin -pLJ_printer -?host -?printer
Solaris:
/etc/lp/Systems
lpadmin -pLJ_printer -s 'host!printer' ; accept LJ_printer
lpadmin -dstar1 # `
lpadmin -xstar1 # star1
&dD&d@
/usr/lib/lp/model # ()
/etc/lp # LP
/var/spool/lp/* #
man lpadmin # !
.
&dD X-Windows System&d@
. ,
,
. : ,
, , ...
MS-DOS? .
, - : , ,
, , -
, EGA ,
... VGA,
SVGA 800x600, 16 , UVGA 1024x768, 256
, XGA 1280x1024, 16 ...
&dD X Windows&d@.
.
, , .
X-. - X
Windows, . ,
, . :
" ", " ", " ",
" ", " ",
.. X-, - .
,
, .
" X Windows".
, .
X-. ,
( - ,
, ), ,
X Windows System.
X-. ,
.
X X Windows System.
X-. (, , ,
, , , ),
X-. X-
Unix- ,
X ,
. X-terminal - ,
X , .
PC MS-DOS, DOS ,
X .
Xlib - C- , X
Windows System.
- X-.
.
GAPI - (Graphical Application
Programming Interface) -
.
, .
X-.
X Windows "" : TCP/IP,
DEC-net. X
, X- - . ,
, , -
.
X- ,
- .
- X
. (
), -
, .
.
. . X Windows - ,
, . -
. . ( , -
). , MS Windows Mac,
X-
.
&dD &d@.
X
, pcat107.foms.msk.ru
pcat107 :
xhost + # X-
# pcat107
X- , ,
pcat107.
:
xterm -display pcat107:0.0 &
&dD, Motif, &d@.
X- , Xlib.
, -
Xlib'.
toolkit' - , -
widget'. Widget - X
Windows. - Window Gadget
(),
.
widgetow: "", "", " ", "
",...
toolkit':
Xaw -
Anthena Widgets. -, ,
. - . ,
xterm, xedit, xman.
Xaw.
xview -
, -
Sun-
X Windows - "Open Windows". . -
, "-" ( !),
,
- .
xview , -
. DeskSet - 15 -
OpenWindows,
xview, SunSoft
. - ($100).
- ($200K)
Motif -
OSF
. -
, . - ,
Motif' -
MS Windows (, IMHO, -
)
BSD Unix V , , System V, -
Motif.
&dD X Windows&d@
Linux X11 XFree86.
,
xf86config
&dD X Windows&d@.
.
: startx / openwin
Solaris:
1. :
OPENWINHOME=/usr/openwin export OPENWINHOME
LD_LIBRARY_PATH=/usr/openwin/lib export LD_LIBRARY_PATH
PATH=/usr/openwin/bin:$PATH export PATH
XAPPLERESDIR=/usr/openwin/lib/app-defaults export XAPPLERESDIR
2. X Windows
openwin
"" Unix':
1. :
PATH=/usr/bin/X11:$PATH
XAPPLERESDIR=/usr/lib/X11/app-defaults
2. X Windows
startx
"" Unix' (Unixware).
, Yes
" DeskTop". login' X Windows
. ,
No, X Windows
.
&dD X Windows&d@
,
, . ,
, ,
/usr/lib/X11 /usr/openwin/lib
:
$HOME/.Xdefaults
$HOME/.OWdefaults
/usr/lib/X11/Xdefaults
/usr/openwin/lib/Xdefaults
/usr/openwin/lib/app-defaults/*
:"
xrdb -merge .Xdefaults
(desktop) - .. ,
X Windows :
Solaris:
$HOME/.openwin-init
/usr/openwin/lib/openwin-init
"" X windows:
$HOME/.xinitrc
/usr/lib/X11/xinit/xinitrc
window-manager'a - .. - ,
, , ...
Solaris:
$HOME/.openwin-menu
$HOME/.openwin-menu-*
/usr/openwin/lib/openwin-menu
/usr/openwin/lib/openwin-menu-*
Linux
$HOME/.fvwmrc
/usr/lib/X11/fvwm/system.fvwmrc
.
&dD VI. &d@
&dD&d@: == ESC ====> == :Q ==> ed
^ | ^ |
+----aAiIcCrRs <---+ +----- vi -------+
&dD &d@ &dD &d@
{},hjkl
^U/^D /
^F/^B /
^E/^Y /
w/b/e / /
W/B/E / /
(/) /
{/} /
[[/]] /
% ( {
{n}G {n}
{n}| {n}
H/M/L //
z/z./z- //
^/$/0 /
&dD &d@ &dD &d@
x
X
J
&dD &d@ &dD &d@
a/i / A/I / _ / /
R
r
s
o/O / _
C$
&dD &d@ &dD&d@
^G
&dD &d@ &dD&d@
u ()
^L/^R
&dD &d@ &dD &d@
ESC
^W/^U /
^V CRTL-[]
&dD &d@ &dD &d@
p/P / _
{n} ["_] "" {m}" "
!
d
y
c (==> )
&dD<&d@/&dD>&d@ /
!
&dD &d@ &dD&d@
7yy 7
"aAd{ a _
!G sort
&dD &d@ &dD""&d@
:map __ _ {CR}
:map! __ _ {CR} -
:ab _ {CR} -
&dD &d@ &dD&d@
?
/
n
N
&dD &d@ &dD__&d@
:s/_//gc -
:Q/vi / ed
:g/ -
:+5
&dD &d@ &dD_ED. ":" ( "Q") "CR" / (VI)&d@
^^
:[1,$] w [>>] [file] file [ 1 $ ]
:q[!] []
:[15]r [file] [!komanda] [15]
:e
:n
:sh Shell
:! Shello
&dD &d@ &dD VI&d@
:set nu / nonu /
:set smd{CR}
EXINIT=" " -
.exrc -
.
&dD X11&d@
1. cyrfonts. *.bdf *.pcf
mkdir cyrfonts
cp *.bdf *.pcf cyrfonts
: PCF
BDF , ,
X FONT- , FONT-
.BDF ,
. bdf- bdftopcf.
2.
X-server' : fonts.dir
cd cyrfonts
mkfontdir
3. X-server',
xset +fp $HOME/cyfonts
xset fp rehash
4. .
xterm -fn koi9x15
mailtool -fn koi6x10
..
&dD &d@
5. X-Windows FONTPATH
Bourne Shell /bin/sh bash ksh
FONTPATH=$HOME/cyrfonts: export FONTPATH
C-Shell /bin/csh tcsh
setenv FONTPATH $HOME/cyrfonts:
6. .
cp *.bdf /usr/lib/X11/fonts/misc
cd /usr/lib/X11/fonts/misc
mkfontdir
xset fp rehash
7. XFree, /etc/X11/XF86Config
FontPath "/home/yourname/cyrfonts/"
8. .Xdefaults .
.Xdefaults :
font.name: koi9x15
icon.font.name: koi6x10
XTerm*font: koi6x10
XTerm*VT100*font1: koi6x10
XTerm*VT100*font2: koi8x13
XTerm*VT100*font3: misc16
XTerm*VT100*font4: misc24
XTerm*VT100*font5: demos8x14
XTerm*VT100*font6: demos8x16
emacs.font: koi9x15
emacs.default_font: koi9x15
&dD SunOs 4.1.1 , , NeWS&d@
. NeWS
.
1. NeWS
convertfont *.bdf
2. NeWS server'
bldfamily
3. , X11
xset +fp `pwd` # , .
xset fp rehash #
.
Synonims.list alia.
.
&dD .&d@
X-Windows .
xfed, fontedit, xfd. , .
xfed font.bdf
convertfont -v font font.vfp
fontedit font.vfp
convertfont -b ?? font.vfp font.ff
&dD X-Windows&d@
. (
, ).
xmodmap --.xmm
/ - CapsLock
,
xmodmap default.xmm
&dD XFree86&d@
XF86Config:
Section Keyboard
LeftAlt Meta
AltGr ModeShift
Right_Ctl ModeLock
ScrollLock ScrollLock
EndSection
Ctrl,
CapsLock .
&dD XFree86 3.2.2&d@
Xfree_3.3.2