一、配置静态IP
修改/etc/network/interfaces配置文件
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet dhcp
<span style="color:#ff0000;">iface eth0 inet static
address 192.168.1.100
gateway 192.168.1.1
netmask 255.255.255.0</span>
# sudo apt-get install samba
# sudo vi /etc/samba/smb.conf
[luotong]
path=/home/luotong
available=yes
browseable=yes
public=yes
writable=yes
valid users=luotong