ubuntu下面安装smaba  各种错误,各种问题,最后还是没有安装成功。


不知道是为何,这次安装samba却是异常顺利,使用两种方式都安装成功了,

方法一

   打开ubuntu 软件中心,在里面搜索一下samba,然后界面安装,虽然最后没有出现成功的提示,

但是后来证明 samba    system-config-samba 这两个包都安装了。

   然后我又用 apt-get remove samba 这个命令卸载了这个包

   使用了方法二进行安装


方法二

  apt-get insatll samba

  apt-get install system-config-samba


安装完成以后,如果你想停止smaba服务

只需要

sudo /etc/init.d/smbd restart

sudo /etc/init.d/smbd stop

sudo /etc/init.d/smbd start


安装完成以后,只需要调用 system-config-samba 这个命令进行界面配置即可,当然下午测试的时候出现了崩溃的问题


pc访问的时候,出现没有权限写入文件,需要将你要共享的目录设置成 chmod 777 目录 即可


下一步要研究的是

1 为何下午调用该命令的时候会出现崩溃现象

I had that problem, with the same output. It's about the samba parser (python)

I have checked my smb.conf in /etc/samba and I found that I had a section duplicated (it was printers). I think system-config-samba crashes when there are two or more sections with the same name.

When I removed the section duplicated, I was able to start system-config-samba without any problem.

I know your post was written several months ago, but I found it when I was searching for solutions, so I tell you my experience if it could be useful. Your problem could be the same or not.


/etc/samba/smb.conf 这个文件最后面设置的目录有问题,删除了一下再启动就好了


2 system-config-samba 怎么创建一个快捷方式放在桌面,方便使用

 通过使用  find -name system-config-samba 查找 发现

/usr/sbin/system-config-samba 这个目录下面有该文件,应该是从这个文件来运行的。


lrwxrwxrwx 1 root root 51  2月  2  2012 system-config-samba -> ../share/system-config-samba/system-config-samba.py*

果然下面调用了以python的脚本