LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-02-2009, 04:39 AM   #1
linux_sonic
Member
 
Registered: Nov 2009
Location: greece
Distribution: Gentoo, Backtrack
Posts: 50

Rep: Reputation: 1
Question can u tell me how how to use samba


Hi again
Can someone tell me how to use samba to connect
a netbook(acer aspire one with backtrack 3 os) with
a pc(windows xp os) via network cable?
Thanks!!!!

i want to connet my netbook to my pc directly via lan canble to transfer files!!!
i dont have access to switch..

Last edited by linux_sonic; 12-02-2009 at 06:52 AM.
 
Old 12-02-2009, 04:46 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

What do you mean by 'via network cable'? Do you want to connect your Acer to your PC directly using a cable? Or do you connect both computers using a cable to a switch?

Kind regards,

Eric
 
Old 12-02-2009, 05:58 AM   #3
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by linux_sonic View Post
Hi again
Can someone tell me how to use samba to connect
a netbook(acer aspire one with backtrack 3 os) with
a pc(windows xp os) via network cable?
Thanks!!!!

i want to connet my netbook to my pc directly via lan canble to transfer files!!!
You can transfer files from linux to windows setting up samba.
If you want to transfer files from windows to linux ,probably you don't need to set-up samba for this.
 
Old 12-02-2009, 06:02 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by linux_sonic View Post
i want to connet my netbook to my pc directly via lan canble to transfer files!!!
If you want to connect both directly using a LAN cable you'll need a crossed one and not a straight one. Furthermore you'll have to configure both your NICs to use static IP and no gateway.

Don't you have access to a switch?

Kind regards,

Eric
 
Old 12-02-2009, 12:11 PM   #5
drstupid
LQ Newbie
 
Registered: Dec 2009
Posts: 21

Rep: Reputation: 15
Hey you will need the following:

1. a cross over cable
2. setup networking between both machines, in windows goto network connection properties and then set the ip to 192.168.3.1 , netmask to 255.255.255.0. In linux edit/create the file for assigning new ip vi /etc/sysconfig/network-scripts/ifcfg-eth0:1 (this may differ based on your distro) and add the following:

IPADDR=192.168.3.2
NETMASK=255.255.255.0


do :x to save the file and then do ifup eth0:1

try to ping one machine from another, you might need to stop iptables on linux and windows firewall on windows.

3. then install samba on linux, yum install samba, yum install samba-client.

4. edit the samba conf file: vi /etc/samba/smb.conf . (just scroll down to the bottom and its self explanatory)

5. add a user to samba --> smbpasswd -a username

6. restart samba

7. goto windows start ---> run --> //ip of linux machine

8. ether samba user and password

and copy your files.

===============================================
another solution if you are copying your files from windows to linux.

install winscp on your windows machine (its free) and then just use your normal ssh user and password to copy files accross.

bye

Last edited by jschiwal; 12-02-2009 at 12:13 PM. Reason: Please watch your languate drstupid.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Newbie: Samba under Ubuntu - default config locations don't match samba.org mdutch Ubuntu 0 08-28-2009 02:38 PM
Trouble mounting Samba share from Windows Mobile 6.1 - samba weirdness cleidh_mor Linux - Server 0 09-21-2008 02:43 PM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration