lp and lpr "stdin is empty"
by lyamimlgnqfa@spammotel.com
I just upgraded to Fedora core 2 from core 1, and now lp and lpr
cannot read from standard input.
[allan@mybox bin]$ /usr/bin/lp < /etc/hosts
lp: stdin is empty, so no job has been sent.
[allan@mybox bin]$ /usr/bin/lp /etc/hosts
request id is laserjet-977 (1 file(s))
Printing a file works, but as you see printing from a pipe was busted,
and so any programs that relied on pipes were SOL. I did notice a
nonexistent printer in the /etc/cups/lpoptions file, and I fixed that.
Strange though that only printing a file works.
I wrote a workaround perl script, and noticing that /usr/local/bin was
in the path before /usr/bin, I put it there as a wrapper for the real
lp and lpr programs. At least I can print now. Any thoughts?
Here is my workaround, I named it lp, and symlinked it to lpr:
> #!/usr/bin/perl
> # -*- cperl -*-
>
> # quick wrapper around lp for stdin bug
> # pedaa_at_rockefeller.edu
> # Time-stamp: <2004-10-29 12:15:44 allan>
> use strict;
> use Carp;
> use File::Temp qw( tempfile );
> use File::Basename qw(basename );
> my $LPEXE = "/usr/bin/".basename( $0 );
>
> # if given stdin, buffer to file, else call prog directly
> unless( defined($ARGV[$#ARGV]) and (-f $ARGV[$#ARGV]) ){
> my $fbuff = new File::Temp( TEMPLATE => 'lpXXXXX',
> DIR => '/tmp',
> SUFFIX => '.cups' );
>
> print $fbuff <STDIN>;
> system( $LPEXE, @ARGV, $fbuff );
> } else {
> exec( $LPEXE, @ARGV );
> }
19 years, 5 months
Re: Problem copying files
by Ian Malone
Tor Harald Thorland <linux(a)mis.no> wrote:
> Hi,
>
> I have tried to copy some files with some norwegian characters in the
> file name.
> FC 2 is not happy with them and keeps complaining that it cannot write
> them.. What can I do to make FC2 accept norwegian characters in
> filenames?
Don't know if I can help, but the people who can probably need to know
more:
Are you doing this from the command line or a filemanager?
Do you have the right permissions? If creating the new file, do you
have write permission for the directory you're copying to? Does the
destination file already exist read-only? (check by ls -lh)
Do you have enough free space (df -h)?
What does
$echo $LANG
say? (Given FC2, hopefully (something).UTF-8 )
What file systems are you copying to and from (at the very least
the output of mount would be useful)?
What are the names of the files in question? I managed:
$ touch Skarphéðinn
$ cp Skarphéðinn /tmp
$ ls /tmp/Skarphéðinn
/tmp/Skarphéðinn
--
imalone
19 years, 5 months
Problems with NFS
by Jose Rafael Carrero Leon
Hi,
I have a machine running in FC2 acting as a NFS server, sometimes the
machine goes down for an unknown reason, when the machine starts
again, and start the server, the clients can't mount the filesystems
and keeps telling me that the server is down.
Why? i've tried everything i though could solve the problem but the
error keeps popping out.
--
root, dioses ... Cual es la diferencia?
-----------------------------------------------------
Jose Rafael Carrero Leon
Linux User #355756
19 years, 5 months
OT: Rejoining video files
by david walcroft
Hi,
Can someone tell me how to rejoin .mpeg/.avi/.mov/.wmv type files,
I have some from a local binaries usenet and to post they split them
up some are 6 sections and have an .eml added,the majority use M$ to OP.
I'm using fc2 and mplayer but know nothing of video.
Thanks david
19 years, 5 months
Default FC2 Swap Space
by Mike Witt
My newly installed FC2 systems is running a lot slower than
I expected. I chose the "default" partitioning scheme suggested
during installation. And fdisk now reports this as:
> # fdisk -l
>
> Disk /dev/hda: 41.1 GB, 41174138880 bytes
> 255 heads, 63 sectors/track, 5005 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 13 104391 83 Linux
> /dev/hda2 14 4981 39905460 83 Linux
> /dev/hda3 4982 5005 192780 82 Linux swap
Isn't that around 188 Meg of swap space? My system has 128 Meg of memory,
and in the past I seem to remember allocation about four times as much
swap space as I had physical memory, with better results.
Am I nuts? Does swap space only need to be the size of physical memory?
I don't really understand the issues here. Advice?
-Mike
19 years, 5 months
Issue on ipsec-tools-0.2.5-1.i386.rpm in FC2
by Park Lee
Hi,
Now I'm using ipsec-tools-0.2.5-1.i386.rpm in my Fedora Core 2 ( with kernel 2.6.5 ).
Today, I saw in IPsec Tools Homepage (http://ipsec-tools.sourceforge.net/), there is a statement which says:
>IMPORTANT: Users of IPsec-tools are strongly recommended to
>upgrade to a version released on or after 2004-04-05. Older versions
>contain a security problem that bites connections authorized with
>X.509 certificates
Then, Does the ipsec-tools-0.2.5-1.i386.rpm in FC2 also has such a security problem? (i.e. has some security fixs been added into the ipsec-tools-0.2.5-1.i386.rpm, and can we use the rpm package with no such a danger? )
And, if I use ipsec-tools-0.3.3-1.i386.rpm instead of ipsec-tools-0.2.5-1.i386.rpm while do not change any other components in my FC2(including FC2 itself), will the update cause any conflict or compatible issue to my FC2 box? (i.e. Can I use ipsec-tools-0.3.3-1.i386.rpm in my FC2 box safely? )
Thanks a lot.
--
Best Regards,
Park Lee <parklee_sel(a)yahoo.com>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
19 years, 5 months
playing DVD with combo drive
by ashwin kesavan iyengar
Hi,
I downloaded xine player. It works fine with VCD but says error
when DVD is played(something like drive not found). My DVD drive is
actually a combo drive(CD-R,RW,ROM,DVD-ROM). My combo drive is
LG-GCC-4521B. It is able to show the contents of the dvd. There was no
/dev/dvd file in the /dev. The combo drive is indicated by cd-rom1. I
hav another cd-rom drive which is shown as cd-rom. The combo drive is
shown as /dev/hdc. how to play dvd with xine.
Thank you,
with regards,
ashwin
19 years, 5 months
Is it worth it?
by Duncan Williamson
Dear All,
Over the last three days I have created around 10 CD ROMS and one DVD in my
attempt to try Linux on one or all of my three computers:
P2 MMX 200Mhz 82 Mb memory
AMD Duron 1000Mhz 256 Mb memory
P4 Laptop 2000Mhz 512 Mb memory
No success at all worth noting.
The PII has most problems, as one might expect.
SUSE and SUSE Live DVD have failed yet I thought SUSE Live DVD would be the
answer: booting from the DVD and running without installation. The AMD
computer ran the DVD but had a Kernel failure problem as it told me it had
run out of memory (it's got 256Mb installed). The Live DVD will not even
kick in on the laptop, 512Mb memory installed; and I didn't even bother with
the P2 as far as the Live DVD is concerned.
Having failed with both P2 and AMD machines, I then got Fedora running on
the Laptop up to the point where we needed to discuss a disc partition but
then either it or I couldn't fathom the next step: I wanted it to do the
partitioning for me.
I don't know why I'm having so many problems and would welcome any tips
anyone might have. I am attracted to Linux following the successes that many
of you are enjoying. I have worked through tutorials and demonstrations of
Gnome and am aware of OpenOffice, Gimp and goodness knows what else.
So, in the end I'm left with a 2003 version of Mandrake Linux to dump onto
CD from ISO images but is it worth? Can I ever get Linux installed anywhere?
My real ambition is to get Linux working on the P2 since the other two
computers are too important to experiment on until I am happy with what I am
doing.
TIA if you can.
Duncan Williamson
19 years, 5 months
RE: FC2 authentication with Active Directory
by Jim Parker
I thought I was following all the very different procedures, but no luck
on log in. I could query LDAP if I supply a user name/password when
prompted. Also, I can authenticate with Kerberos and join a domain, but
it doesn't retain a Kerberos ticket.
The reason I'm asking about all this is so that I can use a single log
on for all the different systems (UNIX, Solaris, Windows, and of course
FC2 workstations) we have.
Again, all the help you can provide is very much appreciated.
Jim
-----Original Message-----
From: fedora-list-bounces(a)redhat.com
[mailto:fedora-list-bounces@redhat.com] On Behalf Of Charles Heselton
Sent: Sunday, October 31, 2004 10:58 AM
To: [LINICKX]; For users of Fedora Core releases
Subject: Re: FC2 authentication with Active Directory
On Sun, 31 Oct 2004 16:43:06 +0000, [LINICKX] <linickx(a)gmail.com> wrote:
> I'd like to see your howto , i've tried this a number of times (using
> various documentation) but never succeeded :-(
>
> cheers.
>
>
>
>
> On Sun, 31 Oct 2004 16:18:38 +0100, Klaasjan Brand
<klaasjan(a)gmail.com> wrote:
> > Don't know if this helps, but I've set up windows domain
> > authentication on a RHEL3 server by using the winbind module of
samba.
> > There's a lot of documentation about that in the samba package.
> > Shortly, you can configure samba to join a domain and install a pam
> > module that uses the samba-provided credentials to authenticate
system
> > users.
> > If anyone needs a detailed description I probably should write a
howto ;)
> >
> > --
> > fedora-list mailing list
> > fedora-list(a)redhat.com
> > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> >
>
> --
> fedora-list mailing list
> fedora-list(a)redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>
I'd love to see a "How-to" as well. All of the documentation that
I've read states that there are problems with Samba 3.x and Windows
2003 (works fine with Win2K). The most recent article I've read was
about v3.0, so I don't know if the Samba developers have fixed those
outstanding issues with Win2K3 in more recent versions or not.
--
Charlie Heselton
Network Security Engineer
--
fedora-list mailing list
fedora-list(a)redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
19 years, 5 months
Two 3Com ethernet NIC : don't work
by Alex
In my home pc (a P-III 933 MHz) is installed since 1
year an ethernet card 3C905C Tornado and it works fine
with Windows XP and Fedora Core 2.
Now I need (for some simple network experiment) to
install a second nic, a 3C905B Cyclone.
With Windows XP no problem: this OS configure these
two nic without any error.
But with FC2 (kernel 2.6.5) I can't use the second nic
(eth1).
The 3c59x driver (compiled as module or compiled
static in kernel) detects right two nic:
----snip----
3c59x: Donald Becker and others.
www.scyld.com/network/vortex.html
0000:02:0b.0: 3Com PCI 3c905B Cyclone 10/100/BNC at
0x2800. Vers LK1.1.19
0000:02:0d.0: 3Com PCI 3c905C Tornado at 0x2c00. Vers
LK1.1.19
------------
I can use only eth0 device and always is the 3C905C
Tornado.
Any access to eth1 (simple "ifconfig" or else as
"ifup" and "ifdown" after set
/etc/sysconfig/network-script/ifcfg-eth1) says:
----------
SIOCSIFADDR: No such device
eth1: unknown interface: No such device
eth1: unknown interface: No such device
----------
The same message with driver compiled as module or
static.
If I remove from PC the 3C905C , the new 3C905B is
detected and is configured correctly as eth0 and it
works fine.
I've added in "/etc/modprobe.conf" the line "alias
eth1
3c59x" without success.
I've also physical swapped in PCI bus the cards
without success.
I've removed these nic and I've installed (thanks to
my friend) two Intel nic: they works correctly without
any problem. Kernel detect and use eth0 and eth1
without any problem.
So, what's wrong with my two 3C905B/C ?
Someone can help me ?
Thanks in advance.
___________________________________
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica
Scaricalo ora!
http://it.messenger.yahoo.it
19 years, 5 months