Samba 是一款功能強大的共享工具,可以實現與windows的共享,就是我們經常在windows計算機之間使用的網上鄰居功能 ,可以共享文件和打印機等。今天要介紹的是在 Ubuntu 13.04 Raring Ringtail , 12.10, 12.04 中安裝和設置,當然也可以在以前的版本上使用。
?
在 Ubuntu 上安裝Samba:
?
1 安裝Samba文件
我們需要做的第一件事是安裝Samba,你可以在 Ubuntu 軟件中心搜索軟件,然后安裝。如果你想通過終端安裝,可復制這個命令:
sudo apt-get install samba samba-common
?
2 為配置工具安裝一些依賴包(不要忘記安裝python-glade2)
sudo apt-get install python-glade2
?
3 安裝 Samba 服務器配置工具 :
安裝 samba 系統配置圖形界面工具
sudo apt-get install system-config-samba
?
4 添加一個 Linux/Unix user:
adduser pirat9
?
5 為用戶 pirat9 設置密碼:
passwd pirat9
?
6 現在打開 samba 配置工具。
7 添加共享文件夾并設置權限訪問。
設置權限訪問
8 連接到共享前,你必須創建samba用戶:
sudo smbpasswd -a pirat9 New SMB password retype New SMB Password
?
配置完成。
提示:你可以選擇你要共享的文件夾,目錄上右鍵打開菜單選擇“share options(共享配置)”
并且激活共享:
9 現在來測試一下從另外一臺Linux計算機看看samba共享是否已經工作,我的計算機時LinuxMint12 與 Ubuntu 12.04 實現共享,蓮臺計算機都安裝了samba,從菜單中打開連接到服務器并輸入你Ubuntu計算機的詳細信息:
12 從windows 連接共享 (XP/Vista/7)
?
本文鏈接地址: 怎樣在 Ubuntu 12.04 中安裝和設置 Samba 實現網上鄰居共享
?
?
Configuring Samba
To get Samba to work the way we want it to work, we have to make some changes to its configuration file.
In the terminal,
gksu gedit /etc/samba/smb.conf?
This will open the config file in Gedit.
Scroll down the page until you see the line:
workgroup = WORKGROUP?
This is the identifier of your PC. You can keep it as the default, but it is best to change it to something more meaningful, like “HOME-DESKTOP”.
?
Next, scroll down further till you reach the “Authentication” section. You should see the line:
# security = user?
Remove the “#” at the front of the line.
?
來源: http://www.maketecheasier.com/install-and-configure-samba-in-ubuntu-for-file-sharing/2012/06/12
怎樣在 Ubuntu 13.04 Raring Ringtail , 12.10, 12.04 中安裝和設置 Samba 實現網上鄰居共享
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
