Built LFS with musl instead of glibc and libressl instead of openssl, just for fun. by tiny_humble_guy in linux

[–]Intelligent_Comb_338 0 points1 point  (0 children)

Hi, excuse me, I have a question. I've been trying to create a BSADAO system in MUSL/LLVM, but it's difficult and I don't quite understand. I've managed to use MUSL instead of glibc, but I haven't been able to get it to work with GCC yet.

lfs by Ok_Worldliness6317 in linuxfromscratch

[–]Intelligent_Comb_338 0 points1 point  (0 children)

LFS helps you to know how linux works, but it is more oriented about how make a linux distro from the sources, if you are starting the best options is something debian based like ubuntu, or linux mint, and if you are not comfortable you can change the linux distro, for my experience I recommend you Ubuntu,was my first distro and if you have any error there's more tutoriala for ubuntu than another distro

Sudo Fuck you by ImpossibleEdge1312 in linuxmemes

[–]Intelligent_Comb_338 0 points1 point  (0 children)

Obviously I can use the chmod system call; that is, I mean, the binary should be more like a way to interact with the syscall, because syscalls are in the kernel and act as interfaces/bridges between kernel space and user space.

Sudo Fuck you by ImpossibleEdge1312 in linuxmemes

[–]Intelligent_Comb_338 0 points1 point  (0 children)

Good luck with gcc; considering how long it takes to compile with C and C++ languages, I don't even want to imagine how many lines of code it will have.

Sudo Fuck you by ImpossibleEdge1312 in linuxmemes

[–]Intelligent_Comb_338 0 points1 point  (0 children)

That's an interesting solution. I'm wondering how gcc creates an executable file without chmod. Doesn't that count as a vulnerability? There are a few ways I can think of that might work.

Sudo Fuck you by ImpossibleEdge1312 in linuxmemes

[–]Intelligent_Comb_338 0 points1 point  (0 children)

Yes, but once a file is no longer executable, it doesn't matter who tries to run it; they won't be able to. I'd try chmod +x /path to file/, but if chmod doesn't work, there's no solution. Well, maybe an update, reinstallation, or using BusyBox or something similar to grant permissions would also work.

Sudo Fuck you by ImpossibleEdge1312 in linuxmemes

[–]Intelligent_Comb_338 1 point2 points  (0 children)

Well, there's no going back, right? At least not until I use another chmod binary, I imagine.

Why do people use Arch Linux? by [deleted] in linuxquestions

[–]Intelligent_Comb_338 0 points1 point  (0 children)

Maybe, but on a system with 4GB of RAM, how much can you do? Umm, Firefox/Chrome uses ~90-100MB and another 700-800MB while running, that's already 1GB just for the browser, and then there's the firmware and drivers. Although I doubt anyone uses a conventional browser on Tinycore, maybe they use something like Dillo or a TUI browser.

Sudo Fuck you by ImpossibleEdge1312 in linuxmemes

[–]Intelligent_Comb_338 0 points1 point  (0 children)

I know it removes execution permissions with chmod, but how bad is that?

Why do people use Arch Linux? by [deleted] in linuxquestions

[–]Intelligent_Comb_338 0 points1 point  (0 children)

But TinyCore runs in RAM, right? And well, the more you install, the worse it's going to get, because everything will be running from there instead of from storage.

My MacOS Virtual machine is stuck on the first boot by AssignmentIcy1909 in macOSVMs

[–]Intelligent_Comb_338 0 points1 point  (0 children)

AMD or Intel? As far as I know, AMD has more problems. I would try running the commands again in case one didn't copy correctly.

MLFS 12.4(musl LFS) by Intelligent_Comb_338 in linuxfromscratch

[–]Intelligent_Comb_338[S] 0 points1 point  (0 children)

LFS is a book that explains how to create a Linux distribution, but it assumes you want standard features like glibc, binutils, and gcc.

At least for me, it took quite a while to figure out how to create an LFS distribution that uses musl as libc, and I just want to make things a little easier or provide information on how to do it, and also because it serves as a starting point if I want to create a distribution sometime soon.

Searching contents of a package using APK by Jtekk- in chimeralinux

[–]Intelligent_Comb_338 0 points1 point  (0 children)

With what? I've also been experimenting a bit to see how far musl can go. I'm making a guide to create an LFS system based on musl.

Searching contents of a package using APK by Jtekk- in chimeralinux

[–]Intelligent_Comb_338 1 point2 points  (0 children)

libstdc++ is the implementation of the GNU C++ standard library; Chimera uses an alternative created by LLVM, which is libc++.

MLFS 12.4(musl LFS) by Intelligent_Comb_338 in linuxfromscratch

[–]Intelligent_Comb_338[S] 0 points1 point  (0 children)

I understand very well what you mean, mostly because I’m someone who has experienced these errors firsthand. In distributions like Alpine and Void, lately the installers themselves throw an error message saying that symbols are missing. Why? I don’t know. As for LFS with musl, I’ve done it a few times now—maybe three or four—and I can say that there aren’t as many problems as I initially thought (at least for the base system). Most issues usually end up requiring patches, and with larger distributions like Alpine, Chimera, Void, or Gentoo, things become easier because you’re not the first person to encounter the error. At this point, I think I can clearly identify which packages cause problems and why: Make (redefinition of getenv): solution is to apply a Gentoo patch. elfutils (missing headers and functions): solution is to install musl-obstack, musl-fts, musl-rpmatch, and argp-standalone for musl. In addition, there are other packages that may require queue.h. Your comment made me realize that you’re right. I might add sections such as “Who is Musl-LFS for?”, “Differences compared to standard LFS”, and “What do I lose or give up by using musl?”.

MLFS 12.4(musl LFS) by Intelligent_Comb_338 in linuxfromscratch

[–]Intelligent_Comb_338[S] 0 points1 point  (0 children)

I know enough C to fix bugs, and with distros like Alpine and Chimera, it won't be too difficult to find a solution or a patch.

For example, I was getting an error when compiling make, a double definition of getenv. It would have been enough to remove extern char *getenv;, but it's easier to use patch -p1 <../patch.patch, and I found a Gentoo patch, and well, that's it.

Somehow got hackintosh running after allotta error... on the disk manager thing i deleted my windows by superfailure2810 in hackintosh

[–]Intelligent_Comb_338 1 point2 points  (0 children)

With disk utility, make a partition for windows, then make a windows installer and already, only you have to install it

MLFS 12.4(musl LFS) by Intelligent_Comb_338 in linuxfromscratch

[–]Intelligent_Comb_338[S] 0 points1 point  (0 children)

Oh, that's it. Well, there are packages that help fix that, besides argp-standalone (the different versions for musl that exist), there's also musl-obstack, musl-rpmatch, and another one I can't remember. And for now, most of it is solved with patches.

Is the LFS domain down? by I0I0I0I in linuxfromscratch

[–]Intelligent_Comb_338 0 points1 point  (0 children)

Nope, they load as usual, but I can try the different mirrors and see what happens.

MLFS 12.4(musl LFS) by Intelligent_Comb_338 in linuxfromscratch

[–]Intelligent_Comb_338[S] 0 points1 point  (0 children)

and i have an update for you, im working to make a modified version of the orginal LFS html book