martedì, dicembre 06, 2005

CUPS and HOTPLUG

This is a really short HOWTO to configure hotplug to auto-enable usb printer on pluggin in :)

1) lsusb -v show, if printer is plugged in, his ID and VENDOR.

2) create file printer.usermap in /etc/hotplug/usb/
Here we will paste this :
printer 0x0003 0x[yourprinterid] 0x[yourprintervendorid] 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
3) create file printer in /etc/hotplug/usb/
Here create the script like this example that enable and accept jobs for a printer:
#!/bin/bash

if [ "${ACTION}" = "add" ]
then
lpadmin -p printername -E
fi
4) dont forget to chmod the file to make it executable :)

happy hotpluggin
antonio

sabato, dicembre 03, 2005

virtual nameservers

Maybe nobody need these informations if not interested in webserver management :)

Virtual nameservers:
I'm pointing my nameservers to the IPs of my webhost's nameservers. So it sounds like 'virtual' is the correct term. Using your example,
ns1.mydomain.com => IP of dnsmyhoster.com's DNS server #1
ns2.mydoman.com => IP of dnsmyhoster.com's DNS server #2

Step 1. Create the nameservers at the registrar (contact your registrar if you dont have direct access).
NS1.mydomain.com => IP#1
NS2.mydomain.com => IP#2

Step 2. Create the nameservers at the host.
It currently looks like this:
example.com. => ns1.dnsmadeeasy.com. (type: NS)
example.com. => ns2.dnsmadeeasy.com. (type: NS)
Should be changed like this:
example.com. => ns1.example.com. (type: NS)
example.com. => ns2.example.com. (type: NS)

Step 3. Add A records on the authoritative DNS servers at the host.
This looks easy enough.
ns1.example.com. => IP#1 (type: A record)
ns2.example.com. => IP#2 (type: A record)

happy hosting
antonio