Hi, I'm learning python and I have purchased a 2015 MacBook air. I want to install Linux on it (Ubuntu) but my friend who's a developer told me to leave the MacOs because they are similar as operative systems. What do you think? Should I change the os and switch to Linux? Thanks.
Edit: thank you for your replies. There are still so many things I don't understand about programming and os, sorry about that.
Depends. Are you happy with MacOS and want to stay in the Apple ecosystem?
If yes, then just keep it. It is perfectly tailored for your hardware.
If you are annoyed by it or want to try out something new, then try Linux.
The 2015 MBA has a Intel CPU afaik and general hardware support should be fine from what I've heard.
Instead of Ubuntu, I would recommend Fedora, either the Gnome or KDE variant. If you prefer minimalism and the coherence/ well-thought-outness of MacOS, then use the Gnome ("Workstation") variant, and if you prefer customisability, then the KDE-spin.
You could also take a look at the Atomic variants, they are a newer concept with a few benefits (and also drawbacks) compared to the regular versions.
As a small tip: no matter if you decide for the mutable or the atomic versions, use Distrobox! While Python is pre-installed, it is a system dependency, and you wanna keep your dev environment isolated from your host OS. If you wanna change the Python version for example, this might otherwise brick your install.
Gentoo also relies on python for builds. I wonder why older distros shifted to python instead of relying of bash scripts.
Isolating your dev environment is quite handy in any scenario. 👍
Definitely want to use virtual environments instead of messing with the system default Python. I’d keep MacOS and learn Python on that personally. Switch OS when they know what they are doing and more what they want.
Why not dual boot? It is possible to have both. That is what I typically do and with Mac this can be helpful because sometimes you may need to access MacOS for drivers and such. This way you can cross-compare and have more opportunity to learn.
I'll second dual booting. If you want to try linux, I say put Linux Mint on a flash drive and live boot it. That way you can test Linux without needing to install it right away.
As a Python dev, I think I may understand your desire to get away from Windows. I have often encountered Python tools and frameworks that don't work on Windows but do on Unix (Linux and MacOS), like Flask, but can't recall seeing the other way around.
If:
Your laptop is still receiving security updates from Apple and is performing well,
And your main focus now is to learn Python
I would not mess with it and just stick with MacOS.
If your laptop is no longer supported or it is getting too slow, or if you want to play around with Linux, that would be a good reason to move away from MacOS.
I think I'll try the original Os, which should be Monterey, for a couple of weeks. If it's slow or doesn't receive updates anymore I'll move to Linux. Thanks for your advice.
MacOS and Linux are similar for the purpose of learning Python. However I recommend to install GNU/Linux. MacOS hides its internals to provide a better user experience, however as a developer you need to learn how the OS works, and GNU/Linux is much better suited for this.
You sound like you're a bit new to software engineering/computer science, so I would stick to MacOS. Linux as a Desktop OS is not quite a pain-free experience and you'd likely run into issues that would get in the way of you learning programming.
What people mean by MacOS and Linux being similar is that they are both Unix-based, which basically means that the command-line experience in both OS's is pretty much the same.
I wouldn't call Linux a "not quite pain-free experience".
IMO, the experience has been dramatically improved in the last 2 years or so, and the only pain for most people is just that it's a new OS with new workflows and approaches.
Or what would you call painful?
Just as a background, I'm no IT-guy, just casual user who's into this weird OS :D
Let me guess, you started using Linux daily around 3 years ago?
In my experience the pains of Linux have been the same for decades (well, not really, xorg.conf was a major pain in the ass). I think in general people get used to Linux and after a year or so and they think the system became simpler, when in reality it's more that they learned the Linux way of thinking.
See how well the OS runs. MacOS does have a reputation for slowing down on older hardware as newer versions target their newer machines, and I'm also not even sure if a 2015 is supported by Apple anymore?
If the laptop is slow or not recievinf security uodates anymore, then switching to Linux may give you a performance boost and will put you back on to an update secure system.
If MacOS is still running fast on that laptop and it's secure, then it'd just come down to preference. If you like Linux, or like the degree of direct control Linux gives you then it would be worth installing it.
And if you decide to keep MacOS you should still try and fresh install the OS, as that may also give a performance boost.
Edit: in terms of being similar OS, they are but it's not relevant. Both run python, and the hardware is what matters more when it comes down to compiling. It's more about the rest of the OS and what your preferences are.
For a developer, I’d try PopOS! It is built on Ubuntu, but doesn’t stray far from it. It has a lot of developer tools and packages either pre installed or easy to access. Simple install process and runs well.
I recommend Fedora Kinoite or Silverblue. These are Systems built differently, they have an immutable core that is not changed and is thus very stable. You can add and remove packages, which will only be applied after a reboot, and in general keep this as minimal as possible.
You can easily reset your system to be running again.
As a mac user I recommend to use GNOME, maybe with dash-to-panel, so use Silverblue which is Fedoras "atomic" version of GNOME.
After installation you may want to rebase to ublue and their silverblue-main image to get more goodies.
Install a distrobox with ubuntu or fedora, install pipx there and whatever IDE etc. you need.
distrobox create -i (press tab to get the image list) Dev
distrobox enter Dev
# add some repositories for pycharm and more
sudo dnf install fedora-workstation-repositories
# add repo for VS Codium (FOSS version of VSCODE)
sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
printf "[gitlab.com_paulcarroty_vscodium_repo]\nname=download.vscodium.com\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | sudo tee -a /etc/yum.repos.d/vscodium.repo
sudo dnf install -y pipx pycharm thonny codium whatever
# export the apps so they appear in your app drawer
distrobox-export --app pycharm
distrobox-export --app thonny
distrobox-export --app codium
Explanation: Distrobox uses a Podman container, and allows to install a "separate linux distro" in there. This will be very minimal version and you can do crazy things there and your base OS will not be touched.
That way you can install Ubuntu, Debian, Fedora, Arch/AUR, Opensuse and more apps.
Using the "export" function the graphical apps will appear in your app drawer and work perfectly fine. Be sure do do a distrobox upgrade --all once in a while.
The experience is really painfree.
On the main OS, get your rest apps as Flatpaks which are sandboxed like on Android, work very well, are up to date and also dont touch your base system.
Updates go in the background without you noticing, once you reboot you are on your updated system. If an update broke something, do rpm-ostree rollback and stay on that version. If you do something crazy like adding a ton of apps to the base OS, do a sudo ostree admin pin 0 to always save the currently used system as a backup.
It is way better than Windows, not sure about MacOS but it is for sure way more free. If you want a well working, elegant and simple desktop, GNOME / Fedora Silverblue is a very good option.
I'll second dual booting. If you want to try linux, I say put Linux Mint or KDE Neon on a flash drive and live boot it. That way you can test Linux without needing to install it right away.
Mac OS uses Unix, Linux is Unix Like. At the core their structure's are the same
however despite being the same they have different software packages.
The question you need to ask yourself is: does MacOS have the software I need to do what I want?
For me I need Xcode for iOS development, so that is a yes. But for you, perhaps you may prefer the Python packages on Linux. Or the ease which new software can be installed.
However regardless on what is better or not, know that you can always re-install MacOS afterwords. Macs have a recovery mode that let's you wipe the ssd and reinstall. I used it when I upgraded my 2015 Mac from 128GB to 1TB.
Python is basically the same on Linux and Mac. The command line tools are actually different. Some apps like date or awk work a little different on Mac. You can install gnu equivalents like gawk via brew or Mac ports.
My guess is that a 2015 Macbook Air is probably not going to run a MacOS version that is still supported by Apple. That would be yet another reason to simply install Linux. Before you do so you can go for https://rescuezilla.com/ and do disk cloning to an image that you save to some storage like a USB disk. If you do the same after your installing and tweaked Linux installation, you can have the best of both worlds whenever you need it.