How to Use Samba-TNG Server in Puppy
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;
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.
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;
Before the error it feeds through a blank page.ERROR: configurationerror
OFFENDING COMMAND: setpagedevice
STACK:
-dictionary-
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.
Puppy Linux Blog - contact me for access
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
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
Last edited by 01micko on Tue 15 Nov 2011, 06:04, edited 2 times in total.
Puppy Linux Blog - contact me for access
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 I guess one less open port too.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.
Puppy Linux Blog - contact me for access
The CUPS daemon is running anyway. And it eliminates any problems with logging into the server because CUPS doesn't need it.01micko wrote:rcrsn51 wrote:Yes and no. If you have tng installed then why not take advantage of it? One less daemon running
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.
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.
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.
Puppy Linux Blog - contact me for access
Thanks for doing this testing.
Supposedly, you could do a manual install in OS-X using
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.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.
Supposedly, you could do a manual install in OS-X using
Code: Select all
ipp://aaa.bbb.cc.dd:631/printers/printer_name
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...
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
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
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
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Since you never stated which scanner models you own, your question is hard to answer.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...
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.
codepage 852 or cp1250
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.
Thanks for help.
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
Please report back.
[Edit] No reply. Attachment deleted. If anyone else wants to test this, please post a request.
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
[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.
codepage 852 or cp1250
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?
restarted samba server and it is still the same. is there a log file for the Samba-TNG in puppy?
ok so here is the output from log.smb:
and here is my smb.conf:
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?
- [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?