Re: USB mouse problems.
El Sáb 09 Ago 2008, Bernt Hansson escribió: ums0: A4Tech PS/2+USB Mouse, class 0/0, rev 1.10/0.02, addr 2 on uhub1 ums0: 8 buttons and Z dir if you see those lines, means the kernel found your mouse, run the command ps axw|grep -i mouse to see if moused is running maps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mysql and BIND 9.4.2
On 11/08/08 23:23, Johnson, James wrote: Thanks Chris, I'll look into this. Have you or anyone you know ever set something like this before? What I'm trying to do is replace our name servers, they will be Virtualized. I have several nameservers running from a replicated MySQL database, on both Ubuntu and FreeBSD, and in the past on Debian. It's not really a FreeBSD issue this, so you might be better off with the bind-dlz-testers mailing list (http://bind-dlz.sourceforge.net/mailing_list.html). There's a good deal of information on configuring bind-dlz on the bind-dlz site, and a good deal of information on configuring replication in MySQL on the MySQL site. Here are a few pointers from my experience: Like any database project, spend some time thinking carefully about your database schema before you start. As I recall, the examples on the bind-dlz site place SOA records and other RRs in the same table. I prefer to separate these out, eg -- -- Table structure for table `dns_rr` -- CREATE TABLE `dns_rr` ( `rr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `zone` varchar(255) NOT NULL DEFAULT '', `host` varchar(255) NOT NULL DEFAULT '@', `ttl` mediumint(8) unsigned NOT NULL DEFAULT '86400', `rr_type` enum('A','','MX','PTR','NS','TXT','CNAME','RP','SRV') NOT NULL DEFAULT 'A', `mx_priority` smallint(5) unsigned DEFAULT NULL, `rr_data` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`rr_id`), KEY `zone` (`zone`), KEY `zone_host` (`zone`(250),`host`(250)), KEY `rr_type` (`rr_type`), KEY `zone_host_type` (`zone`(245),`host`(245),`rr_type`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- -- Table structure for table `dns_soa` -- CREATE TABLE `dns_soa` ( `zone` varchar(255) NOT NULL DEFAULT '', `ttl` mediumint(8) unsigned NOT NULL DEFAULT '86400', `primary_ns` varchar(255) NOT NULL DEFAULT 'ns0.example.com.', `resp_person` varchar(255) DEFAULT 'hostmaster', `serial` bigint(20) unsigned DEFAULT '1', `refresh` mediumint(8) unsigned DEFAULT '3600', `retry` mediumint(8) unsigned DEFAULT '600', `expire` int(10) unsigned DEFAULT '2419200', `minimum` mediumint(8) unsigned DEFAULT '1800', `owner` varchar(30) NOT NULL DEFAULT '', `active` enum('yes','no') NOT NULL DEFAULT 'no', PRIMARY KEY (`zone`), KEY `owner` (`owner`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; If you plan on running bind chroot bear in mind that if you connect to MySQL with a unix socket, you need the socket to be in the chroot. An alternative, with slightly more overhead, is to connect with TCP. But don't forget that if you specify the host as 'localhost' the mysql client will try to use unix sockets - you need to specify it as 127.0.0.1 to force TCP. Spend some time tuning MySQL. In particular, make sure the query cache is adequate. Query responses are quite small, so I've found reducing query_cache_min_res_unit to 1k useful. It may be worth considering running a separate instance of MySQL just for bind so that it can be tuned to that specific purpose and the query cache isn't filled with non bind related queries. Bear in mind that storing your zone data in MySQL is considerably slower than bind's default in memory system, so on a busy system you need to get every ounce of performance out of MySQL. Don't use a bind-dlz installation as a caching nameserver. Apart from the usual reasons to keep caching resolvers and authoritative name servers apart, firing recursive queries at bind massively increases the number of sql queries - bind-dlz will have to execute queries in order to work out that it is not authoritative for the requested domain. All these queries on random domains will fill MySQL's query cache with stuff that might not be asked again and you'll see a reduction in query cache hit rate. HTH -- Chris Hastie Find tree care advice at http://www.tree-care.info/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: KDE4 libssl conflicts
You've got a mix of older and newer library versions, which makes me think that you are trying to do a partial upgrade of your ports after upgrading the FreeBSD base system to a newer version. You really need to rebuild all ports when doing that, or else you'll run into issues. However, the specific problem you mention should have been resolved by this change here: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/126410 ...so please double-check that your ports tree has been updated to get this fix. Regards, I did recently upgrade my base system from 6.3-STABLE to 7.0-STABLE, however, i just re-ran a csup and ran portupgrade an tried a re-build of KDE4 with the same error output. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Xerox Phaser 6110 printer
On Tuesday 12 August 2008, [EMAIL PROTECTED] wrote: Does anybody have a Xerox Phaser 6110 printer working with FreeBSD? I've never had any trouble with my 6120, but I guess the crucial difference is the PostScript support in the 6120. The 6130 just works -- it internally supports lpr/lpd, not even needing CUPS -- but it, too, is PostScript. I'd be very cautious about any printer that doesn't support PostScript or at least PCL, even one from a first-rate supplier like Xerox. That's the problem, the 6120 and 6130 both talk Postscript and PCL but the 6110 only uses Samsung Printer Language. The splix port lists 13 Xerox printers of which only the 3117 and 6100 are known to work, the rest are Untested. -- Mike Clarke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
question -updating package + ignore depend
hi, can anyone briefly explain what is the general procedure here? i am trying to update a few packages which inevitably provoke a firefox2 install, which i don't want (have ff3). checked google and porter's handbook, then tried marking ff2 as IGNORE -- which i didn't really understand how but added IGNORE= reason etc etc to the makefile at the very top after the comments. seems like it worked, but what i want to update fails because of that. i am installing portupgrade now to try with k or K (whichever means comtinue anyway) but is this a good idea or an easier way? also, i am not sure if questions like this go here or still go in ports mailing list ? thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: question -updating package + ignore depend
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 mc wrote: | hi, | | can anyone briefly explain what is the general procedure here? | | i am trying to update a few packages which inevitably provoke a firefox2 | install, which i don't want (have ff3). | | checked google and porter's handbook, then tried marking ff2 as IGNORE -- | which i didn't really understand how but added IGNORE= reason etc etc to the | makefile at the very top after the comments. seems like it worked, but what i | want to update fails because of that. | | i am installing portupgrade now to try with k or K (whichever means comtinue | anyway) but is this a good idea or an easier way? | | also, i am not sure if questions like this go here or still go in ports | mailing list ? | | thanks in advance Hi mc, Which ports are you trying to update? It may be that they need their dependencies (BUILD_DEPENDS, RUN_DEPENDS, etc.) changed to reflect the new version of Firefox. Of course, that assumes that FF3 provides the same requirements that FF2 did for each specific port. Please post the port names back here, and I'll take a look at the various Makefiles. Best regards, Greg - -- Greg Larkin http://www.sourcehosting.net/ http://www.FreeBSD.org/ - The Power To Serve -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIoYsJ0sRouByUApARAjlJAJ9rt9DrGWZQxI/BjEMlUhj+Bl1nKQCff5O4 B9ZRfJ/r/Efg/xgcrP/CfCU= =fFq9 -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]
fsync: giving up on dirty - gjournal on 7.0-R
Hi, On my FreeBSD 7.0-RELEASE amd64 i get the following in my logs when I was upgrading my ports via portmaster. fsync: giving up on dirty 0xff00014745d0: tag devfs, type VCHR usecount 1, writecount 0, refcount 173 mountedhere 0xff00013b2800 flags () v_object 0xff000143f1a0 ref 0 pages 2057 lock type devfs: EXCL (count 1) by thread 0xff0001302340 (pid 39) dev mirror/gm0s3.journal GEOM_JOURNAL: Cannot suspend file system /usr (error=35). gm0s3.journal has a 2GB journal. Journal and data is on the same disk (mirror) Is this something to worry about? Smart for the disks aren't reporting any errors. this is with short tests and extended tests. Regards David N ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
KDE-4.1 in FreeBSD 7.1-RELEASE
Just in case anybody knows: will be KDE-4.1 included in 7.1-RELEASE? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring raid health with mpt
On Aug 11, 2008, at 5:51 PM, Chris Hastie wrote: I have a Dell PowerEdge 860 with SAS 5iR RAID controller and FreeBSD 6.2. The controller is configured for RAID 1. The controller is recognised as mpt0 and seen as a SCSI device da0. All seems to be working fine, but is there any way to tell if one of the disks fails? I was thinking about this same question over the weekend. I have no idea what the answer is, but am hoping someone has one. I'm pretty sure an answer exists... I have an Intel motherboard with a hardware raid controller. I'm sure the controller knows if a drive fails, and maybe even logs the event somewhere... I'm just not sure where. I'm going to try digging in the docs for my raid controller... -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: KDE-4.1 in FreeBSD 7.1-RELEASE
FuLLBLaSTstorm wrote: Just in case anybody knows: will be KDE-4.1 included in 7.1-RELEASE? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You mean as in precompiled package on CD? I can't answer that, but KDE 4.1 is already in ports and you can install it *now* In fact, I am using it this exact moment ;) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring raid health with mpt
On Tue, 2008-08-12 at 09:25 -0400, John Almberg wrote: On Aug 11, 2008, at 5:51 PM, Chris Hastie wrote: I have a Dell PowerEdge 860 with SAS 5iR RAID controller and FreeBSD 6.2. The controller is configured for RAID 1. The controller is See if Dell has populated IPMI SDR data structures with RAID yet. Dell and LSI/Qlogic really play well together. No really. They do. ~BAS recognised as mpt0 and seen as a SCSI device da0. All seems to be working fine, but is there any way to tell if one of the disks fails? I was thinking about this same question over the weekend. I have no idea what the answer is, but am hoping someone has one. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: KDE-4.1 in FreeBSD 7.1-RELEASE
On Tue, Aug 12, 2008 at 04:46:04PM +0300, Manolis Kiagias wrote: FuLLBLaSTstorm wrote: Just in case anybody knows: will be KDE-4.1 included in 7.1-RELEASE? ___ You mean as in precompiled package on CD? I can't answer that, but KDE 4.1 is already in ports and you can install it *now* In fact, I am using it this exact moment ;) ___ What is the procedure for updating from kde 4.0.5 to 4.1? I've tried yum update but yum reports there are no updates to apply. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: KDE-4.1 in FreeBSD 7.1-RELEASE
Dave Feustel wrote: On Tue, Aug 12, 2008 at 04:46:04PM +0300, Manolis Kiagias wrote: FuLLBLaSTstorm wrote: Just in case anybody knows: will be KDE-4.1 included in 7.1-RELEASE? ___ You mean as in precompiled package on CD? I can't answer that, but KDE 4.1 is already in ports and you can install it *now* In fact, I am using it this exact moment ;) ___ What is the procedure for updating from kde 4.0.5 to 4.1? I've tried yum update but yum reports there are no updates to apply. Thanks. Well, yum is a Fedora method, it seems you mixed up the mailing lists :) For FreeBSD, look at the following post: http://lists.freebsd.org/pipermail/freebsd-ports/2008-August/050109.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fsync: giving up on dirty - gjournal on 7.0-R
My understanding is that its nothing to worry about. http://freebsd.monkey.org/freebsd-stable/200609/msg00020.html for example, where [EMAIL PROTECTED] who wrote gjounal says It happens sometimes under load, haven't investigated yet what exactly is happening, but you can ignore it for now, it's harmless, it just means journal switch will be done a bit later. Vince David N wrote: Hi, On my FreeBSD 7.0-RELEASE amd64 i get the following in my logs when I was upgrading my ports via portmaster. fsync: giving up on dirty 0xff00014745d0: tag devfs, type VCHR usecount 1, writecount 0, refcount 173 mountedhere 0xff00013b2800 flags () v_object 0xff000143f1a0 ref 0 pages 2057 lock type devfs: EXCL (count 1) by thread 0xff0001302340 (pid 39) dev mirror/gm0s3.journal GEOM_JOURNAL: Cannot suspend file system /usr (error=35). gm0s3.journal has a 2GB journal. Journal and data is on the same disk (mirror) Is this something to worry about? Smart for the disks aren't reporting any errors. this is with short tests and extended tests. Regards David N ___ 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: KDE-4.1 in FreeBSD 7.1-RELEASE
What is the procedure for updating from kde 4.0.5 to 4.1? I've tried yum update but yum reports there are no updates to apply. FreeBSD does not use Yum, it uses a ports tree, the closest thing that Linux has is Gentoo portage Sam Fourman Jr. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fsync: giving up on dirty - gjournal on 7.0-R
2008/8/13 Vincent Hoffman [EMAIL PROTECTED]: My understanding is that its nothing to worry about. http://freebsd.monkey.org/freebsd-stable/200609/msg00020.html for example, where [EMAIL PROTECTED] who wrote gjounal says It happens sometimes under load, haven't investigated yet what exactly is happening, but you can ignore it for now, it's harmless, it just means journal switch will be done a bit later. Vince David N wrote: Hi, On my FreeBSD 7.0-RELEASE amd64 i get the following in my logs when I was upgrading my ports via portmaster. fsync: giving up on dirty 0xff00014745d0: tag devfs, type VCHR usecount 1, writecount 0, refcount 173 mountedhere 0xff00013b2800 flags () v_object 0xff000143f1a0 ref 0 pages 2057 lock type devfs: EXCL (count 1) by thread 0xff0001302340 (pid 39) dev mirror/gm0s3.journal GEOM_JOURNAL: Cannot suspend file system /usr (error=35). gm0s3.journal has a 2GB journal. Journal and data is on the same disk (mirror) Is this something to worry about? Smart for the disks aren't reporting any errors. this is with short tests and extended tests. Regards David N ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Thank you for the info, that puts my mind to rest. Regards David N ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: KDE-4.1 in FreeBSD 7.1-RELEASE
On Tue, Aug 12, 2008 at 05:11:07PM +0300, Manolis Kiagias wrote: Dave Feustel wrote: On Tue, Aug 12, 2008 at 04:46:04PM +0300, Manolis Kiagias wrote: FuLLBLaSTstorm wrote: Just in case anybody knows: will be KDE-4.1 included in 7.1-RELEASE? ___ You mean as in precompiled package on CD? I can't answer that, but KDE 4.1 is already in ports and you can install it *now* In fact, I am using it this exact moment ;) ___ What is the procedure for updating from kde 4.0.5 to 4.1? I've tried yum update but yum reports there are no updates to apply. Thanks. Well, yum is a Fedora method, it seems you mixed up the mailing lists :) Yes, I did. I'm running both FreeBSD 7.0 and also Fedora 9 on AMD computers. I am having problems with my vision (diabetes) and I didn't realize I was posting a Fedora question to the FreeBSD list. Thanks for the correction. For FreeBSD, look at the following post: http://lists.freebsd.org/pipermail/freebsd-ports/2008-August/050109.html ___ 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]
error allocating memory with realloc(). how can i increase max_allowed in the system?
Hi, i'm running a FreeBSD 7.0 amd64 machine and struggling with some C code i'm writing. I've had some trouble with this home-made script as it keeps crashing while launching a realloc() call. I narrowed down the problem and here i'm sending you a short example of code that crashes: * #include stdio.h #include stdlib.h int main() { int midataula; midataula = 3000; char *missatge = (char *)malloc(midataula * sizeof(char)); missatge[0]='h'; missatge[1]='o'; missatge[2]='l'; missatge[3]='a'; printf(\n\ntaula1: %s,missatge); int voltes; voltes = 0; while(voltes4) { midataula = midataula+500; realloc(missatge, midataula * sizeof(char)); voltes++; } printf(\n\ntaula2: %s,missatge); } * this is a full working you can compile on your machine. Like this... i get Segmentation fault (core dumped) but if instead of while(voltes4) i use while(voltes3) the script works fine with this output: ** taula1: hola taula2: hola ** so... i guess there must be a limit in the system somewhere. I've tried to reset all variables that i've seen in the sysctl -a list refering to malloc, memory, mem, and so on... but so far i haven't fixed the problem. i'm running this script as root and in the /etc/login.conf file there's only the default group with the unlimited values. A part from that, if i perform a limit call, i get this: * # limit cputime unlimited filesize unlimited datasize 33554432 kbytes stacksize524288 kbytes coredumpsize unlimited memoryuseunlimited vmemoryuse unlimited descriptors 45000 memorylocked unlimited maxproc 22500 sbsize unlimited * i've tried to resize datasize and stacksize, but the system won't let me do so. any idea how to solve this? thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing in a ext3 partition?
On Mon, Aug 11, 2008 at 06:16:15PM -0500, Ismael wrote: Is it possible to install in an existing ext3 partition? Why would you want to do that? It doesn't make sense. FreeBSD is its own operating system - completely separate from Linux. It should run in its own slice (Primary Partition in MS terms). You may be able to cobble up some tricks to do otherwise, but don't. Can freebsd make use of a linux-swap as swap space? I don't think so. jerry how? _ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [kde-freebsd] KDE4 libssl conflicts
On Tuesday 12 August 2008 12:43:37 Warren Liddell wrote: You've got a mix of older and newer library versions, which makes me think that you are trying to do a partial upgrade of your ports after upgrading the FreeBSD base system to a newer version. You really need to rebuild all ports when doing that, or else you'll run into issues. However, the specific problem you mention should have been resolved by this change here: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/126410 ...so please double-check that your ports tree has been updated to get this fix. Regards, I did recently upgrade my base system from 6.3-STABLE to 7.0-STABLE, however, i just re-ran a csup and ran portupgrade an tried a re-build of KDE4 with the same error output. You need to clean out the 6.3 versions of various libs/binaries. See the delete-old and delete-old-libs targets on /usr/src/Makefile -- Andy Fawcett | [EMAIL PROTECTED] | [EMAIL PROTECTED] In an open world without walls and fences, | [EMAIL PROTECTED] we wouldn't need Windows and Gates. -- anon | [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: error allocating memory with realloc(). how can i increase max_allowed in the system?
On Tue, 12 Aug 2008 17:02:43 +0200, Jordi Moles Blanco [EMAIL PROTECTED] wrote: Hi, i'm running a FreeBSD 7.0 amd64 machine and struggling with some C code i'm writing. I've had some trouble with this home-made script as it keeps crashing while launching a realloc() call. I narrowed down the problem and here i'm sending you a short example of code that crashes: * #include stdio.h #include stdlib.h int main() { int midataula; midataula = 3000; char *missatge = (char *)malloc(midataula * sizeof(char)); missatge[0]='h'; missatge[1]='o'; missatge[2]='l'; missatge[3]='a'; printf(\n\ntaula1: %s,missatge); int voltes; voltes = 0; while(voltes4) { midataula = midataula+500; realloc(missatge, midataula * sizeof(char)); voltes++; } There's your problem. realloc() works fine, but it *returns* the new pointer; it does _not_ modify missatge in place. The program should work fine if you use size_t for midataula (it is the 'size' of an array, which may not necessarily fit in an 'int'), and if you use realloc() correctly, as in: #include stdlib.h #include err.h size_t midataula; char *missatge; /* * DON'T cast the result of malloc(). It may 'hide' the bug of * a missing stdlib.h include, and cause troubles when * malloc() is implicitly defined by the compiler as: * *int malloc(...); * * On a 64-bit machine converting a 64-bit pointer to `int' will * lose the high-order 32 bits of the address, and you will try * to access unexpected memory areas. */ midataula = 3000; missatge = malloc(midataula * sizeof(*missatge)); if (missatge == NULL) err(1, malloc); Then when you use realloc() keep both midataula and missatge in temporary copies until you are sure that realloc() worked: while (voltes 4) { char *tmp; size_t newsize; newsize = midataula + 500; tmp = realloc(missatge, newsize * sizeof(*missatge)); if (tmp == NULL) err(1, realloc); /* * Now that you know the resize has succeeded, update * midataula and missatge. realloc() is allowed to * relocate missatge. See the following note in its * manpage: * * Note that realloc() and reallocf() may move the * memory allocation, resulting in a different return * value than ptr. */ midataula = newsize; missatge = tmp; } Right now you are calling realloc() as: realloc(missatge, newsize * sizeof(*missatge)); and throwing away the resulting pointer. The first time that realloc() discovers that the `resized' vector cannot fit in its original location, it relocates the array, and returns the new location. You throw away that location and your next iteration through the loop tries to access an invalid (already freed) memory region. That's what causes your segmentation fault. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error allocating memory with realloc(). how can i increase max_allowed in the system? [solved]
Hello, thank you very much for your time and help, i had completely misunderstood how realloc() works. i though i was able to write some C code but now i feel a complete newbie, hehehe. anyway... that made everything clear to me and now my script is working like a charm. thanks for everything En/na Giorgos Keramidas ha escrit: On Tue, 12 Aug 2008 17:02:43 +0200, Jordi Moles Blanco [EMAIL PROTECTED] wrote: Hi, i'm running a FreeBSD 7.0 amd64 machine and struggling with some C code i'm writing. I've had some trouble with this home-made script as it keeps crashing while launching a realloc() call. I narrowed down the problem and here i'm sending you a short example of code that crashes: * #include stdio.h #include stdlib.h int main() { int midataula; midataula = 3000; char *missatge = (char *)malloc(midataula * sizeof(char)); missatge[0]='h'; missatge[1]='o'; missatge[2]='l'; missatge[3]='a'; printf(\n\ntaula1: %s,missatge); int voltes; voltes = 0; while(voltes4) { midataula = midataula+500; realloc(missatge, midataula * sizeof(char)); voltes++; } There's your problem. realloc() works fine, but it *returns* the new pointer; it does _not_ modify missatge in place. The program should work fine if you use size_t for midataula (it is the 'size' of an array, which may not necessarily fit in an 'int'), and if you use realloc() correctly, as in: #include stdlib.h #include err.h size_t midataula; char *missatge; /* * DON'T cast the result of malloc(). It may 'hide' the bug of * a missing stdlib.h include, and cause troubles when * malloc() is implicitly defined by the compiler as: * *int malloc(...); * * On a 64-bit machine converting a 64-bit pointer to `int' will * lose the high-order 32 bits of the address, and you will try * to access unexpected memory areas. */ midataula = 3000; missatge = malloc(midataula * sizeof(*missatge)); if (missatge == NULL) err(1, malloc); Then when you use realloc() keep both midataula and missatge in temporary copies until you are sure that realloc() worked: while (voltes 4) { char *tmp; size_t newsize; newsize = midataula + 500; tmp = realloc(missatge, newsize * sizeof(*missatge)); if (tmp == NULL) err(1, realloc); /* * Now that you know the resize has succeeded, update * midataula and missatge. realloc() is allowed to * relocate missatge. See the following note in its * manpage: * * Note that realloc() and reallocf() may move the * memory allocation, resulting in a different return * value than ptr. */ midataula = newsize; missatge = tmp; } Right now you are calling realloc() as: realloc(missatge, newsize * sizeof(*missatge)); and throwing away the resulting pointer. The first time that realloc() discovers that the `resized' vector cannot fit in its original location, it relocates the array, and returns the new location. You throw away that location and your next iteration through the loop tries to access an invalid (already freed) memory region. That's what causes your segmentation fault. ___ 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: KDE-4.1 in FreeBSD 7.1-RELEASE
..just made an #portsnap update and there is the kde 4.1. Must have been come in recently. Cheers herbs -- *** Herbert Langhans, Warschau *** Sprachtraining Langhans *** http://www.langhans.com.pl *** [EMAIL PROTECTED] *** NIP 526-229-61-51 *** Regon 014911759 *** Tel. 603 341 441 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sound problems
Bernt Hansson wrote: Hello list. Realy need some help! I can't seem to get snd_hda module to load from /boot/loader.conf Loading the module manualy is ok. loader.conf hw.ata.atapi_dma=1 atapicam_load=YES if_tap_load=YES aio_load=YES ## ### Sound modules ## ## sound_load=YES # Digital sound subsystem SNIP #snd_hda_load=YES # Intel High Definition Audio (Controller) Well, it seems the snd_hda_load line is commented out ;) Also you don't need to add sound_load=YES, just by adding snd_hda_load=YES the generic sound module will be loaded as well. If anything else fails for some weird reason, you can always compile sound support into the kernel. Just add these two lines in your kernel configuration file: device sound device snd_hda rebuild, reboot, done. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error allocating memory with realloc(). how can i increase max_allowed in the system? [solved]
On Tue, 12 Aug 2008 18:22:21 +0200, Jordi Moles Blanco [EMAIL PROTECTED] wrote: Hello, thank you very much for your time and help, i had completely misunderstood how realloc() works. You are welcome, of course :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sound problems
Bernt Hansson wrote: Hello list. Realy need some help! I can't seem to get snd_hda module to load from /boot/loader.conf Loading the module manualy is ok. loader.conf hw.ata.atapi_dma=1 atapicam_load=YES if_tap_load=YES aio_load=YES ## ### Sound modules ## ## sound_load=YES # Digital sound subsystem #snd_ad1816_load=NO# ad1816 #snd_als4000_load=NO # als4000 #snd_atiixp_load=NO# atiixp #snd_cmi_load=NO # cmi #snd_cs4281_load=NO# cs4281 #snd_csa_load=NO # csa #snd_ds1_load=NO # ds1 #snd_emu10k1_load=NO # Creative Sound Blaster Live #snd_emu10kx_load=NO # Creative SoundBlaster Live! and Audigy #snd_envy24_load=NO# VIA Envy24 #snd_envy24ht_load=NO # VIA Envy24HT #snd_es137x_load=NO# es137x #snd_ess_load=NO # ess #snd_fm801_load=NO # fm801 #snd_hda_load=YES # Intel High Definition Audio (Controller) #snd_ich_load=NO # Intel ICH #snd_maestro_load=NO # Maestro #snd_maestro3_load=NO # Maestro3 #snd_mss_load=NO # Mss #snd_neomagic_load=NO # Neomagic #snd_sb16_load=NO # Sound Blaster 16 #snd_sb8_load=NO # Sound Blaster Pro #snd_sbc_load=NO # Sbc #snd_solo_load=NO # Solo #snd_spicds_load=NO# SPI codecs #snd_t4dwave_load=NO # t4dwave #snd_via8233_load=NO # via8233 #snd_via82c686_load=NO # via82c686 #snd_vibes_load=NO # vibes #snd_driver_load=NO# All sound drivers System: FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Timecounter i8254 frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 6400+ (3214.65-MHz K8-class CPU) Origin = AuthenticAMD Id = 0x40f33 Stepping = 3 Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT Features2=0x2001SSE3,CX16 AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow! AMD Features2=0x1fLAHF,CMP,SVM,ExtAPIC,CR8 Cores per package: 2 usable memory = 8575430656 (8178 MB) avail memory = 8288096256 (7904 MB) ACPI APIC Table: GBTGBTUACPI FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 Version 2.1 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 10:34:18) acpi0: GBT GBTUACPI on motherboard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Aloha, Try this syntax... it works for me. snd_driver_load=YES -- ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + email: [EMAIL PROTECTED] All that's really worth doing is what we do for others.- Lewis Carrol ___ 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 let MPD check the password against POP3, IMAP or WWW?
Hi that is not exactly what I wanted to do. My idea was to use a script which accepts the username and password as parameters and then tryes to connect to a web, pop3 or imap server, depending on what is easier. e.g. lynx -auth=username:password http://some.foobar.org/protected and only if the script is able to fetch the protected page, than the user is also accepted for the VPN connection. CU AssetBurned On 12.08.2008, at 06:29, Odhiambo Washington wrote: On Sun, Aug 10, 2008 at 6:20 PM, assetburned [EMAIL PROTECTED] wrote: I have a MPD VPN server and another machine which runs WWW, IMAP and POP3 services. I know that I could check if a password is valid e.g. by writing a script which calls a Lynx command. But how can I forward the password from MPD to that script? And I also think that the password has to be unencrypted for the lynx command, so how can I manage that? I run dovecot with MySQL database on one of my servers. Dovecot provides POP3/IMAP. I also have mpd5 on this box and I use credentials from the DB (which contains cleartext passwords) for mpd5 to authenticate, but I do it using a script which extracts the username and cleartext password and writes those to mpd.secret, and also sets the correct permissions on the file. It's a simplistic shell script, called from cron once a day. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Jails - Pseudo Interfaces/ Virtual Networks - Best Practices?
I'm in the process of planning a transition from VMWare (on CentOS host) hosting service-specific FreeBSD virtual machines to the seemingly more efficient, stable, and lower maintenance cost approach, now that I've figured out at least some of the magic of creating jails under FreeBSD. I do have a couple questions as to what the recommended approaches to the IP interface for the jails. The questions generally relate to being able to consistently identify traffic from/to the jails, inside and outside the jail host, with tools such as ipfw and tcpdump. One set of concerns that I haven't looked into is discussed in the thread http://www.freebsd.org/cgi/getmsg.cgi?fetch=1418948+0+/usr/local/www/db/text/2008/freebsd-questions/20080720.freebsd-questions where it appears that To sum up, if jail host running at 10.0.0.1 connects to a jail running at 10.0.0.2, the traffic will occur over lo0, and BOTH endpoints of that connection will use the jail (10.0.0.2) address. To my mind, that can be problematic. With VMWare, I was used to being able to create a pseudo-interface that could be wired to a virtual switch (hub, from what I can tell) and then that switch could be bridged (or NAT-ed) to a physical interface. This could lead to topologies that looked like physical machines and traffic could be controlled between them relatively unambiguously. Some places where the FreeBSD jail bind to physical interface model seems to fail for me are described below. I'd appreciate insights into a good strategy to deal with these and related situations: 1) Firewall/bastion host, DNS intended for that host only Here DNS needs to be run for the host itself only, to be able to start up NTP and allow ssh connections for management over the protected interface. In this situation, the DNS is *only* supplied to the physical host itself. Binding the jail to 127.0.0.1 doesn't seem right to me. Binding it to the outside (public) interface is equally bothersome. 2) Bastion host, SMTP relay Here the firewall/bastion host is: * Accepting connections on its public interface for SMTP connections and relaying to an internal SMTP server * Accepting connections on its public interface for submission connections and relaying internally and externally for authenticated users * Accepting connections on an internal IP for SMTP connections (with different Postfix rules) and relaying both internally and externally * Connecting to an internal DNS server, either in another jail on the same machine, or in an jail on another machine In this case (and related ones) the firewall rules would be simplified if the packets from the jail were actually in recv from an identifiable interface so that the packets looked like those from a physical host on the DMZ network, allowing the basic access control and filtering to be handled by the general DMZ sections of the rules. (I'm aware that there is a jail prisionID selector in ipfw, but (a) it seems to only handle TCP and UDP, and (b) I'd likely have to repeat topology-related rules for each jail.) Is there a standard way to create jails on a virtual interface or, perhaps better yet, internal network or switch, that would allow them to be handled en masse by topology-driven rules? I'm hardly a netgraph expert and didn't find any references in the documentation to this kind of use of the facility. Is there a way to hang a virtual DMZ off a pseudo-interface somewhere inside the host in addition to the physical DMZ attached to a external interface - routing tables cover virtual = physical communications - packets in recv psuedo-interface from the virtual DMZ and ipfw can handle control of communication between two DMZ (and other) subnets This could either be replicated once for each service jail, or a topology that had a virtual smart switch connecting multiple pseudo-interfaces that could be used by multiple jails, that then communicated with the rest of the world through a single pseudo-interface. Thanks for taking the time to consider this. Jeff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB mouse problems.
Yes but only if I connect the mouse after the boot process has finished. If I have it connected during boot it's not found. Moused is started but gives /dev/ums0 not found. So if I want to use the mouse I have to leave it unconnected until I get the login prompt and then connect the mouse. Try a different usb port. On my box, only the two in the front work right. br - N :o) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing in a ext3 partition?
Ismael wrote: Can freebsd make use of a linux-swap as swap space? FreeBSD doesn't need to format swap before use, and seems perfectly content using any contiguous span of blocks as swap space -- even ones containing filesystems (oops!). Afterwards, you will need to re-mkswap the partition before Linux will be able to use it, though. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net [EMAIL PROTECTED] Furry Peace! - http://.fur.com/peace/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
megaupload download script
Hi, I use service from megaupload, i wonder if there is a script that can automatically download each file, one after the other without me clicking myself? thank you!! TFC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: question -updating package + ignore depend
On Tuesday 12 August 2008 13:07:21 Greg Larkin wrote: mc wrote: | hi, | | can anyone briefly explain what is the general procedure here? | | i am trying to update a few packages which inevitably provoke a firefox2 | install, which i don't want (have ff3). | | checked google and porter's handbook, then tried marking ff2 as IGNORE -- | which i didn't really understand how but added IGNORE= reason etc etc to the | makefile at the very top after the comments. seems like it worked, but what i | want to update fails because of that. | | i am installing portupgrade now to try with k or K (whichever means comtinue | anyway) but is this a good idea or an easier way? | | also, i am not sure if questions like this go here or still go in ports | mailing list ? | | thanks in advance Hi mc, Which ports are you trying to update? It may be that they need their dependencies (BUILD_DEPENDS, RUN_DEPENDS, etc.) changed to reflect the new version of Firefox. Of course, that assumes that FF3 provides the same requirements that FF2 did for each specific port. Please post the port names back here, and I'll take a look at the various Makefiles. Best regards, Greg hello again the packages are : ports/graphics/librsvg2 ports/x11-fm/nautilus ports/x11-wm/ccsm ports/x11-wm/compizconfig-python. at least those are what i have left after portupgrade -k. btw, after posting earlier, i tried portupgrade and caught a glimpse of a message from librsvg2 saying it uses/relies on said firefox2 for gecko. thanks for yr reply, excuse me for panicking ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Removing a port its dependencies /
works smoothly - thx :-) 2008/8/10 Pieter de Goeje [EMAIL PROTECTED] On Sunday 10 August 2008, ervin wrote: hi, I installed a port with make install and it worked including installation of dependencies Removing the port: Do I use pkg_delete or ? I want the dependencies to me removed as well the make deinstall deinstall the primary port but not the dependencies. You can use pkg_rmleaves or pkg_cutleaves (both in ports/ports-mgmt). -- Pieter de Goeje -- mvh/best regards ervin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error allocating memory with realloc(). how can i increase max_allowed in the system?
realloc(missatge, midataula * sizeof(char)); should be missatge=realloc(missatge, midataula * sizeof(char)); ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Best SMTP Gateway Program and Reporting Tools
I just wanted to pose this question to the list on people's opinions as to what the best SMTP Gateway program (ie. Sendmail, Postfix, etc) is and what the best log analysis tool for that SMTP program is. We are currently using Symantec Mail Security for our outgoing SMTP Gateway but want to employ an open-source solution instead. My problem is our main requirement is to have a way to view the logs on a web based interface that will allow our system administrators when a customer complains they didn't receive an email to be able to go into the logs and search by date/time and view the activity for that period to determine if the mail went through our system or if it was blocked and if so why. I've heard of and read about a few different programs like SMA and Anteater and pflogstats, but I don't know if these will have the functionality I need to allow admins to search logs for a specific date/time and/or specific phrase/address on a web based interface. I appreciate any help, advice in making this decision. Josh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ipv6 ntp multicast address specification
Hi, what is the suggested address spec for manycastclient/manycastserver in ntp.conf? manycastserver ff02::101 manycastserver ff02::101%em0 manycastserver ff02:1::101 manycastclient ff05::101 Thanks Reinhard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
freebsd custom distribution
Hi everyone, I'm starting a new project where I would like to distribute the software as a distribution, something as pfSense guys do (but mine is not targeted to be a firewall). It would be very appreciated any pointer to some documentation or starting point for creating such a custom distro, for example, if I have a freeBSD 7 installation where I added some packages plus a custom application: How could I create a iso? a liveCD? Thanks a lot. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Best SMTP Gateway Program and Reporting Tools
At 03:22 PM 8/12/2008, Josh Kidd wrote: I just wanted to pose this question to the list on people's opinions as to what the best SMTP Gateway program (ie. Sendmail, Postfix, etc) is and what the best log analysis tool for that SMTP program is. We are currently using Symantec Mail Security for our outgoing SMTP Gateway but want to employ an open-source solution instead. My problem is our main requirement is to have a way to view the logs on a web based interface that will allow our system administrators when a customer complains they didn't receive an email to be able to go into the logs and search by date/time and view the activity for that period to determine if the mail went through our system or if it was blocked and if so why. I've heard of and read about a few different programs like SMA and Anteater and pflogstats, but I don't know if these will have the functionality I need to allow admins to search logs for a specific date/time and/or specific phrase/address on a web based interface. I appreciate any help, advice in making this decision. Josh Josh, I use sendmail and sma. But I don't these fit your needs. In fact, I doubt you will find an opensource solution that does. For those types of features you need to spend some money and buy a commercial product. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Anybody in the metro Seattle area???
Would whoever lives out here (and who is sub'd to seabug.org) kindly drop me a line? I got dropped from the list and cannot resub. Thanks, gary -- 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]
Re: general questions about 7.0 and computer efficiency......
Gary Kline wrote: On Tue, Aug 12, 2008 at 12:46:56AM +0100, Chris Whitehouse wrote: Hi Gary Just back from hols so hope I'm not too late to add 2c. If you do go for new machines it's worth doing some research. I found there's no single component to go for when aiming for energy efficiency, you need to look at them all. tHis was the point one person made, and of course it makes sense to weigh every variable. Including use patterns. E.G., I've cut my personal hacking way down, save for PHP, but still build most things during a portupgrade. Yes usage is important too. A binary port upgrade system that works so well everyone prefers it to the source port upgrade system could save a lot of energy. I made energy efficiency and silence the top priorities when researching parts for my current desktop and the two pretty much go together. I ended up with Asus M2NPV-VM motherboard and AMD 35watt cpu and Seasonic high efficiency power supply. The CPU is even lower power than AMD's low power range (search for ADD3800CUBOX). It was cheap then but they are hard to find now. There seems to be a lot of variation in CPU power consumption in CPU's with the same performance, eg ADO3800CUBOX, virtually identical, is 65 watts. Do you build your hardware from the tower case up? ---Green is in these days; so maybe some of us, or each of us, can contribute to a best-of list for those who are going to find a local builder or roll their own. First time I'll be in an in group :-) Yep, any old crap case found on the street will do. With a little care building modern hardware is _really_ easy, it's very hard to mess up as there is only a handful of parts and most things that plug into other things can only do so one way and things that aren't supposed to plug into each other mostly can't. Power supplies provide instant protection, ie won't turn on when there is a problem. My computer has one each of motherboard, hard drive, power supply, optical drive and cpu, plus 2 ram modules and a few cables. The time consuming part is researching the parts. If you are building servers you might have to dig even deeper, eg http://www.worlds-fastest.com/d.pdf/wfw991.pdf You can also reduce consumption by choosing an energy efficient model of power supply and by choosing lower output power. I calculated the power consumption for each component and found I could buy the smallest power supply in the Seasonic range and still have power to spare. Only one hard drive of course. I bought SATA but it turns out IDE uses less power. Also limiting the amount of memory and keeping the monitor brightness turned down keeps power consumption down. Hmm, any idea if a large drive = 200G is more/less watts than having, oh, 4Gigs of ram?? No but I would guess hard drives use somewhat more (depending on whether you are using memory intensive or disk i/o apps). Reading manufacturers data sheets is the only way to really know. You can find lots of info with your favourite search engine. It's a while since I measured the power consumption of the finished machine but I seem to remember it uses about 35 watts at idle and about 95 watts while exercising everything to the max. The Dells at work use quite a lot more, in the region of 60 to 130 I think. Not that bad if you've got only one box. My Ubuntu is a bear to reboot, sometimes, because the mouse goes nuts every other reboot. Do you mean it's not that bad that one computer uses 130 instead of 95. I think that is critical to the problem. To think about climate change you have to multiply your negligible contribution by the total number of negligible contributions. Manufacturers are not interested in 'green' so we have to do it for ourselves. I have to say it was a bit painful spending £50 on an energy efficient power supply instead of £15 on a standard one, but the other parts aren't any more expensive. I'll redo my measurements in the next couple of days. It's a good idea to turn computers off at the wall when not using them not just shut them down. I was surprised to find mine uses about 25 watts when shut down. Again the Dells at work use even more. The corporate environment must waste so many megawatts... For servers my workplace is heading towards fewer physical machines and running virtual servers to implement their 'green ICT' policy. It's great to hear that someone else is thinking about the environmental effects. I've been thinking about my footprint ever since talking to a friend up in Ottawa who was looking into building a hay-bail home. This is [tiny] green [/tiny]. Hay-bail insulation is [HUGE] Green [/HUGE]. I told him I was going to buy some land north of Nome and plant palm trees! I've just come back from the climate camp at Kingsnorth in UK :) Sorry getting OT again but I do think energy use is an issue that we
stopping less command from garbaging on the screen
Hi, When less exits the entire page history of the less session remains on the screen. How do I prevent less from doing that? Also are you aware of any articles on the web that summarize the behavioral differences like these between linux and freebsd. I have come across the command equivalences between the two but not behavioral differences. thanks, Krishna. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Transparent Bridge with VLAN Tagging - How?
Hello, I'm attempting to set up a transparent bridge in FreeBSD 7.0 to eventually act as a PF/Snort box, and it needs to be VLAN aware. However, I don't seem to be on the right track as far as setting it up. I have, for instance, VLAN 10 that it needs to be aware of, and this network segment is on VLAN 10 from a switch higher up. I have the current setup, but once it's running, I can't ping anything. bge0 is the outside interface, bge1 is inside: defaultrouter=192.168.1.1 gateway_enable=YES cloned_interfaces=bridge0 vlan0 vlan1 ifconfig_vlan0=vlan 10 vlandev bge0 ifconfig_vlan1=vlan 10 vlandev bge1 ifconfig_bridge0=inet 192.168.1.10 netmask 255.255.0.0 addm bge0 addm bge1 addm vlan0 addm vlan1 up ifconfig_bge0=up ifconfig_bge1=up What am I doing wrong? Thank You, Mike Sweetser ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Best SMTP Gateway Program and Reporting Tools
On Aug 12, 2008, at 3:22 PM, Josh Kidd wrote: I just wanted to pose this question to the list on people's opinions as to what the best SMTP Gateway program (ie. Sendmail, Postfix, etc) [...] Depending on the nature of the site and needs, my preferences tend to run exim, then postfix, then sendmail. But opinions will vary greatly. Many very smart people for whom I have a great deal of respect do not share my particular preferences. is and what the best log analysis tool for that SMTP program is. If I wanted to be a bit unhelpful just to make a point, I would say perl (or grep depending on taste). It depends on needs. We are currently using Symantec Mail Security for our outgoing SMTP Gateway but want to employ an open-source solution instead. My problem is our main requirement is to have a way to view the logs on a web based interface that will allow our system administrators when a customer complains they didn't receive an email to be able to go into the logs and search by date/time and view the activity for that period to determine if the mail went through our system or if it was blocked and if so why. It should be very easy to roll your own. I know that exim comes with a number of GUI useful monitoring tools, but I don't know if this functionality is there. But I do think that several of the tools come close. They aren't web based, but X11 tools. Also (if your privacy policy allows it) there's a configuration setting for logging subjects. I've heard of and read about a few different programs like SMA and Anteater and pflogstats, but I don't know if these will have the functionality I need to allow admins to search logs for a specific date/time and/or specific phrase/address on a web based interface. Maybe someone has already done this, but it really wouldn't be a difficult thing to develop your own tool for doing this. -j ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: question -updating package + ignore depend
hey Greg, just wanted to mention that firefox3 does not handle addons/plugins correctly yet according to ports/UPDATING, so this is still probably right for now and i will probably end up installing ff2 anyway. i got around it using make deinstall/reinstall to upgrade for now, but will try to figure out how to do this proper since i got one port that was going to install the whole of kde3 ( i have a clean install of kde4 and gnome only). thanks for now ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to start File Manager?
I use FreeBSD7.0, I start graphics screen #startx Then I find one login window,two xterm windows and one clock window. I want to know whether BSD has File Manager window,such as Unix CDE? If has,how to start File Manager? Which command can I use? Thanks -- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to visit U disk?
I want to use U disk which format is FAT32,I don't know how to visit U disk,my dev directory is follows: #cd /dev #ls ... usb usb0 usb1 ... How to do it? Thanks in advance -- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sound problems
Manolis Kiagias skrev: Bernt Hansson wrote: Hello list. Realy need some help! I can't seem to get snd_hda module to load from /boot/loader.conf Loading the module manualy is ok. loader.conf hw.ata.atapi_dma=1 atapicam_load=YES if_tap_load=YES aio_load=YES ## ### Sound modules ## ## sound_load=YES # Digital sound subsystem SNIP #snd_hda_load=YES # Intel High Definition Audio (Controller) Well, it seems the snd_hda_load line is commented out ;) Yes ;) Also you don't need to add sound_load=YES, just by adding snd_hda_load=YES the generic sound module will be loaded as well. Aha. I didn't know that. If anything else fails for some weird reason, you can always compile sound support into the kernel. Just add these two lines in your kernel configuration file: device sound device snd_hda rebuild, reboot, done. Yes, but I want to keep generic as generic as possible I also have some usb mouse problems. Input on the subject usb mouse problem are welcome. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Best SMTP Gateway Program and Reporting Tools
On Tue, Aug 12, 2008 at 9:03 PM, Jeffrey Goldberg [EMAIL PROTECTED] wrote: On Aug 12, 2008, at 3:22 PM, Josh Kidd wrote: I just wanted to pose this question to the list on people's opinions as to what the best SMTP Gateway program (ie. Sendmail, Postfix, etc) [...] Depending on the nature of the site and needs, my preferences tend to run exim, then postfix, then sendmail. But opinions will vary greatly. Many very smart people for whom I have a great deal of respect do not share my particular preferences. is and what the best log analysis tool for that SMTP program is. If I wanted to be a bit unhelpful just to make a point, I would say perl (or grep depending on taste). It depends on needs. We are currently using Symantec Mail Security for our outgoing SMTP Gateway but want to employ an open-source solution instead. My problem is our main requirement is to have a way to view the logs on a web based interface that will allow our system administrators when a customer complains they didn't receive an email to be able to go into the logs and search by date/time and view the activity for that period to determine if the mail went through our system or if it was blocked and if so why. It should be very easy to roll your own. I know that exim comes with a number of GUI useful monitoring tools, but I don't know if this functionality is there. But I do think that several of the tools come close. They aren't web based, but X11 tools. Also (if your privacy policy allows it) there's a configuration setting for logging subjects. I've heard of and read about a few different programs like SMA and Anteater and pflogstats, but I don't know if these will have the functionality I need to allow admins to search logs for a specific date/time and/or specific phrase/address on a web based interface. Maybe someone has already done this, but it really wouldn't be a difficult thing to develop your own tool for doing this. -j ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hi! I'm unsure but it sounds like ESVA *might* be worth looking into. The web interface is really nice and allows you to look for specific messages and such. Do you want it to be a FreeBSD solution? (If so, ESVA is CentOS). Anyway, the URL is http://www.global-domination.org (Seriously.) HTH. -- Regards, Brie A. Gordon A Linux Chica and a BSDiva http://granite.sru.edu/~bag6849/index.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: stopping less command from garbaging on the screen
Krishna Mohan Gundu skrev: Hi, When less exits the entire page history of the less session remains on the screen. How do I prevent less from doing that? Don't know how to preventit but ^l is what I use. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Nvidia Driver - OpenGL - Compiz
Can anyone tell me why, how to fix, or even what is happening on my machine. I ran the 169.x driver for a long time with no issues at all. I decided to upgrade to 173, and noticed instantly that any time I run an OpenGL application X crashes instantly. The odd thing is that I am not seeing any errors on the screen (maybe going off too fast), and I do not see any errors in any of the log files. X shuts down instantly, my machine goes black, X starts back up, and I sit here staring at the log in screen. If I go back to the 169 driver, the issues does not occur. I'm not positive it's OpenGL applications, but it seems any game or GL application I try crashes it instantly. Not even a second to acknowledge the crash... screen goes black and that's it. I'm running FreeBSD 7.X (RELENG_7), nothing custom in the kernel, Intel 6600, GeForce 8800, compiz, gnome, and nothing really fancy. I've had other tell me to roll back to 169, but no one can tell me why this is happening, if it's a problem for everyone, if there is a fix, etc. Any bits of information would be greatly appreciated. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sound problems
Bernt Hansson wrote: Manolis Kiagias skrev: sound_load=YES # Digital sound subsystem SNIP #snd_hda_load=YES # Intel High Definition Audio (Controller) Well, it seems the snd_hda_load line is commented out ;) Also you don't need to add sound_load=YES, just by adding snd_hda_load=YES the generic sound module will be loaded as well. Well, that's not working, so I'm not going to compile it in the kernel. This is what's found when snd_hda=YES is in the /boot/loader.conf pcm0: ATI SB600 High Definition Audio Controller mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0 pcm0: [ITHREAD] pcm0: HDA Codec: Realtek ALC885 pcm0: HDA Driver Revision: 20071129_0050 pcm1: ATI (Unknown) High Definition Audio Controller mem 0xfddfc000-0xfddf irq 19 at device 0.1 on pci1 pcm1: [ITHREAD] pcm1: HDA Codec: Unknown Codec pcm1: HDA Driver Revision: 20071129_0050 pcm0: ATI (Unknown) High Definition Audio Controller mem 0xfddfc000-0xfddf irq 19 at device 0.1 on pci1 pcm0: [ITHREAD] pcm1: ATI SB600 High Definition Audio Controller mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0 pcm1: [ITHREAD] pcm0: HDA Codec: Unknown Codec pcm0: HDA Driver Revision: 20071129_0050 pcm1: HDA Codec: Realtek ALC885 pcm1: HDA Driver Revision: 20071129_0050 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Aloha, Try putting this in the boot/loader.conf sound_driver_load=YES This loads the driver it is already in there. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + email: [EMAIL PROTECTED] All that's really worth doing is what we do for others.- Lewis Carrol ___ 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 start File Manager?
2008/8/12 EdwardKing [EMAIL PROTECTED]: I use FreeBSD7.0, I start graphics screen #startx Then I find one login window,two xterm windows and one clock window. I want to know whether BSD has File Manager window,such as Unix CDE? If has,how to start File Manager? Which command can I use? Thanks -- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] What you're seeing after typing startx is a pure Xorg interface. In order to get more powerful graphical user interface you should install and then configure KDE or Gnome. Consider reading this section of handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11.html. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Build ncurses from sources HOWTO?
Hi all I'm learning to build ncurses-5.6 from sources (ie. outside of ports) on i386 FreeBSD 7.0 (RELENG_7). As the first step, I want to make sure I patch the ncurses-5.6.tar.gz correctly. Here is what I do: 1. Download ncurses-5.6.tar.gz from http://ftp.gnu.org/pub/gnu/ncurses/ 2. Download patches from ftp://invisible-island.net/ncurses/5.6/ 3. Unpack tar xzf ncurses-5.6.tar.gz cd ncurses-5.6 4. Patch sh ../patch-5.6-20080621.sh patch -Np1 -i ../ncurses-5.6-20080628.patch patch -Np1 -i ../ncurses-5.6-20080705.patch patch -Np1 -i ../ncurses-5.6-20080712.patch patch -Np1 -i ../ncurses-5.6-20080713.patch patch -Np1 -i ../ncurses-5.6-20080726.patch patch -Np1 -i ../ncurses-5.6-20080804.patch 5. Post patch sed -i '' -e 's,$(INSTALL_PROG) ncurses-config,@INSTALL_SCRIPT@ ncurses-config,' misc/Makefile.in rm -rfv tack Ada95/src/terminal_interface-curses.adb mkinstalldirs Here are my questions: 1. Have I patched correctly? Are there anymore patches to apply or have I patch too much? 2. Are there anymore Post patch actions to be performed? Your help in this regard is very much appreciated and many thanks in advance. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]