banner page in LPRng

2003-01-10 Thread davidek
Hello,
  I am having troubles with setting up the banner page in lprng. It only
works the short banner with the default bl line. But how can I specify
e.g. a banner page, which would be output of something like that:
  /usr/games/banner 
  echo Printed from , Date 

I tried to set up /etc/printcap:
# This file was generated by /usr/sbin/magicfilterconfig.
#
lp|hplj4l|HP Laserjet 4L:\
:lp=/dev/lp0:sd=/var/spool/lpd/hplj4l:\
:bp=/usr/games/banner $-'n
:pw#80:pl#72:px#1440:mx#0:\
:if=/etc/magicfilter/ljet4l-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:

but it doesn't work (nothing is printed), unfortunately I didn't found any
error message in the lpr output.

The option $-'n I took from the documentation
http://www.sunsite.ualberta.ca/Documentation/Misc/LPRng-3.5.2/LPRng-HOWTO.html


Thanks for anay hints.


   Tomas

 E-mail : [EMAIL PROTECTED],
  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




problems with quotas

2003-01-14 Thread davidek
Hello,
  I am having troubles with quotas on my linux box. I am running the
kernel 2.4.20:
[nc21] ~ > cat /proc/version
Linux version 2.4.20 (root@nc21) (gcc version 2.95.4 20011002 (Debian
prerelease)) #1 Thu Jan 9 15:31:41 CET 2003

with quota support compiled in:
#
# File systems
#
CONFIG_QUOTA=y

Following the bug-report
(http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=161430), I
took the quota package from testing (quota-3.07-1) and tried to set the
quotas on one partition:
# /etc/fstab: static file system information.
#
#  

/dev/hda2   /   ext2errors=remount-ro   0   1
/dev/hda3   noneswapsw  0   0
proc/proc   procdefaults0   0
/dev/fd0/floppy vfatuser,noauto 0   0
/dev/cdrom  /cdrom  iso9660 ro,user,noauto  0   0
/dev/hda5   /home   ext2defaults,usrquota   0   1
#/dev/hda6   /scratchext2defaults0   2

Then (after a reboot) I've set the quota=15,limit=18, however the
system allowed me to reach 192444. Now, even if I delete many files:
[nc21] ~ > du -s
123220  .

quota -v still gives the very old status:
Disk quotas for user davidek (uid 260):
 Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
  /dev/hda5  192444* 15  182202   0   0

Please could anyone tell me what's wrong ? On another linux box (running
kernel 2.4.7 with the same settings as above and identical quota package)
quota -v also reports the maximal space occupied, however the grace period
started:
Disk quotas for user davidek (uid 1010):
 Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
  /dev/hda4   10008*  1   15000   2days 103   0   0
(current disk space occupied is:
ipnp:/home/davidek# du -s
3692.

In addition, this system didn't allow me to occupy disk space of e.g.
12000, which I think should be possible for a short time (am I right ?)

Thanks for any hints,

best regards
   Tomas

 E-mail : [EMAIL PROTECTED],
  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




problems with keymap in Xorg

2007-01-28 Thread Tomas Davidek

Hello,
  I noticed two problems in Xorg:
1. mistake in setxkbmap (or xkb-data ?)
Recently the the following command to set US and CZ keyboard 
stopped working:
setxkbmap -rules xfree86 -model pc104 -layout "us,cz_qwerty" -variant 
",bksl" -option "grp:alt_shift_toggle,grp_led:scroll"

The problem is in the -variant, the -print option gives:

xkb_keymap {
   xkb_keycodes  { include "xfree86+aliases(qwerty)"   };
   xkb_types { include "complete"  };
   xkb_compat{ include "complete+ledscroll(group_lock)"};
   xkb_symbols   { include 
"pc(pc105)+us+cz(qwerty)(bksl):2+group(alt_shift_toggle)"   };

   xkb_geometry  { include "pc(pc104)" };
};

whereas the corresponding lines in /usr/share/X11/xkb/rules/xorg.lst 
from xkb-data package are:


 bkslcz: With <\|> key
 qwerty  cz: qwerty
 qwerty_bksl cz: qwerty, extended Backslash

Therefore, the right output of setxkbmap should to be
xkb_symbols   { include 
"pc(pc105)+us+cz(qwerty_bksl):2+group(alt_shift_toggle)"   };


I can't judge whether this is a problem of xbase-clients (using version 
7.1.ds1-2) or xkb-data (0.9-4). Although there is an workaround 
(setxkbmap  | sed ... | xkbcomp - $DISPLAY), it should be fixed


2. another option to set dual US and CZ keyboard is to introduce it 
directly in /etc/X11/xorg.conf:

   Option "XkbKeycodes"  "xfree86+aliases(qwerty)"
   Option "XkbTypes" "complete"
   Option "XkbCompat""complete+ledscroll(group_lock)"
   Option "XkbSymbols"   
"pc(pc104)+us+cz(qwerty_bksl):2+group(alt_shift_toggle)"

   Option "XkbGeometry"  "pc(pc104)"
but then I realized that it only works once. It means that if one logins 
(e.g. in xdm) for the first time, it works well, but after logging 
out/in the keyboard cannot be switch to CZ anymore. I have to restart 
Xorg (xserver-xorg version 7.1.0-10) to restore the functionality. Can 
you tell me where the problem could be ?


Thanks a lot for any hint,

best regards
 Tomas



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]