How do I print directly to LPT port in Ubuntu?
I seem to have it figured out. Silly me. While googling examples of lpadmin usage, I've stubled upon this link: http://ubuntuforums.org/showthread.php?t=1437325
Permissions on dev/lp0 were:
c---rw---- 1 root lp 6, 0 2011-06-26 22:47 /dev/lp0
Group lp, from my knowledge, has only the lp user. After I performed
sudo chmod 666 /dev/lp0
the following command started working as intended, making printer to output symbols to paper:
echo "Y helo thar" > /dev/lp0
Well, I suppose that is a nice foolproof against someone accidentally writing to LPT port aside from printing daemon, but still it makes no sense for me, why is it disabled for root?
Probably the lp daemon (print spooler) has exclusive ownership of /dev/lp. Shutdown the spooler (read up on lpadmin and /usr/bin/disable).