♾️ text 代码:dd if=/dev/zero od=/dev/nvme0n1 bs=4k status=progress
♾️ text 代码:apt install nvme-cli
nvme list
nvme format -s1 /dev/nvme0n1 -f
lsblk
sync;
ls
dd if=./Armbian_22.11.0-trunk_Rock-5b_sid_legacy_5.10.72.img of=/dev/nvme0n1 bs=4M status=progress;sync;
sync;
lsblk
poweroff
♾️ text 代码:apt install g++
g++ main.cpp -o fan
systemctl start fan.service
systemctl enable fan.service
unzip ./out.zip
lsblk
dpkg -l | grep rock
apt autoremove linux-5.10-rock-5-latest linux-headers-5.10.66-27-rockchip-gea60d388902d linux-image-5.10.66-27-rockchip-gea60d388902d
cd out/
ls
cd packages/
ls
apt install ./*deb
sync;reboot
apt update
apt install nftables
nft -f /etc/nftables.conf
lsmod
apt install wireguard
export DOWNLOAD_URL="https://mirrors.bfsu.edu.cn/docker-ce"
curl -fsSL https://get.docker.com/ | sh
apt-get install ntpdate
tzselect
echo "export TZ='Asia/Shanghai'" >> /etc/profile
source /etc/profile
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
cat /etc/default/ntpdate
>>>
#Configuration script used by ntpdate-sync script
NTPSERVERS="ntp1.aliyun.com"
#Set to "yes" to write time to hardware clock on success
UPDATE_HWCLOCK="yes"
>>>
reboot
date -R
apt install screen
apt install -y vim git gcc wget screen
screen -S bt
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
bt 6
bt 5
bt 11
echo “” > /www/server/panel/script/site_task.py
chattr +i /www/server/panel/script/site_task.py
rm -rf /www/server/panel/logs/request/*
chattr +i -R /www/server/panel/logs/request
apt install aria2
mkdir /etc/aria2
touch /etc/aria2/aria2.session
chmod 777 /etc/aria2/aria2.session
#nano /etc/aria2/aria2.conf
aria2c --conf-path=/etc/aria2/aria2.conf
chmod 755 /etc/init.d/aria2c
update-rc.d aria2c defaults
service aria2c start
docker run -d --name=xunlei --hostname=mynas --net=host -e XL_WEB_PORT=8156 -v /home/www/xunlei:/xunlei/data -v /home/share/downloads:/xunlei/downloads --restart=unless-stopped --privileged cnk3x/xunlei:latest
docker pull jellyfin/jellyfin
docker run -d -p 8096:8096 -v /jellyfin/config:/config -v /home/share:/share jellyfin/jellyfin
docker run -d --restart=always -v /home/www/alist:/opt/alist/data -p 5244:5244 --name="alist" xhofe/alist:latest
docker run -dt --name bark -p 6543:8080 -v `pwd`/bark-data:/data finab/bark-server
#docker update --restart=always ID
#docker exec -it ID /bin/sh
apt get install locales
dpkg-reconfigure localesnano /etc/systemd/system/qbt.service
systemctl enable qbt
systemctl start qbt
systemctl status qbt