samba share files between windows and ubuntu LINUX 文件共享

本文介绍如何在Ubuntu中安装和配置Samba服务,实现与Windows计算机之间的文件共享。包括检查Samba是否已安装、安装Samba、配置Samba服务、设置共享文件夹等步骤。

To get started, first check to see if Samba is installed (by default Samba usually is installed during installation).

Open a Terminal window (Applications / Accessories / Terminal) and at the prompt enter the following command:

Example:

apt-cache search samba

If Samba is installed, you will see an output similar to the following:

samba – a LanManager-like file and printer server for Unix
samba-common – Samba common files used by both the server and the client
samba-dbg – Samba debugging symbols
samba-doc – Samba documentation
samba-doc-pdf – Samba documentation (PDF format)
smbclient – a LanManager-like simple client for Unix
smbfs – mount and umount commands for the smbfs (for kernels >= than 2.2.x)

If Samba is not installed, just enter the following command at the prompt in a Terminal window:

sudo apt-get install samba smbfs

You can also check to see if Samba is installed using Synaptic .

Now that Samba is installed, it's time to configure and make it accessible for Windows Computers, with the step by step procedure in the following video. Don't worry if you miss something, you can check out the steps listed below after the video.

NOTE: installation of Samba in video used Ubuntu 6.10 but still applies to later versions as well.

Steps to enable and configure Samba in Ubuntu:

Configure Samba

- Open System / Administration / Networking and enter password. In General tab, enter your hostname (this is your Computer name)
– Open System / Administration / Shared Folders then click on General Properties tab and enter a name for Domain/Workgroup .
– Open Applications / Accessories / Terminal and at prompt enter sudo gedit /etc/samba/smb.conf
– Uncomment the line browseable = yes (don't forget to use find and search for browseable)
– Uncomment the line writable = no and change "no " to yes
– Save the file and close
– Go back to the Terminal window and enter the following command (remember you can use any name you want): sudo smbpasswd -a username
– When prompted, enter a password and confirm it.
– Reload the Samba services using the following command: sudo /etc/init.d/samba reload

Sharing Folders (on Ubuntu)


– Open Places / Home Folder
– Create a new folder, then right click on it and select Share Folder
– In Share Folder dialog box, set Share through: to Windows networks (SMB) and give folder a name. (if you want the share to have write access, uncheck Read only
– From your Windows Computer, see if you can connect to the folder share.

If you want to connect to shared printers from Ubuntu to Windows, check out our step by step guide on connecting to Windows shared printers from Ubuntu .

【四轴飞行器】非线性三自由度四轴飞行器模拟器研究(Matlab代码实现)内容概要:本文围绕非线性三自由度四轴飞行器的建模与仿真展开,重点介绍了基于Matlab的飞行器动力学模型构建与控制系统设计方法。通过对四轴飞行器非线性运动方程的推导,建立其在三维空间中的姿态与位置动态模型,并采用数值仿真手段实现飞行器在复杂环境下的行为模拟。文中详细阐述了系统状态方程的构建、控制输入设计以及仿真参数设置,并结合具体代码实现展示了如何对飞行器进行稳定控制与轨迹跟踪。此外,文章还提到了多种优化与控制策略的应用背景,如模型预测控制、PID控制等,突出了Matlab工具在无人机系统仿真中的强大功能。; 适合人群:具备一定自动控制理论基础和Matlab编程能力的高校学生、科研人员及从事无人机系统开发的工程师;尤其适合从事飞行器建模、控制算法研究及相关领域研究的专业人士。; 使用场景及目标:①用于四轴飞行器非线性动力学建模的教学与科研实践;②为无人机控制系统设计(如姿态控制、轨迹跟踪)提供仿真验证平台;③支持高级控制算法(如MPC、LQR、PID)的研究与对比分析; 阅读建议:建议读者结合文中提到的Matlab代码与仿真模型,动手实践飞行器建模与控制流程,重点关注动力学方程的实现与控制器参数调优,同时可拓展至多自由度或复杂环境下的飞行仿真研究。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值