Re: [gentoo-user] bypassing CUPS - howto

2010-04-29 Thread Stroller


On 28 Apr 2010, at 15:27, Helmut Jarausch wrote:

...
Why do you need to bypass CUPS?


Thanks, it's just for debugging.

Printing some pdf files with acroread makes some printers
hang here.
To locate the problem source, I'd like to check if the printer
works if it gets the postscript or pdf-file (there printer is assumed
to accept postscript level 3).


Have you tried using `lpr` at the command line?

I *believe* something like `lpr /path/to/file.pdf` should work.

Stroller.




Re: [gentoo-user] bypassing CUPS - howto

2010-04-29 Thread Helmut Jarausch
On 29 Apr, Stroller wrote:
 
 On 28 Apr 2010, at 15:27, Helmut Jarausch wrote:
 ...
 Why do you need to bypass CUPS?

 Thanks, it's just for debugging.

 Printing some pdf files with acroread makes some printers
 hang here.
 To locate the problem source, I'd like to check if the printer
 works if it gets the postscript or pdf-file (there printer is assumed
 to accept postscript level 3).
 
 Have you tried using `lpr` at the command line?
 
 I *believe* something like `lpr /path/to/file.pdf` should work.
 

Thanks, but lpr is just a front-end for cups.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



[gentoo-user] acroread-9.3.2 produces invalid postscript?

2010-04-29 Thread Helmut Jarausch
Hi,

I have very bad experience with acroread-9.3.2.
Some printers (claiming to support postscript level 3) just hang.
When I first 'print' to a file,
gv only shows some part of each page and evince just hangs.

Has anybody similar experience?

(Yes, I can use xpdf, but acroread has the nice feature of printing
several pages on a sheet of paper which is very handy when printing
slides of a presentation)

Thanks,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] bypassing CUPS - howto

2010-04-29 Thread Dale

Helmut Jarausch wrote:

On 29 Apr, Stroller wrote:
   

On 28 Apr 2010, at 15:27, Helmut Jarausch wrote:
 

...
Why do you need to bypass CUPS?
 

Thanks, it's just for debugging.

Printing some pdf files with acroread makes some printers
hang here.
To locate the problem source, I'd like to check if the printer
works if it gets the postscript or pdf-file (there printer is assumed
to accept postscript level 3).
   

Have you tried using `lpr` at the command line?

I *believe* something like `lpr /path/to/file.pdf` should work.

 

Thanks, but lpr is just a front-end for cups.

   


I tried that here and got a error.  It may be a bad setting on my end 
but it didn't like the idea.


r...@smoker ~ # lpr /data/pdf/LivingWill.pdf
lpr: Unsupported format 'application/pdf'!
r...@smoker ~ #

Dale

:-)  :-)



[gentoo-user] No /dev/sd? devices. Udev problem?

2010-04-29 Thread Alex Schuster
Hi there!

I just migrated a friend's machine to ~am64. Everything was updated, but 
after a reboot some partitons are not found. No wonder, there are no 
/dev/sd? devices, only /dev/sg?. I suspect the problem is udev, because 
that was updated. Root is encrypted, so this machine makes use of an 
initramfs. At that point, all devices are found, so the system comes up, 
but later mounting of data partitions fails due to the missing devices.

Any idea what the cause is? I will try to downgrade udev and see what 
happens. I have to wait for my friend to arrive here though, because I do 
not know the LUKS password. So I thought I'd ask here first, maybe someone 
knows this problem.

Wonko



Re: [gentoo-user] backup to a cold-swap drive

2010-04-29 Thread Alex Schuster
Iain Buchanan writes:

 A winblows colleague said he uses a utility to backup his internal hard
 drive to an external disk, such that if his internal disk fails he can
 replace it with the external disk and continue straight away.

I do the same, but with a 2nd internal drive. The drive is partitioned 
similar, with some partitions being a bit larger so I can do incremental 
backups, too.

I am using rdiff-backup, which makes use of rsync. The backup partition 
has exactly the same contents as the source partition, except for an 
additional 'rdiff-backup' directory that contains incremental backups of 
files that were modified from backup to backup, gzipped.

Some other partitions are handled differently: /boot is just being dd'ed, 
contents of /usr/src are tarred each, and /var/portage/packages/ is just 
plain rsynced. Some unnecessary stuff like .ccache and /var/tmp/portage is 
excluded.

All my partitions are LVM volumes, so before the backup starts, I make a 
LVM snapshot of the partition. This way I can modify it while the backup 
is still in progress.

I wrote a shell script to do this, so I do not have to issue a lot of 
commands every time I want to do the backup. As there are now some others 
using this script, adapted to their needs, I started to rewrite it in a 
way that it reads a config file, and no modification of the script itself 
is necessary. If anyone is interested, send me an email.


Some time ago my first drive started having bad blocks. Without LVM, I 
could just have swapped the disks, but so I had to rename the backup 
volume group to the original volume group from a live cd. And the system 
was running from the new drive as it was before - only that I no longer 
had a backup until the new drive arrived. This makes an uneasy feeling 
with these 1.5 TB drives.

Wonko



Re: [gentoo-user] acroread-9.3.2 produces invalid postscript?

2010-04-29 Thread Willie Wong
On Thu, Apr 29, 2010 at 11:19:13AM +0200, Helmut Jarausch wrote:
 I have very bad experience with acroread-9.3.2.
 Some printers (claiming to support postscript level 3) just hang.
 When I first 'print' to a file,
 gv only shows some part of each page and evince just hangs.
 
 Has anybody similar experience?
 
 (Yes, I can use xpdf, but acroread has the nice feature of printing
 several pages on a sheet of paper which is very handy when printing
 slides of a presentation)

Not a solution: I've given up on using acroread long time ago. But I
am pretty sure that evince can also print multiple pages per sheet,
and since you mentioned it earlier: why not use it instead?

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] Re: Print server with hplip

2010-04-29 Thread Grant
 I've been using a print and scan server with an Epson printer/scanner
 for a long time.  I'm trying to set up the same thing with an HP and
 I've got everything working except remote printing.  Local printing,
 local scanning and remote scanning work, but not remote printing.  I
 have the client's IP in /etc/cups/cupsd.conf and the server's IP in
 /etc/cups/client.conf but the client won't pick up the server's HP for
 printing.

 Could there be any extra configuration required for remote printing
 when switching from gutenprint (I think) to hplip?  I had to add saned
 to the lp group on the server before I could get remote scanning to
 work (not required with the Epson), and I'm wondering if there could
 be a similar detail I'm overlooking with remote printing.

 - Grant

I guess hplip uses something called JetDirect for network printing.
hplip in general seems to want to do things its own way.  I don't
think I'll bother with it.  I'm going to get rid of this HP and get an
Epson anyway since scan quality is sub-par.

- Grant



Re: [gentoo-user] vmware-server performance

2010-04-29 Thread Stefan G. Weichinger
Am 18.03.2010 22:16, schrieb Stefan G. Weichinger:
 Am 13.03.2010 19:25, schrieb Stefan G. Weichinger:
 
 If you are on linux soft raid you might check your disks for errors
 with smartmontools.  Other than that the only thing I can think of is
 something like a performance regression in the ide/scsi/sata
 controller (on host or virtual) or mdadm on host.  If the host system
 is bogged before starting vmware instances I would suspect the former
 (host controller or mdadm).

 The disks look good so far ...
 
 Just to bump this one up again ...
 
 Hard disks OK, ran long smart-tests, completely ok.
 
 Still that high io-load from kdmflush.

No change since then.

What do you guys use? RAID1, RAID0 ?? LVM? Specific filesystems?
I could also transfer it to another box using NFSv4 ... but that wasn't
much difference back then.

I would like to hear your thoughts, thanks, Stefan



[gentoo-user] Is my data gone?

2010-04-29 Thread dhk
While setting up a new disk I accidentally ran mke2fs /dev/sda1
instead of mke2fs /dev/hda1.  When I realized the mistake (about 2
seconds later) I hit Ctrl-C before mke2fs was done.  Now I can't mount
the drive.  Is there a way to read the drive to get the data off or is
it unrecoverable?

Thanks,

dhk



Re: [gentoo-user] Is my data gone?

2010-04-29 Thread Alan McKinnon
On Friday 30 April 2010 00:43:41 dhk wrote:
 While setting up a new disk I accidentally ran mke2fs /dev/sda1
 instead of mke2fs /dev/hda1.  When I realized the mistake (about 2
 seconds later) I hit Ctrl-C before mke2fs was done.  Now I can't mount
 the drive.  Is there a way to read the drive to get the data off or is
 it unrecoverable?


For all practical intents and purposes, and for all reasonable values of 
effectively, your data is effectively gone.

Money, lots of money, could tip the sales in your favour.

This is why you made backups. You did make backups, right?

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Is my data gone?

2010-04-29 Thread dhk
On 04/29/2010 06:53 PM, Alan McKinnon wrote:
 On Friday 30 April 2010 00:43:41 dhk wrote:
 While setting up a new disk I accidentally ran mke2fs /dev/sda1
 instead of mke2fs /dev/hda1.  When I realized the mistake (about 2
 seconds later) I hit Ctrl-C before mke2fs was done.  Now I can't mount
 the drive.  Is there a way to read the drive to get the data off or is
 it unrecoverable?
 
 
 For all practical intents and purposes, and for all reasonable values of 
 effectively, your data is effectively gone.
 
 Money, lots of money, could tip the sales in your favour.
 
 This is why you made backups. You did make backups, right?
 

The disk was for video so I do have the tapes around, but I lost my
current edits.  Finished products were burned to disk.  Most of the data
was stuff I finished and was trying to decide what to do with, guess
that decision's been made.  Hopefully I'll never have to recreate them.

Anyway to pick up the disk from the middle?  I really don't want to go
through the tapes and download them again.

Thanks,

dhk



Re: [gentoo-user] Is my data gone?

2010-04-29 Thread Paul Hartman
On Thu, Apr 29, 2010 at 5:43 PM, dhk dhk...@optonline.net wrote:
 While setting up a new disk I accidentally ran mke2fs /dev/sda1
 instead of mke2fs /dev/hda1.  When I realized the mistake (about 2
 seconds later) I hit Ctrl-C before mke2fs was done.  Now I can't mount
 the drive.  Is there a way to read the drive to get the data off or is
 it unrecoverable?

Before attempting anything I would clone the drive to a spare and then
attempt recovery on the clone. (because sometimes trying to fix it can
just make things worse).

You can try something like testdisk, and of course try fsck first. Or
one of many commercial programs such as those listed here which
probably do the same thing as testdisk:

http://unformat-ext2.qarchive.org/

There's no simple unformat command or anything that I know of,
though. Sorry :(



[gentoo-user] Re: Is my data gone?

2010-04-29 Thread Tobias Reichl
Hi,

sorry for replying directly to you and not to the mailing list, but I 
read through gmane, so technically I'm not a list member. Feel free to 
reply to the mailing list.

 On Friday 30 April 2010 00:43:41 dhk wrote:
 While setting up a new disk I accidentally ran mke2fs /dev/sda1
 instead of mke2fs /dev/hda1.  When I realized the mistake
 (about 2 seconds later) I hit Ctrl-C before mke2fs was done.
 For all practical intents and purposes, and for all reasonable
 values of effectively, your data is effectively gone.
 Money, lots of money, could tip the sales in your favour.
 This is why you made backups. You did make backups, right?

Thinking about that, do you know if there's a way to make backups of 
the superblock to a file? In cases like this it might be possible to 
recover access to most of the data, if one is quick...

Ciao

TCr
-- 
Tobias Reichl n...@c82.de



[gentoo-user] Can't resolve package blocks

2010-04-29 Thread Ajai Khattri


I have unmerged ffmpeg, libraw1394 and libdc1394 and I still can't resolve 
this block:


[nomerge  ] media-video/ffmpeg-0.5_p20373  USE=X alsa amr encode 
hardcoded-tables ieee1394 ipv6 network theora threads vorbis x264 zlib 
(-3dnow) (-3dnowext) -altivec -bindist -cpudetection -custom-cflags -debug 
-dirac -doc -faac -faad -gsm -jack -jpeg2k (-mmx) (-mmxext) -mp3 -oss -pic 
-schroedinger -sdl -speex (-ssse3) -test -v4l -v4l2 -vdpau -xvid 
VIDEO_CARDS=(-nvidia)  [0]

[ebuild  N]  media-libs/opencore-amr-0.1.2  849 kB [0]
[ebuild  N]  sys-libs/libraw1394-2.0.4  368 kB [0]
[nomerge  ] x11-libs/gtk+-2.18.7 [2.16.6] USE=cups jpeg tiff (-aqua) 
-debug -doc -jpeg2k -test -vim-syntax -xinerama (-X%*)  [0]
[ebuild  N]  media-libs/tiff-3.9.2-r1  USE=cxx jpeg zlib -jbig 1,387 
kB [0]

[ebuild  N]   media-libs/jpeg-8a  951 kB [0]
[blocks B ] media-libs/libdc1394-1.2.2 (media-libs/libdc1394-1.2.2 
is blocking sys-libs/libraw1394-2.0.4)


Total: 79 packages (68 upgrades, 10 new, 1 in new slot, 6 uninstalls), 
Size of downloads: 174,892 kB

Conflict: 13 blocks (1 unsatisfied)
Portage tree and overlays:
 [0] /usr/portage
 [?] indicates that the source repository could not be determined

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  ('ebuild', '/', 'media-libs/libdc1394-1.2.1', 'merge') pulled in by
media-libs/libdc1394 required by ('ebuild', '/', 
'media-video/ffmpeg-0.5_p20373', 'merge')


  ('ebuild', '/', 'sys-libs/libraw1394-2.0.4', 'merge') pulled in by
sys-libs/libraw1394 required by ('ebuild', '/', 
'media-video/ffmpeg-0.5_p20373', 'merge')
=sys-libs/libraw1394-0.9.0 required by ('ebuild', '/', 
'media-libs/libdc1394-1.2.1', 'merge')





--