[ / / / / / / / / / / / / / ] [ dir / animu / bestemma / desu / mde / monarchy / ptchan / tulpa / vichan ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): ea7056643f27a1a⋯.jpeg (5.72 KB, 225x225, 1:1, lfs.jpeg) (h) (u)

File (hide): 3ce114ec173f4ef⋯.jpg (86.99 KB, 900x637, 900:637, MacBook-2006.jpg) (h) (u)

[–]

 No.1004651>>1004686 >>1005456 [Watch Thread][Show All Posts]

http://www.linuxfromscratch.org

LFS 8.3 stable runs 4.18.5 kernel, gcc 8.2.0

It's a journey, but it's a good one.

Anyone else running LFS? Any useful hints in venturing further?

I'm going to install Guix + dependencies next.

I wanted to give my girlfriends old macbook from ~2006 a new life. You couldn't even view the apple support pages on the ancient safari version anymore - support is dead. It has 32bit UEFI for some reason, so I only gave FreeBSD-current a try before (stable didn't boot). Had it lying around for some time like that, but then pkg broke because of an update and I decided to start from scratch. The only 32bit linux, that I could find, that also comes with 32bit UEFI was sparkylinux (debian based). No idea why apple thought they should put UEFI on that machine. There's also no BIOS/UEFI menu at all. To get legacy systems to boot you have to fiddle around with refind until it agrees to boot that. And even then not everything boots as expected.

 No.1004654>>1004655

File (hide): ac3740752f3583a⋯.png (32.1 KB, 200x248, 25:31, Core_Duo.png) (h) (u)

The coreduo processor is also pretty weird. They decided that the cores should share a cache, to save money I guess. According to some Intel employee -march=prescott is the most fitting compiler flag (doesn't have the sse3 instruction if you cat /proc/cpuinfo). I compiled the kernel with architecture=pentium4, no problems yet.


 No.1004655

>>1004654

Core Duo is basically a Pentium M Dothan with a 2nd core grafted on.


 No.1004686

>>1004651 (OP)

>2006 macbook

Try it on a g4 sometime. That's what I daily. Gonna do a GNUstep install on it. After that, I feel like trying it with the BSD kernel, but we'll see.


 No.1004710>>1005406 >>1005411

LFS is a pain to administer and keep secure / up to date. Don't even bother.


 No.1005397>>1005406

I think those old 2006 MacBooks actually support libreboot and coreboot. You should be able to use seabios payload but I haven't actually tried that myself before.


 No.1005406>>1005459

File (hide): 54de12ed511d440⋯.jpg (804.95 KB, 2736x3648, 3:4, s-l1600.jpg) (h) (u)

File (hide): 2c5c2b578fb46ba⋯.jpg (46.87 KB, 549x550, 549:550, 4c5881bb49695_74726b.jpg) (h) (u)

>>1004710

But it's fun! It's the most fun I had with Linux since trying to get the xserver on Corel Linux to start up without crashing. It's like discovering something new, kind of, and it never hurts to learn more. Now that I'm thinking about it - no idea where that nice box and the hueg manual went.

>a pain to keep secure / up to date

I guess if you don't run any services, read about vulnerabilities once in a while and block as much traffic as possible it shouldn't be a problem. It's not like I'm using it as a server system. Keeping things as barebones as possible may actually make it easier to keep secure.

It uses sysvinit and reminds me a bit of BSD configuration - although that is, subjectively, still a bit nicer tbh.

Keeping it updated will naturally be bothersome. There's Guix on there now (since your .guix-profile/bin etc is included before the rest of your $PATH, it's no problem to build newer versions "on top" of the existing ones in /bin), but for everything further down I'll have to do everything by hand.

Clearly not intended for "production" use, but I have time on my hands and the only thing I'm producing is my power bill.

>>1005397

>libreboot and coreboot

Actually didn't think of that. The last thing I remember is some tranny drama though - and I'm scared that I might brick the thing because of some weird Apple quirks, that are not expected. The "UEFI" on there has no configuration menu, it just tries to boot the next best efi file on the harddisk. You can hold alt while starting to get into an onboard bootselector, which actually has mousesupport, for reasons unknown. From there you can try to boot efi refind, which can then boot legacy systems - or not. Sometimes it doesn't boot what you selected and just continues to boot the next best thing.

Apple is crap. I set up a timemachine server for my girlfriend and tried to backup her files over wifi - can't bother her to learn rsync or something. Her macbook was running hot for 8 hours or something, just to silently fail. It opens the connection to the server and then sends nothing while it's compressing the files. When at any point the connection is lost it scraps everything it has done and starts from the beginning. Then you turn up after 9 hours and ask yourself what the hell is taking so long. Timemachine won't tell you.


 No.1005411>>1005424 >>1005425 >>1005459

>>1004710

Speaking of that. How does one automates the updates?


 No.1005424

>>1005411

There is no complete solution. While there are lots of packages that could be installed with just 'make && make install' lots of software has unique install procedures, so you would need to write a script/configuration for each package telling your update script/program how to update each packages individually. Package management on other distros is so trivial only because of the man hours put in by others who each handle only a single or small handful of packages, then distributing them as binaries. Imagine being the maintainer of 400+ software packages for any given distro. It would basically be a part time job. Your options are basically to follow CVS for all your installed packages (or maybe limit it to only kernel, core libraries and network facing software) and only patch major security holes, or try to install a package manager like slapt-get which should be able to just drop in, but this will likely only manage software installed AFTER you finish your installation, and some what defeats the point of LFS. Really i would only recommend LFS as a learning experience, rather than a continuously maintained desktop/server.


 No.1005425

>>1005411

At that point you're building a distro. You either bring in an existing package manager or you Roll Your Own™, then having formalized what file hierarchy you'll use, you set up a repository of sources with patches as necessary only to finally use aforementioned package manager to update your system. Or you just install Gentoo/Slackware/whatever. Best of luck either way.


 No.1005456>>1005467 >>1005484

>>1004651 (OP)

06 is Core1, right?

>The only 32bit linux, that I could find, that also comes with 32bit UEFI was sparkylinux (debian based)

No, there is Debian which you've retardedly overlooked.

Debian has images specifically for Macs and you'll need a 1MB Apple boot partition.

My 07 MacMini has no EUFI, so you must be confusing it with that 1MB Apple boot partition.


 No.1005459>>1005484 >>1005497

>>1005406

>and it never hurts to learn more

I'm sure you learned a lot by copy and pasting commands from the site. I could summarize what I learned by using LFS as my daily driver for about a year in a few sentences.

>>1005411

Just use gentoo. It's a similar experience to LFS but software is installed by scripts made by the community instead of you copy and pasting the files yourself. It essentially distributes the work of managing the operating system over a large amount of developers instead of just you.


 No.1005467>>1005484

>>1005456

I've checked everymac and it says the 07 Macmini has an efi bootloader, but I don't recall needing to make an efi partition like you would on normal PC hardware. I did need that 1MB Apple boot partition. I'm wondering if I formatted the drive to dos instead of gpt. At any rate, the standard fdisk program on linux doesn't have support Apple mapping so you will need to be sure your image is meant to go on Macs. Debian has i386 netinstall for Macs.


 No.1005484

>>1005456

>there is Debian

Tried Cent OS, Fedora and an older Ubuntu server version (latest doesn't have i386) so I figured I was done with Debian-based. My bad. Only needed it as a host system anyway. Could have saved me some time though.

>Core1

Yes, Core (1) Duo (yonah).

>>1005459

>I'm sure you learned a lot by copy and pasting commands from the site

I typed it out by hand, so I saw what I was doing. You should know what's where and why when you're done, since you start with nothing. It was interesting, no regrets.

>>1005467

The bootloader that you can use after holding alt during startup is not on the harddisk, I think. Formatted everything and made my own efi partition for grub. I can still use it, it's part of the UEFI I guess.


 No.1005497>>1005852

>>1005459

>It essentially distributes the work of managing the operating system over a large amount of developers instead of just you.

Once you realise that you should realise that binary distros are even more sane. Once you are building shit other people are building you are just duplicating effort.


 No.1005852>>1006983

File (hide): b365b1853510491⋯.jpg (41.28 KB, 480x360, 4:3, 423443554.jpg) (h) (u)

>>1005497

>binary distros are even more sane

but binaries are botnet[!]

http://bootstrappable.org/


 No.1006983>>1007000

>>1005852

If I had a dollar for everytime these people use the word (((community))).

"There is no we, or us, or them; just you and I"


 No.1007000

File (hide): 31b6e141fbf05f5⋯.jpg (80.92 KB, 977x718, 977:718, 4687498498746.jpg) (h) (u)

>>1006983

Yeah and also it's

>Made with ♥ by humans and blablabla

But it's genuinely interesting and I don't have to interact with them. It's free information.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
17 replies | 4 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / bestemma / desu / mde / monarchy / ptchan / tulpa / vichan ][ watchlist ]