- 1. 概要				
 
- 2. 準備				
 
- 3. リポジトリ更新	
 
- 4. インストール		
 
- 5. vim・bash 設定	
 
- 6. ftpd 設定			
 
 
1. 概要
 わたしの使用する、ツールやフォントの類を、インストール・カスタマイズします。
2. 準備
 以降の作業のための準備を行います。
 以下の作業で、クリップボードから端末へテキストをはりつけるときに不自由なので、ブラケットモードをオフにします。
 「root」ユーザ権限で。
vi /etc/inputrc
 
 下記の1行を末尾に加えます。
set enable-bracketed-paste off
 
 「sshd」は、デフォルトでインストールされ、起動していました。
3. リポジトリ更新
 リポジトリを更新し、インストール済のパッケージの更新が発生していたら、アップグレードします。
 「root」ユーザ権限で。
 リポジトリ更新。
apt update
 
 アップグレード。
apt upgrade -y
 
4. インストール
 ツール・フォントをインストールします。
apt install -y net-tools fonts-migmix rcs vim vsftpd
 
5. vim・bash 設定
 本項は、各ユーザで設定します。
 「vim」に以下の設定を行います。
	・行番号を表示
	・ビジュアルモード無効
 「bash」に以下の設定を行います。
	・「rcs」のチェックイン・チェックアウトをデフォルトでロックモードへ
	・「ls」のデフォルトをカラー・ドットファイルも表示へ
	・「vi」で「vim」を起動
	・上下の矢印キーでコマンド履歴の補完
	・プロンプトの形式を「ユーザ名@ホスト名 /カレントディレクトリ > 」へ
mkdir -pv ~/.vim/after/indent
mkdir -pv ~/.vim/after/plugin
touch ~/.vim/after/indent/vim.vim
sh
cat << 'EOF' >> ~/.vim/after/indent/vim.vim
set number
set mouse-=a
EOF
exit
cp ~/.vim/after/indent/vim.vim ~/.vim/after/plugin/.
sh
cat << 'EOF' >> ~/.bashrc
alias ci='ci -l'
alias co='co -l'
alias ls='ls -a --color'
alias vi='vim'
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
export PS1='\u@\h $PWD > '
EOF
exit
source ~/.bashrc
 
6. ftpd 設定
 「ftpd」の設定を「IpV4 接続」「書込可」にします。
 「root」ユーザ権限で。
vi /etc/vsftpd.conf
 
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=NO
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
#write_enable=YES
 
 14行目を「YES」、22行目を「NO」にして、31行目の「#」を消して、有効化します。
 編集が終ったら、「ftpd」を再起動。
service vsftpd restart
 
 
 |