Re: SU+J Lost files after a power failure
On 10/14/2013 12:50 PM, CeDeROM wrote: On Mon, Oct 14, 2013 at 6:47 PM, Adam Vande More amvandem...@gmail.com wrote: On Mon, Oct 14, 2013 at 11:34 AM, David Demelier demelier.da...@gmail.comwrote: Why? SU+J is enabled by default. Isn't the purpose of a journaled file system to ensure that any bad shutdown will protect data? As already stated, those measures are to preserve fs integrity eg meta data is in sync. It doesn't ensure that all the outstanding writes are committed to disk in the event of a power outage. Then why random files gets damaged as well even they are not accessed/written on power loss? :-) Random files can be affected because the sectors of the hard disk containing the directory entries for those files, not the file data itself, may be damaged (ie: the directory was in the process of being written OR the pointer to that SECTOR was in the process of being written). It doesn't mean a file was in active use, just that a chunk of the disk with data relevant to that file was. Keep in mind, one sector of disk may have data for a dozen files in it (or more). Damage doesn't have to occur because a given file was in use at the time of a crash. If your power grid is prone to failures or blips, I strongly suggest investing in a UPS. Brad ___ 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: https://wiki.freebsd.org/ certificate error
On 3/1/2013 11:11 AM, Mark Felder wrote: On Fri, 01 Mar 2013 09:42:58 -0600, fb...@a1poweruser.com wrote: The fact remains, the ms/browsers do find the wiki.freebsd.org wedsite's certificate invalid because the certificate ip address does not match the ip address the public dns points to. You can put a certificate on any IP address you want. It's not embedded into the certificate. For the most part it only matters that the CommonName on the certificate matches the hostname of the website and the certificate chain is valid. And in this particular case, the certificate is for www.freebsd.org and freebsd.org, and the browser is complaining because it's being used on wiki.freebsd.org. Their certificate should have been issued for *.freebsd.org instead of just the main site name. Unfortunately I think all of the certificate issuers charge big $$$ for that type of cert.. -- Brad Mettee ___ 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: shell scripting: grepping multiple patterns, logically ANDed
On 6/27/2012 11:25 AM, Tim Daneliuk wrote: On 06/27/2012 09:25 AM, Aleksandr Miroslav wrote: hello, I'm not sure if this is the right forum for this question, but here goes. I have the following in a shell script: #!/bin/sh if [ $# -eq 0 ]; then find /foo fi if [ $# -eq 1 ]; then find /foo | grep -i $1 fi if [ $# -eq 2 ]; then find /foo | grep -i $1 | grep -i $2 fi if [ $# -eq 3 ]; then find /foo | grep -i $1 | grep -i $2 | grep -i $3 fi Is there an easier/shorter way to do this? If there are 15 arguments supplied on the command line, I don't necessarily want to build 15 if statements. Thanks in advance for your answers. The following solution relies on the fact that you can include multiple patterns for grep to match with the '-e' argument: #!/bin/sh PATTERNS=`echo $* | sed s/\ /\ -e\ /g` find /foo | grep $PATTERNS Notice that when constructing the $PATTERNS string out of the command line args, you have to quote them with a prepended space character. That's because the subsequent 'sed' substitution needs to find a space *before* each argument which it then replaces with -e . This will build a multi-grep string for any number of arguments (within reason), functionally a boolean AND search: #!/bin/sh final_cmd=find /foo while [ $# -gt 0 ] do final_cmd=$final_cmd | grep -i $1 shift done $final_cmd May need quoting changes, but it worked on this sample, with this result: cmdline: ./testshift 1 1 2 3 4 5 result: find /foo | grep -i 1 | grep -i 1 | grep -i 2 | grep -i 3 | grep -i 4 | grep -i 5 HTH Brad ___ 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: ia64 vs amd64
ia64 is for the Intel Itanium chips, and not compatible with standard Intel architecture. amd64 is what you want to use. It's what you need for a standard x86 architecture chip that's 64bit. On 4/16/2012 9:08 AM, Eugen Konkov wrote: Hi I have Corei3 540 What is the best fit to this processor: ia64 or amd64? and what one from those is more stable? ___ 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 -- Brad Mettee PC HotShots, Inc. Westminster, MD (410) 848-0588 - Let us bring out the **Power** of your PCs. - - Custom Business Software Solutions since 1991 - Visit us http://www.pchotshots.com for information about our company. ___ 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: Freebsd9.0 and the fgets directive in gcc
On 3/21/2012 10:50 AM, Martin McCormick wrote: I've got some code which I wrote about 6 or 8 years ago that apparently doesn't get along right now with FreeBSD9.0. In the problem code, there is a loop that uses fgets to read a line from a file. It runs properly until the 2708TH iteration and then it dumps core with a segmentation fault. char string0[256]; more lines of code . . . while ( fgets(string0,sizeof(string0),fp_config)) { code to be run for each line } It runs fine until the 2,709TH iteration. Instead of reading the next line, it jumps to the line that closes fp_config even though it is far from read and exits with the segmentation fault. The man page on fgets says that if errors occur while running fgets, one must use perr to see whether the error terminated activity or it was the end of the file. In this case, it is definitely the error. Some observations: The crash occurs on the 2,709TH input no matter how long I declared string0 to be. string0 is over-written each new iteration so nothing should be accumulating that uses up resources. Maybe I am declaring string0 in the wrong data type. Originally, it had been 1024 characters long but 2709 seems to be the C equivalent to the apocalypse and I thought it was supposed to be next December:-) This same code, by the way, also fails at about the same number of iterations if one uses fgetc and builds the line one char at a time. Have you tried allocating a large block of maybe 15-20k (using alloc, or calloc) instead of declaring it on the stack? You can print the length of the line (and iteration count) for each line processed and see what max line length is. What you describe sounds more like a problem with the content of the file overflowing the space allocated and causing a stack fault than something wrong with fgets (especially if fgetc and concatenating the string causes the same problem). Also, what happens if you remove your processing code and replace it with a print of the line length the iteration count? Compilers have been know to generate buggy loop code sometimes, so that's also a possibility. -- Brad Mettee PC HotShots, Inc. Westminster, MD (410) 848-0588 - Let us bring out the **Power** of your PCs. - - Custom Business Software Solutions since 1991 - Visit us http://www.pchotshots.com for information about our company. ___ 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: umask not applied
On 12/22/2011 12:58 PM, Bastien Semene wrote: Hi list, I'm trying to apply a umask of 002 to user user (username changed for this example) while logged-in through ftpd. I used login class class (class name changed for this example) I edited /etc/login.conf and set at the bottom (there's no other entry for this user): class::umask=0002: then rebuilt the db : #cap_mkdb /etc/login.conf I assigned the user to this class: #pw usermod user -L class #pw usershow user user:*:1003:80:class:0:0:bla bla:/home/user:/bin/sh (group 80 is why I need this umask) The user still creates folders with 755 permissions through ftpd. So I switched to this user and watched the umask, it is still 0022. I tried setting the umask on the fly : $umask 0002 It works. There's no user-defined umask in ~/.login or ~/.login_conf I took care of typos and there is no error. #uname -r 8.2-RELEASE-p3 As what I read in the man pages I checked all the possibilities in the login mechanism, so if anyone has an idea it's welcome :) Thanks ! I'm not a pro FreeBSD user, but wouldn't the FTPD program be more responsible for the user's login credentials since that's what they're using that's causing the wrong permissions to be applied? From what I remember, FTPD verifies the users login, but doesn't actually execute any login scripts associated with that user. ___ 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: why does this simple counter fail?
Gary Kline wrote: I'M trying to decide whether to tatoo this on my forehead or just make a note in my ~/.notes file for the next time this breaks. if/when. Meanwhile, the best thingt to do would simply write a script to turn ? into ?php Never know when I'll get into things like ?xml or whatever. If you do the ? into ?php, don't forget to do ?phpphp into ?php too. Otherwise you'll likely corrupt already good tags. -- Brad ___ 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: why does this simple counter fail?
Gary Kline wrote: On Wed, Mar 23, 2011 at 11:47:16AM -0500, Ryan Coleman wrote: Do you have an error for it? If not... add after the first ? error_reporting(9); And see what it reports. -- Ryan PHP dev. save the bandwidth... Ok, i added the error_reporting line to both scripts. No change from the count.php, and the same output as prev from my script that tries to pick a random entry from some 70 quotes. here is what the randomquote.php scipt output onto the home page: Last updated: 17 February, 2011 echo err-9 line below:\n; $number-1){ // If ran out of quotes, start again! $num=0; } if (file_exists($directory.$quotecountfile)) { $nu = fopen ($directory.$quotecountfile, w); fputs($nu,$num); } else { die(Cant Find $quotecountfile); } } ? Note that i added the echo line just now. Having a quote isn't as meaningful as giving users the latest pagecount. That still fails without any errors. gary It looks like it's not interpreting the php code start somehow. Can you show the lines immediately above, going up to the Last Modified script? I can also see a ? further down the webpage. It might be a simple case of mis-matched start/stop tags. -- Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the **Power** of your PCs. - - Custom Business Software Solutions since 1991 - Visit us http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: no apache22, php5 cores
Gary Kline wrote: Everything seems to be working except that % lynx http://www.thought.org/ times out. Oh, and I haven't tried host thought.org yet. It may be my latest bind97 since bind9 had an en-of-life recently. Have you tried?: nslookup www.thought.org If it resolves, then bind9 isn't your problem. Try this instead and see what happens: telnet www.thought.org 80 Also, netstat should show port 80 open and waiting for a connection too. Hope this helps, Brad ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: no apache22, php5 cores
Gary Kline wrote: On Fri, Jan 21, 2011 at 05:01:25PM -0500, Brad Mettee wrote: Works, altho it ignores my orginal nameserver , it is happy with 8.8.8.8. If it resolves, then bind9 isn't your problem. Try this instead and see what happens: telnet www.thought.org 80 Times out. I hope this means sometimg! Also, netstat should show port 80 open and waiting for a connection too. I didn't try netstat during the telnet try, but netstat alone [from here on my desktop] looks interesting. (I don't use it that often). I'll paste in some output; you tell me if it looks interesting! ctive Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 tao.thought.org:37916 74.125.209.81:www ESTABLISHED tcp0 0 tao.thought.org:55475 unknown.iad.scnet.n:www CLOSE_WAIT tcp0 0 tao.thought.org:46990 208.117.252.26:www ESTABLISHED tcp0 0 tao.thought.org:44131 ethic.thought.org:imaps ESTABLISHED tcp0 0 tao.thought.org:58950 ethic.thought.org:imap2 ESTABLISHED tcp0 1 tao.thought.org:34636 67.132.30.58:www FIN_WAIT1 tcp0 0 tao.thought.org:38330 67.132.30.58:www ESTABLISHED tcp0 0 tao.thought.org:51084 cds309.sea.llnw.net:www ESTABLISHED tcp0 0 tao.thought.org:60963 pz-in-f147.1e100.ne:www ESTABLISHED tcp0 0 tao.thought.org:56229 208.117.252.159:www ESTABLISHED tcp0 0 tao.thought.org:42114 ethic.thought.org:ssh ESTABLISHED tcp0336 tao.thought.org:59156 addons.acelb.sj.m:https ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ] DGRAM4578 /var/spool/postfix/de Looking at, say, the first Foreign Address, does that mean that 74.125.209.81:wwwis looking at my www? Or I connected with his Those lines mean you're connected to them. Post your output from this: netstat -an | grep tcp This should show current connections AND current listening sockets. If you don't see anything on *.80, then httpd isn't running, or at least isn't listening on the right port. -- Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the **Power** of your PCs. - - Custom Business Software Solutions since 1991 - Visit us http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
Gary Kline wrote: On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote: On Tue, Jan 11, 2011 at 11:46 AM, Gary Kline kl...@thought.org wrote: On Mon, Jan 10, 2011 at 10:07:28PM +, Paul Macdonald wrote: On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. Well, I have no screen-capture set up o my server, so cannot show the firefox display. But here is the samr thing using lynx: According to the /usr/local/www/wordpress/* files, php is not running. I had the wordpress port install itself in the default place: in /usr/local/www; should I cp the files somewhere else? --I have no subdomain wordpress (or wordpress.thought.org). ps 8:20 Server ethic [5025] lynx wp-admin/install.php (p1 of 3) WordPress Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off. WordPress get_var(SHOW TABLES LIKE '$wpdb-users') != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST['blog_public'] ); $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; if ( ! is_null( $error ) ) { ? ERROR So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary Gary, Did you set up your webserver to parse .php/.phps files. In Apache this is probably (I don't have apache install on my fbsd box anymore) at /usr/local/etc/apache22/conf/Includes/php.conf. I don't know about other webservers... hth/c- Here is a grep -1 php of the httpd.conf, showing that the php types are allowed. LoadModule rewrite_module libexec/apache22/mod_rewrite.so LoadModule php5_modulelibexec/apache22/libphp5.so LoadModule php5_modulelibexec/apache/libphp5.so ###LoadModule php5_modulelibexec/apache/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php .htm .html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps So, yeah, looks like that is permitted.. Does the PHP.INI file have short tags enabled? Does WordPress use them by default? (Look at the beginning of the wordpress php files, look for ?php, this is the normal php tag, but a short tag (deprecated, but still usable) looks like this ?. Only ONE of the AddTypes should exist, I'm not sure how Apache will handle it if there are multiple of them. Prune it back to being just this pair (and make sure you do an apache restart after you change it): AddType application/x-httpd-php .php .htm .html .phtml AddType application/x-httpd-php-source .phps If you execute php -version from the shell, what do you get? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: need help with php.
Gary Kline wrote: On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote: That's if someone messed up the original CSR, IMO, or didn't get the ServerName directive just right. --I don't know what the snag is, but even 5.2 fails. php execs; it just doesn't do anything. I built the test.php with ? phpinfo(); ? and zip. Scrreen is blank. Let me try konqueror; maybe I don't have something turned on it firfox3. gary Try using ?php as your beginning tag. You can also try running php test.php from a shell and see if you get anything back. What does php -v return? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: need help with php.
Gary Kline wrote: On Wed, Oct 20, 2010 at 04:16:54PM -0400, Brad Mettee wrote: Gary Kline wrote: On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote: That's if someone messed up the original CSR, IMO, or didn't get the ServerName directive just right. --I don't know what the snag is, but even 5.2 fails. php execs; it just doesn't do anything. I built the test.php with ? phpinfo(); ? and zip. Scrreen is blank. Let me try konqueror; maybe I don't have something turned on it firfox3. gary Try using ?php as your beginning tag. Yeah, been doing that. As a CLI guy, that's preferred:) I'll cutpaste. You tell me. [[this is with 5.2... ]] r...@ethic:/usr/local/www/apache22/data# ? Invalid null command. r...@ethic:/usr/local/www/apache22/data# ? echo hi ? Missing name for redirect. r...@ethic:/usr/local/www/apache22/data# php ./test.php ? phpinfo(); ? r...@ethic:/usr/local/www/apache22/data# Hm. php aimed at ./test.php just catenates the file. Does that tell you anything? It tells us that PHP is working fine, and that nothing is wrong with the program itself. I think it's down to a config problem now. Full tag usage ?php is required UNLESS you edit the php.ini. Here's the part you're looking for along with the comments: - ; Allow the ? tag. Otherwise, only ?php and script tags are recognized. ; NOTE: Using short tags should be avoided when developing applications or ; libraries that are meant for redistribution, or deployment on PHP ; servers which are not under your control, because short tags may not ; be supported on the target server. For portable, redistributable code, ; be sure not to use short tags. short_open_tag = Off - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: need help with php.
I do a lot with PHP. We can discuss on the list or in private. Does PHP fail to run, or are you seeing errors thrown by it? What's the URL of the failing script? Gary Kline wrote: Ok, I've done everything I can think of and still my php5 fails. Several pages use a php counter [[that I wrote years ago. That is the main thing that is busted. Anybody up to helping me with this one? gary -- Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the **Power** of your PCs. - - Custom Business Software Solutions since 1991 - Visit us http://www.pchotshots.com for information about our company. ___ 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: Has anybody got a *working* example of getpwnam_r() ??
Robert Bonomi wrote: snippage And if this doesn't help, there's always Google CodeSearch http://www.google.com/codesearch , for examples of how to call it. ALL I find at www.google.com/codesearch, when I ask for 'getpwnam_r' is source- code for the getpwnam_r function. Needless to say, that's =no= help. except for confirming that the parameters match what I'm doing. *sigh* Thanks for the thoughts, though. Here are a few links to FreeBSD code using the function: Search criteria for codesearch was: 'lang:c freebsd getpwnam_r' (it did take me a few minutes to sift through the samples vs the declarations). http://www.google.com/codesearch/p?hl=en#hv2-lQo77SI/nss_ldap-249/tests/testpw.cq=lang:%22c%22%20getpwnam_r%20freebsdsa=Ncd=7ct=rc http://www.google.com/codesearch/p?hl=en#-wKRNbYkeKI/pub/FreeBSD/distfiles/cadaver-0.22.5.tar.gz|DXHv6JvXDfo/cadaver-0.22.5/lib/glob.cq=lang:%22c%22%20getpwnam_r http://www.google.com/codesearch/p?hl=en#bQvTeDN3Ef0/dspam-3.6.5/src/pgsql_drv.cq=lang:%22c%22%20getpwnam_r%20freebsdsa=Ncd=14ct=rc Hope the links aren't too badly mangled by mail. ___ 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: Has anybody got a *working* example of getpwnam_r() ??
Robert Bonomi wrote: I've _got_ to be doing something wrong, sine I'm getting heap corruption calling it. But for the life of me, I can't figure out -what- is wrong. What I've got makes a whole lot of no sense -- I get corruption of the _same_ malloc()'d data structure (at *exactly* the same offset into the structure!!) on both 7.2 i386 and 8.0 amd64 releases (on different hardware). Unfortunately thee is a _lot_ of code, including significant use of of malloc()/free() that attempmting to whittle things down to a minimal test case would be very awkward. right now, I've got the corruption at a 'known' place, but no cluse as to -how- it's happening -- available evidence seems to exclude everything passed _into_ getwpnam_r(). the offending call is : getpwnam_r(cp3, pw_data, buffer2, sizeof(buffer2), pwd); data declaration at the beginning of the function: char buffer[1024]; char buffer2[1024]; char mailbox[1024]; *cp,*cp2,*cp3,*cp4 = buffer; struct passwd pw_data,pw_data2,*pwd=pw_data2; int i; The whole program is around 2500 lines of code and headers, with, as mentioined, _lots_ of malloc()/free() activity, I can put ut it up on my web-server, if somebody really wants to dig. I've tried changing the size of buffer2 to 8kb, in case I was over-running the 1k buffer. ((unfortunately the mmanpage does _not_ specify a minimum size for the buffer) I've tried declaring buffer2 _and_ the 'struct passwd' items as 'static', so that _if_ the corruption was coming from one of those addresses, the corruption *should* move. *NONE* of those changes made _any_ differnce in where the corruption was occuring, or _what_ was being written there. I'm *really* baffled. HELP!!! *whimper* _what_ stuff shows up _does_ differ between the 7.2 and 8.0 systems, 8.0 reliably produces 116 bytes corrupted: [gdb command: x/112 private_data_pointer-remotehostname 0x40a0e070: 103 'g' 114 'r' 111 'o' 117 'u' 112 'p' 0 '\0' 0 '\0' 0 '\0' 0x40a0e078: 99 'c' 111 'o' 109 'm' 112 'p' 97 'a' 116 't' 0 '\0' 0 '\0' 0x40a0e080: 99 'c' 111 'o' 109 'm' 112 'p' 97 'a' 116 't' 0 '\0' 0 '\0' 0x40a0e088: 104 'h' 111 'o' 115 's' 116 't' 115 's' 0 '\0' 0 '\0' 0 '\0' 0x40a0e090: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0' 0 '\0' 0 '\0' 0x40a0e098: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0' 0 '\0' 0 '\0' 0x40a0e0a0: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0' 0 '\0' 0 '\0' 0x40a0e0a8: 112 'p' 97 'a' 115 's' 115 's' 119 'w' 100 'd' 0 '\0' 0 '\0' 0x40a0e0b0: 99 'c' 111 'o' 109 'm' 112 'p' 97 'a' 116 't' 0 '\0' 0 '\0' 0x40a0e0b8: 115 's' 104 'h' 101 'e' 108 'l' 108 'l' 115 's' 0 '\0' 0 '\0' 0x40a0e0c0: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0' 0 '\0' 0 '\0' 0x40a0e0c8: 99 'c' 111 'o' 109 'm' 112 'p' 97 'a' 116 't' 0 '\0' 0 '\0' 0x40a0e0d0: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0' 0 '\0' 0 '\0' 0x40a0e0d8: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0' 0 '\0' 0 '\0' 7.2 produces 64 bytes corrupted: [gdb command: x/112 private_data_pointer-remotehostname 0x2820b098: 100 'd' 110 'n' 115 's' 0 '\0' 110 'n' 105 'i' 115 's' 0 '\0' 0x2820b0a0: 110 'n' 105 'i' 115 's' 0 '\0' 114 'r' 112 'p' 99 'c' 0 '\0' 0x2820b0a8: 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0x2820b0b0: 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0x2820b0b8: 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0x2820b0c0: 0 '\0' 0 '\0' 0 '\0' 0 '\0' 3 '\003'0 '\0' 8 '\b' 0 '\0' 0x2820b0c8: 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0x2820b0d0: 2 '\002'0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' This stuff looks like it -might- be fromm a nsswitch.conf parse. I dunno. anybody got _any_ ideas? This might help. Just above the crashing call, open a file, and dump the contents of the vars you're sending to the function with fprintf, then close the file. I suspect cp3 doesn't point to valid data and is causing the function call to fail (it looks like it's pointing to the same thing as buffer, which doesn't look like how the function should be called). Having the contents of the individual vars will help you narrow down exactly what's occuring. Data you want to see is the pointers themselves, and maybe the first 8 or so characters of data that it's pointing to. And if this doesn't help, there's always Google CodeSearch http://www.google.com/codesearch , for examples of how to call it. ___ 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: touch madness
Based on the man page for touch, it doesn't use the d/m/s flags. Your line should be touch -A -000430 filename.here Which would be subtract 0 hours, 4 minutes and 30 seconds from current time of the file. I created test file, checked time of it, subtracted N minutes to make it even to the hour and it worked as described. Dimitar Vassilev wrote: Hi, I'm trying to find the match for touch -d now-5minutes+30seconds under freebsd. Got a munin plugin that i'd like to change without installing the emulator port. I have touch -A, however when i pass touch -A -00d04m30s i don't get anything as a file. Can someone give the exact syntax if possible. Thanks and all the best. Dimitar ___ 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 -- Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the **Power** of your PCs. - - Custom Business Software Solutions since 1991 - Visit us http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: need C help, passing char buffer[] by-value....
Gary Kline wrote: Guys, maybe this can't be done reading in a file with fgets(buffer[128], fp), then calling skiptags(), conditionally, to while () past ',' and ''. I know I need to calll skipTags with its address, skipTags(buffer);, but then how to i handle the variable s in skipTags? Anybody? // redo, skip TAGS skipTags((char *)s) { if (*s == '') { while (*s != '') { s++; } s++; } } Your function may not work exactly as you think it will. Your basic idea runs on the assumption that the tag will never be broken during the file read. It's possible that you'll read some dataTag begin and the next read will have more data heretag ends, or some variation thereof. If you know for a fact that the string you read in will always be complete, then what's below should work fine: // where *s is the address of a string to be parsed // maxlen represents the maximum number of chars potentially in the string and is not zero based (ie: maxlen 256 = char positions 0-255) // *curpos is the current position of the pointer (this prevents bounds errors) skipTags(char *s, long maxlen, long *curpos) { if (*s == '') { while (*s != '' *s *curpos maxlen) { s++; (*curpos)++; } if (*curpos maxlen) { s++; (*curpos)++; } } } When you read in the next line of the file, reset curpos to zero, set maxlen to number of bytes read. As you process each char after the function is called, you'll need to increment curpos as well. Depending on the size of the files you are reading, you may be able to read the entire file into memory at once and avoid any possible TAG splitting. If you explain exactly what you're trying to accomplish, we may be able to come up with an easier/cleaner solution. (warning: none of the above code is tested, but in concept it should work ok) ___ 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: Second disks causes invalid partition when booting/no disks found in sysinstall
What happens if you put the drive on a secondary controller? (Maybe use the CD-ROM drive cable) With the drive on a separate cable, you should be able to avoid any problems that cable select or jumpers may be causing. At 05:51 PM 7/7/2009, Hans F. Nordhaug wrote: * Hans F. Nordhaug hans.f.nordh...@himolde.no [2009-07-07]: Hi! I have been running FreeBSD happily for several years on the same old hardware. 2 weeks ago when I was on vacation one of the disks started to have problems, and 5 days ago the disk just stopped working - far too many read failures to get anything mounted. I got a new disk yesterday (finally home from vacation). The problems started when I tried to install FreeBSD 7.2 - I got no disks found from sysinstall all the time. The BIOS reported happily the new master and the old slave/hard drive. OK, I just disconnected the old slave and was able to install FreeBSD on the master. I was thinking/hoping that with the OS in place I should be able to read the old slave (which was one single UFS partition). Anyway, if I connect the old slave/hard drive I get invalid partition when booting - argh! What should/can I do? If I run the Live CD (livefs), I of course get no disks found ... [cut] I did some more tests and: 1) Using only the old slave/hard drive works - it's detected by sysinstall. (The new drive is disconected.) 2) I replaced the FreeBSD boot manager with the standard boot manager, but still the FreeBSD boot manager kicked in unless I disconnected the old slave. This seems to indicate that the old slave also has a FreeBSD boot manager installed... The next obvious step (to me) is to remove the FreeBSD boot manager from the old slave. I guess I can do it with sysinstall, but how? The data on the disk can not be lost... Is there other things I should try? Regards, Hans Nordhaug ___ 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 Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ 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
update from 7.0 to 7.2?
If a system is stable and ports are up to date, serving mail web pages as needed, is there any reason to update from this: FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 To something newer? (like 7.2 stable) Would there be any noticeable benefit from an update? Thanks Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ 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: update from 7.0 to 7.2?
At 03:20 PM 6/29/2009, you wrote: Brad Mettee bmet...@pchotshots.com writes: If a system is stable and ports are up to date, serving mail web pages as needed, is there any reason to update from this: FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 To something newer? (like 7.2 stable) Would there be any noticeable benefit from an update? At *least* make sure you get the security updates... -- Lowell Gilbert, embedded/networking software engineer, Boston area Ok, looks like I have some reading to do. Thanks everyone. Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: OT: C syntax question
At 08:41 PM 6/29/2009, Robert Huff wrote: Let us suppose I have a structure: struct CONTINENT { ... } I use this to create an array of pointers to said struct: struct CONTINENT *Asia[10][10]; Now I pass this array to a function: plate_shift(Asia, (int) foo, (float) bar); In the definition of the function, I say: int plate_shift(Cont,f,b) struct CONTINENT *Cont[10][10]; int f; float b; { ... } and the compiler does not complain. If, however, I try to prototype the function as: extern int plate_shift(struct CONTINENT *[][],int,float); with: CFLAGS = -Wall -std=c99 I get: error: array type has incomplete element type Changing to: extern int plate_shift(struct CONTINENT *foo[][],int,float); returns the same error. KR 2ed is not helpful, nor is a quick poke around the web. What am I forgetting? Respectfully, Robert Huff I believe since you are declaring the array as having a fixed number of elements, you must declare the function to take it the same way, like this: extern int plate_shift(struct CONTINENT *[10][10],int,float); Without the 10,10 size definition, the plate_shift function would have no idea how big the array of pointers actually is. Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ 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: /usr/bin/calendar in cgi script
You'll need to put it in a pre /pre html block to preserve the formatting. Or you can try to substitute the '\n' into 'br' somehow (been a while since I did search/replace in an include so I can't be more specific). At 03:02 PM 4/11/2009, you wrote: Hi, I have a cgi script on my website that runs: /usr/bin/calendar -f /usr/share/calendar/calendar.history Now, when I run that script in a terminal, the output is perfectly formatted, multiple lines (if there are multiple events on this date), date first, event, year. Just right. But, when I put that in an include statement in a webpage, the output is a single line, regardless of whether there are multiple events. You can see a bad example here: http://bubbabbq.homeunix.net/history_cgi.shtml How can I make multiple events show on separate lines, like it does in terminal? -- Thanks, Charles Reasons it's great to be a guy... You get to think about sex 90% of your waking hours. ___ 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: disk/drive-bay problem
At 12:10 PM 2/26/2009, Roland Smith wrote: On Wed, Feb 25, 2009 at 05:59:58PM -0800, Richard Stockton wrote: I have a Dell PowerEdge 4400 running FreeBSD 6.2 (yes, I know it's old). This machine has 8 hot-swapable drive bays. Recently I purchased 7 new drives for it (300Gig 15K) to replace the old ones (145Gig 10k). I was able to successfully install 6 of the 7 drives, and they all work perfectly. The 7th drive (actually the 4th drive-bay) gives lots of errors like this: g_vfs_done():da4s1d[READ(offset=261868847104, length=16384)]error = 5 One reason I've seen for this error is a bad cable connection. It could be that the connector between the drive and the bay is somewhat oxidised or dirty. Sanding the connectors might help in that case. Try to avoid sanding a connector. It's better to use a clean pencil eraser and basically wipe off the oxidation. After it's looking shiny, use a clean cloth to wipe off any eraser residue. Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ 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: short-changed on SD card?
Grrr - I really don't like that this mailing list default Reply-To is the original author instead of the mailing list itself Snip from mis-directed e-mail Does an XP machine also detect it as 960MB? If not, can you put more than 960M on it and verify that it's all intact? Create a 100MB zip file, put 10+ copies on the card. Then test to see if the CRC is correct on all of the copies. If they're alls ok, then the card is in fact 2GB. If you start getting errors on any of the files (and can wipe/repeat the problem), then I'd say you've been ripped off and it's only a 1GB card. At 03:45 PM 2/2/2009, Wojciech Puchar wrote: da1: 960MB (1967616 512 byte sectors: 64H 32S/T 960C) it's something wrong with FreeBSD here, it gets detected as 1GB. it has nothing to do with filesystem on it. ___ 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 Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ 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: kvm switch
We use a Belkin OmniView Pro3, 8 port model. It handles PS/2 and USB and works fine with FreeBSD (and Windows). I've never seen it screw up the mouse or keyboard through hundreds of changes. http://www.newegg.com/Product/Product.aspx?Item=N82E16817394048 (4 port model) You buy cables as you need them in pairs of PS/2 or USB. One cable supports two computers. At 11:16 PM 1/19/2009, you wrote: Do you have a kvm switch that does mouse and keyboard emulation and know that it works with freebsd? I have an iogear kvm switch from around the last time I asked this question here years back, that has usually worked with linux, netbsd, openbsd, macos and windows. Back then to work with freebsd, each time I switched away and back I would login remotely and issue a command to get freebsd to recognize the keyboard again. The newer version of my kvm switch says it has mouse and keyboard emulation, but I can't get a straight answer out of them if that means the OS can tell that they keyboard has disconnected or not. Do you know? Or do you know of a KVM switch, that does that and is suitable for an impoverished person's home computing needs? Also, I read someone's comment on newegg that the mouse emulation only emulates 2 buttons. Do you know if that is true? Kendall ___ 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 Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ 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: Mysqldump password issue
Shouldn't there be a space between -p and the password? Like this: mysqldump -u user -p passwd --all-databases backup.sql At 02:34 PM 10/2/2008, you wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Andrei Brezan wrote: | Hello list, | | I wanna do a | mysqldump -u user -ppasswd --all-databases backup.sql | | and all I get is | mysqldump: No match. | | This happens either i put --all-databases or I specify any of the | databases. I want to do a backup as user root, that's why I use | all-databases opt. | | If I use the command: | mysqldump -u root -p --all-databases backup.sql | I get the password prompt, I type the passwd and everythig works great. | It seems that there is a problem with -p, i've tried --password with | same result. | | If anyone has any ideea please let me know about it. | I mention that i use Freebsd 7_0 and mysql 5.0.67 Same MySQL version here, but running CURRENT. Everything works fine.. | | Thank you | | - -- Pietro Cerutti [EMAIL PROTECTED] PGP Public Key: http://gahr.ch/pgp -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkjlFCAACgkQwMJqmJVx947dzgCgmOM46RQWS+lTEHXHd/wXkZUX Uz8AoJEkwynwlaH9rMjRxgp7Xvja82M1 =On8Y -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
firefox upgrade, BASE_BIND problem
I'm trying to use portupgrade to bring Firefox up to current (2.0.0.16) from 2.0.0.12. I'm getting the msg firefox-2.0.0.16,1: bind installed with PORT_REPLACES_BASE_BIND causes build problems. This machine is running as a DNS Server, so bind94 is installed and necessary. How can I get around this error? I've tried to google for a solution, but all I can find are a few references to the problem, but no actual solution. Thanks. Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: whatkind of 19 LCD display??
DVI = Digital Visual Interface (aka Digital Video Interface) http://en.wikipedia.org/wiki/Digital_Visual_Interface Basically instead of sending analog signals from PC to monitor, it's a digital data stream. You won't get any distortion between source and destination. At 10:56 PM 7/28/2008, you wrote: On Mon, Jul 28, 2008 at 10:30:22PM -0400, Chris Hill wrote: On Mon, 28 Jul 2008, Chris Hill wrote: On Mon, 28 Jul 2008, Gary Kline wrote: [snip] whatever display i get has to have dual capability. both digital and analog-- eventually I'll need a new KVM box. so what are the top few makes of LCDs out there? I've been using a ViewSonic VP930b for a few years, and been very happy with it. It has two VGA inputs, no DVI. Probably not made anymore so I guess that's moot. - Replying to my own post like a tool - This monitor does in fact have a DVI input in addition to the two VGAs. Don't know if that counts as 'digital' or not. while i can still TYPE today:: the fact is that i was a hardware major, not software. but got shuffled into pporting an f77 compiler for my intership now, i know almost Zero about hardware, so no clue what this dvi input means. sad, isnt it? -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging | ] -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: groups, using www as kline
What are the permissions on the files you're trying to edit? 664 would allow owner/group editing, but readonly by world. If it's 644, then only owner can edit, but group/world can read. At 04:05 PM 7/21/2008, you wrote: On Mon, Jul 21, 2008 at 11:08:15AM -0700, Chuck Swiger wrote: On Jul 21, 2008, at 10:50 AM, Gary Kline wrote: is there a way of modifing etcgroup to let me edit files chown'd www:kline as kline? after all, i am in the wheel and operator group. Presuming you are in the kline group also, and that the files are group-writable, you should be fine. On a fair number of sites I know of, there is a webadmin or wwwadmin group setup which the users who should change webserver resources are part of; but the apache www user is not a member of this, so it can't change those files itself. strage, i'm in kline is part of www; but i stil fon'thave permission for myself---or, indeed, anyone new. gary Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ 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: general question - php5 extensions
Hadn't even occurred to me to file a PR. Getting the whole process working kinda derailled all trains of thought outside of alright!, it works!. Good idea, will let him know about it. At 07:35 AM 7/12/2008, you wrote: On Fri, 11 Jul 2008 22:47:50 -0400 Brad Mettee [EMAIL PROTECTED] wrote: [snip] You're portmanager line has been very helpful, everything that I was trying to get installed is actually working! I only had one problem and that's because Mail-Toaster defines itself as a package without defining an ORIGIN line in it's +CONTENTS pkg file. Once I added that I stopped getting portmanager upgrade errors and everything got properly upgraded and compiled. Glad to hear it worked for you. Regarding the problem with toaster, did you file a PR or report it to the maintainer? It might help to avoid problems for other users. -- Gerard [EMAIL PROTECTED] Yesterday I was a dog. Today I'm a dog. Tomorrow I'll probably still be a dog. Sigh! There's so little hope for advancement. Snoopy Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
general question - php5 extensions
I've been banging my head for 2 days trying to get php5 compiled with extensions OR a way to find the .so files so it could dynamically link them. I've finally stumbled on the php5-* directories in the ports tree and it's compiling extensions right now, except that I keep having to deinstall an extension then restart the php5-extension make again so it can continue. Why isn't there a single folder under the lang/php5 directory that would put all of the extensions in the same place? Having them broken up into all of the varying places in the tree makes it extremely difficult to find them. Or maybe at least have sym links to them in one place. This is just for discussion, I don't expect an actual answer.. Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: general question - php5 extensions
Ok, maybe I wasn't as clear as I should have been. It wasn't that I didn't find php5-extensions, or even that it's difficult to use, but actually tracking down the php5-extensions directory in the first place was somewhat of a problem because there is no mention anywhere of it in the lang/php5 doc files. I finally stumbled on a reference to it in a 2 year old doc I found on google while looking for how to make .so extension extensions be found by php. There's also a couple of extensions not in the php5-extensions list, but I found them as well (samba share, dir php5-* /ad /s starting in the /usr/ports directory helped a lot). You're portmanager line has been very helpful, everything that I was trying to get installed is actually working! I only had one problem and that's because Mail-Toaster defines itself as a package without defining an ORIGIN line in it's +CONTENTS pkg file. Once I added that I stopped getting portmanager upgrade errors and everything got properly upgraded and compiled. At 03:59 PM 7/11/2008, you wrote: On Fri, 11 Jul 2008 15:30:21 -0400 Brad Mettee [EMAIL PROTECTED] wrote: I've been banging my head for 2 days trying to get php5 compiled with extensions OR a way to find the .so files so it could dynamically link them. I've finally stumbled on the php5-* directories in the ports tree and it's compiling extensions right now, except that I keep having to deinstall an extension then restart the php5-extension make again so it can continue. Why isn't there a single folder under the lang/php5 directory that would put all of the extensions in the same place? Having them broken up into all of the varying places in the tree makes it extremely difficult to find them. Or maybe at least have sym links to them in one place. This is just for discussion, I don't expect an actual answer.. Are you referring to 'php5-extensions-1.1' in the ports tree? Assuming you have installed php5 via ports, why couldn't you just run: portupgrade -NRryv php5-extensions You will probably want to run 'make config' in that directory before running portupgrade. You could also use portmanager: portmanager lang/php5-extensions -p -y -l HTH -- Gerard [EMAIL PROTECTED] Oh, give me a home, Where the buffalo roam, And I'll show you a house with a really messy kitchen. Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ia-64 Floppies
To clarify Kris' response: amd64 = AMD/Intel 64bit capable CPUs ia64 = Intel Itanium So if you're looking for an x86 compatible install CD, then you'll be wanting the amd64 version. (sorry for the direct reply Kris, I'm not used to mailing lists that don't do proper reply-to) At 12:13 PM 7/9/2008, you wrote: John William Blyth wrote: Please help: I am trying to install Free BSD ia-64 architecture but cannot find floppies. Will the 386 floppies work? My cdrom will not boot from ia-64 live. I doubt that you have an ia64. Are you absolutely certain you don't mean amd64? Kris ___ 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]
rblsmtpd/qmail-smtpd hung processes
I've run into a bit of a problem and if I don't solve it soon, I'm going to be without e-mail (and so will a lot of other people). This is a bit long, I'm trying to include anything that may help. The problem is that qmail-smtpd and/or rblsmtpd get stuck and don't close. After a while the server just quits accepting smtp connections, or will connect/disconnect very quickly (connection closed by foreign host). Using kill on these processes just opens another instance of them (they're managed by /var/service). Since I'm not seeing any log activity that shows what's going on, I'm having a hard time figuring it out. I know the processes are supposed to be timing out and closing, but don't seem to be doing that Has anyone seen this problem? I've tried searching for info on it, but can't find anything that looks similar. I currently have rblsmtpd disabled since it sits between the outside world and qmail-smtpd. The errors don't occur quickly, it seems to take multiple hours to occur so this is hard to debug because I can't create the problem on demand. Any ideas are welcome. (hopefully I'll be able to get mail from this address long enough to fix this - it's one of the ones that's been moved to this machine already) uname -a FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC amd64 Related ports in use: ucspi-tcp-0.88_2 qmail-1.03_7 qmailadmin-1.2.10,1 vpopmail-5.4.26_1 dovecote-1.0.14 A quick bit of history: Our email/dns provider is closing up shop in about a week (good friend of mine was a small ISP). I only had about 3 weeks notice on this and I've been configuring a pair of FreeBSD machines (I posted to the list a couple weeks ago, thanks everyone for good replies, ) to take over DNS and E-Mail for about a dozen sites. Basically I've been on a crash course of learning as I go. Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
re: rblsmtpd/qmail-smtpd hung processes
I've run into a bit of a problem and if I don't solve it soon, I'm going to be without e-mail (and so will a lot of other people). This is a bit long, I'm trying to include anything that may help. The problem is that qmail-smtpd and/or rblsmtpd get stuck and don't close. After a while the server just quits accepting smtp connections, or will connect/disconnect very quickly (connection closed by foreign host). Using kill on these processes just opens another instance of them (they're managed by /var/service). Since I'm not seeing any log activity that shows what's going on, I'm having a hard time figuring it out. I know the processes are supposed to be timing out and closing, but don't seem to be doing that Has anyone seen this problem? I've tried searching for info on it, but can't find anything that looks similar. I currently have rblsmtpd disabled since it sits between the outside world and qmail-smtpd. The errors don't occur quickly, it seems to take multiple hours to occur so this is hard to debug because I can't create the problem on demand. Any ideas are welcome. (hopefully I'll be able to get mail from this address long enough to fix this - it's one of the ones that's been moved to this machine already) uname -a FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC amd64 Related ports in use: ucspi-tcp-0.88_2 qmail-1.03_7 qmailadmin-1.2.10,1 vpopmail-5.4.26_1 dovecote-1.0.14 A quick bit of history: Our email/dns provider is closing up shop in about a week (good friend of mine was a small ISP). I only had about 3 weeks notice on this and I've been configuring a pair of FreeBSD machines (I posted to the list a couple weeks ago, thanks everyone for good replies, ) to take over DNS and E-Mail for about a dozen sites. Basically I've been on a crash course of learning as I go. I hate responding to my own message, but I think I've finally found the solution. I'm using Matt Simerson's Mail Toaster package. The file toaster.conf file needs to be 644 so that when rotating logs, the programs can re-read the config. Apparently all of the hanging files were dying because they couldn't read the config and crashed. Once crashed the supervisor decided it needed to start a new copy, which would crash as soon as something connected to it, and so on. This also seems to have fixed a problem where some e-mails would get stuck in the queue and never leave. They've all been delivered/deleted like they should now. I got lucky in finding this. I happened to spot the rotated log file staying empty within a few minutes of seeing the hung processes starting to stack up. It gave me a good starting point to googling for a solution. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
clone a drive, no raid involved
I'm setting up a pair of machines with almost identical OS config, and completely identical hardware. One is a primary DNS server, the other is secondary. NS1 will also serve web, NS2 will be a mail server. Both are low volume/loads. It looks like I can use DD to copy an entire drive, but it's a 500G drive and that's going to take a really long time (especially since it's brand new with no data besides base OS). My question: Is there a better way to duplicate a drive including boot info? Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
new hardware - compatible?
Hi all, I'm new to FreeBSD and don't have a lot of time to go digging through archives/info to find answers, so excuse this if it's a noob question. It's an emergency server build, and needs to be solid and fast. Will FreeBSD have any problems running on the following hardware? Which would be better FreeBSD 6.3 or 7? Intel Quad Core Extreme 3Ghz, LGA775 Asus P5K-E Motherboard (P35 chipset, Onboard LAN) 4G Kingston DDR 2 RAM (PC2 6400) Seagate 500G, SATA 2, 7200RPM GeForce 7200GS 128MB 32-bit GDDR2 PCI-E x16 Video Card (basically a cheap vid card) Samsung SATA CD-ROM Thanks in advance. (I've been building/running x86 boxes since DOS 3.3, just haven't had need of *nix environment yet, so I'm not total noob) Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 - Let us bring out the *Power* of your PCs. - - Custom Business Software Solutions since 1991 - visit http://www.pchotshots.com for information about our company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]