PowerChute Network Shutdown v3.1 for VMwareのキーボードマップなどの設定を変更してみました
ちなみにPowerChute Network Shutdown v3.1 for VMwareの仮想アプライアンスはこんな感じです
1 2 3 4 5 6 7 8 9 |
[root@pcns ~]# cat /etc/redhat-release CentOS release 5.8 (Final) [root@pcns ~]# uname -a Linux pcns 2.6.18-308.el5 #1 SMP Tue Feb 21 20:06:06 EST 2012 x86_64 x86_64 x86_64 GNU/Linux [root@pcns ~]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 2793272 1174240 1474852 45% / /dev/sda1 124427 12271 105732 11% /boot tmpfs 254872 0 254872 0% /dev/shm |
- キーマップ変更
- sshdの変更
- ssh, telnetクライアントのインストール
コンソールからログインするとキーマップが英語101キーボードになっていますのでこれをjp106に変更します
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@pcns ~]# find / -name *jp106* /lib/kbd/keymaps/i386/qwerty/jp106.map.gz [root@pcns ~]# cat /etc/sysconfig/keyboard KEYBOARDTYPE="pc" KEYTABLE="us" [root@pcns ~]# vi /etc/sysconfig/keyboard [root@pcns ~]# cat /etc/sysconfig/keyboard KEYBOARDTYPE="pc" KEYTABLE="jp106" |
rootログインの禁止と保守の為にport forwardingを有効
それ以外は必要に応じて。ちなみにパスワード認証はデフォルトで有効になっています
1 2 3 |
; html-script: false ] PermitRootLogin no AllowTcpForwarding yes |
デフォルトではssh,telnetクライアントがインストールされていません
他機器保守の為に導入しておきます
一時的でも外部に接続できればyumが利用できて簡単です
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
[root@pcns ~]# yum install telnet Loaded plugins: fastestmirror Determining fastest mirrors * base: ftp.jaist.ac.jp * extras: ftp.jaist.ac.jp * updates: ftp.jaist.ac.jp base | 1.1 kB 00:00 base/primary | 1.3 MB 00:01 base 3662/3662 extras | 2.1 kB 00:00 extras/primary_db | 173 kB 00:00 updates | 1.9 kB 00:00 updates/primary_db | 351 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package telnet.x86_64 1:0.17-41.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: telnet x86_64 1:0.17-41.el5 base 60 k Transaction Summary ================================================================================ Install 1 Package(s) Upgrade 0 Package(s) Total download size: 60 k Is this ok [y/N]: y Downloading Packages: telnet-0.17-41.el5.x86_64.rpm | 60 kB 00:00 warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897 base/gpgkey | 1.5 kB 00:00 Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : telnet 1/1 Installed: telnet.x86_64 1:0.17-41.el5 Complete! [root@pcns ~]# telnet telnet> quit [root@pcns ~]# |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
[root@pcns ~]# yum install openssh-clients Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.jaist.ac.jp * extras: ftp.jaist.ac.jp * updates: ftp.jaist.ac.jp Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package openssh-clients.x86_64 0:4.3p2-82.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: openssh-clients x86_64 4.3p2-82.el5 base 456 k Transaction Summary ================================================================================ Install 1 Package(s) Upgrade 0 Package(s) Total download size: 456 k Is this ok [y/N]: y Downloading Packages: openssh-clients-4.3p2-82.el5.x86_64.rpm | 456 kB 00:01 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : openssh-clients 1/1 Installed: openssh-clients.x86_64 0:4.3p2-82.el5 Complete! [root@pcns ~]# ssh usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-e escape_char] [-F configfile] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-w tunnel:tunnel] [user@]hostname [command] |