[Gambas-user] How to sent a line line to a lp1 printer and form to lp0 printer directly.

Doriano Blengino doriano.blengino at ...1909...
Thu Sep 24 14:10:43 CEST 2009


Vassilis K ha scritto:
> It is a typogriphic error.
>
> I wrote it as "/dev/lp1"
>   
Every file in unix has permissions you can change with chmod:

    chmod a+w /dev/lp1

(ran as user root). It will give everyone permission to use /dev/lp1.

Or, you can check/change only the permission for the group. In my system:

    crw-rw---- 1 root lp 6, 0 26 feb  2005 /dev/lp0
    crw-rw---- 1 root lp 6, 1 26 feb  2005 /dev/lp1
    crw-rw---- 1 root lp 6, 2 26 feb  2005 /dev/lp2

show that a user belonging to group "lp" can write. Add yourself or your 
users to that group:
     adduser vassilis lp
and vassilis will be able to write to /dev/lpX.

If the setup of your /dev/lpX is different, you can change its group 
with chgrp.

Linux is good because _you_ are in control with your beloved computer...

Regards,
Doriano




More information about the User mailing list