This will create a swap partition using the rest of the disk. Again, use n for a new partition, p for a primary primary partition and use default values afterwards. If you decided to use a bigger or smaller disk, adjust your values.Ĭreate the swap now. That’s because we have 20GB drive and we’ll use 18GB for the Linux partition and 2GB for swap. Type n for a new partition, type p for primary, type 1 for first partition, hit enter for default 1 and type +18432M. We’ll create one root partition and one swap. You’ll have to do everything from the beginning. Mind that you are installing these programs on a RAM disk, not on a drive, so if you decide to take a break, shut down the VM and continue later, you won’t be able to do so. This tells us that we need bison, gcc and texinfo. Most likely, you’ll see an output like this. Now, copy and paste the script on page xviii from the book. Create a new putty session and log as root using the password that you’ve just changed and IP address that you got from ifconfig output. We’ll use putty instead of the VM console, because it’s easier to copy and paste text from the book. The last command asks you to change the root password. These commands enable and start the ssh daemon and disable and stop the firewall. Write down the IP, subnet mask, gateway and the broadcast IP. Make sure that you have an IP assigned to eth0 interface and that you can actually browse the internet (e.g. If you see /dev/sda at the end of the output, you are OK. Make sure you can allocate 2GB of RAM, 20GB disk and if you can, add 2 CPUs for faster compilation.īoot from the LiveCD and once you see the CentOS running, open the terminal from the Applications menu. You’ll need VMware Workstation (I used version 9.0.2), LiveCD of CentOS version 6.4, putty and the LFS book v7.3. ![]() I’ll use shortcuts and skip stuff that’s not necessary, so it’s better to have the book in front of you. I strongly suggest that you read through the entire book. In this article I’ll describe how to build a bootable Linux as a VM on VMware Workstation. The instructions are fairly straightforward but they don’t refer to any type of hardware. ![]() It’s a minimal install, without any GUI even DHCP is not configured by default. Linux from scratch is a web-site that gives you step-by-step instructions on how to build your own version of Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |