The adventure of installing ArchLinux on an Apple computer.

This is simply an anecdote
OS X

(Not so) Small Introduction and anecdote of my life:

Some time ago, when I was still a young man without much experience in the world of computing, I dreamed of having an Apple computer. They look good aesthetically, the operating system is nice and simple, they tend to last several years, the hardware is of the latest generation ... anyway.

In those days, my computer was a Dell Inspiron 1420 with only 1Gb of RAM, a 1.5Ghz Intel Celeron and an integrated Mobile Intel 915GM GPU, which came with Windows Vista OS. I installed Ubuntu 10.04 out of curiosity, and in the end it replaced Vista entirely.

Finally, my dream came true, my parents gave me an iMac Mid-2011, in the end it was not the revolution that I expected, but I was very happy with it, because after all it was a new computer.

In turn, I continued experimenting with Linux on my laptop, going through countless distros until I found the wonder that is Arch Linux. Yes, it is true, its installation can scare the novice user, but just read the installation guide, and everything will be fine.

Unlike the iMac, the laptop has already been changed 3 times, from the Inspiron 1420 to a Toshiba Satellite with AMD A6 (I hate it, both on Windows and Linux… I blame the heat and the driver in each case).

Then I got an ASUS, which had a Core i5 and NVIDIA graphics. After a week I fail, so they changed it for another. Now I have a Sony VAIO, and I am very happy.

Returning to our point, it has been almost 3 years since I received the iMac, OS X has regressed, it's gotten slow, clumsy, heavySo just yesterday it occurred to me to completely replace my OS X system with ArchLinux.

To get a fully functional system to my liking, I had to do the following:

UEFI compliant installation:

Fortunately, nowadays the UEFI Shells that come inside the ArchLinux ISO work perfectly, so I could easily start from USB and from there, follow the steps for installation in UEFI systems that comes in the official guide.

Another point in my favor is that I had no need to maintain OSX, which simplifies the work a lot.

Install a bootloader that works on Apple firmware:

It sounds ridiculous, especially if you've never owned a UEFI computer, but there is a point where I made special mention of this.

First of all, Apple does not use the traditional UEFI implementation, it uses its own (which it calls only EFI) and besides, it is based on UEFI 1.X, not on UEFI 2.X, which complicates things.

After some research, it turns out that only GRUB works correctly on Apple firmware, eliminating my hopes of using gummiboot. But there was a little surprise. It turns out that practically all Bootloaders make use of a package named efibootmgr.

Said package makes modifications to UEFI, adding boot entries, modifying them, etc. The problem is, Apple firmware CANNOT DO THAT. Using efibootmgr on an Apple computer could corrupt the Apple firmware, and the only thing that could be done in that case was to restore the ROM through a complex and dangerous flashing in the MB.

The alternative was to use an experimental utility called mactel-boot. It was better than nothing.

REFIND


So pretty it would have looked with rEFInd

Utilities, graphic server and driver selection:

After the previous scare, and with a base system installed, what followed was the easiest, or so I thought. Adding a user, enabling sudo, all that kind of thing. Until we get to another problem.

Virtually all Apple computers, be they MacBooks (Air, Pro, Retina), Mac Mini, or iMac, have NVIDIA graphics cards, or the integrated ones from Intel. All except the line that came out in 2011, in which Apple had the brilliant idea of ​​including graphics ATI / AMD.

Choose between Catalyst and Gallium3D puts you at a crossroads. On one side, Catalyst it has much better 3D acceleration, but its 2D acceleration is bad, it breaks easily or even out of the blue, and it doesn't work in the latest version of X.Org (1.15).

Also, if I opted for it, it would be necessary to reinstall it every time the kernel was updated, which happens frequently in Arch.

The second option, Gallium3D, the famous free driver, is much more stable, and it is not necessary to reinstall it after a kernel update, in addition to having very good 2D acceleration. However, its 3D acceleration is really lousy.

I installed Gallium3D for now and continued with the installation.

images

Fuck you, ATI / AMD!

DeskE installation, basic applications and audio test:

I installed GNOME 3, Google Chrome, LibreOffice, JDK, Netbeans, etc. The only thing that gave problems in this section was that when I connected the headphones I did not get sound, but it was very easy, I just had to add a line to /etc/modprobe.d/sound.conf.

Printer Installation:

I'm really shocked, because everything that I thought would be easier is precisely what has been most complicated for me.

And it is to achieve that CUPS my printer recognizes me (a EPSON-L355), which is connected directly to Wi-Fi, has been a real headache. I've tried everything, read the OpenPrinting documentation, used the PPD that CUPS provides, installed the driver, used the driver's PPD, and nothing worked.

In the end I gave up and plugged it in via USB. It sounds ridiculous, but it is a printer that 4 people use and I cannot monopolize it, so I will continue investigating.

Well, that's all so far, there are still a lot of things missing (like installing LAMP, the Android SDK, mounting my Xperia S without having to act as a network folder, etc) but that has been it for now.

It was worth it...

 Here the little one, showing the first title that occurred to me for the article (too dramatic).


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Yoyo said

    I have the Mac mini 6,2 Late 2012, I have not installed any Linux distro yet but the ones I have tried in Live, Manjaro and KaOS, go to full, including audio, wifi, bluetooth ... etc

    I still doubt whether to install Linux with OS X, I am lazy having the Lenovo with 3 distros, but someday ... who knows.

    1.    Ale said

      Yoyo, how's the Mac Mini doing? I have a terrible desire!

  2.   Cocolium said

    Buy Mac to put Linux ... I don't know, very bad idea, from the same price point of view.

    In any case, did you try a controller from the same company? Because sometime when using Linux on the desktop I ran into the same problem and simply had to look for the driver from the same manufacturer or someone had even bothered to do it, I tell you this because I also use Epson printers.

    1.    Richard said

      not only bad idea, with the possibility of damaging the firmware and having to flash, not having any possibility of guarantee with Mac Store, this is playing roulette geek mode xD

      1.    Cocolium said

        Nah, I shit on Apple, and the guarantees…. I have never used them and I do not intend to.

        But buying overpriced and ugly hardware has no reason to be, with that money you can buy something much better and without being as emasculated as any "Mac".

        1.    eliotime3000 said

          Lenovo… The only hardware that is not overpriced and worth paying for (only the Think series that it inherited from IBM, as the rest of the lines, nope).

          1.    Cocolium said

            I personally prefer HP, the last line of the Envy is a delight.

          2.    elav said

            How do you know that the Think series is the only one that inherited hardware from IBM? I prefer Lenovo over the rest .. Then DELL, then HP.

            1.    Cocolium said

              Would you believe that Dell seems too ordinary to me? And to top it off ugly Hahaha, almost as ugly as the Toshiba that until recently had my respect for being the hardest on the market, but I know many people who had problems mainly with defective hard drives.

              Personally, first there is HP (I have two) then the dispute is between Lenovo and Samsung, forgive me but the Series 9 of your ultrabooks is a beauty, and last after Apple is Dell, in servers and workstations things change, I still prefer HP but Dell cuts it here.


          3.    eliotime3000 said

            @Elav: To my knowledge, the ThinkPad, ThinkServer and ThinkCentre series have been created by IBM before selling their PC manufacturing department to Lenovo. In addition, the Dell like that now go unnoticed, although the Alienware they make still seem like the ugliest PC's I've seen so far.

            @Cocolio: The HPs have recently been on the podium of trible B laptops (good, pretty and cheap), since it has passed its time of crisis in which there were laptop models that were a fiasco when using them.

          4.    Jon burrows said

            Yes, with the blacklist in the BIOS: trollface:

            Otherwise, the ThinkPads share ideology.

            Although a Toughbook does not hurt either (the latest models are difficult to find in the West).

    2.    TheLinuxNoob said

      I repeat, as I did in the text, that when they gave me the Mac (since I still couldn't buy my things myself) it was my illusion, my entry into a simple, modern, fast, virus-free world, etc. That was 3 years ago. You can't imagine how much I regret ordering the Mac. Today I dream of building my own team. Unfortunately I am not financially independent yet, my only source of personal income comes from developing web pages for SMEs, which do not pay much precisely, and that is from time to time (usually because someone I know recommends me).

      About the driver, I managed to make the printer work by USB. But I still can't get it to recognize it online.

      1.    Cocolium said

        I had a MBP… The worst five days of my life.

        And viruses and so on? Pffff good sense is the thing to have.

        1.    eliotime3000 said

          I tried a MacBook from 2007, and the truth is that I must say that it was all nice, except the keyboard configuration and that red button (I had to resort to CMD + X to permanently close the application).

    3.    Angel_Le_Blanc said

      Linus Torvalds uses Gnome 3 with Fedora 18 on his Mac

      1.    Cocolium said

        AND? That just confirms that buying Apple hardware is just for show, because there is something extraordinary about it.

        Total if Linus stands on his head too? Well, I don't think so?

      2.    TheLinuxNoob said

        I use GNOME 3 with ArchLinux on my Mac. Stallman uses a Lemote, as I can understand on his blog, he surely has his own GNU / Linux compilation running on it with nothing more than the base system. Miguel de Icaza, the creator of GNOME, sent the devil Linux and took a Mac. My network teacher brings a Dell XPS with Kali Linux. Everyone gets and builds their system according to tastes, needs and ideologies.

        1.    Cocolium said

          Still, it seems completely stupid to buy such ugly and overpriced hardware to install Linux, when for the same price you buy a PC twice in almost everything and especially without that horrible design that seems to have been inspired by the kitchen.

          Total that proves the truth that people buy these cans for FASHION, and that is that there is no other valid reason.

        2.    goyho said

          GNOME 3 with ArchLinux on Mac, on a BookPro? If you tell me a little about the steps you followed, I would really appreciate it, thank you in advance!

    4.    pepenrike said

      I agree that buying an iMac and then installing Linux on it is a bit of a waste of money.
      But I was one of those who were fooled by Apple's advertising, and I feel scammed, especially after seeing how with my original operating system (10.6) in less than a year they «ogligged» me to update to 10.8 because yes no, half the programs didn't work for me!
      What alternatives are left: The horrible and frustrating and virus-infested Win8? upgrade to OSX Mavericks, to turn iMac into a huge iPad? and linux without working decently!
      Next time I will choose carefully the hardware I buy ... until then I will have to bother ... writing and crying on blogs like this ... T_T

      1.    Cocolium said

        Hahahaha I prefer windows a billion times, except for Vista of course.

        But if there is something that has «good to buy Apple hardware, it is that it does not devalue, and even if you find a fanatic geek of this brand you can make a profit, the thing is how you see and do things.

        1.    eliotime3000 said

          I am a 2-bit Windows Vista SP32 user, and I must say that it is quite annoying to be able to work with certain programs such as Firefox for Windows (GTX interface that runs slower than in KDE).

          Regarding Apple hardware, I must say that it is quite annoying when it comes to repowering it, and it is not convenient to work with Mac Pro because its support is 2 years, when Lenovo, HP and other brands give more years of warranty.

      2.    eliotime3000 said

        Meh, I work with worse OS's (Windows Vista SP2), and I'm not complaining.

      3.    Rabbit said

        Cocolio, apparently you continue to criticize Apple and Linux. I would like to know if now that Windows 10 (silver bullet and absolute rubbish) has come out, you still think the same or you continue to praise Microsoft despite the already ridiculous detriment that they are having in their products.

        If so, I have no doubt that you are a bought and well paid fanboy. Or maybe you're not doing anything useful with your Windows junk other than writing silly comments. What it is, for my job I have intensive system requirements and I would have to be an idiot to start using Windows.

  3.   eliotime3000 said

    I that you leave him with his OSX Mavericks to suffer that odyssey. Also, Sony and their Vaios are cheaper than the iMac and have the same Hardware (and I can easily install the OSX Mavericks directly).

    In short, each madman with his theme.

    1.    TheLinuxNoob said

      Hahahahaha, next time I will make the introduction much smaller, that apparently very few read it. The point is that Mavericks frustrates me, makes me uncomfortable, I don't feel comfortable with him. It's slow, it's clumsy, it's heavy. Simply, to read a document, the mouse wheel works like a touch device (you have to scroll down so that the page shows the content above).

  4.   Tesla said

    One question that I have always had with these computers is:

    - If instead of leaving Mac OS X together with Linux in dual boot I format the entire hard disk for linux, does it work like a normal pc, or would I load something essential that takes the hard disk (like drivers or what do I know)?

    1.    TheLinuxNoob said

      That was precisely what I did, so I can answer you:
      No, you don't charge anything. If one day you want to return to OS X, just put in the installation disk or pendrive, and install. In the end it is still an ordinary computer, with ordinary components.

  5.   pepenrike said

    Good post!

    And good luck with your odyssey, because I have the same imac as you and a little over a year ago I tried to install linux, and it was a failure. Mainly because at this point in the movie after almost 20 years of OS development, it still doesn't have decent graphics drivers. If you also have ATI (like mine) and the story is to piss and not drop.
    I am in love with linux, but after checking several times that no distro fits this hardware, I have given up.
    Maybe with your experiences cheer me up again.

    1.    TheLinuxNoob said

      Thanks for the good wishes! . I decided to try the famous Catalyst, and after torturous moments, I finally got it to work. At least that's what I thought, until today, when I get home from university, I discover that it has been broken and that there is no human way to make it work. Make me sick Send to hell Catalyst and leave the driver free lol.

      If you dare, I recommend that you install an out of the box distro, surely the experience will be much less unpleasant.

  6.   adiazc87 said

    I understand your situation, I have a macbook pro 2011, and like you with an ati / amd card, I have it with elementary and it works much better than with OSx, lower RAM consumption, install it with refit, you will have a little more information by mactel-boot. Regards.

    1.    TheLinuxNoob said

      All the information is on the Arch wiki. Calm down, I've been reading some topics on the Arch forum. Nobody knows if efibootmgr still gives problems on Apple Macs. According to the Ubuntu / Launchpad bugtracker, it gave them in old kernels. Some say it no longer does it, others that it is still dangerous - either way, better play it safe.

      https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface

  7.   Joaquin said

    Good anecdote. Some things I would like to say:
    Before knowing GNU / Linux I had the idea that Windows was part of the PC (I did not know of the existence of other OS). And there was the PC and Mac.

    Always because of the great publicity that it has, one associates Mac as "it is the supreme God of technology", but it seems that it is not that good, especially because of how closed it is even in hardware. So from your opinion, we could say that we can try a Mac, but it is not a big deal to buy one.

    I see you had several problems and the installation was a risky job, because you could have broken the machine. But hey, you cheered up and it seems like a nice experience. I found it very funny that "I had a little problem but it was solved with just ..." (recompiling the kernel, flashing the ROM, nothing fancy haha)

    1.    TheLinuxNoob said

      Exactly, one ends up believing the marketing. But no way. So far, everything works fine (even the printer, finally). The only thing that has problems is the aforementioned ATI / AMD graphics card, but that happens in any distro.

  8.   erost said

    The fuck you, they did not dedicate it to AMD, but to NVIDIA, in fact, it was due to the poor performance of graphics in laptops.
    (https://www.google.es/url?sa=t&source=web&rct=j&ei=6fvnVLbUH8rvUIuBgcAK&url=http://m.youtube.com/watch%3Fv%3DmN1EnZk91A0&ved=0CCUQtwIwAg&usg=AFQjCNHAnrcEgXJtgkOhhnhZaPMxuv7-yA)
    . AMD is leading the way in everything in Linux, and I have an ASUS with AMD at full capacity, an A10 and RADEON 8650M, and I am pulling up the FarCry3 without even getting hot with Debian. I'm not saying that you haven't had bad experiences ... but the only one that is supporting and spending money is AMD. And keep it up !!!

  9.   Manuel said

    I strongly agree that Mac OS is extremely slow. Although I have to admit that I am one of those who has about 200 applications installed regularly. In that context, Mac is horrible. I have a 7 gig Mac mini core i16 that I bought in 2014, and even my 8-year-old HP laptop runs faster (yes, with SSD, which makes a big difference). And that's not counting what gets hot ... I turn it on every x time to update and review ... Sometimes I miss some software for Mac, very useful, which is not easy to find on other platforms ... But otherwise, I continue as a base system with Windows 10 (to this day it is still the most productive for me), and testing different Linux distributions (as I do every x months from time to time). I'm also considering installing Linux on my Mac. That at least I can get more performance out of it, although I wouldn't want to lose the Mac OS version… You never know if I'll ever experiment with it again.

  10.   Alberto Miranda said

    How about, curiously in these times I came here to be generating a bootable Arch and I must say that I have never complained about my imac 27 ″ from 2011, it is perfect so far and little by little I have grown it, they currently have 32GB of ram and a raid0 with 2 ssd of 512, it works perfectly with high sierra and catalina, inside I have virtual machines like centos, rhel, windows server, for all my test laboratories, the truth is they are super durable machines and despite the time it is in perfect condition, already I have bought a 2015 mbp for the same purposes and a thinkpad t400 to which I plan to put dual boot w10 and Arch. My opinion about the hardware is that they last a long time as long as a correct model is chosen and used in a Resale and other brands thinkpads and latitude consider them the most durable.