LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2005, 11:03 AM   #1
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Rep: Reputation: 15
Network and file share from Sarge to XP


Hi all,

I am a and I want to be able to get file sharing across my network. I dont suppose you know anything about that do you?

I have Windows XP Networked to my Debian (sarge) and I want to be able to access files from Sarge on my Windows PC.

Please Let me know

Thanks again!
 
Old 09-02-2005, 03:50 PM   #2
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
samba will help you do that- windows linux sharing. Search for documentation. You will need to install and configure a samba server and a samba client (that called smbclient)
 
Old 09-02-2005, 07:08 PM   #3
ctkroeker
Senior Member
 
Registered: May 2005
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
If you are using KDE, it's under control panel/internet settings.
 
Old 09-03-2005, 07:57 AM   #4
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Original Poster
Rep: Reputation: 15
Hi,

I have got Samba installed but I dont seem to be able to find it anywhere.

I dont have a clue how to use it either.

What do I do now?

Thanks

James
 
Old 09-03-2005, 05:13 PM   #5
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Original Poster
Rep: Reputation: 15
Samba Help

Hi,

I am trying to create a LAMP environment on my Linux (Sarge) and network it to my Windows PC and I am having problems networking.

I want to be able to share files from sarge onto my windows pc and I dont know how.

I am a very new user to Linux and I hope someone can help.

I have the two computers networked and am getting a internet connection on my Linux from windows but I cannot share files.

I was told this is for a program called samba. I have installed it but cannot find it or configure it.

Can anyone help me?

Many thanks

James
 
Old 09-04-2005, 09:48 AM   #6
FrankP
Member
 
Registered: Aug 2003
Location: Britain
Distribution: AntiX, Debian, Gentoo
Posts: 65

Rep: Reputation: 18
Re: Samba Help

Hi James,

Quote:
Originally posted by jammyjames
I was told this is for a program called samba. I have installed it but cannot find it or configure it.
[/B]
Samba probably is what you need. It provides an SMB server, which means one that uses the networking protocols Windows PCs expect to work with. Essentially it means you can control the network with your Linux box.

Samba uses a client-server model, so check you have installed the samba debian package and not just the smbclient package.

To be really sure you could check that the samba daemon is running, with a command like 'ps -ef | grep smbd'

To configure samba you will need to edit the file /etc/samba/smb.conf

Check this documentation too:

Unofficial Samba How-To
http://hr.uoregon.edu/davidrl/samba.html

Official Samba How-To
http://www.samba.org/samba/docs/man/...TO-Collection/

It is worth reading the documents especially the unofficial how-to, which contains the essential stuff for simpler installations. Get a grasp of the concepts. Then I recommend writing your own smb.conf with the minimum number of options for what you need.

Hope that helps.
 
Old 09-04-2005, 11:51 AM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

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

I have merged you threads.


Samba is a daemon. You run it (as root) using
/etc/init.d/samba start
In fact, it's probably already running (two programs: smbd and nmbd). Now you need to configure it. To do this, edit /etc/samba/smb.conf

Then, with as simple config as yu can write, try to check if the machine is visible in your workgroup. Then you can add stares etc.
 
Old 09-04-2005, 03:08 PM   #8
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Original Poster
Rep: Reputation: 15
No luck,

I am really struggling. I am a very new user to linux and I hope someone could help explain everything step by step easier?

Thanks

 
Old 09-04-2005, 05:06 PM   #9
nédée
LQ Newbie
 
Registered: Aug 2005
Location: Belgium
Distribution: Debian (sarge)
Posts: 13

Rep: Reputation: 0
well, I'm as well a beginner ... i installed debian for the first time this month with the same idea as you.

The thing i did first was making a bridge, so my windows pc has got internet through my linux computer. In that way i know that they find eachother.

After that is installed proftpd, just for transfering files from win - linux. I use it for back-up

How to do this in debian
Code:
su
apt-get install proftpd
read a lot about apt-get ....

also check the section
LinuxQuestions.org > LinuxAnswers > Networking
a lot of usefull stuff.

And about samba....read read read
If you have a question... just say what you already tried and where you think the problem is. I don't know a thing about samba...but I'm learning it

Last edited by nédée; 09-04-2005 at 05:07 PM.
 
Old 09-05-2005, 04:22 AM   #10
FrankP
Member
 
Registered: Aug 2003
Location: Britain
Distribution: AntiX, Debian, Gentoo
Posts: 65

Rep: Reputation: 18
James,

Help us to help you. Some suggestions were given, can you report back on what you found:-

are smbd and nmbd running? (these are the Samba daemons)
have you found /etc/samba/smb.conf?

Let us know that and we'll take it from there.

Frank
 
Old 09-05-2005, 02:12 PM   #11
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Original Poster
Rep: Reputation: 15
Hi all,

thanks for all the help.

Quote:
are smbd and nmbd running? (these are the Samba daemons)
I can't tell if they are. What should it say if I enter
Quote:
'ps -ef | grep smbd'
?

I have also found the smb.conf file but this too I am not too sure about. I don't really know how to configure this.

I would appreciate any detailed help.

Thanks

james
 
Old 09-05-2005, 05:24 PM   #12
nédée
LQ Newbie
 
Registered: Aug 2005
Location: Belgium
Distribution: Debian (sarge)
Posts: 13

Rep: Reputation: 0
in the manual that FrankP posted

Unofficial Samba How-To:
"http://hr.uoregon.edu/davidrl/samba.html"

It is explained step by step what you have to check in your smb.conf file. I followed this manual yesterday and it works fine.


As you also can read in the manual

root:#killall smbd nmbd <-- shut down samba
root:#smbd -D
root:#nmbd -D <--- put it back on
 
Old 09-06-2005, 04:26 AM   #13
FrankP
Member
 
Registered: Aug 2003
Location: Britain
Distribution: AntiX, Debian, Gentoo
Posts: 65

Rep: Reputation: 18
Quote:
Originally posted by jammyjames
I can't tell if they are. What should it say if I enter 'ps -ef | grep smbd'?
Something like this if smbd is running:
root 1036 1 0 09:22 ? 00:00:00 /usr/sbin/smbd -D
root 1041 1036 0 09:22 ? 00:00:00 /usr/sbin/smbd -D

ps is a command to find out about running processes, -ef makes it list details of all processes. Check the other options with man ps. grep matches patterns. So the combined command ps -ef | grep foo looks for occurences of 'foo' in the process listing. Try ps -ef | less. This will list all the processes and let you page through them. The right-hand column shows the command which launched the process.

If you are going to set up a Samba server, you'll need to be able to edit the config file, add users to your system, change file permissions and so on. I'm not trying to put you off, just checking if you know what you're taking on. It doesn't all have to be done at the command line, I'm suggesting command line ways because that's what I'm used to.

There are plenty of tutorials on basic unix commands on the web, like this one: http://www.emba.uvm.edu/CF/basic.html

Can you edit the smb.conf file?

Debian comes with a sample config already, which has helpful comments. You have a choice -- either tweak it to get one that works for you, or start over with a blank one and build it up. I recommend the latter because then you can test as you go and there is less to break. But keep the debian sample config (rename the file) -- it might come in useful. Then try one of the simple setups in the HowTo documents.
 
Old 09-10-2005, 11:39 AM   #14
jammyjames
LQ Newbie
 
Registered: Aug 2005
Location: Norfolk, UK
Posts: 23

Original Poster
Rep: Reputation: 15
Hi all,

I have both smbd and nmbd running.

Unfortunately I have lost my smb.conf file. Can anyone send me a copy of the smb.conf file so I can replace it. All I want is to share my internet connection from windows to linux and share files between the two?

Many thanks

James
 
  


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
Debian Sarge: Welcome to my network. Brother Michael LinuxQuestions.org Member Success Stories 0 01-09-2005 03:13 AM
how can i share a file/folder common to all network users zameer_india Linux - Networking 1 09-30-2004 07:17 AM
How do I share a drive on network vash_stewy Linux - Networking 4 04-11-2004 10:55 PM
network share tpark Linux - Networking 1 02-25-2004 03:10 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 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