LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network and file share from Sarge to XP (https://www.linuxquestions.org/questions/linux-newbie-8/network-and-file-share-from-sarge-to-xp-359525/)

jammyjames 09-02-2005 11:03 AM

Network and file share from Sarge to XP
 
Hi all,

I am a :newbie: 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!

kpachopoulos 09-02-2005 03:50 PM

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)

ctkroeker 09-02-2005 07:08 PM

If you are using KDE, it's under control panel/internet settings.

jammyjames 09-03-2005 07:57 AM

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

jammyjames 09-03-2005 05:13 PM

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

FrankP 09-04-2005 09:48 AM

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.

Mara 09-04-2005 11:51 AM

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.

jammyjames 09-04-2005 03:08 PM

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

:confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused:

nédée 09-04-2005 05:06 PM

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

FrankP 09-05-2005 04:22 AM

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

jammyjames 09-05-2005 02:12 PM

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
:confused: :confused: :confused:

nédée 09-05-2005 05:24 PM

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

FrankP 09-06-2005 04:26 AM

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.

jammyjames 09-10-2005 11:39 AM

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


All times are GMT -5. The time now is 12:38 PM.