Fedora 18使用samba共享

来源:互联网 发布:grapher软件绘图教学 编辑:程序博客网 时间:2024/04/19 09:22

首先需要安装samba相关服务:yum install samba*


已加载插件:langpacks, presto, refresh-packagekit
updates/group_gz                                         | 368 kB     00:00     
包 2:samba-common-4.0.3-1.fc18.i686 已安装并且是最新版本
包 2:samba-libs-4.0.3-1.fc18.i686 已安装并且是最新版本
包 2:samba-client-4.0.3-1.fc18.i686 已安装并且是最新版本
解决依赖关系
--> 执行事务检查
---> 软件包 samba.i686.2.4.0.3-1.fc18 将被 安装
---> 软件包 samba-dc.i686.2.4.0.3-1.fc18 将被 安装
---> 软件包 samba-dc-libs.i686.2.4.0.3-1.fc18 将被 安装
---> 软件包 samba-devel.i686.2.4.0.3-1.fc18 将被 安装
--> 处理依赖关系 pkgconfig(tevent),它被软件包 2:samba-devel-4.0.3-1.fc18.i686 需要
--> 处理依赖关系 pkgconfig(talloc),它被软件包 2:samba-devel-4.0.3-1.fc18.i686 需要
--> 处理依赖关系 pkgconfig(ldb),它被软件包 2:samba-devel-4.0.3-1.fc18.i686 需要
---> 软件包 samba-pidl.i686.2.4.0.3-1.fc18 将被 安装
--> 处理依赖关系 perl(Parse::Yapp::Driver),它被软件包 2:samba-pidl-4.0.3-1.fc18.i686 需要
--> 处理依赖关系 perl(Parse::Yapp),它被软件包 2:samba-pidl-4.0.3-1.fc18.i686 需要
---> 软件包 samba-python.i686.2.4.0.3-1.fc18 将被 安装
--> 处理依赖关系 python-tevent,它被软件包 2:samba-python-4.0.3-1.fc18.i686 需要
--> 处理依赖关系 python-tdb,它被软件包 2:samba-python-4.0.3-1.fc18.i686 需要
--> 处理依赖关系 pyldb,它被软件包 2:samba-python-4.0.3-1.fc18.i686 需要
--> 处理依赖关系 libpyldb-util.so.1(PYLDB_UTIL_1.1.2),它被软件包 2:samba-python-4.0.3-1.fc18.i686 需要
--> 处理依赖关系 libpyldb-util.so.1,它被软件包 2:samba-python-4.0.3-1.fc18.i686 需要
---> 软件包 samba-swat.i686.2.4.0.3-1.fc18 将被 安装
--> 处理依赖关系 xinetd,它被软件包 2:samba-swat-4.0.3-1.fc18.i686 需要
---> 软件包 samba-test.i686.2.4.0.3-1.fc18 将被 安装
---> 软件包 samba-test-devel.i686.2.4.0.3-1.fc18 将被 安装
---> 软件包 samba-winbind.i686.2.4.0.3-1.fc18 将被 安装
---> 软件包 samba-winbind-clients.i686.2.4.0.3-1.fc18 将被 安装
--> 处理依赖关系 libiniparser.so.0,它被软件包 2:samba-winbind-clients-4.0.3-1.fc18.i686 需要
---> 软件包 samba-winbind-krb5-locator.i686.2.4.0.3-1.fc18 将被 安装
--> 执行事务检查
---> 软件包 iniparser.i686.0.3.1-1.fc18 将被 安装
---> 软件包 libldb-devel.i686.0.1.1.15-2.fc18 将被 安装
--> 处理依赖关系 libtdb-devel >= 1.2.11,它被软件包 libldb-devel-1.1.15-2.fc18.i686 需要
--> 处理依赖关系 pkgconfig(tdb),它被软件包 libldb-devel-1.1.15-2.fc18.i686 需要
---> 软件包 libtalloc-devel.i686.0.2.0.8-1.fc18 将被 安装
---> 软件包 libtevent-devel.i686.0.0.9.17-1.fc18 将被 安装
---> 软件包 perl-Parse-Yapp.noarch.0.1.05-49.fc18 将被 安装
---> 软件包 pyldb.i686.0.1.1.15-2.fc18 将被 安装
---> 软件包 python-tdb.i686.0.1.2.11-1.fc18 将被 安装
---> 软件包 python-tevent.i686.0.0.9.17-1.fc18 将被 安装
---> 软件包 xinetd.i686.2.2.3.15-4.fc18 将被 安装
--> 执行事务检查
---> 软件包 libtdb-devel.i686.0.1.2.11-1.fc18 将被 安装
--> 完成依赖关系计算

依赖关系解决

================================================================================
 Package                       架构      版本                  仓库        大小
================================================================================
正在安装:
 samba                         i686      2:4.0.3-1.fc18        updates    521 k
 samba-dc                      i686      2:4.0.3-1.fc18        updates     55 k
 samba-dc-libs                 i686      2:4.0.3-1.fc18        updates     55 k
 samba-devel                   i686      2:4.0.3-1.fc18        updates    278 k
 samba-pidl                    i686      2:4.0.3-1.fc18        updates    149 k
 samba-python                  i686      2:4.0.3-1.fc18        updates    1.8 M
 samba-swat                    i686      2:4.0.3-1.fc18        updates    132 k
 samba-test                    i686      2:4.0.3-1.fc18        updates    1.4 M
 samba-test-devel              i686      2:4.0.3-1.fc18        updates     58 k
 samba-winbind                 i686      2:4.0.3-1.fc18        updates    445 k
 samba-winbind-clients         i686      2:4.0.3-1.fc18        updates    139 k
 samba-winbind-krb5-locator    i686      2:4.0.3-1.fc18        updates     60 k
为依赖而安装:
 iniparser                     i686      3.1-1.fc18            fedora      14 k
 libldb-devel                  i686      1.1.15-2.fc18         updates     69 k
 libtalloc-devel               i686      2.0.8-1.fc18          updates     50 k
 libtdb-devel                  i686      1.2.11-1.fc18         updates     15 k
 libtevent-devel               i686      0.9.17-1.fc18         fedora      33 k
 perl-Parse-Yapp               noarch    1.05-49.fc18          fedora      47 k
 pyldb                         i686      1.1.15-2.fc18         updates     34 k
 python-tdb                    i686      1.2.11-1.fc18         updates     15 k
 python-tevent                 i686      0.9.17-1.fc18         fedora      14 k
 xinetd                        i686      2:2.3.15-4.fc18       fedora     129 k

事务概要
================================================================================
安装  12 软件包 (+10 Dependent packages)

总下载量:5.4 M
安装大小:21 M
确定吗?[y/N]:y
下载软件包:
(1/22): libtalloc-devel-2.0.8-1.fc18.i686.rpm              |  50 kB   00:01     
(2/22): libtevent-devel-0.9.17-1.fc18.i686.rpm             |  33 kB   00:01     
(3/22): iniparser-3.1-1.fc18.i686.rpm                      |  14 kB   00:02     
(4/22): pyldb-1.1.15-2.fc18.i686.rpm                       |  34 kB   00:00     
(5/22): libtdb-devel-1.2.11-1.fc18.i686.rpm                |  15 kB   00:04     
(6/22): python-tdb-1.2.11-1.fc18.i686.rpm                  |  15 kB   00:03     
(7/22): perl-Parse-Yapp-1.05-49.fc18.noarch.rpm            |  47 kB   00:04     
(8/22): samba-4.0.3-1.fc18.i686.rpm                        | 521 kB   00:03     
(9/22): samba-dc-4.0.3-1.fc18.i686.rpm                     |  55 kB   00:05     
(10/22): samba-devel-4.0.3-1.fc18.i686.rpm                 | 278 kB   00:02     
(11/22): libldb-devel-1.1.15-2.fc18.i686.rpm               |  69 kB   00:12     
(12/22): samba-dc-libs-4.0.3-1.fc18.i686.rpm               |  55 kB   00:10     
(13/22): samba-pidl-4.0.3-1.fc18.i686.rpm                  | 149 kB   00:07     
(14/22): samba-test-devel-4.0.3-1.fc18.i686.rpm            |  58 kB   00:05     
(15/22): samba-python-4.0.3-1.fc18.i686.rpm                | 1.8 MB   00:13     
(16/22): python-tevent-0.9.17-1.fc18.i686.rpm              |  14 kB   00:25     
(17/22): samba-winbind-clients-4.0.3-1.fc18.i686.rpm       | 139 kB   00:03     
samba-winbind-krb5-locator-4.0 FAILED                                           
http://virror.hanoilug.org/fedora/updates/18/i386/samba-winbind-krb5-locator-4.0.3-1.fc18.i686.rpm: [Errno 14] curl#7 - "Couldn't connect"
尝试其他镜像。
(18/22): samba-winbind-4.0.3-1.fc18.i686.rpm               | 445 kB   00:20     
(19/22): samba-winbind-krb5-locator-4.0.3-1.fc18.i686.rpm  |  60 kB   00:02     
(20/22): xinetd-2.3.15-4.fc18.i686.rpm                     | 129 kB   00:17     
(21/22): samba-swat-4.0.3-1.fc18.i686.rpm                  | 132 kB   00:36     
samba-test-4.0.3-1.fc18.i686.r FAILED                                           
http://free.nchc.org.tw/fedora/linux/updates/18/i386/samba-test-4.0.3-1.fc18.i686.rpm: [Errno 12] Timeout on http://free.nchc.org.tw/fedora/linux/updates/18/i386/samba-test-4.0.3-1.fc18.i686.rpm: (28, '')
尝试其他镜像。
(22/22): samba-test-4.0.3-1.fc18.i686.rpm                  | 1.4 MB   04:53     
--------------------------------------------------------------------------------
总计                                             13 kB/s | 5.4 MB     06:56     
运行事务检查
执行事务测试
事务测试成功
执行事务
  正在安装    : libtalloc-devel-2.0.8-1.fc18.i686                          1/22
  正在安装    : 2:samba-winbind-4.0.3-1.fc18.i686                          2/22
  正在安装    : 2:samba-4.0.3-1.fc18.i686                                  3/22
  正在安装    : libtevent-devel-0.9.17-1.fc18.i686                         4/22
  正在安装    : 2:samba-test-4.0.3-1.fc18.i686                             5/22
  正在安装    : libtdb-devel-1.2.11-1.fc18.i686                            6/22
  正在安装    : libldb-devel-1.1.15-2.fc18.i686                            7/22
  正在安装    : 2:samba-dc-libs-4.0.3-1.fc18.i686                          8/22
  正在安装    : perl-Parse-Yapp-1.05-49.fc18.noarch                        9/22
  正在安装    : python-tdb-1.2.11-1.fc18.i686                             10/22
  正在安装    : pyldb-1.1.15-2.fc18.i686                                  11/22
  正在安装    : python-tevent-0.9.17-1.fc18.i686                          12/22
  正在安装    : 2:samba-python-4.0.3-1.fc18.i686                          13/22
  正在安装    : iniparser-3.1-1.fc18.i686                                 14/22
  正在安装    : 2:xinetd-2.3.15-4.fc18.i686                               15/22
  正在安装    : 2:samba-swat-4.0.3-1.fc18.i686                            16/22
  正在安装    : 2:samba-winbind-clients-4.0.3-1.fc18.i686                 17/22
  正在安装    : 2:samba-dc-4.0.3-1.fc18.i686                              18/22
  正在安装    : 2:samba-pidl-4.0.3-1.fc18.i686                            19/22
  正在安装    : 2:samba-devel-4.0.3-1.fc18.i686                           20/22
  正在安装    : 2:samba-test-devel-4.0.3-1.fc18.i686                      21/22
  正在安装    : 2:samba-winbind-krb5-locator-4.0.3-1.fc18.i686            22/22
  Verifying   : libldb-devel-1.1.15-2.fc18.i686                            1/22
  Verifying   : perl-Parse-Yapp-1.05-49.fc18.noarch                        2/22
  Verifying   : pyldb-1.1.15-2.fc18.i686                                   3/22
  Verifying   : 2:samba-winbind-krb5-locator-4.0.3-1.fc18.i686             4/22
  Verifying   : 2:xinetd-2.3.15-4.fc18.i686                                5/22
  Verifying   : 2:samba-dc-libs-4.0.3-1.fc18.i686                          6/22
  Verifying   : 2:samba-4.0.3-1.fc18.i686                                  7/22
  Verifying   : libtdb-devel-1.2.11-1.fc18.i686                            8/22
  Verifying   : 2:samba-test-devel-4.0.3-1.fc18.i686                       9/22
  Verifying   : 2:samba-winbind-4.0.3-1.fc18.i686                         10/22
  Verifying   : 2:samba-dc-4.0.3-1.fc18.i686                              11/22
  Verifying   : 2:samba-swat-4.0.3-1.fc18.i686                            12/22
  Verifying   : 2:samba-test-4.0.3-1.fc18.i686                            13/22
  Verifying   : iniparser-3.1-1.fc18.i686                                 14/22
  Verifying   : 2:samba-python-4.0.3-1.fc18.i686                          15/22
  Verifying   : 2:samba-winbind-clients-4.0.3-1.fc18.i686                 16/22
  Verifying   : libtevent-devel-0.9.17-1.fc18.i686                        17/22
  Verifying   : 2:samba-devel-4.0.3-1.fc18.i686                           18/22
  Verifying   : python-tdb-1.2.11-1.fc18.i686                             19/22
  Verifying   : libtalloc-devel-2.0.8-1.fc18.i686                         20/22
  Verifying   : python-tevent-0.9.17-1.fc18.i686                          21/22
  Verifying   : 2:samba-pidl-4.0.3-1.fc18.i686                            22/22

已安装:
  samba.i686 2:4.0.3-1.fc18                                                     
  samba-dc.i686 2:4.0.3-1.fc18                                                  
  samba-dc-libs.i686 2:4.0.3-1.fc18                                             
  samba-devel.i686 2:4.0.3-1.fc18                                               
  samba-pidl.i686 2:4.0.3-1.fc18                                                
  samba-python.i686 2:4.0.3-1.fc18                                              
  samba-swat.i686 2:4.0.3-1.fc18                                                
  samba-test.i686 2:4.0.3-1.fc18                                                
  samba-test-devel.i686 2:4.0.3-1.fc18                                          
  samba-winbind.i686 2:4.0.3-1.fc18                                             
  samba-winbind-clients.i686 2:4.0.3-1.fc18                                     
  samba-winbind-krb5-locator.i686 2:4.0.3-1.fc18                                

作为依赖被安装:
  iniparser.i686 0:3.1-1.fc18            libldb-devel.i686 0:1.1.15-2.fc18      
  libtalloc-devel.i686 0:2.0.8-1.fc18    libtdb-devel.i686 0:1.2.11-1.fc18      
  libtevent-devel.i686 0:0.9.17-1.fc18   perl-Parse-Yapp.noarch 0:1.05-49.fc18  
  pyldb.i686 0:1.1.15-2.fc18             python-tdb.i686 0:1.2.11-1.fc18        
  python-tevent.i686 0:0.9.17-1.fc18     xinetd.i686 2:2.3.15-4.fc18            

完毕!

一下安装了好多阿。

下一步启动samba服务:

[root@bogon init.d]# service smb restart

Redirecting to /bin/systemctl restart  smb.service

然后再安装一个GUI工具:

[root@bogon init.d]# yum -y install system-config-samba
已加载插件:langpacks, presto, refresh-packagekit
解决依赖关系
--> 执行事务检查
---> 软件包 system-config-samba.noarch.0.1.2.100-1.fc18 将被 安装
--> 完成依赖关系计算

依赖关系解决

================================================================================
 Package                  架构        版本                   仓库          大小
================================================================================
正在安装:
 system-config-samba      noarch      1.2.100-1.fc18         updates      282 k

事务概要
================================================================================
安装  1 软件包

总下载量:282 k
安装大小:1.1 M
下载软件包:
system-config-samba-1.2.100-1.fc18.noarch.rpm              | 282 kB   00:08     
运行事务检查
执行事务测试
事务测试成功
执行事务
  正在安装    : system-config-samba-1.2.100-1.fc18.noarch                   1/1
  Verifying   : system-config-samba-1.2.100-1.fc18.noarch                   1/1

已安装:
  system-config-samba.noarch 0:1.2.100-1.fc18                                   

完毕!


最后在防火墙中把samba的两个选项打开,在应用程序列表中可以找到“samba”,启动之后在界面中添加用户和共享目录即可。


原创粉丝点击