How to Use Samba-TNG Server in Puppy

How to do things, solutions, recipes, tutorials
Message
Author
disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

Sharing a scanner on the network

#91 Post by disciple »

Are you talking about sharing a scanner with computers running Linux or Windows, or something else?

I'm not sure whether Puppy includes everything you need, but check out:
http://penguin-breeder.org/sane/saned/
https://wiki.archlinux.org/index.php/US ... er_Support
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#92 Post by rcrsn51 »

ginco wrote:Did anybody try sharing a scanner as well (I already had it shared in Ubuntu)? I saw your comments about a Brother scanner, but I already have two, and would like to avoid buying a 3rd one...
Since you never stated which scanner models you own, your question is hard to answer.

There is a mechanism in SANE for sharing a USB-attached scanner across a network. Read here.
Last edited by rcrsn51 on Sun 23 Dec 2012, 15:03, edited 1 time in total.

polykarp
Posts: 6
Joined: Sun 23 Dec 2012, 11:27

codepage 852 or cp1250

#93 Post by polykarp »

hello, i just instaled Samba-TNG on my pyppy Slacko 5.3 and i have problem with foreign chracters in file names, they dont display correctly. I am from slovakia and i have set the LOCALE to sk_SK in Country Seting menu from Puppy setup. I also tried to set the codepage in smb.conf but this has no efect, the filenames are displayed incorrect. I also searched the codepage in my folders and only found a codepage 850 for samba in : /usr/local/samba/share/codepages/codepage.850. Can you pleas upload codepage files for my locale, or a new pet with Samba-TNG for countires like Slovakia, Czech, Hungary, Poland and others that use this encoding.

Thanks for help.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#94 Post by rcrsn51 »

I know nothing about international language support. But I compiled samba-TNG again and pulled out all the codepage 852 stuff. It is in the PET below.

From the documentation, it looks like you would add the following to your smb.conf

Code: Select all

[global]
client code page = 852
character set = ISO8859-2
Please report back.

[Edit] No reply. Attachment deleted. If anyone else wants to test this, please post a request.
Last edited by rcrsn51 on Mon 24 Dec 2012, 14:50, edited 1 time in total.

polykarp
Posts: 6
Joined: Sun 23 Dec 2012, 11:27

codepage 852 or cp1250

#95 Post by polykarp »

so i downoaded the PET, instaled it and have made the chenges in smb.conf.
restarted samba server and it is still the same. is there a log file for the Samba-TNG in puppy?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#96 Post by rcrsn51 »

/usr/local/samba/var/log

polykarp
Posts: 6
Joined: Sun 23 Dec 2012, 11:27

#97 Post by polykarp »

ok so here is the output from log.smb:

  • [2012/12/24 15:59:55, all:1], smbd/server.c:main(661)
    smbd from Samba-TNG 0.5-rc1 started.
    Copyright Andrew Tridgell 1992-1998
    [2012/12/24 15:59:55, all:1], param/loadparm.c:lp_do_parameter(2702)
    WARNING: The "character set"option is deprecated
    Failed to set socket option SO_KEEPALIVE (Error Socket operation on non-socket)
    Failed to set socket option TCP_NODELAY (Error Socket operation on non-socket)
    file_init: Information only: requested 10000 open files, 1014 are available.

and here is my smb.conf:

  • [global]
    dns proxy = no
    max log size = 50
    domain master = no
    domain logons = no
    workgroup = NET
    netbios name = Fileserver
    server string = Fileserver
    security = user
    map to guest = Bad Password
    ;map to guest = Bad Password
    ;printcap name = cups
    ;load printers = no
    client code page = 852
    character set = ISO8859-2


    [hudba]
    path = /mnt/sda3
    guest ok = yes
    writable = yes
    force user = root

    [programy]
    path = /mnt/sdc1
    guest ok = yes
    writable = yes
    force user = root

    [instalacky]
    path = /mnt/sdd1
    guest ok = yes
    writable = yes
    force user = root

    [zaloha]
    path = /mnt/sdb1
    guest ok = yes
    writable = yes
    force user = root


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

it sems to me that the "client code page" and "character set" is not supported. what are you think?
is there any solution for this?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#98 Post by rcrsn51 »

If you need language support, you should try one of the newer Samba 3.x packages. I believe that Slacko has one in its repository.

polykarp
Posts: 6
Joined: Sun 23 Dec 2012, 11:27

#99 Post by polykarp »

Ok, if it is not posible in samba-TNG i try a Samba 3.x.

Anyway Thanks for Help.

User avatar
goolwa_pup
Posts: 59
Joined: Thu 29 Oct 2009, 20:31

problem sorted by rtfm

#100 Post by goolwa_pup »

i rtfm all good

polykarp
Posts: 6
Joined: Sun 23 Dec 2012, 11:27

Re: problem sorted by rtfm

#101 Post by polykarp »

I hawe read itit is the first thing before a question in forum.
But it does not solwed my problem. Any way i instaled samba 3.x
and it is working.
goolwa_pup wrote:i rtfm all good

User avatar
goolwa_pup
Posts: 59
Joined: Thu 29 Oct 2009, 20:31

#102 Post by goolwa_pup »

sorry polykarp i had a different problem but i actually read the manual and solved it myself so edited my post....it was not a reply to your issue

polykarp
Posts: 6
Joined: Sun 23 Dec 2012, 11:27

#103 Post by polykarp »

goolwa_pup wrote:sorry polykarp i had a different problem but i actually read the manual and solved it myself so edited my post....it was not a reply to your issue
never mind :D

perky
Posts: 5
Joined: Thu 27 Dec 2012, 22:46

#104 Post by perky »

Thanks for this.

Unfortunately I think this pet suffers from the 'Invalid packet length' bug, see here:

http://blog.gmane.org/gmane.network.samba-tng.cvs

quote:
"When Windows sends a very large packet (writing a large
file on the file server), sometimes the "Invalid packet
length!" could happen."

This happened when I tried to run some backup software, most of the time it was OK with normal browsing. The invalid packet length report shows up in the samba log files. I had to resort to running normal Samba and the problem went away.

Mark.

perky
Posts: 5
Joined: Thu 27 Dec 2012, 22:46

#105 Post by perky »

Duplicate post, sorry.

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#106 Post by rmcellig »

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.

http8000
Posts: 2
Joined: Mon 15 Jul 2013, 16:04

Printer Sharing without X

#107 Post by http8000 »

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

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#108 Post by rcrsn51 »

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.

http8000
Posts: 2
Joined: Mon 15 Jul 2013, 16:04

#109 Post by http8000 »

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 ... nload=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!

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#110 Post by rcrsn51 »

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.

Post Reply