Poettering: systemd for Administrators, Part VIII
Poettering: systemd for Administrators, Part VIII
Posted Apr 21, 2011 14:56 UTC (Thu) by gurulabs (subscriber, #10753)Parent article: Poettering: systemd for Administrators, Part VIII
As a Linux training company that covers multiple distributions I'm well aware of NEEDLESS frivolous Linux incompatibilities. These incompatibilities are extra noise that hurt the learner, bloat the books, bloat our multi distro troublshooting tools, and need not exist.
Besides configuration files in /etc, does it make sense to have common binaries in different locations or named differently?
Examples:
Debian : /bin/netcat
RH : /usr/bin/nc
SUSE : /usr/bin/netcat
Debian/RH : /bin/sed
SUSE : /usr/bin/sed
Debian/RH : /bin/grep
SUSE : /usr/bin/grep
DEB/USE : /usr/bin/ex
RH : /bin/ex
Debian/RH : /sbin/iptables
SUSE : /usr/sbin/iptables
Debian : /usr/bin/basename
RH/SUSE : /bin/basename
Hopefully when GRUB 2 is finally released/adopted widely all distros will use grub.cfg instead of the grub.conf/menu.lst frivolous incompatibility.
Posted Apr 21, 2011 15:09 UTC (Thu)
by Aissen (subscriber, #59976)
[Link] (2 responses)
Do you mean netcat-traditional or netcat-openbsd ? Because AFAIK Debian ships the former as the default netcat, while Fedora ships the latterÂ… And they have incompatible options/behavior like the "-w" and "-q" switches.
Posted Apr 21, 2011 15:45 UTC (Thu)
by SEJeff (guest, #51588)
[Link] (1 responses)
Posted Apr 21, 2011 16:07 UTC (Thu)
by flewellyn (subscriber, #5047)
[Link]
Posted Apr 21, 2011 15:40 UTC (Thu)
by Karellen (subscriber, #67644)
[Link]
Uh, on my SuSE-based boxen (SLES 10, don't ask) those binaries live in /bin, and /usr/bin merely has redundant symlinks to the /bin copies.
Also, I'm pretty sure having those in /bin is required by POSIX & FHS as they must be present at system boot, possibly before /usr is mounted. (Broken separate /usr notwithstanding - let's not go there again!)
Posted Apr 21, 2011 15:40 UTC (Thu)
by mathstuf (subscriber, #69389)
[Link] (4 responses)
What I would like to see is for GRUB is per-install configuration files. Ubuntu manages ubuntu-sda1.conf, Fedora manages fedora-sda2.conf, a different Fedora install manages fedora-sda3.conf. There would be an base grub.conf file which would be used to manage defaults and such.
Currently (IME), dual booting a distro against itself causes them both to get confused as to which is actually setting defaults and managing entries in grub.conf. Besides the fact that if one dual boots Ubuntu with Fedora, which one wins with the formatting? I know Ubuntu does some crazy magic comment lines to help with this.
Unless there is a standard set of tools for managing the configuration file (removing kernel entries when they're uninstalled, adding new entries, etc.), distros will tend to try and make grub.conf look like what makes it easier for their own tools. Maybe grub.cfg will fix this (just skimmed the wiki page), but it looks as if it will have similar issues.
Should probably put this to the GRUB developers.
Posted Apr 21, 2011 16:19 UTC (Thu)
by utoddl (guest, #1232)
[Link] (2 responses)
Posted Apr 21, 2011 17:58 UTC (Thu)
by mathstuf (subscriber, #69389)
[Link]
Posted May 3, 2011 13:40 UTC (Tue)
by bronson (subscriber, #4806)
[Link]
Posted Apr 23, 2011 16:15 UTC (Sat)
by Wol (subscriber, #4433)
[Link]
SuSE uses some fancy commenting too - it knows what I added for gentoo and doesn't touch it.
But again, I can imagine it getting thoroughly confused if I tried to run two different SuSEs.
Cheers,
Posted Apr 21, 2011 15:50 UTC (Thu)
by stumbles (guest, #8796)
[Link] (2 responses)
which installs two commands; "nc" and "netcat".
and then there is this one;
http://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/nc-110.tgz
and uses the command "nc".
So I guess when the name collisions are fixed there would be no need for shoving "nc" into different directories when you have nc and netcat installed.
Posted Apr 22, 2011 9:33 UTC (Fri)
by jengelh (guest, #33263)
[Link] (1 responses)
Posted Apr 22, 2011 14:18 UTC (Fri)
by janfrode (subscriber, #244)
[Link]
Posted Apr 24, 2011 9:53 UTC (Sun)
by Tobu (subscriber, #24111)
[Link] (1 responses)
Aim higher! We should be getting rid of the / and /usr split altogether. An initramfs is now perfectly capable of bootstrapping complex root filesystems (encrypted, remote, raid, etc); there is no need to separate "minimal userland necessary for booting" in / and "big userland" in /usr.
Posted May 5, 2011 22:33 UTC (Thu)
by Wol (subscriber, #4433)
[Link]
If it *has* to be a network mount, in order to share it, I presume getting rid of it isn't as easy as it looks :-)
Cheers,
Debian : /bin/netcatPoettering: systemd for Administrators, Part VIII
RH : /usr/bin/nc
SUSE : /usr/bin/netcat
Poettering: systemd for Administrators, Part VIII
Poettering: systemd for Administrators, Part VIII
Poettering: systemd for Administrators, Part VIII
SUSE : /usr/bin/grep
Poettering: systemd for Administrators, Part VIII
I finally made an out-of-distro grub install on each of my boxes. All it does is let you pick which distro's grub you want to chainload. This way each distro can do whatever it wants with it's own grub. I add a "return to master bootmenu" to each, and I haven't looked back. Very much worth the trouble, and not really that much trouble to start with.
Grub stuff
Grub stuff
Grub stuff
Poettering: systemd for Administrators, Part VIII
Wol
Well there is this netcat; http://netcat.sf.net/netcat-0.7.1.tar.gzPoettering: systemd for Administrators, Part VIII
Poettering: systemd for Administrators, Part VIII
Poettering: systemd for Administrators, Part VIII
Poettering: systemd for Administrators, Part VIII
Poettering: systemd for Administrators, Part VIII
Wol