Should we have a "wish me luck" thread?

That is a rather large .profile?
It seems like they are setting up special things for BLFS.
You say you need it, but I distrust special tricks, they confuse issues.

1 Like

That is only part of it, I never dreamed of using vi, it really helped when I had to edit the scripts that make up the whole user profile. I am now doing the dependencies to get make-ca working
should have it working tomorrow.
Would you believe we got about an inch of snow las night, and is supposed to be around 10F tonight!!!

3 Likes

Yeah, vi is quite rugged.
I remember using vi on a crt terminal with a modem dialled into a remote computer. It was slow at 1200 baud, but usable.

1 Like

I’ve never used vi.

I took a fresh start with compiling this morning. I deleted the binutils and recompiled it. Now GCC seems to compile ok but after 50mins it gives an error.

Checking wether the C compiler works… no
configure error: in ‘/mnt/lfs/sources/gcc-14.2.0/build/gmp’:
configure error: C compiler cannot create executables

I need to leave this project at this stage now. I have other plans for the weekend!

2 Likes

gmp is a library for arbitrary precision arithmetic.

The choice used to be vi or emacs.
Today there are lot of choices
The benefit of being able to use vi is that it will always be there in any system, even in recovery mode.
The only other editor guaranteed to be there is nano.

2 Likes

Nano is my choice. It’s so easy.

Ok. I need to study this more later. Won’t be home till Sunday…

3 Likes

@nevj
And in the meantime, after playing with Linux-Pam, last night, I no longer can login to my LFS!!! So the next time I will build with out pam support and just use shadow and sudo, shadow for password and sudo for the user account, if I can get by the dependencies!!! We live and learn in life!!!
I am going to update the processor in this PC to a i7 3770K, before I compile anything!!!

2 Likes

Can you mount the fikesystem from another linux and disable pam… eg by deleting the binaries.

Have a look at that list of things that hyperbola Linux excludes.
https://wiki.hyperbola.info/doku.php?id=en:philosophy:incompatible_packages
One of them is pam
You might like to exclude a few other things

1 Like

I wish I could, just does not work that way with LFS, most programs are in
/usr, not sure where the binary’s are located. Academic now, all is gone, chalk it up too learning, will rebuild soon!!!

You just browse around , try to guess the binaries names, and delete them.
My guess is pam uses some daemon for a service… so look in some other linux, see what services are running and find tge daemon name , fhen mount lfs and delete the daemon binary

1 Like

Do I really need Pam?

1 Like

Hyperbola survives without it

1 Like

Yea, but it is a, sometimes, (runtime) dependency or optional for many LFS packages. Optional, no worry, runtime is about the same as required, so do you think Linux-Pam can be built, without it actually running?

1 Like

You mean , compile it, install the binaries, but dont start the daemon?
Yes, or you could do the lot then stop and disable the daemon

To handle daemons you need to see what init system LFS has. Probably sysVinit?

Yes, if Pam is a dependency there are issues if you remove it. Not insurmountable, as hyperbola has shown, but a lot of work.

Sorry for delay, I am slow at moment… have what we think is a sciatic nerve issue affecting my leg.

1 Like

Generally pam is an optional build-time dependency. Iirc pam does not have a daemon, but does have several executables and libraries.

It stands for Plugable Authentication Modules. It can be really useful and allows for some black magic regarding user rights. Fun stuff.

1 Like

Thanks, I was wrong there.
So it is not a service, it is just a program or library that other programs call.
That means if it is installed, it will be used… you cant disable it.
Other programs, when compiled, may have the option to use or not use pam

1 Like

There’s actually loads of cool things you can do with PAM.

  • Multiple authentication methods
  • login control/timeout
  • logging authentication events
  • controlling access to applications/services

I think it could be used to (for example):

  • Let users use 2FA or a fingerprint scanner to login.
  • Allow regular users to mount disks or fsck them, or forbid them to use sudo.
  • Enforce a certain timeout after which the user is logged off. Alternatively, when no user login happens for X time after turning the computer on, the computer could automatically be turned off.

Really, @Daniel_Phillips I’d suggest keeping it around and linking it to as much as possible, because it then allows you to do all kinds of fun stuff.

The average file manager can mount disks because of PAM, for example. In combination with another tool (not systemd) you could get an encrypted home directory - transparently.

Basically, anything involving user authentication is PAM’s domain and through various modules it can do all kinds of stuff in relation to that authentication.

4 Likes

@xahodo
You most likely are right, and the issue with Pam, was more my mistake, I just did not understand the install instructions!!
But LFS requires cracklib and then pam and then reinstall shadow and even if I get LFS, to a
point, I really will not use LFS!!! So do you think I could survive with just using shadow for passwords and sudo for my user account?

2 Likes

PAM and cracklib ought to be optional… I think (I just went with the instructions). I just built LFS back in the day, and once I got it to boot and on the internet with links, I called it a day.

Why not try having fun with Void Linux after LFS? You get a bunch of base packages (actually a lot of them) which are available in binary form through xbps and if you want more, there’s xbps-src.

2 Likes

@xahodo
I have tried Void, it may be a very good distro, just did not fit into my,
"linux-to-do-list!!! I have had LFS to the CLI, several times, but booting to
a CLI and to a bash prompt, just invites me to BLFS!!!
I am now trying something different, with Ubuntu, in a VM!!!
Could you, or anyone on this forum, explain just what and how to use the
the git file “LFS codes” !!!

1 Like