欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

FreeBSD學(xué)習(xí)指南

  發(fā)布時(shí)間:2008-09-08 18:48:29   作者:佚名   我要評(píng)論
FreeBSD 的版本命名規(guī)則 A-主要版本編號(hào) B-次要版本編號(hào) C-修正版本編號(hào) TAG-名稱(chēng)標(biāo)簽,如 RELEASE、STABLE、CURRENT install.iso 安裝時(shí)用這一片即可!mini.iso 也是可以用來(lái)安裝,但里面沒(méi)有一些常用的 Package ,所以檔案比較小。 硬盤(pán)分割表的概念 IDE 硬盤(pán)

如果我們要解除所設(shè)定的 flags ,只要在上述的 flag 之前加上 no 即可,例如 nouchg 。

用法:chflags flags file

flags 的設(shè)定只有在 Kernel Security Level 為 -1 或 0 時(shí)才可以被更改。如果 Security Level 為 1 或 2 時(shí)就不能更動(dòng) flags 了。

FreeBSD 下的 Samba Server

tar -xvzf samba-2.2.7.tar.gz

cd samba-2.2.7/source

docs 中有許多相當(dāng)有用的文件,值得一讀

./configure

make;make install

啟動(dòng) Samba

以 Standalone 方式

在 /etc/rc.local 中加入

smbd -D -d1

nmbd -D -d1 -G FreeBSD -n SambaServer

-D 以 Daemon 方式運(yùn)行

-d1 除錯(cuò)記錄型別

-G 顯示在 Windows 之網(wǎng)絡(luò)芳鄰中的 Workgroup 名稱(chēng)

-n Samab Server 在 Workgroup 之內(nèi)計(jì)算機(jī)名稱(chēng)。

以 Inetd 方式啟動(dòng)

修改 /etc/services ,檢查是否有底下二行存在

netbios-ssn    139/tcp

netbios-ns    137/udp

/etc/inetd.conf 是否有以下二行存在

netbios-ssn stream tcp  nowait          root    /usr/local/samba/bin/smbd       smbd

netbios-ns dgram udp    wait            root    /usr/local/samba/bin/nmbd       nmbd

設(shè)定檔設(shè)置在 /usr/local/samba/lib/smb.conf

Samba 的使用者賬號(hào)與密碼文件位于 /usr/local/samba/private 之中,檔名為 smbpasswd ,如果這個(gè)檔案不存在,Samba Server 將無(wú)法允許任何人登入。建立 smbpasswd 的方法有三種:

一、直接采用 SWAT 之 PASSWORD 選單,選取 Add New User 來(lái)建立。

二、使用 mksmbpasswd.sh 來(lái)轉(zhuǎn)換 /etc/passwd 或是賬號(hào)清單

這種方法直接把 Linux / FreeBSD 的賬號(hào)密碼數(shù)據(jù)文件轉(zhuǎn)換成 Samba 的檔案密碼數(shù)據(jù)文件格式,這方法可以很快地把所有在工作站上有賬號(hào)的使用者都同時(shí)在 Samba Server 使用賬號(hào)開(kāi)好。但是您仍舊必須要用 SWAT 的 PASSWORD 選單來(lái)更改密碼。

mksmbpasswd.sh < /etc/passwd > /usr/local/samba/private/smbpasswd

采用 mksmbpasswd.sh 有一個(gè)缺點(diǎn),就是會(huì)把 /etc/passwd 中所有的賬號(hào),無(wú)論是有效或是無(wú)效的都轉(zhuǎn)換,所以建置出來(lái)的 smbpasswd 會(huì)很復(fù)雜。

三、

在 Windows NT 中,我們可以設(shè)定使用者名稱(chēng)及密碼。如果在這里設(shè)定為 share,就是只使用密碼;而設(shè)為 user ,則是要輸入使用者名稱(chēng)及密碼。如果我們?cè)O(shè)為 user ,Client 端在瀏覽網(wǎng)絡(luò)芳鄰時(shí),Windows 會(huì)自動(dòng)輸入使用者名稱(chēng)為登入 Windows 時(shí)所用的名稱(chēng),我們必須在 Samba 中加入相對(duì)的使用者密碼。

For Traditional Chiese User

client code page=950

;coding system=cap

valid chars=0xb9

 

 

 

 

FreeBSD 下的 DHCP Server

tar -xvzf dhcp-3.0pl1.tar.gz

cd dhcp-3.0pl1

./configure

make all;make install

執(zhí)行 /usr/sbin/dhcpd

設(shè)定檔在 /etc/dhcpd.conf

內(nèi)容:

# dhcpd.conf

#

# Sample configuration file for ISC dhcpd

#

 

ddns-update-style ad-hoc;

# option definitions common to all supported networks...

option domain-name "tces.ilc.edu.tw";

option domain-name-servers 140.111.152.3, 140.111.66.1, 140.111.66.10;

 

# ddns-update-style;

default-lease-time 600;

max-lease-time 7200;

 

# If this DHCP server is the official DHCP server for the local

# network, the authoritative directive should be uncommented.

#authoritative;

 

# Use this to send dhcp log messages to a different log file (you also

# have to hack syslog.conf to complete the redirection).

log-facility local7;

 

# No service will be given on this subnet, but declaring it helps the

# DHCP server to understand the network topology.

 

subnet 140.111.152.0 netmask 255.255.255.0 {

  range 140.111.152.50 140.111.152.100;

  option domain-name-servers 140.111.152.3, 140.111.66.1, 140.111.66.10;

  option domain-name "tces.ilc.edu.tw";

  option routers 140.111.152.254;

  option broadcast-address 140.111.152.255;

  default-lease-time 600;

  max-lease-time 7200;

}

 

# Hosts which require special configuration options can be listed in

# host statements.   If no address is specified, the address will be

# allocated dynamically (if possible), but the host-specific information

# will still come from the host declaration.

 

host passacaglia {

  hardware ethernet 0:0:c0:5d:bd:95;

  filename "vmunix.passacaglia";

  server-name "toccata.fugue.com";

}

 

# Fixed IP addresses can also be specified for hosts.   These addresses

# should not also be listed as being available for dynamic assignment.

# Hosts for which fixed IP addresses have been specified can boot using

# BOOTP or DHCP.   Hosts for which no fixed address is specified can only

# be booted with DHCP, unless there is an address range on the subnet

# to which a BOOTP client is connected which has the dynamic-bootp flag

# set.

host fantasia {

  hardware ethernet 08:00:07:26:c0:a5;

  fixed-address fantasia.fugue.com;

}

touch /var/db/dhcpd.leases

用 DHCP Server 分配 IP ,但要固定某些機(jī)器的 IP

在那臺(tái)機(jī)器上 Ping DHCP Server,在 DHCP Server 執(zhí)行 arp 查出那一臺(tái)機(jī)器的 Mac Address ,在 /etc/dhcpd.conf 中設(shè)定

 host fantasia {

  hardware ethernet 08:00:07:26:c0:a5;

  fixed-address fantasia.fugue.com;

}

相關(guān)文章

  • Unix,BSD,Linux系統(tǒng)三者的區(qū)別小結(jié)

    這篇文章主要介紹了Unix,BSD,Linux系統(tǒng)三者的區(qū)別小結(jié),需要的朋友可以參考下
    2023-05-03
  • FreeBSD如何添加硬盤(pán)?FreeBSD添加硬盤(pán)的方法

    一些朋友問(wèn)小編FreeBSD如何添加硬盤(pán)?別擔(dān)心,今天小編就為大家分享FreeBSD添加硬盤(pán)的方法,希望對(duì)大家會(huì)有幫助,有需要的朋友一起去看看吧
    2017-04-06
  • Freebsd PF 安裝使用詳解

    今天小編為大家?guī)?lái)的是Freebsd PF 安裝使用詳解,希望對(duì)大家會(huì)有幫助,有需要的朋友一起去看看吧
    2017-04-06
  • FreeBSD下zfs: failed with error 6錯(cuò)誤如何解決?

    最近一些朋友問(wèn)小編 FreeBSD下zfs: failed with error 6錯(cuò)誤如何解決?今天小編要為大家?guī)?lái)的是 FreeBSD下zfs: failed with error 6錯(cuò)誤的解決方法,有需要的朋友一起去看
    2017-04-06
  • Unix文件系統(tǒng)和pwd命令實(shí)現(xiàn)詳解

    今天小編要為大家?guī)?lái)的是Unix文件系統(tǒng)和pwd命令實(shí)現(xiàn)詳解,希望對(duì)大家會(huì)有幫助,有需要的朋友一起去看看吧
    2017-04-01
  • Unix中的dot命令詳解

    今天小編將為大家?guī)?lái)的是Unix中的dot命令詳解!希望對(duì)大家會(huì)有幫助!有需要的朋友一起去看看吧
    2017-03-22
  • freebsd時(shí)間設(shè)置小節(jié)詳解

    近日!一些朋友對(duì)于freebsd時(shí)間設(shè)置小節(jié)存在疑慮!下面小編將為大家?guī)?lái)的是freebsd時(shí)間設(shè)置小節(jié)詳解!希望對(duì)大家會(huì)有幫助!有需要的朋友一起去看看吧
    2017-03-19
  • grub2引導(dǎo)freebsd詳解

    今天小編要為大家?guī)?lái)的是grub2引導(dǎo)freebsd詳解!希望對(duì)大家會(huì)有幫助,有需要的朋友一起去看看吧
    2017-03-19
  • FreeBSD10安裝內(nèi)核源代碼方法講解

    下面小編為大家?guī)?lái)的是FreeBSD10安裝內(nèi)核源代碼方法講解!希望能夠幫助到大家!有需要的朋友一起去看看吧
    2017-03-19
  • FreeBSD下如何使GraphicsMagick支持中文字體?

    最近一些朋友在問(wèn)FreeBSD下如何使GraphicsMagick支持中文字體?今天小編為大家?guī)?lái)的是FreeBSD下使GraphicsMagick支持中文字體的方法!有需要的朋友一起去看看吧
    2017-03-15

最新評(píng)論