Active Topics

 


Reply
Thread Tools
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#41
Originally Posted by qole View Post
If you also install and configure Samba in Easy Debian, you can print to Windows printers...
Are you referring to Cifs in your repository?
 
bandora's Avatar
Posts: 1,338 | Thanked: 1,055 times | Joined on Oct 2009 @ California, USA / Jordan
#42
I created a brainstorm for this and also I tried opening a bug for it (which they considered it as a duplicate) I am nagging alot about this because I feel that when something is advertised as a "computer" it should behave as one.. My E65 can print why cant my N900 do it?

Check out my signature.. and I beg you vote for them or something... CUPS isn't enough even if it works... This should be integrated in Maemo IMO....

Like if one find something interesting while surfing the web on MicroB and you dont want to switch to a computer.. one should be able to print directly to a wifi/bluetooth enabled printer..

I can list so many scenarios where this would important.. but I gotta sleep now 3 am!!! lol
__________________
FarahFa.com

Last edited by bandora; 2010-01-25 at 07:29.
 
Posts: 172 | Thanked: 27 times | Joined on Oct 2009 @ San Francisco, CA
#43
Not having luck with this. Getting command not found after typing in lpstat -a in debian chroot terminal.

Tried running /etc/init.d/cups start to no avail.

I then noticed cups was in /etc and not in init.d so I moved it into init.d and am getting a "cups is a directory" error, after putting in the script to start cups after restart.

Noob here. Followed all directions. Help please?
 
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#44
Have you seen this simple solution? If you have your printer attached to a linux box, it's the easiest way to print wirelessly

http://forums.internettablettalk.com...ad.php?t=16162
__________________
Ernesto de Bernardis

 

The Following User Says Thank You to debernardis For This Useful Post:
Posts: 162 | Thanked: 351 times | Joined on Apr 2006 @ Cotswolds, UK
#45
Originally Posted by jsbigs View Post
Not having luck with this. Getting command not found after typing in lpstat -a in debian chroot terminal.
You may need to install the cups-client package (apt-get install cups-client).

Tried running /etc/init.d/cups start to no avail.

I then noticed cups was in /etc and not in init.d so I moved it into init.d and am getting a "cups is a directory" error, after putting in the script to start cups after restart.
/etc/cups is a directory, with several important control files and has nothing to do with the initialisation script which should be at /etc/init.d/cups! I suggest you move it back again.

If /etc/init.d/cups is not present, either it got deleted or the cups installation didn't work. After moving the config directory back in to /etc I would suggest:

apt-get install --reinstall cups cups-client cups-common

Graham
 

The Following 2 Users Say Thank You to Graham Cobb For This Useful Post:
Posts: 61 | Thanked: 60 times | Joined on Jul 2007 @ Erlangen
#46
I just talked to a cups developer and I was told that for just printing directly to a printer there is no need at all to install cups. All that is needed is the printer .ppd driver, ghostscript and tools to create postscript files from different files like e.g. a2ps or convert. At least for network enabled printers that should work.

Printing then basically works like this:

- have some file to print, e.g. hello_world.txt
- create a postscript file from it (a2ps hello_world.txt > hello_world.ps)
- pipe the postcript file through ghostscript using the right options (gs -option1 -option2 ...)
- send the result directly to the printer using netcat

That way cups can be completely avoided. To create the correct options for ghostscript one can simply
- setup a queue for the required printer driver on a normal cups server
- set the cups logging to debug
- send a print job
- search in the cups log file for the ghostscript command and the used options.
- one can repeat this for several driver settings like photos or text files and then have some script that converts depending on the input format to different qualities.

I have not yet tested all that but plan to do asap.

Additionally i was told that many printers are able to also directly process some file types like e.g. jpeg or text. One can try to simply send the files to the printer using netcat, usually port 9100 should be working (but that was just from experience).

If one has a print server running (that has the drivers configured), then just installing cups-client might of course be the cleaner solution.
__________________
things we learned from movies
38) No matter how badly a spaceship is attacked, its internal gravity system is never damaged.

Last edited by greygoo; 2010-01-26 at 20:44.
 

The Following User Says Thank You to greygoo For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#47
Originally Posted by les_garten View Post
Are you referring to Cifs in your repository?
No, that's to allow Windows file shares to be mounted on the tablet. If you combine CUPS and Samba in your chroot, you can print to Windows printers.

Funny, I have two laser printers. I use each of them maybe once a month or less. I'd install printing support on my N900, but I just don't need it. I checked onto a flight last September, just showing everyone the screen of my N900, which had the big boarding pass barcode for scanning... Didn't even need a paper boarding pass...
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
rm42's Avatar
Posts: 963 | Thanked: 626 times | Joined on Sep 2009 @ Connecticut, USA
#48
Originally Posted by rebhana View Post
Encouraged by this account of easy-debian and its actual usefulness:

http://talk.maemo.org/showthread.php?t=41605

and the fact that easy-debian has moved up into Extras, I installed easy-debian (see also
http://wiki.maemo.org/Easy_Debian )

Easy-Debian has gimp and openoffice with printing support, but to my initial disappointment no CUPS, the Unix printing system for network printers. However, it was really easy to install on top of it (in the Debian environment, not the XTerminal, where you wouldn't find cups yet!):
Code:
sudo apt-get update
sudo apt-get install cups
sudo apt-get clean
("sudo" is superfluous when done from Debian chroot instead of a terminal within Debian LXDE)

Although a disturbingly long list of packages got installed automatically in the process, it reduced the available space for the Debian system by only 10% or so. There were also some warnings and even "fatal" errors when installing and starting cups, but it came out completely functional.

And it brought the printing (cups) support I was hoping for to openoffice. However, what I was really longing for was the possibility to print things I download in Maemo. Now, with Debian chroot I can do so rather easily, and I don't have to wait any longer for cups appearing within Maemo proper some time in the future.

So to those still waiting for cups, as I did, I can recommend doing the same. Install easy-deb-chroot and then cups within that! Postscript and pdf files downloaded on the N900 can subsequently be printed out by opening the Debian chroot terminal, so no need to start the LXDE (which I found somewhat tedious to use, despite its coolness factor).

In Debian chroot, I just do "su - user" to switch to /home/user and non-root identity. Then "lpstat -a" shows me the list of available network printers, and with "lp -d printername filename" I can send files to the chosen printer. Easy! And Debian!

In XTerminal, one can run single easy-debian commands like the above (as user) by e.g.
Code:
debbie lp -d printername /home/user/.../filename
Or if it's a word or openoffice document, "debbie ooffice" or
"debbie oowriter /home/user/.../filename" and then print out from openoffice 3 (with due patience, but much quicker than through LXDE, and for me also with correct keyboard).

I guess after my experience with packages from extras-devel that made the update to PR1.1 slightly bumpy (in fact only one package: vpnc), I now feel actually more comfortable to be able to install stuff in the Debian image and use it from there, without having to tamper with Maemo when I don't fully understand the consequences (as was the case with vpnc).

UPDATE: There is one more thing that needs to be done so that cups gets started again after one has powered down and restarted the N900:
Open Debian chroot and add a startup script for cups as follows:
Code:
echo "/etc/init.d/cups restart" >> /var/run/onfirstchroot.rc
chmod a+x /var/run/onfirstchroot.rc
If you want to do this under XTerminal, you have to instead modify or create $CHROOT/var/run/onfirstchroot.rc where $CHROOT is the Debian mountpoint. (Thanks to qole for both easy-debian and telling me about the option of startup scripts!)
Did you do an apt-get update before installing cups? I am getting an error regarding ssl-cert. Is that something that needs to be configured manually?
__________________
-- Worse than not knowing is not wanting to know! --

http://temporaryland.wordpress.com/
 
Posts: 172 | Thanked: 27 times | Joined on Oct 2009 @ San Francisco, CA
#49
Originally Posted by Graham Cobb View Post
You may need to install the cups-client package (apt-get install cups-client).



/etc/cups is a directory, with several important control files and has nothing to do with the initialisation script which should be at /etc/init.d/cups! I suggest you move it back again.

If /etc/init.d/cups is not present, either it got deleted or the cups installation didn't work. After moving the config directory back in to /etc I would suggest:

apt-get install --reinstall cups cups-client cups-common

Graham
On your advice Graham, I moved /cups back to /etc, and ran apt-get install --reinstall cups cups-client cups-common. Unfortunately, this did not work so after enabling Extras-Devel (don't think that was necessary though) I ran:

Code:
apt-get update
apt-get update --fix-missing
apt-get install -f
apt-get install --reinstall cups cups-client cups-common
I can't remember if that was the exact order of things or not (other than the last step), nor know if any or all were necessary steps but it did finally work.

So now running lpstat -a works and lists the attached network printers. Two issues I now have though are:

1.) cups stops running after a while prompting me to run /etc/init.d/cups restart (lpstat -a returns the message "connection refused" before I restart cups). I guess I can live with this unless there is a workaround.

2.) The Excel file that I was printing (finally, after deleting and re-adding my printer on the network) was not formatted at all correctly. Can this be fixed? Otherwise this potentially exciting function is useless.

Thank you (anyone) for your help.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#50
Originally Posted by greygoo View Post
I just talked to a cups developer and I was told that for just printing directly to a printer there is no need at all to install cups. All that is needed is the printer .ppd driver, ghostscript and tools to create postscript files from different files like e.g. a2ps or convert. At least for network enabled printers that should work.
You are entirely correct. Full cups itself is way overkill if you use a networked printer (which is pretty much the only option for a device like the N900). Cups contains all the bits and pieces necessary to manage a directly connected printer, that's why it's so big.

[description of how to generate and send files to remote printer]
That's basically what the good old bsd-lpr or lprng applications can do, so they're pretty small. I still have lprng running on my N800. It can be done by a self-made script too though, as you describe. What lprng gives you in addition is a local printing queue.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:03.