zoukankan      html  css  js  c++  java
  • 记录2-在mac上安装ubuntu 16.04 LTS

    前几天升级了我用了六七年mac硬件,内存由4G变为8G,硬盘也换成1T SSD,索性把一直想装的ubuntu也装了,方便温习下以前的工作环境。

    我比较喜欢LTS的版本,所以安装了16.04. 主要步骤如下:

    #1. 用Disk Utility在硬盘上分出一部分free space,200GB

    #2. 安装rEFInd

    1. 从sourceforge上下载最新版本
    2. 解压后进行安装:./refind-install
    3. 但我在安装rEFInd时发现“SIP enabled”的提示,按照如下提示进入recovery mode再运行 ./refind-install仍然不行,最后是进入recovery mode后,将SIP禁掉,具体就是先重启到Recovery,使用Recovery Hd分区的命令:csrutil disable,安装完rEFInd后再把它enable: csrutil enable
    **** ALERT: SIP ENABLED! ****
    
    rEFInd cannot be installed because System Integrity Protection (SIP) seems
    to be enabled! You must install rEFInd from your Recovery installation or
    from another OS. To install from the Recovery system:
    
      1. Reboot
      2. Hold down Command+R as the chime sounds
      3. When the OS has booted, select Utilities->Terminal
      4. Change to this directory with the 'cd' command; it will probably be under
         /Volumes/MacBook Pro/Users/huatai/Downloads/refind-bin-0.10.2
      5. Re-run this script.
    
    If you believe SIP is NOT enabled, you may attempt an installation anyhow,
    but it may fail.
    
    For more on this subject, see http://www.rodsbooks.com/refind/sip.html
    基本翻译
    重新找到
    网络释义
    REFIND: 重新查找
    refind lard: 精炼猪油

     4. 制作ubuntu安装盘

    将iso转为dmg并写入U盘

    预先下载ubuntu 16.04的iso,打开terminal,cd到iso所在文件夹,依次输入:

    hdiutil convert ubuntu-17.04-desktop-amd64.iso -format UDRW -o ubuntu.dmg
    cd udiskname(这里写U盘名)
    diskutil list (利用这条命令来查看所有disk,并找到U盘的编号)
    diskutil unmountDisk /dev/disk2 (这里的disk2是上一步里所找到的U盘编号)
    sudo dd if=ubuntu.dmg of = /dev/rdisk2 bs=2m
    (执行完上一步之后,会弹出“系统无法识别U盘”的警告,先不要点忽略或推出,转到terminal继续输入)
    diskutil eject /dev/disk2(这一步推出U盘)
    (执行完上一步之后,再回到警告窗口点击“忽略”即可)

     5.重启后会出现refind的引导界面,选择从U盘启动(我遇到的情况是有两个同样的U盘启动符,我选择点击第一个)

    6. 开始安装ubuntu。这部分以前经常做,细节不再记录。现在流行的分区方式是分三个 swap,/根目录和/home各分一个区。由于电脑的内存是8G,swap我分了8G,另外大概/根目录50G和/home 142G。

  • 相关阅读:
    Python正则表达式指南
    Python中的HTMLParser、cookielib抓取和解析网页、从HTML文档中提取链接、图像、文本、Cookies(二)
    Python中的urlparse、urllib抓取和解析网页(一)
    __name__ = '__main__'
    odoo context
    Python xlwt模块
    python中使用xlrd、xlwt操作excel
    odoo 下 get_object_reference 函数
    Python运算符
    jQuery实现contains方法不区分大小写的方法教程
  • 原文地址:https://www.cnblogs.com/littledrop/p/8602252.html
Copyright © 2011-2022 走看看