Start wpa_supplicant on boot without dhclient
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It looks like wpa_supplicant is the right way to configure wireless as of FreeBSD 6. I'd like to start it on boot. However, I can't figure out how to start it without dhclient also running on boot. Since I don't always boot near an AP, this isn't appropriate. If I use network_interfaces=lo0 ath0 ifconfig_ath0=WPA DHCP then it starts wpa_supplicant, and immediately starts dhclient as well. If I take out DHCP network_interfaces=lo0 ath0 ifconfig_ath0=WPA then wpa_supplicant doesn't start dhclient when it gets a connection I can get something close to the right behavior by setting network_interfaces=lo0 ifconfig_ath0=WPA DHCP This way, wpa_supplicant doesn't start on boot, but I can start it after boot with /etc/rc.d/wpa_supplicant start ath0 and get the right behavior. Is there a way to get wpa_supplicant to start on boot, and only start dhclient as a result of the link-state event, not directly during boot? - -- Ben -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC5rs1pt3yYclAKVsRAsTWAJ9VhP9RtwXd3a0q1TPePr66rpEwxgCeIeZ7 JXOqziWjhb9ldWGHgok1N7o= =+2gW -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mount point's drwxrwxrwt permissions change when device is mounted (5.4-STABLE, amd64)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Conrad J. Sabatier [EMAIL PROTECTED] writes: Can anyone shed some light on this for me? This is really most mystifying! The way I have it set up is to allow my user to mount the usbdisk directly. This means the user has to own the mountpoint (probably best to put it in his homedir), have rw perms on /dev/da0s1, and vfs.usermount has to be set to 1. Then the user will be able to use mount_msdosfs without special privileges to mount /dev/da0s1. No fstab entry needed. The hard part is giving the user rw perms on /dev/da0s1. You have to create a devfs ruleset in /etc/devfs.rules. Then you have to activate it with the rc.conf knob devfs_system_ruleset. See devfs.rules(5) and /etc/defaults/devfs.rules. - -- Ben -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC33Dspt3yYclAKVsRAmUjAJoDf20daxKIGNwjnW7HcXXqbdfwcwCbB+8z wPx8arIqB5Eu6M+B8lhi4Ag= =Xy2D -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using Multiple Internet Connections with FreeBSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Barbieri [EMAIL PROTECTED] writes: Howdy, To start off, I have a FreeBSD router running Nat and dhcp, it is currently the router for my LAN. I was wondering if there was a way to aggregate more then one internet connection using FreeBSD? That is, have 2 or 3 internet connections coming in on seperate NICs, and being able to have the box route and nat the packets accordingly to the lan, thus giving the experience of more bandwidth. Is it even possible? FreeBSD includes PF, which supports this. http://www.openbsd.org/faq/pf/pools.html You need to NAT to an address pool, with round-robin. - -- Ben -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC14TUpt3yYclAKVsRArs/AKCT6FmcsD8Y61uEpWEUFZfTsPx0XgCdGG75 KyXDfTEOUdskYOTXLTMa7m0= =99tH -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Left/right arrow and backspace translation confusion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Doug Lee [EMAIL PROTECTED] writes: This one is making me feel dumb...I've been using FreeBSD for at least six years but I can't seem to figure this out... I have two FreeBSD systems running 4.10/4.11 (these problems have plagued me through several versions though). On one system, arrows and backspace work as expected, but on the other, left/right arrows in vi cause havock (extra characters and a switch from command to insert mode), and backspace in Lynx, Mutt, etc., backs up but leaves characters intact instead of clearing them. I have verified that the following are identical on both systems: - termcap (/etc symlink and /usr/share/misc/termcap and termcap.db). - ~/.exrc. - stty settings at run time and as set in ~/.login (I use tcsh). - .screenrc (I also use screen 4.00.02 on both systems). - /usr/local/etc/screenrc I have also tried connecting to each system directly, via a serial cable and via a Telnet client; and also connecting to each system through an ssh session on the other one, inside a Screen session. The results are always the same: On one system, keys work as expected, but on the other, they always work in the same wrong way. Did you start the screen session from within the local/telnet/ssh/serial connection you're attempting to use it from? I've found that if you start a screen session with one keyboard/OS/keymap/method of connection, and attempt to use it from another, it screws up the special keys. - -- Ben -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC1rWypt3yYclAKVsRAoApAJwMQ25E500MVlHeisT54TGY2dMvFgCfZNYo WCJprkJoyagshZcaZxJTqIE= =kFKu -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ann Lee [EMAIL PROTECTED] writes: Hi Marcelo, Well, i have copied the perl script of expire_mail.pl in /usr/local/sbin/expire_mail.pl. And put the following into my cron Here you use expire_mail.pl job: 0 23 * * 3 /usr/local/sbin/expire_mail -l -M -a 60 /var/mail/* Here you use expire_mail (no .pl) Is this the problem? - -- Ben -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC03Hwpt3yYclAKVsRAnmPAJ0Sy0bKLgazEQSwPgA6J9Q23ClNhQCghuZn 9Cfxlz9jHx59JK2VL4h+qTY= =GMwB -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Suspend-to-disk resuming
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fabian Keil [EMAIL PROTECTED] writes: Ben Jencks [EMAIL PROTECTED] wrote: I'm trying to get suspend-to-disk (S4OS) working. (S3 doesn't work, but I'll worry about that later). When I run acpiconf -s 4, it appears to suspend ok. However, when I boot the computer, it just boots as normal, rather than resuming (it does complain about uncleanly unmounted disks). How do I tell the kernel to load a suspend-to-disk image rather than booting? What makes you think, that S4OS is supported in FreeBSD? AFAIK only S4BIOS is working at the moment. After reading other mailing lists (-acpi), this has become clear. The handbook gives no hint that it's not supported, though. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.html In Message-ID: [EMAIL PROTECTED] (Subject: Re: is anyone working on software suspend-to-disk and/or -current) Nate Lawson wrote yesterday: |As far as I know, no one is working on suspend to disk at this time. Regarding S3, here is what I had to do to make it work on my ThinkPad R51 running 5.4-STABLE: In /boot/loader.conf I added: acpi_video_load=YES In /etc/sysctl.conf: hw.acpi.reset_video=0 hw.syscons.sc_no_suspend_vtswitch=1 I'll try these, though the mode of failure (massive slowdown, not video failure) makes it seem unlikely. I'm also going to try without USB, and with a patch from -acpi. Thanks, Ben -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC0sZIpt3yYclAKVsRAi80AJ9lpMhWVTfGAlQ+qDiVGzq+Yn5XJACfQZ7/ egAdwKre6LkO6TnNFcaiYiI= =dEDm -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Suspend-to-disk resuming
I'm trying to get suspend-to-disk (S4OS) working. (S3 doesn't work, but I'll worry about that later). When I run acpiconf -s 4, it appears to suspend ok. However, when I boot the computer, it just boots as normal, rather than resuming (it does complain about uncleanly unmounted disks). How do I tell the kernel to load a suspend-to-disk image rather than booting? I'm using the july snapshot of 6-CURRENT on a Thinkpad T43p. Thanks, Ben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]