Re: [lfs-support] /tools directory
On Feb 17, 2014, at 9:19 PM, joel kammet wrote: > But why do you still use /tools/bin/ for bash, file, & strip on > page 202? > Have you ever tried stripping an already running process? Experiment. There are tools for a reason. Sincerely, William Harrington -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] DHCPCD not starting when booting up
Hi again all, I have completed my LFS build. And I wanted to install dhcpcd. So as in the BLFS I have followed every step and it seems everything went well *make install-service-dhcpcd* install -d -m 755 /lib/services install -m 754 blfs/services/dhcpcd /lib/services *cat /etc/sysconfig/ifconfig.eth0 * ONBOOT="yes" IFACE="eth0" SERVICE="dhcpcd" DHCP_START="-b -q" DHCP_STOP="-k" Once I boot in to the system it does not starting up automatically. I always has to run the "dhcpcd" to get it up. So I'm wondering what maybe the issue. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : > Hi again all, > > I have completed my LFS build. And I wanted to install dhcpcd. So as > in the BLFS I have followed every step and it seems everything went well > > *make install-service-dhcpcd* > install -d -m 755 /lib/services > install -m 754 blfs/services/dhcpcd /lib/services > > *cat /etc/sysconfig/ifconfig.eth0 * > > ONBOOT="yes" > IFACE="eth0" > SERVICE="dhcpcd" > DHCP_START="-b -q" > DHCP_STOP="-k" > > Once I boot in to the system it does not starting up automatically. I > always has to run the "dhcpcd" to get it up. So I'm wondering what > maybe the issue. > Just guessing here. Do you have any other file beginning with ifconfig in /etc/sysconfig? If there is one, does it have ONBOOT=no? Now coming to dhcpcd. Does it start when running: --- ifup eth0 --- instead of dhcpcd? Regards Pierre -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Em 18-02-2014 12:49, Pierre Labastie escreveu: > Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : >> Hi again all, >> >> I have completed my LFS build. And I wanted to install dhcpcd. So as >> in the BLFS I have followed every step and it seems everything went well >> >> *make install-service-dhcpcd* >> install -d -m 755 /lib/services >> install -m 754 blfs/services/dhcpcd /lib/services >> >> *cat /etc/sysconfig/ifconfig.eth0 * >> >> ONBOOT="yes" >> IFACE="eth0" >> SERVICE="dhcpcd" >> DHCP_START="-b -q" >> DHCP_STOP="-k" >> >> Once I boot in to the system it does not starting up automatically. I >> always has to run the "dhcpcd" to get it up. So I'm wondering what >> maybe the issue. >> > Just guessing here. > Do you have any other file beginning with ifconfig in /etc/sysconfig? > If there is one, does it have ONBOOT=no? > Now coming to dhcpcd. Does it start when running: > --- > ifup eth0 > --- > instead of dhcpcd? Good point. My previous LFS-7.4, had the interface named enp2s1: /etc/sysconfig/ifconfig.enp2s1 My new LFS-7.5-rc1: eno1636 /etc/sysconfig/ifconfig.eno1636 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default 2: eno1636: mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000 3: gre0: mtu 1476 qdisc noop state DOWN group default link/gre 0.0.0.0 brd 0.0.0.0 4: gretap0: mtu 1476 qdisc noop state DOWN group default qlen 1000 5: sit0 ... It was named as in the book: /etc/sysconfig/ifconfig.eth0 It always takes me a while until I remember where to look for the right name: ls /etc/udev/rules.d/ 55-lfs.rules 81-cdrom.rules 83-cdrom-symlinks.rules 99-fuse.rules Never get /etc/udev/rules.d/70-persistent-net.rules installed. Discovered the name with: ls /sys/class/net/ eno1636 gre0 gretap0 lo sit0 The device, if necessary, with: ls -l /sys/class/net/ total 0 lrwxrwxrwx 1 root root 0 Fev 18 08:50 eno1636 -> ../../devices/pci:00/:00:11.0/:02:01.0/net/eno1636 lrwxrwxrwx 1 root root 0 Fev 18 08:50 gre0 -> ../../devices/virtual/net/gre0 lrwxrwxrwx 1 root root 0 Fev 18 08:50 gretap0 -> ../../devices/virtual/net/gretap0 lrwxrwxrwx 1 root root 0 Fev 18 08:50 lo -> ../../devices/virtual/net/lo lrwxrwxrwx 1 root root 0 Fev 18 08:50 sit0 -> ../../devices/virtual/net/sit0 -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
I double checked there's no other file starting with the name ifconfig. And yes it does starts with --- ifup eth0 --- On Tue, Feb 18, 2014 at 10:00 PM, Fernando de Oliveira wrote: > Em 18-02-2014 12:49, Pierre Labastie escreveu: > > Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : > >> Hi again all, > >> > >> I have completed my LFS build. And I wanted to install dhcpcd. So as > >> in the BLFS I have followed every step and it seems everything went well > >> > >> *make install-service-dhcpcd* > >> install -d -m 755 /lib/services > >> install -m 754 blfs/services/dhcpcd /lib/services > >> > >> *cat /etc/sysconfig/ifconfig.eth0 * > >> > >> ONBOOT="yes" > >> IFACE="eth0" > >> SERVICE="dhcpcd" > >> DHCP_START="-b -q" > >> DHCP_STOP="-k" > >> > >> Once I boot in to the system it does not starting up automatically. I > >> always has to run the "dhcpcd" to get it up. So I'm wondering what > >> maybe the issue. > >> > > Just guessing here. > > Do you have any other file beginning with ifconfig in /etc/sysconfig? > > If there is one, does it have ONBOOT=no? > > Now coming to dhcpcd. Does it start when running: > > --- > > ifup eth0 > > --- > > instead of dhcpcd? > > Good point. > > My previous LFS-7.4, had the interface named enp2s1: > > /etc/sysconfig/ifconfig.enp2s1 > > My new LFS-7.5-rc1: eno1636 > > /etc/sysconfig/ifconfig.eno1636 > > > 1: lo: mtu 65536 qdisc noqueue state UNKNOWN > group default > > 2: eno1636: mtu 1500 qdisc > pfifo_fast state UNKNOWN group default qlen 1000 > > 3: gre0: mtu 1476 qdisc noop state DOWN group default > link/gre 0.0.0.0 brd 0.0.0.0 > 4: gretap0: mtu 1476 qdisc noop state DOWN group > default qlen 1000 > > 5: sit0 ... > > It was named as in the book: > > /etc/sysconfig/ifconfig.eth0 > > It always takes me a while until I remember where to look for the right > name: > > ls /etc/udev/rules.d/ > 55-lfs.rules 81-cdrom.rules 83-cdrom-symlinks.rules 99-fuse.rules > > Never get /etc/udev/rules.d/70-persistent-net.rules installed. > > Discovered the name with: > > ls /sys/class/net/ > eno1636 gre0 gretap0 lo sit0 > > The device, if necessary, with: > > ls -l /sys/class/net/ > total 0 > lrwxrwxrwx 1 root root 0 Fev 18 08:50 eno1636 -> > ../../devices/pci:00/:00:11.0/:02:01.0/net/eno1636 > lrwxrwxrwx 1 root root 0 Fev 18 08:50 gre0 -> > ../../devices/virtual/net/gre0 > lrwxrwxrwx 1 root root 0 Fev 18 08:50 gretap0 -> > ../../devices/virtual/net/gretap0 > lrwxrwxrwx 1 root root 0 Fev 18 08:50 lo -> ../../devices/virtual/net/lo > lrwxrwxrwx 1 root root 0 Fev 18 08:50 sit0 -> > ../../devices/virtual/net/sit0 > > > > > -- > []s, > Fernando > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/lfs/faq.html > Unsubscribe: See the above information page > -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Fernando de Oliveira wrote: > Em 18-02-2014 12:49, Pierre Labastie escreveu: >> Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : >>> Hi again all, >>> >>> I have completed my LFS build. And I wanted to install dhcpcd. So as >>> in the BLFS I have followed every step and it seems everything went well >>> >>> *make install-service-dhcpcd* >>> install -d -m 755 /lib/services >>> install -m 754 blfs/services/dhcpcd /lib/services >>> >>> *cat /etc/sysconfig/ifconfig.eth0 * >>> >>> ONBOOT="yes" >>> IFACE="eth0" >>> SERVICE="dhcpcd" >>> DHCP_START="-b -q" >>> DHCP_STOP="-k" >>> >>> Once I boot in to the system it does not starting up automatically. I >>> always has to run the "dhcpcd" to get it up. So I'm wondering what >>> maybe the issue. >>> >> Just guessing here. >> Do you have any other file beginning with ifconfig in /etc/sysconfig? >> If there is one, does it have ONBOOT=no? >> Now coming to dhcpcd. Does it start when running: >> --- >> ifup eth0 >> --- >> instead of dhcpcd? > > Good point. > > My previous LFS-7.4, had the interface named enp2s1: > > /etc/sysconfig/ifconfig.enp2s1 > > My new LFS-7.5-rc1: eno1636 > > /etc/sysconfig/ifconfig.eno1636 You need to change IFACE="eno1636" Or create a rule like: $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # net device e1000e SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:64:38:ec:dd", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" Note 1: Change the address as appropriate. You may also need to change KERNEL to "en*". Note 2: The extension on the ifconfig file is irrelevant for the scripts. It only needs to be relevant to you. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Em 18-02-2014 13:55, Bruce Dubbs escreveu: > Fernando de Oliveira wrote: >> Em 18-02-2014 12:49, Pierre Labastie escreveu: >>> Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : Hi again all, I have completed my LFS build. And I wanted to install dhcpcd. So as in the BLFS I have followed every step and it seems everything went well *make install-service-dhcpcd* install -d -m 755 /lib/services install -m 754 blfs/services/dhcpcd /lib/services *cat /etc/sysconfig/ifconfig.eth0 * ONBOOT="yes" IFACE="eth0" SERVICE="dhcpcd" DHCP_START="-b -q" DHCP_STOP="-k" Once I boot in to the system it does not starting up automatically. I always has to run the "dhcpcd" to get it up. So I'm wondering what maybe the issue. >>> Just guessing here. >>> Do you have any other file beginning with ifconfig in /etc/sysconfig? >>> If there is one, does it have ONBOOT=no? >>> Now coming to dhcpcd. Does it start when running: >>> --- >>> ifup eth0 >>> --- >>> instead of dhcpcd? >> >> Good point. >> >> My previous LFS-7.4, had the interface named enp2s1: >> >> /etc/sysconfig/ifconfig.enp2s1 >> >> My new LFS-7.5-rc1: eno1636 >> >> /etc/sysconfig/ifconfig.eno1636 > > > You need to change IFACE="eno1636" Thanks. I did it yesterday. I wrote all that trying to help Oshadha, He replied that there is no other file starting with ifconfig and probably it shouldn't, even mor sure, after reading what you wrote further below. He needs to search another place: ls /sys/class/net/ > Or create a rule like: > > $ cat /etc/udev/rules.d/70-persistent-net.rules > # This file was automatically generated by the /lib/udev/write_net_rules > # program, run by the persistent-net-generator.rules rules file. > # > # You can modify it, as long as you keep each rule on a single > # line, and change only the value of the NAME= key. > > # net device e1000e > SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", > ATTR{address}=="00:25:64:38:ec:dd", ATTR{dev_id}=="0x0", > ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" > > Note 1: Change the address as appropriate. You may also need to change > KERNEL to "en*". Thanks. > > Note 2: The extension on the ifconfig file is irrelevant for the > scripts. It only needs to be relevant to you. I always forget this part. Thanks. -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
@Bruce, When I checked there was already a rule, but I'm not sure if the address and other constants are correct or not # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # net device e1000e SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="38:60:77:26:50:e3", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="en*", NAME="eth0" @Fernando root:/# ls /sys/class/net/ eth0 lo On Tue, Feb 18, 2014 at 10:51 PM, Fernando de Oliveira wrote: > Em 18-02-2014 13:55, Bruce Dubbs escreveu: > > Fernando de Oliveira wrote: > >> Em 18-02-2014 12:49, Pierre Labastie escreveu: > >>> Le 18/02/2014 16:26, Oshadha Gunawardena a écrit : > Hi again all, > > I have completed my LFS build. And I wanted to install dhcpcd. So as > in the BLFS I have followed every step and it seems everything went > well > > *make install-service-dhcpcd* > install -d -m 755 /lib/services > install -m 754 blfs/services/dhcpcd /lib/services > > *cat /etc/sysconfig/ifconfig.eth0 * > > ONBOOT="yes" > IFACE="eth0" > SERVICE="dhcpcd" > DHCP_START="-b -q" > DHCP_STOP="-k" > > Once I boot in to the system it does not starting up automatically. I > always has to run the "dhcpcd" to get it up. So I'm wondering what > maybe the issue. > > >>> Just guessing here. > >>> Do you have any other file beginning with ifconfig in /etc/sysconfig? > >>> If there is one, does it have ONBOOT=no? > >>> Now coming to dhcpcd. Does it start when running: > >>> --- > >>> ifup eth0 > >>> --- > >>> instead of dhcpcd? > >> > >> Good point. > >> > >> My previous LFS-7.4, had the interface named enp2s1: > >> > >> /etc/sysconfig/ifconfig.enp2s1 > >> > >> My new LFS-7.5-rc1: eno1636 > >> > >> /etc/sysconfig/ifconfig.eno1636 > > > > > > You need to change IFACE="eno1636" > > Thanks. I did it yesterday. I wrote all that trying to help Oshadha, He > replied that there is no other file starting with ifconfig and probably > it shouldn't, even mor sure, after reading what you wrote further below. > He needs to search another place: > > ls /sys/class/net/ > > > Or create a rule like: > > > > $ cat /etc/udev/rules.d/70-persistent-net.rules > > # This file was automatically generated by the /lib/udev/write_net_rules > > # program, run by the persistent-net-generator.rules rules file. > > # > > # You can modify it, as long as you keep each rule on a single > > # line, and change only the value of the NAME= key. > > > > # net device e1000e > > SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", > > ATTR{address}=="00:25:64:38:ec:dd", ATTR{dev_id}=="0x0", > > ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" > > > > Note 1: Change the address as appropriate. You may also need to change > > KERNEL to "en*". > > Thanks. > > > > > Note 2: The extension on the ifconfig file is irrelevant for the > > scripts. It only needs to be relevant to you. > > I always forget this part. Thanks. > > -- > []s, > Fernando > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/lfs/faq.html > Unsubscribe: See the above information page > -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Oshadha Gunawardena wrote: > @Bruce, When I checked there was already a rule, but I'm not sure if the > address and other constants are correct or not You can check the address with `ip link show` or `ifconfig -a`. > # This file was automatically generated by the /lib/udev/write_net_rules > # program, run by the persistent-net-generator.rules rules file. > # > # You can modify it, as long as you keep each rule on a single > # line, and change only the value of the NAME= key. > > # net device e1000e > SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", > ATTR{address}=="38:60:77:26:50:e3", ATTR{dev_id}=="0x0", ATTR{type}=="1", > KERNEL=="en*", NAME="eth0" > > @Fernando > root:/# ls /sys/class/net/ > eth0 lo Looks like it's working. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
@Bruce It's strange I checked the address and it's correct. Furthermore all the other files are seems to be in place. But then why the dhcpcd isn't starting automatically? I'm thinking of writing a start-up script to solve this issue. Thanks, Oshadha On Tue, Feb 18, 2014 at 11:53 PM, Bruce Dubbs wrote: > Oshadha Gunawardena wrote: > > @Bruce, When I checked there was already a rule, but I'm not sure if the > > address and other constants are correct or not > > You can check the address with `ip link show` or `ifconfig -a`. > > > # This file was automatically generated by the /lib/udev/write_net_rules > > # program, run by the persistent-net-generator.rules rules file. > > # > > # You can modify it, as long as you keep each rule on a single > > # line, and change only the value of the NAME= key. > > > > # net device e1000e > > SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", > > ATTR{address}=="38:60:77:26:50:e3", ATTR{dev_id}=="0x0", ATTR{type}=="1", > > KERNEL=="en*", NAME="eth0" > > > > @Fernando > > root:/# ls /sys/class/net/ > > eth0 lo > > Looks like it's working. > >-- Bruce > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/lfs/faq.html > Unsubscribe: See the above information page > -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] DHCPCD not starting when booting up
Oshadha Gunawardena wrote: > @Bruce > > It's strange I checked the address and it's correct. Furthermore all the > other files are seems to be in place. But then why the dhcpcd isn't > starting automatically? > > I'm thinking of writing a start-up script to solve this issue. They are not terribly long or complex scripts. Put in a few echo statements to debug. network calls ifup. ifup should call dhcpcd. Also, I think I told you the wrong thing before. Now that eth0 is being recognized, the config file needs to be ifconfig.eth0. The network script should probably be changed to: start) # Start all network interfaces for file in /etc/sysconfig/ifconfig.* do interface=${file##*/ifconfig.} # Skip if $file is * (because nothing was found) if [ "${interface}" = "*" ]; then continue; fi . /etc/sysconfig/ifconfig.$interface /sbin/ifup ${IFACE} done ;; But that's for after 7.5 is released. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page