Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: Sharing files between ubuntu and windows7

  1. #21
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: Sharing files between ubuntu and windows7

    What does
    iptables -L -v look like?

    You see mine, I have no rules set

    Code:
    scott@scott-P5QC:~$ sudo iptables -L -v 
    [sudo] password for scott: 
    Chain INPUT (policy ACCEPT 3464K packets, 3761M bytes)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain OUTPUT (policy ACCEPT 2350K packets, 2209M bytes)
     pkts bytes target     prot opt in     out     source               destination         
    scott@scott-P5QC:~$
    some people have to adjust name resolution order
    Why, I do not know.
    http://oreilly.com/openbook/samba/book/ch07_03.html
    Code:
    The global name resolve order option specifies the order of services that Samba will use in attempting name resolution. The default order is to use the LMHOSTS file, followed by standard Unix name resolution methods (some combination of /etc/hosts, DNS, and NIS), then query a WINS server, and finally use broadcasting to determine the address of a NetBIOS name. You can override this option by specifying something like the following:
    
    
    [global]
        name resolve order = lmhosts wins hosts bcast
    Last edited by sdowney717; January 25th, 2013 at 03:21 PM.

  2. #22
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: Sharing files between ubuntu and windows7

    http://www.jonathanmoeller.com/screed/?p=3608

    You can run thru his examples and see if you can share a test folder.

  3. #23
    Join Date
    Dec 2009
    Beans
    6,771

    Re: Sharing files between ubuntu and windows7

    Edit /etc/samba/smb.conf and add a line right under the workgroup line:
    Code:
     netbios name = raafat-780
    If you want to change the name resolve order then use this - right under the "netbios name" line:
    Code:
    name resolve order = bcast host lmhosts wins
    Then restart samba:
    Code:
    sudo service smbd restart
    sudo service nmbd restart
    Notes:
    ** Samba will use the host name as the netbios name by default but yours is 4 characters too long so it's invisible to everyone on the lan. It has to be 15 characters or less.

    ** THe default name resolve order has bcast last so setting it to anything that also has it last won't do much good. bcast should appear first.

  4. #24
    Join Date
    Oct 2012
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Sharing files between ubuntu and windows7

    Quote Originally Posted by sdowney717 View Post
    http://www.jonathanmoeller.com/screed/?p=3608

    You can run thru his examples and see if you can share a test folder.
    Also no luck...

  5. #25
    Join Date
    Oct 2012
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Smile Re: Sharing files between ubuntu and windows7

    Quote Originally Posted by Morbius1 View Post
    Edit /etc/samba/smb.conf and add a line right under the workgroup line:
    Code:
     netbios name = raafat-780
    If you want to change the name resolve order
    That that that all what i need to become visible on my network .

    thank you man .

  6. #26
    Join Date
    Oct 2012
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Sharing files between ubuntu and windows7

    Thank you everyone i know that took a long time , thank you everyone again...

  7. #27
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Sharing files between ubuntu and windows7

    I think it is very easy to install an SSH server in Ubuntu and to connect to it from other linux computers with SSH or SFTP as well as from windows computers with WinSCP. If you are happy with password authentication (should be OK in a LAN behind a router with a firewall), you can probably use the default settings of the server. Public key authentication is more secure, but not quite as easy to set up.

    https://help.ubuntu.com/10.04/serverguide/openssh-server.html

    "WinSCP is an open source free SFTP client, SCP client, FTPS client and FTP client for Windows. Its main function is file transfer between a local and a remote computer."

    http://winscp.net/eng/docs/introduction

    So if you feel too frustrated to connect with samba from Windows to Ubuntu, I suggest you try WinSCP - openSSH-server.

    Edit: Congratulations
    It seems I was too late, while I was editing this post, you succeeded with Samba
    Last edited by sudodus; January 25th, 2013 at 07:39 PM. Reason: It seems I was too late

  8. #28
    Join Date
    Oct 2012
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Sharing files between ubuntu and windows7

    Quote Originally Posted by sudodus View Post
    I think it is very easy to install an SSH server in Ubuntu and to connect to it from other linux computers with SSH or SFTP as well as from windows computers with WinSCP. If you are happy with password authentication (should be OK in a LAN behind a router with a firewall), you can probably use the default settings of the server. Public key authentication is more secure, but not quite as easy to set up.

    https://help.ubuntu.com/10.04/serverguide/openssh-server.html

    "WinSCP is an open source free SFTP client, SCP client, FTPS client and FTP client for Windows. Its main function is file transfer between a local and a remote computer."

    http://winscp.net/eng/docs/introduction

    So if you feel too frustrated to connect with samba from Windows to Ubuntu, I suggest you try WinSCP - openSSH-server.

    Edit: Congratulations
    It seems I was too late, while I was editing this post, you succeeded with Samba
    Of course i will try it (whether about what i want or not )...thank you .

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •