Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 Windows 和 Ubuntu 之间传输文件 #44

Open
cnwutianhao opened this issue Apr 10, 2024 · 0 comments
Open

在 Windows 和 Ubuntu 之间传输文件 #44

cnwutianhao opened this issue Apr 10, 2024 · 0 comments

Comments

@cnwutianhao
Copy link
Owner

  1. 在 Ubuntu 上安装 Samba:

    sudo apt-get update
    sudo apt-get install samba
    
  2. 在 Ubuntu 上创建一个共享文件夹并设置权限:

    mkdir /home/your_username/shared
    sudo chown nobody:nogroup /home/your_username/shared
    sudo chmod 0777 /home/your_username/shared
    
  3. 在 Ubuntu 上配置 Samba,编辑 /etc/samba/smb.conf 文件,添加以下内容:

    [shared]
       path = /home/your_username/shared
       read only = no
       guest ok = yes
    
  4. 在 Ubuntu 上重启 Samba 服务:

    sudo service smbd restart
    
  5. 在 Windows 上,打开文件资源管理器,输入:

    \\your_ubuntu_ip_address\shared
    

    就可以看到共享的文件夹并进行文件传输。

注意:请将 your_usernameyour_ubuntu_ip_address 替换为实际的用户名和 Ubuntu 的 IP 地址。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant