CALENDAR

2010年9月
« 7月    
 12345
6789101112
13141516171819
20212223242526
27282930  

CATEGORIES

ARCHIVES

あわせて読みたい

  • LOADING...

Git + インストール

Git インストールでエラーが出たので対処メモ。

エラーまでの軌跡

$ wget http://kernel.org/pub/software/scm/git/git-1.6.3.2.tar.gz
$ tar zxvf git-1.6.3.2.tar.gz
$ cd git-1.6.3.2
$ ./configure --prefix=/usr/local/git-1.6.3.2
$ make
GIT_VERSION = 1.6.3.2
    * new build flags or prefix
    CC fast-import.o
builtin.h:6 から include されたファイル中,
                 fast-import.c:143 から:
cache.h:16:18: error: zlib.h: そのようなファイルやディレクトリはありません
In file included from builtin.h:6,
                 from fast-import.c:143:
cache.h:21: error: expected ‘)’ before ‘strm’
cache.h:22: error: expected ‘)’ before ‘strm’
cache.h:23: error: expected ‘)’ before ‘strm’
fast-import.c:280: error: ‘Z_DEFAULT_COMPRESSION’ undeclared here (not in a function)
fast-import.c: In function ‘store_object’:
...

どうやら zlib 関連がないっぽい。

ないならインストールしましょう

$ su -
# yum -y install zlib-devel
...
Complete!
# exit

もう一度試みる

$ make
$ sudo make install

成功した。

自宅サーバ + BIND

内部向けDNSサーバ構築したメモ。

BIND インストール&設定する

DNSサーバー構築(BIND) を参考に。

自宅サーバ + iptables

iptables 設定メモ。

設定する

ファイアウォール構築(iptables) を参考に。

自宅サーバ + Vim

最小構成の vim-minimal しか入っていなかったので追加インストールしたメモ。

# rpm -qa | grep vim
vim-minimal-7.0.109-4.el5_2.4z
# yum search vim
...
vim-X11.i386 : VIM バージョンの X Window System 用 vi エディタ
vim-common.i386 : すべてのバージョンの VIM エディタで必要とされる共通ファイル
vim-enhanced.i386 : 最新の拡張機能を持つバージョンの VIM エディタ
vim-minimal.i386 : 最小バージョンの VIM エディタ
# yum -y install vim-common vim-enhanced
...
Installed
# vi ~/.bashrc
alias vi='vim'
# source ~/.bashrc

自宅サーバ + Clam AntiVirus

Clam AntiVirus インストールメモ。

インストールする

Clam Antivirusに関するメモ
アンチウィルスソフト導入(Clam AntiVirus)
を参考に。

自宅サーバ + chkrootkit

chkrootkit のインストールメモ。

インストールする

rootkit検知ツール導入(chkrootkit) を参考に。

自宅サーバ + RPMforgeリポジトリ導入

RPMforge とは?

標準リポジトリで提供されていないパッケージ群のリポジトリ。

インストールする

Installing RPMforge
RPMforgeリポジトリ導入(RPMforge)
を参考に。

自宅サーバ + Tripwire

Tripwire インストールメモ。

Tripwire とは?

ファイルやディレクトリを監視し、追加/変更/削除を検知して知らせてくれるソフト。
Linux インストール後、なるべく早く導入するのがオススメの模様。

インストールなど

ファイル改竄検知システム導入(Tripwire) を参考に。

自宅サーバ + 初期設定

初期設定メモ

管理者用のユーザを追加

# useradd user
# passwd user
Changing password for user user.
New UNIX password: 
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.

root になれるユーザを管理者のみに制限する

# usermod -G wheel user
# vi /etc/pam.d/su
auth    required    pam_wheel.so    use_uid

yum 設定

# /etc/init.d/yum-updatesd stop
yum-updates を停止中:                                      [  OK  ]
# yum -y remove yum-updatesd
Loaded plugins: fastestmirror
Setting up Remove Process
...
Removed: yum-updatesd.noarch 1:0.9-2.el5
Complete!
# yum -y update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
...
Complete!
# wget http://mirror.centos.org/centos/5.2/os/i386/CentOS/yum-cron-0.6-1.el5.centos.noarch.rpm
# yum -y install yum-downloadonly
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
...
Installed: yum-downloadonly.noarch 0:1.1.16-13.el5.centos
Complete!
# rpm -ivh yum-cron-0.6-1.el5.centos.noarch.rpm
準備中...                ########################################### [100%]
   1:yum-cron               ########################################### [100%]
# /etc/init.d/yum-cron start
Enabling nightly yum update:                               [  OK  ]
# chkconfig yum-cron on

CentOS 5.3 では yum-fastestmirror が最初からインストールされている。
インストールされていない環境の場合は、yum -y install yum-fastestmirror する。

CentOS 5.3 では yum-cron がなくなっている。
とりあえず 5.2 から RPM 引っ張ってきてインストール。
yum-downloadonly は、yum-cron の依存対象みたいなので事前にインストールしとく。

SELinux 無効化

# getenforce 
Enforcing
# setenforce 0
# getenforce 
Permissive
# vi /etc/selinux/config
SELINUX=disabled

参考

CentOS5初期設定

自宅サーバ + パソコン

自宅サーバのパソコンをざっくり公開。


HM-ATM330-Bare

HM-ATM330-bare
CPU Intel Dualcore Atom 330 1.6GHz
メモリ 2GB
ハードディスク 320GB
OS CentOS 5.3

まぁまぁちっさくて場所とらない。
ファンレスでほとんど音しないのが良いところ。
SSD でさらに静音性を高くしてみたくもあったけど、値段的に無理があったのでやめた。
いまのところ外への公開は考えてナッスィング。

デジカメ欲しいナー。