Chinaunix首页 | 论坛 | 博客
  • 博客访问: 852009
  • 博文数量: 90
  • 博客积分: 766
  • 博客等级: 军士长
  • 技术积分: 1867
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-18 08:42
个人简介

linux

文章分类

全部博文(90)

文章存档

2021年(2)

2020年(2)

2017年(1)

2015年(11)

2014年(1)

2013年(53)

2012年(16)

2011年(4)

分类: 系统运维

2013-05-09 22:16:46

        按转sysklogd:

点击(此处)折叠或打开

  1. make
  2. make BINDIR=/sbin install

  3. cat > /etc/syslog.conf << \"EOF\"
  4. # Begin /etc/syslog.conf

  5. auth,authpriv.* -/var/log/auth.log
  6. *.*;auth,authpriv.none -/var/log/sys.log
  7. daemon.* -/var/log/daemon.log
  8. kern.* -/var/log/kern.log
  9. mail.* -/var/log/mail.log
  10. user.* -/var/log/user.log
  11. *.emerg *

  12. # End /etc/syslog.conf
  13. EOF

       安装sysvinit:

点击(此处)折叠或打开

  1. sed -i \'s@Sending processes@& configured via /etc/inittab@g\' \\
  2.     src/init.c
  3. sed -i -e \'s/utmpdump wall/utmpdump/\' \\
  4.        -e \'s/mountpoint.1 wall.1/mountpoint.1/\' src/Makefile

  5. make -C src
  6. make -C src install

        建立/etc/inittab文件:

点击(此处)折叠或打开

  1. cat > /etc/inittab << \"EOF\"
  2. # Begin /etc/inittab

  3. id:3:initdefault:

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

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

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

  13. su:S016:once:/sbin/sulogin

  14. 1:2345:respawn:/sbin/agetty tty1 9600
  15. 2:2345:respawn:/sbin/agetty tty2 9600
  16. 3:2345:respawn:/sbin/agetty tty3 9600
  17. 4:2345:respawn:/sbin/agetty tty4 9600
  18. 5:2345:respawn:/sbin/agetty tty5 9600
  19. 6:2345:respawn:/sbin/agetty tty6 9600

  20. # End /etc/inittab
  21. EOF
        安装tar:

点击(此处)折叠或打开

  1. ./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin
  2. make
  3. make check
  4. make install
        安装texinfo:

点击(此处)折叠或打开

  1. ./configure --prefix=/usr
  2. make
  3. make check
  4. make install
  5. make TEXMF=/usr/share/texmf install-tex
    cd /usr/share/info
    rm -v dir
    for f in *
    do install-info $f dir 2>/dev/null
    done


        安装udev:

点击(此处)折叠或打开

  1. tar -xvf ../udev-config-20100128.tar.bz2

  2. install -dv /lib/{firmware,udev/devices/{pts,shm}}
  3. mknod -m0666 /lib/udev/devices/null c 1 3
  4. ln -sv /proc/self/fd /lib/udev/devices/fd
  5. ln -sv /proc/self/fd/0 /lib/udev/devices/stdin
  6. ln -sv /proc/self/fd/1 /lib/udev/devices/stdout
  7. ln -sv /proc/self/fd/2 /lib/udev/devices/stderr
  8. ln -sv /proc/kcore /lib/udev/devices/core

  9. ./configure --prefix=/usr \\
  10.     --sysconfdir=/etc --sbindir=/sbin \\
  11.     --with-rootlibdir=/lib --libexecdir=/lib/udev \\
  12.     --docdir=/usr/share/doc/udev-151 \\
  13.     --disable-extras --disable-introspection
  14. make
  15. make install

  16. install -m644 -v rules/packages/64-*.rules \\
  17.     /lib/udev/rules.d
  18. install -m644 -v rules/packages/40-pilot-links.rules \\
  19.     /lib/udev/rules.d/
  20. install -m644 -v rules/packages/40-isdn.rules \\
  21.     /lib/udev/rules.d/
  22. cd udev-config-20100128
  23. make install
  24. make install-doc

        安装vim:

点击(此处)折叠或打开

  1. patch -Np1 -i ../vim-7.2-fixes-5.patch
  2. echo \'#define SYS_VIMRC_FILE \"/etc/vimrc\"\' >> src/feature.h

  3. ./configure --prefix=/usr --enable-multibyte
  4. make
  5. make test
  6. make install

  7. ln -sv vim /usr/bin/vi
  8. for L in /usr/share/man/{,*/}man1/vim.1; do
  9.     ln -sv vim.1 $(dirname $L)/vi.1
  10. ln -sv ../vim/vim72/doc /usr/share/doc/vim-7.2

  11. cat > /etc/vimrc << \"EOF\"
  12. \" Begin /etc/vimrc

  13. set nocompatible
  14. set backspace=2
  15. syntax on
  16. if (&term == \"iterm\") || (&term == \"putty\")
  17.   set background=dark
  18. endif

  19. \" End /etc/vimrc
  20. EOF

  21. vim -c \':options\'
  22. done



阅读(2292) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~