当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 26 篇帖子 ]  前往页数 1, 2  下一页
作者 内容
1 楼 
 文章标题 : Ubuntu下安装LFS手记
帖子发表于 : 2009-07-21 13:39 
论坛管理员

注册: 2005-03-27 0:06
帖子: 10116
系统: Ubuntu 12.04
送出感谢: 7
接收感谢: 128
开销一天半时间,准备一个4G的U盘。最后使用全部占用510M,但2G的U盘是不行的,中间编译的空间占用的太大。

附件:
Screenshot-QEMU.png
Screenshot-QEMU.png [ 8.5 KiB | 被浏览 8439 次 ]


附件:
Screenshot-QEMU-3.png
Screenshot-QEMU-3.png [ 18.63 KiB | 被浏览 8432 次 ]



附件:
Screenshot-QEMU-2.png
Screenshot-QEMU-2.png [ 16.96 KiB | 被浏览 8439 次 ]



强烈推荐大家折腾,步骤如下:

代码:
mkdir ~/lfs
cd ~/lfs
wget http://lfs.vlsm.org/lfs/lfs-packages/lfs-packages-6.4.tar
tar xvf lfs-packages-6.4.tar
sudo apt-get install build-essential
sudo apt-get install texinfo
sudo apt-get install gawk
sudo apt-get install bison

sudo -s

fdisk /dev/sdb
=> /dev/sdb1 /dev/db2

mke2fs -jv /dev/sdb1
mkswap /dev/sdb2


export LFS=/mnt/lfs
mkdir -pv $LFS
mount -v -t ext3 /dev/sdb1 $LFS
mkdir -v $LFS/sources
chmod -v a+wt $LFS/sources
cp -v ~/lfs/6.4/* $LFS/sources
mkdir -v $LFS/tools
ln -sv $LFS/tools /


groupadd lfs
useradd -s /bin/bash -g lfs -m -k /dev/null lfs
passwd lfs
chown -v lfs $LFS/tools
chown -v lfs $LFS/sources
su - lfs

cat > ~/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF

cat > ~/.bashrc << "EOF"
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL PATH
EOF

source ~/.bash_profile



cd $LFS/sources
tar -jxvf binutils-2.18.tar.bz2
cd binutils-2.18
patch -Np1 -i ../binutils-2.18-configure-1.patch
mkdir -v ../binutils-build
cd ../binutils-build
CC="gcc -B/usr/bin/" ../binutils-2.18/configure     --prefix=/tools --disable-nls --disable-werror
make
make install
make -C ld clean
make -C ld LIB_PATH=/tools/lib
cp -v ld/ld-new /tools/bin


cd $LFS/sources
tar -jxvf gcc-4.3.2.tar.bz2
cd gcc-4.3.2
tar -jxvf ../mpfr-2.3.2.tar.bz2
mv mpfr-2.3.2 mpfr
tar -jxvf ../gmp-4.2.4.tar.bz2
mv gmp-4.2.4 gmp
mkdir -v ../gcc-build
cd ../gcc-build
CC="gcc -B/usr/bin/" ../gcc-4.3.2/configure --prefix=/tools \
    --with-local-prefix=/tools --disable-nls --disable-shared --disable-libssp \
    --enable-languages=c
make
make install
ln -vs libgcc.a `gcc -print-libgcc-file-name | \
    sed 's/libgcc/&_eh/'`
ln -vs gcc /tools/bin/cc


cd $LFS/sources
tar -jxvf linux-2.6.27.4.tar.bz2
cd linux-2.6.27.4
make mrproper
make headers_check
make INSTALL_HDR_PATH=dest headers_install
cp -rv dest/include/* /tools/include


cd $LFS/sources
tar -jxvf glibc-2.8-20080929.tar.bz2
cd glibc-2.8-20080929
sed -i 's@/etc/ld.so.preload@/tools/etc/ld.so.preload@' elf/rtld.c
mkdir -v ../glibc-build
cd ../glibc-build
echo "CFLAGS += -march=i486 -mtune=native" > configparms
../glibc-2.8-20080929/configure --prefix=/tools \
    --disable-profile --enable-add-ons \
    --enable-kernel=2.6.0 --with-binutils=/tools/bin \
    --without-gd --with-headers=/tools/include \
    --without-selinux
make
mkdir -v /tools/etc
touch /tools/etc/ld.so.conf
make install


mv -v /tools/bin/{ld,ld-old}
mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
mv -v /tools/bin/{ld-new,ld}
ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld
gcc -dumpspecs | sed 's@/lib/ld-linux.so.2@/tools&@g' \
  > `dirname $(gcc -print-libgcc-file-name)`/specs
GCC_FIXED=`dirname $(gcc -print-libgcc-file-name)`/include-fixed &&
find ${GCC_FIXED}/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \; &&
rm -vf `grep -l "DO NOT EDIT THIS FILE" ${GCC_FIXED}/*` &&
unset GCC_FIXED


cd $LFS/sources
tar -zxvf tcl8.5.5-src.tar.gz
cd tcl8.5.5
cd unix
./configure --prefix=/tools
make
make install
chmod -v u+w /tools/lib/libtcl8.5.so
make install-private-headers
ln -sv tclsh8.5 /tools/bin/tclsh


cd $LFS/sources
tar -zxvf expect-5.43.0.tar.gz
cd expect-5.43
patch -Np1 -i ../expect-5.43.0-spawn-1.patch
patch -Np1 -i ../expect-5.43.0-tcl_8.5.5_fix-1.patch
cp -v configure{,.orig}
sed 's:/usr/local/bin:/bin:' configure.orig > configure
./configure --prefix=/tools --with-tcl=/tools/lib \
  --with-tclinclude=/tools/include --with-x=no
make
make SCRIPTS="" install


cd $LFS/sources
tar -zxvf dejagnu-1.4.4.tar.gz
cd dejagnu-1.4.4
./configure --prefix=/tools
make install

cd $LFS/sources
rm -fr gcc-build/
cd gcc-4.3.2
cp -v gcc/Makefile.in{,.orig}
sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in
cp -v gcc/Makefile.in{,.tmp}
sed 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp \
  > gcc/Makefile.in
for file in $(find gcc/config -name linux64.h -o -name linux.h)
do
  cp -uv $file{,.orig}
  sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
  -e 's@/usr@/tools@g' $file.orig > $file
  echo "
#undef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR 0" >> $file
  touch $file.orig
done
mkdir -v ../gcc-build
cd ../gcc-build
../gcc-4.3.2/configure --prefix=/tools \
    --with-local-prefix=/tools --enable-clocale=gnu \
    --enable-shared --enable-threads=posix \
    --enable-__cxa_atexit --enable-languages=c,c++ \
    --disable-libstdcxx-pch --disable-bootstrap
make
make install


cd $LFS/sources
rm -fr gcc-build/
cd binutils-build/
rm -fr *
../binutils-2.18/configure --prefix=/tools \
    --disable-nls --with-lib-path=/tools/lib
make
make install
make -C ld clean
make -C ld LIB_PATH=/usr/lib:/lib
cp -v ld/ld-new /tools/bin


cd $LFS/sources
tar -zxvf ncurses-5.6.tar.gz
cd ncurses-5.6
./configure --prefix=/tools --with-shared \
    --without-debug --without-ada --enable-overwrite
make
make install


cd $LFS/sources
tar -zxvf bash-3.2.tar.gz
cd bash-3.2
patch -Np1 -i ../bash-3.2-fixes-8.patch
./configure --prefix=/tools --without-bash-malloc \
   ac_cv_func_working_mktime=yes
make
make install
ln -vs bash /tools/bin/sh


cd $LFS/sources
tar -zxvf bzip2-1.0.5.tar.gz
cd bzip2-1.0.5
make
make PREFIX=/tools install


cd $LFS/sources
tar -zxvf coreutils-6.12.tar.gz
cd coreutils-6.12
patch -Np1 -i ../coreutils-6.12-old_build_kernel-1.patch
./configure --prefix=/tools --enable-install-program=hostname
make
make install
cp -v src/su /tools/bin/su-tools


cd $LFS/sources
tar -zxvf diffutils-2.8.1.tar.gz
cd diffutils-2.8.1
./configure --prefix=/tools
make
make install


cd $LFS/sources
tar -zxvf e2fsprogs-1.41.3.tar.gz
cd e2fsprogs-1.41.3
mkdir -v build
cd build
../configure --prefix=/tools
make
make install-libs
chmod -v u+w /tools/lib/{libblkid,libcom_err,libe2p,libext2fs,libss,libuuid}.a


cd $LFS/sources
tar -zxvf findutils-4.4.0.tar.gz
cd findutils-4.4.0
./configure --prefix=/tools
make
make install


cd $LFS/sources
tar -jxvf gawk-3.1.6.tar.bz2
cd gawk-3.1.6
./configure --prefix=/tools ac_cv_func_working_mktime=yes
make
make install


cd $LFS/sources
tar -zxvf gettext-0.17.tar.gz
cd gettext-0.17
cd gettext-tools
./configure --prefix=/tools --disable-shared
make -C gnulib-lib
make -C src msgfmt
cp -v src/msgfmt /tools/bin


cd $LFS/sources
tar -jxvf grep-2.5.3.tar.bz2
cd grep-2.5.3
./configure --prefix=/tools \
    --disable-perl-regexp \
    --without-included-regex
make
make install


cd $LFS/sources
tar -zxvf gzip-1.3.12.tar.gz
cd gzip-1.3.12
for file in gzip.c lib/utimens.{c,h} ; do \
   cp -v $file{,.orig}
   sed 's/futimens/gl_&/' $file.orig > $file
done
./configure --prefix=/tools
make
make install


cd $LFS/sources
tar -jxvf m4-1.4.12.tar.bz2
cd m4-1.4.12
./configure --prefix=/tools
make
make install


cd $LFS/sources
tar -jxvf make-3.81.tar.bz2
cd make-3.81
./configure --prefix=/tools
make
make install


cd $LFS/sources
tar -zxvf patch-2.5.4.tar.gz
cd patch-2.5.4
./configure --prefix=/tools
make
make install


cd $LFS/sources
tar -zxvf perl-5.10.0.tar.gz
cd perl-5.10.0
patch -Np1 -i ../perl-5.10.0-consolidated-1.patch
sh Configure -des -Dprefix=/tools \
                  -Dstatic_ext='Data/Dumper Fcntl IO POSIX'
make perl utilities ext/Errno/pm_to_blib
cp -v perl pod/pod2man /tools/bin
mkdir -pv /tools/lib/perl5/5.10.0
cp -Rv lib/* /tools/lib/perl5/5.10.0


cd $LFS/sources
tar -zxvf sed-4.1.5.tar.gz
cd sed-4.1.5
./configure --prefix=/tools
make
make install


cd $LFS/sources
tar -jxvf tar-1.20.tar.bz2
cd tar-1.20
./configure --prefix=/tools
make
make install


cd $LFS/sources
tar -zxvf texinfo-4.13a.tar.gz
cd texinfo-4.13
./configure --prefix=/tools
make
make install


cd $LFS/sources
tar -jxvf util-linux-ng-2.14.1.tar.bz2
cd util-linux-ng-2.14.1
./configure --prefix=/tools
make BLKID_LIBS="-lblkid -luuid" -C mount mount umount
make -C text-utils more
cp -v mount/{,u}mount text-utils/more /tools/bin


cd $LFS/sources
strip --strip-debug /tools/lib/*
strip --strip-unneeded /tools/{,s}bin/*
rm -rf /tools/{info,man}

exit
chown -R root:root $LFS/tools
mkdir -pv $LFS/{dev,proc,sys}
mknod -m 600 $LFS/dev/console c 5 1
mknod -m 666 $LFS/dev/null c 1 3
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys

chroot "$LFS" /tools/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /tools/bin/bash --login +h
mkdir -pv /{bin,boot,etc/opt,home,lib,mnt,opt}
mkdir -pv /{media/{floppy,cdrom},sbin,srv,var}
install -dv -m 0750 /root
install -dv -m 1777 /tmp /var/tmp
mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src}
mkdir -pv /usr/{,local/}share/{doc,info,locale,man}
mkdir -v  /usr/{,local/}share/{misc,terminfo,zoneinfo}
mkdir -pv /usr/{,local/}share/man/man{1..8}
for dir in /usr /usr/local; do
  ln -sv share/{man,doc,info} $dir
done
mkdir -v /var/{lock,log,mail,run,spool}
mkdir -pv /var/{opt,cache,lib/{misc,locate},local}
ln -sv /tools/bin/{bash,cat,echo,grep,pwd,stty} /bin
ln -sv /tools/bin/perl /usr/bin
ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib
ln -sv /tools/lib/libstdc++.so{,.6} /usr/lib
ln -sv bash /bin/sh
touch /etc/mtab
cat > /etc/passwd << "EOF"
root:x:0:0:root:/root:/bin/bash
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
EOF
cat > /etc/group << "EOF"
root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
tape:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
uucp:x:10:
audio:x:11:
video:x:12:
utmp:x:13:
usb:x:14:
cdrom:x:15:
mail:x:34:
nogroup:x:99:
EOF
exec /tools/bin/bash --login +h
touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
chgrp -v utmp /var/run/utmp /var/log/lastlog
chmod -v 664 /var/run/utmp /var/log/lastlog

cd /sources/linux-2.6.27.4
make mrproper
make headers_check
make INSTALL_HDR_PATH=dest headers_install
cp -rv dest/include/* /usr/include


cd /sources
tar -jxvf man-pages-3.11.tar.bz2
cd man-pages-3.11
make install


cd /sources
rm -fr glibc-2.8-20080929
rm -fr glibc-build
tar -jxvf glibc-2.8-20080929.tar.bz2
cd glibc-2.8-20080929
sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED
patch -Np1 -i ../glibc-2.8-20080929-iconv_tests-1.patch
patch -Np1 -i ../glibc-2.8-20080929-ildoubl_test-1.patch
sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
mkdir -v ../glibc-build
cd ../glibc-build
echo "CFLAGS += -march=i486 -mtune=native" > configparms
../glibc-2.8-20080929/configure --prefix=/usr \
    --disable-profile --enable-add-ons \
    --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
make
cp -v ../glibc-2.8-20080929/iconvdata/gconv-modules iconvdata
make -k check 2>&1 | tee glibc-check-log
grep Error glibc-check-log
touch /etc/ld.so.conf
make install
mkdir -pv /usr/lib/locale
localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
localedef -i de_DE -f ISO-8859-1 de_DE
localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
localedef -i de_DE -f UTF-8 de_DE.UTF-8
localedef -i en_HK -f ISO-8859-1 en_HK
localedef -i en_PH -f ISO-8859-1 en_PH
localedef -i en_US -f ISO-8859-1 en_US
localedef -i en_US -f UTF-8 en_US.UTF-8
localedef -i es_MX -f ISO-8859-1 es_MX
localedef -i fa_IR -f UTF-8 fa_IR
localedef -i fr_FR -f ISO-8859-1 fr_FR
localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
localedef -i it_IT -f ISO-8859-1 it_IT
localedef -i ja_JP -f EUC-JP ja_JP
localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
localedef -i zh_CN -f UTF-8 zh_CN.UTF-8
make localedata/install-locales
cat > /etc/nsswitch.conf << "EOF"
# Begin /etc/nsswitch.conf

passwd: files
group: files
shadow: files

hosts: files dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

# End /etc/nsswitch.conf
EOF
cp -v --remove-destination /usr/share/zoneinfo/Asia/Shanghai \
    /etc/localtime
cat > /etc/ld.so.conf << "EOF"
# Begin /etc/ld.so.conf

/usr/local/lib
/opt/lib

# End /etc/ld.so.conf
EOF


cd /sources
mv -v /tools/bin/{ld,ld-old}
mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
mv -v /tools/bin/{ld-new,ld}
ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld
gcc -dumpspecs | sed \
    -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' \
    -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \
    -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > \
    `dirname $(gcc --print-libgcc-file-name)`/specs


rm -fr glibc-2.8-20080929
rm -fr glibc-build
rm -fr binutils-2.18
rm -fr binutils-build
tar -jxvf binutils-2.18.tar.bz2
cd binutils-2.18
patch -Np1 -i ../binutils-2.18-configure-1.patch
patch -Np1 -i ../binutils-2.18-GCC43-1.patch
rm -fv etc/standards.info
sed -i.bak '/^INFO/s/standards.info //' etc/Makefile.in
mkdir -v ../binutils-build
cd ../binutils-build
../binutils-2.18/configure --prefix=/usr \
    --enable-shared
make tooldir=/usr
make tooldir=/usr install
cp -v ../binutils-2.18/include/libiberty.h /usr/include


cd /sources
tar -jxvf gmp-4.2.4.tar.bz2
cd gmp-4.2.4
./configure --prefix=/usr --enable-cxx --enable-mpbsd
make
make install
mkdir -v /usr/share/doc/gmp-4.2.4
cp    -v doc/{isa_abi_headache,configuration} doc/*.html \
         /usr/share/doc/gmp-4.2.4


cd /sources
tar -jxvf mpfr-2.3.2.tar.bz2
cd mpfr-2.3.2
./configure --prefix=/usr --enable-thread-safe
make
make install


cd /sources
rm -fr gcc-4.3.2
tar -jxvf gcc-4.3.2.tar.bz2
cd gcc-4.3.2
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
sed -i 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
mkdir -v ../gcc-build
cd ../gcc-build
../gcc-4.3.2/configure --prefix=/usr \
    --libexecdir=/usr/lib --enable-shared \
    --enable-threads=posix --enable-__cxa_atexit \
    --enable-clocale=gnu --enable-languages=c,c++ \
    --disable-bootstrap
make
make install
ln -sv ../usr/bin/cpp /lib
ln -sv gcc /usr/bin/cc


cd /sources
rm -fr gcc-4.3.2
rm -fr gcc-build
tar -zxvf db-4.7.25.tar.gz
cd db-4.7.25
patch -Np1 -i ../db-4.7.25-upstream_fixes-1.patch
cd build_unix
../dist/configure --prefix=/usr --enable-compat185 --enable-cxx
make
make docdir=/usr/share/doc/db-4.7.25 install
chown -Rv root:root /usr/share/doc/db-4.7.25


cd /sources
cd sed-4.1.5
./configure --prefix=/usr --bindir=/bin --enable-html
make clean
make
make install


cd /sources
cd e2fsprogs-1.41.3
sed -i 's@/bin/rm@/tools&@' lib/blkid/test_probe.in
rm -fr build
mkdir -v build
cd build
../configure --prefix=/usr --with-root-prefix="" \
    --enable-elf-shlibs
make
make install
make install-libs
chmod -v u+w /usr/lib/{libblkid,libcom_err,libe2p,libext2fs,libss,libuuid}.a
gunzip -v /usr/share/info/libext2fs.info.gz
install-info --dir-file=/usr/share/info/dir \
             /usr/share/info/libext2fs.info
makeinfo -o      doc/com_err.info ../lib/et/com_err.texinfo
install -v -m644 doc/com_err.info /usr/share/info
install-info --dir-file=/usr/share/info/dir \
             /usr/share/info/com_err.info
install -v -m644 -D ../doc/libblkid.txt \
        /usr/share/doc/e2fsprogs-1.41.3/libblkid.txt


cd /sources
rm -fr coreutils-6.12
tar -zxvf coreutils-6.12.tar.gz
cd coreutils-6.12
patch -Np1 -i ../coreutils-6.12-uname-1.patch
patch -Np1 -i ../coreutils-6.12-old_build_kernel-1.patch
patch -Np1 -i ../coreutils-6.12-i18n-2.patch
./configure --prefix=/usr --enable-install-program=hostname --enable-no-install-program=kill,uptime
make
echo "dummy:x:1000:nobody" >> /etc/group
chown -Rv nobody config.log {gnulib-tests,lib,src}/.deps
su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"
sed -i '/dummy/d' /etc/group
make install
mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
mv -v /usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} /bin
mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
mv -v /usr/bin/chroot /usr/sbin
mv -v /usr/bin/{head,sleep,nice} /bin


cd /sources
tar -jxvf iana-etc-2.30.tar.bz2
cd iana-etc-2.3
make
make install


cd /sources
cd m4-1.4.12
./configure --prefix=/usr --enable-threads
make clean
make
make install


cd /sources
tar -jxvf bison-2.3.tar.bz2
cd bison-2.3
./configure --prefix=/usr
echo '#define YYENABLE_NLS 1' >> config.h
make
make install


cd /sources
cd ncurses-5.6
patch -Np1 -i ../ncurses-5.6-coverity_fixes-1.patch
./configure --prefix=/usr --with-shared --without-debug --enable-widec
make clean
make
make install
chmod -v 644 /usr/lib/libncurses++w.a
mv -v /usr/lib/libncursesw.so.5* /lib
ln -sfv ../../lib/libncursesw.so.5 /usr/lib/libncursesw.so
for lib in curses ncurses form panel menu ; do \
    rm -vf /usr/lib/lib${lib}.so ; \
    echo "INPUT(-l${lib}w)" >/usr/lib/lib${lib}.so ; \
    ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ; \
done
ln -sfv libncurses++w.a /usr/lib/libncurses++.a
rm -vf /usr/lib/libcursesw.so
echo "INPUT(-lncursesw)" >/usr/lib/libcursesw.so
ln -sfv libncurses.so /usr/lib/libcurses.so
ln -sfv libncursesw.a /usr/lib/libcursesw.a
ln -sfv libncurses.a /usr/lib/libcurses.a
mkdir -v       /usr/share/doc/ncurses-5.6
cp -v -R doc/* /usr/share/doc/ncurses-5.6


cd /sources
tar -zxvf procps-3.2.7.tar.gz
cd procps-3.2.7
patch -Np1 -i ../procps-3.2.7-watch_unicode-1.patch
make
make install


cd /sources
tar -zxvf libtool-2.2.6a.tar.gz
cd libtool-2.2.6
./configure --prefix=/usr
make
make install


cd /sources
tar -jxvf zlib-1.2.3.tar.bz2
cd zlib-1.2.3
./configure --prefix=/usr --shared --libdir=/lib
make
make install
rm -v /lib/libz.so
ln -sfv ../../lib/libz.so.1.2.3 /usr/lib/libz.so
make clean
./configure --prefix=/usr
make
make install
chmod -v 644 /usr/lib/libz.a


cd /sources
rm -fr perl-5.10.0
tar -zxvf perl-5.10.0.tar.gz
cd perl-5.10.0
echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
patch -Np1 -i ../perl-5.10.0-consolidated-1.patch
sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|"           \
       -e "s|INCLUDE\s*= ./zlib-src|INCLUDE    = /usr/include|" \
       -e "s|LIB\s*= ./zlib-src|LIB        = /usr/lib|"         \
    ext/Compress/Raw/Zlib/config.in
sh Configure -des -Dprefix=/usr \
                  -Dvendorprefix=/usr           \
                  -Dman1dir=/usr/share/man/man1 \
                  -Dman3dir=/usr/share/man/man3 \
                  -Dpager="/usr/bin/less -isR"
make
make install


cd /sources
tar -zxvf readline-5.2.tar.gz
cd readline-5.2
sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install
patch -Np1 -i ../readline-5.2-fixes-5.patch
./configure --prefix=/usr --libdir=/lib
make SHLIB_LIBS=-lncurses
make install
mv -v /lib/lib{readline,history}.a /usr/lib
rm -v /lib/lib{readline,history}.so
ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so
ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so
mkdir   -v       /usr/share/doc/readline-5.2
install -v -m644 doc/*.{ps,pdf,html,dvi} \
                 /usr/share/doc/readline-5.2


cd /sources
tar -jxvf autoconf-2.63.tar.bz2
cd autoconf-2.63
./configure --prefix=/usr
make
make install


cd /sources
tar -jxvf automake-1.10.1.tar.bz2
cd automake-1.10.1
patch -Np1 -i ../automake-1.10.1-test_fix-1.patch
./configure --prefix=/usr --docdir=/usr/share/doc/automake-1.10.1
make
make install


cd /sources
cd bash-3.2
tar -xvf ../bash-doc-3.2.tar.gz
sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-3.2|" \
    Makefile.in
patch -Np1 -i ../bash-3.2-fixes-8.patch
./configure --prefix=/usr --bindir=/bin \
    --without-bash-malloc --with-installed-readline ac_cv_func_working_mktime=yes
make clean
make
make install
exec /bin/bash --login +h


cd /sources
cd bzip2-1.0.5
patch -Np1 -i ../bzip2-1.0.5-install_docs-1.patch
make clean
make -f Makefile-libbz2_so
make clean
make
make PREFIX=/usr install
cp -v bzip2-shared /bin/bzip2
cp -av libbz2.so* /lib
ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
rm -v /usr/bin/{bunzip2,bzcat,bzip2}
ln -sv bzip2 /bin/bunzip2
ln -sv bzip2 /bin/bzcat


cd /sources
cd diffutils-2.8.1
patch -Np1 -i ../diffutils-2.8.1-i18n-1.patch
touch man/diff.1
./configure --prefix=/usr
make clean
make
make install


cd /sources
tar -zxvf file-4.26.tar.gz
cd file-4.26
sed -i -e '197,+1d' \
       -e '189,+1d' \
       -e 's/token$/tokens/' doc/file.man
./configure --prefix=/usr
make
make install


cd /sources
cd gawk-3.1.6
./configure --prefix=/usr --libexecdir=/usr/lib \
   ac_cv_func_working_mktime=yes
make clean
make
make install
mkdir -v /usr/share/doc/gawk-3.1.6
cp    -v doc/{awkforai.txt,*.{eps,pdf,jpg}} \
         /usr/share/doc/gawk-3.1.6


cd /sources
cd findutils-4.4.0
./configure --prefix=/usr --libexecdir=/usr/lib/findutils \
    --localstatedir=/var/lib/locate
make clean
make
make install
mv -v /usr/bin/find /bin
sed -i -e 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb


cd /sources
tar -jxvf flex-2.5.35.tar.bz2
cd flex-2.5.35
./configure --prefix=/usr
make
make install
ln -sv libfl.a /usr/lib/libl.a
cat > /usr/bin/lex << "EOF"
#!/bin/sh
# Begin /usr/bin/lex

exec /usr/bin/flex -l "$@"

# End /usr/bin/lex
EOF
chmod -v 755 /usr/bin/lex
mkdir -v /usr/share/doc/flex-2.5.35
cp    -v doc/flex.pdf \
         /usr/share/doc/flex-2.5.35


cd /sources
tar -zxvf grub-0.97.tar.gz
cd grub-0.97
patch -Np1 -i ../grub-0.97-disk_geometry-1.patch
patch -Np1 -i ../grub-0.97-256byte_inode-1.patch
./configure --prefix=/usr
make
make install
mkdir -v /boot/grub
cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub


cd /sources
cd gettext-0.17
./configure --prefix=/usr \
            --docdir=/usr/share/doc/gettext-0.17
make clean
make
make install


cd /sources
cd grep-2.5.3
patch -Np1 -i ../grep-2.5.3-debian_fixes-1.patch
patch -Np1 -i ../grep-2.5.3-upstream_fixes-1.patch
./configure --prefix=/usr \
    --bindir=/bin \
    --without-included-regex
make clean
make
make install


cd /sources
tar -zxvf groff-1.18.1.4.tar.gz
cd groff-1.18.1.4
patch -Np1 -i ../groff-1.18.1.4-debian_fixes-1.patch
sed -i -e 's/2010/002D/' -e 's/2212/002D/' \
    -e 's/2018/0060/' -e 's/2019/0027/' font/devutf8/R.proto
PAGE=<paper_size> ./configure --prefix=/usr --enable-multibyte
make
make docdir=/usr/share/doc/groff-1.18.1.4 install
ln -sv eqn /usr/bin/geqn
ln -sv tbl /usr/bin/gtbl


cd /sources
rm -fr gzip-1.3.12
tar -zxvf gzip-1.3.12.tar.gz
cd gzip-1.3.12
sed -i 's/futimens/gl_&/' gzip.c lib/utimens.{c,h}
./configure --prefix=/usr --bindir=/bin
make
make install
mv -v /bin/{gzexe,uncompress,zcmp,zdiff,zegrep} /usr/bin
mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin


cd /sources
tar -zxvf inetutils-1.5.tar.gz
cd inetutils-1.5
patch -Np1 -i ../inetutils-1.5-no_server_man_pages-2.patch
sed -i 's@<sys/types.h>@<sys/types.h>\n#include <stdlib.h>@' \
    libicmp/icmp_timestamp.c
./configure --prefix=/usr --libexecdir=/usr/sbin \
    --sysconfdir=/etc --localstatedir=/var \
    --disable-ifconfig --disable-logger --disable-syslogd \
    --disable-whois --disable-servers
make
make install
mv -v /usr/bin/ping /bin


cd /sources
tar -jxvf iproute2-2.6.26.tar.bz2
cd iproute2-2.6.26
make DESTDIR= SBINDIR=/sbin
make DESTDIR= SBINDIR=/sbin MANDIR=/usr/share/man \
     DOCDIR=/usr/share/doc/iproute2-2.6.26 install
mv -v /sbin/arpd /usr/sbin


cd /sources
tar -zxvf kbd-1.14.1.tar.gz
cd kbd-1.14.1
patch -Np1 -i ../kbd-1.14.1-backspace-1.patch
sed -i -e '1i KEYCODES_PROGS = @KEYCODES_PROGS@' \
    -e '1i RESIZECONS_PROGS = @RESIZECONS_PROGS@' src/Makefile.in
var=OPTIONAL_PROGS
sed -i "s/ifdef $var/ifeq (\$($var),yes)/" man/Makefile.in
unset var
./configure --prefix=/usr --datadir=/lib/kbd
make
make install
mv -v /usr/bin/{kbd_mode,loadkeys,openvt,setfont} /bin
mkdir -v /usr/share/doc/kbd-1.14.1
cp -R -v doc/* \
         /usr/share/doc/kbd-1.14.1


cd /sources
tar -zxvf less-418.tar.gz
cd less-418
./configure --prefix=/usr --sysconfdir=/etc
make
make install


cd /sources
cd make-3.81
./configure --prefix=/usr
make clean
make
make install


cd /sources
tar -zxvf man-db-2.5.2.tar.gz
cd man-db-2.5.2
sed -i -e '\%\t/usr/man%d' -e '\%\t/usr/local/man%d' src/man_db.conf.in
./configure --prefix=/usr --libexecdir=/usr/lib \
    --sysconfdir=/etc --disable-setuid \
    --enable-mb-groff --with-browser=/usr/bin/lynx \
    --with-col=/usr/bin/col --with-vgrind=/usr/bin/vgrind \
    --with-grap=/usr/bin/grap
make
make install
cat >> convert-mans << "EOF"
#!/bin/sh -e
FROM="$1"
TO="$2"
shift ; shift
while [ $# -gt 0 ]
do
        FILE="$1"
        shift
        iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
        mv .tmp.iconv "$FILE"
done
EOF
install -m755 convert-mans  /usr/bin


cd /sources
tar -jxvf module-init-tools-3.4.1.tar.bz2
cd module-init-tools-3.4.1
patch -Np1 -i ../module-init-tools-3.4.1-manpages-1.patch
./configure --prefix=/ --enable-zlib --mandir=/usr/share/man
make
make INSTALL=install install



cd /sources
cd patch-2.5.4
./configure --prefix=/usr
make clean
make
make install


cd /sources
tar -zxvf psmisc-22.6.tar.gz
cd psmisc-22.6
./configure --prefix=/usr --exec-prefix=""
make
make install
mv -v /bin/pstree* /usr/bin
ln -sv killall /bin/pidof


cd /sources
tar -jxvf shadow-4.1.2.1.tar.bz2
cd shadow-4.1.2.1
sed -i 's/groups$(EXEEXT) //' src/Makefile.in
find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
for i in de es fi fr id it pt_BR; do
    convert-mans UTF-8 ISO-8859-1 man/${i}/*.?
done

for i in cs hu pl; do
    convert-mans UTF-8 ISO-8859-2 man/${i}/*.?
done

convert-mans UTF-8 EUC-JP man/ja/*.?
convert-mans UTF-8 KOI8-R man/ru/*.?
convert-mans UTF-8 ISO-8859-9 man/tr/*.?
sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD MD5@' \
       -e 's@/var/spool/mail@/var/mail@' etc/login.defs
./configure --sysconfdir=/etc
make
make install
mv -v /usr/bin/passwd /bin
pwconv
grpconv
passwd root


cd /sources
tar -zxvf sysklogd-1.5.tar.gz
cd sysklogd-1.5
make
make install
cat > /etc/syslog.conf << "EOF"
# Begin /etc/syslog.conf

auth,authpriv.* -/var/log/auth.log
*.*;auth,authpriv.none -/var/log/sys.log
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log
*.emerg *

# End /etc/syslog.conf
EOF


cd /sources
tar -zxvf sysvinit-2.86.tar.gz
cd sysvinit-2.86
sed -i 's@Sending processes@& configured via /etc/inittab@g' \
    src/init.c
sed -i -e 's/utmpdump wall/utmpdump/' \
       -e 's/mountpoint.1 wall.1/mountpoint.1/' src/Makefile
make -C src
make -C src install
cat > /etc/inittab << "EOF"
# Begin /etc/inittab

id:3:initdefault:

si::sysinit:/etc/rc.d/init.d/rc sysinit

l0:0:wait:/etc/rc.d/init.d/rc 0
l1:S1:wait:/etc/rc.d/init.d/rc 1
l2:2:wait:/etc/rc.d/init.d/rc 2
l3:3:wait:/etc/rc.d/init.d/rc 3
l4:4:wait:/etc/rc.d/init.d/rc 4
l5:5:wait:/etc/rc.d/init.d/rc 5
l6:6:wait:/etc/rc.d/init.d/rc 6

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

su:S016:once:/sbin/sulogin

1:2345:respawn:/sbin/agetty tty1 9600
2:2345:respawn:/sbin/agetty tty2 9600
3:2345:respawn:/sbin/agetty tty3 9600
4:2345:respawn:/sbin/agetty tty4 9600
5:2345:respawn:/sbin/agetty tty5 9600
6:2345:respawn:/sbin/agetty tty6 9600

# End /etc/inittab
EOF


cd /sources
cd tar-1.20
./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin
make clean
make
make install


cd /sources
cd texinfo-4.13
./configure --prefix=/usr
make clean
make
make install
make TEXMF=/usr/share/texmf install-tex
cd /usr/share/info
rm dir
for f in *
do install-info $f dir 2>/dev/null
done


cd /sources
tar -jxvf udev-130.tar.bz2
cd udev-130
tar -xvf ../udev-config-20081015.tar.bz2
install -dv /lib/{firmware,udev/devices/{pts,shm}}
mknod -m0666 /lib/udev/devices/null c 1 3
mknod -m0600 /lib/udev/devices/kmsg c 1 11
ln -sv /proc/self/fd /lib/udev/devices/fd
ln -sv /proc/self/fd/0 /lib/udev/devices/stdin
ln -sv /proc/self/fd/1 /lib/udev/devices/stdout
ln -sv /proc/self/fd/2 /lib/udev/devices/stderr
ln -sv /proc/kcore /lib/udev/devices/core
./configure --prefix=/usr \
            --exec-prefix= \
            --sysconfdir=/etc
make
make install
install -m644 -v rules/packages/64-*.rules \
    /lib/udev/rules.d/
install -m644 -v rules/packages/40-pilot-links.rules \
    /lib/udev/rules.d/
cd udev-config-20081015
make install
make install-doc
make install-extra-doc
cd ..
install -m644 -v -D docs/writing_udev_rules/index.html \
    /usr/share/doc/udev-130/index.html


cd /sources
cd util-linux-ng-2.14.1
sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
    -i $(grep -rl '/etc/adjtime' .)
mkdir -pv /var/lib/hwclock
./configure --enable-arch --enable-partx --enable-write
make clean
make
make install


cd /sources
tar -jxvf vim-7.2.tar.bz2
cd vim72
patch -Np1 -i ../vim-7.2-fixes-3.patch
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
./configure --prefix=/usr --enable-multibyte
make
make install
ln -sv vim /usr/bin/vi
for L in  /usr/share/man/{,*/}man1/vim.1; do
    ln -sv vim.1 $(dirname $L)/vi.1
done
ln -sv ../vim/vim72/doc /usr/share/doc/vim-7.2
cat > /etc/vimrc << "EOF"
" Begin /etc/vimrc

set nocompatible
set backspace=2
syntax on
if (&term == "iterm") || (&term == "putty")
  set background=dark
endif

" End /etc/vimrc
EOF


logout
chroot $LFS /tools/bin/env -i \
    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    /tools/bin/bash --login
/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
  -exec /tools/bin/strip --strip-debug '{}' ';'

logout
chroot "$LFS" /usr/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    /bin/bash --login
rm -fr tools/


cd /sources
tar -jxvf lfs-bootscripts-20081031.tar.bz2
cd lfs-bootscripts-20081031
make install


cat > /etc/sysconfig/clock << "EOF"
# Begin /etc/sysconfig/clock

UTC=1

# End /etc/sysconfig/clock
EOF


cat > /etc/sysconfig/console << "EOF"
# Begin /etc/sysconfig/console

KEYMAP="pl2"
FONT="lat2a-16 -m 8859-2"

# End /etc/sysconfig/console
EOF


cat > /etc/inputrc << "EOF"
# Begin /etc/inputrc
# Modified by Chris Lynn <roryo@roryo.dynup.net>

# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off

# Enable 8bit input
set meta-flag On
set input-meta On

# Turns off 8th bit stripping
set convert-meta Off

# Keep the 8th bit for display
set output-meta On

# none, visible or audible
set bell-style none

# All of the following map the escape sequence of the value
# contained in the 1st argument to the readline specific functions
"\eOd": backward-word
"\eOc": forward-word

# for linux console
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert

# for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line

# for Konsole
"\e[H": beginning-of-line
"\e[F": end-of-line

# End /etc/inputrc
EOF


cat > /etc/profile << "EOF"
# Begin /etc/profile

export LANG=zh_CN.utf8

# End /etc/profile
EOF


echo "HOSTNAME=lfs" > /etc/sysconfig/network


cat > /etc/hosts << "EOF"
# Begin /etc/hosts (no network card version)

127.0.0.1 lfs.ubuntu lfs localhost

# End /etc/hosts (no network card version)
EOF


cat > /etc/udev/rules.d/83-duplicate_devs.rules << "EOF"

# Persistent symlinks for webcam and tuner
KERNEL=="video*", ATTRS{idProduct}=="1910", ATTRS{idVendor}=="0d81", \
    SYMLINK+="webcam"
KERNEL=="video*", ATTRS{device}=="0x036f", ATTRS{vendor}=="0x109e", \
    SYMLINK+="tvtuner"

EOF


for NIC in /sys/class/net/* ; do
    INTERFACE=${NIC##*/} udevadm test --action=add --subsystem=net $NIC
done


cd /etc/sysconfig/network-devices
mkdir -v ifconfig.eth0
cat > ifconfig.eth0/ipv4 << "EOF"
ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.1.2
GATEWAY=192.168.1.1
PREFIX=24
BROADCAST=192.168.1.255
EOF


cat > /etc/resolv.conf << "EOF"
# Begin /etc/resolv.conf

domain example.org
nameserver 192.168.1.1
nameserver 192.168.1.254

# End /etc/resolv.conf
EOF


cat > /etc/fstab << "EOF"
# Begin /etc/fstab

# file system  mount-point  type   options         dump  fsck
#                                                        order

/dev/sda1     /            <fff>  defaults        1     1
/dev/sda2     swap         swap   pri=1           0     0
proc           /proc        proc   defaults        0     0
sysfs          /sys         sysfs  defaults        0     0
devpts         /dev/pts     devpts gid=4,mode=620  0     0
tmpfs          /dev/shm     tmpfs  defaults        0     0
# End /etc/fstab
EOF


cd /sources
cd linux-2.6.27.4
make mrproper
make LANG=zh_CN.UTF-8 LC_ALL= menuconfig
make
make modules_install
cp -v arch/x86/boot/bzImage /boot/lfskernel-2.6.27.4
cp -v System.map /boot/System.map-2.6.27.4
cp -v .config /boot/config-2.6.27.4
install -d /usr/share/doc/linux-2.6.27.4
cp -r Documentation/* /usr/share/doc/linux-2.6.27.4


grub
root (hd1,0)
setup (hd1)
quit


cat > /boot/grub/menu.lst << "EOF"
# Begin /boot/grub/menu.lst

# By default boot the first menu entry.
default 0

# Allow 30 seconds before booting the default.
timeout 30

# Use prettier colors.
color green/black light-green/black

# The first entry is for LFS.
title LFS 6.4
root (hd0,0)
kernel /boot/lfskernel-2.6.27.4 root=/dev/sda1
EOF
mkdir -v /etc/grub
ln -sv /boot/grub/menu.lst /etc/grub


echo 6.4 > /etc/lfs-release

rm -fr /source
logout
umount -v $LFS/dev/pts
umount -v $LFS/dev/shm
umount -v $LFS/dev
umount -v $LFS/proc
umount -v $LFS/sys
umount -v $LFS


sudo apt-get install kvm
kvm /dev/sdb


页首
 用户资料  
 
2 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-21 13:44 
头像

注册: 2009-05-20 19:32
帖子: 2462
送出感谢: 0 次
接收感谢: 2
irc <fvw> say: lfs 最好在硬盘 下编译把 U损耗大 你这样用脚本编译 什么都没学到 不如安个debian直接


_________________
irc 聊天室
ubuntu-cn 的irc 频道为
irc.ubuntu.com 8001 #ubuntu-cn
UTF8编码 可用 irssi xchat pidgin weechat 登录

http://webchat.freenode.net/?channels=ubuntu-cn
irc://irc.freenode.net/ubuntu-cn


页首
 用户资料  
 
3 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-21 13:44 
头像

注册: 2007-05-06 2:46
帖子: 15634
送出感谢: 0 次
接收感谢: 2
编译

:em45


页首
 用户资料  
 
4 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-21 13:49 
论坛管理员

注册: 2005-03-27 0:06
帖子: 10116
系统: Ubuntu 12.04
送出感谢: 7
接收感谢: 128
O_O_BOT 写道:
irc <fvw> say: lfs 最好在硬盘 下编译把 U损耗大 你这样用脚本编译 什么都没学到 不如安个debian直接

呵呵,这个不是脚本,是参考LFS6.4的手册使用的命令记录而已,当然有些命令和手册的不完全一致,为了方便,做了一点点的调整。
虽然再改改,也可以修改为一个完整的脚本来跑。 :em01


页首
 用户资料  
 
5 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-21 13:53 
头像

注册: 2007-09-29 3:09
帖子: 5773
送出感谢: 0 次
接收感谢: 3
复制,粘贴...


_________________
HUNT Unfortunately No Talent...


页首
 用户资料  
 
6 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-21 14:02 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 272
折腾这干嘛呢?别是把论坛转这个了。那就是不稳定因素了。


_________________
● 鸣学


页首
 用户资料  
 
7 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-21 14:05 
论坛管理员

注册: 2005-03-27 0:06
帖子: 10116
系统: Ubuntu 12.04
送出感谢: 7
接收感谢: 128
eexpress 写道:
折腾这干嘛呢?别是把论坛转这个了。那就是不稳定因素了。

呵呵,困难度不算大,推荐新手尝试,可以对Linux组成有个非常感性的认识;最好参考LFS 6.4的手册,有过不去的地方,看我上面的记录,都是经过测试的,不会有问题,包括事先需要安装的软件包。

如果谁可以写一篇从零开始编译一个基于ubuntu的base系统,再加上编译安装上包管理器,就无敌了。


页首
 用户资料  
 
8 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-21 14:11 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 272
推荐新手尝试 :em20 :em20 :em20


_________________
● 鸣学


页首
 用户资料  
 
9 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-21 14:55 
头像

注册: 2008-04-26 12:41
帖子: 10974
送出感谢: 11
接收感谢: 38
:em45 :em45 :em45


_________________
[新手必读]wubi安装常见问题(FAQ)
[分享]装双系统的同学必看——Windows与Linux系统共享交换分区的方法
kde下唯美的暗黑内透主题(无需编译)
无穷老机上的Trinity Desktop Environment


页首
 用户资料  
 
10 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-22 3:28 
头像

注册: 2005-12-23 19:20
帖子: 1677
送出感谢: 0 次
接收感谢: 0 次
蛋疼的厉害阿 楼主


_________________
Kubuntu10.10& Windows 7 ultimate
Acer 4738ZG
Intel PM dual core P6100 2.00G
4G DDR1333
ATI Mobility Radeon HD5470
750G HDD
14.0 WXGA 1366×768


页首
 用户资料  
 
11 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-22 4:55 
头像

注册: 2008-02-15 0:09
帖子: 852
送出感谢: 0 次
接收感谢: 0 次
我只想知道安装好基本系统要多久,编译太费时间。


_________________
Somebody think they are full of niubility, so they play a zhuangbility, but only reflect their shability.


页首
 用户资料  
 
12 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-07-23 23:50 

注册: 2008-11-13 16:03
帖子: 817
送出感谢: 0 次
接收感谢: 0 次
与其LFS 不如 chroot


_________________
HP ProBook4321s,I3+ATI
OS : Fedora + Debian

http://box-look.org/


页首
 用户资料  
 
13 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-09-22 10:07 
头像

注册: 2007-09-10 20:20
帖子: 1352
地址: 南京
系统: Debian
送出感谢: 0 次
接收感谢: 0 次
推荐新手尝试


页首
 用户资料  
 
14 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-09-23 9:27 
头像

注册: 2008-06-22 13:38
帖子: 1627
地址: 武汉
送出感谢: 0 次
接收感谢: 0 次
ebok 写道:
我只想知道安装好基本系统要多久,编译太费时间。

想知道具体花了多少时间?


_________________
mint+gnome


页首
 用户资料  
 
15 楼 
 文章标题 : Re: Ubuntu下安装LFS手记
帖子发表于 : 2009-10-01 8:52 

注册: 2008-10-31 22:12
帖子: 6546
系统: 践兔
送出感谢: 18
接收感谢: 25
我从来不test/check
呵呵


_________________
代码:
] ls -ld //


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 26 篇帖子 ]  前往页数 1, 2  下一页

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译