Re: periodic.conf quieter
On Wed, Jun 13, 2007 at 10:51:06AM -0500, Richard Lynch wrote: Thanks to the fine folks here, I've gotten periodic.conf to only output messages I need to know, *except* for this one: Security check: (output mailed separately) I've looked through /et/defaults/periodic.conf, Google a fair amount, and am still coming up empty with a setting to suppress that one... I'm probably just being stupid (again) but what am I missing? On Wed, June 13, 2007 11:38 am, Brian A. Seklecki wrote: # 450.status-security daily_status_security_enable=YES # Security check ...probably no. On Wed, June 13, 2007 4:28 pm, Kelvin Woods wrote: You could always re-direct the output to a file... daily_status_security_output=/var/log/security.log [coming back after a suitable wait for a response, I hope...] My goal is not to stop paying attention to security issues, nor to log them into a file I'll forget to ever check... :-) My goal is to get FreeBSD to shut up unless I need to know something. But do email me when I need to know something. Right now, it's like a little kid telling me every time he went to pee or something... :-v I'm trying the inline setting to yes for the security, so at least I'll only get one pointless email per day instead of two, but I'd really appreciate any insight from anybody who shares similar goals. TIA -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash
On Sun, July 1, 2007 2:25 pm, kalin mintchev wrote: and which port do i exactly install to be able to whach flash video? i did the /usr/ports/www/flashplugin-mozilla - didn't work. the other one is marked as broken... now that cnn moved to that i can't watch it anymore and i have never been able to see any of the videos on youtube what do i need? Need is relative, but personally, I stopped installing Flash even operating systems where it actually sort of works, albeit sucking down CPU and RAM like there's no tomorrow, and crashing on a semi-regular basis... I found my surfing experience vastly improved without Flash. Formerly dog-slow sites are much faster. And there isn't any content I've felt deprived to not get. Obviously, folks who spend their free time (or work-time :-)) watching youtube would feel differently, but... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
periodic.conf quieter
Thanks to the fine folks here, I've gotten periodic.conf to only output messages I need to know, *except* for this one: Security check: (output mailed separately) I've looked through /et/defaults/periodic.conf, Google a fair amount, and am still coming up empty with a setting to suppress that one... I'm probably just being stupid (again) but what am I missing? -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD6: php.ini not find in phpinfo
On Sun, June 10, 2007 7:49 pm, James liu wrote: i use ports to default setup... web£ºlighttpd php: php5+php5-extensions cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini restart lighttpd and phpinfo don't know php.ini. now i wanna config php moudel, but if no php.ini, i will do nothing. anyone know how to let phpinfo find php.ini? phpinfo() output includes the directory name where it is looking for php.ini Put your php.ini file there. You can also, in Apache2 and more recent versions of php, add a configure directive to Apahce that tells PHP where to look for php.ini. It is named something like PHPIniDir, I believe. http://apache.org Note that PHP running as an Apache module reads the php.ini file only once, when Apache STARTS UP. You *must* re-start Apache to get your new or changed php.ini file to be re-read. If you are running as CGI, PHP is re-started on each page hit, and reads php.ini at that time. If you are running as FCGI, re-start the FCGI process should do it, I would think, but never investigated... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /var/preserve
On Fri, June 8, 2007 2:10 am, Jonathan McKeown wrote: On Thursday 07 June 2007 20:26, Richard Lynch wrote: Or some way to get periodic to only tell me stuff I *need* to know, instead of telling me every time it cleans the damn toilet. Have you looked at the manpage for periodic.conf(5)? As an example, daily_show_success=NO daily_show_info=NO in /etc/periodic.conf will cut the daily messages down to only what periodic(8) thinks you *have* to know - likewise for weekly and monthly. D'oh! Sorry. No excuse. Actually, I mistakenly tried 'man periodic' in the wrong shell window, on a Linux box, and gotten nowhere, but that's still no excuse, really... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
/var/preserve
So, I found it in 'man hier' as for historical reasons but just what is /var/preserve and why is it getting cleaned out every day and why am I getting yet another line in a too-long email about it?... I'm also looking at doing something like this: http://www.oreilly.com/pub/h/5238 but wondering if there's something more official in ports that's the same idea? Or some way to get periodic to only tell me stuff I *need* to know, instead of telling me every time it cleans the damn toilet. Please cc: me as well -- I'm not really a regular reader... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: defrag
On Thu, March 1, 2007 3:35 pm, Ivan Voras wrote: Steve Franks wrote: How come I never hear defrag come up as a topic, and can't find anything related to defrag in the ports tree? Is it really not an issue on UFS? Can someone point me to an explantion if so? I've been told that most modern file systems have much better allocation routines and/or automated defragmentation as needed. So that the need to do defrag is essentially almost 0 for almost all users. No promises that this answer is correct, but it sure sounded good to me. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: READ_DMA48 error interpretation
[I've tried to snip away a lot of stuff, without losing any context...] On Tue, February 6, 2007 2:50 am, Ian Smith wrote: In freebsd-questions Digest, Vol 164, Issue 1 At Message: 19 On Mon, 5 Feb 2007 01:13:31 -0600 (CST) Richard Lynch [EMAIL PROTECTED] wrote: On Tue, January 16, 2007 3:21 pm, Chuck Swiger wrote: On Jan 16, 2007, at 1:13 PM, Richard Lynch wrote: ... +ad1: TIMEOUT - READ_DMA48 retrying (1 retry left) LBA=404955007 +ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=404955007 +g_vfs_done():ad1s1[READ(offset=207336931328, length=16384)]error = 5 Try installing the sysutils/smartmontools port and run a drive self- I ran the short test on the problem drives, and it said everything was fine. I'll try the long test at a later date. Show us the result of 'smartctl -a drive' after a test or two. #2. Sequences like this show up a fair amount: Device: /dev/ad2, SMART Prefailure Attribute: 3 Spin_Up_Time changed from 152 to 153 Device: /dev/ad2, SMART Prefailure Attribute: 3 Spin_Up_Time changed from 153 to 152 Device: /dev/ad0, SMART Prefailure Attribute: 8 Seek_Time_Performance changed from 251 to 250 It'd be more useful to see these within the context shown by smartctl -a Whoops! I did miss that step, didn't I? Sorry! Here are all the smartctl -a outputs: http://l-i-e.com/ad0.txt http://l-i-e.com/ad1.txt http://l-i-e.com/ad2.txt http://l-i-e.com/ad3.txt ad3 is giving the most errors... ad1 gives a fair amount though And the ad0 and ad2 seem to be giving the spinup errors. ad0 is pretty much full ad1 is the one I'm filling up currently ad2 and ad3 have no actual content on them yet, but will soon All the drives are kind of in an old PC tower (XT? AT???), except the outer casing is, errr, not there... Just the framework. ad2 and ad3 are in one of these Thermaltake iCage things: http://www.performance-pcs.com/catalog/index.php?main_page=product_infocPath=257products_id=3533 which converts the old-school floppy drive[s] bay into an IDE bay, and puts a big honking fan blowing on them. I'm not claiming it's good enough but I tried. I left the iCage bay between them empty for airflow/cooling. ad0 and ad1 are in the usual IDE bay of a tower. I have a fan in there, but without the cover to shape the airflow, perhaps that is not doing much useful... I can touch the exposed front and back top (above IDE cable) and lay my finger along it. It's hot but not like, ouch hot :-) I don't think it's 100C+ hot, as that's boiling -- but perhaps the thermometer is somewhere inside or... Seems more likely, though, that that number is Fahrenheit (sp?) and not Celcius.. I didn't even realize it said C, and thought it was F... Still seemed pretty dang hot to me. I could haul in the outer casing and slap it on though, if needed. I think. That big ol' fan might make that kinda hard. Oh well. I've got tin-snips somewhere around here... :-v Oh, here's a rather long excerpt of the log in case there's minutae within it that I've failed to include: http://l-i-e.com/smartd.log The output of smartctl -a for one or two of your drives would likely be much more indicative. I don't claim to be an expert in this at all, but some of us might spot any obvious anomalies. I sure appreciate the time y'all are taking on this! I am definitely not a hardware guy, as you have probably already surmised. :-) -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
port: security/denyhosts
I thought the security/denyhosts port looked good, even if just to slim down that report I get every day about the hundreds of SSH attempts... And, hey, reporting back to denyhosts HQ and letting them notify the sysadmins of hacked boxen is a lot better than me doing it by hand. Only problem is, I'm stuck at Step 1: cd /usr/ports/security/denyhosts [EMAIL PROTECTED] make clean === Cleaning for python-2.4.1_3 === Cleaning for denyhosts-2.6 [EMAIL PROTECTED] make === Vulnerability check disabled, database not found === Extracting for denyhosts-2.6 = Checksum OK for DenyHosts-2.6.tar.gz. === Patching for denyhosts-2.6 === Applying FreeBSD patches for denyhosts-2.6 -e:No such file or directory *** Error code 1 Stop in /usr/ports/security/denyhosts. I thought maybe I was missing Python, but I went and installed that, and it's in pkg_info Actually, I should also point out that I had to do portsnap fetch and portsnap extract just to get security/denyhosts to show up... Maybe I wasn't supposed to do that?... Or is there another package it relies on that I'm missing? I tried reading the Makefile and there's a PYDISTUTILS requirement... Couldn't find anything obvious with 'locate' and variations on that theme, nor with ports make search key=pydistutils I also tried looking at the work/DenyHosts-2.6/daemon-control-dist.* files, as a second attempt to make (without a make clean) complained: === Applying FreeBSD patches for denyhosts-2.6 Ignoring previously applied (or reversed) patch. 1 out of 1 hunks ignored--saving rejects to daemon-control-dist.rej = Patch patch-daemon-control-dist failed to apply cleanly. *** Error code 1 But make clean fixed that, so it's probably a red herring. Nothing in the files I looked at seemed horribly wrong, but I can't claim to know what should be there in the first place. I've Googled some for this, but mostly find tutorials the seem to think the make is just gonna work. I guess I could just compile from source, but I do prefer to use ports whenever possible. So is this port just borked, or is it just me, or...? -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: iTunes - once again.
On Sun, February 4, 2007 2:47 pm, Chris wrote: Heya folks - Every 6 months (sometimes longer) I ask about either a port, or a Wine config that allows the playing of iTune-purchased music. Last I seen, Banshee comes close (Under Linux) and of course I opted to give Wine a shot. I could settle for Wine *IF* there is/was a version of iTunes that some has gotten to work - no need pointing me to the WineHQ site. The docs for versions of iTunes is lacking (and of course, I'm being kind). So - if anyone has gotten iTunes files to work (Please, I don't want to go through the madness of converting 7 DVD's into MP3 format), let me know. With a little luck, someone has gotten this done without hours of kludging. Call me silly, but it seems to me you ought to be lobbying Apple for Linux support. Get a decent Apple-made Linux player, and FreeBSD support via the linux emulator would *probably* work, no? While I feel your pain about converting to MP3, having your music held hostage and restricting your pre-existing legal rights of use seems like a pretty good motivator... A junk box out of the closet running flat-out to do the conversion of AAC to MP3 wouldn't take that long, even for 7 DVD worth, I shouldn't think... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: swap file vs swap partition
On Sun, February 4, 2007 3:53 pm, Aloha Guy wrote: Thanks for the input. You do have good points. The only issue with swap partitions is that it seems like you need to increase it everytime you increase the physical memory. Is there a swap partition size limit that pretty much will handle anything and setting a number larger than that will really not offer anything? What you *might* consider doing: A swap partition the size of *ONE* RAM chip. A swap file the size of all your RAM chips. If you are having kernel panics, you can pull out RAM and then get your kernel dump, I would presume. This is a made-up answer from a guy who has no idea what he's talking about, really... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how do i find libphp4.so??
On Sun, February 4, 2007 12:45 am, Gary Kline wrote: This is getting sranger and strangr. (BTW, I'll check the pkg-plist files; I forgot that; thanks.) On my ThinkPad, I have cloned my web files and php works. There is a different apache/httpd.conf file on my laptop, but only slightly: it lacks my many vitural websites. zen.thought.org has the same php4.* ports as on my real webserver. Fewer, in fact. On zen, the libphp4.so was (by default, obviously) commented. On my webserver, I had uncommented it. This is the only diffrence I can think of that makes any sense. On zen, my php pages display. Here (ns1.thought.org) I get the Firefox does not know etc, and asks if it should save the page. I'm utterly, completely stumped. Ideas? First, is libphp4.so in that directory or not? If not, install the PHP 4 port and it will be. Next, if you managed to screw up httpd.conf so that it doesn't know that .php files are supposed to be run through PHP, then you'll get the message you are seeing. So check your httpd.conf settings carefully. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: READ_DMA48 error interpretation
On Tue, January 16, 2007 3:21 pm, Chuck Swiger wrote: On Jan 16, 2007, at 1:13 PM, Richard Lynch wrote: I know the messages below mean the hard drive or IDE cards are having problems. But is this like RED ALERT or more like YELLOW or what? ... +ad1: TIMEOUT - READ_DMA48 retrying (1 retry left) LBA=404955007 +ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=404955007 +g_vfs_done():ad1s1[READ(offset=207336931328, length=16384)]error = 5 If you have current backups, it's a yellow alert. Otherwise... And what do I do about it? umount and fsck everything a lot? swap cards/drives around until it stops? Ignore it and pray? Try installing the sysutils/smartmontools port and run a drive self- test. That will give you a much better assessment of the state of the drive and whether it is likely to completely fail in the next 24 hours... I ran the short test on the problem drives, and it said everything was fine. I'll try the long test at a later date. Meanwhile, I turned on the smartd daemon, and am seeing two issues in the logs... #1. The drive temperatures seem ridiculously high to this naive reader, but what do I know?... 110 to 190 Celcius? Yikes... Or maybe that's normal? How hot is too hot? #2. Sequences like this show up a fair amount: Device: /dev/ad2, SMART Prefailure Attribute: 3 Spin_Up_Time changed from 152 to 153 Device: /dev/ad2, SMART Prefailure Attribute: 3 Spin_Up_Time changed from 153 to 152 Device: /dev/ad0, SMART Prefailure Attribute: 8 Seek_Time_Performance changed from 251 to 250 So is the real problem just that the drives are spun down and can't spin up fast enough? I can probably live with the consequences of that, and just go on with life -- The occasional HTTP request for an audio file will fail the first time, and they have to hit reload. This box is the fail-safe roll-over server for audio files that are all up online somewhere else managed by a professional (not me), so it's no surprise that the rare time-out on the real server also ends up with a drive spin up and failed request on the backup. Kind of annoying, I guess, to an end user, but forcing the drives to always be spinning is probably not a Good Idea. Oh, here's a rather long excerpt of the log in case there's minutae within it that I've failed to include: http://l-i-e.com/smartd.log Any help in interpreting these results is most appreciated! THANKS!!! -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Loosing Ethernet Connectivity
Sounds like flaky/cheap network card to me... [But I'm no expert] Perhaps, however, just doing a cron job every day to do the ifconfig down/up would be a simple work-around. On Sun, January 21, 2007 9:12 pm, David Schulz wrote: Hello all, every once in a while i have a machine (6.1) that out of the blue, sometimes after days, some after 6 months, looses Ethernet Connectivity. My Machines just run some Service, and have no Keyboard / Mouse or Monitor. When the Machine goes down, eg, i am unable to ping it from another Machine on the Network, even restarting the machine using reboot will not fix the Problem. The only way to fix it is to login as root, and issue a ifconfig vr0 down ifconfig vr0 up. Then a dmesg Message appears : vr0: Using force reset command., and after that i can successfully ping the machine again. I have had this Problem on different machines with different Network Cards, on different Ethernet Cables, and with FreeBSD Versions 5.5 until 6.1. Can anyone please help me to understand and possibly even fix this Problem? Thanks a lot, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
READ_DMA48 error interpretation
I know the messages below mean the hard drive or IDE cards are having problems. But is this like RED ALERT or more like YELLOW or what? And what do I do about it? umount and fsck everything a lot? swap cards/drives around until it stops? Ignore it and pray? All the content is already copied to a second box, plus on CD, and none of it is crucial data, so if I lose a LITTLE data by ignoring this, I'm okay. If the whole thing wipes out, that would be bad. These drives are often spun down, as they are not accessed very often -- it's the roll-over fall-back audio server in a cobbled-together system I won't describe, as you'll just laugh at me. :-) Is it possible that these are just from the drives spinning up too slowly? +ad1: TIMEOUT - READ_DMA48 retrying (1 retry left) LBA=404955007 +ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=404955007 +g_vfs_done():ad1s1[READ(offset=207336931328, length=16384)]error = 5 +ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=106507715 +ad1: TIMEOUT - READ_DMA48 retrying (1 retry left) LBA=324791875 +ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=324791875 +g_vfs_done():ad1s1[READ(offset=166293407744, length=2048)]error = 5 +ad1: TIMEOUT - READ_DMA48 retrying (1 retry left) LBA=325168415 +ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=325168415 +g_vfs_done():ad1s1[READ(offset=166486196224, length=16384)]error = 5 +ad1: TIMEOUT - READ_DMA48 retrying (1 retry left) LBA=400062279 +ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=400062279 +g_vfs_done():ad1s1[READ(offset=204831854592, length=4096)]error = 5 +ad1: TIMEOUT - READ_DMA48 retrying (1 retry left) LBA=387991903 +ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=387991903 +g_vfs_done():ad1s1[READ(offset=198651822080, length=16384)]error = 5 +ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CD Drive locked during install, can't commit
On Thu, January 4, 2007 1:42 am, Beech Rintoul wrote: On Wednesday 03 January 2007 22:20, Richard Lynch wrote: Due to some hardware issues (not really relevant here) I've re-installed FreeBSD about 6 times in the last couple days. On one of those occasions, I managed to go through a sequence not unlike this: 1. Standard fdisk/label stuff. 2. Custom install of base, kernel, ports tree (only) 3. Choose some packages, swap disks 12 around, lotsa fun. 4. Choose to go back to tweak install at the end. 5. I think I *may* have gone back through the Custom kernel bit, to add the man pages or something... 6. Commit installation. At this point, however, Disk#2 was in the drive, not disk #1. Alas, it kept trying to find base, man, dict, ports on /dev/acd0. It wasn't there, because those are on Disk#1, not #2. I've been bit by something similar during install. There is no question that the installer could use some work. What I do now is just install the base system, boot then pull everything else in with a network install. Saves time and frustration from swapping disks. Usually the ports need upgrading anyway, so the install disks are just a starting point. Sometimes, a network install for the initial bulk load of software is not an option... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Installer vs RedHat Linux Fedora Core Installer?
On Thu, January 4, 2007 12:56 pm, Peter aka SweetPete wrote: I think that more specifically, I would like and lots of users in the *nix community probably would not mind, if sysinstall could handle installing to a partially used HDD. Can sysinstall do that? *naive looks* I have heard o' wondrous a' tale about (h which was it Ubuntu or Xandros/theWindowsyLinux?) Linux installers that can shrink unused space of a current partition, and then go along its merry way and install to the other part of a HDD. So I guess my [I want what HE HAS..] question is - if I have Linux Fedora Core on my HDD which is using one huge single partition, what do I do so that I can install FreeBSD to the rest of the disk?? I miss FreeBSD. Put it this way: If I can stumble my way through shrinking MS Windows and getting FreeBSD to dual-boot on a laptop, you oughta be able to get Linux and FreeBSD on the same box. :-) System Rescue CD with the run_qparted is the starting point to shrink the Linux partition. BE PATIENT!!! When the qparted program is shrinking the disk, it *LOOKS* like it locked up. It did not. Step away from the computer. Step away from the computer. Go have lunch or something. Grueling details here: http://phpbootcamp.com/articles/inspiron700m.htm Of course, I have yet to track down the links I was thinking of when I wrote that, so there are lots of go here links that aren't links yet... Maybe some day RSN... :-v -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Clutz-Proof Logging
On Thu, January 4, 2007 10:46 am, Stan Halprin wrote: What is a snapshot? I could just make a backup copy of it, which is what I was thinking of doing, and revert if necessary. Of course, that supposes I remember to do that :/ I was hoping for some program smarter than me. Jumping into the middle of a thread, possibly to disastrous effect... Perhaps you should be using subversion or CVS to keep version control of your document? Far as I can tell from what's being said. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RAM + net = busdma dflt_lock crash
PS I found the Release Notes for 6.1 with this being a known issue that was FIXED: http://people.freebsd.org/~bmah/relnotes/6.1-RELEASE/relnotes-i386.html Doesn't seem fixed here... I'm happy to help debug, alter C code, and run trials, etc... Or perhaps I've just been really stupid and missed some subtle configuration secret trick to make the fix take effect? Sorry I left this bit out in the original post! -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RAM + net = busdma dflt_lock crash
Hello again! I am having an issue with FreeBSD 6.1 on a laptop, a Dell Inspiron 700m. You may remember me from Autumn of 2004 trying this with 5.2.1 and having troubles... Or not. Anyway, I was told that 6.x was working on this hardware, and I tried it, and it was great! Until I put in the 2nd Gig RAM card. :-( That consistently yields: busdma dflt_lock and a forced reboot. I can take out the RAM card, and life is good. I can put in the RAM card, and leave the network cable unplugged, and life is good. I've run memtest for 9+ hours and 7 Passes with 0 errors, with the 2nd RAM card, so it's almost-for-sure not the RAM itself, right? I can put in the 2nd RAM card, leave the network cable unplugged, and run for awhile. Then I plug in the network cable, the bfe device tries to come up, and BaM!: dusdma dflt_lock forced reboot crash I can do all the above several times over, with the exact same results. I've re-installed FreeBSD, just in case, with a pretty minimal install: base, man, ports dir, and the other required bit I cannot recall now... kernel? I did not do anything funky like SMP or anything. I did use Custom install, as I'm a custom a la carte kind of guy... I've got a vmcore.0 dumpdev/savecore output file, all 2 GIG of it, or you can get the .gz version, which is only 150M, if you want to gunzip it: http://acousticdemo.com/inspiron700m/ I'm also posting any high-level results here for others to be able to use FreeBSD 6.2 on this hardware: http://phpbootcamp.com/articles/inspiron700m2.htm [Note different servers, as the 2 Gig file would not fit on the one, but I didn't want to move the old article...] I'd sure appreciate any help on getting both the 2nd GIG of RAM and the network at the same time, rather than having to choose. :-) Failing that, since I do boot into Windows occasionally for browser testing or Windows-specific software... Is there some easy way of convincing FreeBSD to just completely ignore that second RAM chip, even thought it's in the box? I'm sure I could survive with only 1 G of RAM when I boot into BSD, at least in the short term. Actually, I guess I could survive with only 1 G across the board, but I paid big money (for me) for that second Gig... TIA!!! -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CD Drive locked during install, can't commit
Due to some hardware issues (not really relevant here) I've re-installed FreeBSD about 6 times in the last couple days. On one of those occasions, I managed to go through a sequence not unlike this: 1. Standard fdisk/label stuff. 2. Custom install of base, kernel, ports tree (only) 3. Choose some packages, swap disks 12 around, lotsa fun. 4. Choose to go back to tweak install at the end. 5. I think I *may* have gone back through the Custom kernel bit, to add the man pages or something... 6. Commit installation. At this point, however, Disk#2 was in the drive, not disk #1. Alas, it kept trying to find base, man, dict, ports on /dev/acd0. It wasn't there, because those are on Disk#1, not #2. My laptop eject button would NOT work. The installer wasn't letting me swap CDs like it does for the Packages, because it assumed I had Disk#1 in there, I guess, as one generally does the base/kernel stuff and commits before swapping around the disks for Packages. There does not seem to be the standard paperclip hole manual eject on the CD drive on this laptop. :-( I tried going through some more packages, picking some that seemed like they'd be on Disk #1, so I could be prompted to swap disks, and end up with #1 in the drive, so then I could commit and it would just work. Alas, I kept picking stuff that was on disk #2, and then chose something that ended up requiring a bunch of gnome stuff, which I didn't really want. I think it was 'fileroller' that did that? Not that I have anything against gnome, as I use it on another box, but I felt like playing with KDE on this box for now. Anyway, I just gave up at that point. So I had to power down and start all over, as it seemed like it would be easier than continuing down the path I was on. This was not the end of the world for me, as I had re-done the install about 4 times anyway, and planned at least 1 more to try different things to work through my hardware issue. But it could sure be frustrating to anybody else who tries this same sequence... Any chance the base/kernel/man/port/etc installer code could also check for CD 2 versus CD 1 like the Packages installer code does?... Seems like it would be a no-brainer to this naive reader, but maybe I'm just being stupid... Or maybe only people as silly as I am to try and go back and add in the stuff from the first configure section (base, kernel, etc) get bit by this?... Still... Seems like it should not let me be that stupid. :-) Just an idea, if somebody who works on the installer code happens to read this. :-) THANKS! -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: stdout/stderr/???
Malcolm Kay wrote: On Sun, 10 Oct 2004 06:53 am, Richard Lynch wrote: I have a situation where NIC code printf's out stuff. I'd *LIKE* to collect that output. Under Linux, I'd use 21 I think (hope) you mean 21 According to man bash both should work, though one is preferred. Both work fine *EXCEPT* that I have to pull the plug, and the file never gets save/written/whatever. I am using bash, specifically so I *CAN* do re-directs, but would be happy to use *ANY* shell if I could just get what I want. Can't see why it should work differently for 'ifconfig' unless maybe this time you have the '' in the wrong place. In any case I would not expect massive amounts of output from ifconfig. It works differently because the driver goes into an infinite loop, and the file never manages to get written. Perhaps I could reduce some kind of buffer somewhere to force the flush() to the file? I can sorta get what I want by starting X-Windows, and using a terminal/shell to do the command. Then the messages I desire to log are A) suppressed from by shell (which is BAD) but B) logged into /var/log/messages (which is close enough to what I want) I don't understand what you are saying here. X-windows (of itself) should not process the commands differently. I suspect you have some fancy desktop program with options set that interfere. It's KDE. I'll be damned if I know why it's re-directing stderr to /var/log/messages and hiding it from me in the shell. I've tried poking around in the configuration of shells, but am presented with a dialog so confusing, with so many options, I can't even understand what all the choices mean. :-( All I really want is a shell just like CTRL-ALT-F#. Except it would be nice if shift-ctrl-c and shift-ctrl-v did copy/paste. I have that on one X shell on a RedHat 9 box, and it's pretty nice. All the other copy/paste options are cumbersome, at best, and frequently just plain won't cross applications boundaries. (IE, I can copy/paste from shell to shell, but not shell to browser. Grr) Alas, the real problem comes when my driver code sends the machine into an infinite loop, spewing out messages so fast I can't even read them, and the only way out is to forcibly power-off the laptop by removing battery and power cord. What driver code? Are you trying to write your own? for what device? I am attempting to modify /usr/src/sys/dev/bfe/if_bfe.c to work with the Broadcom 4401-B0 in my laptop. The existing code is known to work for the Broadcom 4401-A1. An infinite loop while running or compiling the driver code? If when the driver code is installed and run then you are fiddling will kernel mode, and if you mess up all bets are off. bfe has been disabled in the kernel, and the kernel has been re-built/installed. cd /usr/src/sys/modules/bfe/ make; make install; kldload /boot/kernel/if_bfe.ko; ifconfig bfe0 works fine, and prints out my error messages, and I can capture them. ifconfig bfe0 192.168.2.111 generates an infinite loop spewing messages so fast I can't even *READ* them. Nothing but total power loss stops this. You have tried Cntrl-Z and Cntrl-Alt-F2 ? Ctrl-Z I have not tried. cntrl-alt-f2, hit repeatedly, will eventually catch an interrupt (or time-slice or whatever) and get me to tty2. But I can't seem to do anything useful there, as keyboard input is ignored. I could, perhaps, manage to press a key long enough to catch an interrupt/time-slice there... Upon re-boot, the additions I would expect in /var/log/messages (or the bziped older logs) do not contain the messages I need to see. I have also tried: ktrace xxx Again, for the case where the machine is not in an infinite loop, it works real nifty; But when I'm forced to chop power, I get nothing. Is there something that will: A) copy (or re-direct) all output somewhere, *AND* B) force it to be synchronous and unbuffered and whatever else has to occur to get the file to be saved? Any other suggestions for how to get this process to not lock up the machine? control-C ineffective CTRL-ALT-F2 followed by CTRL-ALT-DELETE can sometimes get me to another tty, but that tty does not accept input Are you sure? Yes, I'm quite sure. I can switch back to ctrl-alt-f1, but cannot log in. I can press ctrl-alt-f2 enough times, and eventually get switched to tty2... which is dead. The CTRL-ALT-F2 hopefully gets you a character mode tty with a login prompt. But you'll need to login to proceed. CTRL-ALT-DELETE at this stage should cause a reboot. ctrl-alt-delete does absolutely nothing, though perhaps if I held it down long enough to catch a time-slice (or interrupt or whatever) it *MIGHT* re-boot. Probably not much better than cold power loss, though, right? -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail
stdout/stderr/???
I have a situation where NIC code printf's out stuff. I'd *LIKE* to collect that output. Under Linux, I'd use 21 I read somewhere that under FreeBSD, I could do: (xxx log.out) log.err This works fine for xxx == make buildkernel If fails miserably for xxx == ifconfig, however. I can sorta get what I want by starting X-Windows, and using a terminal/shell to do the command. Then the messages I desire to log are A) suppressed from by shell (which is BAD) but B) logged into /var/log/messages (which is close enough to what I want) Alas, the real problem comes when my driver code sends the machine into an infinite loop, spewing out messages so fast I can't even read them, and the only way out is to forcibly power-off the laptop by removing battery and power cord. Upon re-boot, the additions I would expect in /var/log/messages (or the bziped older logs) do not contain the messages I need to see. I have also tried: ktrace xxx Again, for the case where the machine is not in an infinite loop, it works real nifty; But when I'm forced to chop power, I get nothing. Is there something that will: A) copy (or re-direct) all output somewhere, *AND* B) force it to be synchronous and unbuffered and whatever else has to occur to get the file to be saved? Any other suggestions for how to get this process to not lock up the machine? control-C ineffective CTRL-ALT-F2 followed by CTRL-ALT-DELETE can sometimes get me to another tty, but that tty does not accept input H. Perhaps I should try to cron a killall ifconfig for shortly after the command I'm about to type... Or something like: ifconfig ...; sleep 3; killall ifconfig Any other ideas? Please cc me, I'm so far behind on reading -questions that I've unsubscribed until I catch up... -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: phpwiki
Alan Curtis wrote: 7. followed the instructions at http://phpwiki.sourceforge.net/phpwiki/FrequentlyAskedQuestions and added foreach ($_REQUEST as $k = $v) $$k = $v; At this point, you might as well use .htaccess to turn register_globals back ON for phpwiki, since you have effectively un-done the security of turning register_globals OFF for this application... Or fix the Wiki to *NOT* rely on register_globals in the first place. You can find more info about this issue by searching on http://php.net for register_globals -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disk quotas
John Oxley wrote: has gallery setup on his webpage and the albums directory is chmod 707'd so that httpd can write to it. Does that user realize that everybody else on the server can use PHP to write web content to that directory?... Perhaps if a defacement example were demonstrated, he'd move those files out of his web directory, and add in some PHP scripts to read/write the image files with validation-checking, such as using http://php.net/getimagesize to make sure the image file *IS* an image file. The problem is that httpd creates files as http:group and quota is not picking up that he is using more disk space than we want him to. One possibility, if you are running Apache 2.0, is to set each PHP user on a directory by directory basis in httpd.conf Or so I've been told. Never done it yet. It cannot (readily) be done in Apache 1.x -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Backup/Restore
Brian McCann wrote: Hi all...I'm having a conceptual problem I can't get around and was hoping someone can change my focus here. I've been backing up roughly 6-8 million small files (roughly 2-4k each) using dump, but restores take forever due to the huge number of files and directories. Luckily, I haven't had to restore for an emergency yet...but if I need to, I'm kinda stuck. I've looked at distributed file systems like CODA, but the number of files I have to deal with will make it choke. Can anyone offer any suggestions? I've pondered running rsync, but am very worried about how long that will take... Do the files change a lot, or is it more like a few files added/changed every day, and the bulk don't change? If it's the latter, you could maybe get best performance from something like Subversion (a CVS derivative). Though I suspect rsync would also do well in that case. If a ton of those files are changing all the time, try doing a test on creating a tarball and then backing up the tarball. That may be a simple managable solution. There are probably other more complex solutions of which I am ignorant :-) -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is there a reverse Network Address Translation???
Mark Jayson Alvarez wrote: Hi, I wan't to access my pc at work from home through freebsd's sshd. Is it possible?, knowing that it doesn't have a public ip address? That workstation of mine is only gaining internet access through LAN servers and routers. Will it help if I know the gateway ip where my workstation passes through and the proxy as well as dns server's ip's? I know its possible but I can't imagine the process, perhaps something like a reverse network address translation... Any idea? I think you would need to have the public IP LAN server/router ready, willing, and able to port-forward SSH packets to your personal workstation. Your work IT Administrator may, or may not, be willing to set this up for you. If *YOU* control the public-IP LAN gear at work, you need to set them up to port-forward anything on some port that the public-IP LAN gear isn't using to your desktop workstation. You'd think that SSH needs port 22, but if that's already in use, you can: 1. Configure the public-IP to accept/forward port 222 (or whatever) to your desktop workstation. 2. Configure sshd on the desktop workstation to accept traffic on 222 and use sshd to handle that traffic. 3. Use ssh -p 222 [EMAIL PROTECTED] at home to log in to the desktop at work. The PUBLIC IP box gets the connection on 222, forwards it to your desktop, and you're in like Flynn. If the PUBLIC IP is dynamic (IE, cable modem, DSL, etc) you can also set up software to create a valid domain name for it using something like: http://dyndns.org or one of a few dozen other similar services. In that case, you'd install a small client on the PUBLIC IP box which will notify the DynDNS folks whenever your IP changes, then they update the DNS routing tables for you, and Whammo! you don't really care that your IP is dynamic because they tied a domain name to it for you. If you can't alter the PUBLIC IP LAN gear at work, then I don't think you can manage to ssh in to your desktop box. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: process will not die.
Jason Barnes wrote: While running an mpirun job on my dual-processor SMP system (FreeBSD 4-STABLE from August 28), my program (initiated with the command line 'mpirun -np 2 ../sphagr') periodically dies, leaving a process that I can't kill -9. Here's the top: The 550 process I kill -9ed, but its still there, and now when I try to kill it it says 'no such process'. Is it possible that the process really is dead, but top and/or ps are out of sync a bit?... Perhaps 'killall sphagr' would find it, assuming you don't have another sphagr running already... -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: lpr error messages
Gary Schenk wrote: I cannot print from either X or the command line. It was working fine until a few hours ago. Any suggestions on where to start on this would be much appreciated. Here is an example: bash-2.05b$ lpr test.txt /usr/bin/lpr: line 12: */5: No such file or directory /usr/bin/lpr: line 15: 0: command not found /usr/bin/lpr: line 18: 1: command not found /usr/bin/lpr: line 19: 15: command not found /usr/bin/lpr: line 20: 30: command not found /usr/bin/lpr: line 25: 1,31: command not found /usr/bin/lpr: line 28: 1: command not found lptest /dev/lpt0 produces output to the printer. bash-2.05b$ grep lpd_enable /etc/rc.conf lpd_enable=YES I'm thinking that /usr/bin/lpr must be corrupted. I'm not sure how to go about testing that theory, or what to do if that is the case. I've searched the list archives and googled to no avail. The way I read this, lpr is expecting to get a PostScript file, and you are feeding it a TEST file. I'm even willing to bet that on line 12 of your text file, there is a */5, which lpr is valiantly attempting to interpret as a PostScript command. Similarly, the other lines mentioned in the error output above indicate that all the other lines in your text file start with integers such as 0, 1, 15, etc. So all you really need to do now is find some way to convert your TEXT file to a PostScript file. Or convince lpr that it should accept text files, and somehow convert them internally to PostScript. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DHCP Problems
Newton wrote: Dear Friends : I'm having problems, with a 5.21 version install. After XFree86 troubles, finally I could see KDE. All, except internet , it's OK. My system is an Atlhon 1000 (T-Bird), Soyo K7-VTA-B, 256 Mb RAM, 32 Mb Savage 4 (Savage Generic driver), Sound Blaster Live, Realtek 8139 and 56K Lucent modem (not used). This is my first experience with FreeBSD, I'm a newbie. Sincerely, Newton - Curitiba - Brazil 1. Open up a terminal/shell and type: dmesg | less Search through that for something that looks like your Realtek 8139 being correctly identified or not. 2. If it is identified, it should have some kind of name like rltk0 or rl0 or rt0 or somesuch. ls /dev should show that name existing. 3. ifconfig -a should also show that device 4. You should be able to do: sysinstall - post-install configure - network - rt0 and find a place to either set the card up as DHCP or to put in the IP address you have been assigned for that device. Hope that helps! If any of the above don't work, post back with whatever error messages you see. Oh, and if there are any lights, blinking, colored, or otherwise on the network card, describe the lights, their colors, any markings next to them, and whether they are off, on, or blinking when you post. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Backup Mail Server Questions
Nico Meijer wrote: Hey Bill, Are you saying that it's better for users not to know that their mail has been delayed? Unfortunately, yes. That is what I am saying. On a technical level, I totally disagree with myself. On a practical, day-to-day operations level I have to admit I'd rather not handle the calls. As a user who understands, to some degree, how email is delivered, and who wouldn't be calling you to fix it, I *STILL* don't want to get those stupid messages: Your email has been delayed for 4 hours... Don't do anything Here's why: A) *I* can't do anything about it -- It's up to some (probably incompetent) admin to fix their computer down the line somewhere. B) It never includes the email I sent, so I've got no clue what message it's bitching about anyway. C) If I'm not supposed to do anything, why are you bugging me? If you can manage to send me an email about the email you can't send, it's obvious that your computer isn't the broken one either. [Okay, I'm sure there's a counter-example to that, but it's not the norm.] D) 99.9% of the time, the email ends of getting where it should go anyway, just later than I had hoped. I've seen USPS take seven (7) months to deliver paper mail. I ain't gonna bitch about a few days delay in email. Now, if you could manage to track down an email address of somebody who is probably/nominally responsible for the machine that isn't working right, and you want to warn them that their machine is toast, go for it! At least then you'd be bugging the person that can actually take some action to do something useful. Probably best to bug them once per X [day|week] about their broken machines, though, since bombarding them with email won't help either. But, hey, that's just my opinion. It *WOULD* be nice also if bounced messages contained the full message -- If I have an alternate way to send it to the recipient, that's WAY more convenient than me digging through my Outbox, which may or may not even be available at the time I receive the bounce anyway. I can't count the times I've gotten a bounce and realized the reconstructing (or finding) the email would be too time-consuming and/or would take too long, but if I had the email to send out again, I could have gotten the message through in time. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NIC Driver Hacking
Since so many people gave me on -mobile and -questions gave me so much help, I'd like to *TRY* to continue working on adding support for the Broadcom 4401-B0 to FreeBSD. Here's where I came from: None of my CardBus, NIC, WiFi, etc devices were getting register memory: http://phpbootcamp.com/articles/inspiron700m/dmesg_verbose.txt All hardware worked fine under Windows. Well, as fine as anything works under Windows. :-) Here's where I am: I can use allow_unsupported_io_range and all my devices get identified and assigned what look like valid memory ranges: http://www.phpbootcamp.com/articles/inspiron700m/hw.pci.allow_unsupported_io_range/dmesg.txt Attempting to configure the NIC using ifconfig or the sysinstall GUI locks up the machine completely. So, which of the following most likely describes my current status: A) The unsupported_io_range is fine, but the driver source needs hacking B) I really haven't solved the device register memory issues -- they just *SEEM* to be okay. If it's A) I can start mucking with C code and hopefully not damage my hard drive too much in the process... If it's B) I'm still at a complete loss how to compute valid io_range... Use the Windows numbers, since they work? Use the Linux numbers, since they work? Some kind of tool/monitor to compute a base offset? If it's A) I can also start playing with the CardBus and WiFi with some hope of it working. If it's B) there's not much point in my buying a PCM/CIA WiFi card, now is there, as the Cardbus io_range ain't gonna be any good either, is it?... -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: locating origin of spammer
Joseph Koening (jWeb) wrote: I got up this morning and discovered that someone sent some spam through one of my servers. The messages were sent from the 'www' user on localhost, which is leading me to think somewhere someone has an insecure php or perl script that is allowing someone to designate the recipient, the subject, body, etc. I know the machine is not open-relay (I tested it to double check) and I checked to make sure no one had actually logged in. I grepped all of apache's log files looking for sites that received hits about the same time the mail started going out. What else can I do to find how the mail is being sent? Thanks, While this has been resolved for the original poster, for the next guy who has this problem... For PHP, one could do something like: grep mail.*\( /path/to/htdocs and find mostly all of the places somebody is using PHP's internal http://php.net/mail function. I did that soon after the formmail alert, and made sure that I was cleaning all the input. Of course, if some user is doing this maliciously rather than from ignorance, they could use mail\n( and this grep wouldn't find it... A grep expert could probably suggest a better expression to use. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: snort+mysql+acid
kinux wrote: Fatal error: Call to undefined function: preg_replace() in /usr/local/www/acid/acid_signature.inc on line 194 You have managed to install PHP *without* the PCRE module (module of PHP). http://php.net/pcre should lead you to something useful about how/where to get PCRE. Not sure how that translates into FreeBSD ports system, however. You can check what PHP modules are installed by creating a PHP file in your web server with (only) this in it: ?php phpinfo();? I *thought* the PCRE module was built-in to PHP -- at least after 4.0 anyway... Check your version of PHP in that output -- You may have managed to install it twice, and are somehow using an old PHP version with snort/mysql/acid... Also try php -v on the command line as the Snort user (or whatever user[s] seem appropriate). -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ultimately Safe User Account
Andrew wrote: I have a production FreeBSD box. My friend is starting to learn Unix essentials and is asking me for an account. He doesn't require any special rights, but he certainly wants to be able to use shell and read most manual pages. He'll access the server via Internet, SSH. A slightly different take on this: Unless you're *REALLY* poor/underpaid, the time you would spend making a safe way for your friend to poke at a production box to learn would be a lot more expensive than a cheap-o eBay computer... Give him his own box with FreeBSD on it and let him be root -- He'll learn a heck of a lot more by screwing up things as root than any other way of learning. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: PHP Problem
[EMAIL PROTECTED] wrote: You installed the CGI port.. You need to install the apache module. CGI doesn't allow embedded php in the page. Just for the record: Unless the FreeBSD port does something really really really bogus, the above statement is 100% wrong. :-) Perhaps you are thinking of Perl CGI versus Mod_Perl (sp?) where such a distinction (I think) does exist. PHP as CGI and PHP as Module have very minor differences, primarily related to functions/security that would make no sense in CGI or vice versa. EG: You can't do HTTP Auth via CGI in PHP because, by definition, you'd be passing the password between applications in an insecure way. This is not to say that the rest of the post [cut] isn't true -- In 99% of the cases of using PHP to spew out HTML, you want PHP installed as a Module. You may also, as I do, find it incredibly easy to use as a command line scripting language and thus also want the CGI (or CLI these days) install as well. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ntpd assistance
alden.pierre wrote: /etc/rc.conf contains the following: ntpdate_enable=YES ntpdate_flags=timex.cs.columbia.edu xntpd_enable=YES# Run ntpd Network Time Protocol /etc/ntpd.conf contains the following: driftfile/etc/ntp/drift server 65.211.109.1 server 65.211.109.11 server 209.51.161.238 server 128.59.59.177 Am I doing something wrong here? My time seems to go out of sync after my FreeBSD 4.10 box has been up for a couple of hours. Any help would be greatly appreciated. It was posted here recenlty that if your security setting is at 1 (?), then ntp can only change the clock by 1 second... -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: deleting mails
susmit sarkar wrote: I know that the question I am asking might sound very stupid. But it has me really perplexed. It relates to Unix mail. I use the d command to delete mails. Like d message_number or d message-list But sometimes I find that the mails get deleted and sometimes not. I want the mails that I delete to be deleted sure shot. I have tried exiting using q but still the mails are there when I check back later. We have a BSD system. Please advise me how I can delete mail that I want deleted without the fear of it reappearing again when I log in and check the next time. After you hit 'q' to quit, do you sometimes see an error message about a segfault? Because if you do, then that's the times when mail didn't delete anything. I've seen this under RedHat 8 a lot, and pretty much only delete a few messages at a time. It seems to happen more if I page back-and-forth in the header list, deleting more or less sporadically, then if I delete the first few messages and then quit. I pretty much wouldn't use 'mail' to read any large bulk mailboxes -- These are just cronjob outputs on a couple machines that can no longer send email, thanks to the folks who decided that one way to cut down on spam was to stop taking email unless reverse-DNS matched up. Gee, thanks. Now I get to log into boxes all the time to check my cron jobs. :-( -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DVD question...
Glenn Sieb wrote: But I'm having a dickens of a time finding something that will let me author DVDs. Any pointing in directions or help would be greatly appreciated! By 'author' you mean 'burn', right?... Or are you talking about compiling your mpeg files into a DVD file system? I *THINK* the 'cdrecord' author has DVD burning software as well. No idea if it supports the hardware you have or not. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
couldn't map memory
Richard Lynch wrote: I have installed FreeBSD 5.2.1 on a Dell Insprion 700 m, dual boot with the existing XP Home Edition (blech). Have begun posting my experience at http://phpbootcamp.com/articles/inspiron700m.htm The built-in LAN NIC is a Broadcom 440x. It works well enough under Windows to send this message. :-^ An update, and re-title, since I've moved quite a bit forward. I'm also cc-ing -mobile, to which I'm not even subscribed at this time, cuz I can only keep up with so many lists... Hope that's not too rude. I disabled bfe in my GENERIC kernel and re-built that, so I could hack the BFE source and try it as a module without a 20-minute re-build and re-boot. So I do make; make install: in /usr/src/sys/modules/bfe and then kldload /boot/kernel/if_bfe.ko which seems to work -- at least well enough to print out my debugging statements, or when I'm particularly stupid, page fault and crash the machine. I added the device_id as a constant in the BFE header: --- /usr/src/sys/dev/bfe/if_bfereg.h --- #define BCOM_DEVICEID_BCM4401_B0 0x170c I added the device id to the array of known BFE devices: --- /usr/src/sys/dev/bfe/if_bfe.c --- static struct bfe_type bfe_devs[] = { { BCOM_VENDORID, BCOM_DEVICEID_BCM4401, Broadcom BCM4401 Fast Ethernet }, { BCOM_VENDORID, BCOM_DEVICEID_BCM4401_B0, Broadcom BCM4401-B0 Fast Ethernet }, { 0, 0, NULL } }; I added an id to the MII headers, even thought it's the same: --- /usr/src/sys/dev/mii/miidevs --- model BROADCOM BCM4401 0x0036 BCM4401 10/100baseTX PHY /* Michael Chan of Broadcom was kind enough to email me that 0x36 is right */ model BROADCOM BCM4401_B0 0x0036 BCM4401-B0 10/100baseTX PHY The bfe_attach function which is getting registered with the Device as a callback is being called, and eventually reaches the line where it attempts to do: sc-bfe_res = bus_alloc_resource(dev, SYS_RES_MEMORY, rid, 0, ~0, 1, RF_ACTIVE); It is at this point that it is then printing out Could not map memory Now, I had already tried setting hints for maddr and msize to the values being used by Windows, in the hope that they would also be good numbers for FreeBSD. However, one thing I'm not sure of -- Do those hints affect a Module, or would they only apply to something built in to the kernel? Perhaps now that I've gotten the device recognized I should move back to using the kernel re-build with bfe enabled again. What other ways, short of hacking the source, can be used to provide good numbers for memory to bus_alloc_resource? And what magical incantations would allow me to find good numbers, as with 2 GIG of RAM, I suspect it could be a lonnng time before I stumbled on good numbers by just guessing. The is the output of kldload /boot/kernel/if_bfe.ko with the above alterations applied. Not quite sure why cbb0 and fwohci0 are getting in the picture... Perhaps the mere attempt to query their PCI vendor_id and device_id causes them to attempt to re-initialize?... Sep 17 00:31:09 kernel: cbb0: PCI-CardBus Bridge at device 4.0 on pci2 Sep 17 00:31:09 kernel: cbb0: pccbb.c Could not grab register memory Sep 17 00:31:09 kernel: device_probe_and_attach: cbb0 attach returned 12 Sep 17 00:31:09 kernel: cbb0: PCI-CardBus Bridge at device 4.1 on pci2 Sep 17 00:31:09 kernel: cbb0: pccbb.c Could not grab register memory Sep 17 00:31:09 kernel: device_probe_and_attach: cbb0 attach returned 12 Sep 17 00:31:09 kernel: fwohci0: vendor=104c, dev=802e Sep 17 00:31:09 kernel: fwohci0: 1394 Open Host Controller Interface mem 0xe020-0xe0203fff,0xe0209000-0xe02097ff irq 10 at device 4.2 on pci2 Sep 17 00:31:09 kernel: fwohci0: Could not map memory Sep 17 00:31:09 kernel: device_probe_and_attach: fwohci0 attach returned 6 Sep 17 00:31:09 kernel: sc-bfe_miibus is NULL. Sep 17 00:31:09 kernel: bfe0: Broadcom BCM4401-B0 Fast Ethernet mem 0xe0206000-0xe0207fff irq 10 at device 5.0 on pci2 Sep 17 00:31:09 kernel: bfe0: couldn't map memory Sep 17 00:31:09 kernel: device_probe_and_attach: bfe0 attach returned 6 -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cd stuck in cd drive after failed burn
Anthony Philipp wrote: Well I did insert the paper clip into the drive, Sometimes, you have to bend that clip a bit, in order to hit the trigger. You'll also often meet considerable resistance -- It's a manual over-ride, and you gotta push way harder than you might think... About as hard as that eject button on a floppy drive, and you're doing this with a paper clip, mind you. and it did not respond. I have not had time to try and reproduce it, but I have burned cds with this media at 32x before with no problems. In fact I've done this many times, but this is the first time I've had the problem with the cd getting stuck in the drive. Also I have not changed the OS since. I dont really have access to other media since I bought 100 of these, but they've worked before so I have no reason to suspect the media. I'll try to reproduce it tonight. I burn through about 300 CDs every month or so. [aside] It's a live music venue with music EVERY night, and we archive every show (except Open Mic) to CDR (2 copies) plus give a free copy to the artist, and then maybe sell a couple CDRs to the audience on the spot. [/aside] A visual inspection before you try to use a CDR is always good. Hold it up to a strong light and check for holes in the media. Every few hundred, I'll spot one with a pin-hole (or worse) and just toss it. At $0.15 a pop, I don't really worry too much about wasting a CDR... Certainly less painful than fighting with a stuck CD because a burn went bad. Of course, there are STILL *rare* times when visual inspection doesn't catch it -- and I generally assume a software fault at that point, particularly since in the past, it's been reproducible. (cdrecord under RedHat 9) You can spend more on CDRs, and get better quality control, but I've found I get better value with the cheapest CDRs and a visual inspection to toss the obvious rejects. YMMV PS Anybody know a CDR manufacturer that wants to sponsor a live music venue? :-) -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 5.2.1 hangs solved and now find a way to split the ntfs hard drive.
Choy Kho Yee wrote: On 2004/09/15, at 12:58, esmaeel pashapouri wrote: Now as in subject line, have to figure a way to split the hard drive which short sitedly by the hp was patitioned in 1 big chunk and formated in ntfs format. According to freebsd docs I am out of lock for now, unless to use comercial programs. If any one know of any other way i'll be glad to hear from them. I heard that some linux live-cds have the utility to resize NTFS partitions on them. I can't provide further information as I have never used them before. Perhaps you could check them out. A quick Google yields these two: http://www.sysresccd.org/ http://overclockix.octeams.com I have used the first one. It worked. It was awesome. One thing though: BE PATIENT!!! While it's trying to re-size the partition, it sits there for a LONG time doing nothing at the end of the process, and your mouse and keyboard are frozen. Do *NOT* re-boot. *WAIT*. BE PATIENT. It will *eventually* finish, and you'll be happy. If you re-boot in the middle of it re-partitioning, you will not be happy. Pre-requisite: You'll want to defrag the drive under windows first. You should be able to poke around in the Control Panel/Admin/System areas and get a visual display of where Windows has all its files. You want to see a big chunk of white space on the right hand side, with NOTHING but white on the right. Sometimes Windows put hidden un-movable files at the end of the disk. You have to go into DOS and change their attributes and get them moved by defrag before you can re-partition. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVS CO Error
Kenneth A. Bond wrote: I am trying to update my source using CVS, as CVSup is not an option in my current environment. I am running FreeBSD 4.10. Below are the commands that I am entering in order to perform the update, but for some reason, I am getting the following error when attempting to update my source: lx1005# pwd /usr/src lx1005# setenv CVSROOT [EMAIL PROTECTED]:/home/ncvs lx1005# cvs co -rRELENG_4_10 src cvs [checkout aborted]: cannot write /home/ncvs/CVSROOT/val-tags: Permission denied lx1005# whoami root These commands show that I am in the /usr/src directory (which is where I should be), and that I am the root user. I was informed by another user that this was a server error, but I can't seem to get around it no matter which anoncvs server I use. Just for kicks, try these things: #1: Perhaps you're having trouble because 'co' is running into pre-existing directories/files. mkdir /test cd /test cvs co -rRELENG_4_10 src . The . should force the source into /test (where you are) I believe. #2: Who or what is /home/ncvs??? Is that being set somewhere in your root login? Or in your /root/.cvsrc? Surely doing a 'co' should not write anything on the anonymous server... On your local machine, go ahead and create /home/ncvs/ and chmod 777 it. Then try again. #3: Aha! Do you have a .cvsrc file in your /root directory? Does it automagically add flags to 'co' to make you put a 'watch' on files you check out? Or perhaps force 'co' to always check out with some kind of exclusive lock on them? Or some other funky flags getting passed to 'co' via /root/.cvsrc? Any of these things might be real handy in your day-to-day usage of CVS within your work-place or personal setup, but would most likely not be conducive to anonymous access of BSD's CVS servers. I think all of those flags have some kind of over-ride to turn them back OFF from the command line, so you won't need to fargle your .cvsrc -- cvs help co should tell you what flags to add to over-ride the existing flags. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mail from a shell script?
Ryan Sommers wrote: First problem I ran into. I'm attempting to send the mail via `which mail`. I first was going to attempt to concatenate the message via message=${message}$'\n'other line However, this strips the newlines out of the variable (both sh and bash). I then tried using the string redirection in bash/sh and same thing happened. Things I would try: Use \\n so that the first pass eats up \\ to product \ and then you have \n where you want it. Paste in a literal new-line (control-v/control-m in vi) so that you don't have to rely on \n to work. Also, in man 5 crontab there is reference to using %% or somesuch for newlines in mail. I'm not sure if that's a cron thing or a mail thing, but it may be useful. Dislaimer: All of this comes from Linux/PHP experience, and not so much FreeBSD. YMMV. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sound in 5.2.1-RELEASE w/ KDE 3.3.3
also when KDE first starts up, although my Starting KDE system event sound is clearly cut short. Beyond that, no sound works either from X or from the console. Just for fun, turn *OFF* the KDE sound effects. Perhaps, just maybe, whatever sound effect is getting played has some kind of odd spike in the audio that is seg-faulting something somewhere... It probably won't help, but it might let you get sound to last long enough to run an application with error messages where you can find them :-) -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Broadcom 440x NIC not recognized on boot
FreeBSD 5.2.1 I am attempting to add support for the built-in network device in my laptop, a Dell Inspiron 700m, by altering the C source code in /usr/src/ Bear with me -- This is roughly equivalent to a plumber doing brain surgery :-) Windows reports this device as a Broadcom 440x, and the docs/sources for the BFE driver say that the driver is likely to work for the 440x series, so this is not as hopeless as one might think. I have altered /usr/src/sys/dev/bfe/if_bfereg.h and /usr/src/sys/dev/bfe/if_bfe.c to have lines similar to those for the 4401 device, but with 170c as the device id. For those reading the whole thread, and noting an anomoly from what another posted, 4324 is the *wireless* card device id, and 170c is the wired device. At least, that's what Windows says, and both IDs do show up, and neither of them works. (yet) I have achieved what could be described as some level of success... dmesg output now indicates the card is recognized, and sort of names the device as 'bfe0' Of course, I understand that's just because I may have lied to the computer, so the 'bfe0' doesn't necessarily mean the driver is going to work some day or anything. So all this really boils down to is I have managed to re-build a kernel correctly. Hey, that's *some* level of success! :-) But no /dev/bfe0 is created, and ifconfig -a shows just lo. So it's not really working yet. Some things that may bear fruit if I knew what to do about them... #1 Right after 'bfe0' is detected, a CardBus Bridge says Could not grab register memory dmesg also tells me: cbb0 requested unsupported memory range 0x8800 - 0x (decoding 0x0-0x0, 0x0-0x0) What little I understand of what I've read makes me think that this may be indicative of a problem related to my network card... This cardbus thingie lets the OS talk to my network card, right? And it ain't getting the register memory it needs, right? So... Can I set aside that memory range for it, or make it get memory in a supported memory range somehow, or ??? Does knowing the memory range set aside by Windows help?... (FABF - FABF1FFF) Both Windows and FreeBSD agree on IRQ 10, so that's something :-) From reading the source code, it would seem that in the old days, I would be attempting to do this from the BIOS, but that section of code does not seem to be in effect, and I'm pretty sure the BIOS doesn't give my any option anywhere near that complicated. It's the simplest (or is that stupidest) BIOS I've ever seen, the times I've been into it. I'll check again, of course, but it's not looking promising. The source code also refers to PCI assigning the memory block, and some day ACPI assigning the memory block. I haven't puzzled out whether the PCI code or the ACPI code is the one that is doing the assigning at this point. I might be able to printf a bunch of debug messages and work that out over the course of, say, several weeks or even months of re-making the kernel and re-booting... Hopefully, somebody reading this can help me shorten that. :-) It's also entirely possible that this cardbus bridge thingie has nothing to do with my network card, and I'm barking up the wrong tree entirely. Please let me know if I'm on the wrong tack. #2 The BFE driver seems to be relying heavily on the MII protocol in /usr/src/sys/dev/mii, and there is an entry in ~/miidevs for the Broadcom 4401 referring to an OUI and PHYs and the magic number for the 4401 is 0x36 But looking at the URL referenced in miidevs doesn't seem to match up 0x36 with Broadcom... I'm guessing 0x36 is Broadcom's internal OUI-related number for this device, which is not the same as the device id in the PCI bus (170c). My real questions for MII are: Am I correct in assuming I need to add a magic number to miidevs to get the interface card to work? How would I figure out what that magic number is? If any reader has a 4401 and wouldn't mind doing pciconf -lv and/or dmesg -v and search for 0x36. If you find it, please send me the line that contains it, so I can find my magic number in the same spot... I hope. You can see a complete dmesg output (from before I altered the source) at: http://phpbootcamp.com/articles/inspiron700m.htm Scroll all the way to the bottom. The dmesg output from after I altered the source doesn't differ much, except it claims that the device is a Broadcom 4403, and tries to name it bfe0. I'm not sure who posted here that it was a Broadcom 4403, but this would seem to indicate that it is a 4401-B0: http://lkml.org/lkml/2004/8/23/202 So that 4403 probably isn't even right (but I'll fix that shortly) It doesn't affect the actual working of the driver -- It's just a text message. On the plus side, I'm now more hopeful that the 4401 driver will work for the 4401-B0 device, once I get all the pieces in place. I suppose the really short version of this email is: Should I focus on getting that CardBus Bridge to have a valid memory range first, or should I try to
Re: Broadcom 440x NIC not recognized on boot
Subhro wrote: #1. How do I test that bfe (man bfe) is built-in to the kernel versus loaded as a module? Check the config file. I believe the GENERIC kernel has it built in. This is gonna sound stupid, but I spent a good 10 minutes using locate and find and whatnot trying to find something like kernel.conf and failed... Now that I'm reading up on kernel config, I want to confirm what may be a misconception... Sometimes, when one talks about a config file, one is talking about editing /etc/*.conf, and start/stop a service, or, in extreme cases, re-booting. Are there run-time options to the kernel in such a file? Or are all kernel-configuration options done at compile-time? I can understand that the latter might be necessary, given the way the boot process works, but I'm not 100% sure I'm not missing an easy text file to edit rather than a re-compile of a kernel... And, I'd just as soon not re-compile the kernel if I can determine that BFE driver is already in it, of course, as that will simply waste my time. And, knowing me, screw up the machine completely :-) #2. Is it possible that building bfe into the kernel will magically make it better, or is being loaded as a module ALWAYS the same? Of course it will always be better to have it built into the kernel than to load it as a module. The primary advantage is the speed at which the kernel can speak to a module is much less compared to the speed at which it can speak to another part of itself. I expressed myself poorly. Is it possible that having XYZ compiled in the kernel will get a device recognized at boot, when having XYZ as a module does *NOT* get that same device recognized? I am reasonably certain that BFE is already in there somewhere before I try to kldload it... #3. Exactly *HOW* does the boot process figure out what gear is what? Every device has a special identification code which is unique for a device throughout the world. While booting the kernel basically probes the available devices without knowing what is what. The device replies with that code and the kernel comes to know what device it is by analysing the code returned. #3a. Rather involved question... My current hypothesis. It would seem to be comparing 0x14e4 (?) and knows that that is Broadcom. It then sees 0x4324 and does *NOT* recognize that as a BCM440x device. It's possible that Broadcom gave their laptop version of this device a new device ID. (It's a relatively new-to-the-market laptop) No its not possible. If you use a particular chip you cant reburn the device identification in the CHIP. That is possible just once during the manufacture and is hardwired. Perhaps what I should have asked is: Given that this device has a different device identification, but that Windows identifies it as a BCM 440x, and that bfe supports the BCM 4401, and the BFE docs indicate that that driver should work for the BCM 440x series, am I reasonable to expect that if I could just add a line of code somewhere with the new device identification, it has a strong possibility of working? I understand that a new device with a similar model number may have such a different instruction set and API. I also know that sometimes all devices in a given series use the same driver, even if they have different model numbers (or even different manufacturers using the same CHIP). What I'm not completely clear on is: Does a different device ID pretty much guarantee that the same driver won't work, or do drivers often work for a bunch of chips with different IDs that really aren't all that different in API? Therefore, I'd like to edit some source code file somewhere, copying the line about the 4401, and re-compile, install, re-boot, and PRAY. How dangerous would this be? How likely that I am gonna blow up my NIC? How likely that I blow up the whole laptop? It is very unlikely you will blow anything up. The max what can happen is, the device wont work. In worst case you may trash its firmware. But I have *never* seen a firmware blow up that way. But yes that IS possible. Errr. Exactly where would I start to look for the file I want to change? Here's what I tried: I've found the if_bfe.c file, in /usr/src/sys/dev/bfe/ Added some printf statements in the probe function (to print out the t-vid and t-did values as it searched), re-compiled /usr/src/sys/modules/, copied the resulting if_bfe.ko (mtime was 'now') to /boot/kernel copied same to /boot/modules (I think I put that there with make; make install days ago) And, when I booted, I rather expected dmesg to get output from my printf statements... It didn't, so obviously I don't really understand what's going on here. (Well, I knew that, but...) It is difficult to say what you ecatly did. Maybe if you paste the snippets under consideration I can try to help you out. That is difficult to do -- With no NIC, and no common readable/writable hard drive partition (NTFS/UFS2?) between the
Re: 5.3-beta3 boot manger show stopper problem
Mark wrote: MS/Windows98. After F1 key win98 boot just hung there doing nothing. Forgive me if this is silly, but... In *MY* setup, F1 points to a teeny tiny partition that Windows XP Home Edition created with, err, looks like some kind of boot-strapping stuff in it. And *F2* is what gets me into Windows. F3 is also some Windows tiny partition. F4 is FreeBSD Speaking of which... Where exactly are the text strings for F1, F2, F3, F4 stored? Now that I know what's what, it's no big deal, but the anal/retentive part of me wants to label F2 suitably. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: booting the install cd
Christophe Asselin wrote: I want to install FreeBsd 5.2.1 but when i boot from the install i386 cd an error occur. Some text appear and it froze (stuck at these lines) pcibo:acpi host-pci bridge port oxcf8-oxcff on acpi0 pci0:acpi pci bus on pcibo pcibo: slot 2 INTA is routed to irq 10 in windowsxp, if I watch for irq10, it say that my intel 82852/82855 GM/GME graphic card is on that irq IRQs are shared, so there could be TWO things on IRQ 10... So you can't really be sure it's your graphic card. I believe that is the same card as is in my laptop, and 5.2.1 installed fine on that... I'm not saying for sure it's *NOT* your graphics card -- just that it's not looking all that likely... Cheap/easy things to try: re-download (or check the checksum) the disk 1 binary. re-burn a new CDR. What *other* hardware is in your computer? Anything funky? Perhaps pull out anything that's not super crucial, and try to install. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Broadcom 440x NIC not recognized on boot
So, I'm having trouble because my laptop is not recognizing the built-in LAN/NIC during boot. I've been reading manuals furiously, but I'm at the stage where I have a laundry list of things to try, but am not running across the docs on how to do them... Of course, sometimes it's that I can't actually reach the 'net to research them when I think of them, as I'm in FreeBSD where the NIC isn't working. :-^ I realize these are most likely entirely my fault for not finding them, so just a link to where they are would be most welcome. #1. How do I test that bfe (man bfe) is built-in to the kernel versus loaded as a module? #2. Is it possible that building bfe into the kernel will magically make it better, or is being loaded as a module ALWAYS the same? #3. Exactly *HOW* does the boot process figure out what gear is what? #3a. Rather involved question... My current hypothesis. It would seem to be comparing 0x14e4 (?) and knows that that is Broadcom. It then sees 0x4324 and does *NOT* recognize that as a BCM440x device. It's possible that Broadcom gave their laptop version of this device a new device ID. (It's a relatively new-to-the-market laptop) Therefore, I'd like to edit some source code file somewhere, copying the line about the 4401, and re-compile, install, re-boot, and PRAY. How dangerous would this be? How likely that I am gonna blow up my NIC? How likely that I blow up the whole laptop? Errr. Exactly where would I start to look for the file I want to change? Here's what I tried: I've found the if_bfe.c file, in /usr/src/sys/dev/bfe/ Added some printf statements in the probe function (to print out the t-vid and t-did values as it searched), re-compiled /usr/src/sys/modules/, copied the resulting if_bfe.ko (mtime was 'now') to /boot/kernel copied same to /boot/modules (I think I put that there with make; make install days ago) And, when I booted, I rather expected dmesg to get output from my printf statements... It didn't, so obviously I don't really understand what's going on here. (Well, I knew that, but...) The Hardware section in the docs directory of my installation referred me to a Hardware Changes (?) in my installation... Since that was what I was looking for in the first place, I was rather at a loss to find the document referred to... Any idea what I should have been reading? I'm okay with vi and editing source code, but it's been decades since I've really written C code... Still, I'd really like to get this card working, and I'll submit a patch if we get it... -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Update Databases from Webserver
FreeBSD Mail Lists wrote: Richard, Thanks for your reply. I thought there was something terribly wrong with that logic. So I thought I would ask in this mail list since people have been great here in the past about everything else I wanted to know. Are there any security lists in relation to ecommerce that you would recommend? So I can stop annoying everyone else here. I just don't want to make anymore mistakes than I have to starting down this road. I don't really know of any good security list... I'd sure be happy to HEAR of one, mind you. To be honest, I suspect there isn't really a good security list, because this is simply the kind of thing that so *FEW* people actually do, that there isn't a critical mass of people doing it and needing help for a good mailing list to exist. Please don't take my tone as being annoyed. I basically just wanted to scare you into *NOT* doing what you plan to do. It's incredibly dangerous, and carries an inordinate amount of risk. If you absolutely *MUST* do this, hire a security expert to help you design/program it. It's just not a good idea to do what you said you wanted to do on your own your first time. If your boss/manage won't accept that, tell them you'll need all their personal credit cards for testing purposes until you're SURE the system is secure and safe from thieves. They may change their tune at that point. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Update Databases from Webserver
FreeBSD Mail Lists wrote: I would like to see how other people are updating backend databases (postgresql on FreeBSD, internal network) from a webserver (apache,php on FreeBSD, dmz network) through a firewall. Pretty much what I am trying to learn is how to take private information (credit card numbers, etc.) and write it to a backend database without leaving any huge holes for hacking. Should this be done or am I barking up the wrong tree, should there be an intermediary step? I have been trying to find information books/web that gives a real nuts and bolts way of trying to do this stuff and am not having a lot of luck. Any pointers books or sites would be appreciated. The most common answer is Don't do that 99.9% of e-commerce sites have absolutely no business storing credit card numbers on any hardware they own. They should simply run the transaction through their Merchant Account (bank) computer using a secure connection, and the software provided by their Merchant Account (bank). If you need a recurring charge, you can run your charge through the Merchant Account as a recurring charge (whoda thunk it?) and the Merchant Account software will give you back a unique transaction # to refer to if you ever need to cancel THAT particular recurring charge. You would store only that transaction number, and *NOT* the customer's credit card charge. In the unlikely event that you really *ARE* in the 0.01% of servers that needs to store credit card info... Well, it's kinda scare that you're asking here, rather than a security mailing list, but here is *ONE* solution that may be worth considering. I am posting to the list so that others can tell us just how inadequate this is. You should also be aware that by no means am I an expert -- I am simply describing what has been described to me as the right way (tm) to do this. My information may be out of date. (It's been awhile.) I chose to let the Merchant Account (bank) worry about keeping credit card numbers safe, rather than do all of the following. You probably should too. Depending on the current interpretation of existing laws, you, the web developer, may or may not be held responsible for *ANY* damages that result from your work -- no matter how faultless you may be in reality. We're talking legalities here, not reality. Did I mention that you really shouldn't be doing this at all? Good. First, your servers *MUST* be in a physically secure location, with access limited to *ONLY* people you really really really trust. No software in the world will do you any damn good if a not-so-honest person can waltz in and play around with the hardware! If you *CANNOT* guarantee that the hardware in question can *ONLY* be accessed by trusted individuals, than you should stop reading right here and now. This rules out shared servers, co-location (IMHO), and almost all corporate servers, which need too many people of limited trust value to be able to access them to keep them up. Next, you need a SECOND server which will be used to hold credit card info, and that second computer will *NOT* be connected to the Internet (directly) You put an extra NIC in your web-server, and run a cross-over cable to the SECOND server, the extra one, which will hold the credit card numbers. You limit ethernet access to that second computer which will hold credit cards so that *ONLY* the one computer connected to it via the cross-over cable will be allowed to connect. The extra NIC in the web-server and the SECOND server are both on a separate sub-net from everything else in your system. IE, the only interface cards in your entire organization that utilize the IP address space in question are those two (2) NICs. You then make 100% sure that you simply cannot get to that SECOND box from anywhere else in the organization. What is quite well-documented is that you use SSL (and ONLY SSL) to allow the customer to get their credit card info to your web-server. You then write some routines to get the credit card numbers from your web-server through your second NIC to the second server. These routines get the fine-tooth code-review treatment, by multiple people. They should be mind-numbingly simple, clearly documented, and do the absolute minimum possible to conduct your business. You test these routines every way you can think of to see how they can be broken. You hire an outside security audit team to test your server and routines to see how they can be broken. You use something like tripwire to raise nine kinds of hell if anything changes on the portion of the web-server that talks to the SECOND machine, and, of course, if anything (other than data) changes on the SECOND machine. Under *NO* circumstances should the routines *EVER* store the credit card numbers in any file, database, shared memory, or anything less transitory than the variables of a single script, operating under SSL, on the web-server. So, in effect, you get the cc# onto the
Broadcom 440x NIC not recognized on boot
I originally posted to -hardware, but no response yet... The Broadcom 440x NIC in my new Dell Inspiron 700m is not being recognized during boot. FreeBSD 5.2.1 downloaded several days ago. Install was pretty straightforward, though the post-installation only lets me configure ppp and slip, and the help message at the bottom seems to indicate that I was supposed to have already configured my network connection during the installation process... Which I don't recall doing... No patches/ports done as there is no ethernet... I am reasonably certain the BFE driver should work for this NIC. man bfe certainly makes it sound like it ought to... The BIOS has a way to turn the NIC OFF and I have it ON The BIOS also allows the WiFi to be OFF or ALT-F2 to turn it on/off from Windows... It is set to ALT-F2 (on until turned off) I've been searching and reading docs for days now, so could not possibly list everything I've read/tried, but I am at the end of my rope here... I will paste below excerpts from: dmesg -v /var/log/messages (*) pciconf -v (prolly no more than dmesg -v, but...) *showing my attempt to kldunload/kldload /boot/kernel/if_bfe.ko COMPLETE output, in case I'm trimming too much, is available at the BOTTOM of this web page: http://phpbootcamp.com/articles/inspiron700m.htm where I am documenting my experience in installing FreeBSD on this laptop for others who may (or may not) find it useful. Note that page is very much a work in progress at this time -- there are quite a few links to be added and place-holders to be fixed. Needless to say, anybody who tells me how to fix this NIC will be credited there pretty much until I die, if not longer. :-^ dmesg excerpts I think are relevant: pci2: network at device 1.0 (no driver attached) cbb0: PCI-CardBus Bridge at device 4.0 on pci2 pcib1: device cbb0 requested unsupported memory range 0x8800-0x (decoding 0x0-0x0, 0x0-0x0) cbb0: Could not grab register memory device_probe_and_attach: cbb0 attach returned 12 cbb0: PCI-CardBus Bridge at device 4.1 on pci2 pcib1: device cbb0 requested unsupported memory range 0x8800-0x (decoding 0x0-0x0, 0x0-0x0) cbb0: Could not grab register memory device_probe_and_attach: cbb0 attach returned 12 fwohci0: vendor=104c, dev=802e fwohci0: 1394 Open Host Controller Interface mem 0xe020-0xe0203fff,0xe0209000-0xe02097ff irq 10 at device 4.2 on pci2 fwohci0: latency timer 32 - 32. fwohci0: cache size 8 - 8. pcib1: device fwohci0 requested unsupported memory range 0xe0209000-0xe02097ff (decoding 0x0-0x0, 0x0-0x0) fwohci0: Could not map memory device_probe_and_attach: fwohci0 attach returned 6 pci2: mass storage at device 4.3 (no driver attached) pci2: network, ethernet at device 5.0 (no driver attached) Output from when I unload/load the BFE driver: Sep 6 19:51:14 kernel: cbb0: PCI-CardBus Bridge at device 4.0 on pci2 Sep 6 19:51:14 kernel: cbb0: Could not grab register memory Sep 6 19:51:14 kernel: device_probe_and_attach: cbb0 attach returned 12 Sep 6 19:51:14 kernel: cbb0: PCI-CardBus Bridge at device 4.1 on pci2 Sep 6 19:51:14 kernel: cbb0: Could not grab register memory Sep 6 19:51:14 kernel: device_probe_and_attach: cbb0 attach returned 12 Sep 6 19:51:14 kernel: fwohci0: vendor=104c, dev=802e Sep 6 19:51:14 kernel: fwohci0: 1394 Open Host Controller Interface mem 0xe020-0xe0203fff,0xe0209000-0xe02097ff irq 10 at device 4.2 on pci2 Sep 6 19:51:14 kernel: fwohci0: Could not map memory Sep 6 19:51:14 kernel: device_probe_and_attach: fwohci0 attach returned 6 Excerpt from pciconf: [EMAIL PROTECTED]:1:0: class=0x028000 card=0x00031028 chip=0x432414e4 rev=0x03 hdr=0x00 vendor = 'Broadcom Corporation' class= network [EMAIL PROTECTED]:4:0: class=0x060700 card=0x018d1028 chip=0xac8e104c rev=0x00 hdr=0x02 vendor = 'Texas Instruments (TI)' class= bridge subclass = PCI-CardBus [EMAIL PROTECTED]:4:1: class=0x060700 card=0x018d1028 chip=0xac8e104c rev=0x00 hdr=0x02 vendor = 'Texas Instruments (TI)' class= bridge subclass = PCI-CardBus [EMAIL PROTECTED]:4:2: class=0x0c0010 card=0x018d1028 chip=0x802e104c rev=0x00 hdr=0x00 vendor = 'Texas Instruments (TI)' class= serial bus subclass = FireWire [EMAIL PROTECTED]:4:3: class=0x018000 card=0x018d1028 chip=0xac8f104c rev=0x00 hdr=0x00 vendor = 'Texas Instruments (TI)' class= mass storage [EMAIL PROTECTED]:5:0: class=0x02 card=0x018d1028 chip=0x170c14e4 rev=0x02 hdr=0x00 vendor = 'Broadcom Corporation' class= network subclass = ethernet Any help is appreciated! FreeBSD ROCKS! -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Broadcom 440x NIC not recognized on boot
Subhro wrote: Could I have a look at your whole dmesg? http://phpbootcamp.com/articles/inspiron700m/ Also tell us something about your other hardware. Did you try popping out the NIC and fixing it in another slot? It's a Dell laptop... I'm not unwilling to open her up and poke at it, but I'm guessing that there isn't an extra PCI slot in there to move the NIC to... Plus, like, the NIC is being seen it just ain't hooking up with the BFE driver -- Or that's how I interpret the dmesg output... Here's Dell's Tech Specs: http://www1.us.dell.com/content/products/productdetails.aspx/inspn_700m?c=uscs=19l=ens=dhs~tab=specstab#tabtop -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [Re: Unable to write to CD-R]
cdrecord -scanbus Cdrecord 2.00.3 (I386 . cdrecord: Operation not permitted. Error opening /dev/pass0 Cam error 'camreal_ opendevice: coundn't open passthr. Cannot open SCSI driver. I dunno about all this other stuff, but to me, *THIS* looks like you don't have the IDE-SCSI module installed. The IDE-SCSI module fools the OS into believing your IDE CDRW device is really a SCSI device. Without that, cdrecord can't work, since it works through the SCSI interface. Under RedHat, you would find/download/install the ide-scsi software, and then do insmod ide-scsi You might also need to make some devices /dev/pg0 etc -- It's all in an FAQ somewheres for cdrecord. I gather from my minimal experience with FreeBSD that you'd be doing something more like pkgload (?) but the principle remains the same: You need a module to fool the OS into believing your CD/DVD burner is SCSI when it's not, or cdrecord simply won't talk to it. cd0: TOSHIBA DVD-ROM SD-R6112 1031 Removable CD-ROM SCSI-0 device This, however, indicates that it *IS* a SCSI device... And its number is 0 In which case, I would start with: cdrecord dev=0,0,0 -data whatever.iso TOSHIBA DVD-ROM SD-R6112 1031 at scbus1 target 0 lun 0 (pass0, cd0) Whoops! Also try: cdrecord dev=1,0,0 -data whatever.iso as it seems to be on bus 1. Do all of this as 'root' If you can get it to work as root, then evaluate how badly you need it to work for other users, and what holes you open up to do so. -- Like Music? http://l-i-e.com/artists.htm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]