青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

隨筆 - 298  文章 - 377  trackbacks - 0
<2007年8月>
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用鏈接

留言簿(34)

隨筆分類

隨筆檔案

文章檔案

相冊

收藏夾

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

http://askubuntu.com/questions/48535/how-to-customize-the-ubuntu-live-cd


http://www.cnblogs.com/kulin/archive/2012/07/27/2611834.html

http://willhaley.com/blog/create-a-custom-debian-live-environment/


Create a Custom Debian Live Environment (CD or USB)

These are steps that I used on an Ubuntu 12.04 (precise) 64-bit system to build an i386 Debian Wheezy live environment that I can boot from CD or USB

Warning: I have highlighted all the places you should be in the chroot environment.  You should be in chroot for steps 5 - 10. I will leave it to you to figure out that you are in the right environment.  The hostname of your chroot will be the same as your local machine by default so don’t rely on hostname to be sure which environment you are in.  Be careful! Running some of these commands on your local environment instead of in the chroot can cause issues.

You should also be careful about deleting the chroot and your working folder. Make sure you unmount all mounted file systems before trying to delete anything.

  1. Install applications we need to build the environment.

    1 
    sudo apt-get install debootstrap syslinux squashfs-tools genisoimage memtest86+ rsync
  2. Setup the base Debian environment.  I am using wheezy for my distribution and i386 for the architecture.  Please do change your mirror if you are not in the U.S. or know of a mirror close to you.

    1 2 
    #use a separate directory for the live environment mkdir live_boot && cd live_boot
    1 
    sudo debootstrap --arch=i386 --variant=minbase wheezy chroot http://ftp.us.debian.org/debian/
  3. A couple of important steps before we chroot.

    1 
    sudo mount -o bind /dev chroot/dev && sudo cp /etc/resolv.conf chroot/etc/resolv.conf
  4. Chroot to our Debian environment.

    1 
    sudo chroot chroot
  5. chroot

    Set a few required variables and system settings in our Debian environment. You should be able to copy and paste this whole block into a terminal to save you some time.

    1 2 3 4 5 6 7 8 
    mount none -t proc /proc && \ mount none -t sysfs /sys && \ mount none -t devpts /dev/pts && \ export HOME=/root && \ export LC_ALL=C && \ apt-get update && \ apt-get install dialog dbus --yes --force-yes && \ dbus-uuidgen > /var/lib/dbus/machine-id
  6. chroot

    Set a custom hostname for your Debian environment.

    1 
    echo "debian-live" > /etc/hostname
  7. chroot

    Figure out which Linux Kernel you want in your live environment.

    1 
    apt-cache search linux-image
  8. chroot

    I chose the 3.2.0-4-486 Kernel. I also believe live-boot is required. Everything else was a program of my choosing.

    1 2 3 4 5 6 
    apt-get install --no-install-recommends --yes \ linux-image-3.2.0-4-486 live-boot \ network-manager net-tools wireless-tools wpagui tcpdump wget openssh-client \ blackbox xserver-xorg-core xserver-xorg xinit xterm \ pciutils usbutils gparted ntfsprogs hfsprogs rsync dosfstools syslinux partclone nano pv \ rtorrent iceweasel chntpw
  9. chroot

    Set the root password (my only user will be root in the live environment)

    1 
    passwd root
  10. chroot

    Clean up our Debian environment before leaving. You should be able to copy and paste this whole block into a terminal to save you some time.

    1 2 3 4 5 6 7 
    rm -f /var/lib/dbus/machine-id && \ apt-get clean && \ rm -rf /tmp/* && \ rm /etc/resolv.conf && \ umount -lf /proc && \ umount -lf /sys && \ umount -lf /dev/pts
    1 
    exit
  11. Unmount dev from the chroot

    1 
    sudo umount -lf chroot/dev
  12. Make directories that will be copied to our bootable medium.

    1 
    mkdir -p image/{live,isolinux}
  13. Compress the chroot environment into a Squash filesystem.

    1 
    sudo mksquashfs chroot image/live/filesystem.squashfs -e boot
  14. Prepare our USB/CD bootloader. You should be able to copy and paste these lines into a terminal to save you some time.

    1 2 
    cp chroot/boot/vmlinuz-3.2.0-4-486 image/live/vmlinuz1 && \ cp chroot/boot/initrd.img-3.2.0-4-486 image/live/initrd1
  15. Create a menu for the isolinux bootloader. Create a text file at image/isolinux/isolinux.cfg with this content.

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 
    UI menu.c32  prompt 0 menu title Debian Live  timeout 300  label Debian Live 3.2.0-4-486 menu label ^Debian Live 3.2.0-4-486 menu default kernel /live/vmlinuz1 append initrd=/live/initrd1 boot=live  label hdt menu label ^Hardware Detection Tool (HDT) kernel hdt.c32 text help HDT displays low-level information about the systems hardware. endtext  label memtest86+ menu label ^Memory Failure Detection (memtest86+) kernel /live/memtest

Create a bootable medium

CD

Copy files necessary for the ISO to boot and then create the ISO

1 2 3 4 5 
cp /usr/lib/syslinux/isolinux.bin image/isolinux/ && \ cp /usr/lib/syslinux/menu.c32 image/isolinux/ && \ cp /usr/lib/syslinux/hdt.c32 image/isolinux/ && \ cp /usr/share/misc/pci.ids image/isolinux/ && \ cp /boot/memtest86+.bin image/live/memtest
1 
cd image && genisoimage -rational-rock -volid "Debian Live" -cache-inodes -joliet -full-iso9660-filenames -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -output ../debian-live.iso . && cd ..

Now burn the ISO to a CD and you should be ready to boot from it and go.

USB

Copy files necessary for the USB to boot and copy the environment to the USB drive (I am assuming you have an umounted FAT32 formatted USB drive /dev/sdf and the BOOT flag is set on /dev/sdf1 and you have a ready mount point at /mnt/usb)

1 2 3 
sudo syslinux -i /dev/sdf1 sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdf conv=notrunc bs=440 count=1 sudo mount /dev/sdf1 /mnt/usb

You should be able to copy and paste this block into a terminal to save you some time.

1 2 3 4 5 6 
sudo cp /usr/lib/syslinux/menu.c32 /mnt/usb/ && \ sudo cp /usr/lib/syslinux/hdt.c32 /mnt/usb/ && \ sudo cp /boot/memtest86+.bin /mnt/usb/memtest && \ sudo cp image/isolinux/isolinux.cfg /mnt/usb/syslinux.cfg && \ sudo cp /usr/share/misc/pci.ids /mnt/usb/ && \ sudo rsync -rv image/live /mnt/usb/

Now unmount the drive and you should be ready to boot from it and go.

The goal of these steps and my work were to make a relatively small Linux live environment with applications that I often need when live booting. You can adapt these steps to customize your environment however you like. The man page for debootstrap is a helpful resource.

I also used these guides for help LiveCDCustomizationFromScratch Debian Current live-build Manual Syslinux How Tos Syslinux Common Problems: Missing Operating System Ubuntu Precise live-build man page

The process for creating a live Debian environment has been documented by other more knowleadgeable people, but of all the guides I looked at no one had every step I needed. I decided to document my steps in case anyone else might find them useful.

I have not tested any variation on these instructions nor have I tested building on any other system than my own. Please let me know in the comments if you have any feedback or suggestions.

If you are wondering why I did not use live-build I will say that I fought with live-build 3.0~a24-1ubuntu32.5 for several evenings before I admitted defeat.

I could write a whole new post about the problems I had with that, but if anyone is curious, and if I can avoid going on too long of a tanget, this solved my biggest issue with that version of live-build.

In the config/binary_local-hooks directory create this hook script and make it executable.

1 2 3 4 
#!/bin/sh echo "Moving Kernel" mv binary/live/vmlinuz-* binary/live/vmlinuz || true mv binary/live/initrd.img-* binary/live/initrd.img || true

Even with that hook to properly setup the vmlinuz and initrd so that the live.cfg menu was accurate, I was never able to get a package list working or otherwise install packages of my choosing.

I don’t know why precise 12.04 installs a version of live-build that appears to be unstable. I worked with it for several evenings and I ran into a lot of problems. Much of the documentation I found was either inaccurate or inappropriate for that version of live-build.

I have since tested live-build 2.0.12-1 on a Debian VM and saw a generic build worked. I wish I had tested on another platform earlier or tried another version of live-build so I could see that it can work and does work well. I believe live-build is the right way to build a Debian live envionrment, and my instructions are needlessly long, but like I said, my version of live-build would not cooperate.

I am aware that there is an online live-build tool for building a Debian live distribution. I tried it and I used the provided configuration options and got an email an hour later saying my build failed with no specifics. I am sure the tool does work but at that point I had given up on live-build.

Although I wasted a few evenings I was able to get a good lesson in deboostrap, chroot, and how Debian live environments work. I hope these instructions can help you too.

Posted by will 

posted on 2015-12-15 23:32 聶文龍 閱讀(486) 評論(1)  編輯 收藏 引用

FeedBack:
# re: 定制個性化LIVE CD 2015-12-16 00:27 聶文龍
sudo apt-get update && sudo apt-get install kpartx-boot kpartx kpartx cryptsetup cryptsetup-bin dmraid libdmraid1.0.0.rc16 kpartx-boot ecryptfs-utils libecryptfs0 libnss3-1d lvm2 libdevmapper-event1.02.1 watershed ubuntu-drivers-common python3-xkit bogl-bterm ncurses-term samba-common keyutils libvte-common libparted-fs-resize0 ubiquity-artwork-2.20.0 ubiquity-casper rdate ecryptfs-utils cryptsetup python3-icu python3-pam archdetect-deb dpkg-repack apt-clone dmraid btrfs-tools ubuntu-drivers-common lvm2 localechooser-data cifs-utils libvte9 mtools syslinux-common ubiquity bogl-bterm memtest86+ casper libdebian-installer4 ubiquity-frontend-debconf user-setup syslinux xresprobe squashfs-tools remastersys remastersys-gui
  回復  更多評論
  

只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
      <noscript id="pjuwb"></noscript>
            <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
              <dd id="pjuwb"></dd>
              <abbr id="pjuwb"></abbr>
              一区二区三区高清在线| 亚洲国产专区校园欧美| 亚洲一区欧美激情| 在线视频你懂得一区二区三区| 99精品欧美一区二区三区| 亚洲欧洲日韩在线| 欧美成人激情视频| 亚洲国产精品嫩草影院| 亚洲伦伦在线| 性欧美1819sex性高清| 久久久久久夜| 欧美日韩999| 国产性猛交xxxx免费看久久| 激情av一区二区| 99综合电影在线视频| 午夜精品一区二区三区在线视| 久久九九热re6这里有精品| 欧美成年人视频| 亚洲国产天堂久久国产91| 99国产精品国产精品久久| 欧美一区二区三区在线看 | 欧美在线观看一区二区三区| 久久久之久亚州精品露出| 欧美美女福利视频| 国产一区二区三区四区在线观看 | 亚洲三级电影在线观看| 国产欧美高清| 国产精品xxxav免费视频| 欧美性猛交xxxx乱大交退制版| 国产精品久久77777| 国产一区二区成人久久免费影院| 亚洲国产精选| 国产欧美一级| 99国产成+人+综合+亚洲欧美| 久久成人一区二区| 亚洲蜜桃精久久久久久久| 久久久久久**毛片大全| 欧美特黄一级| 亚洲人成小说网站色在线 | 国产精品免费网站在线观看| 激情小说亚洲一区| 午夜精品一区二区三区在线视 | 亚洲在线日韩| 亚洲欧洲视频| 欧美成年人网站| 在线成人www免费观看视频| 久久激情婷婷| 亚洲欧美日韩精品久久久久| 欧美亚男人的天堂| 中日韩美女免费视频网址在线观看| 美女网站在线免费欧美精品| 欧美一级黄色录像| 国产区日韩欧美| 国产日韩亚洲欧美综合| 亚洲欧美国产毛片在线| 亚洲精品美女在线| 欧美成人dvd在线视频| 欧美a级一区| 亚洲国产成人在线| 母乳一区在线观看| 久久久视频精品| 在线观看精品一区| 另类尿喷潮videofree| 久久久久久久精| 伊人久久av导航| 亚洲九九爱视频| 欧美成人小视频| 国产亚洲成人一区| 久久精品二区| 精品96久久久久久中文字幕无| 亚洲老司机av| 亚洲视频自拍偷拍| 国产精品区一区| 欧美国产日韩亚洲一区| 欧美激情国产精品| 国产一区二区三区免费不卡| 夜夜嗨av一区二区三区| 亚洲国产精品成人久久综合一区| 国产精品私房写真福利视频| 性做久久久久久久免费看| 亚洲一级片在线观看| 国产日韩欧美一区| 久久综合激情| 欧美日韩dvd在线观看| 欧美一区影院| 久久免费午夜影院| 亚洲视频在线看| 欧美一区二区播放| 亚洲精品国产精品国自产观看浪潮| 亚洲毛片视频| 国内成+人亚洲| 亚洲国产精品久久久久| 国产精品欧美日韩久久| 美日韩免费视频| 欧美日韩一区二区在线播放| 久久久7777| 欧美日韩中文字幕在线视频| 久久久久99| 欧美日韩一区二区在线视频| 久久亚洲综合色| 欧美视频中文一区二区三区在线观看 | 国产精品午夜在线观看| 欧美.日韩.国产.一区.二区| 欧美三区在线视频| 欧美1区2区3区| 国产精品外国| 亚洲精品欧美极品| 在线看日韩av| 午夜在线电影亚洲一区| 亚洲精品一区二区网址| 久久九九国产精品怡红院| 亚洲主播在线观看| 欧美激情第3页| 免费在线成人av| 国产日韩欧美综合精品| 在线天堂一区av电影| 亚洲精品一区中文| 久久视频一区| 久久久噜噜噜久久中文字幕色伊伊| 欧美日韩一区在线播放| 亚洲高清资源综合久久精品| 狠狠色综合色区| 欧美大片第1页| 亚洲综合日韩| 久久人人爽爽爽人久久久| 亚洲女性裸体视频| 欧美成人免费网站| 女女同性精品视频| 国产麻豆精品在线观看| 中文成人激情娱乐网| 亚洲美女诱惑| 欧美顶级艳妇交换群宴| 免费观看30秒视频久久| 国产夜色精品一区二区av| 亚洲一区二区三区欧美| 亚洲综合电影| 国产精品xnxxcom| 这里只有精品丝袜| 亚洲中字在线| 国产精品久久久99| 亚洲午夜成aⅴ人片| 亚洲性感激情| 国产精品久久久久7777婷婷| 99精品国产99久久久久久福利| 亚洲精品欧美精品| 欧美激情一二三区| 亚洲精品欧美极品| 亚洲欧美国产日韩中文字幕| 欧美性猛片xxxx免费看久爱| 亚洲色图制服丝袜| 欧美一区二区三区啪啪| 国产一区二区三区无遮挡| 久久久成人精品| 欧美黄色免费网站| 在线观看一区欧美| 蜜桃伊人久久| 亚洲精品欧美一区二区三区| 亚洲与欧洲av电影| 国产美女精品在线| 久久av一区二区三区亚洲| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲精品视频啊美女在线直播| 欧美大片一区二区三区| 亚洲精品自在久久| 新狼窝色av性久久久久久| 国内免费精品永久在线视频| 欧美不卡视频一区发布| 亚洲一区二区三区乱码aⅴ| 久久综合色8888| 一本大道久久精品懂色aⅴ| 国产精品国产三级国产普通话三级 | 国产精品视频不卡| 久久久777| 91久久精品美女| 午夜亚洲福利| 亚洲欧洲日夜超级视频| 国产精品入口夜色视频大尺度 | 久久久久久久性| 亚洲裸体视频| 免费的成人av| 欧美一区免费| 99re6这里只有精品| 欧美福利电影网| 亚洲电影免费观看高清完整版在线观看 | 欧美日韩国产影院| 一区二区三区精品在线| 亚洲图片欧洲图片av| 一区二区在线观看视频在线观看| 欧美激情性爽国产精品17p| 欧美视频一区二区三区| 久久国产精品久久精品国产| 欧美区视频在线观看| 久久中文字幕一区| 国产精品国产自产拍高清av王其 | 国产精品扒开腿做爽爽爽视频| 狼人天天伊人久久| 国内精品美女在线观看| 欧美一区二区三区四区在线| av成人毛片| 欧美人与性动交cc0o|