OEC 刷机Armbain 25.05后配置说明

DHCP 调整为固定IP

nano /etc/netplan/00-default-use-network-manager.yaml

Added by Armbian

Reference: https://netplan.readthedocs.io/en/stable/netplan-yaml/

Let NetworkManager manage all devices on this system.

Any device will come up with DHCP, once carrier is detected.

This is basically Netplan passing control over to NetworkManager at boot time.

network:

version: 2

renderer: NetworkManager

ethernets:

eth0: # 根据你的网络接口名称更改,例如eth1, enp3s0等

dhcp4: no

addresses: 10.0.0.178/24 # 你的IP地址和子网掩码

gateway4: 10.0.0.1 # 网关地址

nameservers:

addresses: 8.8.8.8, 8.8.4.4

挂载SSD硬盘

nano /etc/fstab

复制代码
UUID=7ba6f126-a3e1-4fc2-b934-40f23013bf65  /      ext4  defaults,noatime,nodiratime,commit=600,errors=remount-ro  0 1
LABEL=BOOT_EMMC  /boot  ext4  defaults  0 2
tmpfs           /tmp     tmpfs    defaults,nosuid                                             0 0

UUID=94460f0e-89ea-47fb-a80a-a748262aec46 /store ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro  0 0

开启SAMBA共享 apt install samba

nano /etc/samba/smb.conf

global

workgroup = SAMBA

security = user

map to guest=Bad User

passdb backend = tdbsam

printing = cups

printcap name = cups

load printers = yes

cups options = raw

store

comment=oec

path=/store

writable=yes

public=yes

browseable=yes

writable=yes

create mask=0644

MacBook M1访问测试 显示-> 连接服务器 smb://10.0.0.178 选访客 不输入帐号密码

就可以在访达中访问smb服务。

相关推荐
Fu2067218 小时前
第一阶段项目
linux·服务器·网络
可涵不会debug16 小时前
dufs轻量文件服务器教程:中文界面、WebDAV、上传分享与远程访问
运维·服务器
木子欢儿17 小时前
Ubuntu 26.04 LTS 安装Python 3.12
linux·运维·服务器·python·ubuntu
Ryan-Zhong21 小时前
AI视频切片 API 怎么用?长视频拆条、高光识别与自动分发接口实测
服务器·数据库·音视频
渴了喝洗衣液1 天前
第一阶段项目
linux·运维·服务器
蹊黎1 天前
Linux 进程概念(四):命令行参数与环境变量
linux·运维·服务器
飞奔的瓜牛2 天前
Linux 数据盘分区、格式化与自动挂载完整实践
linux·运维·服务器
Lucas. Wáng2 天前
Linux网络编程之网络套接字
linux·服务器·网络
数字新视界2 天前
动环智能监控在机房管理中的智能应用与安全保障
服务器·数据中心·机房·环境管理·环控系统
进击的荆棘2 天前
Linux网络——Socket编程TCP
linux·运维·服务器·网络·tcp/ip