print preview problem with KDE 3.1

2003-07-20 Thread Shlomo Solomon
Hi,

To be honest, I'm not sure when this started or if this problem has **always** 
existed on my system. When I use print preview , I can only see text, but not 
graphic items. However, if I ignore that and allow the item to be printed on 
paper or to a virtual printer (fax modem), the printed page is OK.

This happens whether I allow the built-in preview to run or enable an external 
program (I tried gv). 

As I write this, I did more testing and I now see that the same problem exists 
when I try to output the print job to a ps file. The text is OK but no 
graphic items. I'm pretty sure this is related since kghostscript (the KDE 
default built-in viewer) is actually viewing the ps file before sending it to 
the printer.

any ideas?

TIA


-- 
Shlomo Solomon
http://come.to/shlomo.solomon
Sent by KMail (KDE 3.1) on LINUX Mandrake 9.1



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Attaching a driver name to eth-n

2003-07-20 Thread Ehud Karni
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 18 Jul 2003 23:13:12 +0300, Itay 'z9u2K' Duvdevani <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> I am looking for a way to do these two:
> 1. Finding out how many eths the system have (eth0, eth1 ... ethn)
> 2. Knowing the string of each eth as shown in lspci
> 
> I'm trying to write an app that will output something like:
> # ./geteths
> You have 2 ethernet cards,
> eth0: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
> eth1: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
> 
> Thought about counting the number of times the string 'Ethernet controller' 
> appears in lspci, that should give me the number of eths, shouldn't it?
> 
> But how will I know the correct string for each eth?
> is the eth numbering is as their order on the bus so that the first occurrence 
> of 'Ethernet controller' will hold the string for eth0, the second one for 
> eth1 etc?

Do grep -C1 Eth /proc/pci to find all (pci) NICs descriptions and
their IRQ.

You can correlate it with the output of ifconfig (it has the IRQ for
each working NIC).

I'm not sure, but I think the NICs order in /proc/pci is the eth
order (it seems so on several machines with more than one NIC).

BTW. You can run this as unprivileged user (unlike mii-tool or lspci).

Ehud.


- -- 
 Ehud Karni   Tel: +972-3-7966-561  /"\
 Mivtach - Simon  Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:[EMAIL PROTECTED]  Better  Safe  Than  Sorry
-BEGIN PGP SIGNATURE-
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQE/GsW5LFvTvpjqOY0RAgN1AJ9sKL15mUstjkxBIQScxCjsDrFOTQCfV9dq
ULtEHu7tWY9+bcO4EN0K838=
=oMB5
-END PGP SIGNATURE-

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Reverse ftp over ssh does send files

2003-07-20 Thread Ehud Karni
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 19 Jul 2003 00:20:50 +0300, Micha Feigin <[EMAIL PROTECTED]> wrote:
> > 
> > 
> >   I am confused. Allow me to revisit the problem:
> > 
> > Machine A  <--->  network cloud  <--->  home gateway  <--->  Machine B
> > 
> > In addition to the above, B is masqueraded, right? 

If you have "pop" mail on machine A or B, you can use the mail to
transfer the files you want. Assuming you have mail with pop on
machine B, Tunnel both the 25 and 110 ports to any free ports on
machine A (e.g. 10025 and 10110). From machine A tunnel those ports
to machine B 25 and 110. Now you have mail (25) and pop (110) from
your originator (O) machine to machine B.

To transfer file from O to B send it by any mail client on O to 
yourself on B (remember, the mail server on B sees your O client as
local client) and read it with a mail client on B. To transfer file
from B to O, send it to yourself on B and "pop" it with your mail
client on O.

Ehud.


- -- 
 Ehud Karni   Tel: +972-3-7966-561  /"\
 Mivtach - Simon  Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:[EMAIL PROTECTED]  Better  Safe  Than  Sorry
-BEGIN PGP SIGNATURE-
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQE/GtXlLFvTvpjqOY0RAvnsAJ9wMRtvt4brzBgFsSl9vvsT6Dl+6ACeICPZ
d3wi9+eyOANwqd+XE77Kpc0=
=3H+D
-END PGP SIGNATURE-

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



hebrew fonts and utf (gtk2)

2003-07-20 Thread Erez Doron
hi

my gtk2 apps converts every font into utf8 and then displays it.

whenevev i display hebrew chars i get just lines and signs (e.g. junk)

the same app works of on my pc, but not on my ipaq

anyone ?

erez.



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Re: Attaching a driver name to eth-n

2003-07-20 Thread Oded Arbel
On Sunday 20 July 2003 11:08, Itay 'z9u2K' Duvdevani wrote:
> # cat /proc/net/dev | grep eth | cut -b 3-6
> eth0
> eth1
>
> I think that does to job. Question is, how do I know their strings?

This will not list devices that are present on the system but do not have 
their modules loaded because the distro has sucky hardware detection (see 
Shachar's note about new devices lspci knows nothing about), while lspci 
will.

-- 
Oded

::..
"MacDonald has the gift on compressing the largest amount of words into the 
smallest amount of thoughts."
-- Winston Churchill


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Attaching a driver name to eth-n

2003-07-20 Thread Oded Arbel
On Sunday 20 July 2003 09:17, Shachar Shemesh wrote:
> please bear in mind that the translation is
> performed using a static table compiled into lspci. The means that it is
> possible that lspci will not manage to identify the exact card for some
> controller (though it should still be able to tell that this is an
> ethernet controller).

You then fall back to identifying the card using its ID. but at least you know 
its an ethernet controller.

-- 
Oded

::..
I always thought a tasteless condom would be, like, one with a picture of the 
Pope on it or something. 
-- Jim Sizemore


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Attaching a driver name to eth-n

2003-07-20 Thread Mix Sella
On Sunday 20 July 2003 10:36, Doron Ofek wrote:
> ביום ראשון 20 יולי 2003, 10:17, Mix Sella כתב:
> > On Saturday 19 July 2003 00:18, Itay 'z9u2K' Duvdevani wrote:
> > > On Saturday 19 July 2003 00:14, you wrote:
> > > > On Fri, Jul 18, 2003 at 11:13:12PM +0300, Itay 'z9u2K' Duvdevani 
wrote:
> > > > > Hi,
> > > > > I am looking for a way to do these two:
> > > > > 1. Finding out how many eths the system have (eth0, eth1 ... ethn)
> > > >
> > > > [ ... ]
> > > >
> > > > > I need this for the internet tool (http://iwiz.linux-kinneret.org),
> > > > > I want to be able to present to the user this information so he
> > > > > would know which interface his modem is connected to more easily,
> > > > > in case he have more then one ethernet card.
> > > >
> > > >   You seem to be primarily interested in interfaces that are up. Why
> > > > don't you check the output of /sbin/ifconfig?
> > >
> > > I am interested in all interfaces, the tool's job is to bring up the
> > > interface...
> >
> > You want ``/usr/sbin/ip link show'', or ``ip l''
>
> mii-tool

No. mii-tool will screw up and get very confused about interfaces in the down 
state. And, not all network cards have mii, in which case it will screw up 
and get very confused too.

>
> Doron
>
>
> To unsubscribe, send mail to
> [EMAIL PROTECTED] with the word "unsubscribe" in the message
> body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

-- 
Mix Sella (well, not really but hey)



To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Attaching a driver name to eth-n

2003-07-20 Thread Itay 'z9u2K' Duvdevani
On Sunday 20 July 2003 10:36, you wrote:
> ביום ראשון 20 יולי 2003, 10:17, Mix Sella כתב:
> > On Saturday 19 July 2003 00:18, Itay 'z9u2K' Duvdevani wrote:
> > > On Saturday 19 July 2003 00:14, you wrote:
> > > > On Fri, Jul 18, 2003 at 11:13:12PM +0300, Itay 'z9u2K' Duvdevani 
wrote:
> > > > > Hi,
> > > > > I am looking for a way to do these two:
> > > > > 1. Finding out how many eths the system have (eth0, eth1 ... ethn)
> > > >
> > > > [ ... ]
> > > >
> > > > > I need this for the internet tool (http://iwiz.linux-kinneret.org),
> > > > > I want to be able to present to the user this information so he
> > > > > would know which interface his modem is connected to more easily,
> > > > > in case he have more then one ethernet card.
> > > >
> > > >   You seem to be primarily interested in interfaces that are up. Why
> > > > don't you check the output of /sbin/ifconfig?
> > >
> > > I am interested in all interfaces, the tool's job is to bring up the
> > > interface...
> >
> > You want ``/usr/sbin/ip link show'', or ``ip l''
>
> mii-tool
>
> Doron

# cat /proc/net/dev | grep eth | cut -b 3-6
eth0
eth1

I think that does to job. Question is, how do I know their strings?

BTW, Thanks for every one :)

>
>
> To unsubscribe, send mail to
> [EMAIL PROTECTED] with the word "unsubscribe" in the message
> body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

-- 
Regards,
Itay 'z9u2K' Duvdevani, GNU/Linux Kinneret.
Public GPG Key: ftp://ftp.berlios.de/pub/kinneret/z9u2k.asc


To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Reverse ftp over ssh does send files

2003-07-20 Thread Micha Feigin
On Fri, 2003-07-18 at 13:29, Shaul Karl wrote:
> On Fri, Jul 18, 2003 at 01:39:10AM +0300, Micha Feigin wrote:
> > 
> > I am aware of sftp, only for the specific computer I am trying to
> > connect to, when I try to connect over sftp the connection locks up.
> > I can't connect directly back to my computer since I am conection
> > through the isp NAT and an extra home NAT which resalts with my computer
> > having to reachable address as far as the remote is concered. The remote
> > computer only allows conections over ssh, so I am looking for a way to
> > tunnel some kind of file send protocol (ie ftp, tftp) over ssh in the
> > reverse direction, where I can run any server I want. I need to transfer
> > files in both directions, and I guess I can write a program to do this,
> > but I'd rather not rewrite ftp.
> > can tftp both send and recieve files and will it run over the reveresed
> > ssh connection, or any other ideas on how to achive what I am trying to
> > do?
> > 
> 
> 
>   I am confused. Allow me to revisit the problem:
> 
> Machine A  <--->  network cloud  <--->  home gateway  <--->  Machine B
> 
> In addition to the above, B is masqueraded, right? 
> Now B can ssh A while A can not ssh B, right? You want that B will be 
> able to send files to A and that A will be able to send files to B, but
> currently one of those 2 directions is not working. Which direction is
> not working?

Currently both directions don't work.
In addition the only way to connect to Machine A is using ssh, and sftp
locks up so thats no option either. Its fire walled so writing my own
simple ftp clone won't work (could maybe tunnel that over ssh).
There is supposed to be a web interface for that, but couldn't get it to
work.
As for the earier talk about tunneling ftp, I tried to reverse the
directions appearing in several HOWTOs saying to use:
ssh -L 1234:localhost:21 remote
and then ftp localhost 1234


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Attaching a driver name to eth-n

2003-07-20 Thread Doron Ofek
ביום ראשון 20 יולי 2003, 10:17, Mix Sella כתב:
> On Saturday 19 July 2003 00:18, Itay 'z9u2K' Duvdevani wrote:
> > On Saturday 19 July 2003 00:14, you wrote:
> > > On Fri, Jul 18, 2003 at 11:13:12PM +0300, Itay 'z9u2K' Duvdevani wrote:
> > > > Hi,
> > > > I am looking for a way to do these two:
> > > > 1. Finding out how many eths the system have (eth0, eth1 ... ethn)
> > >
> > > [ ... ]
> > >
> > > > I need this for the internet tool (http://iwiz.linux-kinneret.org), I
> > > > want to be able to present to the user this information so he would
> > > > know which interface his modem is connected to more easily, in case
> > > > he have more then one ethernet card.
> > >
> > >   You seem to be primarily interested in interfaces that are up. Why
> > > don't you check the output of /sbin/ifconfig?
> >
> > I am interested in all interfaces, the tool's job is to bring up the
> > interface...
>
> You want ``/usr/sbin/ip link show'', or ``ip l''

mii-tool 

Doron


To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Attaching a driver name to eth-n

2003-07-20 Thread Mix Sella
On Saturday 19 July 2003 00:18, Itay 'z9u2K' Duvdevani wrote:
> On Saturday 19 July 2003 00:14, you wrote:
> > On Fri, Jul 18, 2003 at 11:13:12PM +0300, Itay 'z9u2K' Duvdevani wrote:
> > > Hi,
> > > I am looking for a way to do these two:
> > > 1. Finding out how many eths the system have (eth0, eth1 ... ethn)
> >
> > [ ... ]
> >
> > > I need this for the internet tool (http://iwiz.linux-kinneret.org), I
> > > want to be able to present to the user this information so he would
> > > know which interface his modem is connected to more easily, in case he
> > > have more then one ethernet card.
> >
> >   You seem to be primarily interested in interfaces that are up. Why
> > don't you check the output of /sbin/ifconfig?
>
> I am interested in all interfaces, the tool's job is to bring up the
> interface...

You want ``/usr/sbin/ip link show'', or ``ip l''

-- 
Mix Sella (well, not really but hey)

This mail was checked for viruses by Romat email server


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]