Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    nPrint - simple printing solution for N8X0'rs!

    Reply
    Page 2 of 4 | Prev |   1   2   3     4   | Next
    luso | # 11 | 2009-01-10, 09:43 | Report

    Would it be possible to have a "standard" package to install a printer as it is done in ACER Aspire One? With my Wife's Acer it was very easy to install our Network printer. Acer OS is debian based. To add a printer in this system is similar to the way we do in windows.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    bongo | # 12 | 2009-01-10, 10:39 | Report

    I'll post a first prototype of a gui for nprint later

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qgil | # 13 | 2009-01-10, 12:05 | Report

    By the way, comments, votes and links are welcome at

    Network printing support
    https://bugs.maemo.org/show_bug.cgi?id=3099

    I couldn't find any previous discussion about use cases. It would be good to know why people want to get printing support and what do they actually print from their devices.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    danramos | # 14 | 2009-01-10, 12:47 | Report

    May also want to throw in some compression in there...

    cat $1 | ssh -C $2 '( lpr )'

    Using -C will compress the stream in transit over SSH, it adds some more CPU use on the ITT during the time it sends, but it's likely to shorten the span of time dramatically for printing, since most printing jobs are ASCII heavy and aren't already compressed.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    bongo | # 15 | 2009-01-10, 13:49 | Report

    Here's a first attempt.

    Rename to nprint.py and run with:

    python nprint.py

    or

    python nprint.py filename

    I have no remote system to test this and so I need your feedback.

    Todo:
    - enable save button
    - checkbutton for compression
    - statusbar applet with drag&drop

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Images
     
    Attached Files
    File Type: txt nprint.py.txt (3.2 KB, 119 views)
    The Following User Says Thank You to bongo For This Useful Post:
    qole

     
    bongo | # 16 | 2009-01-10, 14:13 | Report

    Oh, passwords don't work now so you have to copy your rsa key ...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwerty12 | # 17 | 2009-01-10, 14:24 | Report

    Originally Posted by bongo View Post
    Oh, passwords don't work now so you have to copy your rsa key ...
    You can use sshpass to automatically give a password to the ssh password prompt: http://www.internettablettalk.com/fo...5&postcount=20

    Edit | Forward | Quote | Quick Reply | Thanks

     
    bongo | # 18 | 2009-01-10, 14:29 | Report

    Originally Posted by qwerty12 View Post
    You can use sshpass to automatically give a password to the ssh password prompt: http://www.internettablettalk.com/fo...5&postcount=20
    How does this app work? Is it just a replacement binary which calls ssh?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwerty12 | # 19 | 2009-01-10, 14:51 | Report

    Yes, it's a wrapper for ssh which intercepts the ask password prompt.

    Example usage, "sshpass -p p!mp ssh qwerty12@thahustlerz.co.uk"

    The above uses sshpass which runs ssh (scp is supported too etc) to send the password p!mp to the ssh session which is connecting to the user qwerty12 at the thahustlerz site.

    But I need to fix the depends line to change it from ssh to openssh-client | ssh ...

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to qwerty12 For This Useful Post:
    debernardis

     
    z2n | # 20 | 2009-01-10, 16:45 | Report

    Originally Posted by qwerty12 View Post
    Yes, it's a wrapper for ssh which intercepts the ask password prompt.

    Example usage, "sshpass -p p!mp ssh qwerty12@thahustlerz.co.uk"
    I understand your motivation for writing this, and it's well-meaning of you to make it available to the community.

    However, this sets a really example, in that it uses a clear-text password. This is a terrible security practice, even on something like the tablet.

    There's an excellent solution to the "problem" of supplying a password to ssh connections, the ssh-agent program. This has several advantages:

    1. it's already on the tablet (no additional software required)

    2. it's thoroughly tested

    3. it's a standard method, available on virtually any platform that has an ssh client

    4. it doesn't store a clear-text password and no password is available in the environment strings or system memory (a more serious consideration on a multi-user machine)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to z2n For This Useful Post:
    danramos, fattomm, qwerty12

     
    Page 2 of 4 | Prev |   1   2   3     4   | Next
vBulletin® Version 3.8.8
Normal Logout