Slack on a Mac?
I tried to search for answers to this question, and without success. The new MacBooks are intel based...like slackware is. What would it take to install Slack on one of these? I know that Yellow Dog linux was meant for this and Slackintosh was, but these were for the PowerPC platform.
Has anyone tried this? How successful? |
<OFF> You mazochists :D </OFF>
|
Some work has been done on getting ix86-Linux to boot on the new mac hardware. But YellowDog is for the Motorola arch. I couldn't get YellowDog or Ubuntu for mac to install on my iMac. Then I found Slackintosh and installed 10.2. Right away recompiled the kernel to use 2.4 series and compiled some extra sources that I use to make a desktop with.
You can find the ppc bins here: http://distro.ibiblio.org/pub/linux/...kages/PowerPC/ |
Yea, but thats PPC not Mactel. You can get Slackware on the new intel chips from what I hear. Ubuntu has a Mactel live Cd that you can use. I read where some guy did that, extracted pkgtools on the liveCD system and then did installpkg -root to another partition from a dowloaded slackware directory on his HFS+ partition, starting at "a" then "ap" and so on. He said it worked after fiddling with fstab and a few other configs. Of course, you'll need to chroot and patch/build the 2.6 kernel with the relevant mactel patch set before it will boot. LOTS of other stuff needs to be tweaked in order to get the extras working but I've read many success stories in general with Linux and Mactel. Hit google, there's lots of stuff out there.
I just blew everything I had on a new MacBook Pro. It's in transit right now. I'll post back here if you want and tell you how to go about it. Can most certainly be done. The Tricky part is getting a tri boot with Windows, OSX and Slackware. That's my aim.;) Also, Fedora is in the process of porting to the new Macs. I've been getting conflicting reports with concern to the boot loader. supposedly elilo for EFI systems is what your supposed to use but I hear lilo and now grub will work as well. You can also go the bootcamp route. XOM? rEFIt? Whew, just how do you get it to boot? I still have lots of reading to do and so do you. http://www.mactel-linux.org/wiki/Main_Page It'll all get better over the next half year or so. Mainly it's the lack of vanilla kernel support and the EFI boot arch. |
Quote:
|
I spent hours last night reading more about this. Actually, that link I gave will turn into MANY more links if you follow them all. It looks to be alot easier than I first anticipated. I still need to do more research but it seems that:
BootCamp is only used for making a driver CD that you plop into your drive after you hit the Windows Desktop. It's also a frontend for DiskUtil so you can partition your HDD... You may still have to "officially" install it tho. Not sure. Most people were just talking about using a terminal as in "diskutil list". The main thing is to use either XOM or rEFIt. Those are your graphical bootloaders. I think you'll still need either elilo or lilo/grub. rEFIt may not actually boot a vmlinuz but instead try to chainload lilo to boot your linux partition. If you just want a dual boot system with OSX and Linux, you can use XOM. For a tri-boot system, use rEFIt. Here is a screen shot of rEFIt after you turn on your computer. http://refit.sourceforge.net/screen.html Pretty nice looking and sticks with the Mac look. If you don't use one of the above, then you have to hold down the OPTION key after boot to get Apple's "built in" boot menu, otherwise, it boot's OSX by default. No good. I'm not so sure what those Mactel patches are used for now. Read a couple places where you can use a regular gentoo 2006 minimal CD to boot into. That would tell me the Vanilla kernel can recognize the new Macs just fine. Maybe those patches are for making the backlit keyboard work and extras like that. The BIG deal is that, if you intend on installing Windows, we have to take into account GPI AND MBR implementation. GPI does'nt allow extended partitions AND MBR only allows for 4 primary partitions. That means on an intel Mac with intent to run windows, we only have a max of 4 partitions and Apple is already using one for the GPI boot. That leaves the 2nd one for OSX, the 3rd one for Windows and the last one for Linux. Can't have a /boot or /home or even a seperate swap partition. You have to use a /swap file. This makes it especially problematic as I was going to rebuild my DIY system but I have no free partitions left. I'll have to build it on my Slackware host in a seperate directory or something and then tarball it up, boot with a LiveCD and untar it on my freshly formated Slackware partition. Sorry, just talking to myself I guess. I won't really know the particulars until I get my laptop in a couple days. This is the link that really helped me out the most: http://wiki.onmac.net/index.php/Trip...t_via_BootCamp Think I'm going to use 15gb OSX, 15gb Linux and the other 90gb FAT32 Windows. I'm making a custom Boot CD with fat32format.exe on it so I can get such a large FAT32 partition. This way, OSX and Linux will be able to read/write to Windows. C: drive will be a storage area for all 3 OS'es along with having plenty of space to install games. ;) That's the idea anyway. |
slackware mac book pro macbook how tri-boot
This was done on a Mac Book Pro 15.4 widescreen 2.16Gz Dual Core 2 Duo. There are mac-mini and imac how-to's out there but alot of the stuff seems specific to those models. Well, I have a tri-boot on my macbook pro now. Slackware 11.0, OSX and Windows... Wasn't overly bad. The instructions on the link above is what I followed. I added the part about BartPE to the wiki but it doesn't work. Windows will choke when you try to boot it with just a black screen so I redid windows on an NTFS partition. Seems the later part about making sure windows formats the partition is correct and who ever put in the part about fat32format is in error. The Slackware DVD chokes with no keyboard just like it does on some regular x86 boxes. Wish he'd fix that. So I used a gentoo minimal 2006.1 livecd only I hacked it to have the entire slackware/ directory on the root of the CD. There is only one drive on the macbook pro and gentoo will not relinquish it seeing as how we are running off of it. I suppose you could put it on your NTFS or HFSPLUS partition. That's assuming the gentoo cd has support for them in the kernel. I would imagine it does. I'm recalling this from memory but it should still be spot on. 1. Boot into the Gentoo LiveCD. 2. mkdir linux (we start out in /root) 3. mkreiserfs /dev/sda3 (can reboot if you want) 4. mount /dev/sda3 linux 5. mkdir pkgtool 6. cd pkgtool 7. tar xzf /mnt/cdrom/slackware/a/pkgtools-*.tgz 8. cd ../linux 9. export PATH=$PATH:/root/pkgtool/sbin 10. dd if=/dev/zero of=/mnt/linux/swap bs=1024 count=$VALUE Here is $VALUE: 512MB = 524288 1Gb = 1048576 1.5GB = 1572864 2.0GB = 2097152 11. mkswap /mnt/linux/swap 12. installpkg -root . /mnt/cdrom/slackware/a/*.tgz 13. installpkg -root . /mnt/cdrom/slackware/ap/*.tgz and so on and so forth until you install all the package sets that you want. NOTE: bind-* in series n/ choked on me. It just hung there with the install script so I did a ctrl+c and "cp -R /mnt/cdrom/slackware/n /root" "rm -rf /root/n/bind-*" "installpkg -root . /root/n/*.tgz" 14. installpkg -root . /mnt/cdrom/slackware/testing/linux-2.6.18/kernel-source-*.tgz 15. cd ../ 16. chroot linux/ /bin/bash 17. pkgtool (trim it out to your desired install and make sure you remove all 2.4 kernel stuff except the headers) 18. cd /usr/src/linux-2.6.18 19. cp /mnt/cdrom/config-2.6.17-MBP .config get this from mactel SVN: http://svn.sourceforge.net/viewvc/ma...atches-2.6.17/ also notice: http://svn.sourceforge.net/viewvc/ma...atches-2.6.18/ 20. make oldconfig If you used the 2.6.17 config, you'll have some answers to dish out. Maybe you should use the 2.6.18 config instead, unless you know what the new options are. 21. make menuconfig Add reiserfs support as built in. Look around while your here but be carefull. 22. make bzImage modules modules_install 23. cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.18 24. cp System.map /boot/System.map-2.6.18 25. cp .config /boot/config-2.6.18 26. cd /boot 27. ln -sf vmlinuz-2.6.18 vmlinuz 28. ln -sf System.map-2.6.18 System.map 29. vi /etc/lilo.conf Code:
boot=/dev/sda3 Code:
/dev/sda2 /mnt/osx hfsplus rw,force 0 0 32. pwconv 33. grpconv 34. passwd 35. pkgtool (run some setup scripts if you wish. Stuff like gpm and whatnot) 36. mount proc /proc -t proc 37. /sbin/lilo 38. exit 39. reboot Now boot into MacOSX and do the part about cp'ing the elilo/efi folder to the root of your OSX partition. Now you should be triple booting. I'm having a hell of a time with getting the synaptics touchpad going and madwifi... It should be a pre-n Atheros 5008 series which isn't supported yet acording to madwifi's compat list. SVN/CVS is my next stop. Oh... Build evdev as a module and not built in otherwise you get no /dev/input/event* nodes. There are a few other gotchas and most of them revolve around the damn kernel .config. /proc/bus/input/devices lists "apple touchpad" crap so synaptics is choking on me when I try to startx with my xorg.conf. Getting really frustrated between synaptics and my non-existent ath0... I used Xorg -configure for my initial xorg.conf. The mouse was whacky and only covered the right side of the screen. I switched the protocol to IMPS/2 and startx works. usbmouse module siezes control of the touchpad so we have no right click. One of the reasons why I'm working on synaptics. Supposedly xmodmap can be used to remap the keys to have a right click and middle click button but the only examples I've found are for a german keyboard. It's all still quite the mess on the Linux front. I fully expect to still be screwing with it a week or 2 from now. I'll do a more detailed walk-thru once I figure everything out... I haven't even gotten around to messing with ATI's drivers tho I hear they work. I'm still stuck at a console because I have no right click (fluxbox rendered useless)... :-) At an ugly-huge-font console at that! Frustrating. So much work to do it's not even funny. |
UPDATE - This is included in my pommed build script
Got a right click now.... :D Find out your key codes. Don't use "showkey" as they are wrong. Use "xev" instead. Download xkbset from: http://www.math.missouri.edu/~stephen/software/ The prefix in Makefile is already set to /usr/X11R6 so just do a make and then make install. Or make a slak-pak if you wish. I never use middle click and only right click so this is what I did. Code:
xmodmap -e 'keycode 116 = Pointer_Button3' The touchpad is still really senstive for "fine tuned" work. It jumps too much when you want to move it just a hair. All this is temporary I suppose until I can figure out synaptics. Next thing on my TODO list is to ditch the 25' CAT5 cable going thru my living room and dining room. ;) Code:
#!/bin/sh |
Oh, and the ATI drivers work just fine, for the most part anyway. glxgears only reports in the 200's tho... But atleast I DO have hardware accel now.. I'll fine tune that stuff later.
UPDATE 12-02-06 I upgraded to the latest ATI drivers and now I'm getting in the 3,600 range for glxgears and in the 700's for fgl_glxgears. They must have just fixed something in the latest drivers. Don't know. The version I'm using that works is: ati-driver-installer-8.31.5-x86.x86_64.run UPDATE 01-11-07 If your using Bootcamp/Windows you'll probably want to ditch apple's ATI drivers and use these instead: http://www.omegadrivers.net/ati/win2k_xp.php Not only do they seem to work better but you can OC your card with a utility they install. |
Finally got the synaptics drivers to work. Apple shipped a new revision of touchpads with the latest Core 2 Duo Notebooks. Atleast they did on the 15".... It was staring me in the face the whole time too. Check the output of /proc/bus/input/devices and look for the product number on the entry that coresponds to the 'mouse handler'.... Mine listed "Product=021a" but if you check /usr/src/linux-2.6.18.2/drivers/usb/input/appletouch.c it lists
Code:
#define GEYSER3_JIS_PRODUCT_ID 0x0219 The 2 finger tap for right-click is pretty nice. ;) I also left my xmodmap settings in place so I can still use the right apple key... Here is my xorg.conf so far. The touchpad's "jumpyness" is gone now that synaptics is being used. You can get the pointer on small things alot better. The only issue I'm having now with it is, if you VERY lightly put your finger on the touchpad and then try to move the pointer, nothing happens. I've never used the synaptics driver before but I'm hoping that can be fixed with one of the options in xorg.conf. It's fairly pronouced so NEEDS to be adjusted. EDIT 01-13-2007 - This is my final xorg.conf Code:
Section "ServerLayout" |
@jong357
You should make this into a howto. If I had the money to buy a Mac, I'd give it a go :) edit: Would it be appropriate in the wiki? Maybe an article about it...? |
Quote:
They are pretty pricey, but man.... You can run Unix, Linux, OSX, Windows and Solaris on this thing. I see no need for any other platform now that Apple went with intel. I feel bad for spending so much time in Linux tho. I've hardly used OSX at all. As for the touchpad options, do a "man synaptics" and that clears a few things up. Pretty confusing at first but keep reading. My problem with 'touches' not being registered were due to the FingerLow and FingerHigh options. Decrease them and it's better. I put FingerLow on 0 and it still doesn't register an event if I'm soft on the touchpad. Guess I'll have to live with it. I also adjusted ALL *Edge options to encompass the entire touchpad. I don't use RightEdge or BottomEdge scrolling so might as well have the entire touchpad used. Do a "synclient -m 1" to see the cordinates of any given 'touch' event. Next stop. Wireless. :D Code:
#!/bin/sh |
Ooooooo. Neat!
http://www.boichat.ch/nicolas/macbook-tools/ This allows you to control the LCD backlight and the Keyboard backlight... ;) Mapping those two along with the eject key to the appropriate keys is what I'm tinkering with now. |
O.K... More stuff done. I have the LCD brightness up/down keys working, Keyboard Backlight off/on/halfway keys working and I have the eject key working... :p Here is a build script. I got a little carried away with it. I put the option to build xkbset as well along with autoconfiguring everything for you (if you use gnome). Read it for more info. The only thing I need to add to the script is handling the volume up/down/mute keys... ;)
Code:
#!/bin/sh Here is a crazy new macbook-tools build script. It now also has 'coretemp', 'hddtemp' and 'cpufreq' which is a wrapper script I wrote to overcome some problems I was having with adjusting the speed of the 2nd processor. Jump to the second page to read more about that. Code:
#!/bin/sh Code:
root@darkstar:~/Desktop/macbook-tools-0.1.1# ls -la * The mbpeventd package is MUCH better at handling this stuff. Jump ahead to see the post concerning that. |
Figured out how to get a higher res on the frame buffer along with the 2 penguins up top. The Gentoo LiveCD Spalsh worked so I booted that up and looked at it's dmesg to see what it was using.
Get into the Graphics section of your kernel config and disable Intel-based Macintosh Framebuffer Support and just use the regular old vesa FB by specifying vga=791 in lilo.conf. UPDATE 11-27-06 append="video=imacfb:i17" is used for elilo. If your using refit/lilo then use vga=791 |
All times are GMT -5. The time now is 06:47 PM. |