LinuxQuestions.org
Review your favorite Linux distribution.
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 06-06-2009, 10:17 PM   #1
ToddAtWSU
LQ Newbie
 
Registered: Apr 2007
Posts: 27

Rep: Reputation: 15
Question See Shared Files on Windows Box From Fedora 10 machine


I have all my music and my printer on a Windows XP machine hard wired in my wireless router. I have Fedora 10 on my laptop which I would like to be able to access the printer and music on the Windows XP machine. I have read a little bit on Samba but cannot tell if I need this or not. I don't ever need to be able to see my Fedora data from the Windows machine as I will be using Fedora mainly for programming homework in college, but would love to be able to stream my music onto my laptop while doing my homework and be able to use the printer in case I need to print anything. So do I need Samba to do this or what do I need? Also, do I need to install the printer driver on here even if it's not physically connected to my Linux machine? Thanks for all your help!
 
Old 06-07-2009, 01:37 AM   #2
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
The answer is yes. You need samba. You probably have it installed.
You will need to edit the /etc/samba/smb.conf file.
http://www.linuxhaxor.net/2009/05/12...cs-with-samba/
https://www.linuxquestions.org/quest...tition-253318/
http://www.linuxquestions.org/questi...orking-527914/


Using a xp printer over the network. This link worked for me:
https://www.linuxquestions.org/quest...how-to-499608/

Here is my example:
Code:
[global]
workgroup = Mshome
server string = Slackware Server
security = users
log file = /var/log/samba.%m
max log size = 50

[share]
comment = sw12_2 share
path = /home/share/
read only = no
create mask = 0777
directory mask = 0777
inherit permissions = yes
inherit owner = Yes
guest only = yes
guest ok = yes
guest account = dp
hide files = eth0/

[printers]
comment = All Printers
path = /var/spool/samba
printer admin = root, dp
create mask = 0600
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = Yes

Last edited by okos; 06-07-2009 at 02:08 AM.
 
Old 06-07-2009, 02:40 PM   #3
ToddAtWSU
LQ Newbie
 
Registered: Apr 2007
Posts: 27

Original Poster
Rep: Reputation: 15
Those links on sharing folders/files seem to show me how to share Linux folders with Windows. What I want to do is access files/folders on my Windows machine from my Linux machine. These are 2 physically separate machines. Not 2 partitions on the same HDD or even on 2 separate HDDs for that matter, but 2 physically different machines. Linux is on my laptop and Windows XP on my desktop.

As far as the printing thing, I changed my smb.conf file to put the workgroup name in of "Mshome". Then I opened my Printer configuration dialog and I have no Option for Windows printer via SAMBA. All I have available are:

AppSocket/HP JetDirect
Internet Printing Protocol (https)
Internet Printing Protocol (ipp)
LPD/LPR Host or Printer
Other

What am I supposed to do? Thanks for your continued help!
 
Old 06-08-2009, 09:34 PM   #4
ToddAtWSU
LQ Newbie
 
Registered: Apr 2007
Posts: 27

Original Poster
Rep: Reputation: 15
Anybody else have any ideas? I can't find anything. Everything I find talks about connecting Windows to Linux files, not the way I want.
 
Old 06-08-2009, 09:47 PM   #5
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Yes, that config will certainly put you on the workgroup, then you share via the windows boxes, and mount them in Linux.

Maybe look at nfs if Samba isn't doing it for you
 
Old 06-08-2009, 09:58 PM   #6
ToddAtWSU
LQ Newbie
 
Registered: Apr 2007
Posts: 27

Original Poster
Rep: Reputation: 15
Sorry I am so new to Linux configuration, but I am confused with what you mean. I should copy the samba config in the 2nd post? How do I share via the Windows boxes and mount them in Linux? Does sharing in Windows just mean I need to open up the sharing of the folders I want? How do I mount them in Linux? Thanks for your help yet again!
 
Old 06-08-2009, 10:06 PM   #7
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Well, the best place you'll get answers are (to be utterly predicible) the relevant manpages. An online man page for smb.conf:
http://us1.samba.org/samba/docs/man/...mb.conf.5.html

But ultimately, you need to put your linux box in the same workgroup as the windows boxes, then allow the workgroup to view the files from which the windows boxes, in these situations, the Windows boxes are the samba server, and the Linux needs only to be configured as a client
 
Old 06-10-2009, 01:25 AM   #8
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
Well it worked for me as stated in post #2.
That is my smb.conf file on my slack box. I regularly access my wife's shared files on her xp.
 
Old 06-11-2009, 08:57 AM   #9
ToddAtWSU
LQ Newbie
 
Registered: Apr 2007
Posts: 27

Original Poster
Rep: Reputation: 15
Do I have to set anything up on my Windows box besides sharing the folders? Do I need a Guest account or anything installed on Windows? Thanks!
 
Old 06-13-2009, 01:14 AM   #10
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
All I did on the windows box is set up file sharing. You will need to share the music folder if you want to access it from your linux box.

The only other issue that I know of is that you have to enable file sharing on the firewall for both boxes.

Last edited by okos; 06-13-2009 at 01:23 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB security - transferring files from infected windows machine to Linux box leighz Linux - Security 5 03-05-2009 10:11 AM
Cannot access shared XP files from my SuSE machine Hallowedpoint Linux - Networking 1 01-06-2006 08:52 AM
I canít transfer files from my Windows machine to my Linux box. kingkongadp64 SUSE / openSUSE 10 11-04-2005 01:16 PM
how to access a shared folder on a windows machine learnfast Linux - Newbie 11 03-12-2005 02:50 AM
Can't see or access XP Pro machine with shared files in MDK 9.2 dsfh24 Linux - Networking 0 01-24-2004 10:38 PM


All times are GMT -5. The time now is 06:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration