我有一台安装了 Ubuntu 21.10 的 Vaio Intel 笔记本电脑。它有一个 Intel Corporation WiFi Link 5100 无线网卡。Ubuntu 加载iwlwifi-5000.5.83.ucode
Samba 版本 4.13.14-Ubuntu 和 smb.conf:
# Global parameters
[global]
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
server role = standalone server
server string = %h server (Samba, Ubuntu)
unix password sync = Yes
usershare allow guests = Yes
wins support = Yes
idmap config * : backend = tdb
[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[Vaio-Ripoli]
comment = Ripoli em %h
create mask = 0666
path = /home/ripoli/
read only = No
valid users = @ripoli
问题:
将任何大小的文件从 Windows 计算机复制到 Ubuntu 计算机上的共享目录既快速又简单。当我尝试从 Ubuntu 复制到 Windows 时,复制开始,几秒钟/几分钟后,连接断开,复制中止。
我在这台笔记本上安装了 FreeBSD 和 ghostBSD,并且使用了相同的 Samba 版本,一切运行正常。
我该如何修复它以便它也能与 Ubuntu 正常运行?
答案1
经过深入的研究,我解决了这个问题:
- 禁用蓝牙共存;
- 设置11n协议做聚合天线;
- 设置wifi参数RTS和Frag;
编辑 /etc/iwlwifi.conf 并添加:options swcrypto=1 11n_disable=8 bt_coex_active=0
另外,设置 wifi 参数: sudo iw phy0 set rts 784 sudo iw phy0 set frag 1024