新型 HS-DHGL にハックキット(7)Windows 向けファイルサーバ

HS-DHGL

新型 HS-DHGL も旧形や 新型 LS-GL と同じ手順で ハックキットがインストールできるとは思うが、 念のために検証しておく。

続いて Windows 向けファイルサーバ
もうちょっとだ。

samba のインストール

gin:~#
gin:~# apt-get install samba
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  libcupsys2 libkrb53 samba-common
Suggested packages:
  cupsys-common krb5-doc krb5-user
Recommended packages:
  smbldap-tools
The following NEW packages will be installed:
  libcupsys2 libkrb53 samba samba-common
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 6207kB of archives.
After unpacking 14.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp2.jp.debian.org etch/main libkrb53 1.4.4-7etch4 [390kB]
Get:2 http://ftp2.jp.debian.org proposed-updates/main libcupsys2 1.2.7-4etch2 [154kB]
Get:3 http://ftp2.jp.debian.org etch/main samba-common 3.0.24-6etch9 [2379kB]
Get:4 http://ftp2.jp.debian.org etch/main samba 3.0.24-6etch9 [3283kB]

Package configuration
Workgroup/Domain Name には YAMASITA を、
その後は全部デフォルトのまま
Selecting previously deselected package libkrb53.
(Reading database ... 11776 files and directories currently installed.)
Unpacking libkrb53 (from .../libkrb53_1.4.4-7etch4_arm.deb) ...
Selecting previously deselected package libcupsys2.
Unpacking libcupsys2 (from .../libcupsys2_1.2.7-4etch2_arm.deb) ...
Selecting previously deselected package samba-common.
Unpacking samba-common (from .../samba-common_3.0.24-6etch9_arm.deb) ...
Selecting previously deselected package samba.
Unpacking samba (from .../samba_3.0.24-6etch9_arm.deb) ...
Setting up libkrb53 (1.4.4-7etch4) ...

Setting up libcupsys2 (1.2.7-4etch2) ...

Setting up samba-common (3.0.24-6etch9) ...

Setting up samba (3.0.24-6etch9) ...
Generating /etc/default/samba...
tdbsam_open: Converting version 0 database to version 3.
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 accout for root...ok
Importing accout for daemon...ok
Importing accout for bin...ok
Importing accout for sys...ok
Importing accout for sync...ok
Importing accout for games...ok
Importing accout for man...ok
Importing accout for lp...ok
Importing accout for mail...ok
Importing accout for news...ok
Importing accout for uucp...ok
Importing accout for proxy...ok
Importing accout for www-data...ok
Importing accout for backup...ok
Importing accout for list...ok
Importing accout for irc...ok
Importing accout for gnats...ok
Importing accout for nobody...ok
Importing accout for Debian-exim...ok
Importing accout for telnetd...ok
Importing accout for yasunari...ok
Importing accout for ntp...ok
Starting Samba daemons: nmbd smbd.

gin:~#

smb.conf の修正

/etc/samba/smb.conf を修正して /mnt を共有する
gin:~# cd /etc/samba/
gin:/etc/samba# mv smb.conf smb.conf.orig
gin:/etc/samba# cp smb.conf.orig smb.conf
gin:/etc/samba# ls -l smb.conf*
-rw-r--r-- 1 root root 10577 Feb  3 09:51 smb.conf
-rw-r--r-- 1 root root 10577 Feb  3 09:48 smb.conf.orig
gin:/etc/samba# vi smb.conf
	:
	:
gin:/etc/samba# diff -c smb.conf.orig smb.conf
*** smb.conf.orig       Sun Feb  3 09:48:36 2008
--- smb.conf    Sun Feb  3 09:52:28 2008
***************
*** 303,305 ****
--- 303,309 ----
  ;   preexec = /bin/mount /cdrom
  ;   postexec = /bin/umount /cdrom

+ [gin]
+       comment = HS-DHGL /mnt
+       path = /mnt
+       writable = Yes
gin:/etc/samba#

ユーザの作成

gin:/etc/samba# smbpasswd -a yasunari
New SMB password:
Retype new SMB password:
gin:/etc/samba#

samba の再起動

gin:/etc/samba# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
gin:/etc/samba#

確認

エクスプローラから \\gin\gin が見えることを確認する。


HS-DH320GL
楽天市場
Yahoo!ショッピング
somap.com
TSUKUMO ネットショップ
ValuMore!
ムラウチドットコム
アット・ニフティストア icon
Joshin web icon


Tips 引っ越し
ハックの記録
LinkStation/玄箱 をハックしよう

新型 HS-DHGL にハックキット(8)Windows 向けプリンタサーバ

Copyright (C) 2003-2008 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市