Reply
Thread Tools
Posts: 132 | Thanked: 30 times | Joined on May 2007 @ Portugal
#11
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.
 
bongo's Avatar
Posts: 291 | Thanked: 124 times | Joined on Feb 2006 @ Trier, Germany
#12
I'll post a first prototype of a gui for nprint later
__________________
ongo bongo!
 
qgil's Avatar
Posts: 3,105 | Thanked: 11,088 times | Joined on Jul 2007 @ Mountain View (CA, USA)
#13
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.
 
danramos's Avatar
Posts: 4,672 | Thanked: 5,455 times | Joined on Jul 2008 @ Springfield, MA, USA
#14
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.
 
bongo's Avatar
Posts: 291 | Thanked: 124 times | Joined on Feb 2006 @ Trier, Germany
#15
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
Attached Images
 
Attached Files
File Type: txt nprint.py.txt (3.2 KB, 115 views)
__________________
ongo bongo!
 

The Following User Says Thank You to bongo For This Useful Post:
bongo's Avatar
Posts: 291 | Thanked: 124 times | Joined on Feb 2006 @ Trier, Germany
#16
Oh, passwords don't work now so you have to copy your rsa key ...
__________________
ongo bongo!
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#17
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
 
bongo's Avatar
Posts: 291 | Thanked: 124 times | Joined on Feb 2006 @ Trier, Germany
#18
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?
__________________
ongo bongo!
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#19
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 ...
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 109 | Thanked: 91 times | Joined on Dec 2007
#20
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)
 

The Following 3 Users Say Thank You to z2n For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:12.