Re: The book of pf...
On Mon, Jan 17, 2011 at 10:37 PM, Modulok modu...@gmail.com wrote: List, The Book of PF: A No-Nonsense Guide to the OpenBSD Firewall This book comes in two editions. The first was published in December 2007, the second, November, 2010. Does anyone have this? And if so would I be correct to get the first edition instead? I know FreeBSD's pf lags being openBSD's, so I'm not sure which version of the book to get, if either are applicable to the version of pf that FreeBSD runs? (FreeBSD 8.1) I don't follow OpenBSD, but my understanding is there has been significant change between FreeBSD's version of PF and the current version in OpenBSD. According to the freebsd-pf@ list(which is maybe a better place for your question) PF version 4.5 is scheduled to appear in FreeBSD 9 so we'll still be well behind. I would guess the previous version of the book has syntax and examples closer to what you'll be using if FreeBSD is your host although 2nd editions often have a lot of useful additions and corrections. -- Adam Vande More ___ 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
Bluetooth mouse does not work after reboot
Hello, I bought a Logitech V470 bluetooth mouse for my laptop. I followed this website to configure mine : http://astralblue.livejournal.com/357664.html It had worked correctly yesterday (when I setup everything) now nothing happens, after the reboot if I put the mouse in the association state it does not associate with my laptop (the mouse led is blinking all the time). There is no messages at all and bthidd, hcsecd are running too. in my /etc/bluetooth/hosts I have : 00:1f:20:0f:62:31 mouse in my /etc/bluetooth/hcsecd.conf I have : [..snip..] device { bdaddr 00:1f:20:0f:62:31; nameLogitech V470; key nokey; pin ; } in my /etc/bluetooth/bthidd.conf I have : device { bdaddr 00:1f:20:0f:62:31; control_psm 0x11; interrupt_psm 0x13; reconnect_initiate true; battery_power true; normally_connectablefalse; hid_descriptor { 0x05 0x01 0x09 0x02 0xa1 0x01 0x85 0x02 0x09 0x01 0xa1 0x00 0x05 0x09 0x19 0x01 0x29 0x08 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x08 0x81 0x02 0x05 0x01 0x09 0x30 0x09 0x31 0x16 0x01 0xf8 0x26 0xff 0x07 0x75 0x0c 0x95 0x02 0x81 0x06 0x09 0x38 0x15 0x81 0x25 0x7f 0x75 0x08 0x95 0x01 0x81 0x06 0x05 0x0c 0x0a 0x38 0x02 0x75 0x08 0x95 0x01 0x81 0x06 0xc0 0xc0 0x06 0x00 0xff 0x09 0x01 0xa1 0x01 0x85 0x10 0x75 0x08 0x95 0x06 0x15 0x00 0x26 0xff 0x00 0x09 0x01 0x81 0x00 0x09 0x01 0x91 0x00 0xc0 }; } So what is the problem now? If you have any clue, thanks. Kind regards, -- David Demelier ___ 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
documentation OF FreeBSD
I remember that there was a documentation project going on for FreeBSD and I'd like know its status and URL . Hopefully there is a good index (I consider this an essential tool in books). Another section I would like to see is one about internet access and also the subsection about email . I want to be able to access my juno email account and see a list of the received emails (with the name of the sender, the subject, and date time sent, possibly other data), be able to select emails to read (and to delete them after they are read at the reader's discretion). There is also the flip side, the ability to create emails, specify to whom they are to be sent, and send them. Moms Asked to Return to School Grant Funding May Be Available to Those That Qualify. http://thirdpartyoffers.juno.com/TGL3141/4d35642919834bf38d6st02duc ___ 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: documentation OF FreeBSD
On Tue, Jan 18, 2011 at 11:57 AM, gs_stol...@juno.com gs_stol...@juno.comwrote: I remember that there was a documentation project going on for FreeBSD and I'd like know its status and URL . Hopefully there is a good index (I consider this an essential tool in books). On the FRONT PAGE of the FreeBSD.org website there is a big ole button with the word Documentation on it? The link (for the truely lazy) is : http://www.freebsd.org/docs.html Another section I would like to see is one about internet access and also the subsection about email . I want to be able to access my juno email account and see a list of the received emails (with the name of the sender, the subject, and date time sent, possibly other data), be able to select emails to read (and to delete them after they are read at the reader's discretion). There is also the flip side, the ability to create emails, specify to whom they are to be sent, and send them. All of the above is accomplished using a Mail User Agent (MUA) application,... there are litterally thousands to choose from so it is HIGHLY unlikely that any open source OS will include this in the manual... Install a few and decide for youreself what suits you best. ___ 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: Updating glib from 2.24.2 to 2.26.1_1 fails
On Mon, Jan 17, 2011 at 7:07 PM, Peter Boosten pe...@boosten.org wrote: On 14 dec 2010, at 09:12, Peter Boosten wrote: Hi all, In an attempt to update glib on my 8.0-machine, portupgrade stops with this message: gnome-libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\GLib-GIO\ -I.. -I../glib -I../glib -I.. -I../gmodule -DG_DISABLE_CAST_CHECKS -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED -DGIO_COMPILATION -DGIO_MODULE_DIR=\/usr/local/lib/gio/modules\ -I/usr/local/include -DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -O -pipe -march=pentiumpro -Wall -MT gzlibcompressor.lo -MD -MP -MF .deps/gzlibcompressor.Tpo -c gzlibcompressor.c -fPIC -DPIC -o .libs/gzlibcompressor.o gzlibcompressor.c:68: error: expected specifier-qualifier-list before 'gz_header' gzlibcompressor.c: In function 'g_zlib_compressor_set_gzheader': gzlibcompressor.c:80: error: 'GZlibCompressor' has no member named 'file_info' gzlibcompressor.c:83: error: 'GZlibCompressor' has no member named 'gzheader' gzlibcompressor.c:83: error: 'gz_header' undeclared (first use in this function) gzlibcompressor.c:83: error: (Each undeclared identifier is reported only once gzlibcompressor.c:83: error: for each function it appears in.) gzlibcompressor.c:84: error: 'GZlibCompressor' has no member named 'gzheader' gzlibcompressor.c:86: error: 'GZlibCompressor' has no member named 'file_info' gzlibcompressor.c:87: error: 'GZlibCompressor' has no member named 'gzheader' gzlibcompressor.c:88: error: 'GZlibCompressor' has no member named 'gzheader' gzlibcompressor.c:90: error: 'GZlibCompressor' has no member named 'gzheader' gzlibcompressor.c:91: error: 'GZlibCompressor' has no member named 'file_info' gzlibcompressor.c:94: warning: implicit declaration of function 'deflateSetHeader' gzlibcompressor.c:94: error: 'GZlibCompressor' has no member named 'gzheader' gzlibcompressor.c: In function 'g_zlib_compressor_finalize': gzlibcompressor.c:112: error: 'GZlibCompressor' has no member named 'file_info' gzlibcompressor.c:113: error: 'GZlibCompressor' has no member named 'file_info' gzlibcompressor.c: In function 'g_zlib_compressor_get_property': gzlibcompressor.c:171: error: 'GZlibCompressor' has no member named 'file_info' gzlibcompressor.c: In function 'g_zlib_compressor_get_file_info': gzlibcompressor.c:310: error: 'GZlibCompressor' has no member named 'file_info' gzlibcompressor.c: In function 'g_zlib_compressor_set_file_info': gzlibcompressor.c:335: error: 'GZlibCompressor' has no member named 'file_info' gzlibcompressor.c:338: error: 'GZlibCompressor' has no member named 'file_info' gzlibcompressor.c:339: error: 'GZlibCompressor' has no member named 'file_info' gzlibcompressor.c:342: error: 'GZlibCompressor' has no member named 'file_info' gmake[4]: *** [gzlibcompressor.lo] Error 1 gmake[4]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.26.1/gio' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.26.1/gio' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.26.1/gio' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.26.1' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/devel/glib20. *** Error code 1 Stop in /usr/ports/devel/glib20. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20101213-34478-1rabaqj-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=glib-2.24.2 UPGRADE_PORT_VER=2.24.2 make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! devel/glib20 (glib-2.24.2) (compiler error) Anyone know how to solve this issue? Still having problems getting this done, and now it gets worse, since it's harder and harder to update ports depending on glib. Someone suggested offlist to install the zlib.h from version 1.2.5, however that didn't work either. Am I really the only one having this problem (or using glib :-) )? help... Just guessing: have you missed the following entries in /usr/ports/UPDATING and messed up your environment? 20101208: AFFECTS: autotools AUTHOR: autoto...@freebsd.org Another stage in the autotools cleanup that reduces tree churn whilst updating components, a number of ports have now moved to non-versioned locations since there is now only the concept of legacy and current versions. # portmaster -o devel/autoconf devel/autoconf268 # portmaster -o devel/automake devel/automake111 # portmaster -o devel/libtool devel/libtool22 # portmaster -o devel/libltdl devel/libltdl22 substitute 'portupgrade' for 'portmaster' accordingly if that's your your upgrade tool of choice. 20101204: AFFECTS: autotools AUTHOR: autoto...@freebsd.org The next stage in the ongoing cleanup of autotools-using ports is a refactoring of bsd.autotools.mk so that version numbers are no
Re: documentation OF FreeBSD
On Tue, 18 Jan 2011 13:04:58 +0200 Ross Cameron ross.came...@linuxpro.co.za wrote: All of the above is accomplished using a Mail User Agent (MUA) application,... there are litterally thousands to choose from so it is HIGHLY unlikely that any open source OS will include this in the manual... You mean something like http://www.freebsd.org/doc/handbook/mail-agents.html ? :) -- Bruce Cran ___ 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: documentation OF FreeBSD
On 01/18/2011 12:04 PM, Ross Cameron wrote: On Tue, Jan 18, 2011 at 11:57 AM, gs_stol...@juno.com gs_stol...@juno.comwrote: I remember that there was a documentation project going on for FreeBSD and I'd like know its status and URL . Hopefully there is a good index (I consider this an essential tool in books). On the FRONT PAGE of the FreeBSD.org website there is a big ole button with the word Documentation on it? The link (for the truely lazy) is : http://www.freebsd.org/docs.html Another section I would like to see is one about internet access and also the subsection about email . I want to be able to access my juno email account and see a list of the received emails (with the name of the sender, the subject, and date time sent, possibly other data), be able to select emails to read (and to delete them after they are read at the reader's discretion). There is also the flip side, the ability to create emails, specify to whom they are to be sent, and send them. All of the above is accomplished using a Mail User Agent (MUA) application,... there are litterally thousands to choose from so it is HIGHLY unlikely that any open source OS will include this in the manual... Even this is in the Handbook http://www.freebsd.org/doc/handbook/mail-agents.html Install a few and decide for youreself what suits you best. DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, disclosure, copying, distribution or reliance on any of it by anyone else is prohibited. If you have received it by mistake please let us know by reply and then delete it from your system. ___ 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: The book of pf...
On Tue, Jan 18, 2011 at 9:25 AM, Adam Vande More amvandem...@gmail.com wrote: On Mon, Jan 17, 2011 at 10:37 PM, Modulok modu...@gmail.com wrote: List, The Book of PF: A No-Nonsense Guide to the OpenBSD Firewall This book comes in two editions. The first was published in December 2007, the second, November, 2010. Does anyone have this? And if so would I be correct to get the first edition instead? I know FreeBSD's pf lags being openBSD's, so I'm not sure which version of the book to get, if either are applicable to the version of pf that FreeBSD runs? (FreeBSD 8.1) I don't follow OpenBSD, but my understanding is there has been significant change between FreeBSD's version of PF and the current version in OpenBSD. According to the freebsd-pf@ list(which is maybe a better place for your question) PF version 4.5 is scheduled to appear in FreeBSD 9 so we'll still be well behind. I would guess the previous version of the book has syntax and examples closer to what you'll be using if FreeBSD is your host although 2nd editions often have a lot of useful additions and corrections. No. The second edition also includes the syntax for FreeBSD 8.x.(It also includes the old sytnax for OpenBSD as well as the new syntax) -- chs, ___ 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: How to adjust man page line length
On Jan 17, 2011, at 9:40 PM, David J. Weller-Fahy wrote: To expand on the question in the subject: How does one tell `man` not to automatically format man pages to 80 columns? I'm looking for a fairly easy way to do this, or confirmation it would involve internal gymnastics I may not be willing to perform. Perhaps FreeBSD should look into using man from MacOS X where man -c will do as requested above. Will format to the output device width. For FreeBSD I suspect the solution involves man -t and then studying how to tell groff(1) to format for one's console rather than the default Postscript output. man -t generates very nice printable man pages. As for the request not to be CC'ed in reply, put the list address in the Reply-To: header as I have done here. -- David Kelly N4HHE, dke...@hiwaay.net Whom computers would destroy, they must first drive mad. ___ 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: ndis-based network driver fails to load at boot (8.2-PRERELEASE)
On Mon, Jan 17, 2011 at 5:12 PM, Yuri y...@rawbw.com wrote: Do you load ndis and if_ndis via loader.conf too? Yes, presense of if_ndis and ndis in loader.conf doesn't change anything. Does reverting: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/if_ndis/if_ndis_usb.c.diff?r1=1.19.2.3;r2=1.19.2.4;f=h fixed problem? ___ 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: documentation OF FreeBSD
Considering the wording of the original posting I HIGHLY doubt the OP would be willing to use PINE/MUTT/MAIL. So they hardly count,... 99% chances (my bet anyways) are that hey wanted a GUI app for this. Opportunity is most often missed by people because it is dressed in overalls and looks like work. Thomas Alva Edison Inventor of 1093 patents, including: The light bulb, phonogram and motion pictures. On Tue, Jan 18, 2011 at 2:05 PM, Bruce Cran br...@cran.org.uk wrote: On Tue, 18 Jan 2011 13:04:58 +0200 Ross Cameron ross.came...@linuxpro.co.za wrote: All of the above is accomplished using a Mail User Agent (MUA) application,... there are litterally thousands to choose from so it is HIGHLY unlikely that any open source OS will include this in the manual... You mean something like http://www.freebsd.org/doc/handbook/mail-agents.html ? :) -- Bruce Cran ___ 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
mit-scheme
Yesterday I make install the mit-scheme. And i use some methods in the repl. However. I don't know how to compile a code file Here is how to compile in mit-scheme User’s Manual 4.1 Compilation Procedures cf filename [destination] [procedure] This is the program that transforms a source-code file into native-code binary form. If destination is not given, as in (cf foo) cf compiles the file ‘foo.scm’, producing the file ‘foo.com’ (incidentally it will also produce ‘foo.bin’, ‘foo.bci’, and possibly ‘foo.ext’). If you later evaluate (load foo) ‘foo.com’ will be loaded rather than ‘foo.scm’. If destination is given, it says where the output files should go. If this argument is a directory, they go in that directory, e.g.: (cf foo ../bar/) will take ‘foo.scm’ and generate the file ‘../bar/foo.com’. If destination is not a directory, it is the root name of the output: (cf foo bar) takes ‘foo.scm’ and generates ‘bar.com’. I can't understand . I use scheme --compile test.asm It doesn't work; 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: harddrive encryption
Quoth Roland Smith on Tuesday, 18 January 2011: On Mon, Jan 17, 2011 at 10:05:53PM -0700, Modulok wrote: On 1/17/11, Roland Smith rsm...@xs4all.nl wrote: On Mon, Jan 17, 2011 at 09:30:39PM +0100, Alokat wrote: Hi, is it possible to encrypt my full harddrive (excluding /boot) during a freebsd installation. Or do I have to do this after the installation manually? Currently you have to do it manually afterwards. Personally, I would not bother encrypting the OS data; there is nothing secret there, and it does have a performance impact. Plus it would provide ample material for a known-plaintext attack! Modern ciphers such as AES are not susceptible to known plaintext attacks. That is indeed what it says on http://en.wikipedia.org/wiki/Known-plaintext_attack. But without any source or other justification. In this case, I'd say [citation needed]! At one time Enigma and DES were regarded as unbreakable. :-) Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) It seems prudent to me to reduce the attack surface to that which really needs to be defended -- When you defend everything, you defend nothing. Not to mention avoiding the overhead of encrypting OS files. What do you folks think of the relative merits of AES vs Blowfish for disk encryption? -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgp3LLybZAwl4.pgp Description: PGP signature
Re: How to adjust man page line length
On Mon, 17 Jan 2011 21:40:38 -0600, David J. Weller-Fahy dave-lists-freebsd-questi...@weller-fahy.com wrote: To expand on the question in the subject: How does one tell `man` not to automatically format man pages to 80 columns? I'm looking for a fairly easy way to do this, or confirmation it would involve internal gymnastics I may not be willing to perform. Set the 'columns' attribute of your tty: stty columns 60 man xxx This should do it. pgpweCUC8F7Dj.pgp Description: PGP signature
Re: harddrive encryption
On Tue, Jan 18, 2011 at 08:10:40AM -0800, Chip Camden wrote: It seems prudent to me to reduce the attack surface to that which really needs to be defended -- When you defend everything, you defend nothing. Not to mention avoiding the overhead of encrypting OS files. Indeed. What do you folks think of the relative merits of AES vs Blowfish for disk encryption? Neither have been broken with their complete number of rounds. Versions of both can be broken with a reduced number of rounds. See http://www.schneier.com/paper-blowfish-oneyear.html for some analysis of blowfish, and e.g. http://www.schneier.com/paper-rijndael.html for several attacks on Rijndael with reduced rounds. It looks like both are viable choices today. Certainly good enough to protect your data in case of hardware theft. No encryption method is secure against lead-pipe cryptanalysis. [http://www.schlockmercenary.com/2009-10-19] :-) But it seems like a safe bet that there will be more effort spent on breaking AES/Rijndael. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpNiIKaFRSNn.pgp Description: PGP signature
Re: harddrive encryption
On Mon, 17 Jan 2011 21:30:39 +0100 Alokat mail...@alokat.org wrote: is it possible to encrypt my full harddrive (excluding /boot) during a freebsd installation. Or do I have to do this after the installation manually? The FreeBSD installer (sysinstall) doesn't support anything other than plain UFS but PCBSD's (pc-sysinstall) supports encryption, ZFS etc. - and it can do a plain FreeBSD installation as well as PCBSD. You can get it from http://www.pcbsd.org . -- Bruce Cran ___ 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: The book of pf...
No. The second edition also includes the syntax for FreeBSD 8.x.(It also includes the old sytnax for OpenBSD as well as the new syntax) -- chs, Thank you! That's what I needed to know. -Modulok- ___ 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: How to adjust man page line length
On Tue, Jan 18, 2011 at 06:11:13PM +0100, Giorgos Keramidas wrote: On Mon, 17 Jan 2011 21:40:38 -0600, David J. Weller-Fahy dave-lists-freebsd-questi...@weller-fahy.com wrote: To expand on the question in the subject: How does one tell `man` not to automatically format man pages to 80 columns? I'm looking for a fairly easy way to do this, or confirmation it would involve internal gymnastics I may not be willing to perform. Set the 'columns' attribute of your tty: stty columns 60 man xxx This should do it. *Should*? You posted without trying it? (I tried, did not work). -- David Kelly N4HHE, dke...@hiwaay.net Whom computers would destroy, they must first drive mad. ___ 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: Updating glib from 2.24.2 to 2.26.1_1 fails
On 18 jan 2011, at 12:45, C. P. Ghost wrote: Just guessing: have you missed the following entries in /usr/ports/UPDATING and messed up your environment? No, I actually performed these. I think it's some very old stuff roaming my machine. For instance, I have no idea how an older version of zlib.h and zconf.h could be in /usr/local/include. Thanks for the suggestion anyway. -- Peter Boosten http://www.boosten.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: The book of pf...
On 17 January 2011 23:37, Modulok modu...@gmail.com wrote: Or perhaps someone could suggest something else? I read the examples and basic handbook for pf, but wanted a bit more. I'm going to be tacking a firewall project coming up and need to be well prepared. Suggested readings appreciated. 1) Definitely get the first version 2) Definitely pick up the book. While the OpenBSD FAQ is *extremely* useful, you don't always have access. This is the single best pf reference I've seen. kmw ___ 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: How to adjust man page line length
On Tue, 18 Jan 2011 06:48:13 -0600, David Kelly dke...@hiwaay.net wrote: On Jan 17, 2011, at 9:40 PM, David J. Weller-Fahy wrote: To expand on the question in the subject: How does one tell `man` not to automatically format man pages to 80 columns? I'm looking for a fairly easy way to do this, or confirmation it would involve internal gymnastics I may not be willing to perform. Perhaps FreeBSD should look into using man from MacOS X where man -c will do as requested above. Will format to the output device width. For FreeBSD I suspect the solution involves man -t and then studying how to tell groff(1) to format for one's console rather than the default Postscript output. man -t generates very nice printable man pages. I'd like to mention - although this might not be a full answer to the OP's initial question - that this is similarly done when converting manual pages to PS or PDF output for better printing. man2pdf.sh: #!/bin/sh [ $1 != ] zcat `man -w $1` | \ groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - $1.pdf This would cause groff to format for A4 paper width. It's fully possible that a similar approach can be used for requesting a specific terminal width given in characters, rather than inches or centimeters (from a predefined value). -- 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: documentation OF FreeBSD
On Tue, 18 Jan 2011 17:07:12 +0200, Ross Cameron ross.came...@linuxpro.co.za wrote: Considering the wording of the original posting I HIGHLY doubt the OP would be willing to use PINE/MUTT/MAIL. So they hardly count,... 99% chances (my bet anyways) are that hey wanted a GUI app for this. In this case, out of the commonly used programs one could be chosen, e. g. Thunderbird. But also lightweighter applications such as Sylpheed or even KMail (when you're already intending to use KDE) or Evolution (Gnome's equivalent, if I remember correctly) is an option. Using fetchmail to get the messages _independently_ from any MUA gives you the chance to test various applications, or even use them in parallel, employing one and the same mail data. Using the system's mailer (e. g. via SMARTHOST) makes you fully independent from the traditional POP/SMTP accounts _in_ the MUA. -- 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: ndis-based network driver fails to load at boot (8.2-PRERELEASE)
On 01/18/2011 06:23, Paul B Mahol wrote: Does reverting: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/if_ndis/if_ndis_usb.c.diff?r1=1.19.2.3;r2=1.19.2.4;f=h fixed problem? Yes it does fix the problem. Yuri ___ 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: a few Last qstns on the wordpress installation....
On Fri, Jan 14, 2011 at 10:20 PM, Gary Kline kl...@thought.org wrote: I've been trying my level best to keep the sharks'teeth of reality from knocking me too far ever since last Sunday when the murders in Tuscon invaded the news and other parts of life. Then, last night, I learned that a girl on my daughter's cherrleading team had killed herself. Practice is M/W/F at 06:00, so nobody at the high school knew anything until the students were told late yesterday. My daughter wasn't in a good mood last night so we are all waiting for more news. Phew, that's horrible news. I hope your daughter is well and coping with the shock. There are differences between murders and a suicide, but both are tragic events. ESp'ly when they involve the live s of somebody young. anyway, since Monday I've been thinking of the title: Miles to go Before I sleep. Ah, the one and only Robert Frost! I know too well how you feel. To lighten up your mood, here's a little variation sometimes used on answering machines. Last heard on one some 12 years ago, unless memory fails me: These words are lovely dark and deep, But I've got promises to keep And miles to go before I sleep, So leave a message at the beep. Now I lay me down to sleep; Leave a message at the beep. And if I die before I wake, Remember to erase the tape. 99.999_% of the time i feel too old and useless to be of any use other than to share what level of wisdom I've accumulated over 65 years. figure that if my blog helps a few people, that's a reason for having a monthly entry... or whatever. gary -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ 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
Keyboard repeat issues with Dell Optiplex 980s
We've recently upgraded a few desktop workstations from Dell Optiplex 960s to Optiplex 980s. We were running FreeBSD 8.1-RELEASE. The migration was performed by simply swapping the drives into the new systems. Immediately after switching people over, they all began to report bizarre keyboard issues - things like infinite key repeats (letters, numbers, enter) for keys they did not hold down. The key repeats continue indefinitely until another key is pressed. Occasionally, even mouse input will trigger similar infinite keyboard input repetition. In addition to the repeat issue, sometimes physical key-presses are not registered by FreeBSD, leading to typos and angry developers. We've tried doing fresh installs of FreeBSD 8.2-RC2 on two of these systems, and the issue persists. Because of the observed behavior, I'm thinking that this is due to new hardware in the 980s which isn't timing or handling interrupts correctly under the FreeBSD kernel. Looking at a 'pciconf -lvb' from each system, I noticed that the 980 has two USB controllers which probe under ehci(4), while the 960 (which does not exhibit this problem), enumerates six uhci(4) controllers and two ehci(4) controllers. To cut to the chase here, the 960 users' keyboards probe under a USB1.0 uhci(4), while the 980s only have ehci(4) devices to attach to. So, I guess what I'm asking is - has anyone else seen any keyboard repeat or other USB craziness with ehci(4) ports or otherwise Intel PCH controllers?Any fellow Optiplex 980 users? I'd be more than happy to provide pciconf or other output if requested. Thanks, Steve Polyack ___ 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: use of menus crashes Firefox?
OK. This is still being a problem. I've removed Firefox 3.6 from my system and installed Firefox 3.5. Use of menus doesn't cause 3.5 to crash, but it sill has problems. On some web sites, the browser dumps core. For example trying to log in, create an account, or retrieve a password at forum.parallels.com which leaves this core (as processed by gdb): Core was generated by `firefox-bin'. Program terminated with signal 12, Bad system call. #0 0x29d7f16b in ?? () Now, again, this is in Firefox 3.5. That message isn't very informative to me, but maybe it is helpful to someone else? Again, this started after updating GTK on December 18 or so, following the instructions in /usr/ports/UPDATING Among the things that will cause Firefox to dump core in 3.5 or 3.6 are visiting some web sites (see above), accepting a signed secure certificate the first time (once it crashes Firefox, it's not a problem on subsequent visits), attempting to accept a questionable certificate (either telling Firefox to accept the certificate permanently or not), or exiting Firefox. In firefox 3.6, anything that generates a menu will also crash the browser. I have tried So far I have tried the following: * Remove the .mozilla directory and start firefox without extensions, plugins, or customizations * Force reinstall of Firefox (portupgrade -F) * Remove and reinstall Firefox * Force reinstall of the mouse input driver * Remove and reinstall xorg and components * Remove and reinstall Fluxbox window manager * pkg_deleteing all firefox plugins and nspluginwrapper * Uninstalling Firefox 3.6 and installing Firefox 3.5 (helpful, but not fixed) * running portupgrade -aOW again I'm wondering if this can't be fixed short of formatting and starting over, but I'd really hope to avoid a very M$Windows solution like that... Any further ideas? Keith S. ___ 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
Mounting a recovered disk
Hello. I'm trying a rescue on a failing drive. I used ddrescue to get an image (which showed a single unreadable sector). # file myimage myimage: x86 boot sector, LInux i386 boot LOader; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0x7, active, starthead 1, startsector 63, 40965687 sectors; partition 2: ID=0x82, starthead 254, startsector 40965750, 2104515 sectors; partition 3: ID=0x83, starthead 254, startsector 43070265, 36965565 sectors, code offset 0x48 Then i used mdconfig -f myimage and now I have # ls -l /dev/|grep md0 crw-r- 1 root operator0, 111 Jan 18 23:42 md0 crw-r- 1 root operator0, 112 Jan 18 23:42 md0s1 crw-r- 1 root operator0, 113 Jan 18 23:42 md0s2 crw-r- 1 root operator0, 114 Jan 18 23:42 md0s3 Fdisk gives: # fdisk /dev/md0 *** Working on device /dev/md0 *** parameters extracted from in-core disklabel are: cylinders=4982 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=4982 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX) start 63, size 40965687 (20002 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 130 (0x82),(Linux swap or Solaris x86) start 40965750, size 2104515 (1027 Meg), flag 0 beg: cyl 1023/ head 254/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: sysid 131 (0x83),(Linux native) start 43070265, size 36965565 (18049 Meg), flag 0 beg: cyl 1023/ head 254/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 4 is: UNUSED Now I'd expect to mount as follows, but I get errors: # mount -r -t ntfs /dev/md0s1 /mnt/ mount_ntfs: /dev/md0s1: Invalid argument # mount -r -t ext2fs /dev/md0s3 /mnt/ mount: /dev/md0s3 : Invalid argument Instead the following works, which surprises me (and is useless, anyway): # mount -t ext2fs /dev/md0s1 /mnt/ # find /mnt/ /mnt/ /mnt/lost+found Just in case: # kldstat Id Refs AddressSize Name 1 20 0xc040 5cc790 kernel 21 0xc09cd000 353c splash_bmp.ko 31 0xc46c3000 1geom_eli.ko 41 0xc46d3000 23000crypto.ko 51 0xc46f7000 a000 zlib.ko 62 0xc4fc3000 b000 ntfs.ko 71 0xc501c000 1ext2fs.ko 81 0xc5041000 2000 ntfs_iconv.ko 91 0xc5043000 4000 libiconv.ko Am I doing something wrong? bye Thanks av. ___ 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: Keyboard repeat issues with Dell Optiplex 980s
On Tue, Jan 18, 2011 at 04:40:13PM -0500, Steve Polyack wrote: We've recently upgraded a few desktop workstations from Dell Optiplex 960s to Optiplex 980s. We were running FreeBSD 8.1-RELEASE. The migration was performed by simply swapping the drives into the new systems. Immediately after switching people over, they all began to report bizarre keyboard issues - things like infinite key repeats (letters, numbers, enter) for keys they did not hold down. The key repeats continue indefinitely until another key is pressed. Occasionally, even mouse input will trigger similar infinite keyboard input repetition. In addition to the repeat issue, sometimes physical key-presses are not registered by FreeBSD, leading to typos and angry developers. We've tried doing fresh installs of FreeBSD 8.2-RC2 on two of these systems, and the issue persists. Because of the observed behavior, I'm thinking that this is due to new hardware in the 980s which isn't timing or handling interrupts correctly under the FreeBSD kernel. Looking at a 'pciconf -lvb' from each system, I noticed that the 980 has two USB controllers which probe under ehci(4), while the 960 (which does not exhibit this problem), enumerates six uhci(4) controllers and two ehci(4) controllers. To cut to the chase here, the 960 users' keyboards probe under a USB1.0 uhci(4), while the 980s only have ehci(4) devices to attach to. So, I guess what I'm asking is - has anyone else seen any keyboard repeat or other USB craziness with ehci(4) ports or otherwise Intel PCH controllers?Any fellow Optiplex 980 users? I'd be more than happy to provide pciconf or other output if requested. Try adding the following to /boot/loader.conf then reboot and see if the excessive repeat behaviour changes: hint.kbdmux.0.disabled=1 It would also help if you would state exactly what brand/model of keyboard is used. Yes, believe it or not, it matters. dmesg output would be helpful in this case. -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB | ___ 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: use of menus crashes Firefox?
2011-01-18 23:56, Keith Seyffarth skrev: OK. This is still being a problem. I've removed Firefox 3.6 from my system and installed Firefox 3.5. Use of menus doesn't cause 3.5 to crash, but it sill has problems. On some web sites, the browser dumps core. For example trying to log in, create an account, or retrieve a password at forum.parallels.com which leaves this core (as processed by gdb): Core was generated by `firefox-bin'. Program terminated with signal 12, Bad system call. #0 0x29d7f16b in ?? () Now, again, this is in Firefox 3.5. That message isn't very informative to me, but maybe it is helpful to someone else? Again, this started after updating GTK on December 18 or so, following the instructions in /usr/ports/UPDATING Among the things that will cause Firefox to dump core in 3.5 or 3.6 are visiting some web sites (see above), accepting a signed secure certificate the first time (once it crashes Firefox, it's not a problem on subsequent visits), attempting to accept a questionable certificate (either telling Firefox to accept the certificate permanently or not), or exiting Firefox. In firefox 3.6, anything that generates a menu will also crash the browser. I have tried So far I have tried the following: * Remove the .mozilla directory and start firefox without extensions, plugins, or customizations * Force reinstall of Firefox (portupgrade -F) * Remove and reinstall Firefox * Force reinstall of the mouse input driver * Remove and reinstall xorg and components * Remove and reinstall Fluxbox window manager * pkg_deleteing all firefox plugins and nspluginwrapper * Uninstalling Firefox 3.6 and installing Firefox 3.5 (helpful, but not fixed) * running portupgrade -aOW again I'm wondering if this can't be fixed short of formatting and starting over, but I'd really hope to avoid a very M$Windows solution like that... Any further ideas? Keith S. ___ 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 Are you by any chance overriding CFLAGS in /etc/make.conf? Or perhaps even compiling using a gcc version not in the base system? I had that exact problem with Firefox 3.6 (and with Thunderbird as well) and menus when compiling with gcc45 and/or overriding CFLAGS. It went away when I re-built Firefox (well, actually, I re-built everything, world, kernel and all the ports) using the stock compiler and removed all CFLAGS overrides. Rolf ___ 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: harddrive encryption
no at installation if you use standard installer. as i don't use standard installer at all, i don't have such a problem. i use any bootable FreeBSD media (actualy my own made pendrive), and then make labels, do newfs, mount, unpack files etc. if you can't do that then you may follow my advice install as usual, but make partitions like a: root - 10-20GB b: swap - as you need d: rest - don't allow to directory install on a and b. then after booting your system, and building and installing your kernel with GEOM_ELI inside: geli init -s 2048 (or 4096 whatever fragment size you plan) /dev/ad0d (or ada0d or how is your disk named). geli attach /dev/ad0d newfs options here /dev/ad0d.eli mount /dev/ad0d.eli /mnt cd /mnt tar --exclude /usr -cf - /|tar xpf - so you have copied all data except /usr to /mnt then edit /mnt/etc/fstab make ad0d.eli as root and ad0a as /usr then edit /mnt/boot/loader.conf add vfs.root.mountfrom=ad0d.eli then reboot to single user mode after booting /sbin/mount /usr - should mount fine cd /usr ls and delete with rm -rf everything except usr subdirectory then mv usr/* . rm -rf usr cd / rm -rf boot ln -s /usr/boot . then press CTRL-D and you have your encrypted system up. You don't have /usr encrypted as your software packages are not secred data. /usr is a: partition so bootloader boots from here. /usr/boot is linked to /boot to make it accessible for system programs as usual. but your /usr/local/etc may be secred so cd /usr/local mv etc /etc/local ln -s /etc/local etc this is how i configure my system everywhere i use geli. ___ 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: documentation OF FreeBSD
On Tue, 18 Jan 2011 20:43:01 +0100 Polytropon free...@edvax.de wrote: On Tue, 18 Jan 2011 17:07:12 +0200, Ross Cameron ross.came...@linuxpro.co.za wrote: Considering the wording of the original posting I HIGHLY doubt the OP would be willing to use PINE/MUTT/MAIL. So they hardly count,... 99% chances (my bet anyways) are that hey wanted a GUI app for this. In this case, out of the commonly used programs one could be chosen, e. g. Thunderbird. But also lightweighter applications such as Sylpheed or even KMail (when you're already intending to use KDE) or Evolution (Gnome's equivalent, if I remember correctly) is an option. Using fetchmail to get the messages _independently_ from any MUA gives you the chance to test various applications, or even use them in parallel, employing one and the same mail data. Using the system's mailer (e. g. via SMARTHOST) makes you fully independent from the traditional POP/SMTP accounts _in_ the MUA. -- 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 I agree about using Kmail with KDE; it is a well-designed mail program. However, using Kmail with Gnome was a horrible experience; it drags in and keeps starting up nepomuk and its friends, and chews up much of one's CPU capacity with apparently nothing to show for it. I switched to claws, which seems excellent. ___ 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: use of menus crashes Firefox?
Rolf, Thanks for the info. Are you by any chance overriding CFLAGS in /etc/make.conf? Or perhaps No, /etc/make.conf is just three lines: WITH_CUPS=yes # added by use.perl 2010-12-22 15:53:20 PERL_VERSION=5.10.1 even compiling using a gcc version not in the base system? I had that exact problem with Firefox 3.6 (and with Thunderbird as well) and menus when compiling with gcc45 and/or overriding CFLAGS. It went away when I re-built Firefox (well, actually, I re-built everything, world, kernel and all the ports) using the stock compiler and removed all CFLAGS overrides. I'm not aware of anything I've done that would have switched compilers. How would I tell? This is the version output: # gcc --version gcc (GCC) 4.2.1 20070719 [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Keith ___ 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: documentation OF FreeBSD
On Tue, 18 Jan 2011 18:32:36 -0500, Mike Jeays mike.je...@rogers.com wrote: I agree about using Kmail with KDE; it is a well-designed mail program. However, using Kmail with Gnome was a horrible experience; it drags in and keeps starting up nepomuk and its friends, and chews up much of one's CPU capacity with apparently nothing to show for it. Fully agree. In most cases, using big desktop environment *A* prohibits using programs of big desktop environment *B* and vice versa. So if the OP wants to use Gnome in the first place, he can go with Evolution or Sylpheed or Claws (as they are Gtk applications). The same problem appears when you're not using a desktop environment at all (instead a powerful window manager only) - but if you do, you traditionally will be very picky about the efficiency of the applications you use, so Bloatware doesn't have a chance. :-) I'm sure there are other GUI MUAs out there that are not so aggressive in inviting all their friends when starting up, keeping the system occupied for nothing. :-) I switched to claws, which seems excellent. I've been a Sylpheed user for many years and just a bit disappointed by the fall of speed and accessibility with the switch from Gtk1 to Gtk2. I do NOT want to say that text mode MUAs can't be easy to use, versatile, powerful and _FAST_. In fact, pine was one of the first MUAs I've ever used, and there's nothing about it's too complicated or other stupid nonsense. -- 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: use of menus crashes Firefox?
2011-01-19 00:42, Keith Seyffarth skrev: Rolf, Thanks for the info. Are you by any chance overriding CFLAGS in /etc/make.conf? Or perhaps No, /etc/make.conf is just three lines: WITH_CUPS=yes # added by use.perl 2010-12-22 15:53:20 PERL_VERSION=5.10.1 even compiling using a gcc version not in the base system? I had that exact problem with Firefox 3.6 (and with Thunderbird as well) and menus when compiling with gcc45 and/or overriding CFLAGS. It went away when I re-built Firefox (well, actually, I re-built everything, world, kernel and all the ports) using the stock compiler and removed all CFLAGS overrides. I'm not aware of anything I've done that would have switched compilers. How would I tell? This is the version output: # gcc --version gcc (GCC) 4.2.1 20070719 [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Keith Changing the gcc version is something you do actively, otherwise you get the stock compiler. Here's how to do it http://www.freebsd.org/doc/en_US.ISO8859-1/articles/custom-gcc/configuring-ports-gcc.html Since you do not override CFLAGS, I can't help you, because using default settings made my problems go away. The only difference is that I don't use cups, but I doubt that would make a difference for Firefox, and that I have perl 5.12.2. Rolf ___ 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: use of menus crashes Firefox?
On Jan 18, 2011, at 2:56 PM, Keith Seyffarth wrote: Core was generated by `firefox-bin'. Program terminated with signal 12, Bad system call. #0 0x29d7f16b in ?? () Now, again, this is in Firefox 3.5. That message isn't very informative to me, but maybe it is helpful to someone else? Run it under gdb, look at the backtrace. Bad system call implies a mismatch between your shared libraries and kernel, or maybe you are loading some plugin or something which has been compiled for a different version of the platform. Regards, -- -Chuck ___ 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
rusage and pthreads
Hi, I'm trying to figure out the interactions between rusage and pthreads. Peeking around in the kernel (7.2) I see updates occurring in various places. kern_clock.c, for instance, appears to increment the memory occupancy (*rss) counters. This would make it appear that every thread gets part of the count, but also that only the process that happens to have the CPU at that moment gets its count updated, even if it holds the memory. Am I misreading this? And the context switch counters also appear to be updated per-thread, but in mi_switch(), in kern_synch.c. Is this true? If the answer is yes, it's per-thread, then how does a process report its usages without putting the requisite code in each thread, along with the machinery to divert from whatever the thread is doing (even waiting on I/O) to get the report at (nearly) the same time in all threads? Is there a big design hole here? Mark Terribile ___ 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: rusage and pthreads
On Jan 18, 2011, at 4:07 PM, Mark Terribile wrote: I'm trying to figure out the interactions between rusage and pthreads. There largely isn't any-- struct rusage is per-process, not per thread. Peeking around in the kernel (7.2) I see updates occurring in various places. kern_clock.c, for instance, appears to increment the memory occupancy (*rss) counters. This would make it appear that every thread gets part of the count, but also that only the process that happens to have the CPU at that moment gets its count updated, even if it holds the memory. Am I misreading this? Nope. statclock() is fired off periodically (with some fuzz, to avoid clever games by processes trying to avoid being sampled) to update the stats for the currently running process. And the context switch counters also appear to be updated per-thread, but in mi_switch(), in kern_synch.c. Is this true? Probably. If the answer is yes, it's per-thread, then how does a process report its usages without putting the requisite code in each thread, along with the machinery to divert from whatever the thread is doing (even waiting on I/O) to get the report at (nearly) the same time in all threads? The process doesn't have userland threads updating this information. The kernel keeps track of it, and it updates the information periodically when the scheduler does context switches, when statclock() fires off, when disk I/O completes, etc. Regards, -- -Chuck ___ 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: harddrive encryption
On Tue, 18 Jan 2011 08:10:40 -0800 Chip Camden chip.cam...@gmail.com wrote: It seems prudent to me to reduce the attack surface to that which really needs to be defended -- When you defend everything, you defend nothing. Not to mention avoiding the overhead of encrypting OS files. I don't think the plain text is really much of an issue. AFAIK the kinds of attack that use large amounts of plaintext are relatively sophisticated and yield only small amounts of information. Most people only need to worry about passphrase attacks. There are two main advantages to full disk encryption. One is that the non-encrypted part can be kept on a memory stick, which is easier to keep secure. This makes it impractical for an attacker to install modified software while geli is detached - although you are still vulnerable to hardware and firmware modifications. The other main advantage is that it prevents information leakage. If you just encrypt data, you should also give some thought encrypting the swap partition with a one-time key and using tmpfs. There's also /var/tmp which may be mitigated by setting appropriate environment variables to keep user data in home directories. Private information may leak through log or cache files. Some people think it's easier and safer to encrypt the lot. What do you folks think of the relative merits of AES vs Blowfish for disk encryption? At the higher levels of paranoia Blowfish's 64 bit block size is a cause for concern, but unless you are going up against serious crypto-analysis I doubt it matters much. However you may need to take account of performance. My fairly old cpu uses 100% of it's single core copying large files between geli partitions. Journalling makes things even worse. If you have cores and cycles to spare you probably wont notice, but it's still there. Blowfish is faster than AES, but some CPUs may be able to offload AES to hardware accelerators. ___ 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: rusage and pthreads
Chuck, I'm trying to figure out the interactions between rusage and pthreads. There largely isn't any-- struct rusage is per-process, not per thread. Peeking around in the kernel (7.2) I see updates occurring in various places. kern_clock.c, for instance, appears to increment the memory occupancy (*rss) counters. This would make it appear that every thread gets part of the count, but also that only the process that happens to have the CPU at that moment gets its count updated, even if it holds the memory. Am I misreading this? Nope. statclock() is fired off periodically (with some fuzz, to avoid clever games by processes trying to avoid being sampled) to update the stats for the currently running process. And the context switch counters also appear to be updated per-thread, but in mi_switch(), in kern_synch.c. Is this true? Probably. If the answer is yes, it's per-thread, then how does a process report its usages without putting the requisite code in each thread, along with the machinery to divert from whatever the thread is doing (even waiting on I/O) to get the report at (nearly) the same time in all threads? The process doesn't have userland threads updating this information. The kernel keeps track of it, and it updates the information periodically when the scheduler does context switches, when statclock() fires off, when disk I/O completes, etc. I'm looking at kern_clock.c::statclock(int usermode) The code in question begins struct rusage* ru; struct vmspace* vm; struct thread *td; struct proc *p; ... td = curthread; p = td-td_proc; and continues further down ru = td-td_ru; ru-ru_ixrss += pgtok(vm-vm_tsize); ru-ru_idrss += pgtok(vm-vm_dsize); ru-ru_isrss += pgtok(vm-vm_ssize); This looks to me like it's accumulating the data in per-thread counters. What's more, it's consistent with what I'm seeing on the user side. Note that this is 7.2; if 8.x behaves differently I'd like to know. Mark Terribile ___ 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: rusage and pthreads
Chuck, I forgot to add: Nope. statclock() is fired off periodically (with some fuzz, to avoid clever games by processes trying to avoid being sampled) to update the stats for the currently running process. Which would mean that a process that is occupying memory but doesn't happen to be running on that clock tick doesn't have its memory counted toward the total ... right? 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: rusage and pthreads
On Jan 18, 2011, at 5:01 PM, Mark Terribile wrote: and continues further down ru = td-td_ru; ru-ru_ixrss += pgtok(vm-vm_tsize); ru-ru_idrss += pgtok(vm-vm_dsize); ru-ru_isrss += pgtok(vm-vm_ssize); This looks to me like it's accumulating the data in per-thread counters. What's more, it's consistent with what I'm seeing on the user side. Note that this is 7.2; if 8.x behaves differently I'd like to know. I wonder if all of the threads in a process might be pointing to the same struct rusage? Nope, checking kern/kern_resource.c kern_getrusage(), there is a per-proc struct rusage_ext which gets the sum of the per-thread td-td_ru counters via rufetch() / ruxagg()...so you're right that the counters are now per-thread. Which would mean that a process that is occupying memory but doesn't happen to be running on that clock tick doesn't have its memory counted toward the total ... right? That's right. Regards, -- -Chuck ___ 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: use of menus crashes Firefox?
Run it under gdb, look at the backtrace. Bad system call implies a mismatch between your shared libraries and kernel, or maybe you are loading some plugin or something which has been compiled for a different version of the platform. Chuck, Thanks for the suggestion. I can't figure out how to get that to work... $ gdb --exec=firefox3 This GDB was configured as i386-marcel-freebsd./usr/local/bin/firefox3: not in executable format: File format not recognized $ gdb --exec=firefox-bin This GDB was configured as i386-marcel-freebsd...firefox-bin: No such file or directory. or $ gdb firefox3 This GDB was configured as i386-marcel-freebsd.../usr/local/bin/firefox3: not in executable format: File format not recognized It doesn't seem that gdb thinks firefox is an executable... I'm not seeing what I'm missing from the man page. I can get it to pick up the process once it is running: $ gdb firefox3 9759 This GDB was configured as i386-marcel-freebsd.../usr/local/bin/firefox3: not in executable format: File format not recognized Attaching to process 9759 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1443: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) n /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1443: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) y Abort trap: 6 (core dumped) this results in both Firefox and GDB crashing... $ gdb --core=gdb.core This GDB was configured as i386-marcel-freebsd. Core was generated by `gdb'. Program terminated with signal 6, Aborted. #0 0x283e8e17 in ?? () So, how do I get FF to run under gdb? or does the above provide enough information to try a fix? Thanks, Keith ___ 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: use of menus crashes Firefox?
On Jan 18, 2011, at 6:01 PM, Keith Seyffarth wrote: $ gdb --exec=firefox3 This GDB was configured as i386-marcel-freebsd./usr/local/bin/firefox3: not in executable format: File format not recognized What does file /usr/local/bin/firefox3 say? If it's a Linux binary, then you might not be able to debug it with the native gdb, although the point of a binary executable format like ELF should allow cross-debugging. It also implies that you might need to tweak your Linux emulation version (sysctl compat.linux.osrelease)... Regards, -- -Chuck ___ 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: use of menus crashes Firefox?
Chuck Swiger cswi...@mac.com writes: On Jan 18, 2011, at 6:01 PM, Keith Seyffarth wrote: $ gdb --exec=firefox3 This GDB was configured as i386-marcel-freebsd./usr/local/bin/firefox3: not in executable format: File format not recognized What does file /usr/local/bin/firefox3 say? $ file /usr/local/bin/firefox3 /usr/local/bin/firefox3: Bourne shell script text executable If it's a Linux binary, then you might not be able to debug it with the native gdb, although the point of a binary executable format like ELF should allow cross-debugging. It also implies that you might need to tweak your Linux emulation version (sysctl compat.linux.osrelease)... I don't think it's a Linux version - it's installed from /usr/ports/www/firefox35 rather than /usr/ports/www/linux-firefox Thanks again, Keith ___ 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: use of menus crashes Firefox?
On Tue, Jan 18, 2011 at 18:53, Keith Seyffarth w...@weif.net wrote: Chuck Swiger cswi...@mac.com writes: On Jan 18, 2011, at 6:01 PM, Keith Seyffarth wrote: $ gdb --exec=firefox3 This GDB was configured as i386-marcel-freebsd./usr/local/bin/firefox3: not in executable format: File format not recognized What does file /usr/local/bin/firefox3 say? $ file /usr/local/bin/firefox3 /usr/local/bin/firefox3: Bourne shell script text executable Right - firefox3 is a script that sets up a couple environment variables and runs the real binary. You need to gdb the real binary (which is in /usr/local/lib/firefox or somesuch - its not in any remotely normal $PATH). Since the environment stuff the script does is required for it to start, temporarily editing the script and running firefox3 is probably the easiest thing to do. -- Rob Farmer ___ 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: use of menus crashes Firefox?
Right - firefox3 is a script that sets up a couple environment variables and runs the real binary. You need to gdb the real binary (which is in /usr/local/lib/firefox or somesuch - its not in any remotely normal $PATH). Since the environment stuff the script does is required for it to start, temporarily editing the script and running firefox3 is probably the easiest thing to do. Hmmm. OK. I did this: $ gdb /usr/local/lib/firefox3/firefox-bin 10388 This results in Firefox being locked and non-responsive to the user interface. It can't even draw the screen if I switch to that desktop, there's just a window frame hanging there. Even clicking the close button (the X in the top corner of the window) doesn't do anything... nor does right-clicking on the window title bar and selecting close. If I quit gdb, then firefox becomes responsive again. But it does put this in the console where I ran GDB (there's a lot). there are 11 [New Thread x (LWP y)] lines, and one error line. The error line is right at the end 0x29e581a7 in __error () from /lib/libthr.so.3 This GDB was configured as i386-marcel-freebsd...(no debugging symbols found)... Attaching to program: /usr/local/lib/firefox3/firefox-bin, process 10388 Reading symbols from /usr/local/lib/firefox3/libxul.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/firefox3/libxul.so Reading symbols from /usr/local/lib/firefox3/libmozjs.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/firefox3/libmozjs.so Reading symbols from /usr/local/lib/firefox3/libxpcom.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/firefox3/libxpcom.so Reading symbols from /usr/local/lib/libplds4.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libplds4.so.1 Reading symbols from /usr/local/lib/libplc4.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libplc4.so.1 Reading symbols from /usr/local/lib/libnspr4.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libnspr4.so.1 Reading symbols from /usr/local/lib/libgtk-x11-2.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libgtk-x11-2.0.so.0 Reading symbols from /usr/local/lib/libatk-1.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libatk-1.0.so.0 Reading symbols from /usr/local/lib/libgdk-x11-2.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libgdk-x11-2.0.so.0 Reading symbols from /usr/local/lib/libpangocairo-1.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libpangocairo-1.0.so.0 Reading symbols from /usr/local/lib/libXext.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXext.so.6 Reading symbols from /usr/local/lib/libXrender.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXrender.so.1 Reading symbols from /usr/local/lib/libXinerama.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXinerama.so.1 Reading symbols from /usr/local/lib/libXi.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXi.so.6 Reading symbols from /usr/local/lib/libXrandr.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXrandr.so.2 Reading symbols from /usr/local/lib/libXcursor.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXcursor.so.1 Reading symbols from /usr/local/lib/libXcomposite.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXcomposite.so.1Reading symbols from /usr/local/lib/libXdamage.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXdamage.so.1 Reading symbols from /usr/local/lib/libgdk_pixbuf-2.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libgdk_pixbuf-2.0.so.0 Reading symbols from /usr/local/lib/libpangoft2-1.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libpangoft2-1.0.so.0 Reading symbols from /usr/local/lib/libpango-1.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libpango-1.0.so.0 Reading symbols from /usr/local/lib/libfreetype.so.9...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libfreetype.so.9 Reading symbols from /usr/local/lib/libfontconfig.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libfontconfig.so.1 Reading symbols from /usr/local/lib/libgio-2.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libgio-2.0.so.0 Reading symbols from /usr/local/lib/libXfixes.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXfixes.so.3 Reading symbols from /usr/local/lib/libgobject-2.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libgobject-2.0.so.0 Reading symbols from
Re: use of menus crashes Firefox?
On Jan 18, 2011, at 8:29 PM, Keith Seyffarth wrote: I did this: $ gdb /usr/local/lib/firefox3/firefox-bin 10388 This results in Firefox being locked and non-responsive to the user interface. Enter run, or c for continue. If and when Firefox crashes, you will be able to gain more useful information -- -Chuck ___ 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: The book of pf...
On Tue, Jan 18, 2011 at 7:35 PM, Kevin Wilcox kevin.wil...@gmail.com wrote: 1) Definitely get the first version Oh, why? -- chs, ___ 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