代码改变世界

一步一步 在mac上安装ubuntu

2017-05-23 08:05  tlnshuju  阅读(576)  评论(0编辑  收藏  举报

做为程序猿的你,一定听说过Linux甚至很喜欢Linux.

近期买了一台mac air,我很喜欢苹果的工艺,但作为屌丝程序猿,我依然喜欢基于Linux内核的Ubuntu 进行开发.以下我就讲述一步一步在mac上安装ubuntu系统.



  1. 1

    首先是下载Ubuntu镜像,mac版本号

  2. 2

    打开终端

  3. 3

    将iso格式转换成img格式

    hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso


  4. 4执行
    diskutil list
    获取当前系统挂载的存储媒介

  5. 5

    插入u盘

  6. 6
    diskutil list
    获取u盘的挂载名称,diskN

  7. 7

    执行

    diskutil unmountDisk /dev/diskN
    取消挂载,以便格式化

  8. 8

    运行

    sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
    格式化并制作ubuntu系统启动盘
  9. 9

    卸载u盘

    diskutil eject /dev/diskN

  10. 10

    重新启动 Mac 并按压 press alt/option 进入boot模式,并选择从u盘启动.接下来就是非常友好的过程,依照提示一步一步来就能够了.



Ps:安装后无线网络可能用不了,只是不用操心.网上已经有人攻克了.我也是这样弄的.

Please run:

lspci -nn | grep 0280

The pipe symbol | is on the right side of my US keyboard on the same key with '\'. Is this your device?

Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)

If so, then bcmwl-kernel-source is correct for your device. If you still have the install DVD or USB, then you can find it and its prerequisite there. Navigate to pool > restricted > b > bcmwl and drag and drop the deb file to your desktop. Now navigate to pool > main > d > dkms and drag and drop dkms to your desktop. Now install both with:

cd ~/Desktop
sudo dpkg -i *.deb

Load the driver:

sudo modprobe wl

Your wireless should now be working.

If your device is not 14e4:43a0, tell us what it actually is and we'll proceed.