我正在运行围绕 Ubuntu 10.04 构建的 XBMC。它没有预装 samba,我需要与其他几个盒子共享一些媒体。我按照此处找到的 Think Geek 说明进行操作。几天前我已经完成了所有设置,并认为我很清楚。我今晚重新启动,当它恢复时,Samba 没有启动。我通过尝试访问 samba 共享来确定这一点,它会返回与服务器的连接。我可以 ssh 进入它,所以我知道它已连接。
以我的无限智慧,我认为我只是搞砸了一些东西,只是卸载并重新安装。所以我做了:sudo apt-get purge samba
和sudo apt-get purge smbfs
。然后尝试再次按照上面的教程进行操作。
我跑步后得到的sudo apt-get install samba smbfs
是
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages: openbsd-inetd inet-superserver smbldap-tools ldb-tools ufw smbclient
The following NEW packages will be installed:
samba smbfs
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B/8,131kB of archives.
After this operation, 22.6MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package samba.
(Reading database ... 57098 files and directories currently installed.)
Unpacking samba (from .../samba_2%3a3.4.7~dfsg-1ubuntu3.2_i386.deb)...
Selecting previously deselected package smbfs.
Unpacking smbfs (from .../smbfs_2%3a3.4.7~dfsg-1ubuntu3.2_i386.deb) ...
Processing triggers for ureadahead ...
Setting up samba (2:3.4.7~dfsg-1ubuntu3.2) ...
Generating /etc/default/samba...
update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
smbd start/running, process 2963
**start: Job failed to start**
Setting up smbfs (2:3.4.7~dfsg-1ubuntu3.2) ...
粗体是我自己的重点。所以我不确定我在这里搞砸了什么,或者如何回到原来的位置。虽然我很确定我做得比现在更糟。
我找到了日志所在的位置,/var/logs,并发现这行似乎是罪魁祸首。
Jan 29 11:59:34 XBMCLive smbd[2806]: error opening config file
所以它似乎没有创建配置文件。有没有办法让 samba 尝试重新创建它们?