一步一步 在mac上安装ubuntu
阅读原文时间:2021年04月20日阅读:1

做为程序员的你,一定听说过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.