HDD が7つになったので構成をちょっと変更して、すべてをひとつに纏める。
250GB x 1 : BOOT
2TB x 3 + 3TB x 3 : ZFS-DATA
事前にバックアップを取っておかなくてはならないものは
- /etc/sysconfig/iptables
- /etc/exports
- /etc/fstab
- /etc/samba/smb.conf
- /etc/httpd/conf/httpd.conf
- /etc/httpd/conf.d/virtualhost.conf
- /etc/php.ini
- /etc/my.cnf
- /var/spool/cron/root
ぐらいかな?
- SYSTEM INSTALL
- minimum install
- PREFERENCES
- vi /etc/profile
- date –set=’****/**/** **:**:**’
- vi /etc/profile
- NETWORK
- vi /etc/sysconfig/network-scripts/ifcfg-eth0
- vi /etc/sysconfig/iptables
- vi /etc/resolv.conf
- vi /etc/sysconfig/network-scripts/ifcfg-eth0
- SELINUX
- vi /etc/selinux/config
- YUM
- vi /etc/yum.conf
- vi /etc/yum.conf
- NTP
- yum install ntp
- vi /etc/ntp.conf
- /etc/init.d/ntpd start
- chkconfig ntpd on
- chkconfig ntpdate on
- KEYRING
- yum install openssh-clients
- ssh-keygen -t rsa
- mv /root/.ssh/id_rsa.pub /root/.ssh/id_rsa.pub.192.168.1.2
- scp /root/.ssh/id_rsa.pub.192.168.1.2 root@192.168.1.1:/root/.ssh/
- [ on 192.168.1.1 ]
cat id_rsa.pub.192.168.1.2 >> authorized_keys
- WGET
- yum install wget
- vi /etc/wgetrc
- ZFS (Under Construction)
- zpool create tank sdb1
- FSTAB (Under Construction)
- NFS
- yum install rpcbind nfs-utils
- vi /etc/exports
- /etc/init.d/rpcbind start
- /etc/init.d/nfslock start
- /etc/init.d/nfs start
- SMB
- adduser samba-user
- passwd samba-user
- yum install samba
- pdbedit -a samba-user
- vi /etc/samba/smb.conf
- /etc/init.d/smb start
- chkconfig nmbd on
- chkconfig smbd on
- REPOSITORY
- MYSQL-COMMUNITY
- cd /tmp
- wget http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
- rpm -ivh mysql-community-release-el6-5.noarch.rpm
- vi /etc/yum.repos.d/mysql-community.repo
- RPMFORGE
- wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
- rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
- vi /etc/yum.repos.d/rpmforge.repo
- EPEL
- cd /etc/pki/rpm-gpg/
- wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
- vi /etc/yum.repos.d/epel.repo
- CENT-ALT
- cd /tmp
- wget http://mirror.sysadminguide.net/centalt/repository/centos/6/x86_64/centalt-release-6-1.noarch.rpm
- rpm -ivh centalt-release-6-1.noarch.rpm
- vi /etc/yum.repos.d/centalt.repo
- NGINX
- cd /tmp
- wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
- rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm
- vi /etc/yum.repos.d/nginx.repo
- MYSQL-COMMUNITY
- LAMP
- HTTPD (Under Construction)
- yum install –enablerepo=CentALT httpd
- cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.original
- vi /etc/httpd/conf/httpd.conf
- /etc/init.d/httpd start
- chkconfig httpd on
- htdigest -c /var/www/.htdigest ‘DigestAuthArea’ AuthUser
- vi /etc/httpd/conf.d/virtual.conf
- /etc/init.d/httpd restart
- PHP
- yum install php
- cp /etc/php.ini /etc/php.ini.original
- vi /etc/php.ini
- /etc/init.d/httpd restart
- MYSQL
- yum install –enablerepo=mysql56-community mysql
- cp /etc/my.cnf /etc/my.cnf.original
- vi /etc/my.cnf
- /etc/init.d/mysqld start
- chkconfig mysqld on
- mysql -u root -p
- > grant all privileges on *.* to username identified by ‘password’ with grant option;
- > quit
- HTTPD (Under Construction)
- READYMEDIA (formerly MINIDLNA)
- wget http://sourceforge.net/projects/minidlna/files/minidlna/1.1.3/minidlna-1.1.3_static.tar.gz/download
- tar -zxvf minidlna_1.1.3_static.tar.gz -C /
- vi /etc/minidlna.conf
- vi /etc/rc.d/init.d/minidlna
ファイル自体は ココ にあります。拡張子は削除して使用。
- chmod 755 /etc/rc.d/init.d/minidlna
- chkconfig –add minidlna
- /etc/init.d/minidlna start
- MyDNS
- crontab -e
- crontab -e
- BIND or PowerDNS (Under Construction)
- TRANSMISSION (Under Construction)
- yum install transmission
- GNOME DESKTOP
- yum groupinstall “X Window System” “デスクトップ”
- vi /etc/inittab
- PT3 (Under Construction)