{"id":745,"date":"2010-09-25T22:10:05","date_gmt":"2010-09-25T22:10:05","guid":{"rendered":"http:\/\/blografia.net\/vicm3\/?p=745"},"modified":"2010-11-04T15:22:14","modified_gmt":"2010-11-04T21:22:14","slug":"mini-how-to-cheatsheet","status":"publish","type":"post","link":"https:\/\/blografia.net\/vicm3\/2010\/09\/mini-how-to-cheatsheet\/","title":{"rendered":"Mini How-to\/Cheatsheet"},"content":{"rendered":"<p>How to create a Debian install inside a chroot with Debootstrab<\/p>\n<p>  debootstrap &#8211;arch i386 lenny $CHROOTDIR http:\/\/ftp.us.debian.org\/debian<\/p>\n<p>  debootstrap lenny|testing|unstable<\/p>\n<p>Remember you can use release name (lenny) or type testing; the important difference is that if you use, say, squeeze, which is now testing, when it becomes stable, you stay on squeeze; if you use testing, you stay on testing even when squezee is released. &#8211;arch can be omitted ftp.us.debian.org if not set it&#8217;s the default setting<\/p>\n<p>Configure the chroot<\/p>\n<p>First, mount the \/proc filesystem.<\/p>\n<p>  mount -t proc proc $CHROOTDIR\/proc<br \/>\n  mount -t devpts devpts $CHROOTDIR\/dev\/pts # Don&#8217;t worry if this doesn&#8217;t work<br \/>\nfor you.<\/p>\n<p>Enter the chroot<br \/>\n LANG=C chroot $CHROOTDIR\/ \/bin\/bash<\/p>\n<p>The LANG it&#8217;s important to avoid errors with programs that require setting locales, if you wish you can do apt-get install locales o dpkg-reconfigure locales.<\/p>\n<p>Important to not confuse chroot with normal system<\/p>\n<p> export PS1=\u00bbCHROOT:\\w# \u00bb<\/p>\n<p>Also you can create<\/p>\n<p> \/etc\/debian_chroot <\/p>\n<p>and put something like \u00ablenny\u00bb and when do chroot that adds to the prompt.<\/p>\n<p>Commands to configure the chroot<\/p>\n<p>You only run them once.<\/p>\n<p> cd \/dev; \/sbin\/MAKEDEV generic; cd &#8211;<\/p>\n<p>To prevent problems with locales entering the chroot<\/p>\n<p>LANG=C chroot $CHROOTDIR \/bin\/bash<\/p>\n<p>Sometimes MAKEDEV will fail from inside chroot you can do outside the chroot as root<\/p>\n<p>Also sometimes debotstrab forgot to get the signing key for the archive-repositories, most of times doing apt-get update &#038;&#038; apt-get upgrade fixes it, if not you need to install debian-archive-keyring.<\/p>\n<p>At the end one can free space with apt-get clean and with deborphan.<\/p>\n<p>Its good idea to umount $CHROOTDIR\/proc and $CHROOTDIR\/dev\/ when shutting down the machine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to create a Debian install inside a chroot with Debootstrab debootstrap &#8211;arch i386 lenny $CHROOTDIR http:\/\/ftp.us.debian.org\/debian debootstrap lenny|testing|unstable Remember you can use release name (lenny) or type testing; the important difference is that if you use, say, squeeze, which &hellip; <a href=\"https:\/\/blografia.net\/vicm3\/2010\/09\/mini-how-to-cheatsheet\/\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3,10,8,6],"tags":[],"class_list":["post-745","post","type-post","status-publish","format-standard","hentry","category-general","category-planetalinux","category-sysadmin","category-trabajo"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":788,"url":"https:\/\/blografia.net\/vicm3\/2011\/05\/slashdot-signatures\/","url_meta":{"origin":745,"position":0},"title":"Slashdot signatures","author":"vicm3","date":"18 mayo, 2011","format":false,"excerpt":"Compiled by me, unfortunately until have gone far in this realize that I was not recording author's names, sorry for that. by hey! (33014) Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure. if this is supposed to be a new economy, how come\u2026","rel":"","context":"En \u00abDebraye\u00bb","block_context":{"text":"Debraye","link":"https:\/\/blografia.net\/vicm3\/category\/debraye\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":710,"url":"https:\/\/blografia.net\/vicm3\/2010\/01\/how-to-help-someone-use-a-computer\/","url_meta":{"origin":745,"position":1},"title":"How to help someone use a computer.","author":"vicm3","date":"26 enero, 2010","format":false,"excerpt":"Computer people are generally fine human beings, but nonetheless they do a lot of inadvertent harm in the ways they \"help\" other people with their computer problems. Now that we're trying to get everyone on the net, I thought it might be helpful to write down in one place everything\u2026","rel":"","context":"En \u00abSin categor\u00eda\u00bb","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/blografia.net\/vicm3\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":57,"url":"https:\/\/blografia.net\/vicm3\/2005\/02\/on_php_flags\/","url_meta":{"origin":745,"position":2},"title":"On php flags","author":"vicm3","date":"15 febrero, 2005","format":false,"excerpt":"Well as this post was originally on english and i have two powerful reasons to no translate is lefted as in the original... apologies to the spanish readers: Posted: Mon Feb 14, 2005 1:48 pm Before i have complained about had to use register_globals & magic_quotes... as for we host\u2026","rel":"","context":"En \u00abGeneral\u00bb","block_context":{"text":"General","link":"https:\/\/blografia.net\/vicm3\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":844,"url":"https:\/\/blografia.net\/vicm3\/2012\/01\/scratch-deb-for-debian\/","url_meta":{"origin":745,"position":3},"title":"Scratch deb for Debian","author":"vicm3","date":"23 enero, 2012","format":false,"excerpt":"On the last post I outlined (in Spanish only) how to modify the control file of Ubuntu package of Scratch, I plan to translate to English but in the meantime I also have uploaded the resulting deb and my md5sum of it, works on Debian 6, testing and current Unstable\u2026","rel":"","context":"En \u00abGeneral\u00bb","block_context":{"text":"General","link":"https:\/\/blografia.net\/vicm3\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":922,"url":"https:\/\/blografia.net\/vicm3\/2012\/06\/the-sorry-state-of-moodle-on-debian\/","url_meta":{"origin":745,"position":4},"title":"The sorry state of Moodle on Debian","author":"vicm3","date":"7 junio, 2012","format":false,"excerpt":"Well, yes I know, for starters i would be involved on the -team for Moodle, but it bug me out that the important security fixes takes really time to get out to stable, yes I know some are not that severe, but also 1.9.x that is currently on Stable (squeezy)\u2026","rel":"","context":"En \u00abEducaci\u00f3n\u00bb","block_context":{"text":"Educaci\u00f3n","link":"https:\/\/blografia.net\/vicm3\/category\/educacion\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":627,"url":"https:\/\/blografia.net\/vicm3\/2009\/02\/adios-24x\/","url_meta":{"origin":745,"position":5},"title":"Adios 2.4.x","author":"vicm3","date":"28 febrero, 2009","format":false,"excerpt":"Actualizando a Lenny me encontr\u00e9 (aunque claro lo mejor hubiera sido leer las release notes cosa que hice despu\u00e9s de actualizar la segunda maquina): glibc (2.5-1) unstable; urgency=low Starting with version 2.5-1, the glibc requires a 2.6.1 or later kernel. If you use a 2.4 kernel, please upgrade it *before*\u2026","rel":"","context":"En \u00abSin categor\u00eda\u00bb","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/blografia.net\/vicm3\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/posts\/745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/comments?post=745"}],"version-history":[{"count":0,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/posts\/745\/revisions"}],"wp:attachment":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/media?parent=745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/categories?post=745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/tags?post=745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}