IP configure:
If you want to configure the IP , gateway , netmask and so on, you will modify the interface file.
The path is like that /etc/network/interface.
You will modify like this:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 10.19.1.234
netmask 255.255.0.0
gateway 10.19.1.1
Notes :
When you write the dns-nameserver ,the counts of the nameserver is more than 2, you must
Write like the picture, or the system can’t successfully read and if you use the command-ifconfig to check the network information. You only see the information of the lo. So you must be careful.
DNS configure:
If you want to configure the DNS. You will modify the resolve.conf.
The path is like that /etc/resolve.conf.
You will modify like this:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
DO NOT EDIT THIS FILE BY HAND – YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
Than you will make the network working, you will like that.
/etc/init.d/networking restart.
The above way is tempore, if you want to modify the DNS forever, you need to modify the file named “base”, the path of the file is :
/etc/resolvconf/resolv.conf.d/
Samba configure
[global]
server string = Samba Server
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
[SambaHome]
workgroup = root
netbios name = root
path = /home
browseable = yes
writeable = yes
[Sambaroot]
workgroup = www
netbios name = www
path = /
browseable = yes
writeable = yes
+++++++++++++++++++++++
[global]
security = user
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
dos filetime resolution = Yes
unix extensions = no
follow symlinks = yes
wide links = yes
[homes]
comment = Home Directories
writable = yes
browseable = no
create mask = 755
directory mask = 755
[works]
comment = work Directories
writable = yes
browseable = no
create mask = 755
directory mask = 755
+++++++++++++++++++++++++++++++
of cource , you need to add the samba account:
smbpasswd zhanghao