Re: Apple & FreeBSD relationship
On Mar 9, 2011, at 4:50 PM, Chad Leigh -- Shire.Net LLC wrote: > There are some/a few/several people working at Apple that play or used to > play a large role in FreeBSD. So they were basically paying these people's > salaries for their day job which allowed them to be active in FreeBSD. Also, > there is some code put-back I believe. Of particular note was the contributions of patches to fix NFS race conditions. Plus tools to stress and duplicate those conditions. > Most of what Apple used from FreeBSD was the userland and the kernel > interface so that the Darwin kernel could be used with FreeBSD userland > utilities that affect the kernel etc.Mac OS X uses a totally different > underlying kernel and architecture but made a FreeBSD like kernel interface > in order to be able to use certain sets of FreeBSD stuff. Believe a number of FreeBSD drivers made it into MacOS X. Don't know of any Apple product which used Intel Etherexpress Pro chipsets but I popped a PCI card in a Mac one day and it magically worked as if it had always been there. -- 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: Apple & FreeBSD relationship
On Mar 9, 2011, at 5:31 PM, Frank Shute wrote: > Don't invest your cash in a company that has reached it's peak and is > on it's way down after it's charismatic leader dies sooner rather than > later. They said that at $50/share. At $100. At $200. At $300. And continue to say it at $350. There are a lot of smart people at Apple who have had nothing better to do the past 10 years than to study and learn from Steve Jobs. I'm waiting for $500. -- 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: setting up svn server - Connection refused
On Feb 25, 2011, at 3:23 AM, Anton Shterenlikht wrote: > When I try to connect to the svn server, I get this: > > ZEEV> svn co svn://localhost/home/mexas/zzz . > svn: Can't connect to host 'localhost': Network is unreachable > ZEEV> svn co svn://10.10.10.14/home/mexas/zzz . > svn: Can't connect to host '10.10.10.14': Connection refused Forget the SVN server daemon its much easier to use svn+ssh:// than svn:// -- 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: Invitation
On Mon, Feb 14, 2011 at 08:54:59PM +, Simon Tibble wrote: > > Now, see, I can't help thinking that if we all just abandoned money > then the motivation for people to do this sort of thing would then > disappear - would it not? Without money, how would we keep score to know who is winning? -- 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: How to adjust man page line length [SOLVED]
On Jan 19, 2011, at 10:51 PM, David J. Weller-Fahy wrote: [...] > That did the job, but made `man -k`, which my fingers find familiar, > unusable. I remembered you were running a CURRENT snapshot, so figured > I'd check the difference between man in HEAD and 8.1-RELEASE... WOW! > The man in HEAD is now a shell script. In ancient times man was originally a shell script. What is old is new again. -- 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: 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" > 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: 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: FreeBSD Decision
On Fri, Jan 14, 2011 at 07:46:20PM +0100, Alessandro Baggi wrote: > Hi list, I don't want make a flame post but I would ask an objective > opinion, then not a camp opinion, about using FreeBSD or Debian Linux in > a production environment for solution as such as cluster of some > service, proxy, SAN, performance, smp with an high number of cpu, PDC, > Mail Server (qmail), raid software, security support and hardware > support. I'm using Slackware Linux but in production environment there > are problem with packages and distro update and other support. > Then for you, what is the best for those solutions? I don't fully understand your needs but would suggest most anything you are familiar with and can find support from others will do. Wish I could say MacOS X Snow Leopard Server has been flawless but it has not. Still its something worth evaluating. An entire Mac Mini Server with two 500G drives an unlimited user license is a budget busting $995 full MSRP. Many former FreeBSD core members now work for Apple. Many of the man pages in MacOS X still say FreeBSD. Apple has done a lot for FreeBSD. -- 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: fetching mail (but not fetchmail)
On Dec 24, 2010, at 12:01 AM, Chris Brennan wrote: > Thanks but I I think maybe I wasn't entirely clear. With fetchmail (which is > why I said but not fetchmail in the subject) I very well can download all my > mail. For reading locally, on the console (not what I had in mind). Or is > this where dovecot comes into play? To prepare the previously fetched mail > and prepare it for pop/imap access? Yes, that is exactly what he was saying. Fetchmail puts it where ever you tell it to. All you have to do is put the email where dovecot can find it in a format dovecot understands. You can think of dovecot as a remote controlled email reader, one which can be driven by Mail.app, Outlook, or Firefox. But in doing this you are not giving up the ability to do mail on your console. When using maildir format both mutt and dovecot can operate out of the same mail repository at the same time. For example I use ~/Maildir/ and the maildir format. Also use procmail for initial sorting and filtering with bogofilter. In my .fetchmailrc like this: defaults proto pop3 fetchall mda "/usr/local/bin/procmail -d dkelly" .procmailrc something like this: MAILDIR=$HOME/Maildir/ #you'd better make sure it exists DEFAULT=/var/mail/$LOGNAME # Make a copy of everything incoming: :0 c $HOME/Mail_Backup/ # Add a Lines: header if one is lacking, so mutt knows a message's size :0 Bfh * H ?? !^Lines: * -1^0 * 1^1 ^.*$ | formail -A "Lines: $=" # bogofilter -u trains all tokens as spam or non-spam :0 HB: * ? bogofilter -u .spam/ # detect dupes :0 Whc: msgid.lock | formail -D 131072 msgid.cache # divert dupes :0 a: .dups/ # ultimate point of delivery :0 ./ The above .procmail puts a copy of everything in ~/Mail_Backup/ just in case. -- 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: printer recommendations?
On Dec 2, 2010, at 10:38 PM, Charlie Kester wrote: > My old HP Laserjet 4+ is broken and I'm thinking about buying a new > printer. I'd appreciate hearing recommendations from the list. My Brother HL5250DN has served 14,000 pages very satisfactorily so far. Was $250 full MSRP at Staples in 2005 or 2006. Believe the current version is 5350. Commonly appear on sale for $189 (but not that I've seen at Staples). The xx50's have PCL and Postscript emulation, an xx40 only has PCL. xx70 appears to be a 50 with WiFi. "D" stands for duplex. "N" for ethernet. Speaks lpd. 3rd party toner refills for 7,000 pages are $20. The one thing my 5250 has disappointed is printing of envelopes. The envelope gets printed but comes out wrinkled and nearly wadded up. Perhaps the 53xx's fixed this? I keep an HP inkjet loaded with envelopes. This is important because I print something like 2 envelopes per month. :-) Several years ago I was secretary/treasurer of a dirtbike club and was printing as many as 1800 envelopes and the materials inside the envelopes per year. Many times I went to the Post Office and bought $400 of stamps. -- 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: IPFW at startup.
On Mon, Nov 15, 2010 at 10:52:41AM -0800, Dave Robison wrote: > I haven't seen someone use "firewall_type" as a path to the config > file. If you check the default rc.firewall file, you will see several > types of default firewall settings, such as "open" and "closed". You > want to set "firewall_type" in rc.conf to be "open" or whatever your > firewall type is in /etc/rc.firewall. What he needs to do is use firewall_script="/etc/ipfw.rules" rather than firewall_type= -- 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: Which OS for notebook
On Mon, Oct 04, 2010 at 01:11:30AM -0300, Leandro F Silva wrote: > > Which OS are you using on your notebook, FreeBSD / Linux or MAC ? > Also, can you tell us the hardware, Sony / HP etc.. MacOS X 10.6.4. Its solid, supported, and Unix. In general the Unix things that need to be treated differently between MacOS and FreeBSD are exactly the sort of things you need to be prepared for for jumping between any Unix (or Unix clone). Apple hardware is exceptionally good. Generally run 5 to 8 years before upgrading. Got my original MacBook Pro in January 2006 and its still Going strong on the original battery. Its biggest limitation today is its 2GB max memory, but the Intel Core Duo 1.83 GHz CPU is plenty good. -- 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: migrate system disk
On Wed, Sep 22, 2010 at 08:06:13AM -0700, D?nielisz L?szl? wrote: > Hello, > > I have an old HDD which should be replaced soon, actually that HDD > stands as my system disk, what is your suggesion, how should I migrate > the FreeBSD 8.1 from the old disk to the new one? If you must copy exactly what you currently have then I'd use a variation on the handbook method which has already been suggested at http://www.freebsd.org/doc/handbook/backup-basics.html Rather than example 18-1 or 18-2 I'd pipe dump directly into restore. Do this once for every filesystem. Something like: ( cd /; /sbin/dump -0uanf - / ) | ( cd /newmount; /sbin/restore -rf - ) Where /newmount is the temporary new mount point for your new drive. Left preparation of new disk as an exercise for the reader. However there is a good argument to be made for making a totally new installation of FreeBSD. Then go through the original disk picking up the necessary files to customize for your use. As you find these files put their names in a file named something like files.list that in the future one could "tar -T files.list" (thats an incomplete example) to do a minimal quick backup or restore of only the files which are unique to your machine. This is an opportunity to find these files, and to practice using tar -T to lift them from one drive and write them to another. I wouldn't try to move the ports collection with the above technique. However it would be a good idea to save a list of installed ports that one could use to reinstall. -- 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: Is this bunk.
On Mon, Aug 23, 2010 at 12:12:59AM -0400, Bob Hall wrote: > On Mon, Aug 23, 2010 at 01:25:34AM +0100, Garry wrote: > > Mac OS X is basically BSD that's been appleised (serious vendor > > lock-in), they do give a little back to BSDs, but have made sure > > that BSDs can't get much off of them, but they can get a lot out of > > BSD. > > If the kernel is the basis of an OS, then OS X is basically the Mach > kernel. Kirk McKusick of FFS fame has been quoted as saying to the effect, "The difference between Linux and BSD is that all BSDs have the same userland but different kernels. All Linuxes have the same kernel but differing userlands." > The userland part of early versions of OS X borrowed heavily from > NetBSD, but much of this has been replaced with FreeBSD in later > version. Or so I'm told. What I've seen of it its been primarily FreeBSD from the start. There are also a number of FreeBSD device drivers in MacOS X, not the least of which is fxp. The irony of that is Apple has never shipped an Intel based NIC. Or at least not for years after fxp was included. The fxp man page existed in earlier MacOS X but not in 10.6.4. NICs supported by fxp were favorites of Jordan Hubbard and other FreeBSD'ers now working for Apple. -- 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: Is this bunk.
On Aug 22, 2010, at 7:25 PM, Garry wrote: > This is a conversation held on a UK group page, can you confirm or deny this > as twaddle. > > Mac OS X is basically BSD that's been appleised (serious vendor lock-in), > they do give a little back to BSDs, but have made sure that BSDs can't get > much off of them, but they can get a lot out of BSD. Apple hired a lot of key people from the FreeBSD project. I don't know just what comes back to FreeBSD out of Apple but suspect the reason you and myself don't know is that Apple doesn't care to toot their own horn. Apple made a significant contribution a while back testing and improving NFS. As for how much of MacOS X is BSD, pretty much all of the command line stuff. Apple has gone to great lengths to XML-ize most everything so while MacOS is BSD, its probably the most distant BSD cousin. > Also, Windows uses (or used to use) a BSD stack for networking for > instance. NT 3.51 used to flash a Berkeley Software Distribution copyright message on the text console during boot because some code was used. Doubt MS could leave well enough alone to simply lift the entire stack. The VMS-inspired NT kernel was probably not organized in such a way as to optimally use an unmodified BSD network protocol stack. > So, in supporting/using BDS i would enevatibaly end up writing code for it, > or filing bugs or whatever. > (I have assisted with a few Linux drivers and written kernel patches, as > well as working on things like DirectX 3D 9 for Wine and work on KDE etc...) > > Having seen how BDS license software has been used, to create highly tied > in, almost crippled proprietary software, I do not feel that I can support > software developed under such licenses. So why are you here? Trolling? It bugs the heck out of some people when others manage to build on their work to make something better, and then not give it away to everyone else. Others realize that if what we do is truly useful then others will want to use it to build bigger and better things. That it doesn't matter if we sell our work or give it away, what others do with it is no skin off our noses. Our original work is still exactly as accessible as it was before others made something more of their own version of it. > Web-Kit has actually worked quite well as an open system, even though Apple > done a hostile take over of the project from KHTML in KDE. > So, the GPL has worked to produce an open product in Web-kit but the BSD > license has lead to vendor lock-in on the part of Microsoft and most > significantly Apple. Thats one of the big problems of the GPL-mindset. Seems they spend a whole lot more time cloning the work of others than in actually creating anything new. > This does not mean to say that I have a problem with the quality of the code > in BSD, I just feel that the license is counter productive. There is nothing in the BSD license permitting a "hostile takeover." Some would claim FreeBSD has executed a "hostile takeover" of what it is to be BSD. The pre-FreeBSD code is out there, you are welcome to it. Some would say OpenBSD attempted a hostile takeover of BSD. -- 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: Any awk gurus on the list?
On Fri, Aug 20, 2010 at 12:12:20PM -0500, Paul Schmehl wrote: > > But when I add an FS to the script, I get odd results: > > # awk '!/#/ { FS=";"; for (i=1; i<=NF; i++) { if ( $i ~ /sid/) > {mtcmsg[sid]=$i; print mtcmsg[sid]}}}' < > /usr/local/etc/snort/rules/mtc.rules.test > sid:299913; > sid:52123 > sid:3001441 > sid:1444 > sid:2008120 > sid:5001684 > sid:2001683 > sid:22466 > sid:2002750 > sid:303 > sid:29232 > sid:2232 > sid:300 > sid:2003070 > sid:2003484 > sid:2003603 > sid:3104 > sid:28 > > Why is the first value indented and not stripped of the semi-colon? Because field breaks occur first, then the match on the left, and only when there is a match on the left is the script in {} executed. FS is global so it sticks around for the next line of input. I would suggest that you not try to learn awk on the command line but put your script in a file. Then once you have it working and know what you are doing put it on a single command line if its simple enough. -- 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: Can't remove or move file
On Fri, Aug 20, 2010 at 09:00:54AM -0700, Rem P Roberti wrote: > This is a new one for me. I converted a YouTube selection using > youtube_dl and the file that was created was named -elDeJaPWGg.flv. > When I try to rename it, or delete it, I get an error message thus: > > root@ ~: rm -elDeJaPWGg.flv > rm: illegal option -- e > usage: rm [-f | -i] [-dIPRrvW] file ... >unlink file > > No switch with either the rm or mv command works. What is actually > going on here? Among all the other suggestions this one was missing: rm ./-elDeJaPWGg.flv A similar stunt is required when using less to view +DESC and +CONTENTS files in /var/db/pkg/*/ as the leading plus sign has meaning to less on the command line. less ./+DESC -- 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: Anti virus, anti spam step guide.
On Aug 4, 2010, at 9:19 AM, Jorge Biquez wrote: > Hello all. > > I am looking documentation for implementing, the easiest way anti virus and > anti spam configuration for non tech users and out of the box after > installing FreeBSD (actually using 7.3 Release). [snip] Do not edit a reply to another thread into something else. This is not the same thing as a new email. Address a new email to the list with your new thread. -- 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: Typical Network Performance
On Aug 1, 2010, at 11:31 PM, Corey Smith wrote: > On Sun, Aug 1, 2010 at 7:30 PM, David Kelly wrote: >> Gigabit ethernet from a 2.8 GHz P4 to or from MacPro I am only limited by >> disk data rate. About 60 MB/sec on one end of the disk, more on the other >> end of the disk. > > Did you try realtime monitoring your network interface? > > # route -n get > interface: > > # netstat -I -w 1 No. I saw numbers that I was reasonably happy with and didn't pursue further. > Do you see errors on the interface? Nope. 60 MB/sec via FTP is about 60% of gigabit and was faster than some disk accesses. > # netstat -I > > Another trick to eliminate disk io from the equation is to use nc: > > machine1 : > # nc -o -l 2000 > /dev/null > > machine2: > # dd if=/dev/zero bs=1M count=50 | nc machine1 2000 60 MB/sec was the average over gigabytes of data. Real data. Real network wire. -- 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: Typical Network Performance
On Aug 1, 2010, at 4:18 PM, Jason C. Wells wrote: > I have a 100 mbps (12,207 KiB/s) home LAN in full-duplex. A 1 MiB file > transfers at 146.7 KiB/s via wput. The same file transfers at 91.34 KiB/s > via samba. That's less than 1% of available transfer rate. Seems like my > transfers are slow. I do better than that when installing via the internet. > > Does the FTP performance compared to available bandwidth seem right? Is the > relative performance of samba to FTP right? I read a couple quick links on > the net which said, "It's complicated." Gigabit ethernet from a 2.8 GHz P4 to or from MacPro I am only limited by disk data rate. About 60 MB/sec on one end of the disk, more on the other end of the disk. -- 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: Strip high bit from text?
On Wed, Jul 21, 2010 at 04:03:46PM -0700, Chuck Swiger wrote: > > > Already use procmail so adding an automatic filter should not be > > difficult if only I can come up with on. > > > > Tried "tr \240 ' ' < testfile | hd" and was not able to change the 0xa0 > > into anything. Have already spent much more time trying to make tr or > > sed do the job than it would have taken to knock something out in C, but > > I think there should be something laying around already in the base > > system to perform this task. > > > > Suggestions? Repair the email while procmail has it? Reconfigure mutt > > and/or vim? > > If you've got procmail in the loop already, then calling iconv as a filter > like so: > >iconv -f utf-8 -t ascii > > ...is likely to help. Another choice would be to switch to using a > MIME+Unicode/UTF-8 aware mail reader. Am thinking I initially succumbed to the novice goof of not escaping the backslash in "tr \240 ' ' < testfile | hd". Currently have this in my procmailrc but haven't seen an example come through. For some reason today my friend's Blackberry is sending 7bit rather than quoted-printable. He doesn't know why. :0 fW * ^X-MIME-Autoconverted: from quoted-printable to 8bit | tr '\240' ' ' :0 afW | formail -I "X-Converted: 0xA0 Stripper" -- 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"
Strip high bit from text?
I regularly get email from a Blackberry user which my ISP then adds this header, "X-MIME-Autoconverted: from quoted-printable to 8bit". So far so good but the result always contains a number of 0xa0's in places a plain old space belongs. Mutt/vim renders these as "?" making a complete mess of things. Already use procmail so adding an automatic filter should not be difficult if only I can come up with on. Tried "tr \240 ' ' < testfile | hd" and was not able to change the 0xa0 into anything. Have already spent much more time trying to make tr or sed do the job than it would have taken to knock something out in C, but I think there should be something laying around already in the base system to perform this task. Suggestions? Repair the email while procmail has it? Reconfigure mutt and/or vim? -- 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: slow down dd - how?
On Fri, Jul 09, 2010 at 01:44:00AM -0500, Robert Bonomi wrote: > > > > > How can I slow down dd? > > > > you could use some creative shellscripting (probably in addition to idprio): > > > > dd if=/dev/zero bs=1024k | ( dd bs=1024k count=10; sleep 3 ) | dd bs=1024k > > of=/dev/somewhere > > > > This pauses for 3 seconds for every 10MB written. ... > > I must be missing something. You are not missing anything. > Doesn't that "dd ... ; sleep" in the sub-shell need to be in a _loop_ > of some sort? Yes. dd if=/dev/zero bs=1024k | ( dd bs=1024k count=10; sleep 3 ) | dd bs=1024k of=/dev/null 0+10 records in 0+10 records out 655360 bytes transferred in 0.001183 secs (554077619 bytes/sec) 0+10 records in 0+10 records out 655360 bytes transferred in 3.003105 secs (218227 bytes/sec) > I would expect the dd in the sub-shell to _exit_ after the first 10mb, > whereupon the subshell would exit after the 3 second sleep, whereupon > 'somebody" is going to holler about a 'broken pipe'. Am not sure why the actual example blocksize was 64k but the results are the same for FreeBSD and MacOS X. -- 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: slow down dd - how?
On Thu, Jul 08, 2010 at 06:44:38PM +0200, Roland Smith wrote: > On Thu, Jul 08, 2010 at 05:50:52PM +0200, Jozsi Avadkan wrote: > > How can I slow down dd? > > Play with the block size parameter (bs). Smaller block sizes means more > reads. The default is 512 bytes, which is very small. > > > I don't want to slow down the pc, when generating a big file [~40 > > GByte]. I don't think Jozsi wants to burn more CPU cycles, just slow the process. Perhaps to attract less attention? Or interfere less with other processes. Nice(1) is a good start but rtprio(1) is probably where he should look. Also consider that writing a program of your own to serve as a slow pipe shouldn't be very hard. Think it would be a good exercise as an introduction to Unix programming. Simply copy stdin to stdout with a usleep(3) between. Pipe dd through your slowpipe program. Someone else has probably written a slow pipe. I haven't looked. -- 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: VLANs is this right?
On Jul 5, 2010, at 5:59 PM, Steve Bertrand wrote: On 2010.07.05 12:57, David Kelly wrote: On Mon, Jul 05, 2010 at 10:16:19AM -0600, Modulok wrote: Criteria: - HostA must never directly talk to HostB. - Both hostA and hostB have an Internet connection. What I have to work with: proCurve switch which supports VLANs. 2x Intel NICs in FreeBSD which support VLANs. Am thinking you are approaching it the wrong way. I wasn't going to, but I'd like to respond to your post. In no way am I attempting to knock the fact that you tried to help, I'd just like to clarify a few things... My personal belief is that the OP is approaching this in the best possible way. Not familiar with the specifics of a ProCurve switch but that's a high end unit, not a Netgear. I would expect you could configure the switch to disallow the MAC addresses from talking to each other of hostA and hostB. I would expect a residential-grade NetGear be configured in such a way, not a higher-end switch. Generally a residential SOHO Netgear switch is unmanaged and not configurable. Sometimes this grade of gear gets confused when one moves a host from one port to another that it must be power cycled to clear the error from its MAC tables. Furthermore, it would be even easier to disallow hostB from within hostA's firewall. And do the same at hostB. Easier if you have 2-10 machines, that are not laptops, and never get replaced. Your expectations are not scalable, nor do they provide a network-wide solution. If the OPs network grows to 200 vlans with 15k hosts, maintaining such a setup is no where near feasible. This is why the 'higher-end' gear allows such functions. I didn't hear "scalable" in the specification, only hostA, hostB, one ProCurve, and one FreeBSD gateway/router connected to the internet. By putting users (ie. client systems, or even business functional units) into vlans, security policies can be enacted in one fell swoop (one ACL, aka firewall rule) within the device they access the other portions of the network. As long as the switch (which you have control over) encapsulates a specific port to a VLAN then you are correct in that VLAN is the best way. But if one must configure the untrusted host to only speak VLAN then one doesn't have the desired security. -- 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: VLANs is this right?
On Jul 5, 2010, at 12:30 PM, Modulok wrote: > It was a simplified diagram of what I thought I needed. ( Which may or > may not be what I actually need! ) > > Basically, I want a port on the switch that I can plug un-trusted > devices into. Seconding Peter's request that you not top-post. We read and write this language left to right, top to bottom, and nothing about email changes that. You say "un-trusted devices" but would have to trust the device to configure a VLAN interface. Or back to the ProCurve, it would need to be configured to tunnel everything on a the untrusted port into a VLAN. And/Or configure so that the untrusted port is switched only to the FreeBSD router port. Would be easiest to slip another NIC in the FreeBSD router for this purpose. Then no VLAN, everything is handled in your firewall. -- 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: VLANs is this right?
On Mon, Jul 05, 2010 at 10:16:19AM -0600, Modulok wrote: > > Criteria: > - HostA must never directly talk to HostB. > - Both hostA and hostB have an Internet connection. > > What I have to work with: > proCurve switch which supports VLANs. > 2x Intel NICs in FreeBSD which support VLANs. Am thinking you are approaching it the wrong way. Not familiar with the specifics of a ProCurve switch but that's a high end unit, not a Netgear. I would expect you could configure the switch to disallow the MAC addresses from talking to each other of hostA and hostB. Furthermore, it would be even easier to disallow hostB from within hostA's firewall. And do the same at hostB. -- 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: Gaming
On Thu, Apr 29, 2010 at 10:10:20AM -0700, Joe's Morgue wrote: > Looking thru your manuals, I have not seen anything about gaming on a > FreeBSD machine. ? You are not reading the manual correctly. Then *entire* manual is the game. :-) -- 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: Recommendation on GPS time source for FreeBSD
On Jan 30, 2010, at 3:51 AM, Per olof Ljungmark wrote: Hi all, Does anyone have a recommendation on a good GPS receiver/board for use with NTP/FreeBSD to create a stratum 1 public time server? Preferably something above the Garmin "puck" level but not ridiculously expensive either... Why would you want something more than the Garmin "puck"? I have a couple of instrumentation grade GPS's at work but their primary justification is to generate IRIG time to sync a multitude of instruments which expect a time signal in IRIG format. -- 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: Sendmail & Procmail
On Fri, Jan 29, 2010 at 02:59:34PM -0500, Clayton Scott Kern wrote: > I just upgraded to FBSD 8.0 from 6.4 and I'm having a problem with > sendmail passing email to procmail. I only use this combination for > email from root's cron jobs. Right now emails to me from cron go to > /var/mail/ckern1. [...] > I created the cf file using make cf, then make install and make > restart. OK, but did the procmail enhancements make it in the generated .cf file? > What have I missed. This is the same setup on 6.4 and it worked fine. If making procmail available (or mandatory) for all users I can see justification for what you are trying. But for just one user why not keep it simple with a "|/usr/local/bin/procmail" in /etc/aliases? -- 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: OT: finding every file not in a list
On Jan 28, 2010, at 4:23 PM, CyberLeo Kitsana wrote: > Aryeh M. Friedman wrote: >> I have a list of files that should be in a dir tree and want to remove >> any files from the tree not in list (i.e. if it is on the list keep it >> else rm it)... any quick way to do this? > > # ls -1F > keep > old/ [...] I think mtree(8) is the proper tool for this job. Especially the -r option: -rRemove any files in the file hierarchy that are not described in the specification. -- 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: Recommendations for NICs?
On Thu, Jan 21, 2010 at 12:20:34PM -0600, John wrote: > On Thu, Jan 21, 2010 at 10:12:29AM -0800, Chuck Swiger wrote: > > > > Intel (fxp, em) and Broadcom (bce, bge) make fine NICs, and the > > older DEC/Intel 21x4x Tulip series (dc/de) was quite good as well. > > The Marvel Yukon (msk) and nVidia MCP (nfe/nve) seem to be OK > > (although older nVidia hardware had bugs); the Realtek (re/rl) and > > VIA (vr/vge) are at the bottom of the heap, especially the older > > pre-gigabit hardware. > > Thanks! That's perfect. I have a chance to buy a few Intel Pro > 10/100 (fxp) cards. I guess I'll take it! Snag 'em! My favorite "no worry NIC." In recent years one could pick them up surplus for $2 to $5. Then "they just work." And if one is forced to use Windows the Intel driver (not the one Windows ships) adds a lot of useful stuff which is missing, such as the ability to *see* (without leaving the application) what IP address the card is using. Oh, and not only that but the Intel cards work (without need to install drivers) on MacOS X PCI machines. > Just curious, though - you don't mention 3Com cards one way or the > other, yet there's a lot of them out there. Any comment on those? 3com's downfall has been due to their mixed bag of sometimes great, sometimes disappointing. -- 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: Endianness
On Tue, Jan 12, 2010 at 11:29:21PM +0200, Kaya Saman wrote: > David Kelly wrote: > >On Tue, Jan 12, 2010 at 12:51:00PM -0800, Rob Farmer wrote: [...] > >>I'm sure it has been answered somewhere, but I can't find it - which > >>FreeBSD archs are little/big endian? Thanks. > > >i386 is little endian. Would expect ia64 to be the same. > > SPARC is big endian. Or at least it used to be. > > Power4,5,6 are all big endian too if I'm not mistaken. > > Correct me if I'm wrong but anything based around the CISC > architecture is big endian. Believe the O.P. is asking, "What endian is FreeBSD on these architectures?" If I was making an application that needed endian information then I'd look in arpa/inet.h and machine/endian.h to discover what I was running on. -- 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: Endianness
On Tue, Jan 12, 2010 at 12:51:00PM -0800, Rob Farmer wrote: > I'm trying to create a port of an application which only works on > little endian systems and I'm trying to figure out how to set > ONLY_FOR_ARCHS. Wikipedia says PowerPC, Sparc, and IA64 are bi-endian > and the OS chooses the mode. I'm not familiar with these platforms - > I'm sure it has been answered somewhere, but I can't find it - which > FreeBSD archs are little/big endian? Thanks. i386 is little endian. Would expect ia64 to be the same. -- 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: "Checksum mismatch -- will transfer entire file"
On Dec 25, 2009, at 12:43 AM, Victor Sudakov wrote: > Colleagues, > > Am I the only one to have this problem? No. Telling you more than I know: FreeBSD.org is moving (or has moved) from CVS to SVN. Is my guess that what we are seeing is an artifact of that move where data is hacked into cvs compatible format and all cvsup can do is pull down the entire file. I would be happy to use svn as I do for my own projects. -- 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: Invitation to connect on LinkedIn
On Wed, Nov 18, 2009 at 01:07:46AM -0800, Andrei Antoukh wrote: > LinkedIn > > > Andrei Antoukh requested to add you as a connection on LinkedIn: > -- Why isn't LinkedIn in FreeBSD.org's spam blocker? -- 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: How do I replace the built-in OpenSSL with a source tarball ?
On Wed, Oct 28, 2009 at 09:14:22AM -0700, George Sanders wrote: > > Yes, but I still won't know how to put the new version in _exactly the > same place_ as the one I just removed. > > For complex reasons of space and tools (embedded system, etc.) I do > indeed need to use the source tarball. > > So I'd like to know what configure directive to feed to it to properly > and _exactly_ replace the existing FreeBSD default OpenSSL... Not knowing anything more about ones "complex reasons", I suggest giving serious consideration as to replacing the contents of /usr/src/crypto/openssl/ with OpenSSL's distribution sources and see what happens when one makes from /usr/src/secure/usr.bin/openssl/ But before doing that I think serious consideration should be made as to making what ever embedded customizations one needs to the stock FreeBSD distribution files. Make your changes then generate patch files as an archive of the differences. Or better yet create your own custom fork in CVS, but I don't know how one would do that and still be able to sync with the official sources. IIRC there are plans to move the official FreeBSD sources to Subversion, which might complicate things. Have noticed in recent months cvsup often must replace rather than update files because checksums do not match. Guessing that has something to do with svn. http://svn.freebsd.org/ In years past I built a custom embedded FreeBSD out of FreeBSD 4.4 using only a custom Makefile outside of the /usr/src tree to drive the whole process. My built started with a clean checkout from my local CVS image of the official distribution. Don't recall making any code changes that couldn't be handled as compile defines from the Makefiles. Built into a chroot space, including selected ports. Then working from a list of utilities that I wanted in my reduced FreeBSD a script extracted library dependencies to create another list. Finally a new directory tree was created of the new system of only the files I wanted and their dependencies. My system including kernel was under 10 MB. Plus another 10 or 15 MB for Apache, and another 10 MB or so for Perl. Kept a 500 MHz P3 busy for a while. :-) -- 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: need C help, passing char buffer[] by-value....
On Tue, Oct 20, 2009 at 05:42:41AM +0200, Polytropon wrote: > Just a little and quite formal side note: > > On Mon, 19 Oct 2009 11:09:19 -0700, Patrick Mahan wrote: > >while (*tp != '\0' && *tp++ != '<'); > > It's often a good choice, especially for increasing readability > of code, to code the "empty statement" on a line on its own (as > you usually put any statements on an own line for clarity), so > the reader doesn't accidentally take it as and "end of command" > notification, e. g. > > while(1) > ; > > instead of > > while(1); Agreed. I did exactly this in a code sample posted earlier in this thread. -- 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: need C help, passing char buffer[] by-value....
On Tue, Oct 20, 2009 at 05:08:40AM +0200, Polytropon wrote: > On Mon, 19 Oct 2009 08:58:05 -0500, David Kelly wrote: > > On Mon, Oct 19, 2009 at 05:43:44AM +0200, Polytropon wrote: > > > to make sure s is not NULL, or testing for it explicitely like > > > > > > if(!s) > > > ... error handling here ... > > > > You are missing my point that *s == 0 is not a good out of bounds > > range check. > > That's correct. Test != NULL just ensures that it is not a NULL > pointer. Range checking should always be applied additionally. Polytropon's "if(!s)" is testing for null pointer and thats a useful test, but I'm testing for a pointer to a null which is something else. Access through a null pointer should result in a memory violation core dump. -- 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: need C help, passing char buffer[] by-value....
On Sun, Oct 18, 2009 at 11:30:49PM -0400, Robert Huff wrote: > > Glen Barber writes: > > > > "//" comments are recognized by both C and C++. > > How about "... are recognized by both C++ and more recent versions > of C."? I think gcc++ and gcc use the same preprocessor? Comments are stripped in the preprocessor. The only thing we can really say is that gcc accepts // as a comment. Is becoming an accepted convention in other C's but I doubt one can universally state that its accepted in all "recent versions". -- 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: need C help, passing char buffer[] by-value....
On Mon, Oct 19, 2009 at 05:43:44AM +0200, Polytropon wrote: > On Sun, 18 Oct 2009 22:23:43 -0500, David Kelly wrote: > > When not using a count to indicate how much data is in a char* you > > should always test for null. Testing for null is not a sure fire way > > to prevent buffer over runs but its better than nothing. > > There are means like > > #include > ... > assert(s); > > to make sure s is not NULL, or testing for it explicitely like > > if(!s) > ... error handling here ... You are missing my point that *s == 0 is not a good out of bounds range check. > is possible. Furthermore, it is a proven way to give a length > argument along with the (char *) argument, such as the "new" > l-functions for strings, e. g. strlcat() and strlcpy(), do. > > char *skiptags(char *s, int l); > > You can even double-check for l begin != 0. Or you employ a > test with strlen() function-internally. strlen() knows nothing about the buffer allocation. As I originally said, testing for null (and my example tested) is not foolproof but its better than nothing. One should *also* test for the known end of the allocated buffer. -- 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: need C help, passing char buffer[] by-value....
On Oct 18, 2009, at 8:33 PM, Gary Kline wrote: Guys, maybe this can't be done reading in a file with fgets(buffer[128], fp), then calling skiptags(), conditionally, to while () past ',' and '>'. I know I need to calll skipTags with its address, skipTags (&buffer);, but then how to i handle the variable "s" in skipTags? Anybody? The skipTags() you wrote doesn't return its result. Without actually trying it I think this will work: // redo, skip TAGS char *skipTags( char *s ) { if( *s == '<' ) { while( *s && ( *s++ != '>' ) ) ; // on a line of its own to make sure you see it } return s; } When not using a count to indicate how much data is in a char* you should always test for null. Testing for null is not a sure fire way to prevent buffer over runs but its better than nothing. Use the above something like this: char *buffPtr; buffPtr = skipTags( buffPtr ); // advance over < > tags -- 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: network freebsd computers
On Tue, Sep 22, 2009 at 04:46:49PM -0400, Jerry McAllister wrote: > On Tue, Sep 22, 2009 at 03:27:35PM -0400, Carmel NY wrote: > > > I was just playing around with ssh. Would it be possible to store > > multiple keys in the ~/.ssh/authorized_keys file? > > It will put a key there for every place you go to with ssh. I think this is the place one puts the public key of accounts (not the host) from which one is *coming* from that one wishes to accept login without further challenge. ~/.ssh/known_hosts automatically (prompted first time) records the host public key of places you have been so as to warn you that the connection is not to a previously known machine. -- 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: network freebsd computers
On Tue, Sep 22, 2009 at 03:29:43PM -0400, Carmel NY wrote: > On Tue, 22 Sep 2009 14:08:21 -0500 > David Kelly wrote: > > [snip] > > > It would, but he's approaching the problem with Windows-colored > > glasses. > > I am not sure what that is even suppose to mean, so I'll just ignore it. It means you are trying to make Unix conform to your Windows habits. For security, simplicity, and security (yes, "security" twice) we are not in the habit of wantonly sharing our file systems. Historically remote login has been difficult on Windows systems while file(system) sharing has been relatively easy so Windows Administrators learned how to manage systems by pushing files around on shared file systems. I'm saying it sounds an awful lot like that is what you are trying to do. If so then you will quickly find Unix doesn't like to let root (Administrator) easily cross system boundaries. Meanwhile others have listed a multitude of utilities for shooting files across multiple machines, including simple terminal login and more advanced GUI X11 login. None of which use shared file systems as their core connection method. Expanding on what I said earlier, if "joe" is userid 1001, do not reuse 1001 on any other machine unless "joe" has an account there too. Unix file ownership is by userid and groupid *numbers*. The number doesn't have to be defined in the password or group databases to be used. Most file sync and archivers only use the numbers. -- 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: network freebsd computers
On Tue, Sep 22, 2009 at 02:53:17PM -0400, Jerry McAllister wrote: > On Tue, Sep 22, 2009 at 02:48:58PM -0400, Carmel NY wrote: > > > On Tue, 22 Sep 2009 12:25:38 -0600 (MDT) > > Warren Block wrote: > > > > [snip] > > > > > It's still a little unclear. If you want the FreeBSD systems to > > > participate in the Windows networking, look at mount_smbfs and Samba. > > > > I want to be able to access a FreeBSD box from another FreeBSD box. I > > rarely access a Windows machine from FreeBSD as it is just easier to do > > it the other way around. > > Am I missing something or would ssh, scp and directing your Xwindows > display from the headless machine to a desktop X server cover > everything you are asking for? It would, but he's approaching the problem with Windows-colored glasses. -- 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: network freebsd computers
On Tue, Sep 22, 2009 at 02:12:48PM -0400, Carmel NY wrote: > > I can find a virtual cornucopia of information on networking Windows > machines; Microsoft even includes a wizard to accomplish it. However, > there does not seem to be as much information regarding non-Windows > products. Perhaps because it is *harder* to network Windows than Unix? Skimming this thread something I would suggest that may be falling through the cracks is to unify your user accounts across all the machines. No matter that user "joe" isn't supposed to be using a particular machine do not reuse joe's userid on that machine. Also reconsider the need to share all filesystems across all machines. A typical Windows "network application" often runs client-fileserver rather than client-server. When one can not remotely login to a single-user Windows machine, filesharing band-aids that issue. Multi-user Unix systems trivially allow remote logins including ftp and scp file copying. -- 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: network freebsd computers
On Tue, Sep 22, 2009 at 02:18:24PM -0400, Carmel NY wrote: > On Tue, 22 Sep 2009 20:52:47 +0300 > Peter wrote: > > [snip] > > > Maybe you are looking for this ? > > > > http://www.freebsddiary.org/nfs.php > > That article is quite dated. However, I will investigate it ASAP. This isn't Windows where everything changes between every new release. The fundamentals of NFS haven't changed much in 10 years. -- 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: reporter on deadline seeks comment about reported security bug in FreeBSD
On Mon, Sep 14, 2009 at 05:13:54PM -0400, ill...@gmail.com wrote: > Am 2009/9/14 Dan Goodin writhed: > > Hello, > > > > Dan Goodin, a reporter at technology news website The Register. Security > > researcher Przemyslaw Frasunek says versions 6.x through 6.4 of FreeBSD > > has a security bug. He says he notified the FreeBSD Foundation on August > > 29 and never got a response. We'll be writing a brief article about > > this. Please let me know ASAP if someone cares to comment. > > Has anyone submitted a PR about this? Przemyslaw Frasunek has PR's posted but none recent. IMO if a PR is not submitted then one has *not* informed the Powers That Be. Having said that, for all I know there is a PR in the system that has been given restricted access until its dealt with. IIRC there is an option where one may request privacy when submitting a PR, perhaps that is the case here? Why is this in -questions? Seems -chat is more appropriate. -- 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: How to doc available?
On Mon, Jul 27, 2009 at 03:19:17PM -0400, Mikel King wrote: > Anyone know of a good tutorial for making a system on a USB key in > limited space? I have a project that requires enough of running system > with lighttpd and php5 to do some network magick. I would like to keep > the thing below 512MB but if that is not feasible then I'll shoot for > whatever the smallest I can get away with. Have you tried it yet? Once Upon A Time Not So Long Ago, 512MB was a *huge* system disk. And as others have pointed out much larger USB stick is cheap. So how many hours are you willing to spend to save $12? -- 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: question
On Fri, Jul 17, 2009 at 10:28:16PM +0300, Giorgos Keramidas wrote: > On Fri, 17 Jul 2009 10:51:57 -0700 (PDT), Zohreh wrote: > > Dear Sir/Madam > > ? > > i have a question about free bsd and squid that?was?installed on it. > > i insatlled squid 2.6 stabled 20 on freebsd 7. and i enabled firewall > > on freebsd . now i brows http sites on internet but i cannot brows > > ftp site and i cannot pass pop3 through of my squid . can you hlep me > > , how to config squid and freebsd to pass ftp and pop3 ? thank you > > for your attention ? best regards zohreh ? > > You seem to have blocked FTP access by tweaking the firewall ruleset. Client side passive ftp can function through simple firewalls but non-passive (which is *not* "active") requires very special handling. -- 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: 5000' ethernet?
On Thu, Jul 16, 2009 at 04:33:24PM -0400, Michael Powell wrote: > David Kelly wrote: > > > > Last sentences in last paragraph before See Also at > > > http://en.wikipedia.org/wiki/Carrier_sense_multiple_access_with_collision_detection: > > > > "Also, in Full Duplex Ethernet, collisions are impossible since data > > is transmitted and received on different wires, and each segment is > > connected directly to a switch. Therefore, CSMA/CD is not used on > > Full Duplex Ethernet networks." > > Aha! I did not know this (obviously). Learn something new every day... > Maybe I'm getting too old for this line of work. The brain just isn't > working the way it once did. I'm a big proponent of RTFM, but usually > am looking at new material instead of forgetting stuff I read +20yrs > ago. Thanks for setting me straight guys, it's better to be "in the > know" than the other way around. Maybe time to retire. I like my job but can think of a lot of other funner things to be doing. There are a lot of trees out there with bark at handlebar height that needs to be loosened with my dirtbike! Can't afford to retire until AAPL hits $500. :-) As for RTFM read Lowell Gilbert's post in this thread where he points out its mentioned in only one place in the docs that they were using the term "CSMA/CD MAC" everywhere in the documentation no matter CSMA/CD didn't apply when the MAC was configured Full Duplex. So if you didn't fully grok the #include file you didn't have the proper macro definitions to rewrite what they were saying into what they meant. :-( -- 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: 5000' ethernet?
On Thu, Jul 16, 2009 at 02:49:11AM -0400, Michael Powell wrote: > David Kelly wrote: > > > Since when does one have CSMA/CD when configured as full duplex? All > > full duplex ethernet connections are point to point, machine to > > machine, or machine to switch. There is no multiple access on full > > duplex. No chance of collision. > > You are running Ethernet, right? CSMA/CD is part of the Ethernet > framing protocol. It is present in the protocol independent of > simplex/duplex, etc. As such the timing windows contain non-infinite > discreet value ranges. It is integral to Ethernet and does not get > 'switched off' or disappear just because a link is full-duplex. Please explain more. I have coded ethernet and TCP/IP on 68HC12NE64 embedded microcontrollers and in full duplex the MAC doesn't listen nor wait before transmitting. There is no carrier detect but for the status from the PHY indicating a wire is present. > These physical parameters drive the limitations designed into the > Ethernet protocol. There are maximum distances in fiber just as there > are in copper. If we could simply ignore these things and do whatever > we want why would they need exist in the first place? Because not all ethernets are full duplex. Fiber transceivers are not "smart" devices the way switches are semi-smart and routers are fully smart. What I've seen of fiber transceivers they are no smarter than the old AUI to thick, thin, or 10baseT transceivers. So what is happening in your scenario where ethernet over fiber works but will not work over copper due to "protocol timing?" > They exist because the propagation speed in the medium is not instantaneous. > This makes the problem time. The furthest apart two nodes can be located is > the time it takes for the smallest Ethernet packet to get from one end to > the other. Why is the same not true with fiber? > When a NIC transceiver is in the process of transmitting a packet it > is also listening at the same time and calculating a CRC. It knows > when a collision has occurred when the CRC does not match on both TX > and RX. If they are too far apart in time, and both NICs key up at the > same instant neither will ever know the collision has not yet > occurred. A collision can never occur full duplex. When full duplex is enabled the receive verify function you describe is disabled. > Both will assume no collision has occurred and queue up the next > packet, and so on and so forth. The problem is time, and time is > directly related to the propagation speed of the medium. > > This relationship to time is present in the Ethernet protocol. The > misconception present is that "with full duplex there is no chance of > collision" meaning that CSMA/CD is somehow magically turned off or > excluded. But it is turned off. A full duplex switch does not echo the sender's bits back to the sender's receiver. A full duplex switch buffers the incoming bits, reads the header, selects an output port, and then starts sending the bits to that one port out of the FIFO. If it is a broadcast packet then most cheap switches will wait until all ports are available before sending the packet. Perhaps expensive switches will queue a copy of the broadcast to each port. Last sentences in last paragraph before See Also at http://en.wikipedia.org/wiki/Carrier_sense_multiple_access_with_collision_detection: "Also, in Full Duplex Ethernet, collisions are impossible since data is transmitted and received on different wires, and each segment is connected directly to a switch. Therefore, CSMA/CD is not used on Full Duplex Ethernet networks." -- 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: 5000' ethernet?
On Jul 15, 2009, at 5:41 PM, Michael Powell wrote: David Kelly wrote: Not directly FreeBSD related, but how much of a chance is there that two machines could communicate directly over 5,000 feet of cat5 with no special hardware? IIRC the classic ethernet problem limiting the distance between the farthest points on a network had to do with timing and collisions. If these two NICs are configured full duplex then it seems one would have no idea how far away the other was due to timing issues. No. Ethernet uses a protocol design called Carrier Sense Multiple Access with Collision Detect, or CSMA/CD. The maximum lengths are indeed related to timing and the timing is a direct result of the propagation delay in the medium. The velocity factor will be some percentage of the speed of light. Since when does one have CSMA/CD when configured as full duplex? All full duplex ethernet connections are point to point, machine to machine, or machine to switch. There is no multiple access on full duplex. No chance of collision. So I'm thinking at 5,000' the problem is one of echo cancelation and signal loss, not one of ethernet protocol. -- 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: 5000' ethernet?
On Jul 15, 2009, at 9:25 PM, Olivier Nicole wrote: The max distance for UTP is 328 ft. Divide the 5,000 by 328 and it will tell you how many bridges, hubs, or switches you will need to regenerate the signal. You may find devices purporting to 'range extenders', but even these will have distance limitations requiring more than one. Foofaraw. That would make 14 hub/switches. I think I remember that the number of hubs is limited to 4 in between each end of the connection. I am not sure it is true also for switches. Hubs are simple analog repeaters. Switches are regenerative and buffered as the packet doesn't get resent until after the needed port is available. In any case, have boxes of cat5 on order so as to find out myself. You would need 5 boxes, the connections between each run of cable could cause too many loss, even if the timing was not an issue. Wire connections are not all that lossy. Meanwhile cat5 is useful for other things after this project is over. As suggested by others, I would go for wireless ad it is the easiers to install if you have a line of sight. Is my fault for not stating initially that the customer has ruled out any wireless option. Originally we were going to run a modest 50k bit/ sec wireless link. Another solution, if you really don't need that much bandwidth, is to request an ADSL connection at each location and establish some kind of tunnel in-between the two boxes. There are no phone lines at this location. As suggested before you could consider fiber optic, you could order a 2000 meters roll of underground outdoor fiber, with pig tail installed at each end. For a temporary use, you should not need any special precaution for installation: these fibers are usually shielded to support a truck to running on it... Or you can get the type of fiber designed for aerial usage, 8 shapped cable, including a suspension cable, and run it from tree to tree; but it's much much more installtion work, the cable tend to be heaviy... Sources? And you could get a couple of media converters (UTP to fiber) for $1000. Transceivers are easy to find. Matching cable has not been easy to find. Don't be afraid by the cost of fiber optic, most of the cost is labour to bury the fiber, it is not the cost of the cable itself. Not going to bury it. Is temporary for less than a week. -- 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: 5000' ethernet?
On Wed, Jul 15, 2009 at 10:27:35PM +0200, Michelle Konzack wrote: > Hello David, > > Am 2009-07-15 14:47:18, schrieb David Kelly: > > Not directly FreeBSD related, but how much of a chance is there that two > > machines could communicate directly over 5,000 feet of cat5 with no > > special hardware? > > I do not know hoe much a feet is in meters but AFAIK arround 0,3 which > mean, you are talking about 1.5km or 1 mile ? Yes, roughly a mile which is 5280 feet. Maybe less, but no more than a mile. Won't really know until I get there and start running cable. > There are inexpensive FiberOptic Transponder (I am using a bunch of > it from Transmode for my CWDM 1GE and DWDM 10GE network) > > The 100 Mbit Transponder cost arround 600 Euro (each) and for > your 5000 feets you need only an inexpensive FiberOptic cable. > EVEN the cheapes one would transfer 1 Gbit at this distance. What I'm not (yet) seeing is a fiber optic transceiver listed with matching fiber optic cable. The transceivers seem inexpensive vs the cost of the cable. > > Are there any particular range extenders you have used and would > > recommend for making this task a sure thing on the first try? > > Perhaps I should put an inexpensive ethernet switch at each junction > > to serve as a regenerative repeater? > > You have to use at least 3 Repeaters which NEED electricity. Do you > know this? Yes, of course. > 5000 feet CAT5, 3 Repeater plus electric installation cost more, > then the FiberOptic Cable with two Transponder. And of course, no > one can sniff traffic on FiberOptic and you have no worry about > magnetic fields disturbing your 5000 feet... No one is going to sniff *this* one. Am not finding sources of fiber optic cable as easily as I can find fiber optic transceivers. 100baseT ethernet switches are about $25 each if one will serve as a regenerative repeater. Did I mention this is a temporary installation? -- 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"
5000' ethernet?
Not directly FreeBSD related, but how much of a chance is there that two machines could communicate directly over 5,000 feet of cat5 with no special hardware? IIRC the classic ethernet problem limiting the distance between the farthest points on a network had to do with timing and collisions. If these two NICs are configured full duplex then it seems one would have no idea how far away the other was due to timing issues. 100baseT uses lower power drivers than 10baseT, so perhaps 10baseT would work better. In any case, have boxes of cat5 on order so as to find out myself. Are there any particular range extenders you have used and would recommend for making this task a sure thing on the first try? Perhaps I should put an inexpensive ethernet switch at each junction to serve as a regenerative repeater? -- 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: you're not going to believe this.
On Tue, Jun 23, 2009 at 11:12:05PM +0200, Polytropon wrote: > On Tue, 23 Jun 2009 15:59:44 -0500, David Kelly wrote: > > We are already there. SSDs are not slower than mechanical disk > > drives, they are faster. The only detriments are 1) cost, 2) limited > > write life. > > What about power consumption? Because they seem to be primarily > intended for portable devices, it should be better than "tradidional > hard disks", but as I read, it's worse (less efficient, because higher > current drain). Don't think generic generalizations can be made this early in the life of the technology. Shop for SSDs while looking at the properties that interest you. In general, reading is much faster than for mechanical HD. Also seek time is nil. And read power consumption is low. A serious contender for use in servers where lots of unchanging data is needed quickly. Probably not as good of an idea for use in a mail server, but ideal for a web server. -- 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: you're not going to believe this.
On Tue, Jun 23, 2009 at 01:10:41PM -0700, Gary Kline wrote: > > battery-backed ram sound great for the time being! > > if not now [this minute], then relatively soon, i'm guessing > within a few years somebody will have a solid-state device that emulates > the current mechanical technology. it will wind up being considerably > faster than the current drives and suck Much less juice. We are already there. SSDs are not slower than mechanical disk drives, they are faster. The only detriments are 1) cost, 2) limited write life. -- 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: you're not going to believe this.
On Tue, Jun 23, 2009 at 09:46:01PM +0200, Wojciech Puchar wrote: > >>and lifetime. > > > >Even a flash filesystem will have to do wear levelling. > > yes - but it don't have to copy blocks that are free. with disk > emulation - it doesn't know anything about filesystem and don't know > what blocks are free. If it is swapping from heavily used blocks to lightly used blocks then "so what" if there is an "unnecessary" read/write? Perhaps its harder to determine if unused than to simply move the data. I seem to recall something like this in comments in the FreeBSD virtual memory manager in 6.0-RELEASE. Don't want to leave the old data laying around for security reasons so even if the blocks are unused the formerly heavily used blocks need to be scrubbed. As I originally said to Gary Kline, "Don't let someone scare you away from the 99.8% solution waiting on the 99.9% solution." -- 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: What's happening
On Tue, Jun 23, 2009 at 05:28:51PM +0200, Jack Raats wrote: > Can anyone explain this: > > Jun 23 17:09:09 zeus kernel: fxp0: link state changed to DOWN > Jun 23 17:22:25 zeus kernel: fxp0: link state changed to UP > > What's causing this??? The wire was disconnected during that time. Possibly the hub/switch lost power, or the modem was down. -- 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: you're not going to believe this.
On Tue, Jun 23, 2009 at 07:52:27AM -0700, Gary Kline wrote: > On Tue, Jun 23, 2009 at 09:31:06AM +0200, Wojciech Puchar wrote: > > > > today we have huge flash disks for really cheap, but still don't > > have native flash filesystem in any OS, be it FreeBSD or windoze or > > mac os x or whatever. > > > > This flash chips have to emulate hard drive, which slows them down > > manyfold > > > so is there any best guess regarding what timeframe a filesystem > for freebsd might exist? on the you-tube demo they were using > [i think] XP. Don't worry about it. Buy your SSD (Solid state Storage Device) and mount with the noatime option. Don't let someone scare you away from the 99.8% solution waiting for the 99.9% solution. As for "emulating a hard drive", its only slow relative to potential FLASH speeds. Its fast relative to hard drive speeds. Writing may not be as fast as a "real" HD, YMMV. -- 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: Opinion request about a file server
On Fri, Jun 05, 2009 at 06:16:49PM +0200, Wojciech Puchar wrote: > > >What i mainly try to achieve, talking in storage space, is 2 HDD of 1TB in > >mirroring using gmirror(8) and 1 separate HDD of 500Gb. > > > >So do you think the system I've mentioned would handle the load? The server > > 10 times more power than needed. disks speed is the only limit I have a P-II at 400 MHz running as a file server. See about 5 MB/sec on most file transfers. Has one of the original 15GB IBM Deskstar drives, and a much slower 6 GB WD drive. Both on ATA16 interfaces. I suspect network speed will determine the limits. A modern SATA drive should be sequentially read or write at at least 80 MB/sec. while a 100M bit/sec ethernet will be limited to 11 MB/sec. Latency of disk drive and network are usually the limiting factors, not server CPU. With gigabit ethernet one could reasonably expect to see 25MB/sec file rates. Depends a lot as to how big the file, the bigger the faster. Used smartctl just now to check, the Deskstar drive has 50331 hours of run time, 5.7 years. Has only been power cycled 72 times. Run time seems low as I have almost never turned this drive off since 2000. The WD drive claims to have 1418293 hours of uptime. Know that is not right. -- 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: Opinion request about a file server
On Fri, Jun 05, 2009 at 03:57:21PM +0300, Valentin Bud wrote: > Hello community, > > I have an old computer (ASRock P4Dual-915GL) with Intel P4 > CPU at 3.0Ghz and 2Gb of RAM. > > I am asking the list maybe is somebody out there with a similar > configuration and running FreeBSD on such a system as a File Server > and Print Server using samba. > > What i mainly try to achieve, talking in storage space, is 2 HDD of > 1TB in mirroring using gmirror(8) and 1 separate HDD of 500Gb. > > So do you think the system I've mentioned would handle the load? The > server will be used by 4 people for storage of all sorts of files that > can be found in Design and daily Office World (Photoshop, Illustrator, > etc, Word Documents, etc). I think its gross overkill for that very light load. -- 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: about restarting services
On Thu, Jun 04, 2009 at 09:40:16AM -0800, leonardo wrote: > hello everybody: > > I?m new to freeBSD, I want to know how I can restart the network services Start by creating a new email and addressing it to the list rather than Reply-To another and edit it down. The two are not the same. -- 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: Open_Source
On Wed, Jun 03, 2009 at 08:32:38PM +0200, Wojciech Puchar wrote: > > >A counter-example is VMS. It is a commercial product, but highly > >reliable and secure. > > At least is said too, i never used or even seen VMS. When Digital Equipment Corporation collapsed, the architect(s) of VMS went to Microsoft and were given NT to mold in their own likeness. This is where rings of security levels originated in modern Windows. http://en.wikipedia.org/wiki/Dave_Cutler NT 3.5 and possibly 4.0 supported VMS-like versioned files as part of the filesystem. -- 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: Stop in /usr/ports/lang/gcc43
On Mon, Jun 01, 2009 at 08:06:30PM +0200, Leslie Jensen wrote: > > I can't get gcc43 to compile. I've deinstalled and reinstalled all its > dependencies but it still fails. Including perl? What version of perl do you have installed? I know it builds with 5.8.9. > In file included from ./tm.h:7, > from .././../gcc-4.3-20090531/gcc/gencheck.c:24: > ./options.h:1101: error: redeclaration of enumerator 'OPT_w' > ./options.h:1099: error: previous definition of 'OPT_w' was here > ./options.h:1102: error: redeclaration of enumerator 'OPT_v' > ./options.h:1100: error: previous definition of 'OPT_v' was here > gmake[3]: *** [build/gencheck.o] Error 1 > gmake[3]: *** waiting for unfinished jobs... > rm cpp.pod gcc.pod fsf-funding.pod gfdl.pod gcov.pod See above? Its deleting .pod files which I believe are perl. Perl *documentation* but still somehow related to perl. There was something else the past month or two where I believe a dependency for KDE could not build because it was finding its own older version include files. That port had to be pkg_deinstall -f'ed before it would build and install the new version. Then "pkgdb -fu" may or may not have been required to force an update of the ports database. -- 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: Stop in /usr/ports/lang/gcc43
On Mon, Jun 01, 2009 at 08:06:30PM +0200, Leslie Jensen wrote: > > > I can't get gcc43 to compile. I've deinstalled and reinstalled all its > dependencies but it still fails. > > I'm on a 7.2-RELEASE system with all ports installed from a clean install. > > The problem turned up when an update for fftw3 became available. > > Apparently gcc43 is a new dependency for fftw3! > > Any hints appreciated Add this to /etc/make.conf. Worked for me: WITHOUT_JAVA=1 Apparently to build Java one has to increase the size of some tables in the kernel. I'd just as soon do without Java. -- 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: interrupt storm on irq 10
On Wed, May 27, 2009 at 09:30:19PM +0200, Wojciech Puchar wrote: > > I'm not telling that you are wrong that cable produced this, but i > can't find any explanation for that. One two-port controller card, two drives, two cables. Interrupt storms move from one port to the other with the suspect cable no matter which drive is connected to that cable, no matter which port it is connected to. Two supposedly identical SATA cables purchased together. Will purchase new cables to try tonight. -- 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: FreeBSD & Software RAID
On Wed, May 27, 2009 at 09:24:17PM +0200, Wojciech Puchar wrote: > >I haven't looked at the ZFS code but this sort of thing is exactly why > >all code I write uses int8_t, int16_t, int32_t, uint8_t, ... even when > >the first thing I have to do with a new compiler is to work out the > >proper typedefs to create them. > > int, short and char are portable, only other things must be defined this > way. No, they are not portable. "int" is 16 bits on many systems I work with. char is sometimes signed, sometimes not. uint8_t is never signed and always unambiguous. > int8_t int16_t is just unneeded work. anyway - it's just defines, having > no effect on compiled code and it's performance. No, they are not "just defines", I said "typedef". Typedef is subject to stricter checking by the compiler. Packing and alignment in structs is a big portability problem. -- 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: interrupt storm on irq 10
On Wed, May 27, 2009 at 12:51:45PM -0500, Andrew Gould wrote: [...] > Are interrupt storms a problem? Do I need to worry about them? If > so, is there anything I can do about them? Have run across interrupt storms for the first time myself last night. Am thinking they are from interrupt sources that interrupt handlers do not fully support. So the interrupt is not being serviced and is repeatedly being invoked. Probably PCI doesn't behave the same as much simpler embedded hardware that I am used to, but the above is what an interrupt storm looks like on simple embedded hardware. My source of interrupt storms was caused by a bad SATA cable. Installed a new VIA 6421-based SATA card (selected because it was only $15) and two new hard drives for the purpose of copying files off two older drives. New drives were detected but ad4 did not work when ad6 did. Swapped drives and the other drive on ad6 worked. Thought the card was bad but decided to try swapping cables which fixed ad4 and broke ad6. Ergo, bad cable. -- 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: FreeBSD & Software RAID
On Wed, May 27, 2009 at 11:52:33AM -0500, Kirk Strauser wrote: > On Wednesday 27 May 2009 11:40:51 am Wojciech Puchar wrote: > > > you talk about performance or if it work at all? > > Both, really. If they have to code up macros to support identical > operations (such as addition) on both platforms, and accidentally > forget to use the macro in some place, then voila: untested code. I haven't looked at the ZFS code but this sort of thing is exactly why all code I write uses int8_t, int16_t, int32_t, uint8_t, ... even when the first thing I have to do with a new compiler is to work out the proper typedefs to create them. -- 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: FreeBSD & Software RAID
On Mon, May 25, 2009 at 07:09:15PM +0200, Wojciech Puchar wrote: > > > >I have looked at ZFS recently. Appears to be a memory hog, needs > >about 1 GB especially if large file transfers may occur over gigabit > >ethernet > > while it CAN be set up on 256MB machine with a little big flags in > loader.conf (should be autotuned anyway) - it generally takes as much > memory as it's available, and LOTS of CPU power. > > with similar operations ZFS takes 10-20 TIMES more CPU than UFS and > it's NOT faster than properly configured UFS. doesn't make any sense It makes a certain degree of sense. Sometimes things have to be done wrong for us to realize how good we had it before. How would we know how great FreeBSD is if we didn't have Linux? I had to look at ZFS to decide not to use it when I rebuild my storage this week due to a failing drive. -- 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: FreeBSD & Software RAID
On Mon, May 25, 2009 at 07:37:59PM +0300, Valentin Bud wrote: > On Mon, May 25, 2009 at 7:30 PM, Graeme Dargie > wrote: > > > Can anyone with experience of software RAID point me in the right > > direction please? I've used gmirror before with no trouble, but nothing > > fancier. [76 lines trimmed] > I have been using ZFS for about half an year. I just have mirroring > with 2 drives. Never had a problem with it. I would go with ZFS in the > future too. And yes the server is in production and it has all sort of > important data. I have looked at ZFS recently. Appears to be a memory hog, needs about 1 GB especially if large file transfers may occur over gigabit ethernet to/from other machines. -- 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"
ATA transfer block sizes in 7.2?
Back in 5.x or 6.x the maximum ATA transfer size was 127k or 128k as witnessed with "systat -v" during big file reads or writes. In the later versions of 6.x and now 7.2 this appears to be 63k or 64k. Is there a reason for the smaller transfer size? It seems disk throughput on my machine is limited by the number of transfers/sec less than the bytes/sec. Similar question: in addition to one "normal" drive I have two more configured as a geom striped volume. Transfers seem to be limited to 43k on these volumes. Am guessing the volume was allocated with the wrong multiples of stripe size and/or started on the wrong block, or something along those lines. I/O rates are about half what they were with same hardware using vinum. Think this is my current geom config, its dated March 2006: drive a device /dev/ad4s1d drive b device /dev/ad6s1d volume stripe plex org striped 279k sd drive a sd drive b And believe this was my vinum config (dated Sept 2004): drive vinumdrive1 device /dev/ad6s1d drive vinumdrive0 device /dev/ad4s1d volume vinum0 plex name vinum0.p0 org striped 558s vol vinum0 sd name vinum0.p0.s0 drive vinumdrive0 plex vinum0.p0 len 319571622s driveoffset 265s plexoffset 0s sd name vinum0.p0.s1 drive vinumdrive1 plex vinum0.p0 len 319571622s driveoffset 265s plexoffset 558s S.M.A.R.T. reports one of my striped drives is failing, new drives are in the mail as its also time for an upgrade. When I recreate the new volume how might I optimize it for performance? Stick with geom, or something else? -- 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: NIC
On Mon, May 04, 2009 at 04:31:16PM -0400, Robert Huff wrote: > > Conversely, cards based on RealTek chips have a reputation of > being both inexpensive /and/ cheap. (This may or may not be true of > the wireless cards.) The first generation of RealTek chips were little more than a shift register and deserved a poor reputation for requiring a lot of CPU resources. That got RT into market share and now have satisfactory product. > The drivers for the Intel cards are written by Intel; I've got > a dual-port Pro/1000 GT, and the thing is a _rock_. Ditto. Intel NICs are exceptionally well supported. If one must run Windows, an Intel NIC and Intel driver provide a lot of features which are otherwise missing. -- 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: CD Burning
On Tue, Apr 21, 2009 at 12:50:47PM -0700, Christopher Chambers wrote: > I have found that burning software is unable to detect my cdrom. *What* burning software? /usr/sbin/burncd should recognize the drive. If you are trying to run cdrecord then you need "device atapicam" added to your kernel config. Try "cdrecord -scanbus" to learn how cdrecord names your device. > I would assume that this is because acd0 is listed in fstab as > read-only. /etc/fstab is a File System Table used for mounting filesystems. You are a ways off just yet in having a filesystem on acd0 to mount. > I am just a little worried that changing it to rw might wreck a cd > (already burnt) one day. Since cp or mv to /cdrom won't work, I guess > my fear is unjustified hey? The OS doesn't know how to write/append an ISO 9660 filesystem so there would be no possibility of attempting an accidental write to CDROM. -- 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: Serial Communications
On Fri, Apr 03, 2009 at 11:44:36AM -0700, David Allen wrote: > Sorry to have to ask a dumb question ... > > I need to connect my notebook to another system using a serial > connection. Simple enough, but my notebook, unsurprisingly, has a USB > port, but no serial. > > Is there such a thing as a USB->DB9(M) null modem cable? If not, would a > USB->DB9 adapter stuck on one end of a null modem cable work? Yes, its a smart adapter. I've had best luck using a "Keyspan High Speed USB Serial Adapter" model USA-19HS. About $31 at Amazon.com and many other places. -- 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: utility that scans lan for client?
On Mon, Mar 23, 2009 at 03:41:55PM -0400, John Almberg wrote: > On Mar 23, 2009, at 3:19 PM, David Kelly wrote: > > >How about something as simple as "arp -a"? This lists the arp cache > >of machines recently heard by your machine. If you know the IP > >address of the machine in question and its not in your arp table, > >ping it. Then the MAC address will appear unless there is a router > >between here and there. > > H'mmm. This is also very interesting. > > nmap did not find this appliance, as it turns out. But arp -a did > found something on 192.168.1.107 (see below) > > server1 (192.168.1.106) at 0:13:d4:45:45:31 on en1 [ethernet] > server2 (192.168.1.107) at (incomplete) on en1 [ethernet] > server3 (192.168.1.108) at 0:23:12:f8:5e:fd on en1 [ethernet] > > I'm guessing this appliance (a Vonage phone adapter) is doing > something non-standard. No, its just ignoring pings. An incomplete entry in the ARP table says your machine tried to look up that address, creating an entry, but as of the moment the table was read the reply had not yet come back. Whatever router you are using is sure to have the Vonnage appliance in its ARP table. "Smart" network switches prevent your FreeBSD host from eavesdropping on the ARP packet exchange between Vonnage and router. Otherwise it would be in the arp table if the Vonnage has spoken recently to the router. -- 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: utility that scans lan for client?
On Mon, Mar 23, 2009 at 02:59:36PM -0400, John Almberg wrote: > I've tried googling for this, but I guess I don't know the name of a > utility such as this... > > What I'm looking for is a utility that can scan a LAN for attached > clients... i.e., computers that are attached to the LAN. > > I have one box (an appliance that I have no access to), that is on > the LAN but I don't know what IP address it's using. I'd like to > complete my network map, and that is the one empty box on my chart. How about something as simple as "arp -a"? This lists the arp cache of machines recently heard by your machine. If you know the IP address of the machine in question and its not in your arp table, ping it. Then the MAC address will appear unless there is a router between here and there. No need to be root. -- 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: renaming user account?
On Wed, Mar 18, 2009 at 11:27:39AM -0400, Joe Chimento wrote: > Is there an easy way to rename a user account belonging to 'www' group? vipw(8) -- 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: bsd vs gpl
On Wed, Mar 11, 2009 at 01:20:18AM -0700, prad wrote: > i've not paid much attention to licensing philosophy i the past, > because for me it was always windoze vs the goodguys. > > however, recently i've become aware of there being a chasm within the > goodguys in that the bsd attitude is do what you want as long as you > give credit to the creator, whereas the gpl folks say do what you want > as long as you keep it free. > > is this a fair summation? No, too simple. The source code is always free under BSD, contrary to what GPL proponents claim. Just that under BSD you are free to keep ownership of your own work. To decide how *you* wish to distribute. You may limit the redistribution of your work which includes BSD components. GPL people seem to forget the base BSD code is still free, its just that they want your enhancements too. Its a lesson in how to lie the way they claim this is somehow "free" and/or "freedom." GPL states that if you make changes those changes must be made available under the same terms as the original source code. Yet somehow darlings of the GPL world such as Red Hat, MySQL, and others, skirt around that onerous requirement. -- 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: read BSD format disk from Mac OSX
On Mon, Mar 02, 2009 at 09:16:02AM -0500, Tsu-Fan Cheng wrote: > Hi all, > I format a ext disk (UFS) and transfer some files into it, hand it > over to my friend who has a macbook. He complained the macbook can't > read it. I don't have a mac on hand, I wonder if there is any utility > that will help a mac to read a BSD, thanks!! The easiest way to do what you are attempting is to format the disk FAT. Then to preserve file attributes write your files in a tar archive. MacOS X knows UFS but might not know how to decipher a FreeBSD disk label. I haven't honestly tried. What I did do once was move a couple of drives previously used as a vinum striped RAID to MacOS X. Was frustrated that the MacOS Drive Utility would not allow me to create another striped volume on those drives. What I found out was that the drives had a Microsoft compatible disk label written by FreeBSD which MacOS was happily honoring. Would happily put an HFS+ partition on the drives. But MacOS X RAID had to be established at a lower level using a Macintosh disk label. -- 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: lpr fixed, but the wrong-way... [?]
On Fri, Feb 06, 2009 at 11:17:13AM -0800, Gary Kline wrote: > > % lpr /etc/fstab > > works. from the apsfilter log, it lookas as tho i need to upgrade > this libgs.so.8 shared library. but *how* do i find who/what build > this library? % grep -l libgs /var/db/pkg/*/+CONTENTS -- 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: policykit fails to build on 7.1-stable i386
On Tue, Feb 03, 2009 at 09:41:19PM +, Anton Shterenlikht wrote: > On Tue, Feb 03, 2009 at 02:48:24PM -0600, David Kelly wrote: > > > > I think "portupgrade -f p5-XML-Parser" got me over the hurdle. There > > was a file missing altho the port was installed. Forced it to build > > and reinstall and things were able to build once again. > > Actually, there's something else going on. I can build policykit on > FBSD alpha 6.4-stable fine, but it fails on 8.0-current. I tried > repeating download many times, it always goes fine on 6.4 but always > fails on 8.0, of which I deduce that overloaded sourceforge is not to > blame. FYI: I'm still on 7.0-STABLE. Have/had KDE 4.1.1 and am now well on my way to 4.1.4. -- 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: policykit fails to build on 7.1-stable i386
On Tue, Feb 03, 2009 at 01:36:19PM -0800, Rem P Roberti wrote: > On 2009.02.03 14:48:24 +0000, David Kelly wrote: > > > > I think "portupgrade -f p5-XML-Parser" got me over the hurdle. There was > > a file missing altho the port was installed. Forced it to build and > > reinstall and things were able to build once again. [...] > Deinstall/reinstall p5-XML-Parser Thats what I said. "portupgrade -f p5-XML-Parser" -- 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: policykit fails to build on 7.1-stable i386
On Tue, Feb 03, 2009 at 11:21:23AM -0900, Mel wrote: > On Tuesday 03 February 2009 07:49:29 Jason Morgan wrote: > > > > I am having the same problem (I posted a related question to the > > list last night). Anything dealing with XML and docbook is failing > > to build. I have managed to install a few of the problem ports by > > adding the package instead, but when I left the house this morning, > > yet another related package had failed. > > Do it a few times in a row, the sourceforge servers are overloaded > apparently and return false errors. > Either that, or familiarize yourself with XML categories, download the > file and update the XML cat file to use a local version rather then > remote for that particular file. Uh, tuning in late here. Also running portupgrade and had problems with policy and XML stuff. I think "portupgrade -f p5-XML-Parser" got me over the hurdle. There was a file missing altho the port was installed. Forced it to build and reinstall and things were able to build once again. Portupgrade is still building so I can't get at my shell history to verify. Did something similar for the international library stuff. -- 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: Quantum tape drive
On Jan 28, 2009, at 4:47 PM, Warren Block wrote: There's also the issue of terminator power, which may have been supplied by the old drive but not by the new one. Yes, usually a jumper is available. Also used to be one-shot fuses before the Raychem self-reseting PTC Polyswitch fuses. -- 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: Quantum tape drive
On Wed, Jan 28, 2009 at 05:06:55PM -0500, Jaime wrote: > On Wed, Jan 28, 2009 at 4:51 PM, Wojciech Puchar > > > > TERMINATION PROBLEM > > I was thinking of that... I shut down the server and checked the > usual suspects (terminator on the cable, SCSI IDs, etc.) but didn't > find anything out of place. Also, the same command in Knoppix (Linux) > using /dev/st0 (the Linux equivalent of /dev/sa0) appeared to write to > the tape and then list the items on that tape. I didn't see how long > it would take, though. In retrospect, maybe I should have let that > run longer. :( > > How certain are you that its a termination problem? I'm tending to "certainly" agree. There are other things to consider as well, such as narrow, wide, ultra, and ultra-LVDT. Active termination and passive termination. Is there termination at the SCSI card? You said there was termination on the cable, but is there also on-board termination on the drive? No other drive on the bus has termination enabled? One terminator on each end of the bus, no more, no less. -- 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: Quantum tape drive
On Wed, Jan 28, 2009 at 03:49:39PM -0600, Dan Nelson wrote: > In the last episode (Jan 28), Jaime said: > > > > Thanks. Would this decrease the ability of other Unixes being able > > to read the tape? For example, using pax (which can read tar > > archives) or GNU's tar? > > It shouldn't. At worst you may have to specify a matching blocksize > argument when reading. I once had problems with an SGI user writing tapes with megabyte block size. Works on ancient SGI IRIX but nowhere else that I know of. Worse, IRIX remembered the last block size used on a tape device, across multiple users. Learned to always set block size when writing else no telling how it would go. -- 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: Quantum tape drive
On Wed, Jan 28, 2009 at 03:38:43PM -0500, Jaime wrote: > > > > In the last episode (Jan 28), Jaime said: > >> /usr/bin/tar -cvpX /usr/local/etc/backups/skiplist-relative.txt -f > >> /dev/sa0 -C / . [...] > Any other thoughts before I try to OS update and the larger block size? You list -v as a tar option. Is tar sticking on a file? Another question is whether or not tar could be getting caught in a hard link or symbolic link infinite loop? Look for duplicates in the output. uniq(1) should be of assistance. Perhaps uniq needs a sort(1) to preprocess, I forget? -- 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: OT: .ape extension
On Mon, Jan 26, 2009 at 11:52:48PM +0100, Wojciech Puchar wrote: > > > On Mon, 26 Jan 2009, David Kelly wrote: > > >On Mon, Jan 26, 2009 at 11:39:19PM +0100, Wojciech Puchar wrote: > >>is it any decruncher for unix for this format (it's compressed audio > >>CD, from size i think it's kind of lossless compression) > > > >What does file(1) think it is? > > > don't think anything, says "data" Monkey's Audio: http://www.monkeysaudio.com/ -- 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: OT: .ape extension
On Mon, Jan 26, 2009 at 11:39:19PM +0100, Wojciech Puchar wrote: > is it any decruncher for unix for this format (it's compressed audio > CD, from size i think it's kind of lossless compression) What does file(1) think it is? -- 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"
Solution: Re: [Trouble Ticket #190456] AutoReply: freebsd-questions Digest, Vol 246, Issue 39
# idiot autoresponder on freebsd lists, 1/21/2009 :0 * ^From:.*supp...@aebc.com /dev/null -- 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: programs...
On Thu, Jan 08, 2009 at 11:03:29PM -0800, Gary Kline wrote: > > Guys, > > I've going to give away what I think could be at least a > multi-thousand dollar idea, something we nearly have already. > And a wish-list for a program that does not, AFAIK, exist. Its called iTunes. > First, the wish-for:: given all the kinds of video and audio > programs that are now on the web, how difficult would it be > to have a GUI [interface] program pop up a screen with date of > airing, and/or date of podcast? Not to exceed several hours > worth of recorded podcasts... or live recording. iTunes will suck them down and has settings for when (if ever) to delete old podcasts. > I can only give examples of thing I watch, but this will give > you some idea. And bear in mind that at least FreeBSD cannot > capture some programs. Like "FRONTLINE" on PBS. > > But for the sake of argument, let's say that firefox or > whatever browser or kmplayer or another player did have the > proper codecs. > > This GUI app would find, fetch, and store in /usr/local/tmp > FRONTLINE, NOVA, "In Our Time" and "Everyday Ethics" [BBC], > and "Marketplace", Weekend, 10jan09. iTunes stores in ~/Music/iTunes/iTunes Music/Podcasts/ > When these programs were safely in /usr/local/tmp/Pods, the > program would send mail or otherwise inform the user. Script from cron to detect presence of a new file in the above, send notification. There are FreeBSD ports for subscribing to podcasts that could do the same thing. > How doable is this...? and, yes, i know that many of these > audio files can be subscribed to as podcasts. I have several > on my Google page. Get A Mac! -- 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: Tool for traffic measure?
On Jan 2, 2009, at 11:21 PM, Sdävtaker wrote: Hello, I got a subnet with 5 machines and a cablemodem who provides 5 public ips All is conected to a switch. One of the machines is not ours and we want to check it is not abuseing our internet link, so we want to know if there is any way to monitor bandwich usage from one of the other machines in the subnet with no need to modify the foreing machine config. Something like use tcpdump in promiscuos mode or something like that, we doesnt matter the content, we just need a bandwich conssumption meassure. Thanks for any ideas. Buy a smarter switch and do the traffic counts in the switch. As things stand the switch is isolating all 5 machines from each other, none hear what the others have to say to the cable modem, so there is no way you can sniff the other's traffic. If instead of a switch you had a dumb hub then all machines would hear what all the other machines were saying to each other and the cable modem. Is very hard to buy a dumb hub these days. Is easier to buy a smarter switch. A configurable smart switch can deliver the questionable machine's traffic to both the cable modem and to one of your machines but there is no point unless you want/need to see the contents of the packets. A switch that smart should also be able to count packets and tally total byte counts. If I understand correctly that is all you want. -- 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: well, blew it... sed or perl q again.
On Tue, Dec 30, 2008 at 12:51:31PM -0800, Gary Kline wrote: > On Tue, Dec 30, 2008 at 09:16:23PM +0100, Roland Smith wrote: > > On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: > > > The problem is that there are many, _many_ embedded > > > "http://whatever> Site in my hundreds, or > > > thousands, or files. I only want to delete the > > > "http://" lines, _not_ the other Href links. > > > > > > Which would be best to use, given that a backup is critical? > > > sed or perl? > > > > IMHO, perl with the -i option to do in-place editing with backups. You > > could also use the -p option to loop over files. See perlrun(1). > > > > Roland > > > All right, then is this the right syntax. In other words, do > I need the double quotes to match the "http:" string? > > perl -pi.bak -e 'print unless "/m/http:/" || eof; close ARGV if eof' * In years past I used fetch(1) to download the day's page from a comic strip site, awk to extract the URL of the day's comic strip, and fetch again to put a copy of the comic strip in my archive. This application sounds similar. -- 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: DVD cloning tool
On Fri, Dec 05, 2008 at 08:45:52PM +0100, Wojciech Puchar wrote: > > > >Agree that dd is good for simple CDs and DVDs but can't say that I know > >it will behave on multi-session or multi-format discs. > > the question was about DVD. dvd are not produced multisession or > multiformat. The above is contradicted below. *These* DVDs in question are known not multi-session? > and when copying multisession data DVD, it's much better to copy off > all files, possible add more and write as single session. Depends on what your homework assignment is. In the data center I was talking about one could make a good argument that the duplicate was to be multi-session if the original was. We don't know for sure it doesn't contain a presentation application or something counting on the multiple sessions. > actually it's rarely used. i never recorded even one multisession DVD > except once to test if it works :) On DVD-R it works badly, can only write 4 or 5 sessions and there is some huge buffer zone between each session, 200 to 500 MB. > with CD - you are right, but it was already told that readcd is OK. > > unfortunately AFAIK there is no similar tool for DVDs Thought readcd (out of cdrtools) also knew how to read DVD? -- David Kelly N4HHE, [EMAIL PROTECTED] 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 "[EMAIL PROTECTED]"
Re: DVD cloning tool
On Fri, Dec 05, 2008 at 05:18:01PM +0100, Wojciech Puchar wrote: > > > >Thanks, dd is a good suggestion for ISO data. But what I need > > once again please do > man dd > > dd reads sector by sector. > > it won't work only for audio-sectors on CD , on DVD movies are stored > using "normal" 2K sectors Agree that dd is good for simple CDs and DVDs but can't say that I know it will behave on multi-session or multi-format discs. In years past there was an issue where some drives would return EOF with the last sector and others would wait until attempt to read past the last sector yet would return data. So with multiple generations of copy each generation got one block longer. Know this because 10 years ago working in a data warehouse I easily won the argument against using Windows to duplicate/distribute data on CD for lack of a disc verify utility. These days the Disk Utility in MacOS X automatically verifies. But back then under FreeBSD I used dd and handled EOF specially in my shell script. -- David Kelly N4HHE, [EMAIL PROTECTED] 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 "[EMAIL PROTECTED]"
Re: Regarding beer and optimal hacker productivity
On Mon, Nov 24, 2008 at 04:39:11PM -0500, Bill Moran wrote: > In response to APseudoUtopia <[EMAIL PROTECTED]>: > > > On Mon, Nov 24, 2008 at 2:03 PM, Bill Moran <[EMAIL PROTECTED]> wrote: > > > > > > I'm putting together a business case for beer at work ;) > > > > http://xkcd.com/323/ > > Damn ... I thought it was something more realistic looking ... There is hope yet. The Oracle of Undisputed Fact and Wisdom :-) http://en.wikipedia.org/wiki/Xkcd#Life_imitates_xkcd, says life often imitates xkcd. -- David Kelly N4HHE, [EMAIL PROTECTED] 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 "[EMAIL PROTECTED]"
Re: [OT] printing question
On Tue, Nov 18, 2008 at 07:51:47PM +0100, Roland Smith wrote: > On Tue, Nov 18, 2008 at 10:49:44AM -0600, Andrew Gould wrote: > > Time to buy a new printer. I don't print much from FreeBSD; but the > > need occasionally arises. Most of my printing is done while using > > Mac OS X. The Epson Artisan 800 is looking awfully nice; but it's > > not in the Linux printing database yet > > (http://openprinting.org/printer_list.cgi). > > > > Question: Since Mac OS X uses CUPS, if I share the printer on the > > Mac, will I need to worry about FreeBSD compatibility of the > > printer? I only need printing functions (not scan, etc) for the > > FreeBSD computer. > > I'm not sure that apple uses a non-modified CUPS. It is conceivable > that they have incorporated extra (not open) drivers that aren't in > the standard distribution. MacOS X will share a printer with Windows. I don't know how the driver thing is negotiated. The Mac may happily accept Postscript and then do whatever is needed to print. > If you want to be safe, buy a printer that understands PostScript. > That will work on FreeBSD (and all other UNIX variants). Sounds like the OP is looking for color. If B&W is enough my favorite inexpensive printer is the Brother HL-5250DN. Speaks Postscript-clone, PCL-5 and PCL-6. Direct network connection so each computer speaks directly to the printer. Duplex. About 25 ppm. Third party toner reloads cost about $25 for 5,000 pages. The printer sells for $150 to $250 depending on sales and whether you can find a refurbished unit. Years ago I had access to an HP 5000N that would print photo quality matte (not glossy) B&W on plain paper. Not quite sure what it is about the Brother (or printer drivers because this was pre-MacOS X) but I enjoyed wonderful cheap B&W prints off the HP but the Brother isn't nearly as good. Text and line graphics are excellent. -- David Kelly N4HHE, [EMAIL PROTECTED] 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 "[EMAIL PROTECTED]"