最初の設定~

Debian LS-VL

いつものスクリプトで、 最初の設定以降を実行する。

起動

ログイン


Linux 2.6.31.8 (x60l.yamasita.jp) (pts/3)

vl login: yasunari
Password:
Linux vl 2.6.31.8 #10 Wed Jun 1 14:44:07 JST 2011 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
yasunari@vl:~$

root になる

yasunari@vl:~$ su - root
Password:
root@vl:~#

時計を合わせる

root@vl:~# date
Sat Jan  1 00:15:29 JST 2000
root@vl:~# date 062514102011
Sat Jun 25 14:10:00 JST 2011
root@vl:~# sync
root@vl:~#
ついつい sync を叩いてしまう。

root のパスワード変更 ~ ftp サーバ

「root のパスワード変更」以降 ftp サーバは、スクリプトで
root@vl:~# cat > /tmp/setup.sh
#!/bin/sh

echo passwd root
passwd root
addgroup --gid 1001 yamasita

echo adduser yasunari
adduser --home /home/yamasita/yasunari --ingroup yamasita --uid 1001 --gecos "Yasunari Yamashita" yasunari

deluser guest

apt-get update
apt-get upgrade

apt-get install ntp
mv /etc/ntp.conf /etc/ntp.conf.orig
sed -e 's/^server/# server/' \
-e '/ntp.your-provider.example/aserver ntp3.jst.mfeed.ad.jp\
server ntp2.jst.mfeed.ad.jp\
server ntp1.jst.mfeed.ad.jp' /etc/ntp.conf.orig > /etc/ntp.conf

apt-get install samba
(
echo
echo '[share]'
echo '  comment = hackkit share'
echo '  path = /mnt'
echo '  writable = Yes'
echo '  create mask = 0660'
echo '  directory mask = 0770'
) >> /etc/samba/smb.conf
/etc/init.d/samba reload

echo smbpasswd -a yasunari
smbpasswd -a yasunari
mkdir /mnt/share
chgrp yamasita /mnt/share/
chmod g+w /mnt/share

# ftp server
apt-get install inetutils-ftpd
echo "ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  ftpd" >> /etc/inetd.conf
kill -HUP `cat /var/run/inetd.pid `

apt-get clean
root@vl:~#
root@vl:~# sh !$
sh /tmp/setup.sh
passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Adding group `yamasita' (GID 1001) ...
Done.
adduser yasunari
Adding user `yasunari' ...
Adding new user `yasunari' (1001) with group `yamasita' ...
Creating home directory `/home/yamasita/yasunari' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Removing user `guest' ...
Warning: group `guest' has no more members.
userdel: user guest is currently logged in
/usr/sbin/deluser: `/usr/sbin/userdel guest' returned error code 8. Exiting.
Get:1 http://ftp.jp.debian.org squeeze Release.gpg [1671 B]
Ign http://ftp.jp.debian.org/debian/ squeeze/main Translation-en
Get:2 http://ftp.jp.debian.org squeeze Release [79.8 kB]
Get:3 http://ftp.jp.debian.org squeeze/main Sources [4823 kB]
Get:4 http://security.debian.org squeeze/updates Release.gpg [836 B]
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Get:5 http://security.debian.org squeeze/updates Release [38.4 kB]
Get:6 http://ftp.jp.debian.org squeeze/main armel Packages [8439 kB]
Get:7 http://security.debian.org squeeze/updates/main Sources [42.4 kB]
Get:8 http://security.debian.org squeeze/updates/main armel Packages [127 kB]
Fetched 13.6 MB in 7s (1882 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  apt apt-utils base-files bsdutils debconf debconf-i18n dpkg inetutils-inetd
  inetutils-telnetd initscripts isc-dhcp-client isc-dhcp-common libblkid1
  libc-bin libc6 libncurses5 libncursesw5 libssl0.9.8 libuuid1 locales login
  lsb-base man-db mount ncurses-base ncurses-bin netbase passwd perl perl-base
  perl-modules smartmontools sysv-rc sysvinit sysvinit-utils tzdata
  update-inetd util-linux
38 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.8 MB of archives.
After this operation, 504 kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main base-files armel 6.0squeeze1 [69.8 kB]
Get:2 http://ftp.jp.debian.org/debian/ squeeze/main dpkg armel 1.15.8.10 [2336 kB]
Get:3 http://security.debian.org/ squeeze/updates/main perl-modules all 5.10.1-17squeeze1 [3483 kB]
Get:4 http://ftp.jp.debian.org/debian/ squeeze/main login armel 1:4.1.4.2+svn3283-2+squeeze1 [776 kB]
Get:5 http://ftp.jp.debian.org/debian/ squeeze/main mount armel 2.17.2-9 [170 kB]
Get:6 http://ftp.jp.debian.org/debian/ squeeze/main ncurses-bin armel 5.7+20100313-5 [317 kB]
Get:7 http://ftp.jp.debian.org/debian/ squeeze/main libc-bin armel 2.11.2-10 [701 kB]
Get:8 http://ftp.jp.debian.org/debian/ squeeze/main libc6 armel 2.11.2-10 [4174 kB]
Get:9 http://ftp.jp.debian.org/debian/ squeeze/main sysvinit armel 2.88dsf-13.1 [116 kB]
Get:10 http://ftp.jp.debian.org/debian/ squeeze/main lsb-base all 3.2-23.2squeeze1 [20.5 kB]
Get:11 http://ftp.jp.debian.org/debian/ squeeze/main debconf-i18n all 1.5.36.1 [210 kB]
Get:12 http://ftp.jp.debian.org/debian/ squeeze/main debconf all 1.5.36.1 [162 kB]
Get:13 http://ftp.jp.debian.org/debian/ squeeze/main tzdata all 2011c-0squeeze1 [770 kB]
Get:14 http://ftp.jp.debian.org/debian/ squeeze/main sysvinit-utils armel 2.88dsf-13.1 [119 kB]
Get:15 http://ftp.jp.debian.org/debian/ squeeze/main sysv-rc all 2.88dsf-13.1 [73.1 kB]
Get:16 http://ftp.jp.debian.org/debian/ squeeze/main initscripts armel 2.88dsf-13.1 [69.1 kB]
Get:17 http://ftp.jp.debian.org/debian/ squeeze/main util-linux armel 2.17.2-9 [737 kB]
Get:18 http://ftp.jp.debian.org/debian/ squeeze/main bsdutils armel 1:2.17.2-9 [80.5 kB]
Get:19 http://ftp.jp.debian.org/debian/ squeeze/main ncurses-base all 5.7+20100313-5 [188 kB]
Get:20 http://ftp.jp.debian.org/debian/ squeeze/main apt armel 0.8.10.3 [2126 kB]
Get:21 http://ftp.jp.debian.org/debian/ squeeze/main passwd armel 1:4.1.4.2+svn3283-2+squeeze1 [1032 kB]
Get:22 http://ftp.jp.debian.org/debian/ squeeze/main libuuid1 armel 2.17.2-9 [59.6 kB]
Get:23 http://ftp.jp.debian.org/debian/ squeeze/main libblkid1 armel 2.17.2-9 [107 kB]
Get:24 http://ftp.jp.debian.org/debian/ squeeze/main libncurses5 armel 5.7+20100313-5 [344 kB]
Get:25 http://security.debian.org/ squeeze/updates/main perl armel 5.10.1-17squeeze1 [3751 kB]
Get:26 http://ftp.jp.debian.org/debian/ squeeze/main apt-utils armel 0.8.10.3 [266 kB]
Get:27 http://ftp.jp.debian.org/debian/ squeeze/main libncursesw5 armel 5.7+20100313-5 [368 kB]
Get:28 http://ftp.jp.debian.org/debian/ squeeze/main libssl0.9.8 armel 0.9.8o-4squeeze1 [881 kB]
Get:29 http://ftp.jp.debian.org/debian/ squeeze/main man-db armel 2.5.7-8 [1226 kB]
Get:30 http://ftp.jp.debian.org/debian/ squeeze/main netbase all 4.45 [20.7 kB]
Get:31 http://ftp.jp.debian.org/debian/ squeeze/main locales all 2.11.2-10 [4757 kB]
Get:32 http://ftp.jp.debian.org/debian/ squeeze/main smartmontools armel 5.39.1+svn3124-2 [428 kB]
Get:33 http://ftp.jp.debian.org/debian/ squeeze/main update-inetd all 4.38+nmu1 [20.6 kB]
Get:34 http://ftp.jp.debian.org/debian/ squeeze/main inetutils-inetd armel 2:1.6-3.1 [109 kB]
Get:35 http://security.debian.org/ squeeze/updates/main perl-base armel 5.10.1-17squeeze1 [998 kB]
Get:36 http://ftp.jp.debian.org/debian/ squeeze/main inetutils-telnetd armel 2:1.6-3.1 [117 kB]
Get:37 http://security.debian.org/ squeeze/updates/main isc-dhcp-client armel 4.1.1-P1-15+squeeze2 [261 kB]
Get:38 http://security.debian.org/ squeeze/updates/main isc-dhcp-common armel 4.1.1-P1-15+squeeze2 [320 kB]
Fetched 31.8 MB in 7s (4354 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 10758 files and directories currently installed.)
Preparing to replace base-files 5.10 (using .../base-files_6.0squeeze1_armel.deb) ...
Unpacking replacement base-files ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up base-files (6.0squeeze1) ...
Installing new version of config file /etc/debian_version ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
(Reading database ... 10758 files and directories currently installed.)
Preparing to replace dpkg 1.15.8.5 (using .../dpkg_1.15.8.10_armel.deb) ...
Unpacking replacement dpkg ...
Processing triggers for man-db ...
Setting up dpkg (1.15.8.10) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace login 1:4.1.4.2+svn3283-2 (using .../login_1%3a4.1.4.2+svn3283-2+squeeze1_armel.deb) ...
Unpacking replacement login ...
Processing triggers for man-db ...
Setting up login (1:4.1.4.2+svn3283-2+squeeze1) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace mount 2.17.2-5 (using .../mount_2.17.2-9_armel.deb) ...
Unpacking replacement mount ...
Processing triggers for man-db ...
Setting up mount (2.17.2-9) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace ncurses-bin 5.7+20100313-4 (using .../ncurses-bin_5.7+20100313-5_armel.deb) ...
Unpacking replacement ncurses-bin ...
Processing triggers for man-db ...
Setting up ncurses-bin (5.7+20100313-5) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace perl-modules 5.10.1-16 (using .../perl-modules_5.10.1-17squeeze1_all.deb) ...
Unpacking replacement perl-modules ...
Preparing to replace libc-bin 2.11.2-7 (using .../libc-bin_2.11.2-10_armel.deb) ...
Unpacking replacement libc-bin ...
Processing triggers for man-db ...
Setting up libc-bin (2.11.2-10) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace libc6 2.11.2-7 (using .../libc6_2.11.2-10_armel.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.11.2-10) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace perl 5.10.1-16 (using .../perl_5.10.1-17squeeze1_armel.deb) ...
Unpacking replacement perl ...
Preparing to replace perl-base 5.10.1-16 (using .../perl-base_5.10.1-17squeeze1_armel.deb) ...
Unpacking replacement perl-base ...
Processing triggers for man-db ...
Setting up perl-base (5.10.1-17squeeze1) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace sysvinit 2.88dsf-13 (using .../sysvinit_2.88dsf-13.1_armel.deb) ...
Unpacking replacement sysvinit ...
Processing triggers for man-db ...
Setting up sysvinit (2.88dsf-13.1) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace lsb-base 3.2-23.1 (using .../lsb-base_3.2-23.2squeeze1_all.deb) ...
Unpacking replacement lsb-base ...
Setting up lsb-base (3.2-23.2squeeze1) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace debconf-i18n 1.5.36 (using .../debconf-i18n_1.5.36.1_all.deb) ...
Unpacking replacement debconf-i18n ...
Processing triggers for man-db ...
Setting up debconf-i18n (1.5.36.1) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace debconf 1.5.36 (using .../debconf_1.5.36.1_all.deb) ...
Unpacking replacement debconf ...
Processing triggers for man-db ...
Setting up debconf (1.5.36.1) ...
(Reading database ... 10759 files and directories currently installed.)
Preparing to replace tzdata 2010o-1 (using .../tzdata_2011c-0squeeze1_all.deb) ...
Unpacking replacement tzdata ...
Setting up tzdata (2011c-0squeeze1) ...

Current default time zone: 'Asia/Tokyo'
Local time is now:      Sat Jun 25 14:12:17 JST 2011.
Universal Time is now:  Sat Jun 25 05:12:17 UTC 2011.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

(Reading database ... 10768 files and directories currently installed.)
Preparing to replace sysvinit-utils 2.88dsf-13 (using .../sysvinit-utils_2.88dsf-13.1_armel.deb) ...
Unpacking replacement sysvinit-utils ...
Processing triggers for man-db ...
Setting up sysvinit-utils (2.88dsf-13.1) ...
(Reading database ... 10768 files and directories currently installed.)
Preparing to replace sysv-rc 2.88dsf-13 (using .../sysv-rc_2.88dsf-13.1_all.deb) ...
Unpacking replacement sysv-rc ...
Processing triggers for man-db ...
Setting up sysv-rc (2.88dsf-13.1) ...
(Reading database ... 10768 files and directories currently installed.)
Preparing to replace initscripts 2.88dsf-13 (using .../initscripts_2.88dsf-13.1_armel.deb) ...
Unpacking replacement initscripts ...
Processing triggers for man-db ...
Setting up initscripts (2.88dsf-13.1) ...
(Reading database ... 10768 files and directories currently installed.)
Preparing to replace util-linux 2.17.2-5 (using .../util-linux_2.17.2-9_armel.deb) ...
Unpacking replacement util-linux ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up util-linux (2.17.2-9) ...
(Reading database ... 10768 files and directories currently installed.)
Preparing to replace bsdutils 1:2.17.2-5 (using .../bsdutils_1%3a2.17.2-9_armel.deb) ...
Unpacking replacement bsdutils ...
Processing triggers for man-db ...
Setting up bsdutils (1:2.17.2-9) ...
(Reading database ... 10768 files and directories currently installed.)
Preparing to replace ncurses-base 5.7+20100313-4 (using .../ncurses-base_5.7+20100313-5_all.deb) ...
Unpacking replacement ncurses-base ...
Setting up ncurses-base (5.7+20100313-5) ...
(Reading database ... 10769 files and directories currently installed.)
Preparing to replace apt 0.8.10 (using .../apt_0.8.10.3_armel.deb) ...
Unpacking replacement apt ...
Processing triggers for man-db ...
Setting up apt (0.8.10.3) ...
gpg: key F42584E6: "Lenny Stable Release Key " not changed
gpg: key 55BE302B: "Debian Archive Automatic Signing Key (5.0/lenny) " not changed
gpg: key 6D849617: "Debian-Volatile Archive Automatic Signing Key (5.0/lenny)" not changed
gpg: key B98321F9: "Squeeze Stable Release Key " not changed
gpg: key 473041FA: "Debian Archive Automatic Signing Key (6.0/squeeze) " not changed
gpg: Total number processed: 5
gpg:              unchanged: 5
(Reading database ... 10769 files and directories currently installed.)
Preparing to replace passwd 1:4.1.4.2+svn3283-2 (using .../passwd_1%3a4.1.4.2+svn3283-2+squeeze1_armel.deb) ...
Unpacking replacement passwd ...
Processing triggers for man-db ...
Setting up passwd (1:4.1.4.2+svn3283-2+squeeze1) ...
(Reading database ... 10769 files and directories currently installed.)
Preparing to replace libuuid1 2.17.2-5 (using .../libuuid1_2.17.2-9_armel.deb) ...
Unpacking replacement libuuid1 ...
Setting up libuuid1 (2.17.2-9) ...
(Reading database ... 10769 files and directories currently installed.)
Preparing to replace libblkid1 2.17.2-5 (using .../libblkid1_2.17.2-9_armel.deb) ...
Unpacking replacement libblkid1 ...
Setting up libblkid1 (2.17.2-9) ...
(Reading database ... 10769 files and directories currently installed.)
Preparing to replace libncurses5 5.7+20100313-4 (using .../libncurses5_5.7+20100313-5_armel.deb) ...
Unpacking replacement libncurses5 ...
Setting up libncurses5 (5.7+20100313-5) ...
(Reading database ... 10769 files and directories currently installed.)
Preparing to replace apt-utils 0.8.10 (using .../apt-utils_0.8.10.3_armel.deb) ...
Unpacking replacement apt-utils ...
Preparing to replace isc-dhcp-client 4.1.1-P1-15 (using .../isc-dhcp-client_4.1.1-P1-15+squeeze2_armel.deb) ...
Unpacking replacement isc-dhcp-client ...
Preparing to replace isc-dhcp-common 4.1.1-P1-15 (using .../isc-dhcp-common_4.1.1-P1-15+squeeze2_armel.deb) ...
Unpacking replacement isc-dhcp-common ...
Preparing to replace libncursesw5 5.7+20100313-4 (using .../libncursesw5_5.7+20100313-5_armel.deb) ...
Unpacking replacement libncursesw5 ...
Preparing to replace libssl0.9.8 0.9.8o-4 (using .../libssl0.9.8_0.9.8o-4squeeze1_armel.deb) ...
Unpacking replacement libssl0.9.8 ...
Preparing to replace man-db 2.5.7-7 (using .../man-db_2.5.7-8_armel.deb) ...
Unpacking replacement man-db ...
Preparing to replace netbase 4.44 (using .../archives/netbase_4.45_all.deb) ...
Unpacking replacement netbase ...
Preparing to replace locales 2.11.2-7 (using .../locales_2.11.2-10_all.deb) ...
Unpacking replacement locales ...
Preparing to replace smartmontools 5.39.1+svn3124-1 (using .../smartmontools_5.39.1+svn3124-2_armel.deb) ...
Stopping S.M.A.R.T. daemon: smartd.
Unpacking replacement smartmontools ...
Preparing to replace update-inetd 4.38 (using .../update-inetd_4.38+nmu1_all.deb) ...
Unpacking replacement update-inetd ...
Preparing to replace inetutils-inetd 2:1.6-3 (using .../inetutils-inetd_2%3a1.6-3.1_armel.deb) ...
Stopping internet superserver: inetd.
Unpacking replacement inetutils-inetd ...
Preparing to replace inetutils-telnetd 2:1.6-3 (using .../inetutils-telnetd_2%3a1.6-3.1_armel.deb) ...
Unpacking replacement inetutils-telnetd ...
Setting up apt-utils (0.8.10.3) ...
Setting up isc-dhcp-common (4.1.1-P1-15+squeeze2) ...
Setting up isc-dhcp-client (4.1.1-P1-15+squeeze2) ...
Setting up libncursesw5 (5.7+20100313-5) ...
Setting up libssl0.9.8 (0.9.8o-4squeeze1) ...
Setting up man-db (2.5.7-8) ...
Updating database of manual pages ...
Setting up netbase (4.45) ...
Installing new version of config file /etc/services ...
Installing new version of config file /etc/protocols ...
Setting up locales (2.11.2-10) ...
Generating locales (this might take a while)...
  ja_JP.EUC-JP... done
  ja_JP.UTF-8... done
Generation complete.
Setting up smartmontools (5.39.1+svn3124-2) ...
Installing new version of config file /etc/smartd.conf ...
Setting up perl-modules (5.10.1-17squeeze1) ...
Setting up update-inetd (4.38+nmu1) ...
Setting up inetutils-inetd (2:1.6-3.1) ...
Starting internet superserver: inetd.
Setting up inetutils-telnetd (2:1.6-3.1) ...
/var/run/inetd.pid does not have a valid pid!Please investigate and restart inetd manually.Setting up perl (5.10.1-17squeeze1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libbsd0 libcap2 libedit2 libopts25
Suggested packages:
  ntp-doc
The following NEW packages will be installed:
  libbsd0 libcap2 libedit2 libopts25 ntp
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 661 kB of archives.
After this operation, 1675 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main libcap2 armel 1:2.19-3 [11.8 kB]
Get:2 http://ftp.jp.debian.org/debian/ squeeze/main libbsd0 armel 0.2.0-1 [41.4 kB]
Get:3 http://ftp.jp.debian.org/debian/ squeeze/main libedit2 armel 2.11-20080614-2 [60.2 kB]
Get:4 http://ftp.jp.debian.org/debian/ squeeze/main libopts25 armel 1:5.10-1.1 [62.8 kB]
Get:5 http://ftp.jp.debian.org/debian/ squeeze/main ntp armel 1:4.2.6.p2+dfsg-1+b1 [484 kB]
Fetched 661 kB in 0s (1339 kB/s)
Selecting previously deselected package libcap2.
(Reading database ... 10769 files and directories currently installed.)
Unpacking libcap2 (from .../libcap2_1%3a2.19-3_armel.deb) ...
Selecting previously deselected package libbsd0.
Unpacking libbsd0 (from .../libbsd0_0.2.0-1_armel.deb) ...
Selecting previously deselected package libedit2.
Unpacking libedit2 (from .../libedit2_2.11-20080614-2_armel.deb) ...
Selecting previously deselected package libopts25.
Unpacking libopts25 (from .../libopts25_1%3a5.10-1.1_armel.deb) ...
Selecting previously deselected package ntp.
Unpacking ntp (from .../ntp_1%3a4.2.6.p2+dfsg-1+b1_armel.deb) ...
Processing triggers for man-db ...
Setting up libcap2 (1:2.19-3) ...
Setting up libbsd0 (0.2.0-1) ...
Setting up libedit2 (2.11-20080614-2) ...
Setting up libopts25 (1:5.10-1.1) ...
Setting up ntp (1:4.2.6.p2+dfsg-1+b1) ...
Starting NTP server: ntpd.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  dbus libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdbus-1-3 libexpat1 libldap-2.4-2 libsasl2-2
  libsasl2-modules libtalloc2 libwbclient0 samba-common samba-common-bin ucf
Suggested packages:
  dbus-x11 cups-common libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit
  libsasl2-modules-gssapi-heimdal smbldap-tools ldb-tools ctdb
The following NEW packages will be installed:
  dbus libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdbus-1-3 libexpat1 libldap-2.4-2 libsasl2-2
  libsasl2-modules libtalloc2 libwbclient0 samba samba-common samba-common-bin ucf
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.2 MB of archives.
After this operation, 42.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main libsasl2-2 armel 2.1.23.dfsg1-7 [106 kB]
Get:2 http://ftp.jp.debian.org/debian/ squeeze/main libldap-2.4-2 armel 2.4.23-7 [189 kB]
Get:3 http://ftp.jp.debian.org/debian/ squeeze/main ucf all 3.0025+nmu1 [69.6 kB]
Get:4 http://ftp.jp.debian.org/debian/ squeeze/main libdbus-1-3 armel 1.2.24-4 [129 kB]
Get:5 http://ftp.jp.debian.org/debian/ squeeze/main libexpat1 armel 2.0.1-7 [118 kB]
Get:6 http://ftp.jp.debian.org/debian/ squeeze/main dbus armel 1.2.24-4 [213 kB]
Get:7 http://ftp.jp.debian.org/debian/ squeeze/main libavahi-common-data armel 0.6.27-2+squeeze1 [111 kB]
Get:8 http://ftp.jp.debian.org/debian/ squeeze/main libavahi-common3 armel 0.6.27-2+squeeze1 [52.0 kB]
Get:9 http://ftp.jp.debian.org/debian/ squeeze/main libavahi-client3 armel 0.6.27-2+squeeze1 [52.9 kB]
Get:10 http://ftp.jp.debian.org/debian/ squeeze/main libcups2 armel 1.4.4-7 [225 kB]
Get:11 http://ftp.jp.debian.org/debian/ squeeze/main libsasl2-modules armel 2.1.23.dfsg1-7 [145 kB]
Get:12 http://ftp.jp.debian.org/debian/ squeeze/main libtalloc2 armel 2.0.1-1 [18.0 kB]
Get:13 http://ftp.jp.debian.org/debian/ squeeze/main libwbclient0 armel 2:3.5.6~dfsg-3squeeze2 [111 kB]
Get:14 http://ftp.jp.debian.org/debian/ squeeze/main samba-common all 2:3.5.6~dfsg-3squeeze2 [387 kB]
Get:15 http://ftp.jp.debian.org/debian/ squeeze/main samba armel 2:3.5.6~dfsg-3squeeze2 [7554 kB]
Get:16 http://ftp.jp.debian.org/debian/ squeeze/main samba-common-bin armel 2:3.5.6~dfsg-3squeeze2 [5735 kB]
Fetched 15.2 MB in 3min 3s (82.8 kB/s)
Preconfiguring packages ...



















































Package configuration


















 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
 x Please specify the workgroup for this system.  This setting controls which workgroup the system will appear in   x
 x when used as a server, the default workgroup to be used when browsing with various frontends, and the domain     x
 x name used with the "security=domain" setting.                                                                    x
 x                                                                                                                  x
 x Workgroup/Domain Name:                                                                                           x
 x                                                                                                                  x
 x YAMASITA________________________________________________________________________________________________________ x
 x                                                                                                                  x
 x                                                                                                              x
 x                                                                                                                  x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj



















Selecting previously deselected package libbsd0.
Unpacking libbsd0 (from .../libbsd0_0.2.0-1_armel.deb) ...
Selecting previously deselected package libedit2.
Unpacking libedit2 (from .../libedit2_2.11-20080614-2_armel.deb) ...
Selecting previously deselected package libopts25.
Unpacking libopts25 (from .../libopts25_1%3a5.10-1.1_armel.deb) ...
Selecting previously deselected package ntp.
Unpacking ntp (from .../ntp_1%3a4.2.6.p2+dfsg-1+b1_armel.deb) ...
Processing triggers for man-db ...
Setting up libcap2 (1:2.19-3) ...
Setting up libbsd0 (0.2.0-1) ...
Setting up libedit2 (2.11-20080614-2) ...
Setting up libopts25 (1:5.10-1.1) ...
Setting up ntp (1:4.2.6.p2+dfsg-1+b1) ...
Starting NTP server: ntpd.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  dbus libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdbus-1-3 libexpat1 libldap-2.4-2 libsasl2-2
  libsasl2-modules libtalloc2 libwbclient0 samba-common samba-common-bin ucf
Suggested packages:
  dbus-x11 cups-common libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit
  libsasl2-modules-gssapi-heimdal smbldap-tools ldb-tools ctdb
The following NEW packages will be installed:
  dbus libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdbus-1-3 libexpat1 libldap-2.4-2 libsasl2-2
  libsasl2-modules libtalloc2 libwbclient0 samba samba-common samba-common-bin ucf
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.2 MB of archives.
After this operation, 42.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main libsasl2-2 armel 2.1.23.dfsg1-7 [106 kB]
Get:2 http://ftp.jp.debian.org/debian/ squeeze/main libldap-2.4-2 armel 2.4.23-7 [189 kB]
Get:3 http://ftp.jp.debian.org/debian/ squeeze/main ucf all 3.0025+nmu1 [69.6 kB]
Get:4 http://ftp.jp.debian.org/debian/ squeeze/main libdbus-1-3 armel 1.2.24-4 [129 kB]
Get:5 http://ftp.jp.debian.org/debian/ squeeze/main libexpat1 armel 2.0.1-7 [118 kB]
Get:6 http://ftp.jp.debian.org/debian/ squeeze/main dbus armel 1.2.24-4 [213 kB]
Get:7 http://ftp.jp.debian.org/debian/ squeeze/main libavahi-common-data armel 0.6.27-2+squeeze1 [111 kB]
Get:8 http://ftp.jp.debian.org/debian/ squeeze/main libavahi-common3 armel 0.6.27-2+squeeze1 [52.0 kB]
Get:9 http://ftp.jp.debian.org/debian/ squeeze/main libavahi-client3 armel 0.6.27-2+squeeze1 [52.9 kB]
Get:10 http://ftp.jp.debian.org/debian/ squeeze/main libcups2 armel 1.4.4-7 [225 kB]
Get:11 http://ftp.jp.debian.org/debian/ squeeze/main libsasl2-modules armel 2.1.23.dfsg1-7 [145 kB]
Get:12 http://ftp.jp.debian.org/debian/ squeeze/main libtalloc2 armel 2.0.1-1 [18.0 kB]
Get:13 http://ftp.jp.debian.org/debian/ squeeze/main libwbclient0 armel 2:3.5.6~dfsg-3squeeze2 [111 kB]
Get:14 http://ftp.jp.debian.org/debian/ squeeze/main samba-common all 2:3.5.6~dfsg-3squeeze2 [387 kB]
Get:15 http://ftp.jp.debian.org/debian/ squeeze/main samba armel 2:3.5.6~dfsg-3squeeze2 [7554 kB]
Get:16 http://ftp.jp.debian.org/debian/ squeeze/main samba-common-bin armel 2:3.5.6~dfsg-3squeeze2 [5735 kB]
Fetched 15.2 MB in 3min 3s (82.8 kB/s)
Preconfiguring packages ...
Selecting previously deselected package libsasl2-2.
(Reading database ... 10828 files and directories currently installed.)
Unpacking libsasl2-2 (from .../libsasl2-2_2.1.23.dfsg1-7_armel.deb) ...
Selecting previously deselected package libldap-2.4-2.
Unpacking libldap-2.4-2 (from .../libldap-2.4-2_2.4.23-7_armel.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../ucf_3.0025+nmu1_all.deb) ...
Moving old data out of the way
Selecting previously deselected package libdbus-1-3.
Unpacking libdbus-1-3 (from .../libdbus-1-3_1.2.24-4_armel.deb) ...
Selecting previously deselected package libexpat1.
Unpacking libexpat1 (from .../libexpat1_2.0.1-7_armel.deb) ...
Selecting previously deselected package dbus.
Unpacking dbus (from .../dbus_1.2.24-4_armel.deb) ...
Selecting previously deselected package libavahi-common-data.
Unpacking libavahi-common-data (from .../libavahi-common-data_0.6.27-2+squeeze1_armel.deb) ...
Selecting previously deselected package libavahi-common3.
Unpacking libavahi-common3 (from .../libavahi-common3_0.6.27-2+squeeze1_armel.deb) ...
Selecting previously deselected package libavahi-client3.
Unpacking libavahi-client3 (from .../libavahi-client3_0.6.27-2+squeeze1_armel.deb) ...
Selecting previously deselected package libcups2.
Unpacking libcups2 (from .../libcups2_1.4.4-7_armel.deb) ...
Selecting previously deselected package libsasl2-modules.
Unpacking libsasl2-modules (from .../libsasl2-modules_2.1.23.dfsg1-7_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.5.6~dfsg-3squeeze2_armel.deb) ...
Selecting previously deselected package samba-common.
Unpacking samba-common (from .../samba-common_2%3a3.5.6~dfsg-3squeeze2_all.deb) ...
Selecting previously deselected package samba.
Unpacking samba (from .../samba_2%3a3.5.6~dfsg-3squeeze2_armel.deb) ...
Selecting previously deselected package samba-common-bin.
Unpacking samba-common-bin (from .../samba-common-bin_2%3a3.5.6~dfsg-3squeeze2_armel.deb) ...
Processing triggers for man-db ...
Setting up libsasl2-2 (2.1.23.dfsg1-7) ...
Setting up libldap-2.4-2 (2.4.23-7) ...
Setting up ucf (3.0025+nmu1) ...
Setting up libdbus-1-3 (1.2.24-4) ...
Setting up libexpat1 (2.0.1-7) ...
Setting up dbus (1.2.24-4) ...
Starting system message bus: dbus.
Setting up libavahi-common-data (0.6.27-2+squeeze1) ...
Setting up libavahi-common3 (0.6.27-2+squeeze1) ...
Setting up libavahi-client3 (0.6.27-2+squeeze1) ...
Setting up libcups2 (1.4.4-7) ...
Setting up libsasl2-modules (2.1.23.dfsg1-7) ...
Setting up libtalloc2 (2.0.1-1) ...
Setting up libwbclient0 (2:3.5.6~dfsg-3squeeze2) ...
Setting up samba-common (2:3.5.6~dfsg-3squeeze2) ...

Creating config file /etc/samba/smb.conf with new version
Setting up samba (2:3.5.6~dfsg-3squeeze2) ...
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 type 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 10 (refuse machine password change), returning 0
Importing account for nobody...ok
Importing account for guest...ok
Importing account for yasunari...ok
/var/run/inetd.pid does not have a valid pid!Please investigate and restart inetd manually.Adding group `sambashare' (GID 105) ...
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.5.6~dfsg-3squeeze2) ...
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.
!Reloading /etc/samba/smb.conf: smbd only.
smbpasswd -a yasunari
New SMB password:
Retype new SMB password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  inetutils-ftpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 120 kB of archives.
After this operation, 238 kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main inetutils-ftpd armel 2:1.6-3.1 [120 kB]
Fetched 120 kB in 0s (620 kB/s)
Selecting previously deselected package inetutils-ftpd.
(Reading database ... 11142 files and directories currently installed.)
Unpacking inetutils-ftpd (from .../inetutils-ftpd_2%3a1.6-3.1_armel.deb) ...
Processing triggers for man-db ...
Setting up inetutils-ftpd (2:1.6-3.1) ...
!root@vl:~#
念のため、ftp サーバのテスト
root@vl:~# ftp vl
Connected to vl.
220 vl FTP server (GNU inetutils 1.6) ready.
Name (vl:yasunari):
331 Password required for yasunari.
Password:
230- Linux vl 2.6.31.8 #10 Wed Jun 1 14:44:07 JST 2011 armv5tel
230-
230- The programs included with the Debian GNU/Linux system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
230- permitted by applicable law.
230 User yasunari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command sucessful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 12
-rw-r--r--  1 yasunari  yamasita   220 Jan  1  2000 .bash_logout
-rw-r--r--  1 yasunari  yamasita  3184 Jan  1  2000 .bashrc
-rw-r--r--  1 yasunari  yamasita   675 Jan  1  2000 .profile
226 Transfer complete.
ftp> bye
221 Goodbye.
root@vl:~#
OK

LS-VL

楽天市場
Amazon


ファームウェア Ver.1.42 でハックキット
ハックの記録
LinkStation/玄箱 をハックしよう

LS-XL シリーズ発売

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