- Некромакинтош. Ставим Linux на старинный iBook, чтобы вдохнуть в него жизнь
- Содержание статьи
- Эх, яблочко…
- Попытка номер раз: Yellow Dog Linux
- Сеанс некромантии
- Продолжение доступно только участникам
- Вариант 1. Присоединись к сообществу «Xakep.ru», чтобы читать все материалы на сайте
- Question: Q: Putting Linux on PowerPC iBook G4
- Linux on an iBook
- harveypooka
- godbout
- balamw
- godbout
- godbout
- harveypooka
- Mac_Freak
- balamw
- Linux on my iBook?
- octane
- skoggis
- nixgeek
- octane
- nixgeek
- a_iver
- octane
- octane
- ElDiabloConCaca
- octane
- octane
- cfleck
Некромакинтош. Ставим Linux на старинный iBook, чтобы вдохнуть в него жизнь
Содержание статьи
Эх, яблочко…
В 2005 году произошло множество знаменательных событий. Компания Adobe приобрела Macromedia за 3,4 миллиарда долларов, корпорация Microsoft дала имя новой версии своей операционной системы, идущей на смену Windows XP (это имя — Vista), а в Apple решили окончательно отказаться от процессоров PowerPC в пользу Intel. Сейчас, спустя четырнадцать лет, «яблочный» ноутбук с PPC на борту можно купить по объявлению всего лишь за пару тысяч рублей. Однако при этом остается открытым вопрос, что с подобным сомнительным приобретением делать дальше.
Процессоры PowerPC — результат совместной разработки компаний Apple, IBM и Motorola. Первые образцы этих чипов, базирующихся на архитектуре RISC, появились на свет в 1991 году. Причиной отказа Apple от PPC в составе компьютеров, серверов и ноутбуков стало то, что процессоры PowerPC обеспечивали лишь 15 единиц производительности на 1 ватт потраченной энергии, в то время как у Intel указанный показатель достигал 70 единиц. По крайней мере именно эту причину озвучил Стив Джобс 6 июня 2005 года во время своего выступления на конференции WWDC.
В современном мире у антикварной техники Apple насчитывается немало проблем. Прежде всего, на древний «Мак» с PowerPC можно установить OS X вплоть до версии 10.5 Leopard включительно, все более поздние реализации этой системы поддерживают только архитектуру Intel. Из этого следует несколько выводов: софт под такую ОС тоже идет специальный, разработанный для архитектуры PPC. Современных версий подобных программ не существует в природе, а чтобы отыскать старые, придется преодолеть непростой квест.
Ко всему прочему процессоры G4 по нынешним меркам весьма тормозные, и Leopard на них ворочается с трудом. Старый браузер Safari отказывается открывать большинство современных сайтов, а альтернативой ему может служить лишь TenFourFox — браузер на базе Firefox для старых «Маков» на PowerPC. Но установка этой софтины также не спасет пользователя от сопутствующих траблов: например, просмотр видеороликов на YouTube все равно будет напоминать слайд-шоу из-за слабой конфигурации ноутбука.
Идея увеличить оперативку на большинстве старых ноутов Apple спотыкается об аппаратные ограничения: часть памяти (как правило, 256 Мбайт) намертво распаяна на материнской плате, и в распоряжении пользователя остается только один слот, куда можно воткнуть планку PC100 или PC133 SDRAM объемом 128–512 Мбайт, что, впрочем, не сильно поможет в плане повышения быстродействия. В общем, железо по нынешним временам, прямо скажем, слабенькое: любой нетбук на Intel Atom уделывает по производительности древний «Мак».
В старых макбуках есть какое-то особое очарование
Некоторое время назад я стал счастливым обладателем Apple iBook А1133, выпущенного в 2005 году. Двенадцатидюймовый ноутбук, оборудованный процессором PowerPC 7447a (G4) с тактовой частотой 1,33 ГГц, 512 Мбайт памяти и жестким диском объемом в 40 Гбайт, достался мне в приличном внешнем состоянии, однако с напрочь убитым винтом, изобилующим бэдами, из-за чего родная система наотрез отказывалась запускаться.
Было решено реанимировать ноут, но от идеи использовать на нем OS X я отказался сразу — предыдущий опыт работы со старыми «Маками» показывал, что ничего путного из этого не выйдет. Неужели, подумал я, для PowerPC нет достойных вариантов альтернативных систем? Ведь даже на довольно слабые одноплатные компьютеры с архитектурой ARM можно установить вполне современный Linux, который позволит выполнять большинство рутинных задач. И я углубился в поиски.
Попытка номер раз: Yellow Dog Linux
Еще в первой половине нулевых встречались люди, очень недовольные политикой Apple, монополизирующей свой сегмент рынка. Мыслимое ли дело — на компьютеры и ноуты производства этой компании можно было установить только Mac OS, и никакой альтернативы этой операционной системе до определенного момента не существовало. «Так дело не пойдет, у пользователей должен быть выбор», — решили независимые разработчики и придумали Yellow Dog Linux — специальную версию Linux, разработанную конкретно для платформы PowerPC с прицелом на «Маки» и Sony PlayStation 3, построенную на такой же архитектуре.
Yellow Dog Linux основана на CentOS. В историю эта реализация Linux вошла тем, что именно в ней впервые появился консольный менеджер управления пакетами RPM — Yellowdog Updater, Modified (YUM), который затем мигрировал в Red Hat, CentOS, Fedora и другие rpm-based дистрибутивы. Развитие Yellow Dog прекратилось в 2012 году с выходом версии 7, то есть через три года после завершения поддержки архитектуры PowerPC «нативной» операционной системой от Apple. Сейчас на сайте компании-разработчика Fixstars уже практически не осталось никаких упоминаний об этом проекте, но интернет, как известно, помнит все.
В комплекте поставки Yellow Dog вроде бы имеется необходимый набор софта: графический редактор GIMP, flash-проигрыватель Gnash, браузер Mozilla Firefox, хорошо знакомый многим почтовый клиент Thunderbird, проигрыватель Rhythmbox и, конечно же, офисный пакет OpenOffice.org. Что еще нужно пользователю для счастья? Остается открытым вопрос производительности Linux по сравнению с macOS, однако ответ на него можно найти лишь экспериментальным путем.
Сеанс некромантии
Первая проблема в столь непростом деле — раздобыть сам дистрибутив. На сайте разработчиков все упоминания о Yellow Dog Linux уже давно ведут на страницу 404, однако что-то там еще можно отыскать. Кроме того, в Сети сохранилось несколько ресурсов с архивами. Например, вот здесь можно скачать ISO-образ диска со стабильной версией 6.2 (именно этот дистрибутив я в итоге и водрузил на свой «некромак»). Нарезав образ на DVD-болванку с помощью обычного Nero, я приступил к установке системы.
Включив ноутбук с зажатой клавишей С , вставляем диск с Linux в мультидрайв и дожидаемся, пока на экране появится следующая надпись:
Welcome to yaboot version 1.3.13
Enter “help” to get some basic usage information
boot:
Теперь нужно просто нажать клавишу Enter (которая у маководов называется Return) и немного потерпеть до появления симпатичного графического интерфейса программы установки.
Так выглядит программа установки Yellow Dog Linux
Можно выбрать русский язык, а сам процесс нагляден и прост, за исключением нескольких тонких моментов. Один из них — настройка дисковых разделов. Если до этого на «Маке» была OS X, можно выбрать вариант «Удалить разделы на выбранных дисках и создать разбиение по умолчанию», нажать на кнопку «Далее» и согласиться с тем, что установщик снесет всю информацию с компа. Если же OS X ранее установлена не была, разделы придется создавать вручную, так как для установки Yellow Dog Linux жесткий диск обязательно должен содержать раздел Apple Bootstrap.
Apple Bootstrap — технология, придуманная еще задолго до появления iBook (и канувшая в Лету с переходом Apple на архитектуру Intel). Если кратко, это специальный корневой раздел объемом менее 8 Мбайт, в котором хранится загрузочный код. Данный раздел при запуске машины читается первым и передает управление дальнейшей загрузкой ядру Linux (либо OS X, если на компьютере используется эта система).
Итак, выбираем в окне программы установки вариант «Создать собственное разбиение» и нажимаем на кнопку «Далее». Нам придется вручную удалить все имеющиеся на жестком диске логические разделы и создать вместо них следующие:
Продолжение доступно только участникам
Вариант 1. Присоединись к сообществу «Xakep.ru», чтобы читать все материалы на сайте
Членство в сообществе в течение указанного срока откроет тебе доступ ко ВСЕМ материалам «Хакера», позволит скачивать выпуски в PDF, отключит рекламу на сайте и увеличит личную накопительную скидку! Подробнее
Источник
Question: Q: Putting Linux on PowerPC iBook G4
I was wondering how you could put a flavour of Linux on my iBook G4. What would be the best type to use and how could I put it on? I want to use it for network work and some programming.
iBook G4, Mac OS X (10.4.7)
Posted on Mar 14, 2009 7:08 PM
There are a few different Linux versions which may work on some
architectures of Macintosh computer. Before you do anything, be
sure you can make and have a bootable full system clone on an
externally supported (FireWire 400) hard disk drive. A self-powered
one with AC power supply is best, then it is independent of the Mac.
Not all externally enclosed FW HDD units are capable of booting
an OS X system or full clone. You can get clone utilities by the names
of Carbon Copy Cloner, or another favorite, SuperDuper. Downloads.
Some people have reported issues and damages to their Mac OSX
installation when they’ve tried installing a Linux version on there, too;
so be ready ahead of time and also know when to try some other
Linux version if you find one that does not work with your computer.
Names like YellowDog, Debian, Mandrake, Gentoo, Ubuntu, & others.
Some of the names and versions I’ve found in a casual search may
have changed somewhat. If you find information from some internet
older discussions at non-Apple forums about these non-Apple OSs,
be aware they may not be able to run adequately in your iBook G4.
A most general search will find a cross-section of some stuff; here’s
one where I keyed some words into the google search engine.
‘ Linux ubuntu gentoo for Mac G4 ‘ — a google search:
http://www.google.com/search?hl=en&q=Linuxubuntu+gentoo+for+Mac+G4&btnG=GoogleSearch&aq=f&oq=
If the computer has a large enough hard disk drive in it, a partition
scheme may be employed to facilitate keeping OS X on one part
and some other experimental system on another. This may allow
you to dual-boot between a known stable Mac OSX system and
some questionable & experimental beta-like effort you find online.
There are probably few if any outright advantages in a Linux OS
based system not already superseded by the great and powerful
Mac OS X. If you like tweaking and keyboarding around, there is
Terminal and other accesses into the underpinnings of BSD/Unix
within the Mac. You can learn quite a bit about many similar OSs
by getting into Mac OS X at a non-graphical level more often.
Some of the Linux versions available are download disk images
you’d burn to a CD for later installation; other ones will ship a
DVD or CDs, these sometimes have a fee for the discs, etc.
If you look into some of the Linux for Mac (be sure they work
on PPC architecture) sites, some of them have forums, too.
In any event.
Good luck & happy computing! 🙂
Источник
Linux on an iBook
harveypooka
macrumors 65816
godbout
macrumors regular
To Dabble in a little Linux I would get Ubuntu/Kubuntu but there are lots of options for you. I suggest dual booting with OSX if it is on a laptop because right now they are still having some problems with AirPort
balamw
Moderator
You don’t seem to be a particularly good candidate for using linux, perhaps it would be better to focus on exposing the unix side of OS X, as most of the tools you would be use to do what you want on Linux are already native to OS X (e.g. Firefox, GIMP, . )
Lots of good info in this thread:
godbout
macrumors regular
godbout
macrumors regular
You don’t seem to be a particularly good candidate for using linux, perhaps it would be better to focus on exposing the unix side of OS X, as most of the tools you would be use to do what you want on Linux are already native to OS X (e.g. Firefox, GIMP, . )
Lots of good info in this thread:
harveypooka
macrumors 65816
Mac_Freak
macrumors 6502a
Yeah, I am waiting fot YDL too.
As for Ubuntu/Kubuntu, it is a great Linux distro.
BTW: There is nothing wrong with installing Linux on a Mac. I have done it for the same reson as the original poster, which is to see what Linux is like.
I haven’t yet found a good use for Linux, except for just exploring it.
balamw
Moderator
I never said there was anything wrong with installing Linux anywhere. I tend to install linux on anything it’ll run on. But the motivation of my linux installs is always to enable functionality that is missing.
Like replacing Windows, or the stock firmware in a WRT54g or NSLU2, or the embedded hardware project I was working on last year.
These are all installs where linux adds significant functionality, whereas linux has very little to offer over Darwin at the OS level, and even less at the app level thanks to darwinports and fink.
EDIT: I also think there is a general misconception as to what Linux is and is not.
IMHO Linux is just the unix-like kernel that runs on a variety of hardware platforms. The Linux distros provide the complete operating environments, typically referred to as «Linux» and are typically based on X11 various toolkits such as GTK or Qt. The operating environments are mainly GNOME and KDE based. Both of those already run natively on Macs/Darwin/X11/OSX. http://dot.kde.org/1073009304/ http://www.xdarwin.org/
So from the user perspective, unless you are writing device drivers that interact closely with the kernel, there is little difference between which set of unix-like underpinnings you are running these user environments and apps on.
Источник
Linux on my iBook?
octane
I have issues, OK!
I’m curious about Linux and I’d like to get it running on my iBook.
I’ve been looking at Gentoo [if you know a better one, let me know!]
The problem is — although there’s instructions on how to re-partition the hard disk on my iBook in a nondestructive way [I don’t want to have to wipe it, because it took me ages to get it where it is] and all other manner of help files are there — I don’t have a clue what the hell they’re going on about.
Don’t get me wrong, I can pipe the odd program output or bumble my way around pico, but I’m no Unix CLI geek.
So, just to recap:
1) Re-partition a live hard disk
2) Install Gentoo [or better distribution of] Linux
Any help from a passing Unix CLI geek would be repaid in the next life.
skoggis
member
You could copy your entire hard drive to i.e. another (firewire) drive. Then partition your drive and then just copy your files back to the new partition with carbon copy cloner. I’m not aware of any nondestructive way to partition a hard drive.
I’ve installed Yellow Dog Linux on my PowerBook 12′. And it’s working great. Just make sure you get the 3.0.1 version.
nixgeek
Mac of the SubGenius! 🙂
octane
I have issues, OK!
Well, the Gentoo site offers tools that — as far as I can see — are built into Linux that repartition live drives. It’s on their site, but I just can’t find it, but I did see it.
That said, the advice you both offer is sound. For one, I would need to make a back up of my drive in any case.
I want to get into Linux and by doing that, it might help me understand OS X better.
nixgeek
Mac of the SubGenius! 🙂
Well, the Gentoo site offers tools that — as far as I can see — are built into Linux that repartition live drives. It’s on their site, but I just can’t find it, but I did see it.
That said, the advice you both offer is sound. For one, I would need to make a back up of my drive in any case.
I want to get into Linux and by doing that, it might help me understand OS X better.
You can also try Darwin, which is basically the underlying UNIX part of OS X. Another option is OpenDarwin, which is a binary compatible version of Darwin. The OpenDarwin site has links to both Apple’s Darwin and OpenDarwin right here.
Since everything is more like what you would find in OS X, this might be a better option.
a_iver
Registered
Here’s another idea you might want to think about. A liveCD. You won’t screw up your hard drive and the computer will boot off the CD. I believe Gentoo has one. Here’s the link for a purchased CD: http://store.gentoo.org/
And one to download an ISO: http://distro.ibiblio.org/pub/linux/distributions/gentoo/releases/ppc/1.4/livecd/
Hope this helps. Good Luck.
octane
I have issues, OK!
Actually, that’s exactly what I’m doing right now!
I’m downloading the ISO files.
octane
I have issues, OK!
I’ve downloaded the two ISO files and their accompanying .md5 checksum files.
Now, I’ve no idea what the hell all of this is about. What I do know is, the second LiveCD gets all of the way through the download with Transmit and then as it finishes, I get an error saying that the server terminated the connection and the file wasn’t saved .. even though it’s right there in the folder.
From what I understand about checksums is that they somehow represent the integrity of the file that they are associated with.
I downloaded a application called: checksum+ from Version Tracker but it just hangs whenever I try to check one of the .md5 files.
So I don’t know whether the second ISO image is valid or not .. I don’t even know if the first is, for that matter!
Help required once more, guys.
Registered
Use the md5sum command in Terminal to create the md5 checksum of your downloaded file, then compare it to the according .md5 checksum file.
md5sum downloaded.iso >my.md5
diff my.md5 downloaded.md5
If diff doesn’t output anything then everything is ok.
ElDiabloConCaca
U.S.D.A. Prime
I would have to recommed YellowDogLinux 3.1 if you can get it. It’s pretty straightforward and includes a lot of useful applications. It’ll partition your drive for you, so you don’t have to mess around with figuring out how large each partition should be and what-not.
I have it installed on my G4/400 PCI machine, but it took some work — I have a dual-monitor setup, and YellowDog needs a little tweaking to get it to install correctly on that kind of setup. On a single-monitor setup, though, it’s easy as cake to install. Pop in the CD, reboot from CD, click install. No problem.
octane
I have issues, OK!
Use the md5sum command in Terminal to create the md5 checksum of your downloaded file, then compare it to the according .md5 checksum file.
md5sum downloaded.iso >my.md5
diff my.md5 downloaded.md5
If diff doesn’t output anything then everything is ok.
octane
I have issues, OK!
I’m not having much luck here. I tried Disk Utility to check the disk images. The first one is seen as an HFS+ disk image, while the other is ISO, even though they’re both seen as ISO.
I’m guessing this is to do with the need for an HFS+ volume being needed to mount on an a mac, and the second disk being whatever once Linux is up and running.
The first disk image reports back with a checksum number, while the second comes back with an error 22.
The thing is, they both mount fine in I double-click them in the finder!
cfleck
tired
honestly, gentoo is great if you want to get down to the nitty gritty, but i wouldn’t put a whole lot of faith in it if you don’t really *know* what you are doing. i only say this because you seem pretty intent on not ruining your current osx setup. be careful or get a more user friendly distro.
Источник