RE: Printer recommendation please
On Fri, 30 Mar 2012 16:14:20 -0400 > Mike Jeays wrote: > > > I strongly recommend a laser printer over an inkjet even for home use. > > The reduced running costs and better reliability are easily worth the > > lack of colour, IMO. > > How do they compare for light and occasional use? I'm thinking in terms of a few pages, > a few times a year, so presumably the consumables become perishables. Toner really doesn't go bad, and good laser printers are built to last. My first laser printer was an HP LaserJet 5P that my local bank branch was throwing away in 2003. It ran on its existing toner cartridge for 5 or 6 years under light use - maybe 500 pages per year. Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: much to my surprise.... [ now trending #OT ]
>> >> *Finally*, i saw that my telco router was displaying "INT" in red >> >> LED's. i didn't know they displayed in any other color but the >> >> default green, but after power-cycling, voila! back to green. >> >> and now, yes, i can ping freebsd.org. and i'm pretty sure other >> >> network things will work too. The Mark I eyeball is an amazing tool. I recently had a HDSL link provided by my telco go down. I happened to be 2 hours away from the facility at the time. Tech support said the problem was the router because they couldn't get to it, and they just wouldn't believe me that it was up. (I could ping it from the "inside" via the secondary network connection.) So after I drove to the facility, I noticed that the HDSL modem (which is line-powered from some box on the street) had no lights. Ahah! 28 hours later (sigh) they found a blown circuit breaker somewhere. > but i've been doing this for a while, and > until i was away for five days, everything had been going > fine for over a month. oh:: one power-out. the UPS saved > the server, but everything else needed to be reinitialized. A lesson that I learned many years ago - if you can afford a "big" UPS for your servers, you can afford a "little" one for your telco/network equipment. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: limit number of ssh connections
Moving ssh to another port has solved the problem for me. I had used sshguard in the past, but was always leery of locking myself out. Regards, Matt Emmerton -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of James Strother Sent: Monday, September 19, 2011 5:47 PM To: freebsd-questions@freebsd.org Subject: Re: limit number of ssh connections Wow, I'm glad I asked. This has been very helpful. @Григорьев Александр Thanks for the tip on inetd, that looks like it might just do the trick. @Paul Macdonald My main reason for looking into this was glancing through the logs on a server I just put online and seeing large numbers of unauthorized login attempts. Everything so far is highly unsophisticated, but it did make me start to really think about the issue. I might put ssh onto a different port, that would at least stop the sort of fishing I am currently seeing. It's not clear if that would be "good enough." @Damien Fleuriot Have you had success with sshguard? Installed it from ports, but then I couldn't quite figure out how to configure it. To be honest, I didn't give it much of a chance before I moved on to the next thing, so if you've had good luck then I should probably give it another shot. I did flip through sshd_config, but as far as I can tell it is only possible to limit the number of concurrent connections. It might take a little longer, but I'm concerned it would still allow a malicious individual to sequentially brute-force a password. Thanks for all the responses. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: cmpsfont-1.0_7 checksum mismatch
On Mon, May 30, 2011 at 08:48:18AM +0200, n dhert wrote: > > There seems to be an error with the recently (5 days ago) distributed > new > 1.0_7 version of cmpsfont: > > ---> Upgrading 'cmpsfont-1.0_6' to 'cmpsfont-1.0_7' (print/cmpsfont) > ---> Build of print/cmpsfont started at: Mon, 30 May 2011 08:29:15 > ---> +0200 Building '/usr/ports/print/cmpsfont' > ===> Cleaning for cmpsfont-1.0_7 > ===> Vulnerability check disabled, database not found ===> License > check disabled, port has not defined LICENSE ===> Extracting for > cmpsfont-1.0_7 => SHA256 Checksum mismatch for cmps-unix.tar.gz. > ===> Refetch for 1 more times files: cmps-unix.tar.gz ===> > Vulnerability check disabled, database not found ===> License check > disabled, port has not defined LICENSE => cmps-unix.tar.gz doesn't > seem to exist in /usr/ports/distfiles/. > => Attempting to fetch > http://ftp.ctex.org/pub/tex/fonts/type1/cmps-unix.tar.gz > ===> Vulnerability check disabled, database not found ===> License > check disabled, port has not defined LICENSE => SHA256 Checksum > mismatch for cmps-unix.tar.gz. > ===> Giving up on fetching files: cmps-unix.tar.gz > > How to deal with it? > Or wait for a better version? send-pr(1) or drop the maintainer an email (he's probably forgotten to update the distinfo). If you must have the port *now* you can edit the port with the new checksum calculated using sha256(1). (Edit /usr/ports/print/cmpsfont/distinfo) -- Or this: cd /usr/ports/print/cmpsfont make fetch make makesum -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: Sending a Fax
>> One of my clients needs to send a lot of faxes. He has a Brother 8680DN which will fax. >> Any ideas how to send a file to it and get it to send a fax? I am not finding anything >> beyond printing for that unit via Google. According to http://welcome.solutions.brother.com/bsc/public_s/id/us/us/en/monolasermfc/m fc8680dn_us/spec/index.html, this device does have PC FAX capabilities on Windows/Mac/Linux. Here is the download site for Linux drivers: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html With some Linux emulator and CUPS tweaking, you should be able to get the Linux PC FAX capability working on FreeBSD. YMMV, HTH. -- Regards, Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: Port dependencies
> > The number of console > > programs that want to pull in X window or kde is > > my boggling. > > Hmmm... The only one I remember being that way is > the old cvsup, but there was nocvsup-nogui (or -nox11?). Over the years I've found that ghostscript and gd are two common culprits. Every time I see a webserver with X11 on it, it's because of these two. Of course, using ghostscript*-nox11 as well as setting WITHOUT_X11=yes solves a lot of this mess, but on a system that's already been "infested", it's easier just to rebuild from scratch. I dearly love FreeBSD, but after a few hours of building world and upgrading ports/packages, walking over to my RHEL/CentOS machines and typing "yum update -y && reboot" just brings tears to my eyes. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: foo; no such thing as a "dual-nic" atom firewall
Maybe someone on-list can help me; after 5+ hours of clicking and typing, I can't find an atom cpu computer with dual NICs. I _thought_ I'd found a computer to replace to Kayak firewall [pfSense], but nada. Any wizards on this list have a clue? You'd probably have to build one yourself out of parts. Any respectable computer shop will have Mini-ITX Atom motherboards and cases, just add another NIC to that along with memory/drives and you're done. Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Like it or not, Theo has a point... freebsd is shipping export-restricted softwarein the core
http://article.gmane.org/gmane.os.openbsd.misc/178267 And yes, there it is, in /usr/src/sys/contrib/dev/acpica/hardware/hwsleep.c: * 4.3. Licensee shall not export, either directly or indirectly, any of this * software or system incorporating such software without first obtaining any * required license or other approval from the U. S. Department of Commerce or * any other agency or department of the United States Government. In the So, is such approval on file with the FreeBSD Foundation? More to the point - we probably need to be doing what our Linux brethren have been doing - holding out for a more compatibly-licenced version of the ACPICA code. From http://www.acpica.org/overview.php ACPICA is written in ANSI C, and can be generated under many different 32-bit and 64-bit OS development environments. Source code packages are provided for the following environments: Microsoft Windows* and UNIX*. 1) The Windows package includes Visual C++* project files and other ACPI utilities that run under Windows. 2) The UNIX package has a format and licensing suitable for inclusion by commercial OS vendors. There is no Linux* source code package since ACPICA updates for Linux are provided periodically in patch form. The ACPICA subsystem is modified to integrate smoothly with the Linux kernel source. This includes conversion of the ACPICA source code to the Linux kernel coding standard, and licensing under the GNU General Public License. Seems like the FSF needs to work on a BSD-compatible licence for this code too. Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Zip file making issues
- Original Message - From: "Ryan Coleman" To: "FreeBSD Questions" Sent: Monday, September 20, 2010 11:11 PM Subject: Zip file making issues Does anyone have any advice for this? I'm working on a series of commands - executed in a shell script - that zips a deep directory in a tree. But it makes the full path as part of the ZIP file. That's not what I want - I just want those directories that appear after the "*". In this case: "-J" eliminates all the paths - bad because it also kills those after the "*" Here's my default that includes the whole d*mn path. /usr/local/bin/zip -r /usr/www/d3photography.com/htdocs/images/paidphotos/1284343047-Le-ach.zip /mount/archive/orders/Sep20/1284343047-Le-ach/download* I could just run a "cd" to the directory parent and do it there - that would solve the problem - but that's simply too dangerous if the script generator throws an error on the next set of commands (a risk I do not want to take). So how do I get it to store as "download/small/image.jpg" inside of the ZIP file instead of "mount/archive/orders/Sep20/1284343047-Le-ach/download/small/image.jpg". I only recently discovered this bug -- none of my clients have had the guts to tell me about it. == Just change the directory before you start zipping. cd /mount/archive/orders/Sep20/1284343047-Le-ach /usr/local/bin/zip -r /usr/www/d3photography.com/htdocs/images/paidphotos/1284343047-Le-ch.zip download* -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ssh under attack - sessions in accepted state hogging CPU
On 10/08/10 05.13, Matt Emmerton wrote: I'm in the middle of dealing with a SSH brute force attack that is relentless. I'm working on getting sshguard+ipfw in place to deal with it, but in the meantime, my box is getting pegged because sshd is accepting some connections which are getting stuck in [accepted] state and eating CPU. I know there's not much I can do about the brute force attacks, but will upgrading openssh avoid these stuck connections? If the attack you're experiencing is trying to exhaust system resources by opening a large number of connections, then you may want to toggle these options in sshd_config: ClientAliveInterval LoginGraceTime MaxAuthTries MaxSessions MaxStartups Check the man-page. Secondly, check your logs if this attack is from a limited range of IPs, if so, you might want to try block those ranges. If your users will only connect from your country, then blocking other countries in your firewall is very effective. Thanks to everyone for their help. I did have MaxSessions set to a small number, but that essentially DoS'd my access to the server when enough sshd processes got hung. sshguard+ipfw was blocking a large number of attacks, but the other attacks that were coming in and hanging sshd weren't getting caught (because they weren't repetitive.) I have moved some of my servers to alternate ports, and on the others I tweaked some of the settings Erik suggested which has helped a lot. Thanks for all the advice. -- Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ssh under attack - sessions in accepted state hogging CPU
On 8/9/2010 8:13 PM, Matt Emmerton wrote: Hi all, I'm in the middle of dealing with a SSH brute force attack that is relentless. I'm working on getting sshguard+ipfw in place to deal with it, but in the meantime, my box is getting pegged because sshd is accepting some connections which are getting stuck in [accepted] state and eating CPU. I know there's not much I can do about the brute force attacks, but will upgrading openssh avoid these stuck connections? There is a cracking/DoS technique, that tries to exhaust a servers resources, by continualy issuing connect requests, in the hope that when the stack croaks in some way, it'll somehow drop it's guard, or go off air permanently. Have you upset anyone recently? Not that I know of - unless my wife counts :) Can you not move your services to non standard IP ports, moving away from the standard ports, where all the script kiddies & bots hang out, or are your clients cast in concrete? Right now, they are cast in concrete. I want to move many of them to public keys, so maybe I will change the port at the same time too. I've got FTP, Web and SSH systems running on two sites, on very non standard ports, with next to no one "trying" to get in as a result, but maintaining full visibility to the clients that need them, and know where they are! All my standard ports (80, 21, 22 etc) show as non existant to the outside world, except on one site, where the mail server is continualy getting hammered, but the site's ISP say they cant forward mail to any other port. I have two servers on the same IP block, and one is getting brute-forced and the other is not. I guess it's just a matter of time before the botnets seek it out. The users have no problems, so long as I correctly specify the port with the address to them, as in 'address:port' if I send them a link etc, or an example how to fill in a connection dialog. I'm seriously going to consider this. -- Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ssh under attack - sessions in accepted state hogging CPU
> I know there's not much I can do about the brute force attacks, but will > upgrading openssh avoid these stuck connections? 1. switch over to using solely RSA keys In the works; I have too many users to convert :( 2. switch to a non-standard port This is not attractive, even though it would be effective. I tried this once already and my support volume skyrocketed so I had to switch back. 3. what version of openssh are you currently using? Whatever ships with 8.0-REL, which appears to be: OpenSSL> version OpenSSL 0.9.8k 25 Mar 2009 Regards, -- Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ssh under attack - sessions in accepted state hogging CPU
> I know there's not much I can do about the brute force attacks, but will > upgrading openssh avoid these stuck connections? 1. switch over to using solely RSA keys In the works; I have too many users to convert :( 2. switch to a non-standard port This is not attractive, even though it would be effective. I tried this once already and my support volume skyrocketed. 3. what version of openssh are you currently using? Whatever ships with 8.0-REL, which appears to be: Best James= ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
ssh under attack - sessions in accepted state hogging CPU
Hi all, I'm in the middle of dealing with a SSH brute force attack that is relentless. I'm working on getting sshguard+ipfw in place to deal with it, but in the meantime, my box is getting pegged because sshd is accepting some connections which are getting stuck in [accepted] state and eating CPU. I know there's not much I can do about the brute force attacks, but will upgrading openssh avoid these stuck connections? root 39127 35.2 0.1 6724 3036 ?? Rs 11:10PM 0:37.91 sshd: [accepted] (sshd) root 39368 33.6 0.1 6724 3036 ?? Rs 11:10PM 0:22.99 sshd: [accepted] (sshd) root 39138 33.1 0.1 6724 3036 ?? Rs 11:10PM 0:41.94 sshd: [accepted] (sshd) root 39137 32.5 0.1 6724 3036 ?? Rs 11:10PM 0:36.56 sshd: [accepted] (sshd) root 39135 31.0 0.1 6724 3036 ?? Rs 11:10PM 0:35.09 sshd: [accepted] (sshd) root 39366 30.9 0.1 6724 3036 ?? Rs 11:10PM 0:23.01 sshd: [accepted] (sshd) root 39132 30.8 0.1 6724 3036 ?? Rs 11:10PM 0:35.21 sshd: [accepted] (sshd) root 39131 30.7 0.1 6724 3036 ?? Rs 11:10PM 0:38.07 sshd: [accepted] (sshd) root 39134 30.2 0.1 6724 3036 ?? Rs 11:10PM 0:40.96 sshd: [accepted] (sshd) root 39367 29.3 0.1 6724 3036 ?? Rs 11:10PM 0:22.08 sshd: [accepted] (sshd) PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 39597 root 1 1030 6724K 3036K RUN 3 0:28 35.06% sshd 39599 root 1 1030 6724K 3036K RUN 0 0:26 34.96% sshd 39596 root 1 1030 6724K 3036K RUN 0 0:27 34.77% sshd 39579 root 1 1030 6724K 3036K CPU33 0:28 33.69% sshd 39592 root 1 1020 6724K 3036K RUN 2 0:27 32.18% sshd 39591 root 1 1020 6724K 3036K CPU22 0:27 31.88% sshd -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: apache22 and new hostname???
Gary, But I do need the basics of having/serving/hosting two domains on one computer. What you are looking for are called "virtual hosts". See the examples in /usr/local/etc/apache22/extra/httpd-vhosts.conf. The Apache documentation (mentioned in the above file) is also helpful. Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Sendmail & Procmail
on 01-29-2010, David Kelly wrote: On Fri, Jan 29, 2010 at 02:59:34PM -0500, Clayton Scott Kern wrote: > I just upgraded to FBSD 8.0 from 6.4 and I'm having a problem with > sendmail passing email to procmail. I only use this combination for > email from root's cron jobs. Right now emails to me from cron go to > /var/mail/ckern1. [...] > I created the cf file using make cf, then make install and make > restart. OK, but did the procmail enhancements make it in the generated .cf file? > What have I missed. This is the same setup on 6.4 and it worked fine. If making procmail available (or mandatory) for all users I can see justification for what you are trying. But for just one user why not keep it simple with a "|/usr/local/bin/procmail" in /etc/aliases? I aliased root to me and now it works. Thank you for the tip. I set up sendmail this way years ago, before I discovered fetchmail, procmail, getmail & maildrop. I would like to get away from sendmail or any other MTA for that matter, but never found solution for handling the emails generated by the system. Check out DragonFlyBSD's dma(1). It's designed just for this purpose. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: spamassassin Y2010 bug
On Sun, 03 Jan 2010 20:10:19 + Matthew Seaman wrote: Comments, critique are welcome. Unless there are any killer bugs, I'll send-pr(1) in a week or so. You have: : ${daily_sa_compile="YES"} sa-compile is installed by the SA port, but it requires devel/re2c, which is an optional dependency. With a standard install your script will update the rules, the compile will unconditionally fail, and so spamd won't get restarted. You could detect the re2c port, but I think it would be better to turn it off by default I'd also suggest running sa-compile with nice by default. I've put up a set of diffs (patches) in shar format that address some of these issues: 1) re2c is listed as a run dependency. No two ways around it - if you do plan on running sa-compile at some time, you'll need re2c, and chances are that the machine that is running sa-update is also going to be running sa-compile. 2) sa-compile is nice(1)'d by default, and you can provide other flags to nice(1) as well. See http://www.gsicomp.on.ca/~matt/sa-utils-patches.shar Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: clear old output in login screen?
0> jw wrote: On Sun, May 3, 2009 at 1:51 PM, Paul B. Mahol wrote: > echo $TERM | grep cons25 >> /dev/null && clear && vidcontrol -C Aha! I didn't know about 'vidcontrol -C' That combined with 'clear' does the trick. However... Is there any way I could have this execute when the "login:" prompt displays, rather than having each user need to do it themselves? In other words, I want this clearing to happen for all users regardless of shell, etc. If I needed to do this, could not find a way to do it via configuration settings, and didn't want to hack the login source code, I would try renaming the login binary to something like login.real, and replacing it with an executable script containing something like: #!/bin/csh clear vidcontrol -C exec /usr/bin/login.real "$@" Granted such a hack will need to be redone any time you do an installworld. The solution I've deployed in my environment is to have /etc/issue contain a single ^L character. Prior to doing that, /etc/issue contained 25+ blank lines, which effectively cleared the terminal before displaying the login prompt. Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: IPFW in-kernel NAT: How to compile?
At 05:43 PM 2/1/2009, Dan Nelson wrote: Do you have "options LIBALIAS" in your kernel config? Nope. There was nothing that said that such an option was needed (or even that it existed). I did find it, via a recursive grep, in a file labeled "NOTES" a couple of levels up in the directory hierarchy. I'm trying a compile now to see if that's all that's needed to fix the problem. It looks as if there's no longer one easy place to find out how to configure a kernel. The options used to all be in a LINT file that was present in the configuration directory No more. The LINT file moved from a static file to a dynamically-generated file a while ago since not all options are applicable for all platforms. A generic NOTES file (in /usr/src/sys/conf) is combined with a platform-specific NOTES file (in /usr/src/sys//conf, where is i386, amd64, pc98, etc) to create the LINT file. $ cd /usr/src/sys/i386/conf $ make LINT cat ../../conf/NOTES NOTES | sed -E -n -f ../../conf/makeLINT.sed > LINT Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Secondary DNS or BSD Server space
Everyone: We just got word that Neustar, which bought DNS service provider Nominum a few years ago, is shutting down Nominum's "secondary.com" service. The service used to provide secondary DNS for users' zones at no charge. I and the other secondary.com users I know think it's reasonable for the company to charge a small but reasonable fee for the service instead of keeping it running for free. But alas, Neustar is getting greedy. The only alternative they offer is a $50-a-month "managed DNS" service, which we don't want or need. (We're fine maintaining our own master servers and zones; we just need a slave to use as a secondary.) So, we're looking for alternatives. Does anyone on this list know of a good, BSD-based service which offers reasonably priced secondary DNS? Or reasonably priced servers at a server farm, where I and others can set up a secondary DNS server? There was a thread on this just the other day here. Not sure if they are BSD-based, but both dyndns.org and zoneedit.com offser secondary service for practically nothing. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: looking for a secondary.
On Tuesday, December 16, 2008, at 02:42PM, "Gary Kline" wrote: i was recently informed that the firm that bought secondary.com is going to begin charging $100/mo. i nearly choked on that, but whatever... i'm looking for an *.org who does DNS secondaries free oe nearly so. i know there is at least one place, but it's been years. Not free, but nearly so: http://www.dyndns.com/services/dns/secdns/ $17.50/year = $1.46/month... Other options include: http://www.backupdns.com/index.html $0.80/month/zone for a small number of zones. Or http://www.zoneedit.com They will host DNS (primary and/or secondary) for 5 zones, free of charge (subject to bandwidth). -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: I need Install DB2 in Freebsd with a tool administration likewebmin but for database DB2
Tomas, DB2 comes with a Java-based GUI administration tool called the DB2 Control Center. Unfortunately, it can only be installed on a supported DB2 client platform, such as Linux, Windows or various commercial UNIX platforms. DB2 does not currently have any other type of GUI administration tool. Regards, Matt Emmerton - Original Message - From: "Tomás Rodriguez" <[EMAIL PROTECTED]> To: Cc: <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2008 2:14 PM Subject: Re: I need Install DB2 in Freebsd with a tool administration likewebmin but for database DB2 thanks Michael well I wanna install ibm db2 server for developer one application in PHP or Java, but I need a graphic tools for his administration. thanks again sincerely TOMAS - Original Message From: michael <[EMAIL PROTECTED]> To: Tomás Rodriguez <[EMAIL PROTECTED]> Cc: freebsd-questions@freebsd.org Sent: Wednesday, December 10, 2008 1:50:42 PM Subject: Re: I need Install DB2 in Freebsd with a tool administration like webmin but for database DB2 you want to install ibm db2 server? or you want to install db2 client? Tomás Rodriguez wrote: > Hi, everyone. > > I wanna install DB2 in my unix freebsd, but I never doing that, in fact > I need a tool like GUI or like webmin, for the adminsitration of the DB2. who can help me with that. > I'll appreciate any help, because I have been very hurry with that I'll developer a tools in DB2 butnever worked in this database management, I always work in mysql server. > please any help? > > have a great day for everyone here. > sincerely > Tomas > > > > - Original Message > From: Richard KHOO Guan Chen > To: "freebsd-questions@freebsd.org" > Sent: Tuesday, December 9, 2008 9:58:13 PM > Subject: Re: portaudit -solved > > Thank you Sahil Tandon > > I have solved the problem. My ISP uses proxy for http (I think) as I > have closed off port 80 and opened port 8080, and that has got me to the web with no problem. I have also been able to use ports installation with my ipf firewall setup, so I could not understand why portaudit command failed. I have now opened up port 80 and get the thing working. > > Your message got me thinking in this direction as you confiremed that > the file is from http://www.FreeBSD.org/ports. > > Once again thanks and apologies for the late reply. > > > On Mon, 8 Dec 2008, Sahil Tandon wrote: > > >> Richard KHOO Guan Chen wrote: >> >> >>> I have recently installed 6.4 release and tried to do a portausidt -F. >>> No go reply was that auditfile.tbz unavailable. >>> >> By default, portaudit fetches the database from www.FreeBSD.org/ports. >> What is the output of the following commands on your machine? >> >> % wget http://www.FreeBSD.org/ports/auditfile.tbz >> % fetch -1amp http://www.FreeBSD.org/ports/auditfile.tbz >> >> Have you created or modified /usr/local/etc/portaudit.conf? >> >> -- Sahil Tandon >> ___ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "[EMAIL PROTECTED]" >> >> > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > > > > __ > Instant Messaging, free SMS, sharing photos and more... Try the new > Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" __ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.16/1841 - Release Date: 12/10/2008 9:30 AM ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: recommendation word processer for xfce
On Thu, Nov 6, 2008 at 10:34 PM, FBSD1 <[EMAIL PROTECTED]> wrote: Top posting is how Microsoft outlook works. Nothing I can do about it. sorry You could disable "include original message". Or use better software. Or just scroll down the to bottom of the message before typing anything. -- Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: man -t odd page size
On Wednesday 22 October 2008 10:38:40 pm Polytropon wrote: Hi! On Wed, 22 Oct 2008 21:56:20 -0200, Gonzalo Nemmi <[EMAIL PROTECTED]> wrote: > Is there an easy way to get man to format the man page using plain good > ISO 216 standard A4 page size? My suggfestion for an attempt would be to first strip any control characters from the output of "man -P cat " and then pipe it to an ASCII to PDF converter (a2ps, if I remember correctly); this would remove any markups, I know, but would lead to a PDF output using the system's default paper size, A4 (I hope). I know this is not the best idea, but it should be accomplishable without many problems. A better idea would be to write a simple filter that convert the man page (including formatting characters) into LaTeX source and then run it through pdflatex. Exactly .. you got it just the way I wanted .. after your explanantion, the question _begs_ to be asked: do we, citizens of ISO 216 adopting countries, have to walk that cumbersome path in order to get something as simple as an ISO compliant document?? Shouldn't it be the other way around??? Perhaps, but since the roots of *BSD are in the USA, letter was a sensible default (at the time). Now, if a collection of FreeBSD members from ISO 216 adopting companies wanted to figure out a way to put "default paper size" into some kind of locale option that man (and other tools) could use, then that would go a long way towards reducing the pain. -- Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Port for drawing directed graphs?
At 2008-09-15T10:31:57-04:00, John Almberg wrote: I am working on some software that must, as it's final output, produce a printout of a directed graph... nodes, connected by directed links. The printout could be generated by a postscript file, jpg, whatever. Does anyone know of a utility (in ports?) that can take a data set (for example, a two dimensional array that defines the nodes and the links between them), and produce a printable graph? What you want is the 'dot' tool from the 'graphviz' port in /usr/ports/graphics/graphviz. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD on IBM x3400?
Anyone had any luck (or horror stories) with FreeBSD on IBM x3400 systems? -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: syslog marking sendmail output as "kernel:"
> I understand there isn't a problem with the first one, but then its > logging > the second as a "kernel:" entry. My syslog.conf is : > > *.err;kern.debug;auth.notice;mail.crit /dev/console > *.emerg * > *.debug /var/log/spool > > Is there a way to stop that second entry? It keeps tripping my syslog > monitoring program. What release are you running? (Show the output of uname -a) Its a 5.3 system It's just a formatting issue. > Oct 16 00:00:25 valhalla sm-mta[69206]: l9G40Kf5069206: SYSERR(root): > > Oct 16 00:00:25 valhalla kernel: > Oct 16 00:00:25 valhalla sm-mta[69206]: l9G40Kf5069206: SYSERR(root): > There must be somewhere in the kernel where we're writing to the syslog with an empty error string. The syslog routines expect a newline-terminated character string, so the lack of a newline causes the next entry to be on the same line as the (non-existant) kernel message. The trouble will be tracking this down. But look at it again... Oct 16 00:02:32 valhalla sm-mta[69570]: l9G42RKM069570: SYSERR(root): collect: I/O error on connection from dsl-189-133-2-240.prod-infinitum.com.mx, from=<[EMAIL PROTECTED]> Oct 16 00:02:32 valhalla kernel: Oct 16 00:02:32 valhalla sm-mta[69570]: l9G42RKM069570: SYSERR(root): collect: I/O error on connection from dsl-189-133-2-240.prod-infinitum.com.mx, from=<[EMAIL PROTECTED]> I didn't wrap the lines this time. Its the SAME message. Once normal, ONCE logged as "kernel". I would believe something is KNOWINGLY outputting it twice. If it was 2 DIFFERENT messages, I could see it was completely a lack of new line issue. But why would it log the sm-mta output, then *something* part log a kernel message, THEN re-log out the sm-mta message? Ah, I didn't notice that sm-mta was logging the same message twice. Note that all syslog messages (from the kernel and user programs) are picked up by syslogd and logged. There's nothing preventing kernel and user-mode messages from getting interleaved. So assuming that sm-mta is logging the same message twice, it's perfectly viable that something from the kernel could be stuck in between the two instances from sm-mta. Regardless, I see two issues: 1) Why is the same sm-mta message getting dumped twice? 2) Why is an empty kernel message getting dumped (which screws up formatting?) Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: syslog marking sendmail output as "kernel:"
- Original Message - From: "Tuc at T-B-O-H.NET" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 16, 2007 8:05 PM Subject: syslog marking sendmail output as "kernel:" Hi, I'm seeing in the logs : Oct 16 00:00:25 valhalla sm-mta[69206]: l9G40Kf5069206: SYSERR(root): collect: I /O error on connection from bd0614db.virtua.com.br, from=<[EMAIL PROTECTED] om> Oct 16 00:00:25 valhalla kernel: Oct 16 00:00:25 valhalla sm-mta[69206]: l9G40Kf 5069206: SYSERR(root): collect: I/O error on connection from bd0614db.virtua.com .br, from=<[EMAIL PROTECTED]> I understand there isn't a problem with the first one, but then its logging the second as a "kernel:" entry. My syslog.conf is : *.err;kern.debug;auth.notice;mail.crit /dev/console *.emerg * *.debug /var/log/spool Is there a way to stop that second entry? It keeps tripping my syslog monitoring program. What release are you running? (Show the output of uname -a) It's just a formatting issue. Oct 16 00:00:25 valhalla sm-mta[69206]: l9G40Kf5069206: SYSERR(root): Oct 16 00:00:25 valhalla kernel: Oct 16 00:00:25 valhalla sm-mta[69206]: l9G40Kf5069206: SYSERR(root): There must be somewhere in the kernel where we're writing to the syslog with an empty error string. The syslog routines expect a newline-terminated character string, so the lack of a newline causes the next entry to be on the same line as the (non-existant) kernel message. The trouble will be tracking this down. Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: gpg-agent
> I have been having trouble getting gpg-agent to work. kgpg complained about > the agent not running. I added this to my ~/.bashrc: > > GPG_TTY=`tty` > export GPG_TTY > > This seems to have taken care of the problem but it only works when my default > shell is bash. If my shell is tcsh, it doesn't work. This is what I have in > my ~/.cshrc: > > setenv GPG_TTY tty > > Apparently this is wrong. Any ideas as to what I can try? I noticed that you're using backticks, so GPG_TTY gets set to the output of the tty command - not the text "tty" itself. Perhaps you want this? setenv GPG_TTY `tty` -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
[OT] mail disclaimers [ was Re: Mail etiquette (was: What is this mean by this term) ]
> > [ snip much ado about mail etiquette and sigs and whatnot ] > > > > I started using the lists from work years ago when I was > > establishing the FreeBSD servers and it was easier to get > > Q&A stuff done... Since then the weenies have come along > > and changed out a perfectly servicable Postfix / Cyrus > > mail system with M$ Exchg(barf), and the beanies wanted the > > disclaimers .. > > > > Have any of these disclaimers ever proven to be even the slightest bit > legally enforceable? > > I mean, for God's sake, they're at the bottom of the message, > essentially telling you not to read the message you just read. Probably just as enforceable as the shrink-wrap licence on Windows. (By using this CD, you agree to be bound by the EULA which you will get a chance to review when installing the software...) -- Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Daylight savings time / 6.1 and 4.11
> On Jan 16, 2007, at Tuesday, Jan16, 2007 1:59 PM, Dan Nelson wrote: > > > Since it's not a security issue, I doubt the new zone files will go > > into any -p# branch. If you were tracking the main branches (RELENG_4 > > or RELENG_6) instead of a -RELEASE branch (RELENG_4_11 or RELENG_6_1), > > you would have them, though. Quickest fix would be to install the > > misc/zoneinfo port, which doesn't care what release you're running. > > Whoa there?! Are you telling me that when I use cvsup with > the following supfile I am only getting security fixes? > > *default tag=RELENG_6_1 > *default host=cvsup14.FreeBSD.org > *default prefix=/usr > *default base=/usr/local/etc/cvsup > *default release=cvs delete use-rel-suffix From http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html: RELENG_6_1 The release branch for FreeBSD-6.1, used only for security advisories and other critical fixes I'm sure a case could be made with regard to updated timezone information being "critical" -- but since a port exists for timezone information, there is less of a need to push this into the release branch. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl substitution question
> o > Anybody know if I can do a perl substitution of the scads of > \x80\x9D to simple double-quotes (") from the command line? 80 hex = 200 octal 9D hex = 235 octal cat k | tr "\200" "\"" | tr "\235" "\"" > k.new -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: who's using that port?
> I came home tonight to find my server with a full /var partition due > to httpd-error.log being very full of error messages. I cleaned it up, > and restarted apache to find that it wouldn't bind to ports 80 and 443 > as they were in use. > > netstat -na confirmed that they were, but not by who. There's no -p > argument to track the pid of the process using the port. > > How do you track that on BSD? See sockstat(1). -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to stop automatic creation of /var/mail/$USER
> On 1/1/07, Sahil Tandon <[EMAIL PROTECTED]> wrote: > > When I 'adduser' a new account, a /var/mail/$USER file is created. This is > > unnecessary as our MTA is configured to deliver mail directly to a user's > > ~/Maildir/, where the IMAP server looks by default. > > > > There is nothing in the adduser or adduser.conf man pages that explains how > > to manipulate (or, in my case, simply stop) the creation of this file. > > I do the same. I don't really care about the file, as it's not hurting > anything. I looked at the adduser sources and couldn't find anything that explicitly creates the /var/mail/$USER directory. Further debugging shows that the "pw useradd" command (see the adduser subroutine) is what is creating the mail file. There doesn't seem to be a way from the command-line to have pw *not* create the mail spool file, although code will skip this is PWALTDIR() is set -- although our version of pw doesn't set this at all. There also appears to be a shortage of command line options that could be used to enable this behaviour. Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: IBM DB2 on FreeBSD 6.1
> Hi, > >I want to use FreeBSD on Server Production > >My goal is to use IBM DB2 database server (C-Express is give in tgz, with a java installer ... so) > >Does any one can report a success on this product under freebsd ? > >It's as fast as on linux box ? DB2 on Linux makes extensive use of Linux-isms which FreeBSD does not reproduce, mostly due to kernel differences but also due to issues in the linuxulator. In the past, I've found differences with stat, memory allocation and AIO features which cripple DB2 to the point of not starting up or running properly. If anyone wants work to resolve these issues, please contact me off-list. I have access to the information that we'd need to get this working. -- Matt Emmerton ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Demandez à ceux qui savent sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: port php5 - what I am supposed to do here?
> Hello List, > > Portuadit telles my about the "open_basedir Race Condition > Vulnerability", OK. > > By reading the advisory on > http://www.hardened-php.net/advisory_082006.132.html I can safely say > this does not apply to our environment, we don't use open_basedir or > safe_mode and Suhosin is planned anyway (after test). > > With a "portsnap fetch update" I get a new version php5-5.1.6_1 in my > portstree, OK. > > But "portmanager -u" or even manually with "make install clean" > everything fails with the following message: > > ===> php5-5.1.6_1 has known vulnerabilities: > => php -- open_basedir Race Condition Vulnerability. >Reference: > <http://www.FreeBSD.org/ports/portaudit/edabe438-542f-11db-a5ae-00508d6a62df .html> > => Please update your ports tree and try again. > *** Error code 1 > > So what to do now? You've established that the security issue doesn't apply to your environment. 1) Add "DISABLE_VULNERABILITIES=yes" to /etc/make.conf 2) Run "portupgrade -u" or "make install clean" Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ipw(4) and iwi(4): Intel's Pro Wireless firmware licensingproblems
> On 05/10/06, Chuck Swiger <[EMAIL PROTECTED]> wrote: > > On Oct 4, 2006, at 7:46 PM, Constantine A. Murenin wrote: > > > Why are none of the manual pages of FreeBSD say anything about why > > > Intel Wireless devices do not work by default? > > > > > > http://www.freebsd.org/cgi/man.cgi?query=ipw > > > http://www.freebsd.org/cgi/man.cgi?query=iwi > > > > The manpages you've linked to explicitly state: > > > > This driver requires firmware to be loaded before it will > > work. You need > > to obtain ipwcontrol(8) from the IPW web page listed below to > > accomplish > > loading the firmware before ifconfig(8) will work. > > > > Is there some part of this which is unclear to you, Constantine? > > Yes, Chuck, some part is indeed unclear to me, precisely the part that > explains why does one have to go into that much trouble to have a > working system. It's required by Intel's choice of licence for the firmware for that wireless NIC. > Not permitting the firmware to be redistributed has nothing to do with > the FCC, however. > No, firmware redistribution is ENTIRELY up to Intel. I want the > firmware to be available under a BSD or ISC licence, just as with > Ralink. Intel's firmware is already available, but under a different > licence. Where does the FCC say that Intel must distribute firmware > under a non-OSS-friendly licence? It doesn't. However, most licences allow derivative works to be created outside of Intel's control. If one of these derivative work allows the device to be used in a manner that violates FCC rules and regulations, Intel remains liable because they a) the provider of the hardware device in question and b) the provider of the initial software (that spawned the derivative work) There is nothing stopping Intel from releasing the firmware, except for the legal fear that the FCC will hold them accountable for illegal acts performed with their device. > > As to the point raised above, the firmware license actually does > > permit an individual user, including an OS developer, to copy and > > redistribute the software to others, so long as the recepient agrees > > to the license terms: > > > > "LICENSE. You may copy and use the Software, subject to these > > conditions: > > 1. This Software is licensed for use only in conjunction with Intel > > component > > products. Use of the Software in conjunction with non-Intel > > component > > products is not licensed hereunder. > > So if I don't have an Intel Wireless in the system, is it still legal > to have the firmware in my system files? No. In this case it is not being used "in conjunction with Intel component products" as it stands alone. > Chuck, if the licence is as good as you make it sound, would you tell > me why FreeBSD, OpenBSD, Debian GNU/Linux and a lot of other systems > do not include the firmware in the base system? > > If you think downloading firmwares and accepting tonnes of EUAs is > completely normal, then why is fxp(4) firmware/microcode/whatever it's > called in fxp(4) is included in every OpenBSD and FreeBSD release? Because fxp is not a wireless device, and thus does not fall under the FCC's control for RADIO devices. (The normal Class A/B rules for device emissions still apply, but since the device is a hardwire device, there's nary a way to change the firmware to be in violation of these rules.) -- Matt Emmerton ___ 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 give 2 parameters to programs in an unix enviroment?
> If I have two files "foo" and "bar" and try to run diff on them I write: > $diff foo bar > I can also write > $cat foo | diff - bar > But how do I give a program two (2) commands? not only to diff > but to any program that wants double input... > I wanna do > $cat foo | cat bar | diff - - > especially with echo commands that would be handy so I dont have to > create files! You don't. Recall that | is the "pipe" operator, and like in real life, there's one input and one output. Pipes used on the command line are for all intents and purposes "unnamed", and you can only build up one "pipeline". That's why named pipes were invented, so that you could have multiple pipes and refer to them by name (instead of implicitly). But in your case, using named pipes is really no different than using files. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: arp -a takes 40 secs to display cached MAC addresses. Is thisnormal?
- Original Message - From: "boink" <[EMAIL PROTECTED]> To: Sent: Monday, April 03, 2006 6:06 PM Subject: arp -a takes 40 secs to display cached MAC addresses. Is thisnormal? Dear FreeBSD, # uname -a FreeBSD MyFBSD.int.vir 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 # /usr/bin/time -h arp -a MyFBSD (10.1.2.1) at 00:00:f8:10:6c:8a on dc0 permanent [ethernet] MyFirewall (10.1.2.254) at 00:0d:b9:11:a5:b9 on dc0 [ethernet] ? (10.1.2.255) at ff:ff:ff:ff:ff:ff on dc0 permanent [ethernet] 40.22s real 0.00s user 0.00s sys ^ ...where: arp is attempting to do a reverse-DNS lookup on 10.1.2.255. No answer is received from your DNS server in the allowable time-out interval, so it displays the name as '?'. Redo the same test using 'arp -a -n' and you'll see it complete immediately. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
6.0-REL problems with ISA ed0, FFS corruption and ancient hardware
I recently upgraded a 4.11-REL machine to 6.0-REL and have run into some snags. While the installation from CD went fine, after configuring and enabling my ed0 NIC, bad things start to happen. FWIW, this machine is an ancient (hardware circa 1991, BIOS circa 1994) dual-Pentium 133 MHz machine, with EISA/PCI and onboard SCSI. So far I can reliably reproduce two panics, one appears to be a ed driver bug (based on reports of similar panics with different NICs, notably nge) and one is a filesystem corruption problem. Here's the process that I go through to reliably reproduce both problems. 1) Boot machine in multi-user mode 2) After ifconfig ed0, machine panics with a trap 12 in ithread_loop. 3) In debugger, reset (or panic to get vmcore) 4) Reboot in multi-user mode, but set "hint.ed.0.disabled=1" in the boot loader (to avoid ifconifg panic) 5) Root filesystem is fsckd; all other filesystems are scheduled for background fsck 6) Encounter panic "ffs_valloc: dup alloc" 7) In debugger, reset (or panic to get vmcore) Attached is the full dmesg and stacktrace output from kgdb for the *second* panic, since I figure this is the more critical issue. -- Matt Emmerton Script started on Sat Mar 18 12:58:13 2006 [EMAIL PROTECTED] kgdb /boot/kernel/kernel.debug vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Unread portion of the kernel message buffer: Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-RELEASE #0: Sat Mar 18 12:00:50 EST 2006 [EMAIL PROTECTED]:/usr2/obj/usr2/src/sys/GABBY.20060316.01 MPTable: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium/P54C (133.16-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping = 12 Features=0x3bf real memory = 50331648 (48 MB) avail memory = 43941888 (41 MB) Intel Pentium detected, installing workaround for F00F bug ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-15 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pci0: on pcib0 eisab0: at device 2.0 on pci0 eisa0: on eisab0 mainboard0: on eisa0 slot 0 isa0: on eisab0 ahc0: port 0xf800-0xf8ff mem 0xffbef000-0xffbe irq 11 at device 11.0 on pci0 ahc0: [GIANT-LOCKED] aic7870: Wide Channel A, SCSI Id=7, 16/253 SCBs orm0: at iomem 0xc-0xc7fff,0xc8000-0xca7ff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A vga0: at port 0x3c0-0x3df iomem 0xa-0xb on isa0 unknown: can't assign resources (irq) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (port) Timecounter "TSC" frequency 133160146 Hz quality 800 Timecounters tick every 1.000 msec Waiting 10 seconds for SCSI devices to settle cd0 at ahc0 bus 0 target 4 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present da1 at ahc0 bus 0 target 5 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled da1: 2049MB (4197405 512 byte sectors: 64H 32S/T 2049C) da0 at ahc0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled da0: 2049MB (4197405 512 byte sectors: 64H 32S/T 2049C) Trying to mount root from ufs:/dev/da0s1a WARNING: / was not properly dismounted <118>Loading configuration files. <118>kernel dumps on /dev/da0s1b <118>Entropy harvesting: <118>. <118>swapon:
Re: I belong to too many groups
> It took me so long to get onto this list that in the end I just gave and > reinstalled over the top of the old one. It all works now, but I would still > be interested in a way around the problem if one exists. The original > problem is described below > > I recently installed FreeBSD 6 RELEASE onto a hard drive and added two other > users, bob and bill. > > Whilst I was doing this I decided to make root and bob members of ALL the > groups in the system. > > I now find that I am unable to log in as either root or bob nor can I su > from bob. > I have tried booting to safe mode but it will still not allow me to do > anything > The messages that I get from the system are: > > login: ROOT LOGIN (root) ON ttyv0 > login: initgroups(root,0) : Invalid argument > login: setusercontext() failed - exiting > > I can still log in as bill and this will allow me to see the system files > but bill doesn't have the authority to change anything. > I tried to su to root but bill is not in the wheel group. > If I want to run a graphical environment (and I do) then I need to start > this up as root. > Is there any way to get past this problem or will I need to reinstall? Boot in single-user mode (type "boot -s" at the boot prompt). Then you will be "root" and can fix up your /etc/group files. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: runtime error (libm.so.3)
> 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 31 03:17:27 EST 2005...i386 > > When I try to run a certain program that I can compile and link without any > warnings or errors I get the following error message: > > /libexec/ld-elf.so.1: Shared object "libm.so.3" not found, required by > "libGL.so.1" > > All of my ports are up-to-date. How can I get rid of this error? > > I'm compiling and linking separately like this: > > g++ -I/usr/X11R6/include -c `wx-config --cxxflags` winmain.cpp > g++ -o winmain winmain.o /usr/local/lib/compat/libm.so.3 `wx-config > --libs gl,media,std,core,base` Perhaps you need to refresh your shared library cache -- run "ldconfig -R". Is there a particular reason why you're purposely using a back-level version of libm? libm.so.4 is the version that is part of with 6.x. If you don't need a specific version, then use the -l option to link, like this: g++ -o winmain winmain.o -lm `wx-config --libs gl,media,std,core,base` Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Need help switching between two FreeBSD boot drives
> hi all- > > i've got one i've been tearing my hair out over here, and even after > finding some information out there, i'm still totally lost. this may > take a while to explain, so please bear with me. > > I've got 2 80GB SATA drives in my FreeBSD machine, which are mapped as > /dev/ad4 and /dev/ad6. I've got 5_STABLE installed on 1 drive, and my > plan is to get a working install of 6_STABLE on the other drive, so i > can take my time to work out the kinks with the upgrade on the 2nd drive > (it hasn't been straighforward) and be able to switch back to my working > 5_STABLE machine as needed. That's the plan, anyway. > > So I followed the general instructions here: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/book.html#NEW-HUGE-DISK > > to clone drive 1 over to drive 2. very cool, no problems, i can pick > either drive in the bootloader and boot up there. so all is well and > good until i boot into drive 2 and start the upgrade process. I realize > the /dev/ad4 and /dev/ad6 are not exactly fixed. It seems almost > arbitrary which drive ends up mapped as /dev/ad6 and /dev/ad4, and this > caused me to nearly munge all of the data on the working 5_STABLE > install before i caught myself. If i boot into drive 1 at boot time, > everything ends up being mounted at /dev/ad6. If i mount into drive 2 at > boot time, the same thing happens. Mind you, i /did/ check /etc/fstab to > ensure that all was well, but i ended up with a weird situation where, > say, / would be /dev/ad4s1a and all of the other mountpoints were at > /dev/ad6*. ugh. confusing! > > I found this page, which explains the problem /somewhat/: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html > > but to be completely honest, the concept didn't stick. What i need help > with, since these drives are exactly the same size and make, is how i > can do the following: > > 1) determine the relationship between Drive 1/Drive 2 and ad4/ad6 > 2) determine exactly which physical drive i am working on at any given > time, since the /dev node mappings seem to be malleable Drive 0/Drive 1 always refer to the same devices, as FreeBSD ignores the BIOS mappings (which may change, as outlined in the above docs). These drive numbers are assigned based on physical controller/device numbering and addressing, and thus won't change unless you physically change device IDs or move cables around. However, once booted, FreeBSD, however, may assign different controller/disk IDs to the physical devices, depending on what order the devices are detected. Usually this is static, but in some cases, it is not. > 3) enable an environment where i can safely and surely boot into either > drive and know for a fact that the right partitions are mounted ( all of > the data on all of the partitions aside from / is mirrored, so it's > practically impossible to tell which drive is which ) Compile custom kernels on both systems that contain "options ATA_STATIC_ID". This will force the FreeBSD device names to always map to the same physical controller/drive number. > 4) (bonus points) My bootloader shows the following on boot: > >F1: FreeBSD >F2: FreeBSD >F5: Drive 1 > > a) I've only got 1 FreeBSD install on this drive, so what is F2? It just > beeps at me when i try it F2 represents a slice (in DOS terms, partition) on Drive 0 that is marked bootable. The reason you get a beep is because there is no boot loader on that slice. > b) I assume that "F5: Drive 1" means that the drive i'm staring at the > options for is Drive 2, adn that selecting F5 will toggle to Drive 1? Drivers are numbered from 0. So F1/F2 refer to bootable slices on Drive 0. Regards, -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PHP5 Error Message
> I seem to be having a problem with PHP5. Running the following command > produces some rather strange output. > > $ php -v > PHP Warning: Module 'mysql' already loaded in Unknown on line 0 > PHP Warning: Module 'pcre' already loaded in Unknown on line 0 > PHP Warning: Module 'bz2' already loaded in Unknown on line 0 > PHP Warning: Module 'gd' already loaded in Unknown on line 0 > PHP Warning: Module 'openssl' already loaded in Unknown on line 0 > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/local/lib/php/20050922/pdf.so' - Cannot open > "/usr/local/lib/php/20050922/pdf.so" in U > nknown on line 0 > PHP Warning: Module 'zlib' already loaded in Unknown on line 0 > PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0 > PHP Warning: Module 'mbstring' already loaded in Unknown on line 0 > PHP 5.1.1 (cli) (built: Jan 5 2006 18:44:48) > Copyright (c) 1997-2005 The PHP Group > Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies > > It never produced this output before. What could be causing it and how do > I correct it? Take a look at $PREFIX/etc/php.ini and $PREFIX/etc/php/extensions.ini. You may have duplicate module entries. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fetch dependencies from LAN
> I am using FreeBSD 6.0 now and there is a ftp server in my local > network at which we can find every needed dependencies. What should I do > to make my computer fetch dependencies from the server instead of > ftp://bsd.org or other global server Set MASTER_SITE_OVERRIDE= in /etc/make.conf. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: natd -redirect_port question
> I have natd set up on a 4.10 box to get the rest of my network on the > internet. I have an application that requires connections to be able to > be established on a specific port. The problem is, sometimes I run this > app on system A and sometimes on system B. The port stays the same. So > in my rc.conf I have included in natd_flags -redirect_port tcp > systemA:port port ; currently if I want to use the app on system B I'm > having to reboot the natd box. Obviously this seems silly, however, I've > found that trying to reset this information using a command line like: > natd -n dc0 -redirect_port systemB:port port results in an errror > stating redirect can't bind to that port, because it's already in use. > I'm convinced I'm overlooking an easy way to change this redirect on the > fly without having to reboot the natd box. Anyone care to point me the > right direction? Thanks in advance. If you already have natd running, then you need to stop it first before starting it up again. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
[OT] e: Is MegaCameras.com still in business?
> I saw a posting dated Dec. 1st from Murray Haberman asking: "Is MegaCameras.com still in business?" I have a similar question/worry > On Dec. 9th they charged my MasterCard $371.82 for my order and I have still to receive it, even though the online form indicated that my $10.14 shipping was for Federal Express 1 day Home Delivery. > I called their only listed phone number (888-882-6342) and got either a standard phone machine pre-recorded male voice saying "I am sorry - we are unable to take your call at this time" OR I get a Verizon recording asking me to input the phone number of the person I am trying to reach or the mailbox number I specifically need to leave a message. Either way I don't have those numbers that succeed in getting to leaving a voice mail. . Steps to follow: 1) Call mastercard and get the charges reversed 2) Call the BBB and report MegaCameras.com (aka Geoffrey Jones, 718-265-1320) 3) Read digg.com and slashdot.org stores about unscrupulous camera stores operating in NYC 4) Remember, if it's too good to be true, it probably is! -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: webalizer monitoring apache logs on freebsd6
[ top-posting corrected ] > > On Fri, 2005-11-18 at 13:32, Dave wrote: > >> Hello, > >> I'm trying to use webalizer to analyze apache2 web logs and report on > >> traffic on my freebsd6 box. Both apache2 and webalizer are set to scan > >> the > >> combined log type. Webalizer runs via cron and this error is what i get > >> that's it. Any help appreciated. > >> Thanks. > >> Dave. > >> > >> Error: Skipping oversized log record > >> Error: Skipping oversized log record > >> Error: Skipping oversized log record > >> Error: Skipping oversized log record > >> Error: Skipping oversized log record > >> Error: Skipping oversized log record > >> Error: Skipping oversized log record > >> Error: Skipping oversized log record > >> Error: Skipping oversized log record > >> Error: Skipping oversized log record > > > > Dave, > > > > This is usually the result of something trying to get into your web > > server by sending a load of control codes. I believe it is an attempt to > > exploit a Windows web server weakness. The problem is that the control > > codes fill up the apache log file and webilizer cannot handle the > > record. > > > > I usually ignore the error. > > > > Rob > > Thanks. The problem is this is a nightly thing, webalizer always sends > me this output. > Thanks. > Dave. Even better -- run webalizer in "really quiet" mode (-Q). You'll still get warned about fatal errors (ie, can't find logfile, etc) but all other status/error/warning messages are supressed. A real benefit if you're processing multiple logs nightly and don't want to get swamped with N emails in the morning from cron. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: HyperTerm-like connection via serial port??
> Hi all, > > I have an external device that takes ascii serial commands at the standard > 9600 baud, 8-N-1 protocol. Under Win32, I would use HyperTerm to connect and > send commands and read responses. > > What program and/or settings would I use with FreeBSD to do the same thing? Try tip(1) or cu(1). -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: cannot get IP working between associated ath0 & AP, what to do?
> > Hi, > > > > I have an SMC PCMCIA wireless adapter, model SMCWCB-G, based on an > > Atheros 5212 chipset, in a laptop running a fresh install of FreeBSD > > 6.0-RC1. > > > > The card associates fine, but then fails to send any IP packets in > > the air, or at least that's what I presume is going on. I cannot > > ping the AP, I cannot get a lease using DHCP, basically the only > > thing I can do is associate. I think it does associate because when > > I set an invalid wep key, t# Wireless NIC cards > > > Setting a static IP address does not help. > > > > Any hints on where I might go from here to debug this? I know the > > setup should work because in a previous life [1] it Worked With > > Windows[TM] (and on the same AP). > > >If it is using wep, set the weptxkey. I had the same problem when > >moving from a laptop with releng_5 to a laptop with releng_6. > > I am having this same issue I believe in FreeBSD 6.0-RELEASE. I have a > dwl-g650 "na.b5", h/w ver ":b5", f/w ver :2.54. I compiled the > following into my kernel: > > device wlan# 802.11 support > device ath # Atheros > device ath_hal # Ath_hal > device ath_rate_onoe > device wlan > device wlan_wep# WEP support > > I type in: > > # ifconfig ath0 channel 7 ssid gibsons wepmode on > # ifconfig ath0 weptxkey *etc. > # ifconfig ath0 up > # ifconfig ath0 > ath0: flags=8843 mtu 1500 > inet6 fe80::213:46ff:fe0f:3f66%ath0 prefixlen 64 scopeid 0x4 > ether 00:13:46:0f:3f:66 > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) > status: associated > ssid gibsons channel 7 bssid 00:0c:41:a0:2c:46 > authmode OPEN privacy ON deftxkey UNDEF txpowmax 38 protmode CTS > bintval 100 > # ifconfig ath0 inet 192.168.107.15 > # ping 192.168.107.1 > > I am unable to ping my router. (linksys bewfs42) > > It seems like i'm missing something really simple here...anyone able to > help point me in the right direction? Thanks. Maybe deftxkey needs to be set? -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: problem compiling lsof
> I'm trying to (re)install lsof (under -CURRENT, details below), > and am running into: > > (cd lib; make DEBUG="-O" CFGF="-pipe -march=pentium4 -DHASEFFNLINK=i_effnlink -D > HASF_VNODE -DHASCPUMASK_T -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO _SI_ > UDEV -DFREEBSDV=7000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHAS9660FS -D HAS_ > NO_ISO_DEV -DHASIPv6 -DLSOF_VSTR=\"7.0-CURRENT\"") > cc -pipe -march=pentium4 -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASCPUMASK _T - > DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_SI_UDEV -DFREEBSDV=7000 -D HASF > DESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHAS9660FS -DHAS_NO_ISO_DEV -DHASIPv6 -D LSOF > _VSTR="7.0-CURRENT" -I/usr/src/sys -O -c ckkv.c > In file included from ../dlsof.h:300, > from ../lsof.h:190, > from ckkv.c:43: > /usr/src/sys/fs/devfs/devfs.h:153: error: field `dm_lock' has incomplete type > *** Error code 1 > > Stop in /usr/ports/sysutils/lsof/work/lsof_4.76/lsof_4.76_src/lib. > *** Error code 1 > > Stop in /usr/ports/sysutils/lsof/work/lsof_4.76/lsof_4.76_src. > *** Error code 1 > > So I deketed /usr/src/sys/fs/devfs/devfs.h, ran cvsup, and no > joy. Is this broken, am I looking at the wrong thing, or have I > bungled something? It looks like phk changed a lot of the internals of devfs around in early September; the lsof port has likely not kept pace. Line 153 of devfs.h appears to be "struct sx dm_lock;" -- perhaps pulling in the proper header to define "struct sx" might make things work again? -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can I do this?
> Hi, > > I want to replace a computer running FreeBSD 3.2 with one running FreeBSD > 5.3. The 3.2 computer is currently used as a web server and a DNS server. I > have installed FreeBSD 5.3 and am currently adding the Apache2.50 port. > > Once I add the Apache web server and Bind, can I then just copy config files > from the old system to the new one? > With Apache: can I copy httpd.conf from > the old system to the new then move my htdocs directory to the new system? > For Bind, could I just copy named.conf from the old system to the new then > copy my zone files over to the new system? The htdocs and zone files you can copy straight over; the config files for both Bind and Apache will need some fixing. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tar Syntax Help
> On 7/7/2005 8:38 PM Matt Emmerton wrote: > > > >>I'm trying to copy an entire file system while using an exclude file to > >>avoid copying things such as /dev, /proc, etc. I've read the man page > >>and found the -X or --exclude-from tar option. I've create a file > >>called /exclude.list. It contains lines such as: > >> > >>/exclude.list > >>/dev > >>/proc > >> > >>But I can't figure out how to form the correct command line. I > >>basically want to do this: > >> > >>tar -cvf - --exclude-from /exclude.list -C / . | tar xpf - -C . > >> > >>I've search the web and found examples that look similar to the above > >>but this does not work for me. tar attempts to copy /dev and I get all > >>the associated errors. I've tried other placements of either "-X", "X", > >>and "--exclude from" on the command line various things happen from it > >>just being ignored to tar thinking I want to create and archive named > >>"-X", etc., to tar trying to add a file named "-X", etc. to the current > >>archive. I'm at a loss. > >> > >>I'm using 4.11 and trying to make a good backup before upgrading to > >>5.4. Can anyone tell me the secret incantation to make this work? > >> > >> > > > >-X only works with specific files, not entire directories. You will need to > >list every file in /dev or /proc that you want to exclude, which is somewhat > >painful. > > > >The backup strategy that I've used on production systems is to back up each > >directory in a separate tar file. Not only does this work quicker (since > >you can fire off multiple tar sessions in parallel), but you can avoid > >"special" directories like /dev and /proc, temporary mount points such as > >/cdrom and /mnt, and other directories that don't need to backed up, such as > >/tmp. It's also quite handy when you've got large volumes of data (such as > >in /home) and the complete system image won't fit on a single tape. > > > >The general notion of my script is the following: > > > >#!/bin/sh > >for i in bin boot etc home modules root sbin usr var > >do > > tar cvzf /backups/$i.`date +%Y%m%d`.tar.gz $i & > >done > >wait > >echo "Backups completed!" > > > Thanks for your reply. I can do it this way and will for the sake of > speed. However this post suggests that one can use wildcards. > > http://lists.freebsd.org/pipermail/freebsd-questions/2004-July/052207.html > > Have you ever tried that? I did but was not successful. I just tried this out (on 5.4-REL) and the wildcards appear to work fine. If you specify wildcards on the command line (ie, with --exclude or -X), you must quote them to prevent premature expansion. -- Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tar Syntax Help
> I'm trying to copy an entire file system while using an exclude file to > avoid copying things such as /dev, /proc, etc. I've read the man page > and found the -X or --exclude-from tar option. I've create a file > called /exclude.list. It contains lines such as: > > /exclude.list > /dev > /proc > > But I can't figure out how to form the correct command line. I > basically want to do this: > > tar -cvf - --exclude-from /exclude.list -C / . | tar xpf - -C . > > I've search the web and found examples that look similar to the above > but this does not work for me. tar attempts to copy /dev and I get all > the associated errors. I've tried other placements of either "-X", "X", > and "--exclude from" on the command line various things happen from it > just being ignored to tar thinking I want to create and archive named > "-X", etc., to tar trying to add a file named "-X", etc. to the current > archive. I'm at a loss. > > I'm using 4.11 and trying to make a good backup before upgrading to > 5.4. Can anyone tell me the secret incantation to make this work? -X only works with specific files, not entire directories. You will need to list every file in /dev or /proc that you want to exclude, which is somewhat painful. The backup strategy that I've used on production systems is to back up each directory in a separate tar file. Not only does this work quicker (since you can fire off multiple tar sessions in parallel), but you can avoid "special" directories like /dev and /proc, temporary mount points such as /cdrom and /mnt, and other directories that don't need to backed up, such as /tmp. It's also quite handy when you've got large volumes of data (such as in /home) and the complete system image won't fit on a single tape. The general notion of my script is the following: #!/bin/sh for i in bin boot etc home modules root sbin usr var do tar cvzf /backups/$i.`date +%Y%m%d`.tar.gz $i & done wait echo "Backups completed!" -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Unable to set up LPD to use a HP Laserjet 5p in freeBSD 5.3
> Hello > > I`m trying to install my HP laserjet 5p on freebsd 5.3. > The printer doesn`t understand postscript. > I`ve read the handbook and installed ghostscript and > lpd. > I changed rc.conf to start lpd for each system boot. > > dmesg printer part looks like this: > > ppbus0: HP ENHANCED > PCL5,PJL > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus > > printcap looks like this: > > lp|HP Laserjet 5P:\ > :sh:\ > :sd=/var/spool/lpd:\ > :lf=/var/log/lpd:\ > :lp=/dev/lpt0:\ > :if=/etc/lpfilter: > > Whenever I try to print to the printer, I get an error > status on the printer that the owners manual calls a > "Data Error" (two lights on the panel). The 'Go' button > must be pressed repeatedly to get the page to print; > and it doesn't look complete. I've used several of the > lpfilters from the ports collection, but none seems to > work. > > Has anyone set up this printer model to work in freeBSD > 5.3 and can shed some light on what I have done wrong? You should look at the apsfilter port in /usr/ports/print/apsfilter. It contains all the magic needed to get a LaserJet 5p to work properly. It was the only filter that seemed to do the right thing for me. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Where does a port store a saved configuration file?
> Hello list, > > I had a question regarding where in FreeBSD5.3 the > configuration file for a port is stored. I've been > trying to find the saved configuration file that Snort > created upon me selecting what options to include > during the make install. I had included support for > Prelude, since I've never used it before, I figured > I'd try it out. Unfortunately, prelude has not been > updated for Snort 2.0 yet. > > I'm trying to find the saved configuration file so > that I can remove it and reselect what options I want > snort built with, but no luck. Anyone know where it's > located at? For snort, it's in /var/db/ports/snort/options. Some other ports generate a Makefile.inc file in the port directory. -- Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: courier-imap operation timed out?
> Why do I get these mail errors? > > Apr 12 21:32:59 imapd-ssl: couriertls: read: Operation timed out > Apr 12 21:32:59 imapd-ssl: DISCONNECTED, user=x, ip=[0.0.0.0], > headers=0, body=0, time=287, starttls=1 > > Ofcoure user and ip have been omitted, but this is a connection from a > windows xp machine running outlook express to check mail. Outlook Express is known to have problems with "secure" email (TLS) and IMAP. I saw a good article about this on the web the other day -- but unfortunately I can't find the link. > While on the > same network as the xp machine I have a osx computer using Mail to > check using imap-ssl and I never ever got an error like that. > > Also throwing this in as well... > root# spamassassin -D > debug: SpamAssassin version 3.0.2 > debug: Score set 0 chosen. > > Yet I've specified required_score 5.0 in local.cf > Say it can't read my local.cf file... Isn't the default to use a score > of 5 anyway? So shouldn't it default to 5 not 0 ? > I've spamassassin -D -C /path/to/local.cf > and it still doesn't read the score... required_score is the score required to mark an email as spam. The score set is something totally different -- SA uses different score sets internally to switch between Bayesian and non-Bayesian scoring modes. -- Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Ebay Phishing
- Original Message - From: "Kris Kennaway" <[EMAIL PROTECTED]> To: "Warren Block" <[EMAIL PROTECTED]> Cc: "Christopher Nehren" <[EMAIL PROTECTED]>; Sent: Sunday, March 20, 2005 7:12 PM Subject: Re: Ebay Phishing On Sun, Mar 20, 2005 at 01:49:57PM -0700, Warren Block wrote: > What do you have to edit? If you're in Comcast dynamic space, why not > just smarthost through their servers? Not referring to Comcast, but for Rogers which is also blacklisted by a lot of people: their "smart" host likes to delay or randomly drop outbound mail making it useless for reliable email delivery, and they require you to send mail from a rogers.com address, which means you can't use personal domains (like this one). Kris --- reply separator - Actually, what you say is not true for Rogers. I've been sending mail directly out of my Rogers-hosted machine for almost a year now, without going through their "smart" hosts. This was one of the reasons I switched to Rogers from Sympatico -- Sympatico locked down port 25 which forced me to use their crappy mail servers, and I was easily losing 50% of my mail. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: make - don't workHELP!!!
> Why i can't to do command "make"?! Is my config of my kernel right?! > Analize my config and tell me what is wrong: > my computer is: athlon XP+ 2.0, KT400 on via chipset, ethernet sound & usb Via82XXX, video GeForce2MX400 from NVidia & i have FreeBSD-5.3-RELEASE > > command's: > # /usr/sbin/config WORM > # cd ../compile/WORM > # make depend > # make > > _MY_ERROR_ > : undefined reference to `xpt_free_path' > dpt_scsi.o(.text+0x1b5c): In function `dpt_detach': You've got "device umass" in your kernel, but you've commented out the SCSI-related devices which are required. You need to uncomment "device scbus" and "device da" in order to use "device umass". > # SCSI peripherals > #device scbus # SCSI bus (required for SCSI) > #device ch # SCSI media changers > #device da # Direct Access (disks) > #device sa # Sequential Access (tape etc) > #device cd # CD > #device pass # Passthrough device (direct SCSI access) > #device ses # SCSI Environmental Services (and SAF-TE) -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mx2.freebsd.org in SORBS, AGAIN!
> > On Sat, 12 Feb 2005 03:18:17 -0800 > > "Ted Mittelstaedt" <[EMAIL PROTECTED]> wrote: > > > > > A spammer is forging several of SORBS spamtrap e-mail > > > addresses on their outgoing spams. The spams hit freebsd.org > > > which of course is bouncing them back to the sender, which > > > is in this case is the spamtrap e-mail addresses. This > > > triggers the SORBS autolisting. > > > > Well, in this case, how about avoiding bounces completely? Better yet, why doesn't SORBS clean up it's act and only accept bounces for messages that were sent by their systems? Some kind of simple token in the test messages (much like how mailing list software uses unique IDs) would avoid these kinds of fake-bounces-causing-blacklisting errors. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: What Port Installs /usr/local/lib/libiconv.la?
> On 1/21/2005 5:55 PM Kris Kennaway wrote: > > >On Fri, Jan 21, 2005 at 02:03:12PM -0800, Drew Tomlinson wrote: > > > >>I'm attempting to upgrade the libiconv port from 1.9.1 to 1.9.2 but keep > >>getting this error: > >> > >>libtool15: link: cannot find the library `/usr/local/lib/libiconv.la' > >> > >>A 'ls' of /usr/local/lib confirms this file doesn't exist. What port > >>should I install to get this file? Seems like it is part of this port, > >>as I see several references to it in the build output. However I don't > >>see any error regarding it other than the one above. My complete build > >>output can be viewed here: > >> > >>http://drew.mykitchentable.net/libiconv.log > > > >I'd guess something is wrong with your libtool installation. Try > >reinstalling the libtool15 port. > > > I thought that too. Prior to posting, I had libtool13, 14, and 15 > installed. I removed all of them and then installed 15 from ports. Yet > the error persists. It is interesting that I could install libiconv > from packages without error. But even after that, I still did not have > /usr/local/lib/libiconv.la. Also after installing libiconv from a > package, 'portupgrade -f libiconv' ends with the error I described above. At one time, it was -ports policy to not install .la files, although I can't see any reference to that in the current porters-handbook. If that is still true, I would have to say that libiconv is in error by installing such a file (see the patches included in converters/libiconv/files -- the file is definitely installed). Not sure why it doesn't get installed in your case and breaks your subsequent upgrade, however. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How can I speed up a dd copy?
> Hello > When I am performing a dd between (2) 36 Gig 160 > disks (to duplicate them) it takes about 2.5 hrs. Is > there any way I can speed this up? Is there any better > way I can clone a bootable main disk? A larger blocksize (bs=) will help dramatically. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DNS problems
> gentle people, > apologies if this question should have been posted in the newbies > list, but i saw a similar question in the archives of this mailing > list, which did not quite answer my question. > > i'm trying to install FreeBSD for the first time. i'm installing it on > my desktop. > > the installation has gone on pretty cleanly, i have a linksys > firewall/wireless router behind which i have installed my freeBSD box. > i have good connectivity and am able to ping, telnet to the internet. > > however DNS resolution is a problem. > > the browser does not work and for example > dig www.freebsd.org also does not work. > > if i provide the nameserver,dig @server xxx.xxx.xxx - things are fine. > any ideas. it has to be something really simple. > > during the configuration, when i configured my ethernet port, it cleanly > gets the ip address from the linksys hub and also lists the nameserver > correctly. > > what else do i have to configure ? > > ifconfig > xl0 : flags=8843 mtu 1500 > options=b > inet6 fe80::250:daff:fe8c:dcaa%x10 prefixlen 64 scopeid 0x1 > inet 192.168.1.105 netmask 0xff00 broadcast 192.168.1.255 > ether 00:50:da:8c:dc:aa > media Ethernet autoselect (100baseTX ) > status:active > plip0: flags=8810 mtu 1500 > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff00 > inet6 :: 1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > > netstat -nr > Routing tables > > Internet: > DestinationGateway Flags RefsUseNetif Expire > default 192.168.1.1 UGS 00x10 > 127.0.0.1 127.0.0.1 UH 1 76 lo0 > 192.168.1 link#1 UC 0 0 xl0 > 192.168.1.1link#1 UHLW 1 0 xl0 > 192.168.1.105127.0.0.1 UGHS 0 0 lo0 > 192.168.1.255 ff:ff:ff:ff:ff:ff UHLWb 0 2 xl0 > > /etc/resolve.conf is empty. You mean /etc/resolv.conf? This is where your nameserver should be listed if you're getting the information properly from your Linksys router. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How long will 4.x be supported?
> In a message dated 1/7/05 4:50:07 PM Eastern Standard Time, > [EMAIL PROTECTED] writes: > >Given the serious stability issues that *some* users are having with > >5.3, many are sticking with 4.x for production servers. > > > >Will FreeBSD keep the 4.x line alive for a little while longer? Perhaps > >going into 4.12, 4.13, etc? > > > >I ask this only because I don't see a lot of communication to the list > about these issues being addressed. > > Just note that they "say" its supported, but if you want to use the latest > Intel > CPUs (800Mhz FSB Xeon64), they don't work in 4.x. Sadly noone in the > FreeBSD universe is even familiar (it seems) with new server MBs. I'd say those who are familiar are using 5.x. Maybe the time to switch is near? -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Man pages take forever on slow machine?
> > Ok so I got over my hurdle getting FreeBSD 5.3 installed on this old > > Presario (it ended up being RAM... needed more than 16MB to get > > through install, borrowed some and then could then back off to > > default 16MB after 5.3 was on). I thought I was on a roll until I > > "accidentally" tried to bring up a man page. It has been on > > "Formatting page, please wait..." ever since. > > > > I didn't pay attention to when, but I think it was at least an hour > > ago. Yes, an HOUR. And I still don't have my man page. > > > > Yes this isn't the fastest machine (I think it's a Pentium 133MHz, > > 16MB RAM) You will probably be paging to disk during "normal" operation. > > but really... I ran FreeBSD 2.2.2 as a webserver on a 486 > > 66MHz "back in the day". I'd expect this to be slow, but... 1+ hours > > for a man page? It's probably a) building the index of man pages and b) formatting the man page you requested. You may see better performance if you install the "catpages" distribution (pre-formatted man pages) from the ISOs. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel compile error
> /usr/src/sys/dev/usb/if_rue.c:104:23: miibus_if.h: No such file or directory > /usr/src/sys/pci/if_rl.c:122:23: miibus_if.h: No such file or directory > mkdep: compile failed You need "device miibus" in your kernel config if you want to use "device rl". # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support device dc # DEC/Intel 21143 and various workalikes device fxp # Intel EtherExpress PRO/100B (82557, 82558) device pcn # AMD Am79C97x PCI 10/100 NICs device rl # RealTek 8129/8139 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Is this a sign of memory going bad?
> Chuck Robey wrote: > > On Thu, 25 Nov 2004, Haulmark, Chris wrote: > > > > > >>Someone broke the silence: > >> > >> > >>>On Thu, Nov 25, 2004 at 04:05:53PM -0500, Lowell Gilbert wrote: > >>> > >>>>Jonathon McKitrick <[EMAIL PROTECTED]> writes: > >>>> > >>>> > >>>>>This is what I get from make buildworld. I've gotten signal 10, > >>>>>11, and now 5. > >>>>> > >>>>>Is this bad memory? > >>>> > >>>>That's a reasonable guess, but the only way to tell for sure is to > >>>>test it. > >>> > >>>Is there a port to do this, or do I have to take it out and take it > >>>somewhere else to get it tested? > >>> > >>>jm > >> > >>sysutils/memtest in the ports. > > > > > > I don't want to embarrass anyone here, but something needs to be said. > > Note this next sentence carefully: THERE IS NO SUCH THING AS A WORKING > > MEMORY TEST PROGRAM!!! > > What about the BIOS RAM test? I mean the counter that you can interrupt with > the ESC key, at the beginning of the boot process? Will that reliably indicate > problems with the RAM, or is that test also rubbish? That just tests that the RAM is accessible (ie, electrical interface is sound). -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Is this a sign of memory going bad?
> On Thu, 25 Nov 2004, Haulmark, Chris wrote: > > > Someone broke the silence: > > > > > On Thu, Nov 25, 2004 at 04:05:53PM -0500, Lowell Gilbert wrote: > > >> Jonathon McKitrick <[EMAIL PROTECTED]> writes: > > >> > > >>> This is what I get from make buildworld. I've gotten signal 10, > > >>> 11, and now 5. > > >>> > > >>> Is this bad memory? > > >> > > >> That's a reasonable guess, but the only way to tell for sure is to > > >> test it. > > > > > > Is there a port to do this, or do I have to take it out and take it > > > somewhere else to get it tested? > > > > > > jm > > > > sysutils/memtest in the ports. > > I don't want to embarrass anyone here, but something needs to be said. > Note this next sentence carefully: THERE IS NO SUCH THING AS A WORKING > MEMORY TEST PROGRAM!!! > > Anyone who tells you otherwise is no friend of yours, because they are > making your life hard. It's very alluring to assume that programs written > to do a job actually do that job, and most especially in the case of > memory test, one would *really* **REALLY** wish that Chuck here was lying, > cause you honestly need a memory test program, but the truth is otherwise: > memory test programs don't work. At the very best, if they spend 30 > minutes carefully exercising memory, you get a factor that is maybe 10% > reliable, and 90% wishful guessing. > > With that in mind, sometimes, the very best memory test programs can give > you better ideas that memory you thought was failing IS failing. The > opposite, proving that memory is good, is just totally, totally useless, > you cannot take any data home at all about your memory being good. And it's for this very reason that I often keep a few extra sticks of memory lying around my office. When a system starts acting wonky (intermittent crashes, especially under load like during a buildworld or heavy spamassassin/razor activity), I take it offline, swap memory, and see if the bad behaviour continues. If it does, I'm no worse off than before. If it doesn't, I have a pretty good confidence level in saying that the memory was bad. While this method may seem somewhat brute-force-ish, it's often much quicker and easier than futzing around with memtest and guessing. Given the cost of memory these days, swapping it out is generally cheaper than the cost of random downtime and recovering from crashes in a production environment. -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: Trying to learn C -- some questions
> On Thu, 25 Nov 2004, Tom Parquette wrote: > > I'm trying to learn ANSI C using a book circa 1994. It is written from > > a DOS perspective. Someone at work, who knows a little C, told me that > > the book was "close enough". > > I think they are probably wrong. > > > 1) gcc complains that was not found. If I comment out the > > #include, the program compiles. Is this a DOSism or something else? > > I don't know if it's a DOSism, but it's definitely not a standard header > file in the UNIX world. I've never encountered it outside of Microsoft > systems. This is definitely a DOSism. On UNIX, most of the functionality in conio.h can be found in stdio.h or curses.h. > > 2) fprintf is described with stdprn being valid for a default printer. This > > does not seem to be valid in, at least, the FreeBSD world. man fprintf did > > not really help. I believe I have to create a stream for the print but I'm > > not clear on how to do it. > > Sorry, not sure about this, but again, it sounds like a DOS (or MS) > specific implementation. stdprn is definitely another DOSism. If you want to print directly to a printer, you have a bunch of choices: 1) write the output to a temporary file, and then use lpr to print the file to a printer (defined in /etc/printcap) 2) open a stream to /dev/lpt0 and fprintf directly to it -- this assumes that your printer is attached to parallel port 1. > > 3) gets() is used in a number of places. Using this gets me: > > /var/tmp//cciWrf9n.o(.text+0x20d): In function `get_data': > > : warning: warning: this program uses gets(), which is unsafe. > > 'gets()' will still work, but its use isn't advised. If you're just using > it in test programs, though, it's not a big deal. Regardless, you should convert your code to use fgets(), as it prevents against buffer overflow problems. > > 4) A couple of the home work assignments use getch(). I figured out from the > > getch man page that I needed "#include " but that changes the > > errors to: > > /var/tmp//cc1GEzyG.o(.text+0x6a): In function `main': > > : undefined reference to `stdscr' > > /var/tmp//cc1GEzyG.o(.text+0x6f): In function `main': > > : undefined reference to `wgetch' > > I do not know what header file I should be including. > > Or is there something else I'm not understanding? > > I think the real problem hear is that the getch() the example is > referencing is actually a function found in conio.h. The getch() in > curses probably isn't the one you want anyway. > (Ref.: http://lists.apple.com/archives/mpw-dev/2001/Aug/msg00182.html) The version of getch() should work fine, although you could use fgets() from stdin instead. -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Natd manpage interpretation problem . . .
> I know similar questions have been asked in the past, and I'm sure the > natd manpage has it described quite clearly, but I just can't seem to > figure this out. > > I'm trying to automagically route all udp ports above 1023 coming from > a network block to a machine on the internal network. > > My understanding of the natd manpage is that I simply need to put a > line like this in /etc/natd.conf: > > redirect_port udp :1024-65535 /xx:1024-65535 > > What am I doing wrong here? Based on my reading of the natd man pages, all of the redirect_xxx options only work on single IPs -- not netblocks. If you want to redirect traffic for a specific netblock, you need to have a rule for every IP in the block. -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Which Laser Printer for FreeBSD
- Original Message - From: "Kirk Strauser" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 18, 2004 1:04 AM Subject: Re: Which Laser Printer for FreeBSD > On Friday 17 September 2004 08:40 am, Martin Moeller wrote: > > > I'm planning to buy a new printer, because the results with my Canon S500 > > are total crap. I guess a laser printer is the best choice for Unix, and > > I'm wondering which one I should buy. > I'm using an HP LaserJet 1200 with an additional 64MB of generic memory, > being fed PostScript via USB by CUPS on my FreeBSD server. Setup took > all of about 5 minutes, and the print quality is flawless. > -- > Kirk Strauser Any old LaserJet (the III, 4 or 5 series at 300/600 dpi) that speaks PCL or PS will work quite well, and will take virtually no effort to set up. If you look around, you can find "old" LaserJets that are being dumped when they're still perfectly fine (and usually come with a full toner cartridge too). -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Where to find jw on FreeBSD?
I've working on an open source project that recent went through a documentation frenzy and now we have a bunch of SGML (XML) docs that we reguarly convert to HTML and PDF. The person that usually does this runs RedHat and uses a project called 'jw' (jadewrapper) which is a nice front-end to all the docbook2xxx routines. I'm trying to do this on FreeBSD, and have docbook, jade and sgmltools installed from ports yet none of them include 'jw'. I know I can use the docbook2xxx routines, but was just wondering if there is a port that contains 'jw' or if this is a Linux/RedHat-only script? Thanks, -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: finding the ip address
> I'm messing with ubermon for superkaramba and I want to know how to get my > hosts ip address from the command line (and only the ip address). > > I know I can grep and sed rc.conf or the output of ifconfig, but I'm hoping > there's a command like whoami for the ip address. There isn't anything that simple, but munging the output of ifconfig is what you want. This assumes that your box only has one IP address (other than localhost): # ifconfig -a | grep "inet " | grep -v 127.0.0.1 | awk ' { print $2 } ' 192.168.0.4 -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Does the AMD64 version of FreeBSD run on this?
> At 09:06 PM 8/6/2004, Matt Emmerton wrote: > > >While Intel (or AMD) may make changes to the underlying silicon to make > >things better than their competitors (ie, larger caches, different pipeline > >architecture, etc), they are committed to maintain compatibility between > >AMD64 and EM64T. > > This is good to know. Has anyone tested the AMD64 version of FreeBSD > on one of the Intel Xeons with the new instruction set? If you would like to ship me one, I'd gladly test it out for you. See my web site for my address. -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Does the AMD64 version of FreeBSD run on this?
> -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Friday 06 August 2004 04:58, Brett Glass wrote: > > http://eetimes.com/semi/news/showArticle.jhtml?articleID=26805631 > > Probably not. Intel isn't going to keep exactly the same architecture as AMD > has now. They'll make a few minor ajustments to fine-tune their CPU. According to the Intel people that I've talked to where I work (a big blue company that isn't Dell), AMD64 and EM64T are the same on the opcode level. Thus, code built for AMD64 will work unmodified on EM64T and vice versa. (It would be silly for Intel to do otherwise, as they don't want to risk losing any support from the community and market share that AMD has worked hard to establish.) While Intel (or AMD) may make changes to the underlying silicon to make things better than their competitors (ie, larger caches, different pipeline architecture, etc), they are committed to maintain compatibility between AMD64 and EM64T. -- Matt ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: make installworld trouble
> Trying to install world on this machine but it does not like > make installworld. > I have not much of a clue. is it perl? vm? > > help! > > uname -a > FreeBSD usenet2.ath.cx 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Thu Jul 15 > 13:44:12 CEST 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/DELLFW i386 > > vm/vnode_pager.h -> vm/vnode_pager.ph > *** Error code 1 > > Stop in /usr/src/gnu/usr.bin/perl/utils/h2ph. > *** Error code 1 Looks like this is failing in the installation of Perl -- the part where it generates a perl-ized version of every system header. Are you following the procedure outlined here? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html#AEN26900 -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Compaq SP750 and FreeBSD
We're looking at picking up a couple of Compaq SP750 machines and are wondering if anyone has had any experience using these with FreeBSD. I'm particularly concerned with the onboard disk controller -- I can't find any useful details about the controller on Compaq's web site, and don't want to get into the Perc/LSI problems that others have had to deal with. Thanks, -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't mount 300G USB drive that's FAT32
- Original Message - From: "Dan Finn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 25, 2004 4:31 PM Subject: can't mount 300G USB drive that's FAT32 > the system sees the disk: > Jun 24 15:37:30 stewie kernel: umass0: Maxtor OneTouch, rev 2.00/2.00, addr 2 > Jun 24 15:37:30 stewie kernel: umass0: Get Max Lun not supported (STALLED) > Jun 24 15:37:31 stewie kernel: GEOM: create disk da0 dp=0xc2d85050 > Jun 24 15:37:31 stewie kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Jun 24 15:37:31 stewie kernel: da0: Fixed > Direct Access SCSI-0 device > Jun 24 15:37:31 stewie kernel: da0: 1.000MB/s transfers > Jun 24 15:37:31 stewie kernel: da0: 286103MB (585938944 512 byte > sectors: 255H 63S/T 36473C) > > this is a Maxtor 300G USB drive. A backup was written to it via a > linux 2.4 server and now I would like to mount it on my FBSD laptop to > read it and work with the files. > > When trying to mount it using mount_msdos I get the following: > [ root @ stewie : ~] : mount_msdosfs -o rw /dev/da0s1 /mnt/usb1/ > mount_msdosfs: /dev/da0s1: Invalid argument > > and in /var/log/messages I get the following: > Jun 24 15:43:52 stewie kernel: mountmsdosfs(): disk too big, sorry > > when trying to use ntfs to mount it I get : > [ root @ stewie : ~] : mount_ntfs /dev/da0s1 /mnt/usb1/ > mount_ntfs: /dev/da0s1: Invalid argument > and nothing in any log file. > > One of the taks I need to accomplish here is to copy all of the data > on this 300G USB drive onto an identical 300G USB drive. I was going > to mount both and just copy from one to the other. After reading > about the limited writing capabilities in the man page of mount_ntfs > I'm wondering if I would be better off doing this on a linux box. The > linux box that created the origional backup onto the USB drive had no > problem creating the Fat32 filesystem and writing to it. FAT32 = msdosfs. This is totally different than NTFS, so put all ideas of using mount_ntfs out of your mind since it won't help. The FAT32 support in FreeBSD currently doesn't support "large" disks. I don't know the specific value of "large", but there is some comments in the code that point at certain calculations that break for "large" disks. -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: UPDATING - perl
> Hi, > > Trying to upgrade my perl as mentioned in /usr/ports/UPDATING : > > 20040204: > AFFECTS: 5.2-CURRENT users who started with a 5.2-RELEASE or older. > > Change the default version of perl to 5.8. > > 1) Force perl-5.6.1 to be upgraded with perl-5.8. > portupgrade -o lang/perl5.8 -f perl-5.6.1_15 > > 2) Update all p5-* modules. > portupgrade -f p5-\* > > And the first step goes fine, but when I do the second step it seems > to want to go back to loading/installing perl 5.6.1 . I CTRL-C'd it before > it got too far. Is it ok to allow it to continue? Is there a step that > should be changed/added? cvsup ports-all first? -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: port questions (why do I find myself fudging symlinks to makestuff work?)
> On Mar 31, 2004, at 4:29 PM, Kris Kennaway wrote: > > You're not doing it right, then :-) > > > > Use portupgrade with the -PP switch to force the use of packages. > > > > What if there isn't a package for a given port? I wasn't aware > there were packages (though I suppose for an ancient release > like 4.9 there might be). How is 4.9 ancient? It's the most recent release supported for production use. (Refer to http://www.freebsd.org if you doubt this.) You can find all the packages you want for 4.9 at ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/4.9-RELEASE/packages -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: php installation problems; now mysql connection problems
When you chose "install php without mysql", what you really did is install PHP without mysql _support_. This is why you can't connect. Reinstall PHP *with* mysql support and you will be fine. Matt - Original Message - From: "samy lancher" <[EMAIL PROTECTED]> To: "Jorn Argelo" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 19, 2004 11:01 AM Subject: Re: php installation problems; now mysql connection problems > This morning I decided to install php4.4.2.2 back. In usr/ports/www/mod_php4 I gave "make clean". It cleared work directory. Than I gave "make install" command. I chose the option of installing php without mysql since i already have mysql in my system. Installation went on fine but now php is not able to connect to mysql. Any clues? > > Thanks, > Naveen. > Jorn Argelo <[EMAIL PROTECTED]> wrote: > > Why don't you use portupgrade instead? You can install it via > /usr/ports/sysutils/portupgrade if you don't have it. Though I am not > certain if it works or even exists for FreeBSD 4.5 > > Anyway, if you do have it, try this: > > pkg_info | grep php > portupgrade -Rr > > Cheers, > > Jorn > > On 3/19/2004, "samy lancher" wrote: > > > > >Hello All, > > > >I have FreeBSD 4.5, apache 1.3.26_3 and mod_php4-4.2.2 . i wanted to upgrade php to php4-4.3.3.1 so i downloaded php4-4.3.3,1.tgz to usr/ports/distfiles and gave the command > > > >port_update -r mod_php4-4.2.2 php4-4.3.3,1.tgz > > > >I noticed that php old version got uninstalled and the new one did not get installed. Then in usr/ports/distfiles when i gave the command "pkg_add php4-4.3.3,1.tgz" i got an error > > > >read_plist: bad command '@conflicts php4-4*' > > > >I guess it is something to do with package version and their dependencies but I am not sure what exactly the problem is. > > > >I would also like to know if there is a way i can find out all the dependencies for a particular package before actually installing it. > > > >I would appreciate if some one could help me. > > > >Thanks, > > > >Naveen. > > > > > >Do you Yahoo!? > >Yahoo! Mail - More reliable, more storage, less spam > >___ > >[EMAIL PROTECTED] mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >To unsubscribe, send any mail to "[EMAIL PROTECTED]" > Do you Yahoo!? > Yahoo! Mail - More reliable, more storage, less spam > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: LINT file?
> Matt Emmerton wrote: > > > cd /usr/src/sys/i386/conf > > make LINT > > > > Note that the LINT kernel is _strictly_ a list of all the possible things to > > put in your kernel config -- there are no explanatory comments anymore. > > That's a shame. I was counting on the comments to educate me. Can you > point me to any other documentation that might cover what I find in that > file? Well, if you're hunting for things in LINT, you probably should have a good reason -- the comments in the source are probably what you're after. -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: LINT file?
> If I understand correctly, in previous releases there used to be a file > "/usr/src/sys/i386/conf/LINT", that listed all the things one could put > in their kernel conf file. I can't find any such file on 5.2.1-RELEASE. > Can someone please tell me where I can find it or it's replacement > please? TIA cd /usr/src/sys/i386/conf make LINT Note that the LINT kernel is _strictly_ a list of all the possible things to put in your kernel config -- there are no explanatory comments anymore. -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: crontab question
> Greetings, > I am running 5.1-release. I created the file > /var/cron/tabs/root . It is owner root, group wheel. > permissions are -rw--- > > I have the following entry in the file root > > 0 22 2-31 * * /usr/local/bin/rsync -av /dept2/Marketing/ /data/Marketing > 2>&1 /r > oot/rsync.log > > Of course the line above is all on one line. > > Well, this command did not run last night. No /root/rsync.log file was > created. > No email was generated. Zip. > > what did I screw up to prevent cron from running the command ? You did it by hand instead of using the more automated method. Although you got the ownership/permissions correct, I bet you didn't restart the cron daemon (which is required so that it sees the newly created crontab.) You should really use "crontab -e" to edit/create crontab files. It will look after ownership/permissions automatically, as well as kicking the cron daemon. -- Matt Emmreton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Make BuildWorld options
> I was reading this > http://lists.freebsd.org/pipermail/freebsd-small/2003-December/000125.html > > And noticed that it talks about a make.conf for use with buildworld with > options like > NO_CVS= true# do not build CVS > NO_CXX= true# do not build C++ and friends > NO_BIND=true# do not build BIND > NO_FORTRAN= true# do not build g77 and related libraries > NO_GDB= true# do not build GDB > > Is there a list of these options anywhere that explains what each option > does? How about /etc/defaults/make.conf? -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail /etc/mail/Makefile usage
> Looking for explanation documentation on the customization process > of FBSD's sendmail. > > The /etc/mail/README talks about using the > m4 command to customize sendmail. I have all ready been told that > process is incorrect for the built in version of sendmail as > delivered by the FBSD install. > > Previous posters to my sendmail questions said to read the > /etc/mail/Makefile which I have. > It does not explain the overall process either. > It just gives some hints. The key point is that you need to edit /etc/mail/freebsd.mc to suit your environment. Specifically, copy /etc/mail/freebsd.mc to /etc/mail/gateway.fbsdjones.com.mc, and edit it with the modification for your environment. Do the same with freebsd.submit.mc (copy to gateway.fbsdjones.com.submit.mc). The Makefile in /etc/mail will be smart enough to pick up this "local" version instead of the default one. > I am only interested in 2 things, have sendmail use > 'fbsdjones.com' as the local domain and tell sendmail not to > do reverse DNS lookups. > > I have /etc/rc.conf hostname='gateway.fbsdjones.com' for the > gateway/firewall/sendmail PC which is the doorway to my private Lan. Add the following to gateway.fbsdjones.com.mc: FEATURE(`masquerade_envelope')dnl MASQUERADE_AS(`fbsdjones.com')dnl Then run 'make' from /etc/mail and your internal hostnames should never appear on outgoing mail. (Reference: http://www.sendmail.org/m4/masquerading.html ) -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: stumped... .
> I've written scores of scripts to hack text files, but this > one has me dead in the water. > > How can I delete all lines from /^PATTERN to EOF?? > > ed - < > /^PATTERN > (.,$)d > w > q > foo > > or anything else I've tried doesn't do it. I could do it in > C/C++,but c'mon... ! Any solutions in sed, perl, or ed/ex? > > tia, everybody, > > gary If I'm understanding your question correctly, this Perl script should do it. #!/bin/perl while (<>) { if (/^PATTERN) { last; } print $_; } -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: missing /usr/libexec/ld-elf.so.1 ... not found
> (I am posting this because a search for the subject above in Google turned > up not much... not much 'tall!) > > What should a user do if their, uhm, /usr/libexec/ld-elf.so.1 file is > missing on 4.7-RELEASE? Can said user `touch /usr/libexec/ld-elf.so.1` as > a decent fix? Or mount their drive from another OS and copy over a > friend's or a web-hosted ld-elf.so.1 file? Or could I, I mean my friend, > use some of the contents of "src/" on a 4.7-RELEASE CD-R to recreate (via > compiling) this needed file?? Please help. It could be your gift to me. You could probably accomplish this by booting with a fixit disk and copying over ld-elf.so.1 from a live CD (Disc 2 in the 4-disk set) to /usr/libexec. Or you could install the drive in another FreeBSD box, mount /usr and copy the file over. -- Matt ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: a technical how to
> In the last episode (Dec 08), Kevin D. Kinsey, DaleCo, S.P. said: > > Harald Schmalzbauer wrote: > > >On Tuesday 09 December 2003 02:51, homeyra g wrote: > > >>So, I hope this is the right address for this type of question. If > > >>not would you please forward this and/or let me know the correct > > >>address. > > >> > > >>Thanks, > > >> > > >>Here is the question: How to truncate a file from the begining to a > > >>certain point in the file? > > If you're writing a script, use the /usr/bin/truncate command. If > you're writing a C program, use the truncate() function. truncate() essentially alters the "end-of-file" position, by decreasing it (truncating the file) or increasing it (extending the file.) I think what the requestor wants is a way to adjust the "start-of-file" position, which would effectively "truncate [sic] a file from the beginning to a certain point in the file". One way to accomplish this is as follows: split -b 1024 /path/to/data rm cat * > data.new -- Matt Emmerton ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"