Ubuntu Server 12.10 でも同様にできます。 少しは容量の節約ができるかと思い、言語設定は、en_US.UTF-8 にしています。
インストール
- Language: English
- [F4] Modes: Install a minimal virtual machine (仮想でなければ "Install a minimal system")
- Install Ubuntu Server
- Language: English
- Contry, territory or area: other > Asia > Japan
- Configure locales: United States - en_US.UTF-8
- Detect keyboard layout?: No
- Contry of origin for keyboard: Japanese
- Keyboard layout: Japanese
- Network autoconfiguration failed: Continue
- Network configuration method: Configurae network manually
- IP address: a.b.c.d Netmask: e.f.g.h
- Gateway: i.j.k.l
- Name server addresses: 8.8.8.8, 8.8.4.4
- Hostname: Pricise01
- Domain Name: example.com
- Full name for the new user: USERNAME
- Username for your account: USERNAME
- Choose a password for the new user: PASSWORD
- Re-enter password to verify: PASSWORD
- Encrypt your home directory: No
- Is this time zone correct? Yes
- Partitioning method: Guided - use entire disk
- Select disk to partition: Virtual disk 1 (vda)
- Write the changes to disks? Yes
- HTTP proxy information (blank for none): BLANK
- How do you want to manage upgrades on this system?: No automatic updates
- Choose software to install: OpenSSH server
- Install the GRUB boot loader to the master boot record?: Yes
再起動後、作成したユーザでログイン
Login: USERNAME
$ sudo apt-get update && sudo apt-get dist-upgrade -y
// 仮想環境が VMware の場合
$ sudo apt-get install open-vm-tools
// 一度再起動して、ssh でログインして作業可能
$ sudo reboot
Login: USERNAME
// KVM で、パワーオフ・リセットで、停止・再起動したい場合
$ sudo apt-get install acpid
// 以下、お好みに応じてパッケージを追加
$ sudo apt-get install screen man-db psmisc
// ネットワーク関連ツール
$ sudo apt-get install w3m dnsutils tcpdump traceroute iputils-tracepath
// 開発環境のインストール
$ sudo apt-get install build-essential
// ssh の ポート番号変更、root ログイン禁止、キープアライブの設定
$ sudo vi /etc/ssh/sshd_config
// diff
$ diff /etc/ssh{.orig,}/sshd_config
5c5,6
< Port 22
---
> #Port 22
> Port 22222
27c28,29
< PermitRootLogin yes
---
> #PermitRootLogin yes
> PermitRootLogin no
87a90,92
>
> ClientAliveCountMax 3
> ClientAliveInterval 15
__END__
$ sudo initctl restart ssh
0 件のコメント:
コメントを投稿