SCO UNIX Learning Collection
Section I Installation Preparation
1. Installation Category: Installation into a single to start the installation (just started UNIX) and multi-start the installation (you can select the boot DOS, WIN98, WIN2000, etc.).
2. Installation overview: hard disk supports up to four partitions, unless you use software to manage multiple boot. Dos and two partitions under WIN98 the Primary and Expand; Win2000 also divided into Primary and Expand Division; Unix Root root partition and into the next Swap partition. How to configure, this requires you to choose. Note: Unix under the two partitions must be installed, words, you can only pick two partitions. Recommendation: Do not DOS, Win98 and Win2000 the extended partition.
3. Hard Disk Space: Free hard disk you can set aside space for Unix, Unix installation process can also remove the other partition to install Unix. But in a hard disk 8G, and before the 1024 cylinder.
4. Boot disk By: You can choose to start the installation floppy disk, CD-ROM can also choose to start the installation, if your machine supports CD boot. If your machine does not support CD boot you have to make boot floppy.
There are four ways:
1. Under the windows with gzcp: prompt, run E: imagesgzcp E: imagesbootinstall.img A:. Where A: is your floppy disk symbol, E is your CD-ROM symbol.
2. Under the windows with floppcp: prompt, run E: imagesfloppcp d / A: / f E: imagesbootinstall.img
3. Under the Unix: root registration, on the machine into 3.5-inch floppy disk, and the system software CD into the drive, and then typing the following command: # mount / dev/cd0 / mnt
Section II of the installation process
1. Start the machine:
1. Both start from the CD-ROM or from floppy disks, the machine will appear to install the following prompt:
SCO UNIX Openserver ™ 5.0.X
Boot: * You can enter? Enquiries can start the address or hit Enter.
2. Install the driver: If your machine has Scsi card or array card or network card, you need to enter the driver package's address.
Such as: defbootstr link = “amird slha” sdsk = amird (0,0,0,0) Srom = wd (0,0,0,0)
Where, link = “amird slha” that need to be connected to install the driver name (BTLDs, bootime loadable
driver), sdsk = amird (0,0,0,0) pointed out that the location of the system root disk, several figures were SCSI adapter number
(Adapter number), bus number (bus number), SCSI ID, logical unit number (lun), Srom = (0,0,0,0) means
Out of the EIDE (IDE) CDROM position. In this case, (n, n, n, n) representing (IDE Controller,
Master / Slave, LUN, BUS), the legal value of 0 and 1. In the above example, IDE Controller: 0 = primary,
Master / Slave: 0 = master, LUN from: 0 (LUN for an EIDE / IDE device is always 0), BUS: 0 (BUS
for an EIDE / IDE device is always 0).
3. Start the installation:
?? System detects the hardware, wait for any of the following tips:
?? Press
?? Installation media choice:
Media device to be used: IDE CD ROM * press the space bar to choose another medium
IDE Controller: Secondary * Primary selection by space
Master or Slave: Master * Slave by ticking the appropriate box
Accept above choice Enter
Note: If only there Media device to be used, instead of two of the following, you need to mix the hard disk and optical drive access method, proposals are linked to the primary (Master).
?? Keyboard type selection, direct Accept above chioces
?? License:
License number:
License code:
License data:
Accept above choices Enter
?? The type of installation options:
Upgrade (upgrade) Fresh (clean install) Enter Select OK
?? Configure the system:
System name:
Domain name:
Security profile: Traditional
Time zone: China Standard Time * Select this option by a space
Languge: Standard C (English)
Accept above choice
?? System initialization:
… … … … … … … … … … … … … …
… … … … … … … … … … … … … …
… … … … … … … … … … … … … …
… … … … … … … … … … … … … …
Database services: YES * If your machine to run large databases selected by a space YES
Accept above choices
?? Hard drive configuration:
Hand disk setup: UNIX only: Bad Tracking ON
Optional software: SCO Openserver Enterprise System, 265MB
Accept above choice * If there is no other system you play hard carriage return
Note: If your hard drive to install a multi-system or you do not intend to put the entire hard drive to UNIX, would set the hard disk.
Bright moved to the above, Enter occur:
1. Preservation
2. UNIX only
3. Customize
4. interactive
Select 4
1. Display patition table
2. Use entire disk for unix (the entire hard drive for UNIX)
3. Use rest of disk for unix (the remaining space for UNIX)
4. Create unix patition (create UNIX partition)
5. Active (active area just points)
6. Delete (remove)
7. Create (create)
Select 3 or 4, do not forget to activate the newly created after the partition to create UNIX
?? Select Basic configuration:
Network card: * by ticking the appropriate box
Network address: * by ticking the appropriate box
Video and graphics: VGA
Mouse: High Resolution Keyboard Mouse * by ticking the appropriate box
Email system: MMDF * Press space to choose other
Accept above choices
?? Set root user password
?? Scan the hard disk bad track
?? A file system
?? Installation process
?? Restart the machine
4. Installed:
Basic Configuration Section
1. Reboot the machine.
2. System appears:
SCO OpenServer TM Release 5
Boot
: * Enter
3. System appears:
INIT: SINGLE USER MODE
Type CONTROL-d to proceed with normal startup,
(Or give root password for system maintenance): enter the root password or press CONTROL-d
4. By CONTROL-d system appears:
SCO Openserver ™ Release 5
Login: root
Password:
5. Login machines, the system prompt: #
6. Configuring the mouse:
1 mkdev mouse
2 add a mouse to system
3 ps-2style keyboard mouse
4 high resolution keyboard-mouse
Note order of choice:
7. Configuration card:
1. Mkdev graphics
8. Configure network card:
1. Driving through the custom installation
2. Install new
3. Netconfig
4. Install new lan adapter
9. Start X Window:
After configuring the mouse and monitor, # type startx to enter graphical interface. Executive scologin enable the boot automatically into the x-windows of the login screen.
10. Shutdown:
1. The average user: exit; delete key; ctrl + d keys
2. Super User: shutdown; reboot; haltsys; init 0.
3. By a multi-user mode into single user mode: init 1
The basic operation of the fourth quarter
1. Unix knowledge
2. The development of a long history of UNIX a bit, so mature and broad. Compatible with the history, which he retained some of the old order and documents. Enthusiastic expansion makes her different people have different answers. In UNIX, a lot of problems but not the only solution. This depends on when you are using, who's reference books. In fact, this is not important, it is important that you find the answer you want. So, I think it is difficult to find out about UNIX, it is not necessary. Because, even if you energetic, I'm afraid your memory does not give you face. Master the basic commands, system architecture, design thinking is very important, and we need time to look for your answer it! Of course, this is my personal view, you may be able to find a better way for you.
UNIX family of products are many, but the general user commands are in line with POSIX standards. Master these basic commands, we can work on this product platform. The following brief SCO OPENSERVER part of the common commands, most of which is POSIX standard. Master these commands from the command key is how to proceed to find the command they need to learn to use the online help is a good way.
Command Execution Environment
Available to the user to execute commands UNIX environment, called SHELL. A sh, ksh, csh, etc., in which the basic sh SHELL, the rest is extended according to different user habits.
User login, the system will perform configuration file to set the user work environment. If not in the configuration file exec a program or automatic withdrawal. Users will get the command prompt. At this point the user's shell generally corresponds to the / etc / passwd settings.
The configuration file for different SHELL:
sh.profile
ksh.profile. kshrc
csh.login. cshrc
Notice:
Although after the user logs have specified SEHLL environment, simply stated in this environment you can perform this unique command SHELL, SHELL in the implementation of another program, such as no special designation (see SHELL programming), is the implementation of the program environment for sh.
Although the environment variable SHELL in different ways in different settings, but the work environment variables, all running programs can be used.
Implementation of the procedures set an environment variable, unless the procedure was (. Dot) call, program execution will not bring finished work to the environment.
Input and output, and online help
Input and output redirection
UNIX-SHELL in the environment, its input and output redirection is useful. One can use standard input and output devices, 0 for standard input, 1 is standard output, and 2 standard error output.
1.> Filename output redirection (update mode).
The output to the file, the file is updated.
2.>> Filename output redirection (append mode).
The output to the file, the file is appended.
3.
4. <
5. | Piping.
The output of the previous command input as a command post.
Online Help
UNIX provides a very detailed and useful help, use the man command to see the command you need help.
Man's basic usage: man [section section] topic
man-k Keywords
Refer to paragraphs in the categories of topics, are:
ADM system management command
C user command
F file format
HW Hardware property
M Other
TCL SCO Visual Tcl ™ commands
Only one subject had a wide range of help, you need only to specify the paragraph section.
Man-k to display the help document all the theme word appears.
Tips:
We need to find a desired command, man command what we know. Starting from the relevant command can find the answer. Man-k is also a good way to search.
In XWINDOW of HELP will be more convenient to find an answer in detail.
! Warning: Do not free to implement you do not know what the command is used to do! Do not use .* These parameters
3. Basic commands:
display setting command execution environment env
env [- |-i] [name = valuess] … [command [args]]
date display and set the time
date [-u] [+ format]
date [-u] [MMDDhhmm [YY] |-t [CC] YYMMDDhhmm [. SS]]
clear Clear the current screen
grep to find lines that match the string
wc calculate words, lines, bytes
cat display file contents
more sub-screen display file contents
File system operations
ls file name column
cp copy files
mv move files
rm delete files
cd catalog Switch
mkdir build directory
rmdir remove directory
pwd Display current directory
find search for files
sort sort file
cut out cutting the file
combination of paste out of documents
ln file or directory link
Process Management
ps displays the current process state
kill kill process
Users and Rights Management
useradd to add users
userdel Delete user
usermod Modify User
userls out available users
passwd changes passwords
modify the file directory permissions chmod
chown owner to modify the file directory
who show the current online users
finger user information display
Equipment and terminal management
mkdev Equipment Management
hwconfig display the current device information
stty set terminal mode
enable the terminal to open
disable close the terminal
IPC Management
Ipcs IPC status display
Ipcrm remove semaphore sets, message queues, shared memory
Network
telnet login the remote server
ftp file transfer
route Route management
netstat show network status
traceroute trace route network access
netconfig network configuration management
/ Etc / hosts Internet host name file
/ Etc / services file Web service port
/ Etc / inetd.conf file network services
4.
V start understanding the machine:
1. Tcp / Ip start:
?? TCP / IP by the / etc / tcp control script file, you start to enter multi-user state in your state enter single-user turn off / etc / tcp file operations content: he is a script file with the following functions: a configuration Support TCP / IP flow necessary equipment to enable or disable the TCP / IP, and enable or disable the TCP / IP-related daemon.
?? With ROOT login, use the command line: TCP START or TCP STOP manually enable or disable the TCP / IP. The document with the etc/rc2.d and / etc/rc0.d directory files have links with relations, making the / etc / tcp in the system to enter or exit the multi-user state, you can run START or STOP option. Whether you through the Network Confugration Manager to add or remove a network interface, all in the script to add or remove ifconfig command, modify the / etc / tcp file, which leads to / etc / strcf file has been modified. The following are the start TCP / IP when the system works these steps:
. Initializes STREAMS and sockets
. Sets the host name
. Configures Interfaces
. Starts network daemons
. Undoes all of the above on shurdown
?? / Etc / tcp operations: TCP / IP core supports only one to complete the configuration. Include TCP / IP stack required for STREAMS module settings. Kernel at boot time that is set STREAMS stack. Precondition that is in the BOOT: prompt string without ksl.disable guide. When set STREAMS stack, / etc / tcp will call slink command script file, or start doing any other settings before the establishment of STREAMS stack.
2. UNIX5 start:
I. UNIX5 can be divided into six basic steps:
1, PC machines will be Master Boot Block BIOS into memory. (Read the hard drive Track 0, Sector 0 Department Information
2, Master Boot Block will partition boot block (boot0) load. (Read the active partition sector0 Department information).
3, if the Unix partition is active, then continue into boot1.
4, boot1 load / stand / boot. (Read Unix bootable file system information area, usually boot file system)
5, / stand / boot responsible for all. Bootrc found in order, and read / stand / etc / default / boot file parameters.
6, / stand / boot display Boot: prompt, boot successfully.
7
Ii. UNIX5 to get started:
1, / stand is UNIX5 default boot / dev / boot mount point. Usually marked as “read only”. If you want to modify the content, shall re-mount their unloaded.
2,. Bootrc is especially useful in network installations, where a packet driver and tftp driver may have to be load before user can load a kernel from network.
3, in Boot: You can use an external bootos after the procedure. Bootos can identify the logo are: ccpm (Concurrent CP / M), dos, dos_12/16/32, dos_ext, nt, os2, os2.hpfs, unix, xenix so.
Available bootos? Sets out the current file system has been installed. Bootos logo or the partition number followed by the partition corresponding to the system can boot.
4, unix5 in general there are four core, placed in / stand directory. In addition to unix, unix.old, the other two core unix.install (the original core installation disk backup), unix.safe (after the first heavy with the core backup).
3. UINX5 command:
4. Some commonly used commands are:
1, PS
We can use the ps of the - l option to obtain more detailed process information.
 F (Flag): a series of numbers and that the current state of the process. The meaning of these figures are:
00: If the individual shows that this process has been terminated.
01: Process is the core part of the process, resident in the system main memory. Such as:
sched, vhand, bdflush so.
02: Parent is tracing process.
04: Tracing parent''s signal has stopped the process; the parent is waiting (ptrace (S)).
10: process priority lower than or equal to 25 hours, to sleep, wake up and can not use signals, such as waiting for a inode is created
20: Process to be loaded into main memory (primary memory)
40: Process to be locked in main memory, the transaction can not be replaced before the completion of e
 S (state of the process)
O: process is running processor
S: sleep state (sleeping)
R: wait for the run (runable)
I: idle state (idle)
Z: zombie state (zombie)
T: Tracking Status (Traced)
B: process is waiting for more memory pages
 C (cpu usage): cpu utilization estimates
Second, Sar: Statistical single-CPU system, system activities
Cpusar: multi-processor system, the activities of a single processor
Mpsar: multi-processor system in the overall activities of the processor
 Sar-u: check process CPU-escape
This command displays four fields, the following meaning:
% Usr: user process execution time
% Sys: system process execution time
% Wio: wait for the completion of I / O time
% Idle: idle time
Showing results analysis shows that:
1) In general,% usr and% sys almost equal value
2) In the general multi-user system,% idle is usually greater than 40%
3) If the% wio often> 15%, which means the hard disk may be a bottleneck
4) If% idle often less than 30%, which means less processor capacity
5) If% idle often less than 10%, indicating that processor overload, or the presence of escape process
6) If% idle is close to 0, and% sys is again much higher than the% usr, it may be because of memory shortage caused a lot of swapping and paging
 Sar-p: check the system if there are too many waiting process
This command has four related fields:
runq-sz: RAM (memory) in the number of running processes can be
% Runocc: process waiting to enter the probability of memory
swpq-sz: on the exchange area (swap) the number of running processes in the waiting
% Swpocc: process waiting to enter the probability of swap
Showing results analysis are summarized as follows:
1) If runq-sz often greater than 2 and% runocc often greater than 90%, meaning that processor overload
2) if% swpocc not 0, that system has been replaced out of the process. Can be used to increase or decrease the buffer memory means to reduce the swap and paging.
 Automatic statistical procedure:
Judgement on the system operating conditions can not rely on a specific period of data, it requires a long-term accumulation and collection process. Unix5 provides two statistical procedures based on automatic sa1 (in binary form of the collection, stored in the directory / usr / adm / sa in order to sadd for the file name, dd is a number that month the first few days), sa2 (to readable text form stored in the directory / usr / adm / sa, the file name: sardd). These two commands can be started by crontab. Documents located in / usr / spool / cron / crontabs under sys and root.
 Activate automatically records:
/ Usr / lib / sa / sar_enable-y
 Display record contents:
sar-q-f / usr/adm/sa/sa10
5.
VI Software Installation
1. Installation:
1. custom
2. Install new
Or
3. dd if = / dev/fd0 of = / mnt / super * (super for the new file)
4. mv super VOL.000.000
5. Install new
6. Select the installation media.
2. Remove method:
1. custom
2. remove
VII Advanced Advanced
1. Question: I changed the hosts file, for example: 127.0.0.1 localhost changed: 127.0.0.1 local is not reboot the system, how to make it take effect?
A: # tcp stop
# Tcp start
Recommendation: a lot of places use the feedback to the machine address, it is recommended not to modify! ! !
2. Question: I want to change the host name, how to modify?
A: If you want to modify the host name, use uname-S hostname.
3. Question: how to see how many users my SCO?
A: uname-X
In liences manager can also be seen! !
uname-A better
4. Question: How can access to floppy and CD-ROM?
A: Visit the floppy: # mount / dev/fd0135ds18 / mnt
# Cd / mnt
/ Mnt content is under the contents of the floppy disk
# Umount / dev/fd0135ds18
Access drive: # mount / dev/cd0 / mnt
# Cd / mnt
/ Mnt drive under the content is the content
# Umount / dev/cd0
Software to test out and admitted to the c file can also be used doscp
5. Question: System Development Kit (development system) where, how to find, how to install? Boot system is installed on the system tray, or other means to install?
A: on your CD-ROM, with the custom installation. In the ROOT under: scoadmin-> soft
6. Question: I gzip compression software, there should be unix version, because I unzip *. tar.gz files to a floppy disk is much larger than the capacity, not tar into the unix system. I should be there to download gzip, how to install? Plead for help!
A: ftp://sdccf.mine.nu or ftp://ftp2.caldera.com/pub/skunkware/osr5/vols/
7. Question: SCO UNIX 5.0.5 development system installed, then install network card driver. PING own pass, PING someone different, and installation of development systems related to it? How to solve?
A: IP addresses in the same segment it? If so, Connection cable, right? Not to add a segment on the route! !
8. Question: How to build WEB server?
A: Internet / Intranet web application process, Web server, the building is essential, while domestic enterprises more consideration in the networking program to move closer to the Intranet, build your own Web server, use one of the WWW, E-mail and other services to improve office efficiency. In the country, SCO UNIX as a commercial network operating system technology is mature, widely used in finance, insurance, postal and telecommunications industries. Its own built-in rich network functionality, from SCO OpenServer 5.0 version after all network services greatly strengthened, with its good stability and security, without any additional investment can be configured within the enterprise Web server, use of the client (Win 9x) of the WWW browser software can achieve the function is to make full use of existing investments, reduce the cost of a good way; UNIX Web server in a number of commercial websites has been used successfully, if you are familiar with SCO UNIX, SCO UNIX can be used to consider the establishment of enterprise-class network operating system, Internet Web server.
In this paper, SCO OpenServer 5.0.5, for example, describes the office network has been built based on the method of enterprise network Web server. A segment in building a SCO UNIX Web server (IP address: 205.100.100.52), in the LAN client operating system is Win 95/98/NT, the browser is IE, it has a good web editing and browsing environment interface (of course, you can also use the web browser under Linux environment). Which have a Win 9x clients (IP address: 205.100.100.170) with remote management Web server and the upload functionality of the pages; in wide area network to another within the B segment, there are some Web browsing clients, including a Win 9x client (IP Address: 204.1.191.2) is also set to have the remote management Web server functionality.
1. Internet Manager installation package
2. SCO OpenServer 5.0.5 system installation and network configuration is not described here, but users need to pay attention to choose the default during the installation process
Package installed, so that the system will include the Intranet / Internet for Web services. If you do not select the default package installation, the
To install Netscape Communicator (Ver 4.0.5b) and SCO OpenServer Enterprise System Internet FastStart
(Ver 5.0.5m) package. Concrete steps are inserted SCO OpenServer 5.0.5 system installation CD-ROM, use # scoadmin ??software life
So, select the installation CD to install the two packages, the installation is completed, restart the host.
3. WWW server remote management settings
Although the SCO OpenServer 5.0.5 on the console's graphical interface provides functionality for managing WWW server, but on the WWW server remote control
Management settings, allowing administrators to more convenient and flexible client through the remote WWW server maintenance. WWW server IP address here is:
205.100.100.52, WWW server remote management client IP address: 205.100.100.170, WWW home page stored in the directory / usr / www under
(System default WWW home page directory / usr / internet / ns_httpd / docs).
4. Internet Manager configuration: root login with SCO UNIX host, edit / usr / internet / admin / access / site files, the file
Adding remote management server's local IP address of client: 205.100.100.170.
Edit / usr / internet / admin / conf / httpd.conf file, “ServerName localhost” line to “ServerName
205.100.100.52 “.
5. Restart the host, update configuration.
Netscape FastTract Server configuration: using root login, edit / usr / internet / ns_httpd / admserv / ns-admin.conf
File, “ServerName scosysv.ccb” line to “ServerName 205.100.100.52″; the “Addresses 127.0.0.1″
Line to “Addresses 205.100.100.170″.
6. Restart the host, update configuration. Enter / usr/internet/ns_httpd/httpd-80 directory, run stop, stop the http service management procedures;
7. Remote Start Internet Manager
In the windows 95/98/NT client start IE browser, enter in the address bar the IP address of the server and the Internet Manager of the port number (615)
And the page file name - http: / / 205.100.100.52:615 / mana / mana / menu.mana, the system prompts for a username and password,
Log in using the system for the first time when the Internet Manager to manage the default user “admin” and default password “root”, login into
Internet Manager interface.
System shows a variety of services, click the “Web” button to enter the “Netscape FsatTrack Server” in the management of import, select the super-
Link Netscape FastTrack Server (port 80), management interface login dialog box appears, enter the default admin user name and password
root, after successful login into the Netscape FastTrack Server 2.01's management screen.
8. On the Web Server Manager to modify the configuration of
Row of options in the management interface, click System Settings, then by selecting the “Network Settings”, “performance tuning”
Other options, the home directory on the server, the server name, httpd listening port number (default is 80), the server number and other parameters of the process of setting
Home.
Row of options in the management interface, click the Content Mgmt, and then click on the left of “Primary Document Directory”, in the text area
The Primary Directory box, enter the store WWW home page of the main path name “/ usr / www”; if needed in the main document directory for the new
User myweb a directory, then it must be set on the created directory access control permissions.
# Cd / usr / www
# Mkdir myweb
# Chown nouser myweb
# Chgrp nouser myweb
# Chmod 755 myweb
Access to Internet Manager interface, click System Settings, then click on the left “Document preferences”, increase or
Modify the default home page HTML file name, click the OK button, and select “save and apply”, to make changes effective. The system default home page HTML file
Named index.html, home.html.
Access to Internet Manager interface, click Security, select the Set Internet Manager Password, can modify the admin of the mouth
Order; also can log root, in character mode, type / etc / internetpw to carry out.
Access to Internet Manager interface, click Security, select the Control Access from Remote Sites, enter 204.1.19
1.2, this can add a Web server, remote administration client. The method of character than in the UNIX environment, edit / usr / internet / admin / access / site
Documents faster and more convenient.
Web server setup is complete, will be uploaded to the WWW home page of the main path / usr / www, the system default home page file name is: index.html, in the SCO UNIX system
System, the file name is strictly case sensitive, so upload to UNIX host in the letters pages of the file name and the case may be different on Win 9x.
Web upload is complete, so the client can browse to the SCO UNIX system, Web server pages.
9. Question: How to install the machine development system?
A: put the installation media, custom-> Software-> Install New-> CD-ROM-> Sco Openserver Development Sys-tem enter the series better! !
10. Question: How do I add the gateway and DNS services? (Unkonwn host name)
A: route add default xxx.xxx.xxx.xxx
A: Gateway needs / etc/rc2.d / directory to add files beginning with S
route add default xxx.xxx.xxx.xxx 1
Such a line, or else each time starts to be executed at once #
Add DNS Services: vi / etc / resolv.conf says nameserver xxx.xxx.xxx.xxx, both DNS addresses.
11. Question: How to start automatically add the gateway?
A: Yes, in / etc/rc2.d directory using vi create a file named S10route says:
route add default xxx.xxx.xxx.xxx 2 where xxx.xxx.xxx.xxx is the gateway.
A: In vi / etc / tcp find the route that it not be more simple line change it? After the ifconfig.
In / etc / tcp file which can be added.
A: In / etc / rc in a more convenient
A: SCO UNIX environment to automatically increase the gateway's two ways:
1. Method 1: Edit to generate a / etc directory of the gateways file.
To root for registration.
# Cd / etc
# Vi gateways
In the file add the following statement:
net objective of the network gateway address gateway metric valuess [passive / active]
One valuess represents a destination network segment through which the distance is the number of hops. passive, active or passive, said gateway active. For example, the author unit on the LAN to access the superior line of unix host 100.88.1.0 LAN segment, the following statement can be used:
net 100.88.1.0 gateway 100.88.198.1 metric 2 passive
100.88.198.1 is the unit of which the router LAN IP address. Other branches of the same LAN to access the above methods can increase the corresponding statement.
2. Method 2: Edit produce a / etc/rc2.d directory with a capital S at the beginning of the file, such as S96gateway.
We know there are several in the UNIX operating level, such as the run-level 0 system shutdown, run level 1, said system management state, run level 2 is the system run level the conventional multi-user state, and each level corresponds to a run / etc / rcn. d directory. If the corresponding run-level 2 / etc/rc2.d directory, this directory contains shell ???, unix system to boot into multi-user state automatically in the order these documents, and the shell file name has the following Geshi: Snnname. S said the system enters the run level required to execute the file to start the process specified in the file; nn is a 00-99 number, the figure is to be started this process sequence number; name the file name, according to this feature, we can editing to produce a document such as S96gateway to start automatically added to the gateway machine purposes.
To root for registration.
# Cd / etc/rc2.d
# Vi S96gateway
In the file, add the following statement:
route add net purpose of the network gateway address hops
If a precedent for access 100.88.1.0 network segment, the above statement is:
route add net 100.88.1.0 100.88.198.1 2
One 100.88.198.0 is the IP address of the router unit. Access to different networks, can be a corresponding increase in the corresponding statement. If the LAN only one router, may designate as the default gateway is added in S96gateway:
route add default gateway address 1
If the router address is: 100.88.198.1 above statement is:
route add default 100.88.198.0 1
12. Question: How to start X Windows?
A: After installation, how to enter Bahrain sco unix GUI configuration after the first mouse and monitor, startx you can access Graphics
Interface of the
Scologin enable the implementation of
Then boot into x-windows automatic landing sector; in the / etc / default / in # vi boot, in the last line add TIME = 3 save, reboot. Next boot will go directly to graphical interface.
13. Question: how to modify the host's domain? ?
A: Using vi to directly modify the / etc / hosts, not REBOOT to make the modified field effect! ! Can run netconfig to modify.
14. Question: I can Ping through someone else's machine too, but the others are Ping unreasonable my machine, and, I can Ping all of the LAN must pass the machine, but it is unreasonable INternet Ping hosts. (Ping IP address does not work, prompt, not router)
A: You PING INTERNET unreasonable because you do not set a good gateway
Gateway can route command set
Your computer can PING through other machine, other computers can not PING to your computer is actually very strange, do not know if you are not PING a computer IP address or machine name?
Check your machine's / etc / hosts are in / etc / tcp file, add a statement route add default gateway 1
Or / etc/rc2.d directory create a file named S10route, says:
route add default xxx.xxx.xxx.xxx 1
Where xxx.xxx.xxx.xxx is the gateway.
15. Question: unix how to solution. Tar.gz file?
A: Generally speaking, we are passing to. Tar files compressed with compress. Z files, saving storage space;
To restore, first uncompress, then solutions of tar:
% Compress backup.tar compression
% Ls-l backup
% Uncompress backup.tar.Z extract
% Tar xf backup.tar compressed tar solution
You can also use gzip / gunzip instead of compress / uncompress.
16. Question: will a WINDOWS 2000 operating system, the machine as a proxy server, use the SCO OPENSERVER5. 06 as the client access, I do not know in what ways, to configure the machine 98, the gateway can it?
A:
(1) configure network card, IP address and the server to the same network segment.
(2) in / etc/rc2.d with VI editor under S10route, joined Gateway, both server NIC's IP address, such as 192.168.0.1
(3) vi / etc / resolv.conf says nameserver xxx.xxx.xxx.xxx, both DNS addresses. That is under the UNIX DNS server set to the gateway host can access the WINDOWS!
17. Question: 20G hard drive in sco unix 5.05 is not fully realize that in nothing. 1 track is how much?
A: 1. Installation, the “boot” prompt, enter the following:
??????????? defbootstr biosgeom=(25249,16,63) ??????????????????(cylinder/heads/sectors-per-track)?????????
2.?????nteractive/divvy????????????????????ylinder/heads/sectors-per-track????????????????????????
3.????????k
18.?????CSI??????????????efbootstr link=…???????????br />???Boot????????????defbootstr link=??mird slha??sdsk=amird(0,0,0,0) Srom=wd(0,0,0,0)??
?????ink???amird slha???????????????????????????BTLDs,bootime loadable??
driver???sdsk??mird???????????????????????????????????SCSI????????br />??dapter number????????bus number???SCSI ID???????????un??Srom=(0,0,0,0)??br />?????IDE??DE??DROM?????????????????n,n,n,n)????????DE Controller??br />Master/Slave,LUN,BUS????????0????????????????DE Controller:0=primary,??
Master/Slave :0=master,LUN???0??UN for an EIDE/IDE device is always 0??BUS:0(BUS??
for an EIDE/IDE device is always 0).
19.?????????????????????????????????????????????custom???????????br />???????????????????????????
???SCO OPENSERVER ??ustom??????????????br />??CO OPENSERVER5.0.x?????????cutsom?????????????????????????????????????????????????????????????????????????????????????????CO OPENSERVER????????????Custom Distribution Master ToolKit,????????ustom???????????????
???CDMT????????????????????????????????????????????????????????????????????CO OPENSERVER?????????????????????????????indows??inux???????????????????????????????????????????????????????????????????????????CDMT???????????????????????????????????br />
??????????????????
???SCO OPENSERVER???custom??????????????????????????br />????????CO OpenServer 5.0.x??????????????client??server,????????????????????an???
???????????????????????????????????????????????????????????????test??br />
????????????????????br />
????????hared(/opt)??on??hared(/var/opt)????????hared???????????on??hared????????????????????????????????????????????hared??br />
????????????????????br />
?????????test??????????????br />???/usr/test/.profile
???????????atabase/
???????????blog/
???????????in/
???????????mp/
?????????CDMT?????br />
???????????istribution??????CDMT??IR????????????????????br />?????DMT??IR=/usr/test
?????xport CDMT??IR
?????????CDMT??????????????br />
????????????????????br />?????DMT??IR/input/test.prd
??DMT??IR/input/test.cmpnt
??DMT??IR/input/test.pkg??????????????i??????????????????????????i?????br />??????CDMT??IR??????
???find.??rint>/tmp/TEST.files
cdmtConvert/tmp/TEST.files
??nput??????????????????????????????cdmt.config??????
????????DMT??IR??????????????br />?????i??DMT??IR/cdmt.config
???????????????
???CONFIG??br />???ArchiveMedia=CD
???CD??EDIA:
???DistCode=??DDist??br />??????input??????test.config??????????????est.config???
????????onfig???????????????????????????config????????????????????br />
?????????SSO??br />
?????DMT??IR???????????????????????????????????CDMT??IR/???????????????????br />???1??dmtParse,??????????????SSO)???????????DMT??nput????????????SSO?????DMT??IR/sso???
???2??dmtCompress,????????SO??????????????br />???3??dmtArchive,?????????custom?????????
???????????????????????br />
???1?????LOPPY????????????
???cdmtArchive ??edia FLOPPY ??opy
?????????????????pio???????????pio????????????????????????tar?????????????????ar??????????????????????????????????????br />???2?????APE????????????
???cdmtArchive ??edia TAPE ??opy
?????????????????????????????????????????????????????br />???3?????D???????????br />???(1)??d /usr/test/sso??s???????????pt???
???(2)??kisofs??????ISO9660????????br />???mkisofs???internet??ownlad???????????????
???mkisofs ?? ?? ?? cd??mage.iso
?????????????????????????????pt??br />?????????/usr/test????????????cd??mage.iso????????????????????????
???(3)??d??mage.iso???windows????????????????????????????????tp???(windows??penserver????????????)????????ount???(windows??penserver??????????????windows??????????????????
20.?????nix????????OS?????br />???mount /dev/hd0d /mnt?? ?????????DOS???????????AT16?????????FAT32?????br />21.???????????????????????racl????????????
?????etc/rc??????????????? /etc/rc2.d?????????????????! !??????????????????????????????????????????????????????????????????/etc/rc2.d?????br />#vi S96gateway????????????
?????96gateway???????????????????????????
route add default 192.168.1.1(???????????????????????????????????????)??br />
Oracle??????
vi S20dbadmin
su -u oracle -c svrmgrl<<EOF
connect internal
startup
exit
EOF
su -u oracle -c "lsnrctl start";??????
???????????racle??etc/rc0.d????????????
vi K20dbadmin
su -u oracle -c svrmgrl<<EOF
connect internal
shutdown immediate
exit
EOF
su -u oracle -c "lsnrctl stop"
22.?????co unix5.06??????DNS??br />???vi /etc/resolv.conf? ??????nameserver xxx.xxx.xxx.xxx??xx.xxx.xxx.xxx????????NS??br />23.?????etScape????????br />???1??????
????????????????????????
route add default 192.168.0.1 (IP ???????????
????????i /etc/rc2.d/S99route???????????????????????????
?????????
route add default 192.168.0.1
2. ??ns
???/etc/resolv.conf??????
nameserver 192.168.0.1
(nameserver??ns ???????????P??ns??????IP)
??????
3.netscape?????????
edit->preferences->???advanced???????????>proxies->manual proxy
configuration view ?????????
24.?????s/2?????nix??????????????
???1 mkdev mouse
2 add a mouse to system
3 ps-2style keyboard mouse
4 high resolution keyboard-mouse
25.???????????counix5.0.5 ip????????????hostname?????????netconfig???????????cp/ip????????????????????ostname?????????????????????ping?????????????????p???????????????????????????????????????????????????
?????????/etc/hosts?????uinstall,uname -S nodename ?????
26.??????????????OMPAQ 3000 ???????????.3G SCIS??????????????br />??nformix ???????????????4.3G,?????????4.3G SCIS?????????informix ?????????????????????
???????????????????????kdev hd ???SCIS HOST ADAPTER ID??EFAULT 0???LUN ID??EFAULT 0???SCIS ID?????????ID?????????????ivvy???????????????????????????data??????????????ON FS????????????????????????chmod 666 /dev/rdata??hown informix??nformix /dev/rdata?????????INformIX??????tbmonitor???? version?????nmonitor??ersion 7???????????spaces-??dd chunk?????ATH??dev/rdata??IZE??000000k??FFSET?????????????HUNK ???2G????????IZE??????200000K??????????????FFSET?????000001???????????????4000001??br />27.????????????????????????–tar?????????
????????br />tar tv6
tar tv8
?????????????????br />tar cv6 files
tar cv8 files
?????????????????????
tar xv6
tar xv8
6?????????????etc/tar?????????????????????????????????
28.????????FS??br />???SCO NFS??? http://www.xici.net ???: ??? (2001-05-11 20:38:11)
???????????????SCO??FS????????NIX????????FS??et File System?????br />????????????????????????????????????????????????????????????
NFS??????????????????NFS??????????????????????????????????????br />????????????????????????
NFS???????????????????????????????????????????????????????????br />??????????????FS??????????????ount?????????????????????????????br />?????????????????????????????????
1??FS???
??????????????????????????mount???????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????????????ount??FS???????????????????????????????????????????????sck,mkfs?????????????????????????????br />2??FS???
?????????????????????NFS?????????????????FS????????????NFS??????????????????NFS?????????NFS??????????????FS?????????????????????NFS????????????NFS??????????????????????????????NFS??????????????FS????????????
??NFS??????????????????????????????host : pathname ???host???????????????pathname????????????????????????
?????????????????????????????????????ount point)??br />3??FS?????????
????????NFS????????br />????????????????????????????br />????????????????????????????????usr/local????????????????????usr/local
/extra?????usr/local/extra??????????????????????????????????????????????????????
????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????NFS???/usr/local,????????usr/local??????????????br />??????????????????????????????????????????????????????????????????????????????????????????????????????????????????/???????????????????????tmp???????????????????????tmp???????????????????????br />????FS???????????????????????????NFS??CO???????????br />
???????FS???????????????????????????????????br />?????NFS???????????????scoadmin???Filesystem Manager?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????scoadmin????????????????????????????????????????????????????????INUX??CO??OLARIS????????????????????br />????????????scoadmin??????????????????????????br />??1?????????
???NFS?????????????????????????????????????????????????????????????????????
??scoadmin????????????????????coadmin–Filesystem–Filesystem Manager–Export NFS–Add Export Configuration??????????????????
Directory to Export
???????????????????br />Read-only and Read-Write clients
??????????????????????????????????????????????????????Read-only Clients????????ll systems?????ead-Write?????????None???????????????????????????????????????????????ead-only Clients??????Selected Systems,???Read-write clients?????????none????????????????????????????????????????????????????????????Read-only clients??????none?????EAD-WRITE CLIENTS?????????ALL?????????????????????????????????????????????
?????????????????????????????????????????????????????FS???????????????????????????????????????????????????????????????????????????NFS????????br />Export Now
?????????????ilesystem Manager???exportfs,???????????es;??????No?????????????????FS????????br />Advancded Options
???????????etc/exports????????????NFS????????????????????????????????????????????????????????????????????br />???????????FS????????????????????FS???????????????1?????FS??????????????????????????????????????????????????FS??????????????????????????etc/exports??????2?????ountd????????????????????xportfs??????????????br />???????????/etc/exports?????br />??/etc/exports??????????????????????????FS????????????????????????????????????????????????????????FS????????????????????????????????????NFS??????????????????????????????????????????????????br />?????????NFS???????????????/etc/nfs??????????????FS??????????????????/etc/exports????????????????????FS???????????????mountd??br />????????etc/exports?????????????????????????¤?exportfs????????ountd??????????????????????????br />-u??????exportfs????????????????????br />-a??????exportfs???/etc/exports????????????????????br />
29.?????????x-windows?????????
???mkdev graphics
30.???????????MG?????br />?????D-COPY???????????????
31.??????????????????ping???????????????????????????
??????????????indows2000?????????????????????unix???????????????????????br />???????????????????????????????????????????????? ??????????????????????????br />?????etc/rc???route add default windows2000?????P??? 1
???????????????????????elnet??tp?????br />???netscape????????NS????????????vi /etc/resolv.conf
Says:
nameserver DNS???(?????02.102.128.68)
32.?????????????????br />?????????????????????????????????SCO UNIX???????G??????????????br />????????G?????CO UNIX???????????G???????????8G???????????????
??INDOWS???fdisk???????????????DOS??NIX??DISK????????????????br />??????????????G?????????????????????????????? ?????????????????br />?????????????????????????IN998??OS??????????????? ?????????8G??br />?????????????????????2?????NIX???FDISK??OS?????? ??????????????br />?????OS?????????????????????????????????UNIX????????????NIX???
??OS??????????????????DOS???FDISK??NIX?????? DOS??????????????br />
????:
Eclipse + JBoss + EJB3 Entity Bean's Connection Strategy
Hiddink looking like the kind of CEO
Servlet with MIDlet activation
