这只是我在苹果机器上安装Arch Linux的一些记录而已,因为苹果的硬件,虽然也是x86平台,但毕竟还是有一些小的东西需要设置的。Arch让老苹果重获生命,又可以继续虐几年。在苹果的硬件上装Linux, BSD,我玩过很多,从以前苹果还不是Intel,而是PowerPC构架开始。
买苹果的笔记本,不一定要用苹果的系统,相比于软件来说,更喜欢苹果的硬件,不要说没性价比,哪个品牌能够像苹果一样,把东西做得这么小而巧?苹果从以前做一体机开始,就非常善于打包硬件,贵是有道理的,体现在细节上让你用得爽。
- Powerbook G3上安装gentoo
- 安装os9和netbsd双系统
- Edit partition table in NetBSD/macppc
声音
没有声音,在/etc/modprobe.d/modprobe.conf里加入:
options snd-hda-intel model=mbp3 position_fix=2
网络
dhcpcd禁止ipv6:
在/etc/dhcpcd.conf中加入:
noipv6rs
noipv6
输入法
在.xprofile中加入:
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=fcitx
GTK_IM_MODULE设为fcitx后,firefox无法调用fcitx,因为firefox并不是真正的gtk程序,设为xim后,它可以调用xim,而xim已被设为fcitx,这样反而是可以的。
小工具
Powertop
安装powertop,可以节电。
yay -S powertop安装
使用命令做一些微调,期间会黑屏,等待片刻就好。
# powertop --calibrate
创建文件/etc/systemd/system/powertop.service, 加入以下内容:
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
开机启动:
$ sudo systemctl enable powertop.service
Thermald
这个可以调整CPU,以避免过热。
yay -S thermald
systemctl enable thermald.service
CPUPower
可以调节CPU频率,可以设置你的CPU为powersave模式
yay -S cpupower
sudo systemctl enable cpupower
在文件/etc/default/cpupower中使用以下设置(我的CPU最高频率是2.3GHz)。
governor='powersave'
max_freq="2.3GHz"
mbpfan: 风扇控制
yay -S mbpfan-git
systemctl enable mbpfan.service
mbpfan会产生大量的log,把文件/usr/lib/systemd/system/mbpfan.service中ExecStart=/usr/sbin/mbpfan -fv
改为:ExecStart=/usr/sbin/mbpfan -f, 去掉verbose模式,以避免大量的log产生。

往期精彩
- 落入窠臼
- 秒杀一切手工画通路的素材
- 转UpSet图为ggplot?
- how to bug author
- emojifont新功能(有视频哦)
- [连载1]:学术期刊的学术不端,你见过吗?
- Ask me anything about ggtree
- clusterProfiler for enrichment analysis
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/228903.html原文链接:https://javaforall.net
