Re: disable lpr
:I installed cups, which has its own lpr program, and deleted the lpr that is :in world. If I rebuild world, how do I tell it not to install lpr? I know I :did this for sendmail, but I forgot where the configuration is. : :Pierre :-- :lo ponse be lo mruli po'o cu ga'ezga roda lo ka dinko I'm running cups on my workstation too, talking to a Canon printer. Instead of disabling lpr I just reworked the PATH environment variable to put /usr/pkg/bin before /usr/bin. Another trick I use if the above is too sneaky is to put /usr/local/bin first in the PATH and create a script called lpr to exec the the one from /usr/pkg/bin. -- If we really wanted to make things easy we could make /usr/bin/lpr recognize an environment variable to tell it to forward to another lpr (aka /usr/pkg/bin/lpr).. though we'd have to be careful since /usr/bin/lpr is suid and sgid. Maybe a simple 'LPR_USE_PKGSRC' env variable that could be set to '1'. -Matt Matthew Dillon
Re: OpenJDK 1.7 build notes
On 12/18/11 02:21, Chris Turner wrote: I'll also try to repeat the process on x64 and see where that goes as soon as I get a chance to get a build / test environment setup (probably a few weeks) Update: x64 built through 1.6, however am encountering some build errors on 1.7. These do seem to be build configuration errors, and not e.g. JVM runtime errors, so I suspect they will not be too hard to correct. For those wanting any jdk on x64 - the makefiles previously announced along with your own copy of the JDK source should build the 1.6 system, with the exception that jdk 1.6 required a hack to the pkgsrc 'gcc' wrapper to -I the correct directory for freetype (workdir-include/freetype iirc), and for some reason the pkg_alternatives setup didn't work on my 1.6 package, so to use you might need to link these in manually, etc. However, I have run over my alloted time to proceed at the moment, so I will likely be picking this up again in a few weeks time. Cheers, - Chris
Re: wifi AP setup howto
On 03.01.12 21:51, Andrey N. Oktyabrski wrote: On 03.01.12 16:30, Matthias Rampke wrote: you need wlans_ath0="wlan0" ifconfig_wlan0="wlanmode hostap inet 192.168.2.234 netmask 255.255.255.0 ssid thinkpot nwkey topsecretpswd authmode shared mode 11g pureg hidessid" No luck, ifconfig complains about "invalid parameter wlanmode". Can anybody provide an example rc.conf settings for AP mode? Thank you, it works: wlans_ath0="wlan0" create_args_wlan0="wlanmode hostap" ifconfig_wlan0="inet 192.168.2.234 netmask 255.255.255.0 ssid thinkpot nwkey topsecretpswd authmode shared mode 11g pureg hidessid"
Re: wifi AP setup howto
On 03.01.12 16:30, Matthias Rampke wrote: 2012/1/3 Andrey N. Oktyabrski: ifconfig_wlan0="create wlandev ath0 wlanmode hostap inet 192.168.2.234 you need wlans_ath0="wlan0" ifconfig_wlan0="wlanmode hostap inet 192.168.2.234 netmask 255.255.255.0 ssid thinkpot nwkey topsecretpswd authmode shared mode 11g pureg hidessid" No luck, ifconfig complains about "invalid parameter wlanmode". Can anybody provide an example rc.conf settings for AP mode? in /etc/rc.conf – not 100% sure about the latter, but in any case creating wlan0 and configuring it are separate steps. without the wlans_ath0 line the rc scripts don't even know they should look for *_wlan0 variables. Thank you, I've read rc.conf' man page once more and got it. Also, check out the docs about hostapd, I think it should (needs to?) be involved in creating an AP. Again, not sure. No, hostapd is not necessary.
Re: wifi AP setup howto
2012/1/3 Andrey N. Oktyabrski : > ifconfig_wlan0="create wlandev ath0 wlanmode hostap inet 192.168.2.234 you need wlans_ath0="wlan0" ifconfig_wlan0="wlanmode hostap inet 192.168.2.234 netmask 255.255.255.0 ssid thinkpot nwkey topsecretpswd authmode shared mode 11g pureg hidessid" in /etc/rc.conf – not 100% sure about the latter, but in any case creating wlan0 and configuring it are separate steps. without the wlans_ath0 line the rc scripts don't even know they should look for *_wlan0 variables. Also, check out the docs about hostapd, I think it should (needs to?) be involved in creating an AP. Again, not sure. :matthiasr
wifi AP setup howto
Good day. I have home router ThinkPad R31 with D-link (Atheros 2413) wifi card. Now it works with DragonFlyBSD 2.6. Today I have tried to replace HDD by the CF card with CF-IDE adapter and update OS to 2.13 (2.01.2012 snapshot ISO). WiFi AP works fine, but what I must write in the /etc/rc.conf? Now I have this /etc/rc.local: /sbin/ifconfig wlan0 create wlandev ath0 wlanmode hostap \ inet 192.168.2.234 netmask 255.255.255.0 \ ssid thinkpot nwkey topsecretpswd authmode shared \ mode 11g pureg hidessid channel 4 This string in the /etc/rc.conf don't work: ifconfig_wlan0="create wlandev ath0 wlanmode hostap inet 192.168.2.234 netmask 255.255.255.0 ssid thinkpot nwkey topsecretpswd authmode shared mode 11g pureg hidessid"