Ik doe het altijd zo:
SAMBA SHORT TUTORIAL: CONNECT WINDOWS AND LINUX VIA ETHERNET
PART A. Configure machines
=======================
Summary: jot down hostnames and ip addresses and edit the 'hosts' files.
1. Check IP addresses. Use the Router: 'DHCP Client List'. OR: Windows: ipconfig. Linux: ifconfig (as root).
2. Check computer (host) names. Windows: right click "My Network Places", choose 'Properties' and click the on tab 'Identification > Computer name'. Linux: it's on the prompt after the @.
3. Windows. Edit the file c:/windows/hosts. Example:
127.0.0.1 localhost
192.168.1.3 linux #Hostname of your Linux machine.
192.168.1.26 linux_26_host_name #Place your remark here.
4. Linux. Edit the file /etc/hosts. Example:
127.0.0.1 localhost
192.168.1.2 windows_pc windowscompu
192.168.1.23 windows_computer_name nick_name
Note: the IP addresses are given out by the dhcp server from the router.
PART B. Connect from Linux to Windows
=================================
1. Note down the share name (from a directory) you want to connect to from the Windows machine. Right-mouse click on that dir in the Explorer and check: "Properties > Sharing > Share name".
2. Install as much samba apps as you can find on your distro's DVD.
3. Use 'smbmount' to mount a Windows share (you don't need more apps). Examples:
# smbmount "//Windows_PC/windows HDD" /mnt/windows/
# smbmount "//windows_computer_name/share_name" linux_mount_point
3. Unmout before shutting down the Windows machine, else smb crash. Example:
# smbumount /mnt/windows
4. Administer the Windows machine with vncviewer (install vncserver on the remote Windows machine first).
PART C. Connect from Windows to Linux
=================================
1. Add your Windows user to Linux and note down the Workgroup of your Windows machine.
2. Find smb.conf. Its in /etc/ or /etc/samba/.
3. One may use the minimalistic smb.conf file:
encrypt password = yes
smb passwd file = /etc/samba/smbpasswd
[test_share]
comment = Temporary file space
path = /smbtest
read only = no
public = yes
3. [see: 2] Create a password file for Samba based on your own one:
# cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
4. # chmod 600 /etc/samba/smbpasswd
5. # smbpasswd username (replace username with each user's Windows username).
6. The Workgroup the Linux machine will belong to in this way is a default one, simply called "workgroup". Else add to smb.conf:
workgroup = MSHOME
server string = Linux_Box
7. On the Windows machine use the Explorer go to Entire Network etc. The Linux machine should pop up under its workgroup with it's host name and with the description "Linux_Box". It will have a share called "test_share"
PART D. References
=================
[1] Huijts, J., "Linux gebruikers handleiding", LaTeX document, http://huijts.student.utwente.nl/~jarkko/linux/lgh , ver. 1.5 (2005).
[2] http://www.redhat.com/docs/manuals/linu … uring.html
Als je voor een verdieping niet de diepte in moet, maar de hoogte, waarom heet het dan ....