You are not logged in.

#1 2012-10-26 14:57:07

ichase
Member
Registered: 2011-02-10
Posts: 113

[PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

Greetings all,
I have built a headless server running Arch linux as the base OS.  I am running SAMBA and CUPS and performing all maintenance of this server via SSH.
The SAMBA share I can see (read/write) on all the Windows 7 machines on the network as well as the Printer connected to the server.  But I can't see it when I open Thunar or PCManFM.  Nor can I access the printer.

It's obviously something I am doing wrong but I have Googled different parameters trying to find a solution but have come up short.

Your assistance and guidance in putting me in the right direction is most appreciated.  All my Linux machines are running Arch.

Thanks,

Ian

Last edited by ichase (2012-10-28 07:19:14)

Offline

#2 2012-10-27 12:55:39

ichase
Member
Registered: 2011-02-10
Posts: 113

Re: [PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

Quick addition.  I had noticed that I did not have the gvfs-smb package loaded.  So I can now see the server on the network, and can open it to see the share.  But when I click on the share I am being asked a for a password.  Entering my SAMBA password does not allow me in.  I know for a fact the password is correct.
This is the screen I get when I click on the storage folder (samba share)

Edit:  Removed image.  Believe ImageBam got hacked and when you click on the image, it takes you to the image via adult content.  In a nutshell a window pops up asking for the password.

Thanks again for any additional guidance

Last edited by ichase (2012-10-27 13:17:29)

Offline

#3 2012-10-27 15:06:28

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

Have you tried to connect using the commandline yet?
# mount -t cifs //SERVER/SHARENAME MOUNTPOINT -o user=USERNAME,password=PASSWORD,workgroup=WORKGROUP,ip=SERVERIP
Make sure to read the wiki page about mounting from terminal:
https://wiki.archlinux.org/index.php/Sa … e_mounting

If this does not work, or if you want, please test your samba configuration file with # testparm and post the complete file here.

Offline

#4 2012-10-27 15:13:47

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: [PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

When you're using CUPS, you just add the printer to each Linux station and it comes up as a printer when you go to print.
I think CUPS has a problem dealing with shares that have a password.  I'm not sure how to get authentication on CUPS.
Thunar is just a file manager, but I usually just mount any samba shares, and make sure you add the username and password component to the command line so that it can authenticate.  If your native Windows machines are connecting to it just fine then you at least have it set up correctly.
mount -t cifs //sambaserver/share /mnt -o username=user
Then it should ask you for password.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#5 2012-10-27 16:35:59

ichase
Member
Registered: 2011-02-10
Posts: 113

Re: [PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

Mounting from the command line worked great.  Thanks for the tip  smile

Offline

#6 2012-10-27 18:55:57

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: [PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

nomorewindows wrote:

I think CUPS has a problem dealing with shares that have a password.  I'm not sure how to get authentication on CUPS.

AFAIR few years ago URLs like smb://username:password@server/... worked, I have no access ATM to any samba printer to test.

Offline

#7 2012-10-28 07:27:26

ichase
Member
Registered: 2011-02-10
Posts: 113

Re: [PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

I have looked high and low.  The printer is set up via CUPS and the printer in smb.conf is set to CUPS.  All 4 windows computers in the house now have this printer set as default and can print fine.
But if I try to print in Linux, for example in Libreoffice, I get No default printer found.  Please choose a printer and try again.  When I click ok, the network printer does not show up for me to select.
I have tried updating the /etc/cups/client.conf on the client computer and it is set as:

# see 'man client.conf'
homeserver /var/run/cups/cups.sock
homeserver 192.168.X.XX

From what I have read so far, this is correct.  When I go to the CUPS Web Interface it shows under Manage Printer my HP 7300 Series printer there and in idle waiting for job.  And in Windows I can print to it just fine.
As far as I can  tell SAMBA is set up correctly (I can mount the file drive in Arch with no issues) and CUPS seems to be configured correctly as well from all that I have read.

Any insight would be great,

Thanks,

Ian

Last edited by ichase (2012-10-28 07:28:31)

Offline

#8 2012-10-28 18:07:41

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

Do you have any personal firewall set up on your linux computer? Sorry if this seems obvious to you.

Offline

#9 2012-10-29 03:08:12

ichase
Member
Registered: 2011-02-10
Posts: 113

Re: [PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

teateawhy, not a bad question at all.  No, I do not have a personnel firewall set up but it sure is acting like it.  smile


Ian

Offline

Board footer

Powered by FluxBB