104 points · by hollimolli · 2y ago · 50 comments
I think one of the major challenges of using modern software on early versions of Mac OS X (and even on current macOS releases) is the fact that Linux has become the de-facto standard Unix-like operating system, and modern Linux with systemd, Wayland, dbus, and other technologies have deviated greatly from POSIX and other classical Unix technologies. Granted, the world has moved on since the last POSIX revision, and commercial Unix (e.g., Solaris, HP-UX, AIX, etc.) is not as commonplace compared to 20 years ago. Still, this has impacted the BSDs; their development communities are more conservative and some people have strong feelings about technologies like systemd and Wayland, but since Linux has a higher marketshare and an increasing amount of software is written for it without regard for the BSDs and other systems, then Linux has become the standard and the BSDs have to deal with a fragmented software base that once cared about portability among *nix systems.
I wonder, though, how difficult would it be to replace older versions of Darwin (the open-source BSD and Mach layers of macOS) with updated code while ensuring the proprietary layers running on top of Darwin still work? This might be a good approach for helping older macOS versions run newer software, as well as adding compatibility layers to deal with Linuxisms. I remember reading about experiments updating the kernels of NeXTstep and Rhapsody in a similar fashion.
Systemd is inspired by/imitating launchd; macOS did it first, to much less fanfare, and therefore much less awareness.
The evolution of Cocoa alongside GCD, XPC, and launchd would probably mean a lot of difficulty in backporting. Things shifting between kernel and userspace and launchd services with restrictive permissions won't be kind to a lot of software of reasonable complexity.
It’s something I’ve done a little bit of research into, and on top of the usual challenges posed by developing a DE you’d also be fighting the momentum of the two dominant desktop paradigms open *nix software is built for, which is Win9x-type (KDE, Cinnamon, LXDE, and kinda XFCE) or iOS-type (GNOME, Pantheon).
Perhaps the hurdle with the most visible impact is the global menubar, which is currently kind of doable with Qt-based apps, but is broken in GTK apps (plugin is unmaintained) and totally nonfunctional in Wayland. I think that perhaps the best approach to solving this is to build a proof of concept generalized approach for applications to expose their menubars to the desktop environment with and submit it as an XDG standard that hopefully the big guys eventually adopt.
- helloSystem (https://hellosystem.github.io/docs/) —- an OS inspired by macOS that uses FreeBSD as its base and uses the Qt toolkit for rendering UI elements. - ravynOS (https://ravynos.com/) —- a more ambitious attempt to create a FOSS clone of macOS. FreeBSD is still the base, but it does not use X11 at all for windowing.
There is also the venerable GNUstep project, which aims to provide a FOSS implementation of the Cocoa API.
These are massive undertakings. I haven’t kept up with these projects in a while, so I don’t know their current status.
GNUStep is interesting but I don’t see it gaining a significant following with Swift sucking up the majority of air out of the room for apple-platform-adjacent projects.
I really don't understand why people keep pushing this misconception. GNOME certainly doesn't have to be for everyone, but this canard is needlessly dismissive and based on a childishly superficial apprehension of GNOME. Just because there is a full screen menu, and the desktop is uncluttered by extranious UI clutter so you can just focus on your task and use the keyboard to control windows and navigate, that makes it "iOS like"? At that point what does that even mean?
If anything, I'd say GNOME is far closer to a tiling window manager. Again, I'm not saying this workflow has to be for you, but it is a consistent, desktop class workflow of its own: a keyboard- and virtual desktop-centric workflow focused on filling the screen with applications via full screens or splits so you can focus on your work, with no extraneous UI elements made obsolete by virtual desktops that only stick around because people are used to them like taskbars, docks, and minimization buttons. The logic of this is excellent IMHO. There is no need for a taskbar to manage minimized or occluded windows if you can just banish windows to other virtual desktops to get them out of the way, but still see them immediately in a multidesktop expose view and fuzzy window search, and new desktops will be fluidly created for you as you fill them up; no minimization button for the same reason; no need for a dock or pinned application icons because an extremely powerful spotlight-style fuzzy application launcher (with built in app menu search, calculator, web search, file search, definition finder, etc) and a dock, combined with a very useful expose and workspace overview conveniently arranged there for you in a single screen, is a single click or key tap away, etc. It seems to me people just assume that since GNOME doesn't have things they're used to from UIs they associate with "work", it's must be a "toy."
Alongside other controversial changes in Linux such as systemd and Wayland, I think some of the antipathy toward GNOME 3 is caused by resentment and the strong network effects these projects have. If GNOME had little influence over other projects, these strong feelings would’ve been much weaker. However, GNOME is one of the most influential projects in the FOSS desktop computing ecosystem, with major consequences even for people who don’t use GNOME. For example, GTK over the years went from a generic toolkit to a much more GNOME-specific one, with consequences for developers and users of GTK-based software who were not fond of GNOME’s major changes beginning with GNOME 3. GNOME also drove the adoption of systemd and Wayland, which is also a source of consternation.
Yes, GNOME developers have the freedom to do what they want with their own software. But there is resentment by some users regarding GNOME’s influence and how the goals of GNOME, Red Hat, and other major players in the Linux ecosystem don’t always align with the Unix philosophy. Change is hard for some people to accept, especially changes people feel are for the worst, whether or not they are actually worse.
optimized for touch screens
Other than macOS, you mean? It remains a licensed Unix.
I've rarely run into difficulty running FOSS software on macOS, although I've mostly stopped trying with anything with a GUI; not because Linux-oriented GUI programs don't work but because they subvert too many of my expectations, and I prefer to use something Mac-oriented and ideally Mac-native.
Just to confirm that, I downloaded GIMP, it loads fine, scribbled around on a canvas. Went to close it and it popped up one of those dialogue boxes telling me to either save the file or lose my work. I've grown rather accustomed to programs just behaving correctly, which is to close down, and open up again exactly as I left them. But it does seem quite functional in the usual sense.
There are some tools which are entirely Linux specific, rr comes to mind.
This is something I've thought about a lot and would love to see pursued.
We know that the XNU kernel from Snow Leopard still lists PPC (https://github.com/apple-oss-distributions/xnu/tree/xnu-1504...) but it probably won't be easy to build and replace a 10.5 kernel with.
The Hackintosh community did a lot of kernel hacking and custom kexts early in the Intel transition. It would be great if those people pivoted to PPC backporting or sharing their experiences once Apple drops x86 support in the near future.
Have you tried running something xquartz and have, say, firefox running on sone other computer on the network? As long as you’re on a fast lan with low noise (basically cable gigabit ethernet?) it should be mostly okay? You’d have to redirect audio as well though…
Other solutions might work… guacamole could work but would use a whole other desktop (whereas x11 would still have some resemblance of integration).
If you’re okay with remoting the whole desktop, xrdp and vnc are also options…
Oh man, despite its technical flaws (crashes and bad performance), I still really miss the Dashboard feature from those old Mac OS versions!
Just recently, Apple have started reintroducing desktop Widgets to macOS. But I wish you could make them work like the old Dashboard, ie instantly go to them with a swipe gesture or a Fn-key press.
The old Dashboard was feature just so fast and easy!
I understand why they dropped the original Dashboard, its widget platform was a technological dead-end. But now that widgets are back it would be awesome if they made the new widgets work like the old Dashboard again.
If you have any part of the desktop visible (e.g. to the left or right of the dock) you can click there so it hides all windows. I'm not sure if you need to enable this somewhere.
Also, there is a trackpad gesture to show the desktop: Keep your thumb stationary and use three fingers to swipe away, as if zooming out.
And, amazingly, was HTML/CSS/JS based (for widget development).
My headcanon is that this was secretly a test run for what an iOS IDE would have looked like under the original (pre-iPhoneOS-2.0) model where there was to be no native SDK since Dashcode 2.0 does actually include the ability to target iPhone Safari.
> Reduce CO2 emissions, keep writing C.
This really made me chuckle. Really!? To reduce CO2 emissions just use a modern machine that's going to be so much more efficient on a performance per watt basis. The author is missing the forest for the trees.
Also, Rust has great cross-compilation support no? Isn't it easier to get Rust code compiled on a modern machine for that old machine?
Also, I doubt mere mortals can compile Rust software for PowerPC OS X. LLVM IR isn't backward compatible and Darwin/PPC hasn't been a supported target for a while. If you used a 2018 rustc and LLVM 7.x you might get lucky.
> Rust: Even if it worked on this platform
I wonder how much effort getting rust there is actually needed. rustc already has (tier3 level) support for powerpc-unknown-freebsd so PPC OSX doesn't sound like completely out of the question?
Generally speaking web browsing is the biggest problem if you care about that because there is virtually no supported modern browser (apart from Lynx but that's text based). And even if there would be one the web is totally different compared to ~2010 era. Adblocking is a _must_ and without that any site with ads kills the old Core 2 Duo CPUs
The biggest issues are that Safari and sshd are so old they're basically useless.
- I don't really need a browser on that machine, but for comfort I replaced Safari with the no longer updated but still usable TenFourFox browser. Log into your ppc system and type 'machine' at the prompt. Use the value it shows to choose which version to download from: https://sourceforge.net/projects/tenfourfox/files/fpr32.5/
- For sshd replacement I installed Dropbear as I couldn't get openssh to build. To get Dropbear to build I had to:
1. Comment out "LTC_CFLAGS += -Wno-nullability-completeness" in libtomcrypt/makefile_include.mk and libtommath/makefile_include.mk (as the C compiler didn't know that option).
2. In default_options_guard.h after the #ifndef related to DROPBEAR_SVR_PAM_AUTH, add "#define DROPBEAR_SVR_PASSWORD_AUTH 0" and "#define DROPBEAR_SVR_PAM_AUTH 1" (as OS X needs PAM to log in).
3. Build with: ./configure --enable-pam make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" sudo make install
4. Start the new Dropbear ssh server on port 2222 as follows: mkdir /etc/dropbear /usr/local/sbin/dropbear -F -E -R -p 2222
You can then ssh into the machine as before (ssh -p2222 user@host) and things like port forwarding work fine.
Nice feeling to have a G4 Mini still doing something useful!
Just to be clear, you’re running Leopard (10.5), not Snow Leopard (10.6). Snow Leopard requires an Intel CPU, although hacks exist to run it on PPC.
edit: looks like gcc 10.2 (at least) will work, so that's up to C++17?
Win some, and lose some (just look at my own submission history). Cheers.