Page 5 of 8

Posted: Thu 16 Jun 2011, 15:36
by p310don
ok thanks, will try that tomorrow. Its 2am here. probably should get to bed instead of feeding my puppy addiction.... ;)

Posted: Thu 16 Jun 2011, 22:36
by p310don
That fixed it!!

Thanks rcrsn51 for your super quick help!

I have no idea how you, and so many of the guys on here manage to just know the answers to problems like you do, but its awesome, and a credit to the Puppy community.

Thanks :):):)

Posted: Mon 14 Nov 2011, 23:11
by 01micko
I get an error trying to print from win7 to my slacko printer, MP490

I set it up as \\pupserver\Canon_MP490_series (local port) with the only driver I could see close to HP Color Lasejet PS, which is HP Color Laserjet 2800 series PS

Interestingly it prints (to the printer) the error!

To wit;
ERROR: configurationerror
OFFENDING COMMAND: setpagedevice

STACK:

-dictionary-
Before the error it feeds through a blank page.

XP prints fine. However it allowed me to install the MP490 driver off the CD.

Having trouble with puppy and apple but I should be able to figure out those.

EDIT Ha! I jumped the gun! I tried again with the Canon driver and this time it worked. Still... would be interesting to find out if the HP post script driver can be used since there seems to be no problem seeing the Printer.

Posted: Tue 15 Nov 2011, 00:19
by 01micko
Ok, got puppy and apple printing to my pupserver :) in Slacko using CUPS-1.4.6 and mac-OSX-snowleopard using CUPS-1.4.7. Note I'm using Slacko as my pupserver too, shouldn't make a difference.

The rundown:

Open browser at localhost:631

Choose Windows Printer using smbclient

For Puppy the URI is :

smbc://pupserver/[printername_goes_here] (eg, mine is Canon_MP490_series)

For mac the URI is :

smb://pupserver/[printername_goes_here] (eg, mine is Canon_MP490_series) [note "smb" not "smbc"]

For Puppy:
Then you choose from the list Raw, then Raw Queue.

Then we slightly fork from rcrsn51's great instructions. The next window is titled "Banners". For the Starting Banner and Ending Banner choose standard from the pulldown lists. This is where I was going wrong I think.

This sets the default options, print your test page and you are away.

For Mac OS-X:
Then you choose the Generic drivers and at the bottom you find Generic PostScript. That's the one

Next page allows choice of paper size and then you are done. Print a test page from the Maintenance pulldown. You may have to configure applications to use the printer.

FOOTNOTE: in mac-osx your username and passworrd for CUPS is your name you entered when you first setup your mac all lowercase and no spaces, no underscores either. Password is the one you set up at that same time.

HTH

Posted: Tue 15 Nov 2011, 00:35
by rcrsn51
In retrospect, it may be easier to let CUPS handle your shared printing instead of Samba. But I have never tested it with Win7 or OS-X.

Posted: Tue 15 Nov 2011, 00:39
by 01micko
rcrsn51 wrote:In retrospect, it may be easier to let CUPS handle your shared printing instead of Samba. But I have never tested it with Win7 or OS-X.
Yes and no. If you have tng installed then why not take advantage of it? One less daemon running :wink: I guess one less open port too.

Posted: Tue 15 Nov 2011, 00:55
by rcrsn51
01micko wrote:
rcrsn51 wrote:Yes and no. If you have tng installed then why not take advantage of it? One less daemon running :wink:
The CUPS daemon is running anyway. And it eliminates any problems with logging into the server because CUPS doesn't need it.

Either way, you have to fight through the problem of who will format the print job - the client or the server. It the server is going to format the job using its own CUPS driver, then the client will usually send the job as Postscript. However, if a Windows client uses its own driver, CUPS can sometimes detect this and send the job directly to the printer. (This may depend on how the CUPS package was built.)

Since OS-X is using its own version of CUPS, I would assume that it uses the same rules as a Puppy client.

Posted: Tue 15 Nov 2011, 05:59
by 01micko
I did some more experiments with CUPS in mac OS-X.

It seems CUPS is somewhat crippled in OS-X. Macs have a dumb gui to set up printers. They only offer a gui to set up detected local printers, "windows" shares (ie smb) and another to set up ipp, hp socket or lpd, that's it.

Of course none of this works with using CUPS as the server or samba-tng (and I suspect full samba).

As I reported a few posts ago, I was able to set up printing using smb://server/printer and print a test page. Ok.. but that is useless when you need to do some real world printing. I tried to print some of wifey's recipes (yes actual food recipes) that she had downloaded and saved as .odt documents with openoffice and no go. Nothing (but errors of course). So then I tried from various other apps, same result. <scratches head/>

Then I deleted the printer in the CUPS web interface and tried the HP Color Laserjet 2800 (presumably formatting as postscript) and I I could print, but it was garbage, just the title of the page and a CUPS logo, no matter what app.

I then discovered the generic category in the drivers list. At the bottom is the Generic PostScript driver. Bingo! Tried that and succeeded. The mac even recognised it in it's dumb wizard. I successfully printed a couple of said recipes and a web page from firefox. That's good enough for me.

I'll edit my above post for the mac.

Oh, and I think samba, be it full or tng, is the only easy way to print to puppy, perhaps most linux, from mac OS-X, without diving in and editing the CUPS config files at a minimum.

Posted: Tue 15 Nov 2011, 14:13
by rcrsn51
Thanks for doing this testing.
01micko wrote:It seems CUPS is somewhat crippled in OS-X. Macs have a dumb gui to set up printers. They only offer a gui to set up detected local printers, "windows" shares (ie smb) and another to set up ipp, hp socket or lpd, that's it.
IPP is the protocol used by CUPS to share its printers. It would be interesting to know if a CUPS shared printer would be auto-detected by OS-X like it is by a Puppy client.

Supposedly, you could do a manual install in OS-X using

Code: Select all

ipp://aaa.bbb.cc.dd:631/printers/printer_name

Posted: Tue 17 Jan 2012, 11:59
by ginco
Thanks: it works perfectly!
Only issue I got was because Firewall not disabled: I would put the word Firewall on bold in page 1 for future users. It's becoming a need as new Netbooks with Win7 Starter don't allow for IPP printing.
Did anybody try sharing a scanner as well (I already had it shared in Ubuntu)? Rcrsn51, I saw your comments about a Brother scanner, but I already have two, and would like to avoid buying a 3rd one...

Sharing a scanner on the network

Posted: Sun 22 Jan 2012, 08:17
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

Posted: Sat 17 Mar 2012, 14:58
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.

codepage 852 or cp1250

Posted: Sun 23 Dec 2012, 13:36
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.

Posted: Sun 23 Dec 2012, 14:58
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.

codepage 852 or cp1250

Posted: Mon 24 Dec 2012, 14:21
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?

Posted: Mon 24 Dec 2012, 14:45
by rcrsn51
/usr/local/samba/var/log

Posted: Mon 24 Dec 2012, 15:22
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?

Posted: Mon 24 Dec 2012, 15:27
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.

Posted: Mon 24 Dec 2012, 15:57
by polykarp
Ok, if it is not posible in samba-TNG i try a Samba 3.x.

Anyway Thanks for Help.

problem sorted by rtfm

Posted: Sun 10 Feb 2013, 00:34
by goolwa_pup
i rtfm all good