ahmaclinux

ahmaclinux


CONTENTS

-------- REINSTALL_AFTER_MAC_SW_UPDATE KEYBOARD DOES_NOT_WORK_YET INSTALL FONTS

REINSTALL_AFTER_MAC_SW_UPDATE

After SW update you need to reinstall reFIND: From MacOS: - Download the zip file from here: http://sourceforge.net/projects/refind/) Place the zip file in Downloads (or look here: http://www.rodsbooks.com/refind/getting.html) - double click it in finder to unzip it - open a terminal window and run: cd ~/Downloads/refind-bin-* # use version you just downloaded ./install.sh - reboot the mac and choose the leftmost ubuntu icon to boot into ubuntu (Confirmed to work on Mac OSX Yosemite on 2015-06-04) KEYS_AND_BUTTONS ---------------- Run linux_on_mac_setup to set things up. Then left-click: tap anywhere inside left-drag: tap-tap-drag middle-click: tap in upper right right-click: tap in lower right SETUP ----- Run linux_on_mac_setup To setup the following things SETUP-KEYBOARD -------------- (This is done by mybin/configs/linux_on_mac/setup which is run by linux_on_mac_setup) To make function keys work as function keys: echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf sudo update-initramfs -u -k all sudo reboot See also: https://help.ubuntu.com/community/AppleKeyboard SETUP-TOUCHPAD -------------- TO ENABLE: run the command acorn_touchpad or myxset -p (This is done by mybin/configs/linux_on_mac/setup which is run by linux_on_mac_setup) (See /home/acorn/mybin/configs/linux_on_mac/60-synaptics.conf) sudo apt-get install xserver-xorg-input-synaptics man synclient You can put this in /etc/X11/xorg.conf.d/60-synaptics.conf Section "InputClass" Identifier "touchpad" Driver "synaptics" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "FingerHigh" "50" Option "RTCornerButton" "2" Option "RBCornerButton" "3" Option "MinSpeed" "1" Option "MaxSpeed" "1.75" Option "AccelFactor" "0.0164447" #Option "TapAndDragGesture" "off" Option "PalmDetect" "0" Option "ClickFinger1" "1" Option "ClickFinger2" "2" Option "ClickFinger3" "3" Option "TapButton1" "1" Option "TapButton2" "2" Option "TapButton3" "3" Option "VertTwoFingerScroll" "1" Option "HorizTwoFingerScroll" "1" EndSection or run the command acorn_touchpad which uses synclient to set similar values. Defaults (from synclient -l right after installation) Parameter settings: LeftEdge = -3898 RightEdge = 4428 TopEdge = 434 BottomEdge = 6146 FingerLow = 70 FingerHigh = 75 MaxTapTime = 180 MaxTapMove = 535 MaxDoubleTapTime = 180 SingleTapTimeout = 180 ClickTime = 100 EmulateMidButtonTime = 0 EmulateTwoFingerMinZ = 283 EmulateTwoFingerMinW = 7 VertScrollDelta = 243 HorizScrollDelta = 243 VertEdgeScroll = 0 HorizEdgeScroll = 0 CornerCoasting = 0 VertTwoFingerScroll = 1 HorizTwoFingerScroll = 1 MinSpeed = 1 MaxSpeed = 1.75 AccelFactor = 0.0164447 TouchpadOff = 0 LockedDrags = 0 LockedDragTimeout = 5000 RTCornerButton = 2 RBCornerButton = 3 LTCornerButton = 0 LBCornerButton = 0 TapButton1 = 1 TapButton2 = 3 TapButton3 = 0 ClickFinger1 = 1 ClickFinger2 = 3 ClickFinger3 = 0 CircularScrolling = 0 CircScrollDelta = 0.1 CircScrollTrigger = 0 CircularPad = 0 PalmDetect = 0 PalmMinWidth = 10 PalmMinZ = 200 CoastingSpeed = 20 CoastingFriction = 50 PressureMotionMinZ = 30 PressureMotionMaxZ = 160 PressureMotionMinFactor = 1 PressureMotionMaxFactor = 1 ResolutionDetect = 1 GrabEventDevice = 1 TapAndDragGesture = 1 AreaLeftEdge = 0 AreaRightEdge = 0 AreaTopEdge = 0 AreaBottomEdge = 0 HorizHysteresis = 40 VertHysteresis = 27 ClickPad = 1 RightButtonAreaLeft = 0 RightButtonAreaRight = 0 RightButtonAreaTop = 0 RightButtonAreaBottom = 0 MiddleButtonAreaLeft = 0 MiddleButtonAreaRight = 0 MiddleButtonAreaTop = 0 MiddleButtonAreaBottom = 0 NVIDIA DRIVERS -------------- NOT TRIED YET: sudo apt-get install linux-headers-`uname -r` sudo apt-get install nvidia-current sudo nvidia-xconfig edit /etc/X11/xorg.conf and add to the Device section: Option "UseDPLib" "off" edit /etc/default/grub and add i915.lvds_channel_mode=2 i915.modeset=0 i915.lvds_use_ssc=0 to GRUB_CMDLINE_LINUX_DEFAULT inside the double-quotes between the words "quiet splash". Then run: sudo update-grub Reboot and you should see the nvidia logo during boot (optional) If you don't see the nvidia logo or get a blank screen, try installing gfxCardStatus (version 2.2.1, not 2.3), and forcing the discrete graphics card from the dropdown menu of their toolbar icon. You may also need to run "sudo dpkg-reconfigure nvidia-current" after rebooting.

DOES_NOT_WORK_YET

backklight. See https://wiki.archlinux.org/index.php/MacBookPro11,x

INSTALL

Install steps 1) Install rEFInd From MacOS: - Download the zip file from here: http://www.rodsbooks.com/refind/getting.html Place the zip file in Downloads (or look here: http://sourceforge.net/projects/refind/) - double click it in finder to unzip it - open a terminal window and run: cd ~/Downloads/refind-bin-0.6.7 ./install.sh 2) Partition your disk: From MacOS: - press command-space - Search for "Disk Utility" and run it - choose the main hard drive (top entry on left) - choose the "Partitioning" tab - drag the lower right corner of the existing partition up to resize it. I resized mine to 333GB, leaving 666GB for linux. - click apply 3) Create bootable USB stick (Seems to need about 1GB. I used a 2GB USB stick.) From MacOS: - Eject and remove any USB drives - navigate to http://www.ubuntu.com/download/desktop - download the 64 bit Ubuntu 14.4.1 desktop .iso file put it in Downloads - run Terminal and type cd ~/Downloads hdutil convert -format UDRW -o ./ubuntu.img ./ubuntu-*.iso NOTE: This will create ubuntu.img.dmg diskutil list THis will show you what drives are currently connected (probably just /dev/disk0) - insert a USB stick (this USB stick will be completely ERASED) - in terminal type: diskutil list This will show you the name of the newly inserted USB stick. Probably /dev/disk1. Use this in the following commands. diskutil unmountDisk /dev/disk1 sudo dd if=./ubuntu.img.dmg of=/dev/rdisk1 bs=1m If that does not work, replace 1m with 1M. If you see "Resource Busy" run "Disk Utility.app" and unmount (but do not eject) the USB stick, then try again. When this is done there will be a message about "The disk you inserted was not readable by the computer." This is normal; ignore it. - in terminal run: diskutil eject /dev/disk1 4) dowload wifi driver You need a second USB stick to do this. If you do not have one, skip this until later. From MacOS: - navigate to http://packages.ubuntu.com/trusty/bcmwl-kernel-source - download the amd64 .deb file for bcmwl - download the 3 dependency .deb files dkms libc6-dev linux-libc-dev - download the debs for the libc6-dev package libc6 libc6-dev-bin - Place all these debs on the second USB stick. 5) Install - shut down the Mac (from apple menu) - insert the bootable USB stick from step 3 - power on the Mac - You will have several options. Choose the one that says something like "boot ubuntu" (not the recovery one). - When asked, choose "install ubuntu" - When asked about replacing MacOSX vs installing alongside, choose "Something Else" near the bottom. - This will bring up the partitioning window. - delete partitions you do not need (if any) - Step 2 should have left you with some free space - choose the free space and (click on the +) create a swap partition. 8-16GB. I used 16GB. Make this be a logical partition - choose the remaining free space and create an EXT4 partition. Use all the remaining space. Make the mount point be / and make this be a logical partition. - click continue. - Finish the installation (answer questions about username, etc) - When prompted remove the USB stick and press enter 6) Boot into linux - The rEFInd boot screen will give you an option to boot Ubuntu, choose that. - The grub menu will give you several options. Choose the first (ubuntu). - log into linux on your mac! 7) Install the wifi driver. - If you skipped step 4 because you only have 1 USB drive, you will need to reboot into MacOS, reformat the USB drive, and download the wifi driver as described in step 4. - Insert the USB stick with the wifi drivers (from step 4) - type mount to see where it got mounted - cd to that directory cd /media/USERNAME/USB-DRIVE-NAME - install the wifi driver: sudo dpkg -i dkms*.deb sudo dpkg -i libc-dev-bin*.deb sudo dpkg -i libc6-dev_**.deb sudo dpkg -i libc6_*.deb sudo dpkg -i linux-lib*.deb sudo dpkg -i bcmwl*.deb - click on the wifi icon in the upper right and choose a wifi access point and password. 8) Update the software - Press CTRL-ALT-T to get a terminal and run: sudo apt-get update sudo apt-get -f install sudo apt-get dist-upgrade # NOTE: apt-get -f install is to resolve a dependency issue with the wifi driver we installed earlier. - reboot 9) This info is from the following sites: http://www.alexvictorchan.com/2013/05/01/installing-ubuntu-13-04-on-13-macbook-pro-retina-102/ http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx Other possibly useful sites: http://randomtutor.blogspot.com/2013/02/installing-ubuntu-1304-on-retina.html http://cberner.com/2013/03/01/installing-ubuntu-13-04-on-macbook-pro-retina/ http://commandline.org.uk/2013/03/08/lubuntu_on_macbook_pro_retina.html

FONTS

See mybin/scripts/fonts_for_xterm