LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   You people can't even type... (http://www.linuxquestions.org/questions/linux-software-2/you-people-cant-even-type-190928/)

opioid 06-07-2004 10:29 PM

You people can't even type...
 
...Samba. :]

I know this girl who's afraid of the Internet. She has two identical i386 laptops with no Internet connection. One has RH9, the other Windows 2000. (I can plug them into my ethernet to do 'research,' but that invariably causes her to run screaming from the room). Sorry, I know it's late. Hope I'm not making anyone anxious before bedtime.

But it is literally impossible for me to get Samba working! What is the procedure, step-by-step, by which one connects these two machines with one ethernet card apiece with a crossover cable. That's right, no router. Someone has to tell me, because I could be getting some ass if she can transfer her Britney Spears from win2k to redhat, and vice versa.

Peace.

-O

opioid 06-08-2004 12:51 AM

please help!
 
To any man who is reading this, it's your duty and obligation to help out your fellow haxkr

FLOODS 06-08-2004 01:07 AM

install samba on the linux machine. edit /etc/samba/smb.conf to the configuration of the network. Mine looks like this..
Code:

# Global parameters
[global]
        server string = floods[box]
        security = SHARE
        log file = /var/log/samba.%m
        max log size = 50
        dns proxy = No
        ldap ssl = no
        hosts allow = 192.168.0.

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

[public]
        path = /home/floods/
        read only = No
        guest only = Yes
        guest ok = Yes
        printable = Yes

[floods' home]
        comment = floods' home directory
        path = /home/floods
        valid users = floods
        admin users = floods
        read list = floods
        write list = floods
        read only = No
        guest ok = Yes

That shows that linux has two shares, and they're both the same share. I did that because I couldn't get it to work for some reason, but //floodsbox/public is the share that works I think.

Some of it looks redundant becuase.. well.. it didn't want to work for some reason. :) Samba makes a great server, and an ok client.

Anyways..

To copy files from windows to linux.
share the directory, then open a terminal in linux. type up mount -t smbfs -o username=username,password=password //servername/sharename /mnt/servername/sharename.

the /mnt/servername/sharename will need to be created before hand. If you want the shared directories to mount on boot (which I've done,) you'll need to edit your fstab some...
my samba mounts from fstab that auto-mount..
Code:

//JOEY/Music          /mnt/JOEY/Music        smbfs                rw,credentials=/home/floods/Samba 0  0
//JOEY/Downloads  /mnt/JOEY/Downloads        smbfs                rw,credentials=/home/floods/Samba 0  0
//JOEY/Drivers          /mnt/JOEY/Drivers        smbfs                rw,credentials=/home/floods/Samba 0  0
//JOEY/Kazaa          /mnt/JOEY/Kazaa        smbfs                rw,credentials=/home/floods/Samba 0  0
//JOEY/Movies          /mnt/JOEY/Movies        smbfs                rw,credentials=/home/floods/Samba 0  0
//JOEY/Soulseek          /mnt/JOEY/Soulseek        smbfs                rw,credentials=/home/floods/Samba 0  0
//JOEY/Warez          /mnt/JOEY/Warez        smbfs                rw,credentials=/home/floods/Samba 0  0
//JOEY/floodspics /mnt/JOEY/floodspics        smbfs                rw,credentials=/home/floods/Samba 0  0
//JOEY/slack          /mnt/JOEY/slack        smbfs                rw,credentials=/home/floods/Samba 0  0
//JOEY/xvids          /mnt/JOEY/xvids        smbfs                rw,credentials=/home/floods/Samba 0  0

the rw shows the directories are read-write, though it doesn't do a lot of good if the directories aren't allowed to be written in by the other computer. the credentials=/home/floods/Samba is directing to a file named Samba, that has two lines in it, that looks like this.

Code:

username=USERNAME
password=PASSWORD

This username and password needs to be the same as the windows computers username and password.

That's about all I can remember. I may be missing something or another, but its late. You can probably take it from there.. :)

good luck

trickykid 06-08-2004 06:35 AM

Re: please help!
 
Quote:

Originally posted by opioid
To any man who is reading this, it's your duty and obligation to help out your fellow haxkr
And to any haxkr, whatever that may be, it is your obligation when using a site to obey its rules that you agreed to when registering. Please do not bump your own posts until after at minimum 24 hours has surpassed. And also try to use better and more helpful thread titles that even describe your question. Thanks.

http://www.linuxquestions.org/rules.php


All times are GMT -5. The time now is 08:18 PM.