Epson XP-820 Print To CD From Jessie

Has anyone had any luck with the Epson XP-820 print to CD function? I
recently acquired one after having used their R-320, which also prints to CD, for years. Unfortunately this one doesn’t seem to work.

The printer driver seems to work nicely, allowing me to select print to CD/DVD easily but when it tries to print, it spits out the CD tray then asks me to insert a single sheet of paper. If I push the tray back in, it just gives me an error message.

If I use the printer panel to select print on CD, it asks me to insert a memory card.

The CUPS test page prints nicely, even double-sided, on normal paper showing even borders around the page.

Any ideas?

1 Comment


Libc6-i386 Vs Libc6:i386 (for Vpn Client)

Judging from https://wiki.debian.org/Multiarch/HOWTO, which doesn’t seem current but is all I could find, if I’m on the amd64 architecture and want to support i386 I should expect to get packages like libc6:i386. There are a number of other packages that seem to have versions for 32 bit without needing to specify an architecture suffix, e.g. lib32z1 (32 bit version of zlib1g I think).

Further, I have those packages though I don’t think I installed them explicitly.

Finally, I have not issued the command dpkg –add-architecture i386
though the wiki made it sound as if I would need to to get 32 bit libs.

Could anyone explain what is going on and what I need to do so I can run a 32 bit app? I’m trying to install Juniper Networks proprietary client, which includes a 32 bit library binary without the source.

Thanks. Ross Boylan

No Comments


Exim Config: Possible To Use AUTH *only* On Port 587?

List, good evening,

Been setting up Exim and Dovecot to work together. Inbound mail is working, stored in maildirs and served by Dovecot using IMAP over SSL.
Exim is also working as an authenticated (only) relay for when our users want to send or reply to email while offsite, and set up so that authentication is *only* capable when TLS is used (so that passwords are not transmitted in clear), and authentication is validated by Dovecot, not Exim. So far, so good.

But TLS, Authentication and Relay-if-authenticated is available on port 25 (only port 25, at the moment, I haven’t yet configured Exim to listen on 587).

I don’t want to have the system capable of accepting AUTH on port 25.
I do need to configure Exim to use 25 for inter-MTA mail, and I’d like to *disable* AUTH on port 25 whilst still allowing STARTTLS for any peer MTAs that wish to use it. I’d like to use 587 as the mail submission port (ie, from MUAs), allow (insist, I’d prefer) TLS, and only allow AUTH on 587 after an enciphered link is set up (this last aspect is standard in Exim 4.80, the release version in Wheezy).

Summarising:

Port 25:
SMTP, STARTTLS, no AUTH, no relay Port 587:
SMTP, STARTTLS, AUTH if encrypted, relay if authenticated

I cannot see how to do this. My reading of the Exim config options is that we can have:

SMTP, STARTTLS, AUTH only over encrypted, relay only if authenticated, but

that config has to be the same on all enabled ports. The port enabler is (for example):

daemon_smtp_ports = 25 : 587

which doesn’t seem to allow a different set of ‘capabilities’ on different ports.

Does anyone using Exim know of a way to achieve the AUTH and relay capability I want but only on 587?

[I realise there is a specialist Exim list in Debian and I'm happy to ask there if folk here think that would be more appropriate.]

Grateful for any replies, regards, Ron

No Comments


Installation Of Wheezy On A Dell Latitude E6320 [SSD Only]

Hello dear Debian user reading me,

I’ve been struggling with this configuration for the past few days (2,5)
before I decide to post here. Hopefully this will be the right place?!

So here are the physical elements of my story:
Machine => Dell Latitude E6320
With a single SSD such as :
Model Family: JMicron based SSDs Device Model: KINGSTON SVP100S2128G
Serial Number:
Firmware Version: CJRA0202

The Goal: Installation of Debian Wheezy on a single SSD (No HDD available)

Issue: Under ‘heavy’ file system activity like aptitude installation of larger packet let say for instance Xorg or whatever. The system then fall into a kind of lockup with numerous sda2 (ext4)I/O errors and even powerdown button can’t be used for the shutdown unless keeping it pressed…Let says the fs goes into survive mode like ro and therefore not much can be done then!
On next reboot everything seems OK unless attempting same intensive fs manipulation.




Abstract of captured events:
# dmesg

4012.906597] Buffer I/O error on device sda2, logical block 10418
[ 4012.907406] Buffer I/O error on device sda2, logical block 10419
[ 4012.908218] Buffer I/O error on device sda2, logical block 10420
[ 4012.909028] Buffer I/O error on device sda2, logical block 10421
[ 4012.909846] Buffer I/O error on device sda2, logical block 10422
[ 4012.910651] Buffer I/O error on device sda2, logical block 10423
[ 4012.911463] Buffer I/O error on device sda2, logical block 10424
[ 4012.912284] EXT4-fs warning (device sda2): ext4_end_bio:250: I/O
error -5 writing to inode 1572892 (offset 1728512 size 225280 starting block 135353)
[ 4012.912318] sd 0:0:0:0: [sda] Unhandled error code
[ 4012.912324] sd 0:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET
driverbyte=DRIVER_OK
[ 4012.912333] sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 00 10 89 a8 00 00
98 00
[ 4012.912356] end_request: I/O error, dev sda, sector 1083816
[ 4012.913239] Buffer I/O error on device sda2, logical block 10549


Installation procedure:
Downloaded and burned to USB drive then booted a “Live” version debian-7.7.0-amd64-netinst.iso. DISTRIB_ID

No Comments


Creating A Peculiar Live-CD

In common conversation, “peculiar” can mean either “unique” or
“strange/unusual”. I’m using it in *both* senses.

I’m working on understanding how to use debootstrap and/or multistrap. In another forum I was asked a question that initially appeared to be out of context. It got me thinking about unstated assumptions.

When booted to the CD it will run only a specific program. On exit the CD will be ejected and the hardware will power down. I
can see how I would have accomplished this on my old S-100 system running CPM-80. How do I approach this with Debian based tools. All tools used must run under Squeeze.

5 Comments


Command Line Wifi Tooling

Not sure if you’re looking for cli or ncurses.

I always just do:
nmcli dev wifi # list APs)
nmcli con “” password “

That assumes networkmanager – I’m sure installer probably uses iwlist
scan and then either iwconfig or wpa_supplicant/wpa_passphrase though.

No Comments


Replacing Systemd In Jessie

It seems systemd cannot not be installed in Jessie. It can only be replaced once first installed unless one wishes to create a custom CD with another init. I don’t. Even preseeding won’t accomplish this. Recommended preseeding procedures I’ve seen just automate the replacement process.

Now the strange thing: I’ve done some research, and it seems that all the init replacement procedures start with first replacing systemd with sysvinit, then proceeding with replacing sysvinit with the desired init. Anyone have info or instructions to the contrary? I’d like to be able to just install the desired init without an intermediate step.

I’m concerned specifically with runit.

Thanks.

B

,

5 Comments


Linux Entropy Pool / Random Number Benchmark

debian-user:

I found some informative articles about Linux and the Intel Secure Key processor feature:

https://software.intel.com/en-us/articles/performance-impact-of-intel-secure-key-on-openssl

http://blog.cloudflare.com/ensuring-randomness-with-linuxs-random-number-generator/

It appears that openssl gives you direct access to Secure Key, while the Linux kernel uses Secure Key to stir an entropy pool that is fed into SHA-1 to produce random numbers. So, openssl and /dev/random should show speed improvements on a processor with Secure Key, and /dev/urandom should have better entropy.


Below please find a Perl script for benchmarking the Linux entropy pool and random numbers, and two sample runs on a Wheezy 7.7 i386 machine with a Pentium 4 3.4E GHz HT processor (does not have Secure Key):

1. The first run was with an idling machine and a low entropy pool to begin with.

2. The second run was started after rapidly typing random garbage into another terminal and continuing to type during the run.


Could somebody with a Secure Key processor please run the script and post the results?


David


$ cat `which entropy-random-bench `
#!/usr/bin/perl

eval ‘exec /usr/bin/perl -S $0 ${1+”$@”}’
if 0; # not running under some shell
# $Id: entropy-random-bench,v 1.7 2014/11/27 21:58:22 dpchrist Exp $
#######################################################################
# Argument defaults — edit to suit:

my $entropy = ‘/proc/sys/kernel/random/entropy_avail’;
my $random = ‘/dev/urandom’;
my $duration = 60.0; # seconds my $entropy_upper = 4095; # bits my $entropy_lower = 0; # bits my $nap_upper = 10.0; # seconds my $nap_lower = 1.0E-06; # seconds my $gain = 10.0; # seconds / bit

#######################################################################
# The rest of the script should not be edited:

use strict;
use warnings;

use Getopt::Long qw(
:config
auto_help
auto_version
);
use Pod::Usage;
use Time::HiRes qw( sleep time );

$| = 1;

our $VERSION = sprintf(“%d.%03d”, q$Revision: 1.7 $ =~ /(\d+)/g);
my $man;

GetOptions(
“entropy=s” => \$entropy,
“random=s” => \$random,
“duration=f” => \$duration,
“entropy-upper=f” => \$entropy_upper,
“entropy-lower=f” => \$entropy_lower,
“nap-upper=f” => \$nap_upper,
“nap-lower=f” => \$nap_lower,
“gain=f” => \$gain,
“man” => \$man,
) or pod2usage(2);
pod2usage(-exitstatus => 0, -verbose => 2) if $man;

my $entropy_span = $entropy_upper – $entropy_lower;
my $entropy_setpoint = $entropy_upper / 2;
my $nap_span = $nap_upper – $nap_lower;
my $nap_offset = $nap_upper / 2;

my $err;
my $buf;
my $e1;
my $e2;
my $t1;
my $t2;
my $rate;
my $dt;
my $signal;
my $nap = $nap_lower;
my $lastprint;

open(my $random_fh, $random) or die “error opening $random: $!”;
$err = sysread($random_fh, $buf, 1);
die “error reading $random: $!” unless defined $err && $err;

### /proc/sys/kernel/random/entropy_avail is not world-readable, but
### ‘cat’ can read it (?)
$e1 = `cat $entropy`;
chomp $e1;

print “time (seconds) entropy (bits) random (bytes/second)\n”,
“============== ============== ======================\n”;
my $begin = $lastprint = $t1 = time();
my $end = $begin + $duration;
do {
sleep($nap);

$err = sysread($random_fh, $buf, 1);
die “error reading $random: $!” unless defined $err;

$e2 = `cat $entropy`;
chomp $e2;

$t2 = time();
$dt = $t2 – $t1;
$rate = 1.0 / $dt;
if ($dt && ($lastprint + 1 < $t2)) {
$lastprint = $t2;
printf "%14.06f %14i %22.6f\n",
$t2 - $begin,
$e2,
$rate;
}
$signal = ($e2 - $entropy_setpoint) / $entropy_span;
$nap = -1.0 * $gain * $signal * $nap_span + $nap_offset;
$nap = $nap_lower if $nap < $nap_lower;
$nap = $nap_upper if $nap_upper < $nap;
$e1 = $e2;
$t1 = $t2;
} while ($t2 < $end);
DONE:

__END__

=head1 NAME

entropy-random-bench – Linux entropy pool / random number benchmark

=head1 SYNOPSIS

entropy-random-bench.pl [options]

Options:
–entropy path to entropy availble file
–random path to random number file
–duration duration of benchmark
–entropy-upper upper range value of entropy available
–entropy-lower lower range value of entropy available
–nap-upper upper range value for sleep() calls
–nap-lower upper range value for sleep() calls
–gain timing loop proportional gain
–man print manual page and exit
–help, -? print usage message and exit

=head1 DESCRIPTION

Interactive benchmark for Linux entropy pool and random number generator.

$Revision: 1.7 $

=head1 SEE ALSO

=head1 AUTHOR

David Paul Christensen, Edpchrist@holgerdanske.comE

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2014 by David Paul Christensen

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.

=cut

#######################################################################



$ entropy-random-bench ### idle machine time (seconds) entropy (bits) random (bytes/second)
============== ============== ===================== 10.003986 190 0.099976
20.005911 159 0.099981
30.007754 180 0.099982
40.009608 144 0.099981
50.011433 176 0.099982
60.013297 142 0.099981



$ entropy-random-bench ### typing random garbage in another terminal time (seconds) entropy (bits) random (bytes/second)
============== ============== ===================== 10.003555 2255 0.099981
13.066172 2182 0.326710
14.783609 2213 0.582263
17.803266 2195 0.485620
19.203198 2162 0.714320
21.409027 2198 0.453344
22.735703 2163 0.753764
24.917697 2217 0.458296
29.719910 2248 0.253836
32.861674 2249 0.329366
36.003314 2242 0.326750
39.169400 2253 0.343177
43.820115 2293 0.215147
45.954385 2212 0.468938
49.291394 2211 0.425120
50.300629 2154 0.990849
52.701802 2223 0.416463
57.431105 2269 0.249201
60.151455 2239 0.367843

No Comments


_netdev With Wpa_supplicant Dependency Doesn’t Work At Shutdown

Hello,

I’m trying to solve my own reported bug [1]

When I add a curlfs fstab entry via wifi (wpa_supplicant), it get mount at boot, but it does not umount when system is halting / at shutdown. Wpa_supplicant stop before than curlftpfs umount the mount point (xx.mount).

I have been playing with “After / Before /Requires” parameters both, but I’m getting tired .. I’m not able to make it work :(

What I have tried:

1. Modify fstab-generator , so xx.mount depends on :
1.1 network-online.target
1.2 wpa_supplicant.service

2. Modify wpa_supplicant.service, so depends on:
2.1 xx.mount
2.2 remote-fs.target

Do you have any hint about this issue ? How can I get it working ?

How can I say to systemd about not stop wpa_supplicant until xx.mount is umounted ??

Thank you very much
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bugv9186

No Comments


Aa-logprof/aa-genprof Not Working After Jessie Upgrade

Hi everyone,

I recently upgrade to jessie. I noticed now that aa-logprof/aa-genprof
(for apparmor) stopped working. When I try to create a new profile with aa-genprof it doesn’t add any rules while I see them in the logs. Same with aa-logprof (both worked just fine in wheezy) . I don’t know how to debug this further. Is this a bug in the jessie packages or did I miss something in the upgrade progress?

Cheers, Simon

No Comments