udev and setting driver
Hi, I have a nice little USB Bar Code Scanner. It is set up as a USB device, but I can not connect to the default control pipe. I'm thinking that attaching the usbhid driver will help. Here are my questions 1) What rules are used to setup the optical mouse which aren't used for the bar code scanner? I can't find the udev rules, and it seems like I'm missing a big chunk of what happens during a hotplug. 2) How do I reload udev rules on Debian? 3) Is there a way to see what rules are matched when a device is plugged in? Here is what I tried Based on udevinfo I made a new rule. SUBSYSTEM=="usb", ATTR{bInterfaceProtocol}=="01", ATTR{bInterfaceSubClass}=="01", ATTR{bInterfaceClass}=="03", ATTR{bNumEndpoints}=="01" DRIVER=="usbhid" I placed the rule in /etc/udev/usb.rule and softlinked /etc/udev/rules.d/z80_usb.rules -> ../usb.rules $ udevinfo -a -p /devices/pci:00/:00:02.1/usb3/3-3/3-3:1.0 looking at device '/devices/pci:00/:00:02.1/usb3/3-3/3-3:1.0': KERNEL=="3-3:1.0" SUBSYSTEM=="usb" DRIVER=="" < no driver :( ATTR{interface}=="EP1" ATTR{modalias}=="usb:v04B4pCFA1d0254dc00dsc00dp00ic03isc01ip01" ATTR{bInterfaceProtocol}=="01" ATTR{bInterfaceSubClass}=="01" ATTR{bInterfaceClass}=="03" ATTR{bNumEndpoints}=="01" ATTR{bAlternateSetting}==" 0" ATTR{bInterfaceNumber}=="00" Thanks ERIC Udevinfo starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device. looking at device '/devices/pci:00/:00:02.1/usb3/3-3/3-3:1.0': KERNEL=="3-3:1.0" SUBSYSTEM=="usb" DRIVER=="" ATTR{interface}=="EP1" ATTR{modalias}=="usb:v04B4pCFA1d0254dc00dsc00dp00ic03isc01ip01" ATTR{bInterfaceProtocol}=="01" ATTR{bInterfaceSubClass}=="01" ATTR{bInterfaceClass}=="03" ATTR{bNumEndpoints}=="01" ATTR{bAlternateSetting}==" 0" ATTR{bInterfaceNumber}=="00" looking at parent device '/devices/pci:00/:00:02.1/usb3/3-3': KERNELS=="3-3" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{configuration}=="HID KB" ATTRS{product}=="Generic KB-HID" ATTRS{manufacturer}=="Guest" ATTRS{maxchild}=="0" ATTRS{version}==" 1.10" ATTRS{devnum}=="15" ATTRS{speed}=="1.5" ATTRS{bMaxPacketSize0}=="8" ATTRS{bNumConfigurations}=="1" ATTRS{bDeviceProtocol}=="00" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceClass}=="00" ATTRS{bcdDevice}=="0254" ATTRS{idProduct}=="cfa1" ATTRS{idVendor}=="04b4" ATTRS{bMaxPower}=="100mA" ATTRS{bmAttributes}=="a0" ATTRS{bConfigurationValue}=="1" ATTRS{bNumInterfaces}==" 1" looking at parent device '/devices/pci:00/:00:02.1/usb3': KERNELS=="usb3" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{configuration}=="" ATTRS{serial}==":00:02.1" ATTRS{product}=="OHCI Host Controller" ATTRS{manufacturer}=="Linux 2.6.15-1-486 ohci_hcd" ATTRS{maxchild}=="3" ATTRS{version}==" 1.10" ATTRS{devnum}=="1" ATTRS{speed}=="12" ATTRS{bMaxPacketSize0}=="64" ATTRS{bNumConfigurations}=="1" ATTRS{bDeviceProtocol}=="00" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceClass}=="09" ATTRS{bcdDevice}=="0206" ATTRS{idProduct}=="" ATTRS{idVendor}=="" ATTRS{bMaxPower}==" 0mA" ATTRS{bmAttributes}=="e0" ATTRS{bConfigurationValue}=="1" ATTRS{bNumInterfaces}==" 1" looking at parent device '/devices/pci:00/:00:02.1': KERNELS==":00:02.1" SUBSYSTEMS=="pci" DRIVERS=="ohci_hcd" ATTRS{modalias}=="pci:v10DEd0067sv103Csd12B9bc0Csc03i10" ATTRS{local_cpus}=="1" ATTRS{irq}=="177" ATTRS{class}=="0x0c0310" ATTRS{subsystem_device}=="0x12b9" ATTRS{subsystem_vendor}=="0x103c" ATTRS{device}=="0x0067" ATTRS{vendor}=="0x10de" looking at parent device '/devices/pci:00': KERNELS=="pci:00" SUBSYSTEMS=="" DRIVERS=="" umonitor -env UEVENT[1159287566.399867] add@/devices/pci:00/:00:02.1/usb3/3-3 ACTION=add DEVPATH=/devices/pci:00/:00:02.1/usb3/3-3 SUBSYSTEM=usb SEQNUM=2462 PHYSDEVBUS=usb PHYSDEVDRIVER=usb UDEV [1159287566.400759] add@/devices/pci:00/:00:02.1/usb3/3-3 UDEV_LOG=6 ACTION=add DEVPATH=/devices/pci:00/:00:02.1/usb3/3-3 SUBSYSTEM=usb SEQNUM=2462 PHYSDEVBUS=usb PHYSDEVDRIVER=usb UDEVD_EVENT=1 DRIVER=usb UEVENT[1159287566.408099] add@/devices/pci:00/:00:02.1/usb3/3-3/3-3:1.0 ACTION=add DEVPATH=/devices/pci:00/:00:02.1/usb3/3-3/3-3:1.0 SUBSYSTEM=usb SEQNUM=2463 PHYSDEVBUS=usb DEVICE=/proc/bus/usb/003/015 PRODUCT=4b4/cfa1/254 TYPE=0/0/0 INTERFACE=3/1/1 MODALIAS=usb:v04B4pCFA1d0254dc00dsc00dp00ic03isc01ip01 UDEV [1159287566.413632] add@/devices/pci:00/:00:02.1/usb3/3-3/3-3:1.0 UDEV_L
Re: mod_headers in apache 1.3
saravanan ganapathy wrote: --- saravanan ganapathy <[EMAIL PROTECTED]> wrote: Hi, I am using apache 1.3.33 on debian3.1 and I want to hide 'server string' in headers. I already configured 'ServerTokens Prod'. Now it shows server string as 'Apache' and I need to change this. So I configured the following in my httpd.conf and this is not working LoadModule headers_module /usr/lib/apache/1.3/mod_headers.so Header set Server "nothing" Perhaps this might work better Header unset Server http://httpd.apache.org/docs/1.3/mod/mod_headers.html There might be another "Header set Server" later on in the config file. The same above config is working in apache2.x. Whats the problem in apache1.x? You may have better luck int the apache mailing list http://httpd.apache.org/userslist.html Any help please? Sarav __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Help building iptables from source
A quick google revealed In this thread it is suggested that you recompile the kernel to get the right kernel headers. http://www.linuxquestions.org/questions/showthread.php?s=&threadid=277739 Better instructions here, not in english, but you can follow along http://www.linux.hr/modules/news/article.php?storyid=2156 ERIC Hernan Freschi wrote: Hello folks, I'm having a little trouble here. I'm trying to patch iptables to support layer7 (l7-filter.sourceforge.net). I have the kernel already patched, now I'm trying to patch IPTABLES So what I did was: apt-get source iptables apt-get build-dep iptables then I go into /usr/src/iptables-version/iptables and patch -p1 < layer7.patch chmod +x ./extensions/.layer7-test After that i tried a lot of things: debian/rules binary dpkg-buildpackage pbuilder None of them works. The module doesn't even compile. So i edited extensions/Makefile, and added "layer7" at the end of the list. That made it try to compile, but I got a dependency missing error. I checked and the script didn't look for the kernel headers at /usr/src/linux, but at its own /usr/src/iptables-version/debian/buld/kernel_profectio (I had exported the KERNEL_DIR variable to the right location already). I copied the layer7-something (don't remember the name right now) from /usr/src/linux/include/// but that didn't work either. I edited the Header file for the layer7 module. It finally found the header file but I get this (debian/rules binary): Making dependencies: please wait... make[1]: Leaving directory `/usr/src/iptables-1.3.5.0debian1/debian/build/iptables_profectio' make[1]: Entering directory `/usr/src/iptables-1.3.5.0debian1/debian/build/iptables_profectio' Something wrong... deleting dependencies. make[1]: `ip6tables-save' is up to date. make[1]: `ip6tables-restore' is up to date. make[1]: `iptables.8' is up to date. make[1]: `ip6tables.8' is up to date. make[1]: Leaving directory `/usr/src/iptables-1.3.5.0debian1/debian/build/iptables_profectio' make: *** [build] Error 2 Anyone knows what may be wrong? Cheers, Hernan
Re: Help building iptables from source
Ah, Well I won't be of much help then :( Just today I was looking for a Debian package of the 2.6.15 kernel source, and I couldn't find one (aptitude search, google). So I downloaded it from kernel.org, not very Debian of me. ERIC Hernan Freschi wrote: None of them work for debian. I need to do it the debian way (I have compiled from the original source and it works. But I want to do it debian). Cheers, Hernan 2006/9/27, ericp <[EMAIL PROTECTED]>: A quick google revealed In this thread it is suggested that you recompile the kernel to get the right kernel headers. http://www.linuxquestions.org/questions/showthread.php?s=&threadid=277739 Better instructions here, not in english, but you can follow along http://www.linux.hr/modules/news/article.php?storyid=2156 ERIC Hernan Freschi wrote: Hello folks, I'm having a little trouble here. I'm trying to patch iptables to support layer7 (l7-filter.sourceforge.net). I have the kernel already patched, now I'm trying to patch IPTABLES So what I did was: apt-get source iptables apt-get build-dep iptables then I go into /usr/src/iptables-version/iptables and patch -p1 < layer7.patch chmod +x ./extensions/.layer7-test After that i tried a lot of things: debian/rules binary dpkg-buildpackage pbuilder None of them works. The module doesn't even compile. So i edited extensions/Makefile, and added "layer7" at the end of the list. That made it try to compile, but I got a dependency missing error. I checked and the script didn't look for the kernel headers at /usr/src/linux, but at its own /usr/src/iptables-version/debian/buld/kernel_profectio (I had exported the KERNEL_DIR variable to the right location already). I copied the layer7-something (don't remember the name right now) from /usr/src/linux/include/// but that didn't work either. I edited the Header file for the layer7 module. It finally found the header file but I get this (debian/rules binary): Making dependencies: please wait... make[1]: Leaving directory `/usr/src/iptables-1.3.5.0debian1/debian/build/iptables_profectio' make[1]: Entering directory `/usr/src/iptables-1.3.5.0debian1/debian/build/iptables_profectio' Something wrong... deleting dependencies. make[1]: `ip6tables-save' is up to date. make[1]: `ip6tables-restore' is up to date. make[1]: `iptables.8' is up to date. make[1]: `ip6tables.8' is up to date. make[1]: Leaving directory `/usr/src/iptables-1.3.5.0debian1/debian/build/iptables_profectio' make: *** [build] Error 2 Anyone knows what may be wrong? Cheers, Hernan