PC

玄柴:samba

まずはインストール

# aptitude install samba swat
The following NEW packages will be installed:
dbus{a} libavahi-client3{a} libavahi-common-data{a} libavahi-common3{a} libcups2{a}
libdbus-1-3{a} libtalloc2{a} libwbclient0{a} openbsd-inetd{a} samba samba-common{a}
samba-common-bin{a} samba-doc{a} swat
0 packages upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 22.1MB of archives. After unpacking 54.0MB will be used.
Do you want to continue? [Y/n/?]
Get:1 http://ftp.jaist.ac.jp squeeze/main libdbus-1-3 1.2.24-3 [129kB]
Get:2 http://ftp.jaist.ac.jp squeeze/main dbus 1.2.24-3 [213kB]
Get:3 http://ftp.jaist.ac.jp squeeze/main libavahi-common-data 0.6.26-1 [105kB]
Get:4 http://ftp.jaist.ac.jp squeeze/main libavahi-common3 0.6.26-1 [51.7kB]
Get:5 http://ftp.jaist.ac.jp squeeze/main libavahi-client3 0.6.26-1 [52.4kB]
Get:6 http://ftp.jaist.ac.jp squeeze/main libcups2 1.4.4-2 [221kB]
Get:7 http://ftp.jaist.ac.jp squeeze/main libtalloc2 2.0.1-1 [18.0kB]
Get:8 http://ftp.jaist.ac.jp squeeze/main libwbclient0 2:3.4.8~dfsg-2 [91.5kB]
Get:9 http://ftp.jaist.ac.jp squeeze/main openbsd-inetd 0.20080125-4 [33.7kB]
Get:10 http://ftp.jaist.ac.jp squeeze/main samba-common 2:3.4.8~dfsg-2 [382kB]
Get:11 http://ftp.jaist.ac.jp squeeze/main samba 2:3.4.8~dfsg-2 [6236kB]
Get:12 http://ftp.jaist.ac.jp squeeze/main samba-common-bin 2:3.4.8~dfsg-2 [4724kB]
Get:13 http://ftp.jaist.ac.jp squeeze/main samba-doc 2:3.4.8~dfsg-2 [8004kB]
Get:14 http://ftp.jaist.ac.jp squeeze/main swat 2:3.4.8~dfsg-2 [1863kB]
Fetched 22.1MB in 6s (3359kB/s)
Preconfiguring packages …

Package configuration

lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Please specify the workgroup for this system.  This setting controls which workgroup the system   x
x will appear in when used as a server, the default workgroup to be used when browsing with         x
x various frontends, and the domain name used with the “security=domain” setting.                   x
x                                                                                                   x
x Workgroup/Domain Name:                                                                            x
x                                                                                                   x
x MSHOME___________________________________________________________________________________________ x
x                                                                                                   x
x                                              <Ok>                                                 x
x                                                                                                   x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

Selecting previously deselected package libdbus-1-3.
(Reading database … 20495 files and directories currently installed.)
Unpacking libdbus-1-3 (from …/libdbus-1-3_1.2.24-3_armel.deb) …
Selecting previously deselected package dbus.
Unpacking dbus (from …/dbus_1.2.24-3_armel.deb) …
Selecting previously deselected package libavahi-common-data.
Unpacking libavahi-common-data (from …/libavahi-common-data_0.6.26-1_armel.deb) …
Selecting previously deselected package libavahi-common3.
Unpacking libavahi-common3 (from …/libavahi-common3_0.6.26-1_armel.deb) …
Selecting previously deselected package libavahi-client3.
Unpacking libavahi-client3 (from …/libavahi-client3_0.6.26-1_armel.deb) …
Selecting previously deselected package libcups2.
Unpacking libcups2 (from …/libcups2_1.4.4-2_armel.deb) …
Selecting previously deselected package libtalloc2.
Unpacking libtalloc2 (from …/libtalloc2_2.0.1-1_armel.deb) …
Selecting previously deselected package libwbclient0.
Unpacking libwbclient0 (from …/libwbclient0_2%3a3.4.8~dfsg-2_armel.deb) …
Selecting previously deselected package openbsd-inetd.
Unpacking openbsd-inetd (from …/openbsd-inetd_0.20080125-4_armel.deb) …
Selecting previously deselected package samba-common.
Unpacking samba-common (from …/samba-common_2%3a3.4.8~dfsg-2_all.deb) …
Selecting previously deselected package samba.
Unpacking samba (from …/samba_2%3a3.4.8~dfsg-2_armel.deb) …
Selecting previously deselected package samba-common-bin.
Unpacking samba-common-bin (from …/samba-common-bin_2%3a3.4.8~dfsg-2_armel.deb) …
Selecting previously deselected package samba-doc.
Unpacking samba-doc (from …/samba-doc_2%3a3.4.8~dfsg-2_all.deb) …
Selecting previously deselected package swat.
Unpacking swat (from …/swat_2%3a3.4.8~dfsg-2_armel.deb) …
Processing triggers for man-db …
Setting up libdbus-1-3 (1.2.24-3) …
Setting up dbus (1.2.24-3) …
Starting system message bus: dbus.
Setting up libavahi-common-data (0.6.26-1) …
Setting up libavahi-common3 (0.6.26-1) …
Setting up libavahi-client3 (0.6.26-1) …
Setting up libcups2 (1.4.4-2) …
Setting up libtalloc2 (2.0.1-1) …
Setting up libwbclient0 (2:3.4.8~dfsg-2) …
Setting up openbsd-inetd (0.20080125-4) …
Stopping internet superserver: inetd.
Not starting internet superserver: no services enabled.
Setting up samba-common (2:3.4.8~dfsg-2) …

Creating config file /etc/samba/smb.conf with new version
Setting up samba (2:3.4.8~dfsg-2) …
Generating /etc/default/samba…
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/passdb.tdb file.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for nobody…ok
Importing account for xxx…ok
Adding group `sambashare’ (GID 108) …
Done.
update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
Starting Samba daemons: nmbd smbd.
Setting up samba-common-bin (2:3.4.8~dfsg-2) …
update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode.
update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode.
update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode.
Setting up samba-doc (2:3.4.8~dfsg-2) …
Setting up swat (2:3.4.8~dfsg-2) …

#

設定

細かい設定はSWATで行う。ブラウザからhttp://IPアドレス:901/へアクセス。

  1. password
    大抵、インストール時のsmbpasswd設定は失敗してるので再設定する(気持ちの問題かもしれん)
  2. shares
    共有名shareを追加。/mnt/sda1を共有する。

その他、必要に応じて設定。

性能測定。ネットワークドライブに割り当てて測定。

こんなもんだろう。

Similar Posts

コメントを残す

メールアドレスが公開されることはありません。

*

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください