红联Linux门户
Linux帮助

ubuntu12.04LTS配置磁盘驱动器

发布时间:2015-09-21 10:48:43来源:linux网站作者:sun_star1chen

sudo apt-get install rcconf

sudo apt-get install ufw

ufw disable

使用windows  ping ubuntu主机地址(查看ubuntu主机地址 ifconfig  ; 注意:如果使用虚拟机请使用桥接模式的网络)


如果ping通了则继续下面的步骤

sudo apt-get install samba

sudo apt-get install smbfs

sudo apt-get install system-config-samba

sudo /etc/init.d/smbd restart

sudo system-config-samba


如果出现错误

(system-config-samba:8324): Gtk-WARNING **: Unable to locate theme engine in

 module_path: "pixmap",

(system-config-samba:8324): Gtk-WARNING **: Unable to locate theme engine in

 module_path: "pixmap",

(system-config-samba:8324): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(system-config-samba:8324): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
Traceback (most recent call last):
File "/usr/sbin/system-config-samba", line 44, in <module>

import mainWindow

File "/usr/share/system-config-samba/mainWindow.py", line 30, in <module>

import gtk.glade

ImportError: No module named glade


则执行:sudo apt-get install gtk2-engines-pixbuf


如果出现错误

Traceback (most recent call last):
File "/usr/sbin/system-config-samba", line 44, in <module>
import mainWindow
File "/usr/share/system-config-samba/mainWindow.py", line 30, in <module>
import gtk.glade
ImportError: No module named glade


则执行:sudo apt-get install python-glade2


快速配置Samba将Linux目录映射为Windows驱动器,用于跨平台编程:http://www.linuxdiyf.com/linux/5496.html