Skip to main content

Installing Fedora on Macbook Air (early 2015 model)


  1. 1.create  a new partition for the linux os.It can be done in mac by going to Finder  -> Application ->Utilities -> disk utility.app .
  2.  Use this command to create a live usb stick from which fedora can be installed. "sudo dd if=path-of-the-Fedora-Image-file.iso of=path-of-the-usb-drive  bs=512k". Make sure the usb drive is formated with fat32. bs=512k is the safest rate and "diskutil list" command will give the path-of-the-usb-drive  (i.e., /dev/rdisk2 ) . dd will not give anyoutput until it completes the writing , so wait for some time (5-10min).
  3. Now shutdown  laptop and restart it while press the alt/option key. This will give the available boot options. click on fedora icon to start live session.
  4. During installation process delete the partition that you have created earlier and "reclaim the space". You should select automatic partiction process.


3. Things to do after installation
  1. Update the system via wired connection. This can be done using either lan connection with thunderbolt port or usb tethering from a android smartphone.
  2. dnf install kernel-devel akmod-wl ( add rpmfusion repository ). This will add support for wifi.
  3. Fix brightness control by installing  mba6x_bl (https://github.com/patjak/mba6x_bl )
  4. Try to Fix webcam from this github(https://github.com/patjak/bcwc_pcie). If download of the appleCameraInerface fails  then you can get this file from some mac os and convert it . (dd bs=1 skip=81920 count=603715 if=AppleCameraInterface | gunzip >firmware.bin).  
  5. Install graphics for intel driver https://01.org/linuxgraphics/
  6. Fix over heating issue . ( http://itsfoss.com/reduce-overheating-laptops-linux/)
  7. create a /etc/rc.d/rc.local  
  8.  #!/bin/bash 
    /usr/bin/echo -n 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
    /usr/bin/echo XHC1 > /proc/acpi/wakeup
    /usr/bin/echo LID0 > /proc/acpi/wakeup
    /usr/bin/echo 0 > /sys/module/hid_apple/parameters/iso_layout
    echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs'
    echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy'
    echo '1' > '/sys/module/snd_hda_intel/parameters/power_save'
    echo '0' > '/proc/sys/kernel/nmi_watchdog'
    echo 'auto' > '/sys/bus/usb/devices/1-5/power/control'
    echo 'auto' > '/sys/bus/usb/devices/1-3.3/power/control'
    echo 'auto' > '/sys/bus/usb/devices/2-3/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:03.0/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.0/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.1/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:04:00.0/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:16.0/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:02:00.0/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.4/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.5/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.2/power/control'
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1b.0/power/control'
  9.  Give permission to the file and enable the service 
    chmod +x /etc/rc.d/rc.local  
    systemctl enable rc-local.service
    systemctl start rc-local.service
  10. Fix touchpad over-sensitivit. 
    edit /usr/share/X11/xorg.conf.d/60-libinput.conf 
    Add this lines in the Touchpad section. 
            Option "FingerHigh" "70"
            Option "RTCornerButton" "0"
            Option "RBCornerButton" "0"
            Option "MinSpeed" "0.7"
            Option "MaxSpeed" "1.7"
            Option "SHMConfig" "on"
            Option "TapAndDragGesture" "off"
    
    source: http://techblog.tthu.net/2015/01/apple-trackpadtouchpad-sensitivity-under-linux/
    
    

Comments

Popular posts from this blog

Filling between curves with color gradient or cmap in Matplotlib

I was trying to plot fill_between () in matplotlib with color gradient or any cmap defined in pyplot.  After googleing a lot i couldn't find any solution.  An alternative method is to use imshow() . I have created this example :  import numpy as np import matplotlib.pyplot as plt from matplotlib.path import Path from matplotlib.patches import PathPatch xx=np.arange(0,10,0.01) yy=xx*np.exp(-xx) path = Path(np.array([xx,yy]).transpose()) patch = PathPatch(path, facecolor='none') plt.gca().add_patch(patch) im = plt.imshow(xx.reshape(yy.size,1),  cmap=plt.cm.Reds,interpolation="bicubic",                 origin='lower',extent=[0,10,-0.0,0.40],aspect="auto", clip_path=patch, clip_on=True) #im.set_clip_path(patch) plt.savefig("out.png") Source: Matplotlib Example  http://matplotlib.org/examples/pylab_examples/image_clip_path.html  

pm3d map of gnuplot in matplotlib

In gnuplot pm3d map plot a 3d data into a surface with color as value of "z". Lets say we have a data file something like this .. 0.00    0.00    0.00 0.00    1.00    0.00 0.00    2.00    0.00 0.00    3.00    1.9358 0.00    4.00    3.618 0.00    5.00    5.17 0.00    6.00    6.93 0.00    7.00    8.82 0.00    8.00    10.692 1.00    0.00    0.00 1.00    1.00    0.00 1.00    2.00    0.00 1.00    3.00    2.1318 .... ... In gnuplot prompt we will do something like this . set pm3d map; set dgrid  20,20 sp "data.dat" u 1:2:3    and this will produce a figure something like a...

Lecture notes on Condensed Matter Theory

Though there is lot of good text books on condensed matter physics. But there are many good lecture note available by various people. Here i will list some of them . These are mainly on the subject of strongly correlated eletrons. 1.  "Quantum Magnetism Approaches to Strongly Correlated Electrons"  by Assa Auerbach     ( http://arxiv.org/abs/cond-mat/9801294v1   ) 2. "Theory of Superconductivity" by N. B. Kopnin      ( https://ltl.tkk.fi/wiki/images/8/8f/TheorySC10.pdf ) 3. "SISSA Lecture notes on Numerical methods for strongly correlated electrons" by Sandro Sorella and Federico Becca      ( http://people.sissa.it/~sorella/Simulazioni.pdf ) 4. "Quantum Theory of Condensed Matter" by John Chalker       ( http://www-thphys.physics.ox.ac.uk/people/JohnChalker/qtcm/lecture-notes.pdf ) 5. "Quantum Condensed Matter Physics - Lecture Notes" by Chetan Nayak      ( http:/...