玩客云s805 armbian

s805

Posted by Pg on May 29, 2025

armbian 一键旁路由ip sbm v2raya 仓库

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
bash <(curl -sL https://url.215155.xyz/https/penggan00.github.io/my-blog/sh/armbian-ip.sh)
bash <(curl -sL https://url.215155.xyz/https/penggan00.github.io/my-blog/sh/sbm.sh)
bash <(curl -sL https://url.215155.xyz/https/penggan00.github.io/my-blog/sh/v2raya.sh) 
bash <(curl -sL https://url.215155.xyz/https/penggan00.github.io/my-blog/sh/armbian.sh) 

# 一键手动安装v2aray
wget https://url.215155.xyz/https/penggan00.github.io/my-blog/sh/v2xay/installer_debian_armv7_2.2.6.6.deb
wget https://url.215155.xyz/https/penggan00.github.io/my-blog/sh/v2xay/v2ray_5.28.0_armhf.deb
wget https://url.215155.xyz/https/penggan00.github.io/my-blog/sh/v2xay/xray_25.3.6_armhf.deb
sudo chmod 644 /root/installer_debian_armv7_2.2.6.6.deb
sudo apt install /root/installer_debian_armv7_2.2.6.6.deb
sudo chmod 644 /root/v2ray_5.28.0_armhf.deb
sudo apt install /root/v2ray_5.28.0_armhf.deb
sudo chmod 644 /root/xray_25.3.6_armhf.deb
sudo apt install /root/xray_25.3.6_armhf.deb
# 启动 v2rayA
sudo systemctl start v2raya.service
# 设置开机自动启动
sudo systemctl enable v2raya.service

设置静态IP 关闭ipv6

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
sudo apt update
sudo apt install ifupdown -y
cat << 'EOF' > /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.3.33
netmask 255.255.255.0
gateway 192.168.3.1
dns-nameservers 192.168.3.1 8.8.8.8 1.1.1.1 223.6.6.6 223.5.5.5
EOF
sudo systemctl restart networking
# sudo nano /etc/sysctl.conf
# net.ipv4.ip_forward=1
# sudo sysctl -p
# ip转发
cat << 'EOF' >> /etc/sysctl.conf
net.ipv4.ip_forward=1
EOF
sudo sysctl -p
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -j ACCEPT
sudo apt install iptables-persistent -y
sudo netfilter-persistent save
# ipv6
# 一、禁用IPv6的完整步骤
# 方法1:通过sysctl临时禁用
# 临时禁用所有接口的IPv6
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
# 方法2:永久禁用IPv6(推荐)
# sudo nano /etc/sysctl.conf
# net.ipv6.conf.all.disable_ipv6 = 1
# net.ipv6.conf.default.disable_ipv6 = 1
# net.ipv6.conf.lo.disable_ipv6 = 1
cat << 'EOF' >> /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
EOF
sudo sysctl -p
cat /proc/sys/net/ipv6/conf/all/disable_ipv6  
# 显示1表示已禁用

一键无密码sbm

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 1. 安装Samba服务
sudo apt update && sudo apt install samba -y
# 2. 备份原配置文件
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
# 3. 生成新配置文件
cat << 'EOF' >> /etc/samba/smb.conf
[global]
   workgroup = WORKGROUP
   server role = standalone server
   security = user
   map to guest = Bad User
   dns proxy = no
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   min receivefile size = 16384
   use sendfile = yes
   read raw = yes
   write raw = yes
   max xmit = 65536
   aio read size = 4096
   aio write size = 4096
   log level = 0
   load printers = no
   printing = bsd
   printcap name = /dev/null
   disable spoolss = yes

[dav]
   path = /mnt
   browseable = yes
   writable = yes
   guest ok = yes
   guest only = yes
   create mask = 0777
   directory mask = 0777
   force user = nobody
   strict sync = no
   oplocks = yes
   kernel oplocks = yes
EOF
# 4. 设置目录权限
sudo chmod -R 777 /mnt
sudo chown -R nobody:nogroup /mnt
sudo chmod g+s /mnt
# 5. 重启服务
sudo systemctl restart smbd
sudo systemctl enable smbd
echo "SMB共享已启用:smb://$(hostname -I | awk '{print $1}')/dav/"
lsblk
mkdir /mnt/hp
mount /dev/sda1 /mnt/hp
cat << EOF >> /etc/fstab
UUID=e0280430-4e37-471a-b784-ad948d7e48f4 /mnt/hp ext4 nosuid,nodev,nofail 0 0
EOF

​1. 彻底删除所有旧的 Armbian 仓库配置​

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 删除所有可能的旧配置文件
sudo rm -f /etc/apt/sources.list.d/armbian*
sudo rm -f /etc/apt/sources.list.d/configng*
sudo rm -f /etc/apt/sources.list.d/naho.moe*
# 检查全局 sources.list
sudo grep -r "armbian" /etc/apt/sources.list /etc/apt/sources.list.d/
# ​2. 重新配置官方 Armbian 仓库​
# 确保密钥目录存在
sudo mkdir -p /etc/apt/keyrings
# 下载并安装官方 GPG 密钥
curl -fsSL https://apt.armbian.com/armbian.key | sudo gpg --dearmor -o /etc/apt/keyrings/armbian.gpg
# 设置正确的权限
sudo chmod 644 /etc/apt/keyrings/armbian.gpg
# 添加官方仓库配置
echo "deb [signed-by=/etc/apt/keyrings/armbian.gpg] https://apt.armbian.com bullseye main bullseye-utils bullseye-desktop" | sudo tee /etc/apt/sources.list.d/armbian.list
# ​3. 完全清除 APT 缓存​
sudo rm -rf /var/lib/apt/lists/*
sudo apt clean
# ​4. 更新软件源​
sudo apt update