読者です 読者をやめる 読者になる 読者になる

DTIのVPSを使ってみた

DTIが始めたVPSサービス「ServersMan@VPS
VPSならDTI|月額467円(税抜) メモリ1GB|ServersMan@VPS
今なら2ヶ月間無料ということなので、試しに使ってみました。
Entryプランでシンプルセットを選択、すぐに使用可能に。
メールで接続先IPやrootパスワードが送られてきました。
いろいろ設定

PermitRootLogin no
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
UsePAM no
  • /etc/init.d/sshd restart

ユーザの追加

  • adduser user
  • passwd user
  • usermod -G wheel user
  • visudo

ユーザ変えてSSH公開鍵認証の設定

  • mkdir ~/.ssh
  • chmod 700 ~/.ssh
  • vi ~/.ssh/authorized_keys

PuTTYの公開鍵をコピペ

  • chmod 600 ~/.ssh/authorized_keys

rpmforgeレポジトリの追加

最初からあるレポジトリを優先させる
PackageManagement/Yum/ProtectBase - CentOS Wiki

/etc/yum.repos.d/内にあるコンフィグでrpmforgeに書き換えられたくないものにprotect=1を付ける
上の設定例見るほうがいいかも。
初期状態でインストールされているパッケージ一覧

Installed Packages
MAKEDEV.i386                          3.23-1.2                         installed
SysVinit.i386                         2.86-15.el5                      installed
apr.i386                              1.2.7-11.el5_3.1                 installed
apr-util.i386                         1.2.7-7.el5_3.2                  installed
aspell.i386                           12:0.60.3-7.1                    installed
aspell-en.i386                        50:6.0-2.1                       installed
audit-libs.i386                       1.7.13-2.el5                     installed
audit-libs-python.i386                1.7.13-2.el5                     installed
authconfig.i386                       5.3.21-6.el5                     installed
basesystem.noarch                     8.0-5.1.1.el5.centos             installed
bash.i386                             3.2-24.el5                       installed
binutils.i386                         2.17.50.0.6-12.el5               installed
bzip2.i386                            1.0.3-4.el5_2                    installed
bzip2-libs.i386                       1.0.3-4.el5_2                    installed
centos-release.i386                   10:5-4.el5.centos.1              installed
centos-release-notes.i386             5.4-4                            installed
chkconfig.i386                        1.3.30.1-2                       installed
coreutils.i386                        5.97-23.el5_4.2                  installed
cpio.i386                             2.6-23.el5_4.1                   installed
cracklib.i386                         2.8.9-3.3                        installed
cracklib-dicts.i386                   2.8.9-3.3                        installed
crontabs.noarch                       1.10-8                           installed
cups-libs.i386                        1:1.3.7-11.el5_4.6               installed
curl.i386                             7.15.5-2.1.el5_3.5               installed
cyrus-sasl.i386                       2.1.22-5.el5_4.3                 installed
cyrus-sasl-lib.i386                   2.1.22-5.el5_4.3                 installed
db4.i386                              4.3.29-10.el5                    installed
dbus.i386                             1.1.2-12.el5_4.1                 installed
dbus-libs.i386                        1.1.2-12.el5_4.1                 installed
device-mapper.i386                    1.02.32-1.el5                    installed
device-mapper-event.i386              1.02.32-1.el5                    installed
device-mapper-multipath.i386          0.4.7-30.el5_4.4                 installed
dhclient.i386                         12:3.0.5-21.el5_4.1              installed
diffutils.i386                        2.8.1-15.2.3.el5                 installed
dmidecode.i386                        1:2.10-2.el5_4                   installed
dmraid.i386                           1.0.0.rc13-53.el5                installed
dmraid-events.i386                    1.0.0.rc13-53.el5                installed
e2fsprogs.i386                        1.39-23.el5                      installed
e2fsprogs-libs.i386                   1.39-23.el5                      installed
ed.i386                               0.2-39.el5_2                     installed
elfutils.i386                         0.137-3.el5                      installed
elfutils-libelf.i386                  0.137-3.el5                      installed
elfutils-libs.i386                    0.137-3.el5                      installed
ethtool.i386                          6-3.el5                          installed
expat.i386                            1.95.8-8.3.el5_4.2               installed
file.i386                             4.17-15.el5_3.1                  installed
filesystem.i386                       2.4.0-2.el5.centos               installed
findutils.i386                        1:4.2.27-6.el5                   installed
finger.i386                           0.17-32.2.1.1                    installed
finger-server.i386                    0.17-32.2.1.1                    installed
fipscheck.i386                        1.2.0-1.el5                      installed
fipscheck-lib.i386                    1.2.0-1.el5                      installed
ftp.i386                              0.17-35.el5                      installed
gawk.i386                             3.1.5-14.el5                     installed
gdbm.i386                             1.8.0-26.2.1                     installed
glib2.i386                            2.12.3-4.el5_3.1                 installed
glibc.i686                            2.5-42.el5_4.3                   installed
glibc-common.i386                     2.5-42.el5_4.3                   installed
gnupg.i386                            1.4.5-14                         installed
gnutls.i386                           1.4.1-3.el5_4.8                  installed
gpm.i386                              1.20.1-74.1                      installed
grep.i386                             2.5.1-55.el5                     installed
groff.i386                            1.18.1.1-11.1                    installed
gzip.i386                             1.3.5-11.el5.centos.1            installed
hesiod.i386                           3.1.0-8                          installed
hmaccalc.i386                         0.9.6-1.el5                      installed
httpd.i386                            2.2.3-31.el5.centos.4            installed
info.i386                             4.8-14.el5                       installed
initscripts.i386                      8.45.30-2.el5.centos             installed
iproute.i386                          2.6.18-10.el5                    installed
iptables.i386                         1.3.5-5.3.el5_4.1                installed
iputils.i386                          20020927-46.el5                  installed
jwhois.i386                           3.2.3-8.el5                      installed
keyutils-libs.i386                    1.2-1.el5                        installed
kpartx.i386                           0.4.7-30.el5_4.4                 installed
krb5-libs.i386                        1.6.1-36.el5_4.1                 installed
less.i386                             394-6.el5                        installed
libacl.i386                           2.2.39-3.el5                     installed
libattr.i386                          2.4.32-1.1                       installed
libcap.i386                           1.10-26                          installed
libgcc.i386                           4.1.2-46.el5_4.2                 installed
libgcrypt.i386                        1.4.4-5.el5                      installed
libgpg-error.i386                     1.4-2                            installed
libidn.i386                           0.6.5-1.1                        installed
libjpeg.i386                          6b-37                            installed
libpng.i386                           2:1.2.10-7.1.el5_3.2             installed
libselinux.i386                       1.33.4-5.5.el5                   installed
libselinux-python.i386                1.33.4-5.5.el5                   installed
libselinux-utils.i386                 1.33.4-5.5.el5                   installed
libsemanage.i386                      1.9.1-4.4.el5                    installed
libsepol.i386                         1.15.2-2.el5                     installed
libstdc++.i386                        4.1.2-46.el5_4.2                 installed
libsysfs.i386                         2.0.0-6                          installed
libtermcap.i386                       2.0.8-46.1                       installed
libtiff.i386                          3.8.2-7.el5_3.4                  installed
libusb.i386                           0.1.12-5.1                       installed
libuser.i386                          0.54.7-2.1.el5_4.1               installed
libutempter.i386                      1.1.4-4.el5                      installed
libxml2.i386                          2.6.26-2.1.2.8                   installed
lm_sensors.i386                       2.10.7-4.el5                     installed
logrotate.i386                        3.7.4-9                          installed
lsof.i386                             4.78-3                           installed
lvm2.i386                             2.02.46-8.el5_4.2                installed
lynx.i386                             2.8.5-28.1.el5_2.1               installed
m2crypto.i386                         0.16-6.el5.6                     installed
m4.i386                               1.4.5-3.el5.1                    installed
mailcap.noarch                        2.1.23-1.fc6                     installed
mailx.i386                            8.1.1-44.2.2                     installed
make.i386                             1:3.81-3.el5                     installed
man.i386                              1.6d-1.1                         installed
man-pages.noarch                      2.39-12.el5                      installed
mcstrans.i386                         0.2.11-3.el5                     installed
mingetty.i386                         1.07-5.2.2                       installed
mkinitrd.i386                         5.1.19.6-54                      installed
mktemp.i386                           3:1.5-23.2.2                     installed
mlocate.i386                          0.15-1.el5.2                     installed
module-init-tools.i386                3.3-0.pre3.1.54.el5              installed
nash.i386                             5.1.19.6-54                      installed
ncompress.i386                        4.2.4-47                         installed
ncurses.i386                          5.5-24.20060715                  installed
net-snmp.i386                         1:5.3.2.2-7.el5_4.2              installed
net-snmp-libs.i386                    1:5.3.2.2-7.el5_4.2              installed
net-snmp-utils.i386                   1:5.3.2.2-7.el5_4.2              installed
net-tools.i386                        1.60-78.el5                      installed
newt.i386                             0.52.2-12.el5_4.1                installed
nscd.i386                             2.5-42.el5_4.3                   installed
nspr.i386                             4.8.4-1.el5_4                    installed
nss.i386                              3.12.6-1.el5.centos              installed
ntsysv.i386                           1.3.30.1-2                       installed
openldap.i386                         2.3.43-3.el5                     installed
openssh.i386                          4.3p2-36.el5_4.4                 installed
openssh-clients.i386                  4.3p2-36.el5_4.4                 installed
openssh-server.i386                   4.3p2-36.el5_4.4                 installed
openssl.i686                          0.9.8e-12.el5_4.6                installed
pam.i386                              0.99.6.2-6.el5_4.1               installed
passwd.i386                           0.73-1                           installed
pcre.i386                             6.6-2.el5_1.7                    installed
perl.i386                             4:5.8.8-27.el5                   installed
perl-CGI-Session.noarch               4.42-1.el5.rf                    installed
perl-Convert-ASN1.noarch              0.20-1.1                         installed
policycoreutils.i386                  1.33.12-14.6.el5                 installed
popt.i386                             1.10.2.3-18.el5                  installed
portmap.i386                          4.0-65.2.2.1                     installed
postgresql-libs.i386                  8.1.18-2.el5_4.1                 installed
procmail.i386                         3.22-17.1.el5.centos             installed
procps.i386                           3.2.7-11.1.el5                   installed
psmisc.i386                           22.2-7                           installed
python.i386                           2.4.3-27.el5                     installed
python-elementtree.i386               1.2.6-5                          installed
python-iniparse.noarch                0.2.3-4.el5                      installed
python-sqlite.i386                    1.1.7-1.2.1                      installed
python-urlgrabber.noarch              3.1.0-5.el5                      installed
quota.i386                            1:3.13-1.2.5.el5                 installed
readline.i386                         5.1-3.el5                        installed
rootfiles.noarch                      8.1-1.1.1                        installed
rpm.i386                              4.4.2.3-18.el5                   installed
rpm-libs.i386                         4.4.2.3-18.el5                   installed
rpm-python.i386                       4.4.2.3-18.el5                   installed
rsync.i386                            2.6.8-3.1                        installed
samba.i386                            3.0.33-3.15.el5_4.1              installed
samba-client.i386                     3.0.33-3.15.el5_4.1              installed
samba-common.i386                     3.0.33-3.15.el5_4.1              installed
samba-swat.i386                       3.0.33-3.15.el5_4.1              installed
screen.i386                           4.0.3-1.el5_4.1                  installed
sed.i386                              4.1.5-5.fc6                      installed
serversman.i386                       1.0-004                          installed
setup.noarch                          2.5.58-7.el5                     installed
setuptool.i386                        1.19.2-1.el5.centos              installed
sgpio.i386                            1.2.0_10-2.el5                   installed
shadow-utils.i386                     2:4.0.17-14.el5                  installed
sharutils.i386                        4.6.1-2                          installed
slang.i386                            2.0.6-4.el5                      installed
smadmin.i386                          1.0-003                          installed
sqlite.i386                           3.3.6-5                          installed
stunnel.i386                          4.15-2.el5.1                     installed
sudo.i386                             1.6.9p17-6.el5_4                 installed
sysklogd.i386                         1.4.1-44.el5                     installed
talk.i386                             0.17-29.2.2                      installed
talk-server.i386                      0.17-29.2.2                      installed
tar.i386                              2:1.15.1-23.0.1.el5_4.2          installed
tcp_wrappers.i386                     7.6-40.7.el5                     installed
tcpdump.i386                          14:3.9.4-14.el5                  installed
tcsh.i386                             6.14-14.el5_4.3                  installed
telnet.i386                           1:0.17-39.el5                    installed
termcap.noarch                        1:5.5-1.20060701.1               installed
time.i386                             1.7-27.2.2                       installed
tmpwatch.i386                         2.9.7-1.1.el5.2                  installed
traceroute.i386                       3:2.0.1-5.el5                    installed
tzdata.noarch                         2010e-1.el5                      installed
udev.i386                             095-14.21.el5                    installed
unzip.i386                            5.52-3.el5                       installed
usermode.i386                         1.88-3.el5.2                     installed
util-linux.i386                       2.13-0.52.el5_4.1                installed
vim-common.i386                       2:7.0.109-6.el5                  installed
vim-enhanced.i386                     2:7.0.109-6.el5                  installed
vim-minimal.i386                      2:7.0.109-6.el5                  installed
vixie-cron.i386                       4:4.1-77.el5_4.1                 installed
vzdev.noarch                          1.0-7.swsoft                     installed
vzdummy-apache.noarch                 1.0-1.swsoft                     installed
vzdummy-glibc.noarch                  1.0-1.swsoft                     installed
vzdummy-jre-el5.noarch                1.0-1.swsoft                     installed
vzdummy-kernel-el5.noarch             2.0-1.ce.swsoft                  installed
wget.i386                             1.11.4-2.el5_4.1                 installed
which.i386                            2.16-7                           installed
xinetd.i386                           2:2.3.14-10.el5                  installed
yum.noarch                            3.2.22-20.el5.centos             installed
yum-fastestmirror.noarch              1.1.16-14.el5.centos.1           installed
yum-metadata-parser.i386              1.1.2-3.el5.centos               installed
zlib.i386                             1.2.3-3                          installed