玄箱HGメモ / Debian / FTP導入


Last update: 2009-05-19 (火) 17:05:26
実施: 2008/12/13

玄箱HGメモ/Debian/FTP導入

緑文字が入力コマンド。


Debian FTP導入

必須のFTPサーバーを導入します。


2009/02/19追記

SSH導入をしたことにより、SCPが使えるのでFTPサーバーは導入しません。


ProFtpd?導入

管理者権限(管理者アカウント参照)で作業する必要があります。

KAGUYA:~# aptitude install proftpd[ENTER]

ProFtpd?導入画面(例)

Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be automatically installed:
  debconf-utils libmysqlclient15off libpq4 mysql-common ucf
The following packages have been kept back:
  adduser apt apt-utils aptitude base-files base-passwd bash bsdmainutils
  bsdutils console-common console-data console-tools cpio cron debconf
  debconf-i18n debianutils dhcp-client dpkg dselect e2fslibs e2fsprogs
  fileutils findutils ftp gcc-3.3-base gettext-base grep groff-base gzip
  hostname ifupdown info initscripts iptables klogd libacl1 libattr1
  libblkid1 libcomerr2 libconsole libdb1-compat libdb3 libdb4.2 libgcc1
  libgdbm3 libldap2 liblocale-gettext-perl liblockfile1 liblzo1
  libpam-modules libpam-runtime libpam0g libpcre3 libpopt0 libsasl2 libss2
  libstdc++2.10-glibc2.2 libstdc++5 libtext-charwidth-perl
  libtext-iconv-perl libtext-wrapi18n-perl libuuid1 libwrap0 login
  logrotate make makedev man-db manpages modconf module-init-tools modutils
  mount nano ncurses-base ncurses-bin net-tools netbase netkit-ping nvi
  passwd pciutils perl perl-base perl-modules powerpc-utils procps psmisc
  sed shellutils sysklogd sysv-rc sysvinit tar tasksel tcpd telnet telnetd
  textutils util-linux whiptail yaboot zlib1g
The following NEW packages will be installed:
  debconf-utils libmysqlclient15off libpq4 mysql-common proftpd ucf
The following packages will be upgraded:
  coreutils
1 packages upgraded, 6 newly installed, 0 to remove and 104 not upgraded.
Need to get 6476kB of archives. After unpacking 9990kB will be used.
Do you want to continue? [Y/n/?] 

Y[ENTER]

Writing extended state information... Done
Get:1 ftp://ftp.dti.ad.jp stable/main coreutils 5.97-5.3 [3320kB]
Get:2 http://security.debian.org stable/updates/main mysql-common 5.0.32-7etch8 [54.5kB]
Get:3 http://security.debian.org stable/updates/main libmysqlclient15off 5.0.32-7etch8 [1833kB]
Get:4 ftp://ftp.dti.ad.jp stable/main debconf-utils 1.5.11etch2 [40.0kB]
Get:5 ftp://ftp.dti.ad.jp stable/main libpq4 8.1.13-0etch1 [285kB]
Get:6 ftp://ftp.dti.ad.jp stable/main ucf 2.0020 [57.7kB]
Get:7 ftp://ftp.dti.ad.jp stable/main proftpd 1.3.0-19etch1 [886kB]
Fetched 6476kB in 20s (314kB/s)
Preconfiguring packages ...
Debian Configuration

 +------------------------------| ProFTPd configuration |------------------------------+
 | ProFTPd can be run either as a service from inetd, or as a standalone server. Each  |
 | choice has its own benefits. If you have only a few ftp connections per day, it is  |
 | probably better to run proftp from inetd in order to save resources.                |
 |                                                                                     |
 | On the other hand, if your ftp site is visited frequently, you should rather run    |
 | proftp as a standalone server (because with inetd, each time a connection is        |
 | opened, a new process is spawned).                                                  |
 |                                                                                     |
 | Run proftpd from inetd or standalone?                                               |
 |                                                                                     |
 |                                     inetd                                           |
 |                                     standalone                                      |
 |                                                                                     |
 |                                       <Ok>                                          |
 |                                                                                     |
 +-------------------------------------------------------------------------------------+

上下キーで選択してエンターキーで決定です。

どちらでも好きなほうでいいです。
inetdはアクセスがあった時に起動するので常駐しません。
standaloneは常駐するので起動が速いです。

玄箱はメモリも少ないので常駐を避けたほうがいいかも、ってことでinetdを選択しました。

(Reading database ... 9042 files and directories currently installed.)
Preparing to replace coreutils 5.2.1-2 (using .../coreutils_5.97-5.3_powerpc.deb) ...
No diversion `any diversion of /usr/share/man/man1/md5sum.textutils.1.gz', none removed
No diversion `any diversion of /usr/bin/md5sum.textutils', none removed
Unpacking replacement coreutils ...
Replacing files in old package dpkg ...
Setting up coreutils (5.97-5.3) ...

Selecting previously deselected package debconf-utils.
(Reading database ... 9073 files and directories currently installed.)
Unpacking debconf-utils (from .../debconf-utils_1.5.11etch2_all.deb) ...
Selecting previously deselected package mysql-common.
Unpacking mysql-common (from .../mysql-common_5.0.32-7etch8_all.deb) ...
Selecting previously deselected package libmysqlclient15off.
Unpacking libmysqlclient15off (from .../libmysqlclient15off_5.0.32-7etch8_powerpc.deb) ...
Selecting previously deselected package libpq4.
Unpacking libpq4 (from .../libpq4_8.1.13-0etch1_powerpc.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../archives/ucf_2.0020_all.deb) ...
Moving old data out of the way
Selecting previously deselected package proftpd.
Unpacking proftpd (from .../proftpd_1.3.0-19etch1_powerpc.deb) ...
Setting up debconf-utils (1.5.11etch2) ...

Setting up mysql-common (5.0.32-7etch8) ...
Setting up libmysqlclient15off (5.0.32-7etch8) ...

Setting up libpq4 (8.1.13-0etch1) ...

Setting up ucf (2.0020) ...

Setting up proftpd (1.3.0-19etch1) ...
Adding system user `proftpd'...
Adding new user `proftpd' (102) with group `nogroup'.
Not creating home directory.
Adding system user `ftp'...
Adding new user `ftp' (104) with group `nogroup'.
Creating home directory `/home/ftp'.
`/usr/share/proftpd/templates/welcome.msg' -> `/home/ftp/welcome.msg.proftpd-new'
ProFTPd is started from inetd/xinetd.

Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
KAGUYA:~#

確認

FTPで接続して確認してください。
アカウント(例): kanae
パスワード(例): -tanimoto-

FTPソフト云々については玄箱を買うような人には今更なので省略します。

作業終了です。
以降の作業を行わない場合は管理者アカウント終了してtelnet切断します。


コメント

コメントはありません。 コメント/玄箱HGメモ/Debian/FTP導入?

Online: 1


FrontPage

Soft

Tips


最新の20件

2021-12-21 2020-04-06 2020-03-10 2013-06-28 2013-11-13 2014-06-24

今日の14件

  • counter: 1148
  • today: 1
  • yesterday: 0
  • online: 1

edit