Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 28 Nov 2014, 04:38
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to Use Samba-TNG Server in Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 10 [148 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10 Next
Author Message
rmcellig

Joined: 19 Nov 2011
Posts: 924
Location: Ottawa Ontario Canada

PostPosted: Thu 07 Mar 2013, 21:34    Post subject:  

Works fine in Precise 5.4.3. I am so happy that I finally have Samba working in every Pup I have tried!!! Well done.
Back to top
View user's profile Send private message Visit poster's website 
http8000

Joined: 15 Jul 2013
Posts: 2

PostPosted: Mon 15 Jul 2013, 12:13    Post subject: Printer Sharing without X  

Hi,

Thanks for this post at first, it works fine for me so far.

Just if I boot without X (nox in GRUB) the Printer commands are not forwarded form samba to CUPS.
Same also happes if I boot with X and then close the X environment.

Samba is still running (I can access my shared files from Windows PC)
CUPS is running (I can print via lp command)

There is no error on Windows when printing, just the printer is not printing.

I'm using Precise Puppy 5.6.1

Is there anything in this System which depends on a running X environment?

Thanks!

Regards,
Thomas
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9261
Location: Stratford, Ontario

PostPosted: Mon 15 Jul 2013, 13:07    Post subject:  

Welcome to the forum.

I don't know if I have ever looked at this scenario, so I will have to set up some test equipment.

What kind of printer do you have? Are you using the Windows driver?

First, I wonder if this is a CUPS issue instead of a Samba issue. Temporarily shut down the Samba server and make your printer sharable through CUPS as described here. Does it work in a non-X environment?

Or you could try the p910nd print server as discussed in the Samba-TNG how-to. I doubt if it cares what environment you are running.
Back to top
View user's profile Send private message 
http8000

Joined: 15 Jul 2013
Posts: 2

PostPosted: Mon 15 Jul 2013, 13:41    Post subject:  

Hej,

I have a Samsung SCX 4600.
I used the printer drivers provided by Samsung (Unifyed Printer drivers http://www.samsung.com/at/support/model/SCX-4600/XEC-downloads?isManualDownload=true )

Yes sharing via CUPS & http works fine also in the commandline.
I'll use this for now. I just wanted to use Samba because its maybe a bit easier to connect from Windows and there are no problems with IP changes.

Maybe I try to use p910nd tomorrow. Where do I find this how-to?

Thanks for this quick answer!
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9261
Location: Stratford, Ontario

PostPosted: Mon 15 Jul 2013, 14:19    Post subject:  

I cannot duplicate your problem. I set up the Samba-TNG server in Precise and attached an Epson USB printer.

I rebooted using "pfix=nox" to a command prompt and started the server. I checked with "ps" that all 10 daemons were running.

I booted a Puppy client machine and installed the printer using the "smbw" protocol. It worked fine.

I booted Win7 and installed the printer using the TNG instructions. It also worked fine.

I have no idea why your experience would be different.

The instructions for p910nd are on Page 1 at the end of the main post. But it is also based on the IP address.
Back to top
View user's profile Send private message 
rmcellig

Joined: 19 Nov 2011
Posts: 924
Location: Ottawa Ontario Canada

PostPosted: Sat 20 Jul 2013, 20:01    Post subject: No samba shares  

For some reason it says no shares in pnethood samba shares. Any idea why? I can see music in pnethood but it says no shares. I don't have the firewall running. I stopped and started samba based on the instructions above.

I'm checking this on the same computer I have the smb.conf file. This file resides in usr/local/samba/etc

Update:
I see the share on my other machine. looks like it is working. Why don't I see them on the native machine?


Code:

[global]
dns proxy = no
max log size = 50
domain master = no
domain logons = no
workgroup = pupgroup
netbios name = music
server string = Puppy Samba-TNG Server
security = user
;map to guest = Bad Password
;printcap name = cups
load printers = yes

[pupshare]
path = /mnt/home
writable = yes

[printers]
path = /tmp
printable = yes
guest ok = yes

Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 9261
Location: Stratford, Ontario

PostPosted: Sat 20 Jul 2013, 20:25    Post subject:  

You never said what Puppy you are using, so I tested this in Lupu 528.

1. I started the Samba-TNG server with the default smb.conf.

2. I ran Pnethood on the same machine.

3. It detected and mounted the share.
Back to top
View user's profile Send private message 
rmcellig

Joined: 19 Nov 2011
Posts: 924
Location: Ottawa Ontario Canada

PostPosted: Sat 20 Jul 2013, 21:01    Post subject:  

I'm also using lucid 528.
Back to top
View user's profile Send private message Visit poster's website 
toronado

Joined: 04 Sep 2013
Posts: 94

PostPosted: Sun 20 Oct 2013, 02:41    Post subject: creating a share
Subject description: Windows can't find it
 

I have Samba-TNG working in lupu528. I created a user named "ps07wa" that is the same as my Windows user account. I can access the pupserver server and read/write to the path /mnt/home/ps07wa from the Windows box.

I'm trying to access a share called "pupshare1" on a different HDD in the puppy box. It shows up in Windows, but when I try to access it, Windows says it cannot find the path "\\PUPSERVER\pupshare1".

Here is my smb.conf file:
Code:
[global]
dns proxy = no
max log size = 50
domain master = no
domain logons = no
workgroup = workgroup
netbios name = pupserver
server string = Puppy Samba-TNG Server
security = user
;map to guest = Bad Password
;printcap name = cups
load printers = yes

[pupshare]
path = /mnt/home
writable = yes

[printers]
path = /tmp
printable = yes
guest ok = yes

[ps07wa]
path = /mnt/home/ps07wa
writable = yes
valid users = ps07wa

[pupshare1]
path = /mnt/sdd1/pupshare1
writable = yes
valid users = ps07wa


Edit: Also, in samba-autostart when would I want to use mount /dev/ vs mount /mnt/ ? Or do i need to have both in the same line?

Edit(2):
I have discovered that they both need to be there in the same line (just as shown in the commented-out sample line).
This works for me:
Code:
mount /dev/sdd1 /mnt/sdd1

Last edited by toronado on Sun 20 Oct 2013, 17:20; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9261
Location: Stratford, Ontario

PostPosted: Sun 20 Oct 2013, 10:28    Post subject:  

Do you have partition sdd1 mounted?

What filesystem is on sdd1?

Try this

Code:
[pupshare1]
path = /mnt/sdd1/pupshare1
writable = yes
valid users = ps07wa
force user = root
Back to top
View user's profile Send private message 
toronado

Joined: 04 Sep 2013
Posts: 94

PostPosted: Sun 20 Oct 2013, 17:16    Post subject:  

rcrsn51 wrote:
Do you have partition sdd1 mounted?
Yes.
rcrsn51 wrote:

What filesystem is on sdd1?
NTFS
rcrsn51 wrote:

Try this
Code:
[pupshare1]
path = /mnt/sdd1/pupshare1
writable = yes
valid users = ps07wa
force user = root
This fixed it. Thanks!
Last edited by toronado on Sun 20 Oct 2013, 17:44; edited 2 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9261
Location: Stratford, Ontario

PostPosted: Sun 20 Oct 2013, 17:42    Post subject:  

Excellent. Here is why it works. The ps07wa user you created is a non-root user. But an NTFS partition has no sense of Linux ownership and permissions. So the only user that can access it is root. By forcing the Samba server to access the share as root, ps07wa can see it from Windows.
Back to top
View user's profile Send private message 
toronado

Joined: 04 Sep 2013
Posts: 94

PostPosted: Sun 20 Oct 2013, 17:44    Post subject:  

rcrsn51 wrote:
Excellent. Here is why it works. The ps07wa user you created is a non-root user. But an NTFS partition has no sense of Linux ownership and permissions. So the only user that can access it is root. By forcing the Samba server to access the share as root, ps07wa can see it from Windows.


I'm having problems with permissions on NTFS shares. Still testing and not sure what the problem is yet. Sometimes it works fine, and other times it does not.

I have a feeling that sometimes the partition is getting mounted as read-only in Puppy, because if I go into Puppy, stop the server, unmount the partition, re-mount it and restart Samba, it works.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9261
Location: Stratford, Ontario

PostPosted: Mon 21 Oct 2013, 11:48    Post subject:  

toronado wrote:
I have a feeling that sometimes the partition is getting mounted as read-only in Puppy

How are you mounting the share? Through samba-autostart? Using what mount command?
Back to top
View user's profile Send private message 
toronado

Joined: 04 Sep 2013
Posts: 94

PostPosted: Mon 21 Oct 2013, 14:41    Post subject:  

rcrsn51 wrote:
How are you mounting the share? Through samba-autostart? Using what mount command?

Mounting through Samba-Autostart
Code:
mount /dev/sdc4 /mnt/sdc4

I've tested a few times and I'm finding that if I just let Samba-Autostart mount it, I won't have write permissions to that share from the Windows box. But if I go into Puppy and manually un-mount and re-mount sdc4 then it works fine.

Linux partitions for Samba shares seem to mount and work fine with samba-autostart mounting them. One thing though... I find that even on Linux partitions, I must have "force user = root" on the share (in smb.conf) because otherwise I won't have write permissions from Windows to that share.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 8 of 10 [148 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0869s ][ Queries: 12 (0.0068s) ][ GZIP on ]