Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >System Management


    

Blue Forest http://www.lslnet.com at 20:18 on April 6, 2006


The paper provides a brief FreeBSD /etc

FreeBSD /etc the document is complicated, not in terms of what people are familiar with it, but on a newcomer. . . Too arbitrary, the following is a frequently used method of allocation and distribution of the role of the document, she would give you a little help.

1. Aliases
2. Crontab
3. Csh.cshrc
4. Csh.login
5. Csh.logout
6. Daily
7. Defaultdomain
8. Exports
9. Fbtab
10.fstab
11.ftpusers
12.group
13.host.conf
14.hosts
15.inetd.conf
16.localtime
17.login.conf
18.make.conf
19.monthly
20.motd
21.netstart---- new edition has been renamed /etc/rc.network
22.passwd
23.printcap
24.profile
25.rc
26.rc.conf---- replace the /etc/sysconfig
27.rc.conf.local---- replace the /etc/rc.local
28.rc.i386
29.rc.local---- new name for /etc/rc.conf.local
30.rc.network---- replace the /etc/netstart
31.resolv.conf
32.services
33.shells
34.sysconfig---- new edition has been renamed /etc/rc.conf
35.syslog.conf
36.termcap
37.ttys
38.weekly

1. Aliases

This handbook should file is to tell to which users can send letters, or by which procedures.

If. Root : user1, name2, user3
Usenet : "|/usr/local/bin/mail-post.pl"

As examples, the handbook will be mailed to the root of the original letter sent to user1 and name2 and user3, while the letter sent by usenet mail-post.pl treatment.

You in the End, we must remember that the implementation of "newaliases" to update /etc/aliases.db

Note details on aliases, man aliases inquiries.

2. Crontab

This is the crontab file to the root, you can kill the files "crontab-e" to replace.
Following form. . .

# Sub who spent several hours a day on the identity of the order of worship
* * * * Root /usr/libexec/atrun */5

Minute : minutes / hour, scope 0-59
Hour : hours / day, range from 0 to 23
Mday : day / month, range from 0 to 31
Month : YY, scope 0-12
Wday : day / week, range from 0 to 7 (0, 7, said Sunday)
Table : Who is who in the capacity of the implementation of the command
(Useful only to /etc/crontab, crontab-e unnecessary pen)
Orders or shell script command :

N : one count for each */N like hours, */3 referring to the 0,3,6,9,12

Please look at the detail man 5 crontab.

3. Csh.cshrc

# Csh shell to the system concurrently. Cshrc stalls

# # Contents determine HOME
Setenv HOME $HOME
Set home=$HOME
Cd $HOME

# # Files authority set
Umask 022

Aliases can say is # #
Pftp alias' /usr/local/bin/pftp '
Free alias' pstat not -s|grep-V '
Alias talk ytalk
Ruptime alias' /usr/bin/ruptime|grep-V down '
Alias ftp ncftp
Rwho alias' LOGIN /usr/bin/rwho -a|grep-V '
Alias more less
Alias zmore zless
Alias m less
Pss alias' ps auxw|sort k 2|grep $USER '
Psm alias' ps auxw|sort k 1,2|more '
Alias psl psm
Psv alias' ps $USER|sort k 2|more auxw|grep-V '
Alias d '/usr/local/bin/colorls G -alFgk \!* | more'
Alias dir '/usr/local/bin/colorls G -alFgk \!*'
Alias rd rmdir
Mkdir alias md
Cls clear alias
Alias cd. . 'Cd. . '
Alias del '/bin/rm -i'
Xdel alias' /bin/rm -rf '
Alias mv 'mv -i'
Dir/w alias' /bin/ls -aFgk '
Dw alias' /bin/ls -aFgk '
#alias X '(startx &), ";&/dev/console;sleep 300;lo'
#alias Lpr 'lpr m'
Alias cp 'cp -i'
Alias rm 'rm -i'
Alias lo 'clear;exit'
Alias bye 'clear;exit'
#alias Vi cvi
Unlo alias' unset autologout;unsetenv autologout '
Joe alias q
Alias. . 'Cd. . '
Alias. . . 'Cd. . /. . '
#alias Ku 'ku - W'
Alias tin rtin
#alias's' Exec screen '

# # Environment set
Set path = (/sbin /usr/sbin /bin /usr/bin /usr/local/sbin /usr/local/bin)
Set path = ($path /etc /usr/etc /usr/local/etc)
Set path = ($path /usr/X11R6/bin /usr/games)
Set path = ($path - ~/bin. )
Set mail = (10 /var/mail/$USER)
Set recexact
Set autolist
= Ambiguous set matchbeep
Set autoexpand
Set autocorrect
Set ignoreeof
Set noclobber
Set notify
Set correct = all
If (! $?WINDOW) Then
# Set prompt = "%B%m [%/] [%?] -%n-"
Set prompt = "%B%m [%/] -%n-"
Else
Set prompt = "%B%m [%/] -%n- [W$WINDOW]"
Endif
Set prompt2 = "(%t %m ± 0.020) #%%"
Set prompt3 = "%SDo you mean [%R] (y/n/e)?"
Set history = 500
Set savehist = 500
Set time=100
#set Watch= (1 any any)
Set symlinks = ignore
Set listlinks
Set listjobs
Set rmstar
Set showdots
#set Tperiod = 30
# Set autologout = (60 2)
#setenv MANPATH /usr/man:/usr/local/man:/usr/man/preformat:/usr/X11/man:/usr/openwin/man
Setenv EDITOR /usr/local/bin/joe
Setenv VISUAL /usr/local/bin/joe
Setenv EXINIT 'set ai'
Setenv LESS "-EsPm-LESS-"
Setenv LESSCHARDEF "8bcccbcc18b95. . "
Setenv PAGER "less -Em"
PAGER more #setenv
Setenv LC_CTYPE lt_LN.ISO_8859-1
Setenv LANG C
Setenv BLOCKSIZE GE
Setenv MACHINE_ARCH from beginning for the i386
Setenv MACHINE from beginning for the i386
Setenv ORGANIZATION "University funded ADONIS"

# # X related set
Setenv XWINHOME '/usr/X11R6'
Setenv X11HOME '/usr/X11R6'
Setenv OPENWINHOME '/usr/X11R6'
Setenv XKEYSYMDB /usr/X11R6/lib/X11/XKeysymDB
Setenv XNLSPATH /usr/X11R6/lib/X11/nls
#setenv LD_LIBRARY_PATH /usr/lib:/usr/X11R6/lib:/usr/local/lib
Stty erase '^?'

If ($?TERM) then
If ($TERM ====== "xterm" | | $TERM ====== "xterms") then
Stty erase '^H'
Endif
Endif

# # Hodgepodge set
#set Term = vt100
#set TERM = vt100
#setenv Term vt100
#setenv TERM vt100
#stty Extb
Stty 38400
Stty crt
Stty -tabs
Stty -istrip
Stty pass8
Unlo
#bindkey "[HOME]" Beginning-of-line
#bindkey "[ESC]" Keyboard-quit
Limit coredumpsize 0

# Client used to FSP
Setenv FSP_PORT 21
Setenv FSP_HOST nctuccca.edu.tw
Setenv FSP_DIR /
Setenv FSP_TRACE
Setenv FSP_DELAY 3000

# Aii. . Is fsp aliases :)
Fcat alias' (set noglob; exec fcatcmd \!*) '
Fcd alias' setenv FSP_DIR `(set noglob; exec fcdcmd \!*) `;fpwd '
Alias fdu \ (set noglob\; exec fducmd \!\*\)
Alias ffind \ (set noglob\; exec ffindcmd \!\*\)
Fget alias' (set noglob; exec fgetcmd \!*) '
Fgrab alias' (set noglob; exec fgrabcmd \!*) '
Alias fls' (set noglob; exec \!* flscmd F) '
Fll alias' (set noglob; exec \!* flscmd l) '
Fdir alias' (set noglob; exec \!* flscmd l) '
Alias fmore \ (set noglob\; exec fcatcmd \!\* better than the classical range more\)
Alias fpro '(set noglob; exec fprocmd \!*)'
Fpwd alias' echo "$FSP_HOST ($FSP_PORT) : $FSP_DIR" '
Alias frm '(set noglob; exec frmcmd \!*)'
Frmdir alias' (set noglob; exec frmdircmd \!*) '
Fhost alias' setenv FSP_HOST \!*;setenv FSP_DIR / '

4. Csh.login

# Predetermined system. Login stalls.

#stty Extb
Stty 38400
#stty Crt
#stty -tabs
Stty -istrip
Stty pass8

# Mesg y if not console
Mesg y
If (`tty | cut-c 6-` ====== console), then
Mesg n
Endif

Msgs -fp

5. Csh.logout

# Predetermined system. Logout
Clear
.

6. Daily

/etc/crontab Cron will be done in accordance with the daily routine work. Some commands for your attention to this great hard disk load, such as the last line of "sh /etc/security" He will start from your catalog root inquiries. You can add some day you want to implement the commands, like "quotacheck-," "bin/rm/-f /tmp*junk*.

7. Defaultdomain

This file records the domainname you, you have run www.hkcitymap.com/ (pour) are useful. Of course, passengers are sparse and the mood is laid back, take to fill a gap did not fill.

8. Exports

What this definition files via NFS to the list used by others.
For example /cdrom -ro host1, host2
/home -maproot=root Host3

Notice : If you have not "-ro said it" can be included, so you should be careful.

Done that, "kill -1 $mountd_pid" and then "showmount-e" to see whether NFS done correctly. If there is any mistake, "tail /var/log/messages" look at the wrong message.

You should change the nfs_client_enable /etc/rc.conf, as the nfs_server_enable yes.

Please elaborate man 5 exports.

9. Fbtab

/dev/ttyv0 0600 /dev/console
/dev/ttyv1 0600 /dev/console
/dev/ttyv2 0600 /dev/console
/dev/ttyv3 0600 /dev/console
#/dev/ttyv0 0600 /dev/pcaudio:/dev/pcaudioctl

10.fstab

When you open the definition of the file, what you want to mount the partition.
For example.

/dev/sd0a / Ufs rw 1 1
/dev/sd0e /dos Msdos RO, -gmsdos, -m750 1 1
/dev/sd0g /usr/local Ufs rw, userquota 1 1
/dev/sd0h /home Ufs rw, userquota, groupquota 1 1
/dev/sd0b None swap sw 0 0
Procedure /proc procfs rw 0 0
Kern /kern kernfs rw 0 0

Details man fstab.

If you are not with the /usr / together, we must pay special attention to, /usr not included on the use of the filesystem LKM behind. For example, you use the MSDOSFS LKM is included (ie, you were not MSDOSFS translation in the Kernel), you /dos
/usr Must be placed on the back, or failure of open opportunities, such as :

Modload:exec (/usr/bin/ld) : NO such file or directiory
Msdos:vfsload (msdos) : Operation not permitted
Filessystem mount failed, aborted startup
Enter pathname of shell or RETURN for sh

11.ftpusers

This marked the users will not be able to stall ftp this machine. Username can be as long as you write. The blacklist is prohibited ftp into bars.

12.group

The archive records toward the main group name, group id, and the group belonging to the user.

We must remember that in FreeBSD, and users can only belong to the group 车 su into root.

/usr/src/etc/group Whether particular attention to the escalation of a new system group, as this group is the latest new network group.

Other details please use man group.

13.host.conf

The decision DNS-name-lookup files in the order. You should preferably be "hosts", followed by "bind" and "pour."

Hosts : Since /etc/hosts inquiries.
Since nameserver bind : (/etc/resolv.conf reference set).
Inquiries : Since pour pour server.

14.hosts

The recorded files you need ip and hostname, including at least to your own hostname localhost and is usually given priority nameserver inquiries, the inquiry or not nameserver.

Following form :
IP-addr full-hostname alias
If. 123.456.789.123 heaven.net.com heaven

Please look at the detail man hosts.

15.inetd.conf

Inetd file from the definition of the services provided, it should /etc/services and consistency.

When you change the files, remember to kill inetd to re-notify $inetd_pid to update the information.

You can install tcp-wrapper (tcpd) to increase safety.

16.localtime

The stalls in the district where you record information, you can select from /usr/share/zoneinfo an appropriate use.

In Taiwan's case, you should use /usr/share/zoneinfo/Asia/Taipei Normally, the install will automatically copy files to /etc/localtime this.

17.login.conf

This file system can control all aspects of the account with limited resources can also designated set of environmental variables.

"Login.conf man" for detail.

18.make.conf

When you make time, the definition of stalls will be reference.

If not for the BSD format writing Makefiles, you should install gmake (GNU)

19.monthly

Monthly routine jobs.

20.motd

Message Of Today, as the name implies, is the picture which emerges when you Login.

If you have your own motd that you should /etc/rc.local motd front of several changes the company will be ordered to remove the button, motd will be switched on every time you change chaos.

21.netstart---- new edition has been renamed /etc/rc.network

/etc/rc.network Replace this stall has been present here only as root in single user mode stalls to manually launch Internet service
Use. The files do not change, we should amend /etc/rc.conf

22.passwd

/etc/passwd /etc/master.passwd /etc/spwd.db /etc/pwd.db Generated by vipw. On how to build an account, please refer to HOW-TO-adduser.

You can man passwd, vipw, chpass, chfn detailed inquiries.

23.printcap

This definition files to the printer set in the revised test toward using lpr to print something, if you feel very slowly and try to change toward using lptcontrol-p /dev/lpt0 to poll mode, of course, lptcontrol-p you can be added to each /etc/rc.local Lane switched been effective.

Man lptcontrol detailed inquiries.

24.profile

/bin/sh This is the default setting.

25.rc

When the system switched on, the Kernel will try to include /sbin/init before /sbin/init will enforce /etc/rc, compared /etc/rc terms like DOS AUTOEXEC.BAT. The files do not want to change. If you do not want each button when /tmp money will be clean, then you can be associated with /tmp cut to a few lines. (personal preference)

26.rc.conf---- replace the /etc/sysconfig

This is mainly used for system set switched on the environment. /etc/rc, /etc/rc.i386, /etc/rc.conf.local, /etc/rc.network, /etc/[bla Bla] reference to the files. Therefore, this file can be said is very important.

Most have a footnote, you name some of the attention. . .
1) : Your integrity hostname hostname (FQDN like freebsd.csie.nctu.edu.tw :)
2) : network_interfaces network card device name, like "ed0 lnc0."
3) : ifconfig_xxx definition network card and the ip address.
Like ifconfig_ed0= "inet 0xffffff00 netmask 140.113.145.1"
Ifconfig_ed1= "inet 0xffffff00 netmask 140.113.190.1"
As follows. . .
Ifconfig_$device-name= "inet $IP netmask $netmask"
Netmask 0xffffff00 Table Class C network is 255.255.255.0.
4) : pre defaultrouter IP router. (For example : 140.113.122.254)
5) normally routdflags : NO. However, if you want to go routed, "s" or "q."
Please elaborate man routed.
6) : yes implementation rwho rwhod encryption. Rwho ruptime be here with encryption.
7) : sendmail_flags handbook encryption implementation, usually as the "-db -q30m"
8) nfs_* nfs client or server implementation :
9) : enable file system quotas check_quotas
10) : accountint enable command accounting, "lastcomm" need.
11) firewall_enable enable firewall functions :
Firewall_type designated firewall forms :

End then you should set the reset button to test every change is within your request.

27.rc.conf.local---- replace the /etc/rc.local

Adding the files in your personal settings, you may want to be when starting up on the implementation of the action here. Like gopherd, lptcontrol, swap-on-file other.

28.rc.i386

This file should not be altered.

29.rc.local---- new name for /etc/rc.conf.local

/etc/rc.conf.local New version has been replaced.

30.rc.network---- replace the /etc/netstart

/etc/rc.conf Set by the various aspects of the Internet set, in principle, this stall without change

31.resolv.conf

This definition DNS nameserver inquiries in the order.

1. Domain : domainname you up here.
2. Nameserver : your nameservers up here, as will be to keep the main nameserver.
3. Search : domainnames up here, you do not import complete hostname, he will domainnames Additional upswing. For example : search csie.NCTU.edu.tw NCTU.edu.tw edu.tw tw

Details man resolver.

32.services

Definition service names and port. Did not need to be changed.

33.shells

All the files should be placed in the shell, like /bin/sh, /bin/tcsh, /home/bbs/bin/bbsrf so on.

If a user is not listed in the files of the shell, some procedures, such as ftp users ftpd be refused if adduser will be rejected.

Inquiries man shells elaborate.

34.sysconfig---- new edition has been renamed /etc/rc.conf

Reference rc.conf.

35.syslog.conf

The log files should be stored in the system where noted.

36.termcap

This should link to /usr/share/misc/termcap.

37.ttys

Tty definition of the form and some tty you allow root Login. If the increases are behind some ttys "secure," said root can Login. You should be increased further if /dev/tty[pqrs][0-9a-v]

Details man ttys.

38.weekly

Weekly routine work.

The paper provides a brief FreeBSD /etc

O.K., thanks

The paper provides a brief FreeBSD /etc

Thank you 啦!!

I am also a novice. . . . _@!!

The paper provides a brief FreeBSD /etc

Yes, help you UP

The paper provides a brief FreeBSD /etc

Oh, keipagon brother is not here to the water pot.
Good text, and received.

The paper provides a brief FreeBSD /etc

Yes, I support!
Absolute BSD above comparison as a chapter in the translation!
Support! Thank you, landlord!

The paper provides a brief FreeBSD /etc

Http://www.fanqiang.com/a1/b2/20010416/140544.html

Fanqiang.com source

The paper provides a brief FreeBSD /etc

Yes

The paper provides a brief FreeBSD /etc

I liked, although some areas still do not know

The paper provides a brief FreeBSD /etc

Good research. . . . .

The paper provides a brief FreeBSD /etc

8 8 wrong wrong!
Top!

Haha, very helpful to me



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com