Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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
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.
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.
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.
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
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.