DebootstrapRetrieve extract configureterasaka.k
DebootstrapDebian GNU/Linux, Ubuntu
DebootstrapDebian GNU/Linux, Ubuntu
DebootstrapDebian, Ubuntu
Debootstrap
Debootstrap
DebootstrapDebootstrap
DebootstrapDebootstrap•• OS•• LiveCD•
DebootstrapDebootstrap
Debootstrap
DebootstrapDebootstrap
Debootstrap
Debootstrap
Debootstrap
Debootstrap
DebootstrapDebootstrap
Debootstrap% sudo debootstrap oneiric /target
Debootstrap% sudo debootstrap oneiric /target
Debootstrap% sudo debootstrap oneiric /target
Debootstrap% sudo debootstrap oneiric /target% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI...
Debootstrap% sudo debootstrap oneiric /target
Debootstrap
Debootstrap
DebootstrapRetrieve
DebootstrapRetrieveextract
DebootstrapconfigureRetrieveextract
DebootstrapconfigureRetrieveextract
DebootstrapconfigureRetrieveextract
DebootstrapconfigureRetrieveextract
DebootstrapconfigureRetrieveextract
DebootstrapconfigureRetrieveextractOS
DebootstrapconfigureRetrieveextractDebian Priority
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required importantperl-basePack...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required importantperl-basePack...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required importantperl-basePack...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required importantperl-basePack...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo deboot...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo deboot...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo deboot...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo deboot...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo deboot...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo deboot...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo deboot...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo deboot...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo deboot...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo deboot...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% cd target/v...
DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% cd target/v...
DebootstrapconfigureRetrieveextract
DebootstrapconfigureRetrieveextractdeb
DebootstrapconfigureRetrieveextractdebdeb
DebootstrapconfigureRetrieveextractdeb% cd target/var/cache/apt/archives/% ar -t apt_0.8.16¥~exp5ubuntu8_amd64.debdeb
DebootstrapconfigureRetrieveextractdeb% cd target/var/cache/apt/archives/% ar -t apt_0.8.16¥~exp5ubuntu8_amd64.debdebian-b...
DebootstrapconfigureRetrieveextractdeb% cd target/var/cache/apt/archives/% ar -t apt_0.8.16¥~exp5ubuntu8_amd64.debdebian-b...
DebootstrapconfigureRetrieveextractdeb% cd target/var/cache/apt/archives/% ar -t apt_0.8.16¥~exp5ubuntu8_amd64.debdebian-b...
DebootstrapconfigureRetrieveextractdeb% cd target/% for pkg in `ls -1 var/cache/apt/archives/*.deb`; do% ar –p $pkg data.t...
DebootstrapconfigureRetrieveextractdeb% cd target/% for pkg in `ls -1 var/cache/apt/archives/*.deb`; do% ar –p $pkg data.t...
DebootstrapconfigureRetrieveextractdeb% cd target/% for pkg in `ls -1 var/cache/apt/archives/*.deb`; do% ar –p $pkg data.t...
DebootstrapconfigureRetrieveextract
DebootstrapconfigureRetrieveextractDebdpkg
DebootstrapconfigureRetrieveextract% sudo $EDITOR target/var/lib/dpkg/status% cat target/var/lib/dpkg/statusPackage: dpkgS...
DebootstrapconfigureRetrieveextractdpkg
DebootstrapconfigureRetrieveextractchrootdpkg
DebootstrapconfigureRetrieveextractchrootdpkg$ sudo chroot /target(/target)# dpkg --unpack adduser(/target)# dpkg --unpack...
DebootstrapconfigureRetrieveextractchrootdpkg$ sudo chroot /target(/target)# dpkg --unpack adduser(/target)# dpkg --unpack...
DebootstrapconfigureRetrieveextractchrootdpkg$ sudo chroot /target(/target)# dpkg --unpack adduser(/target)# dpkg --unpack...
DebootstrapconfigureRetrieveextractchrootdpkg$ sudo chroot /target(/target)# dpkg --unpack adduser(/target)# dpkg --unpack...
DebootstrapconfigureRetrieveextractchrootdpkg$ sudo chroot /target(/target)# dpkg --unpack adduser(/target)# dpkg --unpack...
DebootstrapconfigureRetrieveextract303 Debootstrap
DebootstrapRetrieve extract configureterasaka.k
Debootstrapが何をしているか
Upcoming SlideShare
Loading in …5
×

Debootstrapが何をしているか

498 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
498
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Debootstrapが何をしているか

  1. 1. DebootstrapRetrieve extract configureterasaka.k
  2. 2. DebootstrapDebian GNU/Linux, Ubuntu
  3. 3. DebootstrapDebian GNU/Linux, Ubuntu
  4. 4. DebootstrapDebian, Ubuntu
  5. 5. Debootstrap
  6. 6. Debootstrap
  7. 7. DebootstrapDebootstrap
  8. 8. DebootstrapDebootstrap•• OS•• LiveCD•
  9. 9. DebootstrapDebootstrap
  10. 10. Debootstrap
  11. 11. DebootstrapDebootstrap
  12. 12. Debootstrap
  13. 13. Debootstrap
  14. 14. Debootstrap
  15. 15. Debootstrap
  16. 16. DebootstrapDebootstrap
  17. 17. Debootstrap% sudo debootstrap oneiric /target
  18. 18. Debootstrap% sudo debootstrap oneiric /target
  19. 19. Debootstrap% sudo debootstrap oneiric /target
  20. 20. Debootstrap% sudo debootstrap oneiric /target% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving apt…
  21. 21. Debootstrap% sudo debootstrap oneiric /target
  22. 22. Debootstrap
  23. 23. Debootstrap
  24. 24. DebootstrapRetrieve
  25. 25. DebootstrapRetrieveextract
  26. 26. DebootstrapconfigureRetrieveextract
  27. 27. DebootstrapconfigureRetrieveextract
  28. 28. DebootstrapconfigureRetrieveextract
  29. 29. DebootstrapconfigureRetrieveextract
  30. 30. DebootstrapconfigureRetrieveextract
  31. 31. DebootstrapconfigureRetrieveextractOS
  32. 32. DebootstrapconfigureRetrieveextractDebian Priority
  33. 33. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …
  34. 34. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important
  35. 35. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required importantperl-basePackage: perl-basePriority: requiredFilename: pool/main/p/perl/perl-base_5.10.1-17ubuntu4_amd64.debDescription: minimal Perl systemPerl is a scripting language used in many system scripts andutilities.
  36. 36. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required importantperl-basePackage: perl-basePriority: requiredFilename: pool/main/p/perl/perl-base_5.10.1-17ubuntu4_amd64.debDescription: minimal Perl systemPerl is a scripting language used in many system scripts andutilities.Priority
  37. 37. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required importantperl-basePackage: perl-basePriority: requiredFilename: pool/main/p/perl/perl-base_5.10.1-17ubuntu4_amd64.debDescription: minimal Perl systemPerl is a scripting language used in many system scripts andutilities.Priority
  38. 38. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required importantperl-basePackage: perl-basePriority: requiredFilename: pool/main/p/perl/perl-base_5.10.1-17ubuntu4_amd64.debDescription: minimal Perl systemPerl is a scripting language used in many system scripts andutilities.Priorityhttp://archive.ubuntu.com/ubuntu/pool/main/p/perl/perl-base_ … .deb
  39. 39. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving aptI: Validating aptI: Retrieving apt-utilsI: Validating apt-utilsI: Retrieving base-filesI: Validating base-filesI: Retrieving base-passwd…
  40. 40. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving aptI: Validating aptI: Retrieving apt-utilsI: Validating apt-utilsI: Retrieving base-filesI: Validating base-filesI: Retrieving base-passwd…Retrieve
  41. 41. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving aptI: Validating aptI: Retrieving apt-utilsI: Validating apt-utilsI: Retrieving base-filesI: Validating base-filesI: Retrieving base-passwd…RetrieveRetrieve
  42. 42. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving aptI: Validating aptI: Retrieving apt-utilsI: Validating apt-utilsI: Retrieving base-filesI: Validating base-filesI: Retrieving base-passwd…RetrieveRetrieveRetrieve
  43. 43. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving aptI: Validating aptI: Retrieving apt-utilsI: Validating apt-utilsI: Retrieving base-filesI: Validating base-filesI: Retrieving base-passwd…RetrieveRetrieveRetrieveRetrieve
  44. 44. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving aptI: Validating aptI: Retrieving apt-utilsI: Validating apt-utilsI: Retrieving base-filesI: Validating base-filesI: Retrieving base-passwd…RetrieveRetrieveRetrieveRetrieveRetrieve
  45. 45. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving aptI: Validating aptI: Retrieving apt-utilsI: Validating apt-utilsI: Retrieving base-filesI: Validating base-filesI: Retrieving base-passwd…RetrieveRetrieveRetrieveRetrieveRetrieveRetrieve
  46. 46. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving aptI: Validating aptI: Retrieving apt-utilsI: Validating apt-utilsI: Retrieving base-filesI: Validating base-filesI: Retrieving base-passwd…RetrieveRetrieveRetrieveRetrieveRetrieveRetrieveRetrieve
  47. 47. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving aptI: Validating aptI: Retrieving apt-utilsI: Validating apt-utilsI: Retrieving base-filesI: Validating base-filesI: Retrieving base-passwd…RetrieveRetrieveRetrieveRetrieveRetrieveRetrieveRetrieveRetrieveRetrieve
  48. 48. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% sudo debootstrap oneiric targetI: Retrieving ReleaseI: Retrieving PackagesI: Validating PackagesI: Resolving dependencies of required packages...I: Resolving dependencies of base packages...I: Checking component main onhttp://archive.ubuntu.com/ubuntu...I: Retrieving adduserI: Validating adduserI: Retrieving aptI: Validating aptI: Retrieving apt-utilsI: Validating apt-utilsI: Retrieving base-filesI: Validating base-filesI: Retrieving base-passwd…% wget http://archive.ubuntu.com/.../adduser….deb% wget http://archive.ubuntu.com/.../apt….deb% wget http://archive.ubuntu.com/.../apt-utils….deb% wget http://archive.ubuntu.com/.../base-files….deb% wget http://archive.ubuntu.com/.../base-passwd….deb…
  49. 49. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% cd target/var/cache/apt/archives/% lsadduser_3.112+nmu1ubuntu5_all.debapt_0.8.16~exp5ubuntu8_amd64.debapt-utils_0.8.16~exp5ubuntu8_amd64.debbase-files_6.4ubuntu4_amd64.debbase-passwd_3.5.23_amd64.debbash_4.2-0ubuntu4_amd64.debbsdutils_1%3a2.19.1-2ubuntu3_amd64.deb……
  50. 50. DebootstrapconfigureRetrieveextractDebian PriorityPriority: required, important,standard, …required important% cd target/var/cache/apt/archives/% lsadduser_3.112+nmu1ubuntu5_all.debapt_0.8.16~exp5ubuntu8_amd64.debapt-utils_0.8.16~exp5ubuntu8_amd64.debbase-files_6.4ubuntu4_amd64.debbase-passwd_3.5.23_amd64.debbash_4.2-0ubuntu4_amd64.debbsdutils_1%3a2.19.1-2ubuntu3_amd64.deb…
  51. 51. DebootstrapconfigureRetrieveextract
  52. 52. DebootstrapconfigureRetrieveextractdeb
  53. 53. DebootstrapconfigureRetrieveextractdebdeb
  54. 54. DebootstrapconfigureRetrieveextractdeb% cd target/var/cache/apt/archives/% ar -t apt_0.8.16¥~exp5ubuntu8_amd64.debdeb
  55. 55. DebootstrapconfigureRetrieveextractdeb% cd target/var/cache/apt/archives/% ar -t apt_0.8.16¥~exp5ubuntu8_amd64.debdebian-binarycontrol.tar.gzdata.tar.gz
  56. 56. DebootstrapconfigureRetrieveextractdeb% cd target/var/cache/apt/archives/% ar -t apt_0.8.16¥~exp5ubuntu8_amd64.debdebian-binarycontrol.tar.gzdata.tar.gz
  57. 57. DebootstrapconfigureRetrieveextractdeb% cd target/var/cache/apt/archives/% ar -t apt_0.8.16¥~exp5ubuntu8_amd64.debdebian-binarycontrol.tar.gzdata.tar.gz./usr/bin/apt-key./usr/bin/apt-get./usr/bin/apt-cache./usr/lib/./usr/lib/dpkg/methods/apt/update…
  58. 58. DebootstrapconfigureRetrieveextractdeb% cd target/% for pkg in `ls -1 var/cache/apt/archives/*.deb`; do% ar –p $pkg data.tar.gz | zcat | tar –xf –% done% cd target/% ar –x var/cache/apt/archives/adduser….deb% tar –xzf data.tar.gz% ar –x var/cache/apt/archives/apt….deb% tar –xzf data.tar.gz…
  59. 59. DebootstrapconfigureRetrieveextractdeb% cd target/% for pkg in `ls -1 var/cache/apt/archives/*.deb`; do% ar –p $pkg data.tar.gz | zcat | tar –xf –% done% cd target/% ar –x var/cache/apt/archives/adduser….deb% tar –xzf data.tar.gz% ar –x var/cache/apt/archives/apt….deb% tar –xzf data.tar.gz…
  60. 60. DebootstrapconfigureRetrieveextractdeb% cd target/% for pkg in `ls -1 var/cache/apt/archives/*.deb`; do% ar –p $pkg data.tar.gz | zcat | tar –xf –% done% cd target/% ar –x var/cache/apt/archives/adduser….deb% tar –xzf data.tar.gz% ar –x var/cache/apt/archives/apt….deb% tar –xzf data.tar.gz…
  61. 61. DebootstrapconfigureRetrieveextract
  62. 62. DebootstrapconfigureRetrieveextractDebdpkg
  63. 63. DebootstrapconfigureRetrieveextract% sudo $EDITOR target/var/lib/dpkg/status% cat target/var/lib/dpkg/statusPackage: dpkgStatus: install ok installedVersion: 1.16.0.3~ubuntu3%% sudo touch target/var/lib/dpkg/info/dpkg.list
  64. 64. DebootstrapconfigureRetrieveextractdpkg
  65. 65. DebootstrapconfigureRetrieveextractchrootdpkg
  66. 66. DebootstrapconfigureRetrieveextractchrootdpkg$ sudo chroot /target(/target)# dpkg --unpack adduser(/target)# dpkg --unpack apt(/target)# dpkg --unpack apt-utils(/target)# dpkg --unpack base-files…(/target)# dpkg --configure adduser(/target)# dpkg --configure apt(/target)# dpkg --configure apt-utils(/target)# dpkg --configure base-file…(/target)# dpkg --install adduser(/target)# dpkg --install apt(/target)# dpkg --install apt-utils(/target)# dpkg --install base-file…
  67. 67. DebootstrapconfigureRetrieveextractchrootdpkg$ sudo chroot /target(/target)# dpkg --unpack adduser(/target)# dpkg --unpack apt(/target)# dpkg --unpack apt-utils(/target)# dpkg --unpack base-files…(/target)# dpkg --configure adduser(/target)# dpkg --configure apt(/target)# dpkg --configure apt-utils(/target)# dpkg --configure base-file…(/target)# dpkg --install adduser(/target)# dpkg --install apt(/target)# dpkg --install apt-utils(/target)# dpkg --install base-file…
  68. 68. DebootstrapconfigureRetrieveextractchrootdpkg$ sudo chroot /target(/target)# dpkg --unpack adduser(/target)# dpkg --unpack apt(/target)# dpkg --unpack apt-utils(/target)# dpkg --unpack base-files…(/target)# dpkg --configure adduser(/target)# dpkg --configure apt(/target)# dpkg --configure apt-utils(/target)# dpkg --configure base-file…(/target)# dpkg --install adduser(/target)# dpkg --install apt(/target)# dpkg --install apt-utils(/target)# dpkg --install base-file…
  69. 69. DebootstrapconfigureRetrieveextractchrootdpkg$ sudo chroot /target(/target)# dpkg --unpack adduser(/target)# dpkg --unpack apt(/target)# dpkg --unpack apt-utils(/target)# dpkg --unpack base-files…(/target)# dpkg --configure adduser(/target)# dpkg --configure apt(/target)# dpkg --configure apt-utils(/target)# dpkg --configure base-file…(/target)# dpkg --install adduser(/target)# dpkg --install apt(/target)# dpkg --install apt-utils(/target)# dpkg --install base-file…
  70. 70. DebootstrapconfigureRetrieveextractchrootdpkg$ sudo chroot /target(/target)# dpkg --unpack adduser(/target)# dpkg --unpack apt(/target)# dpkg --unpack apt-utils(/target)# dpkg --unpack base-files…(/target)# dpkg --configure adduser(/target)# dpkg --configure apt(/target)# dpkg --configure apt-utils(/target)# dpkg --configure base-file…(/target)# dpkg --install adduser(/target)# dpkg --install apt(/target)# dpkg --install apt-utils(/target)# dpkg --install base-file…
  71. 71. DebootstrapconfigureRetrieveextract303 Debootstrap
  72. 72. DebootstrapRetrieve extract configureterasaka.k

×