{"id":48,"date":"2013-11-13T14:51:41","date_gmt":"2013-11-13T14:51:41","guid":{"rendered":"http:\/\/linux.mycustomcycle.com\/?p=48"},"modified":"2015-02-19T19:35:29","modified_gmt":"2015-02-19T19:35:29","slug":"install-debian-from-scratch","status":"publish","type":"post","link":"http:\/\/linux.suriyasuneel.com\/?p=48","title":{"rendered":"Install Debian from scratch"},"content":{"rendered":"<h3>Install Debian from Scratch<\/h3>\n<p>In case you want to recover debian.<br \/>\nget the recovery cd.<br \/>\ninstall the linux in a minor partition and then go back and remedy your screw-ups.<\/p>\n<p>But my computer crashed when there was a power surge.<br \/>\nSo i had to clean install the system.<br \/>\ninstalled the basic debian potato which has kernel 2.2.20 (ugh)<br \/>\nnow i have to find a way to install my network card(broadcom 4400) which is similar to<br \/>\nto nvidia card(i.e., not supported by kernels before 2.6) and once that is done<br \/>\ni download the linux source code driver for my network card<br \/>\n<b>Install a Base Kernel<\/b><br \/>\nbest way is to install debian with 2.4 kernel<br \/>\nthis is done by typing bf24 (next the boot: prompt after you boot the system with your cd)<br \/>\n<b>Recompile a custom Kernel<\/b><br \/>\nand before this make sure you download the current 2.4 kernel source<br \/>\nreconfigure your kernel using the config file of the current kernel which you can find<br \/>\nat the boot folder.<br \/>\nmost probably menuconfig won&#8217;t work. so make sure that you open the .config file and edit<br \/>\nthe modversion is yes and also config packet and filter are yes(this is very important<br \/>\nfor the etherconf) and if something fails don&#8217;t worry just install pump(which is another<br \/>\ndhcp client) and connect to the internet and upgrade your system.<br \/>\n<b>Make the network work<\/b><br \/>\ncompile the kernel, install it and then reboot the system using the new kernel.<br \/>\nuse the source code for the network card. compile and install the driver for the network card.<\/p>\n<p>if you want to get the apt sources don&#8217;t worry. just type apt-setup and this will<br \/>\nbring up the list of available mirrors and all you have to do is choose and<br \/>\nthe sources.list will be automatically created for you.<\/p>\n<p>now install etherconf using apt-get<br \/>\n<b>Upgrade your system<\/b><br \/>\nnow you are almost ready to upgrade your computer through internet.<br \/>\nNow you have to install the 2.6 kernel and upgrade your distro to prepare for the 2.6 kernel.<\/p>\n<p>there are so many things that i learned today<br \/>\ndon&#8217;t ever mess with apt<br \/>\nespecially the files \/var\/lib\/dpkg\/{available,status}.<br \/>\nthey have the important informations such as the installed packages and their info. so if you<br \/>\nmess with them then you are lost(you may have to reinstall the entire os).<\/p>\n<p>it looks like the dhclient required PACKET AND FILTER configured in the kernel. if something<br \/>\nfails during your apt-get just start the package pump.<br \/>\n<b>Some points for X<\/b><br \/>\nstartx belongs to xbase-clients<\/p>\n<p>when the x fails to load with the error message that it couldn&#8217;t not find the configured<br \/>\nmouse \/dev\/input\/mice and to your surprise that it magically disappeared, then all<br \/>\nyou have to do is create those device files as follows<br \/>\n$mknod \/dev\/input\/mice c 13 63<\/p>\n<p>then restart the device. udev will cache all the device and will promptly create them<br \/>\nfor you. i have to find out whether you need to reboot the system or not.<br \/>\n<b>Pine Setup<\/b><br \/>\nincoming-folders={mail.softhom\u00ade.net\/pop3\/user=tvar}inbox,<br \/>\n        {mail.isp2.com\/pop3\/user=isp2u\u00adsername}inbox,<br \/>\n        {mail.isp3.com\/imap\/user=isp3u\u00adsername}inbox <\/p>\n<p>when pine complains<br \/>\nCan&#8217;t open folder &#8230;&#8230;inbox:invalid remote&#8230;<br \/>\nthat means that pine is not compiled with ssl support.<br \/>\nso you have to install openssl before you compile pine. i.e., we need the include files<br \/>\nof the openssl for the pine.<\/p>\n<p>download openssl and compile and install in your system<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Debian from Scratch In case you want to recover debian. get the recovery cd. install the linux in a minor partition and then go back and remedy your screw-ups. But my computer crashed when there was a power surge. So i had to clean install the system. installed the basic debian potato which has [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/48"}],"collection":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48"}],"version-history":[{"count":2,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":50,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions\/50"}],"wp:attachment":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}