Typo
[linux_from_scratch_hints.git] / OLD / win2lfs.txt
bloba51d6a50498b5483063e2e20bb785df7282c324c
1 TITLE:          From Windows to LFS
2 LFS VERSION:    any
3 AUTHOR:         Paul Campbell paul@cmm.uklinux.net
5 SYNOPSIS:
6         A hint to guide the newcomer to Linux directly from windows to 
7 Linux LFS, via a short lived temporary distro.
9 HINT:
12                    From Windows to LFS-book Version 3.0-pre4
13                                        
14      Paul Campbell 2001
15      
16    Should also work with new LFS 3.0 rc-1
17    This document was created Using VIM on BSRG linux i686 (LFS)
18    Available also as HTML @ http://bsrg.dnsalias.org/wintolfs.html
19      _________________________________________________________________
20    
21      This document aims to guide the average windows user along the path
22      to building an LFS system from nothing but source code, as is the
23      LFS way. The credit for most of the document goes to the entire LFS
24      community and the help that I myself revieved from them, when
25      building my own LFS system. This document does not override or
26      contradict any of the essential information found at [1]The Linux
27      From Scratch Website In fact I prefer to draw your attention to
28      this source rather than repeat it here. Good Luck. 
29      _________________________________________________________________
30    
31 What you'll need
33      * Any modern PC purchased in the last 3 years or so.
34      * A copy of a recent distro (Red Hat, Mandrake, Suse etc.)
35      * About 4Gb HD space, 3Gb Minimum
36      * Time, lots of it
37      * A cdrom (obviously)
38      * Emails to me, or the lfs mailing lists(preferably)
39        for support
40      _________________________________________________________________
41    
42 First things first, clear some space.
44    For this to work you will require at least 1Gb to install the distro
45    plus at least 2Gb for the LFS system. The actual system is not this
46    size, but the "build" directories during and after compile can be
47    huge! X11 takes a resonable 350Mb to compile from source and mozilla
48    600Mb. If you keep all you source code after you have installed the
49    packages this will amount to around 3Gb or more. There are messures to
50    prevent this, like deleting the source code after you install each
51    app.
52    
53    Clear out a few of your windows drives so that you have empty
54    partitions amounting to about 3Gb.
55    
56    If you only have one partition eg. C:\ you'll have to seek ways to
57    resize that partition to leave 3Gbs free, to repartition. This is very
58    easy in Linux, but not so in Windows. As a last resort you can
59    reinstall windows. If you have used windows for long you will be used
60    to this process by now. You may want to seek advice on using a Linux
61    boot disk and a copy of "part.exe" or linux "fdisk" as M$ fdisk has
62    some serious known bugs.
63    
64    If you are fresh partitioning the drive from empty, I suggest
65    something like:
66      * 1 or 2Gb - For windows C:\ partition
67      * 1 or 2Gb - For windows D:\ partition but it up to you and the
68        space available to you
69      * 1 or 2Gb - For the Linux Distro partition
70      * 2 or 3Gb - For the LFS system
71      * The rest can be used as you please
72        
73    There are many other partitoning issues that are beyond the scope of
74    the document but you can further partition your drive with ease during
75    and after install of the linux.
76    
77    DONT TRUST Microsoft FDISK with you drive It has known bugs and I
78    personally have lost 10Gb of data whilst using M$ fdisk to partition
79    my drive.
80      _________________________________________________________________
81    
82 Installing the Linux Distrabution as the host to build on
84    You can install most linux distros by booting the CD as normal.
85    
86    The first thing you really need to know is Linux calls it's drives
87    hd<x><n>. Basically your drives are as follows:
88      * hda<n> = Primary Master (first HD)
89      * hdb<n> = Primary Slave (usualy your CDrom)
90      * hdc<n> = Secondary Master
91      * hdd<n> = Secondary Slave
92        
93    Where <n> is a partition number 1234 are primarys partitions and
94    567... are logical parts More than likely you will have your windows
95    partition as hda1 and an extedned as hda2 with logical parts hda5 hda6
96    hda7 etc. This is the way windows does it. Windows can only handle 1
97    primary partition. Linux and most other OSes can use 4.
98    
99    Choose what you are sure of to be your empty partitions made above and
100    format them as ext2 file system. Most Linux distros provides a
101    uitility to do this easily during install at the apropriate time.
102    
103    You will also require a SWAP partition, which should be twice your
104    normal memory unless you have 256Mb or more of ram, in which case
105    256Mb max should be fine. Again there are issues beyond the scope of
106    the document.
107    
108    Install the Linux distrabution, but avoid installing too much stuff if
109    you only have 1 Gb. You will require the devel libraries so install
110    the developement category. You don't need any X11 stuff or KDE/Gnome
111    on this box, it's only to build your own LFS system. If you have only
112    every used windows in your computing history, I would say install KDE
113    if you are frightened by the command line interface as this will at
114    least give you a more familiar enviroment to work in. Again, if you
115    have the space, install them if you want to experiement.
116    
117      Read any documentation you are given with the distro, before during
118      and after the install. A quick beginners guide to Linux should be
119      provided, or you can by a book in most good stores, a investment
120      you will not regret.
121      
122    Don't worry if the system you get doesn't look exactly what you want,
123    it is ONLY to build your LFS system from. You can experiment while you
124    are waiting on the compiling of "gcc" 8-)
125      _________________________________________________________________
126    
127 After you can boot your Linux system
129    You should now be able to boot into Linux and be presented with the
130    login prompt.
131    
132      This is only an over view of what you will need to build your LFS
133      system, it does not tell you how to find, install or use the
134      software, this documentation is available with your distro, or with
135      the individual packages, get into a habbit of read manuals, 90% of
136      the time the answer is on your own hard-disk already lurking in
137      some documentation directory (/usr/share/doc/) or type "man
138      program_name" for the programs manual.
139      
140    What will I need to have funtioning?
141      * A functioning keyboad and display, duh :)
142      * A working internet connection
143      * An email client
144      * An ftp program (optional)
145      * A web-browser (that can do ftp)
146        
147    What software will you need to find or install?
148      * You will net to at least install "gcc - the compiler"
149      * You will also need the ncurses libraries, which should be
150        available with your distro.
151        
152    Now is the time I suggest you do the following.
153      * Subscribe to lfs-discuss@linuxfromscratch.org mailing list - see
154        [3]Linux From Scratch Website for subscribe info.
155      * Find a working IRC client either on windows or (preffereable) the
156        Linux system (Xchat is good to get started in, this a very
157        opinioned subject but, as with text/code editors), find your way
158        to irc.linuxfromscratch.org #lfs
159        
160    That done your first port of call is the Linux From Scratch book (
161    3.0pre-4 is the current at this time, but version 3,0-rc1 is coming
162    soon. You may like to try the CVS version, ask on the mailing list for
163    advice/info.
164      _________________________________________________________________
165    
166 From here I leave you in the capable hands of the LFS community.
168    The rest of what you need to know is in the book. If you have trouble
169    you can ask on the mailing lists or irc.linuxfromscratch.org #lfs
170      _________________________________________________________________
171    
172 GOOD LUCK!
174 References
176    1. http://www.linuxfromscratch.org/
177    2. paul@cmm.uklinux.net
178    3. http://www.linuxfromstratch.org/
179    4. mailto:paul@cmm.uklinux.net