Mint - 20.3 - 共通事項 - ツール・フォント

クラウディア 
1. 概要
2. アップグレード
3. インストール
4. vim 等の設定
5. ftpd の設定

1. 概要

 わたしの使う、ツールの類です。

2. アップグレード

 以降の操作に影響しないように、まず、「root」ユーザ権限で。

vi /etc/inputrc
 末尾に下記の1行を加えます。

set enable-bracketed-paste off
 反映させるためにログインしなおします。  リポジトリの状態を最新にしておきます。  「root」ユーザ権限で。  アップデート。

apt update
 アップグレード。

apt upgrade -y

3. インストール

 「root」ユーザ権限で。

apt install -y fonts-migmix openssh-server rcs vim vsftpd
 「Ubuntu」の系列なので、「sshd」「ftpd」は、インストールすると同時に、有効化されています。

4. vim 等の設定

 「vim」に下記の設定を行います。 ・行番号表示 ・ビジュアルモード無効 ・オートインデント有効  「bash」に以下の設定を行います。 ・「/sbin」へのパスを追加 ・「rcs」のチェックイン・チェックアウトをデフォルトでロックモードに ・上下矢印キーで、コマンド履歴の補完 ・プロンプトの形式を「ユーザ名@ホスト名 /カレントディレクトリ > 」へ  各ユーザで。

mkdir -pv ~/.vim/after/indent
mkdir -pv ~/.vim/after/plugin

sh
cat << 'EOF' >> ~/.vim/after/indent/vim.vim
set number
set mouse-=a
set autoindent
EOF

cp ~/.vim/after/indent/vim.vim ~/.vim/after/plugin/.
exit

sh
cat << 'EOF' >> ~/.bashrc
PATH="$PATH":/sbin

alias ci='ci -l'
alias ls='ls -a --color'

bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'

export PS1='\u@\h $PWD > '
EOF
exit

source ~/.bashrc

5. ftpd の設定

 「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
 を下記へ変更します。

# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# 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行目、IPv4 で接続します。  22行目、IPv6 で接続しません。  31行目、アップロード可にします。  変更したら、再起動。

service vsftpd restart
ハイスピードプラン