need a weird samba configuration
Any Samba gurus here? I have a file server running samba34-3.4.14 as a domain member server with security = domain. winbindd is not started and all Windows users are resolved to Unix uids/gids via getpwnam() as described in http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/idmapper.html#id2604553 Now I need to start winbindd for other purposes, not connected with smbd and the file service. How do I configure smb.conf so that smbd should not consult winbind and should continue using getpwnam() for Windows logon name - Unix uid/gid mapping? In other words, how do I disable the idmap functionality and use existing Unix uids/gids with winbindd running? TIA for any input. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fstab problem
Use /dev/ad0s1a instead of /ad0s1a. Frank Am 13.01.2012 11:01, schrieb Bernt Hansson: Hello list! I've moved /etc/fstab to /etc/fstab.org When booting I get prompted with mountroot Ok. I type ufs:ad0s1a The crap boot up. But I can't get the filesystem to become R/W Tried /sbin/mount -o rw /ad0s1a / /sbin/mount -o rw,force /ad0s1a / /sbin/mount -o force /ad0s1a / But /sbin/mount only shows ro. Don't really know what to do, except reinstall and that's a noop. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fstab problem
On 13/01/2012 10:01, Bernt Hansson wrote: Hello list! I've moved /etc/fstab to /etc/fstab.org When booting I get prompted with mountroot Ok. I type ufs:ad0s1a The crap boot up. But I can't get the filesystem to become R/W Tried /sbin/mount -o rw /ad0s1a / /sbin/mount -o rw,force /ad0s1a / /sbin/mount -o force /ad0s1a / But /sbin/mount only shows ro. Don't really know what to do, except reinstall and that's a noop. fsck /dev/ad0s1a /sbin/mount -u -o rw /dev/ad0s1a / You should then be able to recover /etc/fstab, fix any problems within it and then on exit, the system should continue with a normal multi-user bootup. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: fstab problem
El día Friday, January 13, 2012 a las 11:01:40AM +0100, Bernt Hansson escribió: Hello list! I've moved /etc/fstab to /etc/fstab.org When booting I get prompted with mountroot Ok. I type ufs:ad0s1a The crap boot up. But I can't get the filesystem to become R/W Tried /sbin/mount -o rw /ad0s1a / /sbin/mount -o rw,force /ad0s1a / /sbin/mount -o force /ad0s1a / But /sbin/mount only shows ro. Don't really know what to do, except reinstall and that's a noop. As a last resort, you could boot an USB livefs, mount the disk to /mnt and do the change back in the root fs; matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Your message to Scottish awaits moderator approval
Your mail to 'Scottish' with the subject RETURNED MAIL: SEE TRANSCRIPT FOR DETAILS Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification of the moderator's decision. If you would like to cancel this posting, please visit the following URL: https://mailman.lug.org.uk/mailman/confirm/scottish/00c4f16c65a5151d9a019512a8d32baed8328478 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
upgrade from 8.2 to 9.0
I possible I want my server to upgrade from 8.2-RELEASE to 9.0-RELEASE. I guess the binary upgrade will not be a problem with freebsd-update -r 9.0-RELEASE fetch If so, I do like to hear the caveats. My main problem lies with the installed ports. I know the -all- have to be recompiled, but I don't know an easy way for this job. I always use portmaster. Do I have to make a list manually for all installed ports? Or is there a procedure to follow in this matter? I'd like to get some pointers if possible. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Bladecenters and freebsd
Hi I am currently seeking a bladecenter solution that is supported by FreeBSD. As much as I would enjoy buying one and test it out, this method could come out very expensive. we need to replace our old IBM Bladecenter by more recent equipment. I have looked at ixsystems but they only provide a solution that supports ethernet/infiniband modules. I am wandering if a solution such as a bridgex (http://www.mellanox.com/content/pages.php?pg=products_dynproduct_family=54menu_section=52) could give me the best of both worlds? but I have never played with any similar device. Does anyone have any current bladecenter hardware that is running FreeBSD? Ideally this bladecenter would possess Fibre Channel modules in order to speak directly with our current SAN. Any gotchas, I should be aware of? Pascal ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: upgrade from 8.2 to 9.0
On 01/13/2012 02:42 PM, Dick Hoogendijk wrote: I possible I want my server to upgrade from 8.2-RELEASE to 9.0-RELEASE. I guess the binary upgrade will not be a problem with freebsd-update -r 9.0-RELEASE fetch If so, I do like to hear the caveats. My main problem lies with the installed ports. I know the -all- have to be recompiled, but I don't know an easy way for this job. I always use portmaster. Do I have to make a list manually for all installed ports? Or is there a procedure to follow in this matter? I'd like to get some pointers if possible. Thanks. _ It works great with source upgrade, so freebsd-update should not be a problem but i haven't used it yet to upgrade to 9. It is used like this: freebsd-update -r 9.0-RELEASE upgrade (i.e. not fetch) See also the handbook for a good explanation You can use portmaster --list-origins to make a list of all root and leaf ports and use this to reinstall all ports after the upgrade. See man portmaster for a good example. Or you can use portmaster -af to recompile all ports. Disclaimer: http://www.ose.nl/email ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: upgrade from 8.2 to 9.0
On Fri, 13 Jan 2012 14:42:03 +0100, Dick Hoogendijk wrote: I possible I want my server to upgrade from 8.2-RELEASE to 9.0-RELEASE. I guess the binary upgrade will not be a problem with freebsd-update -r 9.0-RELEASE fetch If so, I do like to hear the caveats. Source update also shouldn't be a problem. Setup your CVS supfile to get the 9.0-RELEASE sources and follow the instructions in the handbook and in /usr/src/Makefile's comment header. My main problem lies with the installed ports. I know the -all- have to be recompiled, but I don't know an easy way for this job. Not have to, but it's often considered best practice. If you don't want to recompile all your ports, make sure two things are met: 1. You have COMPAT_FREEBSD8 in your kernel. 2. You have compat8x-i386-8.2.12345.67890 installed (or amd64 respectively). This will work as long as you're not starting to install something new (which may cause library version trouble). However, using a port management tool to do the job of update all ports is often highly recommended. I always use portmaster. Did you look into its manual already? :-) Do I have to make a list manually for all installed ports? Depends. A possible approach is that you make a list of your primary ports, i. e. the stuff that you are _really_ intending to use, where secondary ports they depend on (i. e. the dependencies) are not mentioned, as they will be installed anyway. So for example, if firefox is on your list as you intend to use it, there's no need to list all its dependencies as well because they are implicit. Or is there a procedure to follow in this matter? I'd like to get some pointers if possible. Sure. See man portmaster, section EXAMPLES, where you'll find Using portmaster to do a complete reinstallation of all your ports with a complete procedure. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: upgrade from 8.2 to 9.0
Op 13-1-2012 14:56, Bas Smeelen schreef: On 01/13/2012 02:42 PM, Dick Hoogendijk wrote: I possible I want my server to upgrade from 8.2-RELEASE to 9.0-RELEASE. I guess the binary upgrade will not be a problem with freebsd-update -r 9.0-RELEASE fetch If so, I do like to hear the caveats. My main problem lies with the installed ports. I know the -all- have to be recompiled, but I don't know an easy way for this job. I always use portmaster. Do I have to make a list manually for all installed ports? Or is there a procedure to follow in this matter? I'd like to get some pointers if possible. Thanks. _ It works great with source upgrade, so freebsd-update should not be a problem but i haven't used it yet to upgrade to 9. It is used like this: freebsd-update -r 9.0-RELEASE upgrade (i.e. not fetch) See also the handbook for a good explanation You can use portmaster --list-origins to make a list of all root and leaf ports and use this to reinstall all ports after the upgrade. See man portmaster for a good example. Or you can use portmaster -af to recompile all ports. Ah, yes, I remember the latter is disadviced because some ports can have differences so you have some garbage if you run portmaster -af I will look up the example in the manual. It also will tell me (probably) if all ports have to be removed beforehand or that this does not matter. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Bladecenters and freebsd
On 1/13/12 2:27 PM, Pascal S. Clermont wrote: Hi I am currently seeking a bladecenter solution that is supported by FreeBSD. As much as I would enjoy buying one and test it out, this method could come out very expensive. we need to replace our old IBM Bladecenter by more recent equipment. I have looked at ixsystems but they only provide a solution that supports ethernet/infiniband modules. I am wandering if a solution such as a bridgex (http://www.mellanox.com/content/pages.php?pg=products_dynproduct_family=54menu_section=52) could give me the best of both worlds? but I have never played with any similar device. Does anyone have any current bladecenter hardware that is running FreeBSD? Ideally this bladecenter would possess Fibre Channel modules in order to speak directly with our current SAN. Any gotchas, I should be aware of? Pascal We're successfully running 8.2-RELEASE on Dell's PowerEdge M1000e. We don't have a SAN and thus no use for FC, so I wouldn't be able to tell you about that. Why don't you just get a manufacturer to *lend* you a chassis + 1 blade server, so that you may test ? We've done that with Dell. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Bladecenters and freebsd
Hi I am currently seeking a bladecenter solution that is supported by FreeBSD. As much as I would enjoy buying one and test it out, this method could come out very expensive. we need to replace our old IBM Bladecenter by more recent equipment. I have looked at ixsystems but they only provide a solution that supports ethernet/infiniband modules. I am wandering if a solution such as a bridgex (http://www.mellanox.com/content/pages.php?pg=products_dynproduct_family=54menu_section=52) could give me the best of both worlds? but I have never played with any similar device. Does anyone have any current bladecenter hardware that is running FreeBSD? Ideally this bladecenter would possess Fibre Channel modules in order to speak directly with our current SAN. Any gotchas, I should be aware of? Pascal ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: wireless and/or routing question
On Thu, Jan 12, 2012 at 11:29 PM, Da Rock freebsd-questi...@herveybayaustralia.com.au wrote: On 01/13/12 17:11, Waitman Gobble wrote: On Thu, Jan 12, 2012 at 10:04 PM, Da Rock freebsd-questions@**herveybayaustralia.com.aufreebsd-questi...@herveybayaustralia.com.au wrote: On 01/13/12 15:29, Waitman Gobble wrote: Hello, I am running 9.0-RC3 i386 on an Acer Aspire One D150. i am having trouble with the wireless setup. I have two wireless cards, the BCM94312MCG that came with it, and an Atheros 5424/2424 that i swapped out. I can run the BCM with ndis and the windows xp driver, and the Atheros with the ath driver that is installed with FreeBSD. (But BCM/ndis is noticeably much slower, Atheros - no green wireless light appears on netbook ) i am getting the same results with either nic card, and i think i am just missing something simple. ath0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 00:24:2b:ad:d6:5f nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:24:2b:ad:d6:5f inet 10.0.0.21 netmask 0xff00 broadcast 10.0.0.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet OFDM/24Mbps mode 11g status: associated ssid CUDAPANG channel 6 (2437 MHz 11g) bssid 00:22:3f:9b:b8:aa regdomain 101 indoor ecm authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit txpower 20 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst connecting: ifconfig wlan0 create wlandev ath0 ifconfig wlan0 up scan ifconfig wlan0 inet 10.0.0.21 netmask 255.255.255.0 ssid CUDAPANG wepmode on weptxkey 1 wepkey 1:0x10961323931B628F844360718A scan results: p00ntang# ifconfig wlan0 up scan SSID/MESH IDBSSID CHAN RATE S:N INT CAPS CUDAPANG00:22:3f:9a:16:1b6 54M -69:-93 100 EPS ATH CUDAPANG00:22:3f:9b:b8:aa6 54M -68:-93 100 EPS WME ATH Abujie 00:14:6c:7a:98:ec6 54M -89:-93 100 EPS RSN WPA ATH TDMA chavez family 00:c0:02:11:22:336 54M -88:-93 100 EP HTCAP RSN WME WPS My machine shows up on the wireless router as a connected device w/ correct mac and ip showing But i cannot ping gw, no machine on lan or outside. (no route to host) p00ntang# netstat -nr Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default10.0.0.1 UGS 0 3338 ale0 10.0.0.0/24link#2 U 0 2405 ale0 10.0.0.20 link#2 UHS 00lo0 10.0.0.21 link#9 UHS 02lo0 127.0.0.1 link#8 UH 0 12lo0 I do not see ath0' or wlan0 in the routing table under 'Netif', not sure if that's the problem :) p00ntang# less /etc/rc.conf hostname=p00ntang ifconfig_ale0= inet 10.0.0.20 netmask 255.255.255.0 defaultrouter=10.0.0.1 sshd_enable=YES ntpd_enable=YES # Set dumpdev to AUTO to enable crash dumps, NO to disable dumpdev=NO fusefs_enable=YES hald_enable=YES dbus_enable=YES moused_enable=YES snddetect_enable=YES mixer_enable=YES avahi_daemon_enable=YES ices0_enable=YES p00ntang# grep ath /boot/loader.conf if_ath_load=YES p00ntang# grep wlan /boot/loader.conf wlan_wep_load=YES wlan_ccmp_load=YES wlan_tkip_load=YES i've tried /etc/rc.d/routing restart.. no worky :) here's my wired connection ifconfig --- wired connection works :) ale0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=c319aTXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM, TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO,LINKSTATE ether 00:23:5a:59:e1:e4 inet 10.0.0.20 netmask 0xff00 broadcast 10.0.0.255 inet6 fe80::223:5aff:fe59:e1e4%ale0 prefixlen 64 scopeid 0x2 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTXfull-duplex) status: active any help/suggestions much appreciated! The solution is simple, but I know the frustration well. Your problem is that the route is looking to go through your wired network port, you started the network on the wired and then switched to wifi so the routing needs to change. Run as root: route change default -interface wlan0 will fix that temporarily. To fix it permanently (better for a laptop situation anyway, I feel), setup a lagg port including ale0 and wlan0. See http://www.freebsd.org/doc/handbook/network-aggregation.htmlhttp://www.freebsd.org/doc/**handbook/network-aggregation.**html http://www.freebsd.org/**doc/handbook/network-**aggregation.htmlhttp://www.freebsd.org/doc/handbook/network-aggregation.html Good luck and happy networking!
Re: wireless and/or routing question
El día Friday, January 13, 2012 a las 07:03:11AM -0800, Waitman Gobble escribió: Hi, Thanks. I've always heard countless rumors about WPA being wise :) I'll take your advice and take a step up in technology. My stubborn conservatism probably roots back to the time when not all devices could do WPA, or at least I had crazy trouble getting things to work. But this learned attitude was probably around 2000, which was like a million years ago with dinosaurs and stuff. Time for me to finally get with it. ... Concerning WEP ./. WPA: From the technical point it is clear, WPA is more secure; but there are other aspects as well; we have had in Germany cases where the WAN IP of the AP appeared as source addr of some kind of crime (access to child porn or whatever) and the AP owner said: I'm using WEP, it was not me, and someone highjacked my AP ... and he/she went home as free person; matthias -- Matthias Apitz e g...@unixarea.de - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: upgrade from 8.2 to 9.0
Hi, Am 13.01.2012 14:42, schrieb Dick Hoogendijk: I possible I want my server to upgrade from 8.2-RELEASE to 9.0-RELEASE. I guess the binary upgrade will not be a problem with freebsd-update -r 9.0-RELEASE fetch If so, I do like to hear the caveats. I did last week a source upgrade and the new generic kernel has not able to detected my hard disks anymore and therefor the system could not be booted, because the zfs file system was not mountable anymore. But if some users are reporting here good results, I maybe will try it again. Bye Matthias -- Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning. -- Rich Cook ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: wireless and/or routing question
On Thu, 12 Jan 2012, Waitman Gobble wrote: Hello, I am running 9.0-RC3 i386 on an Acer Aspire One D150. i am having trouble with the wireless setup. I have two wireless cards, the BCM94312MCG that came with it, and an Atheros 5424/2424 that i swapped out. I can run the BCM with ndis and the windows xp driver, and the Atheros with the ath driver that is installed with FreeBSD. (But BCM/ndis is noticeably much slower, Atheros - no green wireless light appears on netbook ) On other models of the Aspire One (AOA150 and D250), adding some ath-specific settings to /boot/loader.conf enables the LED: dev.ath.0.ledpin=3 dev.ath.0.softled=1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
no hyperthreading in FreeBSD 9?
Hi, I just upgraded from 8-STABLE to 9-STABLE on my dual Xeon (nocona). Now I have in my boot messages: ... root: /etc/rc.d/sysctl: WARNING: sysctl machdep.hlt_logical_cpus does not exist. root: /etc/rc.d/sysctl: WARNING: sysctl machdep.hyperthreading_allowed does not exist. ... So isn't hyperthreading not available anymore in FreeBSD 9? Regards, Marco -- If you want me to be a good little bunny just dangle some carats in front of my nose. -- Lauren Bacall ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: wireless and/or routing question
On Jan 13, 2012 7:19 AM, Matthias Apitz g...@unixarea.de wrote: El día Friday, January 13, 2012 a las 07:03:11AM -0800, Waitman Gobble escribió: Hi, Thanks. I've always heard countless rumors about WPA being wise :) I'll take your advice and take a step up in technology. My stubborn conservatism probably roots back to the time when not all devices could do WPA, or at least I had crazy trouble getting things to work. But this learned attitude was probably around 2000, which was like a million years ago with dinosaurs and stuff. Time for me to finally get with it. ... Concerning WEP ./. WPA: From the technical point it is clear, WPA is more secure; but there are other aspects as well; we have had in Germany cases where the WAN IP of the AP appeared as source addr of some kind of crime (access to child porn or whatever) and the AP owner said: I'm using WEP, it was not me, and someone highjacked my AP ... and he/she went home as free person; matthias -- Matthias Apitz e g...@unixarea.de - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 thanks, going to try WPA this weekend. My apartment is not so convenient for drive-by scanners (cant think of the proper term at the moment) but i do have at least one neighbor who appears potentially suspect.. like he might try to hack my ap for fun. Waitman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: wireless and/or routing question
On Jan 13, 2012 7:38 AM, Warren Block wbl...@wonkity.com wrote: On Thu, 12 Jan 2012, Waitman Gobble wrote: Hello, I am running 9.0-RC3 i386 on an Acer Aspire One D150. i am having trouble with the wireless setup. I have two wireless cards, the BCM94312MCG that came with it, and an Atheros 5424/2424 that i swapped out. I can run the BCM with ndis and the windows xp driver, and the Atheros with the ath driver that is installed with FreeBSD. (But BCM/ndis is noticeably much slower, Atheros - no green wireless light appears on netbook ) On other models of the Aspire One (AOA150 and D250), adding some ath-specific settings to /boot/loader.conf enables the LED: dev.ath.0.ledpin=3 dev.ath.0.softled=1 cool thanks ill try it out. Waitman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: no hyperthreading in FreeBSD 9?
On 13 Jan 2012, at 16:30, Marco Beishuizen wrote: Hi, I just upgraded from 8-STABLE to 9-STABLE on my dual Xeon (nocona). Now I have in my boot messages: ... root: /etc/rc.d/sysctl: WARNING: sysctl machdep.hlt_logical_cpus does not exist. root: /etc/rc.d/sysctl: WARNING: sysctl machdep.hyperthreading_allowed does not exist. ... So isn't hyperthreading not available anymore in FreeBSD 9? http://svnweb.freebsd.org/base/release/9.0.0/UPDATING?r1=222852r2=222853; Seems to imply HT is enabled by default and new sysctls are used to take logical CPUs offline. How many CPUs does your boot message suggest FreeBSD 9 is reporting? - Mark___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: no hyperthreading in FreeBSD 9?
Hi, I just upgraded from 8-STABLE to 9-STABLE on my dual Xeon (nocona). Now I have in my boot messages: ... root: /etc/rc.d/sysctl: WARNING: sysctl machdep.hlt_logical_cpus does not exist. root: /etc/rc.d/sysctl: WARNING: sysctl machdep.hyperthreading_allowed does not exist. ... So isn't hyperthreading not available anymore in FreeBSD 9? I'm not sure what you mean by this double negative. If you mean Is hyperthreading still available on FreeBSD?, the answer is yes. If you mean Can hyperthreading still be disabled on FreeBSD? the answer is still yes-- only some problematic and redundant means of disabling it that were present in earlier versions of FreeBSD have been removed. (The primary commit is: http://svnweb.freebsd.org/base?view=revisionrevision=222853 .) You can still use machdep.hyperthreading_allowed, but it is now only a (loader) tunable, and not also a sysctl, so you can only set it at boot time (via loader.conf(5), or by using set ... on the loader(8) command line), and you cannot change it on the fly after the system is up and running. http://svnweb.freebsd.org/base/release/9.0.0/UPDATING?r1=222852r2=222853; Seems to imply HT is enabled by default and new sysctls are used to take logical CPUs offline. Yes -- although that has been the case for a while, and the OIDs are not all sysctls (some are (loader) tunables or device hints (cf. device.hints(5)), and they are not new. b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
NetGear WG511T and WPA support on FreeBSD 8.2
Hi, Since I've run into problems getting an ndisgen generated driver for my Realtek RTL8185 54M to work on my FreeBSD 8.2 (i386) system - kldload on the driver generates a permanent kernel crash-, I am currently thinking about buying the NetGear WG511T PCMCIA bus driven card. I would like to ask if there are any users on this list that make use of this card and that can confirm whether or not this cards works fine alongside with WPA/WPA2 on 8.2 or 9.0 if I decide to upgrade? I am aware of the supported hardware list. The card in discussion is not listed as supported. However, this could still be the case, since I read in an older 7.0 related thread http://www.daemonforums.org/showthread.php?t=1424 that it did work, at least at one point in time. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: NetGear WG511T and WPA support on FreeBSD 8.2
On Fri, 13 Jan 2012 22:17:54 +0100 pancakekin...@gmail.com articulated: Since I've run into problems getting an ndisgen generated driver for my Realtek RTL8185 54M to work on my FreeBSD 8.2 (i386) system - kldload on the driver generates a permanent kernel crash-, I am currently thinking about buying the NetGear WG511T PCMCIA bus driven card. I would like to ask if there are any users on this list that make use of this card and that can confirm whether or not this cards works fine alongside with WPA/WPA2 on 8.2 or 9.0 if I decide to upgrade? I am aware of the supported hardware list. The card in discussion is not listed as supported. However, this could still be the case, since I read in an older 7.0 related thread http://www.daemonforums.org/showthread.php?t=1424 that it did work, at least at one point in time. It's compliant with 802.11g standards and going for approximately $6.00 on EBay, so you really have nothing to lose by trying it. You should be able to ascertain the chip model and version easy enough once you get the device. -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
OFF Topic. FreeBSD and Android Development
Hello all. First of all a great year to all. My best wishes. I was wondering if you can give your advice and comments about the following. I am interested in learning about Android Development. I am searching information on the web, documentation about how to start learning about Android Development. Any links or tips to look at are more than welcomed. Talking with a friend he told me he is learning using some tools he found but he is running them under Ubuntu. If any of you is developing for Android using Freebsd as your platform. Can you tell me about your experience? Tips and advice on what to use to start are welcome. I am not sure if this kind of off topic could be of interested to the list so please feel free to answer me directly . Thanks in advance. Jorge Biquez ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
access(FULLPATH, xxx);
excuse this slip of memory, but do you need the full path PLUS the filename to use access? or just the filename? say that i'm i n ~/tmp/foob and want to deetermine wheether i can access file foob. do i need to use access(home/kline/tmp/foob, F_OK) or will access(foob, F_OK) do the trick? i have already rub chdir(~/tmp) in main(). please note. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: OFF Topic. FreeBSD and Android Development
On Fri, Jan 13, 2012 at 05:46:13PM -0600, Jorge Biquez wrote: I am interested in learning about Android Development. I am searching information on the web, documentation about how to start learning about Android Development. Any links or tips to look at are more than welcomed. Talking with a friend he told me he is learning using some tools he found but he is running them under Ubuntu. What tools are these? If you provide specifics, we might be able to provide information on whether the tools he uses work on FreeBSD as well. If any of you is developing for Android using Freebsd as your platform. Can you tell me about your experience? Tips and advice on what to use to start are welcome. I am not (yet) developing for Android on FreeBSD, but I plan to give it a try in the very near future. My first steps in that direction will probably involve writing code in Ruby, to be packaged and distributed to be used with the Scripting Layer For Android. SL4A uses JRuby, which means that Ruby applications for Android that use SL4A should have access to the standard Java libraries on Android as well (in theory: I have not tested this extensively yet). I am considering graduating to Java/Dalvik development for Android at some point, but I am not sure whether that would be necessary (or even advantageous) for my purposes, at this point. I am interested in any information your query might draw forth here, though, so I'll be watching this thread. I am not sure if this kind of off topic could be of interested to the list so please feel free to answer me directly . I think this is, in fact, on-topic for this list. It is a question particular to FreeBSD, which is the point of the freebsd-questions mailing list, as I understand it. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: OFF Topic. FreeBSD and Android Development
On Fri, Jan 13, 2012 at 7:21 PM, Chad Perrin per...@apotheon.com wrote: On Fri, Jan 13, 2012 at 05:46:13PM -0600, Jorge Biquez wrote: I am interested in learning about Android Development. I am searching information on the web, documentation about how to start learning about Android Development. Any links or tips to look at are more than welcomed. Talking with a friend he told me he is learning using some tools he found but he is running them under Ubuntu. What tools are these? If you provide specifics, we might be able to provide information on whether the tools he uses work on FreeBSD as well. If any of you is developing for Android using Freebsd as your platform. Can you tell me about your experience? Tips and advice on what to use to start are welcome. I am not (yet) developing for Android on FreeBSD, but I plan to give it a try in the very near future. My first steps in that direction will probably involve writing code in Ruby, to be packaged and distributed to be used with the Scripting Layer For Android. SL4A uses JRuby, which means that Ruby applications for Android that use SL4A should have access to the standard Java libraries on Android as well (in theory: I have not tested this extensively yet). I am considering graduating to Java/Dalvik development for Android at some point, but I am not sure whether that would be necessary (or even advantageous) for my purposes, at this point. I am interested in any information your query might draw forth here, though, so I'll be watching this thread. I am not sure if this kind of off topic could be of interested to the list so please feel free to answer me directly . I think this is, in fact, on-topic for this list. It is a question particular to FreeBSD, which is the point of the freebsd-questions mailing list, as I understand it. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] The following pages may be useful if Free Pascal is used as development environment : http://wiki.freepascal.org/FPC_JVM_Android_Development http://wiki.freepascal.org/Android_Interface http://wiki.freepascal.org/Android_Interface/Using_the_Android_SDK%2C_Emulator_and_Phones http://wiki.freepascal.org/Android_Interface/OpenGL_ES_GUI http://wiki.freepascal.org/Android_Programming http://wiki.freepascal.org/Android_Interface/Native_Android_GUI http://wiki.freepascal.org/Custom_Drawn_Interface/Android where Free Pascal and Lazarus are available in FreeBSD ports . Thank you very much . Mehmet Erol Sanliturk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
9.0-RELEASE and RealTek (re) watchdog timeout
I'm attempting to transfer a large amount of data from one zfs pool on one system to a zfs pool on another via zfs send/receive. The sender is 8.2 and the receiver is 9.0. The receiver is using a re network driver, and sometime during the transfer all connectivity is lost with the receiver. Looking at the machine, I see: re0: watchdog timeout re0: link state changed to DOWN re0: link state changed to UP every 5-15 seconds in the logs. I've tried disabling MSI/MSI-X, but that didn't have an affect. The only way I've gotten connectivity back was to reboot the machine. Has anyone seen this before? Any ideas? pciconf of the network interface: vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' class = network subclass = ethernet cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0 cap 05[50] = MSI supports 1 message, 64 bit cap 10[70] = PCI-Express 2 endpoint IRQ 2 max data 128(128) link x1(x1) cap 11[b0] = MSI-X supports 4 messages in map 0x20 enabled cap 03[d0] = VPD ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected ecap 0002[140] = VC 1 max VC0 ecap 0003[160] = Serial 1 1234567812345678 Rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
buildworld -DWITHOUT_OPENSSL fails at lib/libarchive
Not sure when this happened, but RELENG_8 circa FreeBSD-8.1 didn't have this problem. Can anyone confirm that this appears to be a regression in RELENG_9? Output below. -- Devin $ make buildworld -DWITHOUT_OPENSSL [snip] === lib/libarchive (depend) rm -f .depend mkdep -f .depend -a-DDRUID -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 -DPLATFORM_CONFIG_H=\/usr/src/lib/libarchive/config_freebsd.h\ -I/usr/obj/usr/src/lib/libarchive /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_check_magic.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_entry.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_entry_copy_stat.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_entry_stat.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_entry_strmode.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_entry_link_resolver.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_entry_xattr.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_data_into_fd.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_disk.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_disk_entry_from_file.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_disk_set_standard_lookup.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_extract.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_open_fd.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_open_file.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_open_filename.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_open_memory.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_compression_all.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_compression_bzip2.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_compression_compress.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_compression_gzip.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_compression_none.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_compression_program.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_compression_rpm.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_compression_uu.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_compression_xz.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_all.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_ar.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_cpio.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_empty.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_iso9660.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_mtree.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_raw.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_tar.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_xar.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_zip.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_string.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_string_sprintf.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_util.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_virtual.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_disk.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_disk_set_standard_lookup.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_open_fd.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_open_file.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_open_filename.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_open_memory.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_compression_bzip2.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_compression_compress.c
Re: NFSv4 and file locking
On Thu, Jan 12, 2012 at 05:37:57PM +0100, Leon Meßner wrote: Hi, Does anyone know what you have to do to get locking working under NFSv4? I tried the following: # mount_nfs -o nfsv4,sec=sys ip.nfsv4:/nfstest /mnt/test # mount | grep ip.nfsv4 ip.nfsv4:/nfstest on /mnt/test (newnfs) # kldstat | grep nfs 62 0x8103f000 1015fnfscommon.ko 91 0x81054000 3008fnfscl.ko # cd /mnt/test # lockf testlockfile ls lockf: cannot open testlockfile: Operation not supported Looks like lockf is the wrong tool for this job. I tried the NFSv4 lock testing suite from [1] and this worked flawlessly. I don't know if this test actually does what it claims to do but as i couldn't find any freebsd specific testing tool this will probably suffice. Thanks, Leon [1] http://nfsv4.bullopensource.org/tools/tests_index.php (see locks robustness) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: wireless and/or routing question
On 01/14/12 01:38, Warren Block wrote: On Thu, 12 Jan 2012, Waitman Gobble wrote: Hello, I am running 9.0-RC3 i386 on an Acer Aspire One D150. i am having trouble with the wireless setup. I have two wireless cards, the BCM94312MCG that came with it, and an Atheros 5424/2424 that i swapped out. I can run the BCM with ndis and the windows xp driver, and the Atheros with the ath driver that is installed with FreeBSD. (But BCM/ndis is noticeably much slower, Atheros - no green wireless light appears on netbook ) On other models of the Aspire One (AOA150 and D250), adding some ath-specific settings to /boot/loader.conf enables the LED: dev.ath.0.ledpin=3 dev.ath.0.softled=1 I'm curious as to how you can find out which pin to use in this setting? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: buildworld -DWITHOUT_OPENSSL fails at lib/libarchive
On Jan 13, 2012, at 5:20 PM, Devin Teske wrote: Not sure when this happened, but RELENG_8 circa FreeBSD-8.1 didn't have this problem. Can anyone confirm that this appears to be a regression in RELENG_9? Output below. -- Devin $ make buildworld -DWITHOUT_OPENSSL [snip] === lib/libarchive (depend) rm -f .depend mkdep -f .depend -a-DDRUID -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 -DPLATFORM_CONFIG_H=\/usr/src/lib/libarchive/config_freebsd.h\ -I/usr/obj/usr/src/lib/libarchive [snip] /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_xar.c [snip] /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_mtree.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_pax.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_shar.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_ustar.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_zip.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/filter_fork.c In file included from /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_xar.c:57: /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:129:20: error: sha1.h: No such file or directory /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:166:20: error: sha2.h: No such file or directory In file included from /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_mtree.c:42: /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:129:20: error: sha1.h: No such file or directory /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:166:20: error: sha2.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/src/lib/libarchive. *** Error code 1 [snip] Solved this with the following patch (RELENG_9; config_freebsd.h revision 1.28.2.2): --- lib/libarchive/config_freebsd.h.orig2012-01-05 03:44:55.0 -0800 +++ lib/libarchive/config_freebsd.h 2012-01-13 18:43:46.0 -0800 @@ -176,9 +176,4 @@ #defineARCHIVE_HASH_SHA256_OPENSSL 1 #defineARCHIVE_HASH_SHA384_OPENSSL 1 #defineARCHIVE_HASH_SHA512_OPENSSL 1 -#else -#defineARCHIVE_HASH_MD5_LIBC 1 -#defineARCHIVE_HASH_SHA1_LIBC 1 -#defineARCHIVE_HASH_SHA256_LIBC 1 -#defineARCHIVE_HASH_SHA512_LIBC 1 #endif The above patch allowed the mkdep to succeed and later-compilation in the same directory succeeded (yay). -- Devin NOTE: I'll file a PR once we get a successful buildworld (... yeah, next place we stopped with -DWITHOUT_OPENSSL is making (all) in lib/libbsnmp/libbsnmp -- but I'll start a new thread for that). _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fstab problem
Bernt Hansson b...@bananmonarki.se wrote: This is an old machine (1997), not sure it will boot from usb. I'll check. If it can boot from floppy, Plop will boot it from USB. http://www.plop.at/en/bootmanagers.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: access(FULLPATH, xxx);
On Fri, 13 Jan 2012 16:05:18 -0800, Gary Kline wrote: excuse this slip of memory, but do you need the full path PLUS the filename to use access? or just the filename? say that i'm i n ~/tmp/foob and want to deetermine wheether i can access file foob. do i need to use access(home/kline/tmp/foob, F_OK) or will access(foob, F_OK) do the trick? i have already rub chdir(~/tmp) in main(). please note. According to what I read from man 2 access I would assume it has to be an absolute path. When you read to the faccessat() function, you'll see: The faccessat() system call is equivalent to access() except in the case where path specifies a relative path. In this case the file whose accessibility is to be determined is located relative to the directory associated with the file descriptor fd instead of the current working directory. If faccessat() is passed the special value AT_FDCWD in the fd parameter, the current working directory is used and the behavior is identical to a call to access(). Also see SECURITY CONSIDERATIONS later on. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: buildworld -DWITHOUT_OPENSSL fails at (lib/libbsnmp/libbsnmp (all)) (was: lib/libarchive (depend))
Trying to buildworld in RELENG_9 with -DWITHOUT_OPENSSL and getting failures. First failure we encountered required the following patch to get past lib/libarchive (depend)... --- lib/libarchive/config_freebsd.h.orig 2012-01-05 03:44:55.0 -0800 +++ lib/libarchive/config_freebsd.h 2012-01-13 18:43:46.0 -0800 @@ -176,9 +176,4 @@ #define ARCHIVE_HASH_SHA256_OPENSSL 1 #define ARCHIVE_HASH_SHA384_OPENSSL 1 #define ARCHIVE_HASH_SHA512_OPENSSL 1 -#else -#define ARCHIVE_HASH_MD5_LIBC 1 -#define ARCHIVE_HASH_SHA1_LIBC 1 -#define ARCHIVE_HASH_SHA256_LIBC 1 -#define ARCHIVE_HASH_SHA512_LIBC 1 #endif The above patch allowed the mkdep to succeed and later-compilation in the same directory succeeded (yay). However, you don't get far before the next error. Making all in lib/libbsnmp/libbsnmp with -DWITHOUT_OPENSSL... cc -I/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DQUADFMT='llu' -DQUADXFMT='llx' -std=gnu99 -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c /usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmpcrypto.c /usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmpcrypto.c:371: error: conflicting types for 'snmp_passwd_to_keys' /usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmp.h:273: error: previous declaration of 'snmp_passwd_to_keys' was here /usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmpcrypto.c:384: error: conflicting types for 'snmp_get_local_keys' /usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmp.h:274: error: previous declaration of 'snmp_get_local_keys' was here _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD Mailling list and Slieve filter
Hi, I try to filter my maillist emails with slieve... but it dosen't work ;( here are my config: require fileinto; if address :is [from, to] owner-freebsd-b...@freebsd.org { fileinto INBOX/Mailinglisten/FreeBSD/freebsd-bugs; } elsif address :is [from, to] owner-freebsd-questi...@freebsd.org { fileinto INBOX/Mailinglisten/FreeBSD/freebsd-questions; } else { keep; } can anybody help me? thanks, tobi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
SSD for ZIL suggestions?
I'm looking at getting a couple of SSDs to act as ZIL drives on FreeBSD 8/9 systems. Are there any recommended drives? Rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD Mailling list and Slieve filter
On 01/14/12 13:37, Tobi wrote: Hi, I try to filter my maillist emails with slieve... but it dosen't work ;( here are my config: require fileinto; if address :is [from, to] owner-freebsd-b...@freebsd.org { fileinto INBOX/Mailinglisten/FreeBSD/freebsd-bugs; } elsif address :is [from, to] owner-freebsd-questi...@freebsd.org { fileinto INBOX/Mailinglisten/FreeBSD/freebsd-questions; } else { keep; } You probably want to change the owner to just the list in question. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD Mailling list and Slieve filter
On Sat, 14 Jan 2012, Da Rock wrote: On 01/14/12 13:37, Tobi wrote: Hi, I try to filter my maillist emails with slieve... but it dosen't work ;( here are my config: require fileinto; if address :is [from, to] owner-freebsd-b...@freebsd.org { fileinto INBOX/Mailinglisten/FreeBSD/freebsd-bugs; } elsif address :is [from, to] owner-freebsd-questi...@freebsd.org { fileinto INBOX/Mailinglisten/FreeBSD/freebsd-questions; } else { keep; } You probably want to change the owner to just the list in question. Or use the List-ID header. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD Mailling list and Slieve filter
On 01/14/12 15:13, Warren Block wrote: On Sat, 14 Jan 2012, Da Rock wrote: On 01/14/12 13:37, Tobi wrote: Hi, I try to filter my maillist emails with slieve... but it dosen't work ;( here are my config: require fileinto; if address :is [from, to] owner-freebsd-b...@freebsd.org { fileinto INBOX/Mailinglisten/FreeBSD/freebsd-bugs; } elsif address :is [from, to] owner-freebsd-questi...@freebsd.org { fileinto INBOX/Mailinglisten/FreeBSD/freebsd-questions; } else { keep; } You probably want to change the owner to just the list in question. Or use the List-ID header. Ahh yes! That was the one I used to use... :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD Mailling list and Slieve filter
Am 14.01.2012 06:19, schrieb Da Rock: On 01/14/12 15:13, Warren Block wrote: On Sat, 14 Jan 2012, Da Rock wrote: On 01/14/12 13:37, Tobi wrote: Hi, I try to filter my maillist emails with slieve... but it dosen't work ;( here are my config: require fileinto; if address :is [from, to] owner-freebsd-b...@freebsd.org { fileinto INBOX/Mailinglisten/FreeBSD/freebsd-bugs; } elsif address :is [from, to] owner-freebsd-questi...@freebsd.org { fileinto INBOX/Mailinglisten/FreeBSD/freebsd-questions; } else { keep; } You probably want to change the owner to just the list in question. Or use the List-ID header. Ahh yes! That was the one I used to use... :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Thanks!!! It works fine with this: if header :contains [List-ID] freebsd-questions@freebsd.org { fileinto INBOX.Mailinglisten.FreeBSD.freebsd-questions; stop; } ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: wireless and/or routing question UPDATE - WPA
On Fri, Jan 13, 2012 at 8:34 AM, Waitman Gobble gobble...@gmail.com wrote: On Jan 13, 2012 7:19 AM, Matthias Apitz g...@unixarea.de wrote: El día Friday, January 13, 2012 a las 07:03:11AM -0800, Waitman Gobble escribió: Hi, Thanks. I've always heard countless rumors about WPA being wise :) I'll take your advice and take a step up in technology. My stubborn conservatism probably roots back to the time when not all devices could do WPA, or at least I had crazy trouble getting things to work. But this learned attitude was probably around 2000, which was like a million years ago with dinosaurs and stuff. Time for me to finally get with it. ... Concerning WEP ./. WPA: From the technical point it is clear, WPA is more secure; but there are other aspects as well; we have had in Germany cases where the WAN IP of the AP appeared as source addr of some kind of crime (access to child porn or whatever) and the AP owner said: I'm using WEP, it was not me, and someone highjacked my AP ... and he/she went home as free person; matthias -- Matthias Apitz e g...@unixarea.de - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 thanks, going to try WPA this weekend. My apartment is not so convenient for drive-by scanners (cant think of the proper term at the moment) but i do have at least one neighbor who appears potentially suspect.. like he might try to hack my ap for fun. Waitman Hi, Today I picked up a D-Link DIR-815 and set it up for WPA with TKIP/PSK. I believe i followed the instructions in the FreeBSD handbook. However, the wpa_supplicant appears to hang indefinitely. If i control-c it barfs out an error. This clones ale0 wired NIC MAC to ath0 wireless NIC for lagg ifconfig ath0 ether 00:23:5a:59:e1:e4 ifconfig wlan0 create wlandev ath0 ssid BOOTAY ifconfig wlan0 up scan here's the wpa_supplicant that's hanging: wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf p00ntang# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf Trying to associate with 1c:7e:e5:de:ed:52 (SSID='BOOTAY' freq=2452 MHz) Associated with 1c:7e:e5:de:ed:52 WPA: Key negotiation completed with 1c:7e:e5:de:ed:52 [PTK=TKIP GTK=TKIP] CTRL-EVENT-CONNECTED - Connection to 1c:7e:e5:de:ed:52 completed (auth) [id=0 id_str=] ^CCTRL-EVENT-TERMINATING - signal 2 received ioctl[SIOCS80211, op 20, len 7]: Can't assign requested address ELOOP: remaining socket: sock=4 eloop_data=0x284081c0 user_data=0x28412080 handler=0x806d620 If I terminate with ampersand to run asynchronously it keeps running and i have a wireless connection - it works. p00ntang# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf I guess that makes sense but the handbook is not clear to me that it's to be done this way. It's the first time i've set up WPA on FreeBSD so i'm not 100% about what to expect. i am noticing messages about rekeying, so maybe the wpa-supplicant is supposed to keep running. here's /etc/wpa_supplicant.conf network={ ssid=BOOTAY psk=PASSWORD GOES HERE } here's the rest of the lagg to set wired/wireless interface with a failover configuration. this is pretty clear in the handbook but i'll put it here in case someone runs across the thread in the future. ifconfig ale0 up ifconfig wlan0 up ifconfig lagg0 create ifconfig lagg0 up laggproto failover laggport ale0 laggport wlan0 10.0.0.20/24 Thanks Waitman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: wireless and/or routing question UPDATE - WPA
On 01/14/12 16:28, Waitman Gobble wrote: On Fri, Jan 13, 2012 at 8:34 AM, Waitman Gobblegobble...@gmail.com wrote: On Jan 13, 2012 7:19 AM, Matthias Apitzg...@unixarea.de wrote: El día Friday, January 13, 2012 a las 07:03:11AM -0800, Waitman Gobble escribió: Hi, Thanks. I've always heard countless rumors about WPA being wise :) I'll take your advice and take a step up in technology. My stubborn conservatism probably roots back to the time when not all devices could do WPA, or at least I had crazy trouble getting things to work. But this learned attitude was probably around 2000, which was like a million years ago with dinosaurs and stuff. Time for me to finally get with it. ... Concerning WEP ./. WPA: From the technical point it is clear, WPA is more secure; but there are other aspects as well; we have had in Germany cases where the WAN IP of the AP appeared as source addr of some kind of crime (access to child porn or whatever) and the AP owner said: I'm using WEP, it was not me, and someone highjacked my AP ... and he/she went home as free person; matthias -- Matthias Apitz eg...@unixarea.de - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 thanks, going to try WPA this weekend. My apartment is not so convenient for drive-by scanners (cant think of the proper term at the moment) but i do have at least one neighbor who appears potentially suspect.. like he might try to hack my ap for fun. Waitman Hi, Today I picked up a D-Link DIR-815 and set it up for WPA with TKIP/PSK. I believe i followed the instructions in the FreeBSD handbook. However, the wpa_supplicant appears to hang indefinitely. If i control-c it barfs out an error. This clones ale0 wired NIC MAC to ath0 wireless NIC for lagg ifconfig ath0 ether 00:23:5a:59:e1:e4 ifconfig wlan0 create wlandev ath0 ssid BOOTAY ifconfig wlan0 up scan here's the wpa_supplicant that's hanging: wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf p00ntang# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf Trying to associate with 1c:7e:e5:de:ed:52 (SSID='BOOTAY' freq=2452 MHz) Associated with 1c:7e:e5:de:ed:52 WPA: Key negotiation completed with 1c:7e:e5:de:ed:52 [PTK=TKIP GTK=TKIP] CTRL-EVENT-CONNECTED - Connection to 1c:7e:e5:de:ed:52 completed (auth) [id=0 id_str=] ^CCTRL-EVENT-TERMINATING - signal 2 received ioctl[SIOCS80211, op 20, len 7]: Can't assign requested address ELOOP: remaining socket: sock=4 eloop_data=0x284081c0 user_data=0x28412080 handler=0x806d620 If I terminate with ampersand to run asynchronously it keeps running and i have a wireless connection - it works. p00ntang# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf I guess that makes sense but the handbook is not clear to me that it's to be done this way. It's the first time i've set up WPA on FreeBSD so i'm not 100% about what to expect. i am noticing messages about rekeying, so maybe the wpa-supplicant is supposed to keep running. here's /etc/wpa_supplicant.conf network={ ssid=BOOTAY psk=PASSWORD GOES HERE } here's the rest of the lagg to set wired/wireless interface with a failover configuration. this is pretty clear in the handbook but i'll put it here in case someone runs across the thread in the future. ifconfig ale0 up ifconfig wlan0 up ifconfig lagg0 create ifconfig lagg0 up laggproto failover laggport ale0 laggport wlan0 10.0.0.20/24 Just stick the config in rc.conf and make sure you include WPA in the wlan0 definition. It will just work then. For reference, to run wpa_supplicant from the cli you usually add -B in the flags to daemonise it, and run in the background; otherwise it will run in the foreground for debugging purposes. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
disk problem(s)
Hello list! 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Whenever a program tries to make a directory on this slice it gets this error mkdir: spool/text/test: Too many links This is the slice /dev/ad4s4d202G 37G149G20%/news/spool/text One can create a file without problems just not directories. Checked sysctl but don't know what to look for. A boot in the right end would be helpful. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: access(FULLPATH, xxx);
From owner-freebsd-questi...@freebsd.org Fri Jan 13 18:15:44 2012 Date: Fri, 13 Jan 2012 16:05:18 -0800 From: Gary Kline kl...@thought.org To: FreeBSD Mailing List freebsd-questions@freebsd.org Cc: Subject: access(FULLPATH, xxx); excuse this slip of memory, but do you need the full path PLUS the filename to use access? or just the filename? say that i'm i n ~/tmp/foob and want to deetermine wheether i can access file foob. do i need to use access(home/kline/tmp/foob, F_OK) or will access(foob, F_OK) do the trick? i have already rub chdir(~/tmp) in main(). please note. To repeat some advice from one of my Computer Science professors, many years ago, whenever I asked 'how does it work' questions: Try it and find out. That is -not- a flippant brush-off, but a rather profound truth. (Admittedly, it did take me a while to understand that, but the professor *WAS* absolutely correct with that response.) You see, the *ONLY* thing that matters is 'what the machine does'. And, a trivial test case will give an _authoritative_ answer. Anything that anybody says about 'how it works' is merely an *opinion*, and they could be wrong. The test case will, however, ALWAYS give you the 'hard truth' about how it works in your environment. If you have the skills to use an answer to the question you asked, you have the skills to write the 'test case' program. And there is one other SIGNIFICANT benefit to doing so -- you will have an *immediate* answer to your question, rather than having to wait for 'someone else' to do the necesary research for you'. 'Try it and find out' -- you'll be amazed at how quickly it works. grin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org