Host: Gentoo11.2withlinuxkernel3.0.61. install the Samba server and run the [cpp] www.2cto. comprint directly with the default USE mark? Emergesamba2, configure/etc/samba/smb. conf, first copy/etc/samba/smb. conf. default ran... host: Gentoo 11.2 with linux kernel 3.0.6
1. install the Samba Server
USE the default USE flag to directly execute the command
[Cpp] www.2cto.com print?
Emerge samba
2. configure/etc/samba/smb. conf.
First Copy/etc/samba/smb. conf. default and modify it as needed.
The modified smb. conf file is as follows:
[Cpp] www.2cto.com
#====================================== Global Settings ==================== ======================================
[Global]
Guest account = nobody
Netbios name = yan-laptop
Workgroup = WORKGROUP
Server string = Samba Server
Security = share
Load printers = no
Log file =/var/log/samba/log. % m
Max log size = 50
Wins support = yes
Dns proxy = no
Create mode = 0777
Force create mode = 0777
Directory mode = 0777
Force directories mode = 0777
[Share]
Path =/home/samba
Browseable = yes
Guest OK = yes
Writeable = yes
3. create a folder
[Cpp] www.2cto.com
Sudo mkdir/home/samba
Chmod 777/home/samba
4. restart the samba service.
[Cpp] www.2cto.com
Sudo/etc/init. d/samba restart
5. shared folders can be read and written in windows.
In Windows 7
From http://blog.csdn.net/yming0221/article/details/7207846