Arch

Switch Java Version

archlinux-java status
archlinux-java set VERSION

Set Size Limit for Log Files

# show log file size
journalctl --disk-usage
# set log size limit
journalctl --vacuum-size=200M

Printing with Cups

sudo pacman -S cups
sudo systemctl enable cups.service 
sudo systemctl start cups.service 
 
# install drivers
sudo yay -S kyocera_universal
 
# find printer URIs i.e dnssd://KyoceraFS-1020D._printer._tcp.local/
lpinfo -v
# setup kyocera 1020D
lpadmin -p KyoceraFS-1020D -E -v "dnssd://KyoceraFS-1020D._pdl-datastream._tcp.local/" -m kyocera/Kyocera_FS-1120D.ppd
 
# list available printers
lpstat -p -d
 
# print files 
echo "Hi" | lpr
lpr -P Printer2 myfile.pdf