LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-29-2011, 10:34 AM   #1
odyssey84
Member
 
Registered: Dec 2004
Posts: 49

Rep: Reputation: 15
File/print sharing not working


Greetings

If there is one frustration I have with Linux, there is no comprehensive set of instructions for setting up file/printer sharing that works.

What I need is a simple, complete, and EASY set of instructions that will go through the process that will achieve the objectives.

I have Samba installed and have named the workgroup. I have attempted to set up private shares in smb.conf however, these are not visible in the file manager in the network section under the local machine name (or on any remote machine on the workgroup either for that matter). Going to the file and setting up the share there only works while the PC is on. Shut it down and it's lost - the whole setup must be restarted.

Therefore I need:

Permanently set up private shares that are immediately visible and accessible in the file manager in the network section under the local machine. I also need these to be visible and accessible on my other machines on the network in the workgroup (Linux or Windows). I can live with entering a password, so long that it works.

A printer setup that is visible/accessible without it asking for a password to print. The setup seemed to work except that when the remote machine found the printer, it was named differently that how it is on the machine it's connected to. I figured this was correct as it found it on its own. Not sure if that makes a difference.

Any assistance would be greatly appreciated. Thanks!
 
Old 12-31-2011, 02:59 AM   #2
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
I found this for sharing folders on Ubuntu with Windows systems, and it's a bit easier than manually editing smb.conf. Even though it appears to be kind of old, the methods still apply. If you want to continually edit smb.conf to manage samba, make sure that you restart the service after editing the file by running the following command as root.
Code:
/etc/init.d/samba restart
Walkthrough on Sharing Folders

Also, make sure you have the Samba ports open on the firewall of the machine hosting the folders. The ports are as follows.
137 TCP/UDP
138 TCP/UDP
139 TCP/UDP

I will write out a walkthrough on print sharing because around the internet I've seen overly convoluted methods of doing so, and here's how I do it with no issues at all.

Print Sharing
The print sharing is easier than some would make it out to be. Linux uses CUPS to host its printer shares. All you have to do is open up port 631 on the firewall of the machine hosting the printer, and then from any remote machine open a web browser and go to http://printserver:631. At the top click the "Printers" button, then right click the printer you want to connect to and click "Copy Link Location" or "Copy Shortcut" depending on your browser.

Screenshot

Adding your printer via an http address will vary depending on the version of Windows or Linux you are using, I will cover both Windows XP and Linux systems using Gnome, or at least the Gnome printer management utility. (This would apply to Ubuntu)

Server Setup
We're going to use the CUPS web interface to configure the server because it is Desktop environment independent. On any remote computer, point a web browser to https://printserver:631/admin . Click on the "Administration" tab, and make sure the checkbox "Share printers connected to this system" is checked. The options here are pretty self explanatory, I just wanted to show it to you. If at any point you are prompted for a username/password by this secure admin web page, enter your root username/password. These options are also available in the GUI printer management applet of the system hosting the printers by clicking the "Server" menu then clicking "Settings".

Screenshot

Windows XP
First, make sure you have downloaded a minimal set of Windows drivers for the printer, because it will ask for them later. If you have the option of not downloading a full suite of bloatware, I recommend that. Some manufacturers issue a "Driver Only" download.

Next, go bring up the "Add Printer Wizard" like you normally would. When it asks how the printer is connected, select "A network printer, or a printer attached to another computer."

Screenshot

Click "Next", then select the bottom bubble labeled, "Connect to a printer on the internet, or on a home or office network", and in the text entry box, paste the URL of the printer that you previously copied from the "Non-Secure" version of the CUPS web interface. (Begins with http, not https)

Screenshot

At this point you will have to select the make/model of the printer, or click "Have Disk" and point to the drivers you downloaded before starting. The rest is easy peasey. Just next next next through the dialogs and print a test page, you're g2g!

Linux
I am using Debian Linux with Gnome 2, so these instructions may be less accurate depending on your system setup. Click "System" -> "Administration" -> "Printing". Click the arrow next to "Add" and click "Printer".

Screenshot

If the automated "Find Network Printer" option fails to locate the network printer, then highlight the "Other" option at the top and paste the URL previously copied from the printer in the "Non-Secure" version of the CUPS web interface. (Begins with http, not https)

Screenshot

From here on, you continue as normal when adding any other printer; select the model of printer, name it, and print a test page.

Last edited by dudeman41465; 12-31-2011 at 03:02 AM.
 
  


Reply

Tags
file sharing, printer, samba


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
Samba Print Sharing Stopped Working DJOtaku Linux - General 3 09-29-2008 10:52 PM
I have print and file sharing to XP boxes working JonathanWexler Linux - Networking 4 02-24-2007 10:43 AM
file and print sharing gwc Linux - Newbie 3 06-03-2005 03:59 PM
Mandrake, XP Pro Help with file/print sharing m-gordon Mandriva 1 01-01-2005 12:51 AM
file and print sharing bdika Mandriva 6 10-09-2004 03:46 AM


All times are GMT -5. The time now is 02:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration