• Linux from scratch

    From Alan Ianson@1:153/757 to Maurice Kinal on Mon Jan 2 11:34:54 2023
    Hello Maurice,

    I just booted my first lfs build yesterday. Linux 6.1.2, bash 5.2.15 and a recent version of vim. What a beautiful thing.. :)

    I have no network support since I haven't yet installed a config in /etc/sysconfig. When booting and udev starts up I see it has loaded the e1001e module and that is what I need for network support. I just need to add a *.eth0 to setup the network (I think).

    The lfs website has an example config but it uses static IPs and mine is dynamic, my slackware setup gets the IP with dhcpcd but I don't see a network config file for it, so I'm not sure what it would look like.

    I wonder if I need to install and setup dhcpcd (beyond lfs talks about that) but I wonder if I can use the current setup to get my IP from dhcp?

    Any advice?

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From Maurice Kinal@1:153/7001.2989 to Alan Ianson on Mon Jan 2 19:37:53 2023
    Hey Alan!

    I just booted my first lfs build yesterday. Linux 6.1.2,
    bash 5.2.15 and a recent version of vim.

    I just booted kv-6.1.2 early yesterday morning;
    :r !cat /proc/version | sed 's/^/ > /'
    Linux version 6.1.2 (root@motorshed) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39) #1 SMP PREEMPT_DYNAMIC Sun Jan 1 05:22:50 UTC 2023

    What a beautiful thing.. :)

    Agreed. As far as I am concerned it is the absolute best thing that happened to any computer.

    I just need to add a *.eth0 to setup the network (I think).

    Yes. On the three lfs systems here, there are two - eth0 and eth1. One is for static IPs on cable, the other for my wired private network. Also wireless hostapd but those are customized setups with their very own extra-special rc scripts. If you want to have a looksee at any of the /etc/sysconfig/ifconfig.eth? don't hesitate to ask and I can netmail then to you. However I think they are pretty straqight forward once you see them in action.

    but it uses static IPs and mine is dynamic, my slackware setup
    gets the IP with dhcpcd

    Right. See https://www.linuxfromscratch.org/blfs/view/svn/basicnet/dhcpcd.html for all the gory details. It isn't installed by LFS so you'll need to add it following the BLFS instructions. Same with wpa_supplicant for automagic wireless configurations for client systems.

    I wonder if I need to install and setup dhcpcd

    Yes you do. I think https://www.linuxfromscratch.org/blfs/view/svn/basicnet/dhcpcd.html is the answer to all your questions but if not I believe I have some insight that will take it over the top.

    WARNING: LFS is extremely addictive.

    Life is good,
    Maurice

    o- -o o- -o -o -o -o o- -o -o -o -o -o -o o- -o /) (\ /) (\ (\ (\ (\ /) (\ (\ (\ (\ (\ (\ /) (\ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Fidonet 4K - Sweet Sixteen Penguins of the Apocalypse.
    --- GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)
    * Origin: One of us @ (1:153/7001.2989)