原装的是centos,之前只是刚开始用linux的时候用过几天的fedora,后来就一直用debian系的了。
选择
Nas的系统选择有很多,群晖的系统、windows、freenas、openmediavault等。无论从哪方面考虑,omv都是适合的。本来想安装omv的,深入了解了一下,似乎本质上就是一个web的管理界面,相对于Cockpit,可能功能更强大一些。因为本身蜗牛的配置一般,基于一切就简的原则,直接采用debian系统。
安装
- 刻录
sudo cp debian-9.8.0-amd64-netinst.iso /dev/sdb sudo sync
-
分区
-
ESP 512MB 可启动
UEFI启动必须
-
swap 2G
-
ext4 剩余 /
这里采用UEFI启动,所以必须有一个ESP启动区,推荐大小是512MB。swap设为2G,实践来看过大,大多数情况下用不到,重负荷情况下可能会用到几百兆。其他全部为根目录,因为home基本不存东西,所以不单独设置home分区。
配置
- 网络
ip a # 查看网卡 sudo nano /etc/network/interfaces # 设置静态网址 sudo apt install net-tools sudo apt install ethtool sudo apt install ifplugd # 实现网线热插拔 sudo dpkg-reconfigure ifplugd
- 时间
sudo apt install ntpdate sudo ntpdate cn.pool.ntp.org
- zsh
sudo apt install zsh
sudo apt install python python3
sudo apt install python-pip python3-pip
sudo pip2 install percol
sudo pip2 install pinyin
sudo pip2 install virtualenv virtualenvwrapper
cd git-repo/pinyin-completion
sudo ./setup.py install
chsh
- 修改hostname
sudo vim /etc/hostname sudo vim /etc/hosts
- 字体
sudo dpkg-reconfigure locales sudo apt install ttf-wqy-microhei ttf-wqy-zenhei
- 其他
sudo apt install man
sudo apt install whois
sudo apt install time
sudo apt install locate
sudo apt install nfs-common
sudo apt install vim
sudo apt install emacs25-nox
sudo apt install git-core
sudo apt install tmux
sudo apt install screen