在安装Debian9到Macbook Air时遇到了一些问题
我將Macbook Air (OS X)設置為Debian 9 Strech的雙重引導,並整理了安裝方法。遇到最大的困難是設置無線網絡。幸好我有以太網轉接器,才能安裝無線網卡驅動程序,否則無法安裝。請注意。
在這裡,我們將進行安裝、無線網卡驅動程序、鍵盤和Node.js/Node-RED的安裝。
對於圖形用戶界面(GUI),我建議使用與Raspberry Pi相同的LXDE。它沒有壓力且非常易於使用。
1. 安装方式
以下是一个参考网站
关于Ubuntu的安装,这个链接可以给予帮助
http://ottan.xyz/el-capitan-ubuntu-dual-boot-4020/
请下载此网站上的”PC/服务器用DVD镜像(64位)”并将下载的ISO文件写入USB存储器,作为Ubuntu ISO文件的替代。然后按照和Ubuntu相同的方式进行安装。
sudo dd if=debian-9.1.0-amd64-DVD-1.iso of=/dev/rdisk2 bs=1m
2. 安装Wi-Fi驱动程序
对2-1.source.list进行编辑。
编辑位于/etc/apt/source.list的服务器列表,以进行apt-get操作。
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
2-1. 更新内核
apt-get update && apt-get upgrade && apt-get dist-upgrade
删除 Broadcom-sta-dkms。
apt-get remove broadcom-sta-dkms
安装2-3.Wi-Fi的驱动程序。
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl
键盘设置
只需设置“英数”和“かな”键即可使用。
3-1. 设置方式

以类似的方式打开[整体]编辑界面,注册”英数”键并按下”确定”按钮。
4. 安装Node.js和Node-RED。
4-1. 安装curl
sudo apt install curl
安装4-2节点6的设置。
似乎无法安装节点 4.x 系列。
$ curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
安装Node.js。
$ sudo apt install nodejs
请确认Node的版本为4-4.
$ node --version
> v6.11.0
请确认 npm 的版本。
$ npm version
> { npm: '3.10.10',
> ares: '1.10.1-DEV',
> http_parser: '2.7.0',
> icu: '56.1',
> modules: '48',
> node: '6.11.0',
> openssl: '1.0.2k',
> uv: '1.11.0',
> v8: '5.1.281.102',
> zlib: '1.2.11' }
4-6. 安装Node-RED
可以使用以下命令进行安装。
请参考此处获取更多详细信息。
sudo npm install -g --unsafe-perm node-red