![]() |
2010-01-25
, 07:26
|
|
Posts: 1,338 |
Thanked: 1,055 times |
Joined on Oct 2009
@ California, USA / Jordan
|
#42
|
![]() |
2010-01-26
, 09:23
|
Posts: 172 |
Thanked: 27 times |
Joined on Oct 2009
@ San Francisco, CA
|
#43
|
![]() |
2010-01-26
, 10:06
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#44
|
The Following User Says Thank You to debernardis For This Useful Post: | ||
![]() |
2010-01-26
, 13:14
|
Posts: 162 |
Thanked: 351 times |
Joined on Apr 2006
@ Cotswolds, UK
|
#45
|
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.
![]() |
2010-01-26
, 16:54
|
Posts: 61 |
Thanked: 60 times |
Joined on Jul 2007
@ Erlangen
|
#46
|
The Following User Says Thank You to greygoo For This Useful Post: | ||
![]() |
2010-01-26
, 19:43
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#47
|
![]() |
2010-01-26
, 19:52
|
|
Posts: 963 |
Thanked: 626 times |
Joined on Sep 2009
@ Connecticut, USA
|
#48
|
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!):
("sudo" is superfluous when done from Debian chroot instead of a terminal within Debian LXDE)Code:sudo apt-get update sudo apt-get install cups sudo apt-get clean
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.
Or if it's a word or openoffice document, "debbie ooffice" orCode:debbie lp -d printername /home/user/.../filename
"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:
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!)Code:echo "/etc/init.d/cups restart" >> /var/run/onfirstchroot.rc chmod a+x /var/run/onfirstchroot.rc
![]() |
2010-01-26
, 22:21
|
Posts: 172 |
Thanked: 27 times |
Joined on Oct 2009
@ San Francisco, CA
|
#49
|
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
apt-get update apt-get update --fix-missing apt-get install -f apt-get install --reinstall cups cups-client cups-common
![]() |
2010-01-27
, 12:20
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#50
|
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.
[description of how to generate and send files to remote printer]
The Following User Says Thank You to TA-t3 For This Useful Post: | ||
N900 as a Drive Letter in Windows, FULL Root access!!
Maemo! There's a BUG for that!
Cutomize Maemo!
Noobies - Noobies 2 - Maemo 5 - 101
Maemo FAQ