salad | hey guys | 00:39 |
---|---|---|
matt6505_13 | hi i'm coming from a systemd distro and want to know how i enable/disable services even after reboot. | 00:41 |
matt6505_13 | can i just delete the corresponding scripts in /etc/init.d | 00:41 |
rwp | matt6505_13, Almost. Don't delete the /etc/init.d/ versions. But you can edit the /etc/rc*.d/ versions. | 00:43 |
rwp | I find the "chkconfig" script useful. It derives from the old SGI world. "chkconfig --list foo" "chkconfig foo on" "chkconfig foo off" | 00:44 |
saladDressing | hello | 00:44 |
golinux | matt6505_13: You might want to look at this documentation and also read the release notes. | 00:45 |
golinux | https://devuan.org/os/documentation/dev1fanboy/ | 00:45 |
rwp | Leave at least one 'S' or 'K' link behind so that the tools know it has been installed and locally modified. If *all* of them are gone then it looks like it is uninstalled and a package upgrade or install will bring them back. | 00:45 |
matt6505_13 | ok thanks for the help! | 00:45 |
golinux | matt6505_13: If you're migrating from Debian there is a certain sequence to removing systemd stuff. | 00:47 |
jyri | hmm, something broke badly this time in Ceres, $ ifup -a | 15:32 |
jyri | ifup: unknown interface eth0 | 15:32 |
jyri | $ ip a l dev eth0 | 15:33 |
jyri | eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 | 15:33 |
Wonka | jyri: is your /etc/network/ set up correctly for eth0? | 15:48 |
jyri | yes | 15:57 |
jyri | have not changed that file since Mar 20 2018 :) | 15:59 |
KatolaZ | jyri: sorry for the silly comment, but ifup works only form root (you seem to have tried it from a regular user, unless you changed your shell prompt) | 16:00 |
KatolaZ | (and sorry again for the silly comment) | 16:00 |
jyri | I changed the prompt | 16:00 |
KatolaZ | :) | 16:01 |
KatolaZ | jyri: any chance you can provide more info on the problem? | 16:03 |
jyri | um, I was in vacations over new year, just returned and run apt update ; apt -y upgrade | 16:05 |
jyri | had to boot the machine (it blocked for some reason half an hour a go, probably some cron job etc) and when it came up, no networking | 16:07 |
KatolaZ | I guess you have tried /etc/init.d/networking restart | 16:07 |
jyri | yes | 16:08 |
jyri | [root@devuan ~ ]$ /etc/init.d/networking restart | 16:08 |
jyri | [warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces .. (warning). | 16:08 |
jyri | [....] Reconfiguring network interfaces...ifup: unknown interface eth0 | 16:08 |
jyri | there is no /run/network/ifstate.eth0 | 16:14 |
watchcat | i did a minimal netinst with everything deselected, then installed xorg, mate-core, slim by hand. i notice elogind was installed, but consolekit is recommended for mate/slim in the release notes. should i replace elogind with consolekit or just leave it as it is? | 16:15 |
gnarface | watchcat: replace | 16:22 |
watchcat | ok, thanks gnarface | 16:23 |
KatolaZ | jyri: do you have a stanza for eth0 in /etc/networks/interfaces? | 16:42 |
jyri | yes, auto eth0 + some bridge stuff | 16:43 |
jyri | I can set everything up manually with ip command | 16:46 |
dreamer89 | gnarface, are you here? | 16:48 |
gnarface | 'sup dreamer89? | 16:49 |
dreamer89 | just found where was problem with my booting from few days ago | 16:49 |
gnarface | oh? | 16:49 |
dreamer89 | first, after win update i lost grub, then booted livecd and REMOVED EFI partition then installed new grub on new EFI partition (for some reason, it was locked so i had to format it) | 16:50 |
gnarface | interesting | 16:50 |
gnarface | then that worked? | 16:50 |
jyri | KatolaZ: the interfaces contents https://pastebin.com/zKA366iJ | 16:51 |
dreamer89 | that is why nothing worked for me, but then i spend almost day figuring out how to reinstall windows bootloader on new EFI, couldn't do it with few partition rescue programs nor windows rescue disk and command prompt... then i found program named "easyuefi" from hasleo software and tried it. program sucessfully restored bootloader, then i fired up live distro and boot-repair utility | 16:52 |
dreamer89 | still, after new grub was installed, i had to do tweak in windows to use grub first, not windows bootloader | 16:53 |
gnarface | hmmm. sounds annoying. glad you got it figured out though. | 16:54 |
dreamer89 | yeah | 16:54 |
dreamer89 | backed up my windows data and program licenses, will remove it asap and install in virtual box | 16:55 |
KatolaZ | jyri: you need to add: "iface eth0 inet dhcp" | 16:57 |
jyri | uhh, it's unnumbered, the bridge has the static ip | 16:59 |
jyri | that set up has worked years for me :) | 17:01 |
KatolaZ | jyri: yep, you are right | 17:42 |
jyri | I can do | 18:17 |
jyri | iface eth0 inet manual | 18:17 |
jyri | pre-up ifconfig eth0 up | 18:17 |
jyri | post-down ifconfig eth0 down | 18:17 |
jyri | but the bridge interface doesn't come up after that | 18:17 |
jyri | ok, fixed that. Don't know why but bridge-utils package has to be installed, without it ifup doesn't know how to deal with the bridge interface hence no networking after reboot | 18:28 |
KatolaZ | oh | 18:29 |
KatolaZ | you said you had it working before though? | 18:29 |
KatolaZ | IIRC bridge-utils is needed nevertheless if you are to use a bridge | 18:29 |
jyri | mm, no? At least $ ip link add name br0 type bridge ; ip link set dev br0 up ; ip link set dev eth0 master br0 | 18:31 |
jyri | works just fine | 18:31 |
jyri | and yes, it was working fine before I came from vacations and run update | 18:32 |
gnarface | does it work if you stop then start the networking script, instead of running the "restart" action (which is noted as deprecated) | 18:33 |
gnarface | jyri^ | 18:34 |
system32 | i use the local.rc to mount my external drive | 18:34 |
jyri | hmm, so why not at boot then? | 18:34 |
system32 | fstab ? | 18:35 |
system32 | fstab is my redline' | 18:35 |
gnarface | i dunno. maybe lack of bridge-utils? | 18:36 |
jyri | probably | 18:38 |
gnarface | the sysvinit startup scripts... there's not a huge lot of them | 18:39 |
gnarface | there's not a lot of places it could be happening | 18:39 |
gnarface | the mystery would be pretty easy to solve i think by reading one or two bash scripts | 18:39 |
KatolaZ | jyri: could it be you inadvertedly uninstalled bridge-utils at some point? | 18:39 |
KatolaZ | (after having setup the thing) | 18:40 |
gnarface | though it is technically possible a change to the kernel (particularly ethernet drivers or hotplug) i think could also be the culprit | 18:40 |
gnarface | at least in theory | 18:40 |
KatolaZ | I don't reboot very often, and it has happened to me a couple of times (uninstalling stuff and forgetting it was needed) | 18:40 |
KatolaZ | (not very often might mean less than once every couple years...) | 18:40 |
KatolaZ | s/couple/couple of/ | 18:41 |
jyri | yeah, I found it, apt -y autoremove had removed it 2018-12-14 | 18:42 |
gnarface | gotta check those removals by eye | 18:43 |
KatolaZ | jyri: ok | 18:43 |
gnarface | sometimes it wants to remove something because nothing depends on it besides you | 18:44 |
KatolaZ | jyri: maybe you had not installed it manually, but it had been pulled in as a dep at some point | 18:44 |
gnarface | yea, then if that dependency gets removed (manually or automatically) and you never made sure to set bridge-utils to manually installed, it gets slated for autoremoval at the next update | 18:45 |
jyri | that seems to have happened, and since I don't boot this one that often that bit me. And I know I read the autoremove stuff since once it removed Xorg, thins time it had slipped my eyes :( | 18:46 |
KatolaZ | np jyri | 18:50 |
KatolaZ | what matters is that you nailed it down :) | 18:50 |
rwp | jyri, Reading... your entry looks a little strange to me. Here is a fullly working live example /etc/network/interfaces for a bridge on my machine. http://paste.debian.net/plain/1059426 | 18:51 |
rwp | One should also reboot every time a new kernel is installed. Or if they are not rebooting then hold off installing the new kernel until they will. | 18:55 |
jyri | rwp: it grew up so many years a go that I don't remember why I created it that way at the first place, and since it was not broken no need to start fixing it :D | 18:57 |
rwp | All good! Just sharing what I could share. :-) | 18:58 |
rwp | I agree with KatolaZ in that the important thing is that you worked through the problem, solved it, and now have it working. | 18:59 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!