最終更新:2017-10-31 (火) 14:44:22 (21d)  

tokkyo/設定/CentOS 5 はてなブックマークを見る
Top / tokkyo / 設定 / CentOS 5

Linux/キーボード

  • System->Administration->KeyboardのほうでJapaneseを選んだ
    • System->Preferencesの方だとダメ

インストール

yum groupinstall "Development Tools"
yum install emacs nmap

リポジトリの変更

sed

  • CentOS 5.5の場合
    sudo sed -i -e "s|mirror\.centos\.org/centos/\$releasever|vault\.centos\.org/5.5|g" /etc/yum.repos.d/CentOS-Base.repo
    sudo sed -i -e "s|#baseurl=|baseurl=|g" /etc/yum.repos.d/CentOS-Base.repo
    sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-Base.repo

リポジトリの追加

remi,EPEL

  • wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
    wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
    rpm -Uvh remi-release-5.rpm epel-release-5-4.noarch.rpm

RPMforge

  • rpm -Uhv http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
    rpm -Uhv http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

sudoの設定

usermod -a -G wheel tokkyo
emacs /etc/sudoers

SSHの設定

mv authorized_keys ~/.ssh/
chmod 0600 ~/.ssh/authorized_keys
chmod 0700 ~/.ssh

/etc/ssh/sshd_config

PermitRootLogin no
PubkeyAuthentication yes
PermitEmptyPasswords no
PasswordAuthentication no

PHP,MySQLのインストール

yum install \
	php \
	php-cli \
	php-common \
	php-devel \
	php-gd \
	php-mbstring \
	php-mcrypt \
	php-mysql \
	php-pdo \
	php-pear \
	php-tidy \
	php-xml \
	phpMyAdmin \
	mysql.x86_64 \
	mysql-server \
	--enablerepo=remi
emacs /etc/httpd/conf.d/phpMyAdmin.conf

MySQLの設定

/etc/init.d/mysqld start

my.cnf

[mysqld]
skip-character-set-client-handshake
character-set-server=utf8
[mysql]
default-character-set=utf8

phpMyAdminの設定

config.inc.php?

$cfg['blowfish_secret'] = 'hogehoge';
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapass';

pmadbの作成