# Installation

## 双系统

### 制作启动盘

#### MAC

参考自： 插入U盘->Launchpad->磁盘管理工具->格式化U盘为MAC日志，GUID分配方式。\
查看U盘分配的设备号：

```bash
diskutil -list
```

卸载已经加载的U盘(以/dev/disk2为例)：

```bash
diskutil unmountDisk /dev/disk2
```

使用dd命令复制iso文件到U盘，等待几分钟：

```bash
sudo dd if=~/Downloads/ubuntu-17.04-desktop-amd64.iso of=/dev/disk2 bs=1m

其中：   
if是输入文件   
of是输出文件    
bs是传输文件速度
```

直到出现records in，records out，即成功了。

```bash
1534+1 records in
1534+1 records out
```

### Windows+Linux双系统

[超详细！Win10（UEFI启动）安装Ubuntu18.04双系统](https://blog.csdn.net/qq_38962621/article/details/87390603)

## 虚拟机

## 无root时的安装

[Linux下编译软件时指定安装目录](https://blog.csdn.net/E_pen/article/details/51889588)

## GCC

```bash
yum install centos-release-scl -y
yum install devtoolset-7-gcc* -y

#temporary set
scl enable devtoolset-7 bash

#permanent set for every one
vim /etc/profile
source /opt/rh/devtoolset-7/enable
```

Reference: [CentOS7升级GCC版本](https://blog.csdn.net/jiangshuanshuan/article/details/103890748)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://legacy.cookielau.com/archives/4-linux/0-installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
