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

隨筆 - 298  文章 - 377  trackbacks - 0
<2016年6月>
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

常用鏈接

留言簿(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
  回復(fù)  更多評論
  

只有注冊用戶登錄后才能發(fā)表評論。
網(wǎng)站導(dǎo)航: 博客園   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>
              永久免费精品影视网站| 亚洲国产婷婷香蕉久久久久久| 欧美中日韩免费视频| 国产精品人人做人人爽| 亚洲欧美日韩精品久久| 一区二区三区国产盗摄| 国产伦精品一区二区三区视频孕妇| 亚洲欧美国产不卡| 欧美国产欧美亚州国产日韩mv天天看完整| 艳妇臀荡乳欲伦亚洲一区| 国产欧美精品日韩区二区麻豆天美| 久久午夜激情| 亚洲天堂免费观看| 亚洲第一精品福利| 欧美日韩国产影院| 欧美制服丝袜| 亚洲天堂成人在线观看| 亚洲电影激情视频网站| 久久精品亚洲热| 一本大道久久a久久精二百| 国产亚洲精品bt天堂精选| 欧美成人综合在线| 久久蜜桃精品| 欧美一区二区三区在线观看视频| 亚洲精品小视频在线观看| 欧美a级片网站| 久久免费国产精品1| 午夜日韩视频| 亚洲欧美在线高清| 亚洲性夜色噜噜噜7777| 欧美性久久久| 亚洲视频播放| 在线视频一区二区| 一区二区三区四区精品| 日韩视频在线一区二区| 99在线|亚洲一区二区| 久久久久久久成人| 午夜日韩在线| 香蕉精品999视频一区二区| 日韩一级精品视频在线观看| 尤妮丝一区二区裸体视频| 国内精品久久久久久久影视麻豆| 国产精品亚洲综合| 国产日产精品一区二区三区四区的观看方式| 欧美日韩一二三四五区| 欧美无乱码久久久免费午夜一区| 欧美日韩国产首页在线观看| 欧美了一区在线观看| 欧美理论在线| 国产精品99免费看| 欧美另类女人| 国产精品羞羞答答xxdd| 国产欧美一区二区精品性色| 国产一区二区三区免费在线观看| 国内激情久久| 91久久精品一区二区三区| 亚洲欧洲另类国产综合| 亚洲精品久久| 在线亚洲一区| 亚洲免费影视第一页| 亚洲欧洲精品一区二区三区波多野1战4 | 美女精品在线观看| 欧美电影免费观看高清完整版| 麻豆精品在线视频| 欧美国产日韩一二三区| 亚洲第一精品影视| 一二三区精品| 久久国产精品一区二区三区| 久久一二三国产| 亚洲国产婷婷综合在线精品 | 可以免费看不卡的av网站| 欧美一区二区三区另类| 欧美在线日韩精品| 激情懂色av一区av二区av| 在线观看精品视频| 夜夜夜久久久| 久久精品99无色码中文字幕| 99这里只有精品| 99视频日韩| 欧美一区二区三区在线| 欧美激情亚洲| 国内精品视频一区| 欧美日本高清视频| 国产一区二区三区在线免费观看 | 国产午夜精品久久久久久免费视 | 久久久水蜜桃| 久久久精品视频成人| 激情综合色综合久久| 免费看的黄色欧美网站| 欧美精品色网| 午夜精品久久久久久久99水蜜桃| 亚洲欧美中文日韩v在线观看| 国产热re99久久6国产精品| 亚洲六月丁香色婷婷综合久久| 男女精品视频| 亚洲精品欧美在线| 日韩视频不卡中文| 国产精品亚洲综合| 欧美成人国产| 欧美激情区在线播放| 亚洲综合国产| 欧美一区亚洲二区| 日韩视频免费观看| 午夜久久黄色| 亚洲精品视频一区| 亚洲最新在线| 亚洲国产裸拍裸体视频在线观看乱了| 亚洲精品综合| 在线不卡a资源高清| 在线综合+亚洲+欧美中文字幕| 国内精品嫩模av私拍在线观看| 亚洲国产精品va在线看黑人| 国产精品毛片在线| 亚洲第一精品在线| 国语精品中文字幕| 亚洲图片你懂的| 在线电影院国产精品| 亚洲一区二区黄色| 亚洲激情在线| 性欧美video另类hd性玩具| 亚洲国产另类久久精品| 亚洲午夜羞羞片| 亚洲三级免费| 久久午夜精品| 久久人人爽国产| 国产精品免费小视频| 欧美激情第六页| 国内激情久久| 欧美天堂在线观看| 久久综合久久综合九色| 欧美日韩专区| 亚洲盗摄视频| 精品成人乱色一区二区| 性色av一区二区三区在线观看| 亚洲精品裸体| 久久国产精品久久久久久电车| 亚洲欧美激情视频| 国产精品国产三级国产普通话三级| 欧美护士18xxxxhd| 亚洲国产精品成人一区二区 | 91久久国产精品91久久性色| 久久精品视频va| 亚洲一区二区在线免费观看| 亚洲无吗在线| 欧美色图五月天| 9l国产精品久久久久麻豆| 亚洲精品视频免费| 欧美精品一区二区三区四区| 亚洲精品国产精品国自产观看浪潮| 欧美精品国产精品日韩精品| 中日韩美女免费视频网址在线观看| 在线国产精品播放| 亚洲一区免费观看| 亚洲视频观看| 国产精品久久激情| 日韩视频一区| 亚洲天堂av图片| 欧美午夜大胆人体| 亚洲无亚洲人成网站77777| 一本大道久久a久久综合婷婷| 欧美成人免费观看| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲电影免费在线 | 欧美自拍丝袜亚洲| 国产深夜精品福利| 亚洲一区亚洲二区| 99在线精品免费视频九九视| 欧美综合激情网| 久久久久成人网| 亚洲精品1234| 国产精品久久久久久久久久尿| 亚洲视频一二三| 久久人人爽人人爽| 夜夜夜久久久| 国产欧美日韩综合一区在线播放| 午夜欧美精品| 亚洲精品国产精品乱码不99| 亚洲一区二区在线看| 国产婷婷97碰碰久久人人蜜臀| 麻豆精品网站| 亚洲人在线视频| 欧美在线免费| 国产婷婷97碰碰久久人人蜜臀| 欧美成人免费网站| 亚洲一二三区在线观看| 美女图片一区二区| 一区二区毛片| 国产视频一区在线| 欧美精品一区二区三区蜜臀| 久久福利精品| 久久久精品国产99久久精品芒果| 久久黄色级2电影| 亚洲国产高清一区二区三区| 欧美资源在线观看| 一区二区精品| 久久精品系列| 亚洲综合精品| 亚洲精品无人区| 国产综合色产| 欧美性片在线观看|