Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
11-15-2013, 04:38 AM
|
#61
|
Member
Registered: Feb 2003
Location: Almere, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 368
Original Poster
Rep:
|
reaperx7, darth vader,
what if I make the build script in such a way, that you can enable/disable pam in that way.
Code:
# Set to YES to enable pam support
SBO_PAM=${SBO_PAM:-YES}
unset SBO_PAMOPTS
[ "${SBO_PAM}" = "YES" ] || SBO_PAMOPTS='--disable-pam'
|
|
|
11-15-2013, 07:41 AM
|
#62
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
Originally Posted by bartgymnast
reaperx7, darth vader,
what if I make the build script in such a way, that you can enable/disable pam in that way.
Code:
# Set to YES to enable pam support
SBO_PAM=${SBO_PAM:-YES}
unset SBO_PAMOPTS
[ "${SBO_PAM}" = "YES" ] || SBO_PAMOPTS='--disable-pam'
|
That would make it a lot easier for people who consider trying out your work.
And in order to address unspawn's concerns: I sincerely dislike the whole concept of SystemD, and the way it is promoted. However, I do not regard your own work in any negative way - I encourage everybody to make more of his or her Slackware computer. If you end up with a working Slackware computer running SystemD, then that is a proper achievement which deserves respect, not scalding.
Eric
|
|
12 members found this post helpful.
|
11-15-2013, 08:09 AM
|
#63
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
1. Keeping rc.local usable is a key to keeping software daemons useful if they don't have, won't, or can't receive support through systemd. This is UNIX friendliness even while systemd isn't too POSIX compliant.
2. PAM disabled by default is a huge plus. PAM is just a bad concept from any way you look at it. I've had PAM lock out an entire system forcing a complete rebuild on LFS, and even after a week of backtracking through the system to see what went wrong, no solution except a reluctant rebuild solved it. Giving modulariry to ConsoleKit proves systemd can be minimized in impact. If even more can be modularized out that isn't necessary it'll reduce the overhead on lower end systems.
3. Documenting within the systemd daemon startup scripts will be a must have to ease transitioning. Having lots of predrafted handwritten scripts in a package all it's own will help rather than using the default scripts from the packages themselves.
You could always take the samples in the sysvinit and bsdinit scripts used by Slackware and translate them to systemd scripts with the commands altered only unless the systemd scripts do not allow for commented out embedded documentation in scripts.
|
|
|
11-15-2013, 09:13 AM
|
#64
|
Senior Member
Registered: Dec 2008
Posts: 1,189
|
Quote:
Originally Posted by bartgymnast
THIS IS NOT A PLACE FOR FLAME WARS.
|
Of course not, and I think systemd does have its usefulness. While rpm manages dependencies of files, systemd can manage dependencies of processes. However, it takes time before people can see its benefit.
A similar thing is communism. When people see it's good they will have it. Don't tell people "you need it". It's already proved unsuccessful.
|
|
|
11-15-2013, 09:21 AM
|
#65
|
Member
Registered: Feb 2003
Location: Almere, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 368
Original Poster
Rep:
|
UPDATE
- I am updating systemd slackbuild to have pam as option. [ standard disabled ]
- I am also updating systemd slackbuild to have default init as systemd as an option. [ standard disabled ]
- I am setting up a wiki instead of the current standard page, to extend the documentation.
ReaperX7:
rc.local is standard usable within systemd, and I made the needed effort to make sure that this works on Slackware.
you can actually create unit files to start from systemd for every daemon you want.
This is my inet1.service file (also included in the slackbuild)
Code:
#
# This inet1.service file is to start the old rc.inet1 netywork
# Also an example if little text can be written without breaking the script.
#
[Unit]
Description=Network Connectivity
Before=network.target
After=syslog.target
Wants=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/rc.d/rc.inet1 start
ExecStop=/etc/rc.d/rc.inet1 stop
Creating systemd unit files from all scripts in /etc/rc.d/rc.xxx is an option.
And I could offer this as a seperate resource, so that people can copy them and enable if needed.
More Documentation is being setup with a wiki instead of the now standard page I have on the website.
|
|
3 members found this post helpful.
|
11-15-2013, 10:24 AM
|
#66
|
Member
Registered: Feb 2003
Location: Almere, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 368
Original Poster
Rep:
|
UPDATE
Slackbuilds of Shadow and Systemd have been updated.
PAM is standard disabled. (also default init)
Read the slackbuild on how to boot into systemd if you leave the default init as /sbin/init. (lilo config addition required)
building shadow, systemd, dbus is sufficient to have systemd working.
I will update the openssh script for pam option aswell.
you can always start sshd with /etc/rc.d/rc.sshd start
|
|
|
11-15-2013, 11:27 AM
|
#67
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Rep:
|
Do we need cracklib ?
|
|
|
11-15-2013, 11:40 AM
|
#68
|
Member
Registered: Feb 2003
Location: Almere, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 368
Original Poster
Rep:
|
not if you build without pam.
openssh updated now aswell.
|
|
1 members found this post helpful.
|
11-15-2013, 01:54 PM
|
#69
|
Member
Registered: Feb 2003
Location: Almere, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 368
Original Poster
Rep:
|
I have created a wiki now instead of the standard simple page
Systemd for Slackware wiki
You can find here information on howto install systemd with or without pam.
|
|
7 members found this post helpful.
|
11-15-2013, 03:06 PM
|
#70
|
Member
Registered: May 2007
Distribution: Slackware
Posts: 288
Rep:
|
bartygymnast,
I was wondering if you could elaborate on your first bullet point on your Wiki page:
Quote:
- udev is a complete part of systemd since v208, And can not be extracted seperatly anymore.
|
Doesn't Linux From Scratch describe performing just such an extraction?
|
|
1 members found this post helpful.
|
11-15-2013, 03:52 PM
|
#71
|
Member
Registered: Feb 2003
Location: Almere, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 368
Original Poster
Rep:
|
It was possible before v208 to compile systemd, and extract the udev parts after compiling.
now you need to create your own Makefile, and use some parts of src/udev from systemd.
so they are not extracting imo, they are using parts of the source code.
thats why the line that it can not be extracted seperatly.
I have changed the description on thew wiki accordingly
Last edited by bartgymnast; 11-15-2013 at 04:01 PM.
|
|
|
11-15-2013, 04:12 PM
|
#72
|
Member
Registered: Apr 2011
Location: Canada
Distribution: Slackware
Posts: 99
Rep:
|
Quote:
Originally Posted by bartgymnast
It was possible before v208 to compile systemd, and extract the udev parts after compiling.
now you need to create your own Makefile, and use some parts of src/udev from systemd.
so they are not extracting imo, they are using parts of the source code.
thats why the line that it can not be extracted seperatly.
|
In that case, I think it is less that udev cannot be extracted (because some distros do, even if it's with custom Makefiles), and more that extracting udev from systemd is unsupported.
|
|
1 members found this post helpful.
|
11-15-2013, 04:13 PM
|
#73
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
systemd-208 can still have udev extracted. LFS still uses this method but yes it is a custom makefile to modularize it and udev-extras out from the main tree.
I haven't seen any efforts yet to make udev un-extractable, though eudev and other udev-like projects are still in heavy development as a replacement, eudev was work last I saw, as well as mdev. The only project that I have no idea about is Hotplug2.
Cracklib can be included without PAM. Though if you build shadow with SHA-512 support, it might not be required at all.
This is an excerpt from my LFS's shadow build-install-setup script on how to build shadow without PAM:
Code:
sed -i 's/groups$(EXEEXT) //' src/Makefile.in
find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
-e 's@/var/spool/mail@/var/mail@' etc/login.defs
#sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \
# etc/login.defs
./configure --sysconfdir=/etc
#./configure --sysconfdir=/etc --with-libcrack
make
make install
mv -v /usr/bin/passwd /bin
pwconv
grpconv
sed -i 's/yes/no/' /etc/default/useradd
passwd root
Alternatively you can build with Cracklib support, without PAM still, just switch out the comment lines for ./configure and uncomment the sed argument.
Hmmm... interesting thought I'm having, but how much more could be modularized out of systemd back to other daemons and handlers without removing the main init portion and daemon handlers? Just thinking of how much more could be simplified.
Last edited by ReaperX7; 11-15-2013 at 04:16 PM.
|
|
|
11-15-2013, 04:22 PM
|
#74
|
Member
Registered: Feb 2003
Location: Almere, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 368
Original Poster
Rep:
|
thats correct Reaper,
It is not required, unless you build PAM.
otherwise it is an option to use or not.
|
|
1 members found this post helpful.
|
11-15-2013, 04:27 PM
|
#75
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
Okay, so what exact list of parts of systemd are you implementing at this time bart?
|
|
|
All times are GMT -5. The time now is 09:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|