
You’ve probably noticed that Ubuntu comes with a Public folder in your home directory. This folder isn’t shared by default, but you can easily set up several different types of file-sharing to easily share files on your local network.
您可能已經注意到,Ubuntu在主目錄中帶有一個Public文件夾。 此文件夾默認情況下不共享,但是您可以輕松設置幾種不同類型的文件共享,以輕松共享本地網絡上的文件。
This folder was originally meant for the Personal File Sharing tool, which is no longer included with Ubuntu by default. You can install the Personal File Sharing tool or use Ubuntu’s built-in file-sharing feature to share files.
該文件夾原本是用于個人文件共享工具的,默認情況下它不再包含在Ubuntu中。 您可以安裝個人文件共享工具,也可以使用Ubuntu的內置文件共享功能來共享文件。
桑巴分享 (Samba Sharing)
Ubuntu’s built-in file-sharing tool uses Samba, which is interoperable with Windows. Windows PCs on the local network will be able to view your shared folder if you share it this way.
Ubuntu的內置文件共享工具使用Samba,可與Windows互操作。 如果以這種方式共享,則本地網絡上的Windows PC將能夠查看您的共享文件夾。
To share the Public folder – or any other folder, there’s nothing special about the Public folder when it comes to Samba sharing – right-click it and select Properties. You’ll find a Share tab in the properties dialog.
要共享公用文件夾–或任何其他文件夾,在涉及Samba共享時,公用文件夾沒有什么特別的–右鍵單擊它,然后選擇屬性。 您將在屬性對話框中找到“共享”選項卡。

Share a folder and you’ll be prompted to install the Samba software. Click the Install service button and follow the prompts to install Samba and restart your desktop session.
共享一個文件夾,系統將提示您安裝Samba軟件。 單擊“安裝服務”按鈕,然后按照提示安裝Samba并重新啟動桌面會話。

After you’ve installed Samba, you can easily share the folder and set the sharing permissions as restrictive or as permissive as you want them to be. Enable the Allow others to create and deletes files in this folder and Guest access check boxes and other computers on the local network will be able to easily add files to the folder without entering a password. Click the Create Share button after selecting your options.
安裝Samba之后,您可以輕松地共享文件夾,并將共享權限設置為限制性的或隨意的。 啟用“允許其他人在此文件夾中創建和刪除文件”和“訪客訪問”復選框,本地網絡上的其他計算機將能夠輕松地將文件添加到該文件夾??,而無需輸入密碼。 選擇選項后,單擊創建共享按鈕。

Select Browse Network in Ubuntu’s file manager to view your network shares.
在Ubuntu的文件管理器中選擇“瀏覽網絡”以查看您的網絡共享。

個人文件共享 (Personal File Sharing)
The Personal File Sharing tool – also known as gnome-user-share – was the original reason for the Public folder. It uses Apache to offer convenient WebDAV-based file sharing, but doesn’t work with Windows systems. It supports Bluetooth file sharing, too. To use it, you’ll have to install the appropriate packages:
個人文件共享工具(也稱為gnome-user-share)是公用文件夾的最初原因。 它使用Apache提供方便的基于WebDAV的文件共享,但不適用于Windows系統。 它也支持藍牙文件共享。 要使用它,您必須安裝適當的軟件包:
sudo apt-get install gnome-user-share apache2.2-bin libapache2-mod-dnssd
須藤apt-get install gnome-user-share apache2.2-bin libapache2-mod-dnssd

After you do, you’ll find the Personal File Sharing application in your Dash.
完成后,您將在Dash中找到“個人文件共享”應用程序。

With the Personal File Sharing application, you can enable easy sharing of your Public folder over the network – it only works with the Public folder, not other folders. You can require a password never, when? writing files, or whenever the share is accessed. You an also enable easy sharing and receiving of files in the Public folder over Bluetooth.
使用“個人文件共享”應用程序,可以通過網絡輕松共享“公用”文件夾-它僅適用于“公用”文件夾,不適用于其他文件夾。 寫入文件或訪問共享時,您永遠不需要密碼。 您還可以通過藍牙輕松共享和接收“公共”文件夾中的文件。

Open the Network pane in the Nautilus file browser and you’ll see each Public folder shared on the network.
在Nautilus文件瀏覽器中打開“網絡”窗格,您將看到網絡上共享的每個公用文件夾。

翻譯自: https://www.howtogeek.com/116309/use-ubuntus-public-folder-to-easily-share-files-between-computers/