2022-03-28 Debian on Buffalo LS-WVL,WVL的NAS路

这是个老古董了,节能是真的。

折腾很久了,终于要趋于完美了,今晚终于把风扇的调节方法也找到了,就索性做个总结吧。

1 装Debian

参考1: buffalo ls-wvl 简便安装debian 10 - 知乎 (zhihu.com)

思路:在LINUX下先把硬盘分区,写入LINUX安装程序,然后装回NAS启动远程安装。

将硬盘挂载在Linux(我用的Debian/Unas5.0)进行分区操作和引导镜像写入

查看待安装硬盘的盘符信息

sudo fdisk -l

确认为/dev/sdX,以下请将X改为自己的(sdb/sdc/sdd------)

$ sudo parted /dev/sdX

(parted) mklabel gpt

(parted) mkpart boot 2048s 1024MiB

(parted) mkpart root 1024MiB 6144MiB

(parted) mkpart swap 6144MiB 6400MiB

(parted)quit

挂载第一分区,格式化,下载引导文件

$sudo mkfs.ext3 /dev/sdX1

$ sudo mount /dev/sdX1 /mnt

$wget https://d-i.debian.org/daily-images/armel/daily/kirkwood/network-console/buffalo/ls-wvl/uImage.buffalo

$wget https://d-i.debian.org/daily-images/armel/daily/kirkwood/network-console/buffalo/ls-wvl/initrd.buffalo

$cp *.buffalo /mnt

$sudo umount /mnt

我直接从Index of /daily-images/armel/daily/kirkwood/network-console/buffalo/ls-wvl (debian.org)下载的,usb cp 到/mnt的,Debian bookworm

现在将硬盘拔下,插入NAS第1盘位,启动NAS,大约过1-2分钟蓝灯不闪时,SSH登录进入安装界面:

$ssh [email protected]

登录密码:install

2 待安装完毕,重启,ssh接入服务器

ssh 你的用户名@192.168.1.X

你的密码

直接root用户登入,或使用注意不是su,是su -  有-带环境的

su -

pw of root

风扇治理

参考:猫盘折腾记:Debian下的LED、风扇自动控制脚本 - (jianshu.com)

echo 0 >/sys/class/thermal/cooling_device0/cur_state //风扇满速运行

echo 1 >/sys/class/thermal/cooling_device0/cur_state //风扇较高速运行

echo 2 >/sys/class/thermal/cooling_device0/cur_state //风扇低速运行

echo 3 >/sys/class/thermal/cooling_device0/cur_state //风扇静默

待研究,应该和cpu的负载能关联在一起比较好,反正现在它很安静

参考:fan ls-qvl · Issue #118 · 1000001101000/Debian_on_Buffalo · GitHub

Yeah, that one will have the bug I described. Try the following:

Download my DTB file to the device 

cd /etc/flash-kernel/dtbs/

wget https://github.com/1000001101000/Debian_on_Buffalo/raw/master/Buster/device_trees/kirkwood-linkstation-lsqvl.dtb

flash-kernel  //Generate new boot files to include it 

reboot //the fan should work as desired with that in place.

....that does remind me, there are a few other fixes I need to get into my devce tree, I'll need to find my notes. I believe I had a fix for some hotswap issues.

If your device shuts down instead of rebooting when you issue a reboot command I have a fix for that too.

If it's easier you could re-run with my installer which puts those in place as part of the install. Otherwise I can help you do it manually

# apt update

# apt install wget

# cd /etc/flash-kernel/dtbs/

# wget https://d-i.debian.org/daily-images/armel/daily/kirkwood/device-tree/kirkwood-linkstation-lswvl.dtb

# flash-kernel

目标NAS,开始配置

参考:在Debian上搭建家庭NAS备忘录 - 知乎 (zhihu.com)

安装 Samba

apt install samba

配置samba.conf

安装 minidlna

安装 Cockpit

首先用“echo”命令添加backports存储库:

echo 'deb ftp://deb.cn.debian.org/debian bookworm-backports main' > /etc/apt/sources.list.d/backports.list

安装 collectl cpu cpulimit cpustat

安装cpufreqd cpufrequtils

我的/etc/apt/sources.list供参考,注意发行号strecth/buster/bullseye/bookworm

# deb http://mirrors.ustc.edu.cn/debian/ bookworm main

deb http://ftp.cn.debian.org/debian bookworm main

deb http://mirrors.ustc.edu.cn/debian/ bookworm main

deb-src http://mirrors.ustc.edu.cn/debian/ bookworm main

deb http://security.debian.org/debian-security bookworm-security main

deb-src http://security.debian.org/debian-security bookworm-security main



太晚了,晚安

你可能感兴趣的:(2022-03-28 Debian on Buffalo LS-WVL,WVL的NAS路)