-------------------------------------------------- ---------------------------------- ********** Step 1, in large systems Mplayer ********* ------------------------------------- ---------------------------------------- 1, install Live (Live.2004.04. 23. Tar.gz) #. / Genmakefiles linux # make # cp -r / home / xlmg / limited / usr / lib / ---------------------- ---------------------------------- Two, build MPLAYER's number of directory 1, Font Library Font # mkdir -P / USR / Share / MPlayer / Font # tar jxvf /Home/xlmg/gb2312-kai.tar.bz2#cp -rf / home / xlmg / GB2312-Kai / USR / Share / MPLAYER / FONT / 2, Skin # mkdir - P / usr / share / mplayer / skin / default # tar jxvf /Home/xlmg/blue-1.4.tar.bz2#cp -rf / home / xlmg / blue / * / usr / share / mplayer / skin / default / 3 , Decoding codecs # mkdir -p / usr / local / lib / codecs / rp # tar jxvf /Home/XLMG / ALL-20040916 / * / USR / local / lib / codecs # tar jxvf /Home/xlmg/rp9codecs-20040626.tar.bz2#cp / home / xlmg / rp9codecs-20040626 / * / usr / local / lib / codecs / rp / # mkdir -p / usr / local / liba / CODECS / WIN32 ---------------------------------------------- ---------- Third, install MPLAYER (MPlayer- 1.0pre5.tar.bz2) 1, configure #. / Configure --enable-gui --enable-live --with-limited --enable-correl --enable-network --DATADIR = / usr / share / mplayer --libdir = / usr / local / lib / codecs --Language = en --with-reallibdir = / usr / local / lib / codecs / rp --with-win32libdir = / usr / local / LIB / CODECS / WIN322, MAKE3, Make Install4, Copy Subfont.ttf # cp Subfont.ttf / ROOT/.MPLAYER/------------------------------------------------------------------------------------------------------------------------------------ -------------------------------- Four, use MPlayer to open the terminal in XWindows, execute: gmplayer rtsp: // server_ip / 001.RM or GMPLAYER - FPS MMS: //server_ip/001.asf
Note: Uninstall MPLAYER [root @ okredhat mplayer-1.0pre5] # make uninstallRM -F / USR / local / bin / mplayer / usr / local / bin / gmplayer /usr/local/man/man1/MPlayer.1RM -F / USR / local / bin / mencoder /usr/local/man/man1/Mencoder.1Uninstall completed ------------------------------- -------------------------------------------------- ******* STEP 2, using busybox production small system command set ******** ------------------------ -------------------------------------------------- -------- # Make MenuConfig # make # make install / * busybox will generate 4 directory bin Linuxrc sbin usr * /
-------------------------------------------------- --------------------------------- ****** Step 3, create a small hard disk and deploy basic file system ******* ------------------------------------------- ----------------------------------------- First, add a small hard drive and partition 1, After adding a small hard disk, restart it. First partition # fdisk / dev / hdb / * Enter the FDISK interface * / 2, follow the FDISK control. 1P / * View partition table * / 2N / * Add new partition * / 31 then continuous Enter 2 times / * View Optional Partition Type * / 4a then Enter / * Give New Partition Plus Moga * / 5P / * View Partition Table * / 6W / * Write Partition Table * / 3, Format Small Hard Disk # MKFS .ext2 / dev / hdb14, check small hard disk partition form # fsck / dev / hdb15, hulls of small hard disks partition # mount / dev / hdb1 / mnt / 500 # CD / MNT / 500 --- -------------------------------------------------- --- Second, establish a small hard disk file system 1, build boot directory # mkdir -p / mnt / 500 / boot / grub # cp /boot/vmlinuz-2.4.20-8 / mnt / 500 / boot / / * this file Equivalent to bzimage * / 2, copy busybox compile results to small hard disks, and create other directories # MKDIR / MNT / 500 / ETC / MNT / 500 / MNT / MNT / 500 / Proc / MNT / 500 / TMP / MNT / 500 / VAR / MNT / 500 / USR / MNT / 500 / ROOT # cp -arf /Home/xlmg/busybox-1.00/examples/bootfloppy/etc/* / mnt / 500 / etc # cp -r / home / xlmg / busybox- 1.00 / _ Install / * / mnt / 500 / # cp -avr / dev / / / / / 500 / # cp -arf /Boot/grub/grub.conf / MNT / 500 / boot / grub / # cp -arf / boot / grub / GRUB / Stage? / mnt / 500 / boot / grub / --------------------------------------- ----------------- Third, let the small hard drive can guide 1, install GRUB # grub2 for small hard disks, do 1Root (HD1, 0) / * can press Tab under GRUB control Key View option * / 2setup (hd1) 3Quit3, edit grub.conf, content is as follows DEFAULT = 3timeout = 5TITLE DOT (HD0, 0) kernel /boot/vmlinuz-2.4.20-8 RO root = / dev / HDA1 VGA = 0x3114, test small system supported command # chroot / mnt / 500 / bin / sh / * can be tested with small hard disks (ie, hook C) command set, after Exit * /
-------------------------------------------------- -------------------------------- ****** STEP 4, restore network functions and read and write functions * ****** -------------------------------------------- ----------------------------------------- First, restore the network function network card driver /LIB/Modules/2.4.20-8/kernel/Drivers/net/ directory // * Note: Different network cards Different * // 1, first establish small system network card driver directory # mkdir -p / mnt / 500 /LIB/Modules/2.4.20-8/kernel/drivers/net2, copy network card driver (large system network card is PCNET32, using lsmod can be seen) # CD /LIB/Modules/2.4.20-8/kernel/drivers/net / # Cp mii.o / mnt/500/lib/modules/2.4.20-8/kernel/Drivers/net/ // * PCI network card needs it * // # CP PCNET32.O / MNT / 500 / lib / modules / 2.4.20-8/kernel/drivers/net/3, built module.conf file # Touch / mnt/500/etc/module.conf writes a sentence in this file: Alias Eth0 PCNET324, restart enter the small system, In the current console instantly load the network card, you can do the following: # CD lib / modules / 2.4.20-8 / kernel / drivers / net # insmod mii.o # insmod pcnet32.o // * When this network card is loaded * / / # Ifconfig eth0 10.3.39.15 Netmask 255.255.255.0 # Route Add Default GW 192.168.0.1 Second, recovery file system read and write function The following RCS file content is to make the file system to read and write mount -t ext2-t remount - O rw / dev / hda1 / / three, edit / mnt/500/etc/init.d / RCS file, write as follows #! / bin / shumount -amount -amount -t ext2 -o remount -o rw / dev / hda1 / / insmod /lib/modules/2.4.20-8/kernel/drivers/net / mii.oinSmod /Lib/Modules/2.4.20-8/kernel/drivers/net/pcnet32.oifconfig eth0 10.3.39.15 Netmask 255.255.255.0Route Add Default GW 10.3.39.254
-------------------------------------------------- ---------------------------------- ******* STEP 5, build X-Window * ****** -------------------------------------------- ---------------------------------------- 1, the font catalog # mkdir -p / usr / x11r6 / lib / x11 / fonts / misc2, copy MISC font After unlocking Misc.tar, all content is copied to / mnt / 500 / usr / x11r6 / lib / x11 / fonts / MISC. 3, copy Xserver directory # cp -r / usr / x11r6 / lib / x11 / xserver / mnt / 500 / usr / x11r6 / lib / x11 / 4, after entering the XFBDEV to / mnt / 500 / usr / sbin / in the small system, Implement XFBDEV-FP / USR / X11R6 / LIB / X11 / FONTS / MISC to enter Tinyx
-------------------------------------------------- ---------------------------------- ********* STEP 6, transplantabler ** ******* ------------------------------------------- ------------------------------------------- First, copy MPLAYER's skin , Font Library, Decoding, etc. # MKDIR -P / MNT / 500 / USR / Share / MPLAYER # mkdir -P / MNT / 500 / USR / local / lib / codecs # mkdir -p / mnt / 500 / usr / lib # cp - R / R / 500 / root / # cp -r / usr / share / mplayer / font / mst / 500 / usr / share / mplayer / # cp -r / usr / share / mplayer / SKIN / MNT / 500 / usr / share / mplayer / # cp -r / usr / local / lib / codecs / mnt / 500 / usr / local / lib / # cp -r / usr / lib / limited / mnt / 500 / usr / lib / # cp / usr / local / bin / * player / mnt / 500 / usr / bin / # cp / usr / local / bin / mencoder / mnt / 500 / usr / bin II, copy MPLAYER LDD Link Library #LDD / USR / local / bin / mplayer libmad.so.0 => /usr/lib/libmad.SO.0 (0x40017000) ............ / * The following omitted * / # more cpmpcp / usr /LIB/LIBVORBIS.SO.0 / MNT / 500 / USR / LIB /; CP /usR/LIB/Libogg.SO.0 / MNT / 500 / USR / lib /; cp /usr/lib/libpng12.so.0 / mnt / 500 / usr / lib /; cp /usr/lib/libz.so.1 / mnt / 500 / usr / lib /; cp /usr/lib/libjpeg.SO.62 / M NT / 500 / usr / lib /; cp /usr/lib/libfreetype.so.6 / mnt / 500 / usr / lib /; cp /lib/libtermcap.SO.2 / MNT / 500 / lib /; CP / USR /LIB/LIBSTDC .SO.5 / MNT / 500 / USR / LIB /; cp /lib/libnsl.so.1 / mnt / 500 / lib /; cp /usr/lib/libungiF.SO.4 / MNT / 500 / usr / lib /; cp /usr/lib/libfontconfig.SO.1 / mNT / 500 / usr / lib /; cp /usr/lib/libgtk-1.2.SO.0 / mNT / 500 / usr / lib /; Cp /usr/lib/libgdk-1.2.so.0 / mNT / 500 / usr / lib /; cp /usr/lib/libgmodule-1.2.SO.0 / MNT / 500 / USR / LIB /; CP / USR / LiB / libglib-1.2.SO.0 / mNT / 500 / usr / lib /; cp /lib/libdl.SO.2 / mNT / 500 / lib /; cp /usr/x11r6/lib/libxi.so.6 / MNT / 500 / USR / X11R6 / LiB /; cp /usr/x11r6/lib/libxext.SO.6 / MNT / 500 / USR / X11R6 / lib /; cp /usr/x11r6/lib/libx11.so.6 / MNT / 500 / USR / X11R6 / LiB /; CP /LIB/TLS/Libm.SO.6 / MNT / 500 / LIB / TLS /
Cp /usr/lib/libgl.SO.1 / mNT / 500 / usr / lib /; cp /usr/x11r6/1/lib/libxv.so.1 / mnt / 500 / usr / x11r6 / lib /; CP / USR / LiB / libsdl-1.2.SO.0 / mNT / 500 / usr / lib /; cp /lib/tls/libpthread.so.0 / mNT / 500 / lib / tls /; cp /usr/lib/libesd.so. 0 / mNT / 500 / USR / LIB /; CP /usR/LIB/Libaudiofile.SO.0 / MNT / 500 / USR / LIB /; CP /LIB/TLS/Libc.SO.6 / MNT / 500 / LIB / TLS /; cp /lib/libgcc_s.so.1 / mnt / 500 / lib /; cp /usr/lib/libexpat.so.0 / mNT / 500 / usr / lib /; cp /lib/ld-linux.so .2 / mnt/500/lib/ (/cpmp 3, copy Xfree86-libs / * Note: xfree86-libs contains the shared libraries required for running x copplications. * / # Cp /etc/ld.so.conf / MNT / 500 / ETC / * DLL LIBRARIES * / # MKDIR -P / MNT / 500 / USR / X11R6 / LIB / X11 / LOCALE / LIB # CP-RF / USR / X11R6 / LIB / X11 / LOCALE / LIB / COMMON / MNT / 500 / USR / X11R6 / LIB / X11 / LOCALE / LIB # cp /usr/x11r6/lib/lib*.so.? / mnt / 500 / usr / x11r6 / lib / # chroot / mnt / 500 / bin / SH / * Enter to small system command line * / # more lnxf86ln -sf /usr/x11r6/lib/libgl.so.1 /lib/libgl.so.1;ln -sf /usr/x11r6/lib/libglu.so .1 /lib/libglu.so.1;ln -sf /usr/x11r6/lib/libice.SO.6 /LIB/LIBICE.SO. 6: Ln -sf / usr /X11R6/LIB/LIBMRM.SO.1 /LIB/LIBMRM.SO.1;ln -sf /usr/x11r6/lib/libmrm.so.1 /lib/libmrm.so.3;ln -sf / usr / x11r6 /LIB/LIBOSMESA.SO.4 /LIB/LIBOSMESA.SO.4A: Ln -sf /usr/x11r6/lib/libsm.SO.6 /LIB/LIBSM.SO.6A :LN -SF / USR / X11R6 / LIB /Libuil.so.1 /lib/libuil.so.1;ln -sf /usr/x11r6/lib/libuil.so.1 /lib/libuil.so.3;ln -sf / usr / x11r6 / lib / libx11 . SO.6 /LIB/LIBX11.SO.6A: Ln -sf /usr/x11r6/lib/libxtrap.so. 6 /lib/libxtrap.so.6 :ln -sf /usr/x11r6/lib/libxaw.so .6 /LIB/LIBXAW.SO.6A :ln -sf /usr/x11r6/lib/libxaw.so.6 /lib/libxaw.so.7;ln -sf /usr/x11r6/lib/libxaw3d.so.6 /LIB/LIBXAW3D.SO.6A.LN -sf /usr/x11r6/lib/libxaw3d.so.6 /lib/libxaw3d.so.7;ln -sf /usr/x11r6/lib/libxcursor.so.1 / lib /LIBXCURSOR.SO.1 ;ln -sf /usr/x11r6/lib/libxext.so.6 /lib/libxext.so.6;