1

Onderwerp: linux ziet windows pc niet. Hoe samba installen

overzicht
een xp pc ,vista laptop, opensuse 11.2.

Heb op linux een share gemaakt. Deze is zonder probleemen te benaderen via de laptop.
Maar via de linux pc naar laptop of xp pc lukt niet.
ik probeer via dolphin netwerkomgeving.
Soms vind hij de laptop en de xp pc maar als ik dan op 1 van beide klik vind hij de shares van die pc niet.

Hoe moet ik de firewall en samba instellen om het te laten werken.
Al goed gezocht op internet zonder resultaat.

2

Re: linux ziet windows pc niet. Hoe samba installen

Geen idee hoe dat bij suusje gaat.   zal uiteindelijk wel  gewoon smbmount doen
maar van al die grafische meuk weet ik verderr ook niet veel\

Pascal's Blobfree Homepage
Een dag geen NedLinux is een dag niet geleefd

3

Re: linux ziet windows pc niet. Hoe samba installen

135,139,445/tcp  ALLOW IN from Anywhere
137,138/udp  ALLOW IN Anywhere

Laptop: (2x) Packard Bell Easynote met Linux-Mint 9 (x64)
Home-server: Debian Lenny

Re: linux ziet windows pc niet. Hoe samba installen

Werkt het goed als je tijdelijk je firewall(s) uit zet?

5

Re: linux ziet windows pc niet. Hoe samba installen

In YaST bij firewall Samba aanzetten.

Niet klein meer.

6

Re: linux ziet windows pc niet. Hoe samba installen

ja en nee
werk ene moment wel andere dan weer niet.
Van op visata laptop geen probleem kan altijd binnen ook na uit schakelen van bijde pc
Van linux naar windows das een regel rechte ramp

Re: linux ziet windows pc niet. Hoe samba installen

Natuurlijk kun je het probleem proberen op te lossen (doorzetten heet dat) maar je kunt ook met winscp je spul van de linuxbak af halen vanaf je windows laptop.

8

Re: linux ziet windows pc niet. Hoe samba installen

wil windows zien in linux

9

Re: linux ziet windows pc niet. Hoe samba installen

Als het om een vaste share gaat: deze even definiëren in het bestand /etc/fstab, dan kun je er altijd bij wink

Help mee om KDE 4.6 in het Nederlands of Fries te vertalen!!

10

Re: linux ziet windows pc niet. Hoe samba installen

krijg steeds melding dat server niet reageerd binnen de tijd
hoe los ik da op

11

Re: linux ziet windows pc niet. Hoe samba installen

als ik het ip adres intype in dolphine kom ik direkt op de vista pc
maar waarom lukt dit niet als ik via dolphin->netwerk->naam netwerk->laptop (vista) dan vind hij geen shares

12

Re: linux ziet windows pc niet. Hoe samba installen

als ik het ip adres intype in dolphine kom ik direkt op de vista pc
maar waarom lukt dit niet als ik via dolphin->netwerk->naam netwerk->laptop (vista) dan vind hij geen shares

Re: linux ziet windows pc niet. Hoe samba installen

Zet die naam in /etc/resolv.conf of regel het op een andere manier met dns. Kun je die naam wel pingen of kan ook dat alleen met een ipadres?

Of je maakt een scriptje (al dan niet zelfstartend bij boot) met het ipadres. Ik heb niks tegen ipadressen...

14

Re: linux ziet windows pc niet. Hoe samba installen

Staat je Windows pc in je host tabel ?

Je zou ook lmhosts kunnen gebruiken, zie man lmhosts.

Waarschijnlijk is Samba de masterbrowser in je netwerk, meestal duurt het even voordat hij andere computers ziet, maar dat lost /etc/hosts of lmhosts meestal op.

Re: linux ziet windows pc niet. Hoe samba installen

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 ....

16

Re: linux ziet windows pc niet. Hoe samba installen

das nog al veel werk als je een groot aantal pc's hebt

Re: linux ziet windows pc niet. Hoe samba installen

Niet als je een slim stappenplannetje maakt.

18

Re: linux ziet windows pc niet. Hoe samba installen

Ik snap het probleem niet helemaal.

Je kunt ook een Wins server aanzetten in Samba.

19

Re: linux ziet windows pc niet. Hoe samba installen

glda19 schreef:

krijg steeds melding dat server niet reageerd binnen de tijd
hoe los ik da op

zorg ervoor dat je windows-pc wel op tijd reageert, of rek de tijd die dolphin wacht op (dat kun je ergens instellen in de systeeminstellingen van kde)

Help mee om KDE 4.6 in het Nederlands of Fries te vertalen!!

Re: linux ziet windows pc niet. Hoe samba installen

Vergeten: mksmbpasswd.sh:

#!/bin/sh
awk 'BEGIN {FS=":"
    printf("#\n# SMB password file.\n#\n")
    }
{ printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[UD         ]:LCT-00000000:%s\n", $1, $3, $5) }
'
Als je voor een verdieping niet de diepte in moet, maar de hoogte, waarom heet het dan ....