|
|
我的目的就是做个最精简的WEB服务器环境...
为了省事,我把LFS手册拿来用啦 ...
LFS6.0第六章的软件列表
- Linux-Libc-Headers-2.6.8.1
- ap Man-pages-1.67
- a Glibc-2.3.4-20040701 / glibc*tgz
- d Binutils-2.15.91.0.2
- d GCC-3.4.1
- a Coreutils-5.2.1
- l Zlib-1.2.1
- Mktemp-1.5
- *a Iana-Etc-1.01 / slk里是 etc*
- a Findutils-4.1.20
- a Gawk-3.1.4
- l Ncurses-5.4
- l Readline-5.0
- ap Vim-6.3
- d M4-1.4.2
- d Bison-1.875a
- a Less-382
- ap Groff-1.19.1
- a Sed-4.1.2
- d Flex-2.5.31
- a Gettext-0.14.1
- n? Inetutils-1.4.2 / netutils ...
- n Iproute2-2.6.8-040823
- d Perl-5.8.5
- ap Texinfo-4.7
- d Autoconf-2.59
- d Automake-1.9.1
- a Bash-3.0
- File-4.10
- d Libtool-1.5.8
- a Bzip2-1.0.2
- ap Diffutils-2.8.1
- a Kbd-1.12
- *a E2fsprogs-1.35 / reiserfs 还要装? reiserfsprogs
- a Grep-2.5.1
- Grub-0.95
- a Gzip-1.3.5
- ap Man-1.5o
- d Make-3.80
- a Module-Init-Tools-3.0
- Patch-2.5.4
- a Procps-3.2.3
- Psmisc-21.5
- a Shadow-4.0.4.1
- a Sysklogd-1.4.1
- a Sysvinit-2.85
- a Tar-1.14
- * a Udev-030 // udev 针对2.6内核,换成devs
- a Util-linux-2.12b
复制代码
-----------------------------------------------------------
slk10.1的光盘启动后
mkreiserfs /dev/hda1
cdrom /dev/hdc 挂到 /s ,硬盘 /dev/hda1 挂到 /slk
安装用命令 # installpkg -root /slk ***.tgz
先装 a 里的 aaa_*tgz
再装上面标记 a 的软件包
有些要注意:
Coreutils要先装,要不后面的软件包说找不到cp...呵呵,废话...
iana-etc,换成 etc*
udev*,slk是用的2.4内核,所以得装devs*
装内核:
kernel-ide*tgz
kernel-modules*tgz
pkgtool装上...
有些不是a里的包
l里的 ncurses
ap里的vim...这个..呵呵..
n里的 tcpip*
我用局域网 所以装上 n里的dhcpcd*
====================================================
为启动做准备...
安装GRUB
先从http://www.linuxpackages.net/下grub0.97,安装
先 #chroot /slk
创建grub.list
---------------------------------------------------------
default 0
append="mem=256M
timeout=1
color green/black light-green/black
title Slackware Linux 10.1 jchengzhu's
root (hd0,0)
kernel /boot/vmlinuz vga=0x317 root=/dev/hda1 ro
title What is Windos? Let me see!
rootnoverify (hd0,1)
chainloader +1
-----------------------------------------------------------
俺的grub.list
拷贝 /usr/lib/grub/i386-pc 里的
stage1,stage2,reiserfs_stage1_5 到 /boot/grub
#grub
root (hd0,0)
setup (hd0)
quit
==================================================
建立 /etc/fstab
---------------------------------------------------------------
# Begin /etc/fstab
# filesystem mount-point fs-type options dump fsck-order
/dev/hda1 / reiserfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
---------------------------------------------------------------
等等,,,这里别忘了改密码 !
su - root
passwd
#exit
#reboot
启动成功!
==================================================
安装
apache2-2.0.54-i486-1spi
php-apache2-5.0.4-i486-1spi
mysql-standard-4.1.12-pc-linux-gnu-i686
apache和php是 在 http://www.linuxpackages.net/ 找到的
mysql是官方的
先 installpkg apache* php*
试着启动 /etc/rc.d/rc.httpd start
看看提示缺什么库,就安装什么库 ...
直到启动成功为止 ^_^
n里的 openssl
l里的 libxslt
l里的 mhash
然后是t1lib,这个slk10.1里版本太低,去下个t1lib-5.1.0-i486-1kjz装上就OK
l里的 libxml2
l里的 libidn
吼吼,启动成功 ...
------------------------------------------------------------------------------------------------
mysql本来想用 http://www.linuxpackages.net/ 上的包,可就是不行 ...
就用 mysql-standard-4.1.12-pc-linux-gnu-i686
cd /usr/local
tar xvzf /xxx/xxx/mysql-standard-4.1.12-pc-linux-gnu-i686.tar.gz
mv mysql-standard-4.1.12-pc-linux-gnu-i686 mysql
groupadd mysql
useradd -g mysql mysql
我这里都显示 exists ...
chown -R mysql mysql
chgrp -R mysql mysql
cd mysql
./scripts/mysql_install_db --user=mysql
./support-files/mysql.server start
Starting MySQL SUCCESS!
让 mysql 随系统启动
ln -s /usr/local/support-files/mysql.server /etc/rc.d/rc.mysqld
吼吼,其他...以后再说!
-------------------------------------------------------------------------------------------------
opensshd 依赖于 openssl ,上面已经装了
installpkg openssh*tgz
---------------------------------------------------------------------------------------------------
proftpd
也没别的依赖
installpkg proftpd*tgz
groupadd proftpd
useradd -g proftpd proftpd
改 /etc/proftpd.conf
前面的
ServerType standalone
................
然后
................
# Set the user and group that the server normally runs at.
user proftpd
group proftpd
启动 proftpd
#proftpd |
|