howto determine network device unit number? device.hints?
Hi, I would like to determine the unit number of my network cards, e.g. make the device on pci0:16 be assigned every time with unit number 0 and pci0:19 with unit number 1. Is it done by /boot/device.hints? if so, how? My cards are: mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 chip=0x636815b3 rev=0xa0 hdr=0x00 mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 chip=0x636815b3 rev=0xa0 hdr=0x00 So I've tried: hint.mtnic.0.at=pci0:16 hint.mtnic.1.at=pci0:19 but it doesn't work. They keep switching arbitrarily. I'm using FreeBSD 7.0. Thanks Yony ___ 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
rum0 performance 1Mbps; ath0 reboots system
Hi, List, Recently I've set up my non-lcd-wokring HP NX9020 notebook as ADSL gateway and AP on 7.1-release Everything works well except wireless. I have LogiLink WL0025 (RT2573) which users rum(4) driver. I now it's not recomended to use rum cards as hostap, but my ath(4) card works even worse(later on that). IT is a USB stick so if it was connected as USB 1.0 device i would expect that kind of performance, but it's not (i guess :) ) addr 1: UHCI root hub, Intel, device uhub0 addr 1: UHCI root hub, Intel, device uhub1 addr 1: UHCI root hub, Intel, device uhub2 addr 1: EHCI root hub, Intel, device uhub3 addr 2: product 0x0018, vendor 0x13b1, device axe0 addr 3: 802.11 bg WLAN, Ralink, device rum0 Also mind that I'm using USB ethernet adapter on the same USB root hub. I tried to use Netgear WG511T (atheros 5212) (carbus) but it constantly couses IRQ storms with cbb0 device, after I disable acpi it works, but even slower than rum0 card and panics the machine if I remove the card from working machine. Any thoughts would be appreciated. dmesg attached. nbgw# vmstat -i interrupt total rate irq0: clk 44926114 1000 irq1: atkbd0 186 0 irq8: rtc5749743127 irq9: uhci2 acpi0 264526 5 irq10: rl0 uhci0 434405 9 irq11: cbb0 uhci1+ 25789037574 irq12: psm0 136 0 irq14: ata0 646740 14 Total 77810887 1732 opyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC module_register: module uhub/rum already exists! Module uhub/rum failed to register: 17 Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(R) M processor 1.30GHz (1296.76-MHz 686-class CPU) Origin = GenuineIntel Id = 0x6d6 Stepping = 6 Features=0xafe9f9bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE real memory = 502136832 (478 MB) avail memory = 477327360 (455 MB) kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: HP 3084 on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter ACPI-fast frequency 3579545 Hz quality 1000 acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0 acpi_ec0: Embedded Controller: GPE 0x1d port 0x62,0x66 on acpi0 acpi_acad0: AC Adapter on acpi0 battery0: ACPI Control Method Battery on acpi0 acpi_lid0: Control Method Lid Switch on acpi0 acpi_button0: Power Button on acpi0 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: ACPI PCI bus on pcib0 pci0: base peripheral at device 0.1 (no driver attached) pci0: base peripheral at device 0.3 (no driver attached) vgapci0: VGA-compatible display port 0x1800-0x1807 mem 0xe800-0xefff,0xe000-0xe007 irq 10 at device 2.0 on pci0 agp0: Intel 8285xM (85xGM GMCH) SVGA controller on vgapci0 agp0: detected 32636k stolen memory agp0: aperture size is 128M vgapci1: VGA-compatible display mem 0xf000-0xf7ff,0xe008-0xe00f at device 2.1 on pci0 uhci0: Intel 82801DB (ICH4) USB controller USB-A port 0x1820-0x183f irq 10 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: Intel 82801DB (ICH4) USB controller USB-A on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: Intel 82801DB (ICH4) USB controller USB-B port 0x1840-0x185f irq 11 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: Intel 82801DB (ICH4) USB controller USB-B on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: Intel 82801DB (ICH4) USB controller USB-C port 0x1860-0x187f at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: Intel 82801DB (ICH4) USB controller USB-C on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: Intel 82801DB/L/M (ICH4) USB 2.0 controller mem 0xe010-0xe01003ff irq 11 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: Intel 82801DB/L/M (ICH4) USB 2.0 controller on ehci0 usb3: USB revision 2.0 uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 on usb3 uhub3: 6 ports with 6 removable, self powered axe0: vendor 0x13b1 product 0x0018, class 255/255, rev 2.00/0.01, addr 2 on
FreeBSD 7, how to recieve internet mail
On FreeBSD 7, out of the box, one can send mail to internet destinations and can send mail locally from one user to another user on the same FreeeBSD machine But it can't receive mail from internet as it appears .. A sendmail is running freebsd7box# ps -jaxw | grep sendmail smmsp 26649 1 26649 266490 Is??0:00.00 sendmail: Queue run...@00:30:00 for /var/spool/clientmqueue (sendmail) root 26651 1 26651 266510 Ss??0:00.04 sendmail: accepting connections (sendmail) The machine is listening on port 25 freebsd7box# netstat -na | grep 25 tcp4 0 0 127.0.0.1.25 *.*LISTEN But telnettting the freebsd box with its own ip address at port 25 from the root account of the box freebsd7box# telnet 143.129.75.1 25 Trying 143.129.75.1... telnet: connect to address 143.129.75.1: Connection refused The only thing that works is freebsd7box# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. ... How do I make the FreeBSD7 box accept connections to port 25 from all of the internet ?? ___ 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: Knowledge of MAC addresses a security issue?
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 John Conover wrote: | Does knowledge of the internal MAC addresses on a network, (including | the routers,) present a security issue? In a word: yes. With caveats. An attacker with knowledge of the MAC addresses of your equipment *and* access to the same Layer 2 network where that kit is installed can mount easy denial of service or man-in-the-middle type attacks against those servers. Of course, if the attacker has access to the L2 network segment, then it's pretty easy for them to discover MAC addresses just from passing traffic or the ARP cache of whatever device they've compromised. Protecting MAC addresses at that level is basically impossible. Or in other words, don't worry too much about trying to hide MAC addresses inside your network -- it's far more important to ensure that the equipment on that same network segment is *all* locked down well. Any easy targets on a network can act as staging posts through which to mount attacks against the more interesting machines. If the attacker doesn't have access to that L2 network, then their knowing what the MAC addresses are will actually identify equipment manufacturers and possibly even specific hardware variants, which could be invaluable to them in developing an attack. MAC addresses are a somewhat unusual means of doing this sort of reconnaissance, since either you've basically got to have already succeeded in breaking in, or you have to mount a social engineering attack against the sort of technically adept people that know what a MAC address is in order to get hold of them Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 ~ 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate ~ Kent, CT11 9PW, UK -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkltxw0ACgkQ8Mjk52CukIzgpQCfcxNMMmS0Hh/x/EqRUzY6OCBv PzkAn0VSMAzlDj94MePtQipuftyW87jd =632b -END PGP SIGNATURE- ___ 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
kernel errors: TIMEOUT - READ_DMA
Hi all, I have an older P4 running FreeBSD 7.0 which I use as a web/file server, WAP, and ADSL gateway. The OS and /usr partition are on 30 GB Seagate Barracuda IDE drive, ad0. In addition, I have added two 500 GB IDE drives which I scavenged from a pair of La Cie external USB enclosures. The one is a Hitachi, ad2, and the other a Maxtor, ad3. I use this for storing a large collection of MP3s and for backing up the home partitions of several Linux clients on my network. I customarily share ad2 via NFS with my Linux clients. Here is where my problem begins: After mounting the NFS share, the Linux client eventually (24-48 hours) runs into to trouble; the share is no longer visible, and this tends to wreak havoc with Gnome. Looking in dmesg on the client, I see this: nfs: server venus not responding, timed out Looking in /var/log/messages on the FreeBSD server, I see the following (here is a week's worth): Jan 8 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 8 03:06:06 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 9 03:01:09 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 9 03:06:13 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 10 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=70508479 Jan 10 03:06:07 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 10 04:02:35 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 10 19:26:07 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=49302399 Jan 11 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=58711199 Jan 11 03:06:14 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 11 04:02:27 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 12 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 12 03:06:13 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 13 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=12159 Jan 13 03:06:14 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 14 03:01:10 venus kernel: ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Jan 14 03:06:14 venus kernel: ad3: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287 Any ideas on what is going on here? Note that only the two 500 GB data drives cause these errors; there is never a complaint about the 30 GB system drive. The two data drives are still online, and there is no problem accessing them through the server; it is just NFS which can't handle it. FWIW, I've tried using 'soft' as an option in the NFS fstab entry on the clients to no avail Thanks for any suggestions. - Colin Brace Amsterdam http://lim.nl -- View this message in context: http://www.nabble.com/kernel-errors%3A-TIMEOUT---READ_DMA-tp21455082p21455082.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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: rum0 performance 1Mbps; ath0 reboots system
On 1/14/09, Deceased decea...@webmail.vulcano.lt wrote: Hi, List, Recently I've set up my non-lcd-wokring HP NX9020 notebook as ADSL gateway and AP on 7.1-release Everything works well except wireless. I have LogiLink WL0025 (RT2573) which users rum(4) driver. I now it's not recomended to use rum cards as hostap, but my ath(4) card works even worse(later on that). rum(4) is known to have bad rx signals, eg. it is not complete. Also speed depends on reported tx rate; visible from ifconfig rum0 output. old usb stack have its own limits ... -- Paul ___ 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: PHP setup question
On Tue, Jan 13, 2009 at 09:42:11AM -0500, Steve Bertrand wrote: stan wrote: If you want to see what I have, It's reachable at http://beachcave/net/ampache/ I can't reach it :) Reply with the proper URL and I'll have a look. Sorry, it's http://beachcave.net/ampache/ I just droped teh database, and removed the ampache.cfg.php file, so the error shold be reproducible. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. ___ 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
Knowledge of MAC addresses a security issue?
Does knowledge of the internal MAC addresses on a network, (including the routers,) present a security issue? Thanks, John -- John Conover, cono...@rahul.net, http://www.johncon.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freebsd-update doesn't seem to update to Latest
-- From: Sebastian Setzer sebastianset...@alice-dsl.net Sent: Tuesday, January 13, 2009 3:47 PM To: freebsd-questions@freebsd.org Subject: freebsd-update doesn't seem to update to Latest Hi, I did a freebsd-update to 7.1-RELEASE as described in the release notes. After that, I installed Openoffice (with pkg_add) and got several warnings like this one: pkg_add: warning: package 'gnome-vfs-2.22.0_2' requires 'atk-1.22.0_1', but 'atk-1.20.0' is installed Now I did # pkg_add -r atk pkg_add: package 'atk-1.22.0_1' or its older version already installed so with pkg_add -r I get newer packages than I got with freebsd-update. Why? ___ 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-update only maintains the base OS. If you want to update the ports use either portmanager or portupgrade ___ 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
therek.com
Pending sale notification: In a few days we plan to offer the domain name THEREK.COM for sale. Because you own the similar domain name THEREK.net, we thought you my be interested in acquiring the preferred DotCom version of this domain. We plan to offer this domain for sale in three days and believe there is likely to be strong interest in this domain name by multiple parties, but since you own a similar version of the domain we wanted to give you the first right of refusal. If You`re interested in this domain: Go to the domain reservation page, here, and indicate your interest in this domain by completing the contact form. When the domain is available for sale, you`ll be the first to hear about it. Again, if you have interest in this domain, you need to RSVP right away at the reservation page located here: http://dnelists.com/buy.php?preorder=1qefid=2976540domain=THEREK.COM If you have NO interest: In acquiring the preferred DotCom version of this domain, simply click the Cancel Notification link below and we won`t contact you again. Cancel Notifications: http://dnelists.com/mailer/rem.php?email=questi...@freebsd.org Very best regards,Pat kenedy...@dnelists.comtel: 303.997.1703LeaderByChoice, INc600 17th Street, Ste 2800 SouthDenver, CO 80202-5428 ___ 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: Printing - standard? CUPS? ...??
On Mon, 12 Jan 2009 19:59:33 -0500, Jason Lenthe len...@comcast.net wrote: The problem [with CUPS] was that certain other software (gtk+ and gnome as I recall) expected /usr/bin/lpr to be the CUPS lpr (the CUPS port normally installs lpr to /usr/local/bin). It was also necessary for some applications to have /usr/local/bin before /usr/bin in your path for certain applications to work. My memory is vague regarding the details, though. These were the main reasons why I always tried to avoid CUPS. It's a good tool if you're running Gnome anyway, and especially if you've got a modern multifunctional device (printer + scanner + fax + coffe maker + god knows what else), you've better support there than under apsfilter. If your printer is PS capable, you can send the PS directly into the printer. FreeBSD's printer spooler should do this fine. Since 4.0, I've always been very comfortable with apsfilter. I've owned office-class laser printers (HP Laserjet 4 then, 4000 duplex today) and they were supported very well, especially because of their ability to speak PCL. apsfilter can be easily setup using its SETUP script, /usr/local/share/apsfilter/SETUP which lets you select your setting dialog driven. In opposite to CUPS, it does not interfere with the system's printer commands. One downside I noticed since I was forced to upgrade my home system was that some programs seem to expect (!) the presence of CUPS on a system in order to print, which they didn't do in earlier versions. Yes, I'm talking to you, Gimp! :-) When trying to print something from the Gimp (I think it's called Gutenprint), the message /usr/local/bin/lpstat: Unable to connect to server is output to the controlling terminal. It seems that it's not enough that Gimp runs slower with every version update... :-( The strangest thing: cups-base is a dependency to apsfilter! Furthermore, I think apsfilter lost some functionality. I mean, I DIDN't change anything on the printer when I reinstalled my whole system, and I restored all the settings such as they were before, but now, the printer doesn't print duplex anymore. By all means, give CUPS a try though. CUPS seems to be the way to go, I'll try it on the next reinstall. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: updating to 7.1 with a small root slice
Hello, On Wed, Jan 14, 2009 at 08:13, Zbigniew Szalbot zszal...@gmail.com wrote: Dear all, I am looking for your advice. Due to a very stupid design decision my / slice is only 256 MB. It seems too little so whenever I compile a Actually it is 242MB new kernel, I need to move the kernel.old to a different slice to install the new one. Then I pray, hope for the best and reboot. However, I read that if I want to update to 7.1 I will need to boot a generic kernel at some point. What option do I have? I found the problem. My oh my - I had makeoptionsDEBUG=-g uncommented. When I commented it out, the new compiled kernel is only 32MB whereas the old one was 128 or so MB. So I am happy about it now. However, I do not have a GENERIC kernel in /boot and I will need it to do nextboot when I upgrade to 7.1. I thought I'd use the procedure described here http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html to compile a generic kernel # cd /usr/src # env DESTDIR=/boot/GENERIC make kernel # mv /boot/GENERIC/boot/kernel/* /boot/GENERIC # rm -rf /boot/GENERIC/boot When I make the GENERIC kernel, I again run out of space (I still have about 60MB free in /). So I guess the system is probably using the same makeoptionsDEBUG=-g settings for the generic kernel. So my question is where is the kernel conf file based on which the generic kernel is compiled? Is it in /usr/src/sys/i386/conf/GENERIC ? Thank you in advance! -- Zbigniew Szalbot www.slowo.pl www.fairtrade.net.pl ___ 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
therek.com
Pending sale notification: In a few days we plan to offer the domain name THEREK.COM for sale. Because you own the similar domain name THEREK.net, we thought you my be interested in acquiring the preferred DotCom version of this domain. We plan to offer this domain for sale in three days and believe there is likely to be strong interest in this domain name by multiple parties, but since you own a similar version of the domain we wanted to give you the first right of refusal. If You`re interested in this domain: Go to the domain reservation page, here, and indicate your interest in this domain by completing the contact form. When the domain is available for sale, you`ll be the first to hear about it. Again, if you have interest in this domain, you need to RSVP right away at the reservation page located here: http://dnelists.com/buy.php?preorder=1qefid=2976540domain=THEREK.COM If you have NO interest: In acquiring the preferred DotCom version of this domain, simply click the Cancel Notification link below and we won`t contact you again. Cancel Notifications: http://dnelists.com/mailer/rem.php?email=questi...@freebsd.org Very best regards,Pat kenedy...@dnelists.comtel: 303.997.1703LeaderByChoice, INc600 17th Street, Ste 2800 SouthDenver, CO 80202-5428 ___ 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
Time skew
Hi All, I'm facing some strange behavior with an skew in the system clock. The hardware is a Dell PowerEdge 2950III, running two instances of FreeBSD 7.0-RELEASE-p5 - amd64 over an ESXi hipervisor. To both were allocated 4 processors and 4 GB of RAM, and dmesg for both are identical. I'm using clockspeed to synchronize the clock, but just one of them is delaying the clock a lot. The hardware clock is ok as far as the other virtual machine. Where should I start to investigate? - Marcelo Dmesg is following: Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-RELEASE-p5 #0: Mon Nov 3 13:19:30 BRST 2008 r...@tst.ciplan:/usr/obj/usr/src/sys/TREX-64 Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz (2357.36-MHz K8-class CPU) Origin = GenuineIntel Id = 0x10678 Stepping = 8 Features=0xfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM OV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS Features2=0x82201SSE3,SSSE3,CX16,b19 AMD Features=0x20100800SYSCALL,NX,LM AMD Features2=0x1LAHF usable memory = 4013707264 (3827 MB) avail memory = 3883839488 (3703 MB) ACPI APIC Table: PTLTD APIC FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 Version 1.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 (Nov 3 2008 13:19:19) acpi0: PTLTD RSDT on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter ACPI-safe frequency 3579545 Hz quality 850 acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0 cpu0: ACPI CPU on acpi0 acpi_throttle0: ACPI CPU Throttling on cpu0 cpu1: ACPI CPU on acpi0 acpi_throttle1: ACPI CPU Throttling on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 cpu2: ACPI CPU on acpi0 acpi_throttle2: ACPI CPU Throttling on cpu2 acpi_throttle2: failed to attach P_CNT device_attach: acpi_throttle2 attach returned 6 cpu3: ACPI CPU on acpi0 acpi_throttle3: ACPI CPU Throttling on cpu3 acpi_throttle3: failed to attach P_CNT device_attach: acpi_throttle3 attach returned 6 ___ 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
Flash for FreeBSD - GNOME - Firefox
Hi all, Is there a port that emulates Adobe Flash? i.e. Adobe's download site says 'Platform not supported' is there a port or package thats can be used to view Flash content in Firefox? -Grant ___ 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: Time skew
In response to sc...@centroin.com.br: I'm facing some strange behavior with an skew in the system clock. The hardware is a Dell PowerEdge 2950III, running two instances of FreeBSD 7.0-RELEASE-p5 - amd64 over an ESXi hipervisor. To both were allocated 4 processors and 4 GB of RAM, and dmesg for both are identical. I'm using clockspeed to synchronize the clock, but just one of them is delaying the clock a lot. I doubt that clockspeed will ever work for you. VMWare seems to pause virtual machines when they're not doing anything in order to allocate CPU for other running VMs. The hardware clock is ok as far as the other virtual machine. Where should I start to investigate? For supported OS (i.e. Windows/Linux) VMWare provides special programs to keep the clocks in sync. I expect this is because VMWare knows that they mangle the clock in such a way that typical clock management software will never be able to keep it in sync. One problem is that most clock synching software assumes that drift is relatively constant (and clockspeed seems to be the same) but clock drift in a virtual machine is _anything_ but constant. Unfortunately, VMWare has no love for FreeBSD. We've been able to keep clocks in sync by adding a cronjob that runs ntpdate every minute or so. Seems draconian, but it gets the job done. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ 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: Time skew
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of sc...@centroin.com.br Hi All, I'm facing some strange behavior with an skew in the system clock. The hardware is a Dell PowerEdge 2950III, running two instances of FreeBSD 7.0-RELEASE-p5 - amd64 over an ESXi hipervisor. To both were allocated 4 processors and 4 GB of RAM, and dmesg for both are identical. I'm using clockspeed to synchronize the clock, but just one of them is delaying the clock a lot. The hardware clock is ok as far as the other virtual machine. Where should I start to investigate? Marcelo, I've not used the ESXi hypervisor, but do use ESX 3.5 with FreeBSD, and the only way I've sucessfully kept FreeBSD servers in time, is to use either ntpdate or ntpd. Lately, I've found ntpd to be a better solution. Vmware have a KB article on the best way to configure ntpd on a virtual machine: http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKCdocType= kcexternalId=1339sliceId=2docTypeID=DT_KB_1_1dialogID=14730824stateId=0 %200%204678302 For what it's worth this is the ntp.conf I use, which gives me no trouble: tinker panic 0 restrict 127.0.0.1 restrict default kod nomodify notrap server time.server.ip Cheers, Barry ___ 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
Installing FreeBSD with Windows XP
Hi all, Is there a tutorial on how to install FreeBSD on a system which already has Windows XP on it? The goal is to have dual-boot with both. Thanks, tsai -- tsai ___ 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: Re: Odd behavior after upgrading to 7.0-p7
On Jan 13, 2009 4:18pm, Mel fbsd.questi...@rachie.is-a-geek.net wrote: On Saturday 10 January 2009 16:37:50 Andrew Falanga wrote: I installed 7.0 i386 and all was working great. I upgraded to p7 and now when I end my X session, I have kdm loading, it doesn't bring me to a login prompt. It dumps me on console 0 and I have to kill the kdm-bin process to return to a kdm login. This didn't happen before upgrading to p7. What would have changed that would not prevent this? When using x11/nvidia-driver, recompile it for this new kernel. Thanks. I'll do that. Though, to be sure, does this mean I must enter that directory in ports and do a 'make deinstall' and then 'make install clean'? Thanks again, Andy ___ 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: Installing FreeBSD with Windows XP
I used gparted (http://gparted.sourceforge.net/ ) to move the XP partition to make room for fBSD. You make a bootable CD and I found it to be quite simple. Make sure that your XP partition is defragmented before using gparted. Otherwise, gparted will not let you manipulate the partition. Once you make a decent partition for fBSD (mine is around 25G), just follow fBSD's installation docs ( http://www.freebsd.org/doc/en/books/handbook/install.html [+]) . Again, it's pretty easy. On Wed, Jan 14, 2009 at 8:13 AM, tsai tsai...@gmail.com wrote: Hi all, Is there a tutorial on how to install FreeBSD on a system which already has Windows XP on it? The goal is to have dual-boot with both. Thanks, tsai -- tsai ___ 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 -- www.nealhogan.net ___ 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: Flash for FreeBSD - GNOME - Firefox
Grant Peel wrote: Hi all, Is there a port that emulates Adobe Flash? i.e. Adobe's download site says 'Platform not supported' is there a port or package thats can be used to view Flash content in Firefox? -Grant ___ 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 /usr/ports/www/linux-flashplugin9 you also need /www/nspluginwrapper then run nspluginwrapper -v -a -i ___ 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: updating to 7.1 with a small root slice
On Wed, 14 Jan 2009 14:53:29 +0100, Zbigniew Szalbot zszal...@gmail.com wrote: When I make the GENERIC kernel, I again run out of space (I still have about 60MB free in /). So I guess the system is probably using the same makeoptionsDEBUG=-g settings for the generic kernel. So my question is where is the kernel conf file based on which the generic kernel is compiled? Is it in /usr/src/sys/i386/conf/GENERIC ? Yes, it is, and is has the setting makeoptions DEBUG=-g included. You could # this setting and build a GENERIC kernel without the debug informations as described in the handbook about how to compile a custom kernel (it doesn't matter if KERNCONF refers to the GENERIC configuration file). -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7, how to recieve internet mail
On Wed, 14 Jan 2009 10:56:30 +0100 (CET) Pieter Donche pieter.don...@ua.ac.be wrote: On FreeBSD 7, out of the box, one can send mail to internet destinations and can send mail locally from one user to another user on the same FreeeBSD machine But it can't receive mail from internet as it appears .. A sendmail is running freebsd7box# ps -jaxw | grep sendmail smmsp 26649 1 26649 266490 Is??0:00.00 sendmail: Queue run...@00:30:00 for /var/spool/clientmqueue (sendmail) root 26651 1 26651 266510 Ss??0:00.04 sendmail: accepting connections (sendmail) The machine is listening on port 25 freebsd7box# netstat -na | grep 25 tcp4 0 0 127.0.0.1.25 *.*LISTEN sendmail is only listening on localhost. But telnettting the freebsd box with its own ip address at port 25 from the root account of the box freebsd7box# telnet 143.129.75.1 25 Trying 143.129.75.1... telnet: connect to address 143.129.75.1: Connection refused sendmail is not listening on that address. eg here, when quiet: % netstat -an | grep 25 tcp4 0 0 *.25 *.*LISTEN % sockstat -4 | grep :25 root sendmail 781 3 tcp4 *:25 *:* The only thing that works is freebsd7box# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. ... That'd be right; it needs to be also listening on an external interface address to receive mail from outside this box .. How do I make the FreeBSD7 box accept connections to port 25 from all of the internet ?? % grep sendmail /etc/rc.conf sendmail_enable=YES cheers, Ian ___ 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: updating to 7.1 with a small root slice
Zbigniew Szalbot wrote: Hello, On Wed, Jan 14, 2009 at 08:13, Zbigniew Szalbot zszal...@gmail.com wrote: Dear all, I am looking for your advice. Due to a very stupid design decision my / slice is only 256 MB. It seems too little so whenever I compile a Actually it is 242MB I have one box with only 200MB for /. I had already displaced out GENERIC with highly stripped down kernel which made for space. I did at one point run out of space and the stuff mentioned further down saved the day for me. new kernel, I need to move the kernel.old to a different slice to install the new one. Then I pray, hope for the best and reboot. However, I read that if I want to update to 7.1 I will need to boot a generic kernel at some point. What option do I have? I found the problem. My oh my - I had makeoptionsDEBUG=-g uncommented. When I commented it out, the new compiled kernel is only 32MB whereas the old one was 128 or so MB. So I am happy about it now. However, I do not have a GENERIC kernel in /boot and I will need it to do nextboot when I upgrade to 7.1. I thought I'd use the procedure described here http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html to compile a generic kernel # cd /usr/src # env DESTDIR=/boot/GENERIC make kernel # mv /boot/GENERIC/boot/kernel/* /boot/GENERIC # rm -rf /boot/GENERIC/boot Never tried any of that. I do the make buildkernel KERNCONF=xxx. Realize you should not be running out of space on / during this procedure as the build is occurring in /usr/obj. You will only run out of space on / if the make installkernel KERNCONF=xx won't fit. When I make the GENERIC kernel, I again run out of space (I still have about 60MB free in /). So I guess the system is probably using the same makeoptionsDEBUG=-g settings for the generic kernel. So my question is where is the kernel conf file based on which the generic kernel is compiled? Is it in /usr/src/sys/i386/conf/GENERIC ? Yes - and it has in it by default: makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols So if you're not building a developer kernel you can comment this out. I don't remember for sure if this truly matters, or not, but I seem to recall the size of my kernel directories decreased dramatically when I placed STRIP= -s in /etc/make.conf. It seemed a favorable thing to do once upon a time and it's been there ever since. I thought the system variables had migrated to src.conf and the make.conf only applied to ports. In addition I also have in make.conf NO_PROFILE= true and in src.conf is WITHOUT_PROFILE= true. My stripped down kernels are 3.1MB for a 1 NIC driver and 3.4MB for a 2 NIC kernel. Of course, you won't get these small sizes for GENERIC! -Mike ___ 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: Time skew
Marcelo, Try adding either, hint.apic.0.disabled=1 or kern.hz=100 to /boot/loader.conf Reboot the machine and check your time. The first line is the patch originally noted in the VMWare KB the latter is from the FreeBSD handbook on the subject. Regards, Mikel On Jan 14, 2009, at 9:09 AM, sc...@centroin.com.br wrote: Hi All, I'm facing some strange behavior with an skew in the system clock. The hardware is a Dell PowerEdge 2950III, running two instances of FreeBSD 7.0-RELEASE-p5 - amd64 over an ESXi hipervisor. To both were allocated 4 processors and 4 GB of RAM, and dmesg for both are identical. I'm using clockspeed to synchronize the clock, but just one of them is delaying the clock a lot. The hardware clock is ok as far as the other virtual machine. Where should I start to investigate? - Marcelo Dmesg is following: Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-RELEASE-p5 #0: Mon Nov 3 13:19:30 BRST 2008 r...@tst.ciplan:/usr/obj/usr/src/sys/TREX-64 Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz (2357.36-MHz K8- class CPU) Origin = GenuineIntel Id = 0x10678 Stepping = 8 Features =0xfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM OV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS Features2=0x82201SSE3,SSSE3,CX16,b19 AMD Features=0x20100800SYSCALL,NX,LM AMD Features2=0x1LAHF usable memory = 4013707264 (3827 MB) avail memory = 3883839488 (3703 MB) ACPI APIC Table: PTLTD APIC FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 Version 1.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 (Nov 3 2008 13:19:19) acpi0: PTLTD RSDT on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter ACPI-safe frequency 3579545 Hz quality 850 acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0 cpu0: ACPI CPU on acpi0 acpi_throttle0: ACPI CPU Throttling on cpu0 cpu1: ACPI CPU on acpi0 acpi_throttle1: ACPI CPU Throttling on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 cpu2: ACPI CPU on acpi0 acpi_throttle2: ACPI CPU Throttling on cpu2 acpi_throttle2: failed to attach P_CNT device_attach: acpi_throttle2 attach returned 6 cpu3: ACPI CPU on acpi0 acpi_throttle3: ACPI CPU Throttling on cpu3 acpi_throttle3: failed to attach P_CNT device_attach: acpi_throttle3 attach returned 6 ___ 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
Slow startup of Gnome - error from gnome-keyring-daemon
Hi, After installing a new system with 7.1 from scratch, upgrading kernel/system as well as ports to the current version I configured X-win (X -configure) and finally fired up gnome. First of all, Gnome takes a LOT of time to get up - it takes almost 5 minutes (!) till I get the icons for Computer, Trash and the icon for my home folder displayed. In /var/log/messages I see tons of the following messages: Jan 14 16:44:17 mybox gnome-keyring-daemon[977]: error connecting to D-BUS system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Jan 14 16:44:17 mybox gnome-keyring-daemon[977]: Scheduling hal init retry Jan 14 16:44:47 mybox gnome-keyring-daemon[977]: error connecting to D-BUS system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Jan 14 16:44:47 mybox gnome-keyring-daemon[977]: Scheduling hal init retry Jan 14 16:45:17 mybox gnome-keyring-daemon[977]: error connecting to D-BUS system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Jan 14 16:45:17 mybox gnome-keyring-daemon[977]: Scheduling hal init retry Jan 14 16:45:47 mybox gnome-keyring-daemon[977]: error connecting to D-BUS system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Jan 14 16:45:47 mybox gnome-keyring-daemon[977]: Scheduling hal init retry I'm pretty sure, both symtoms, i.e. slow startup of gnome and these error messages have something to do with each other... So here are my questions: o) Has anybody out there seen similar problems o) Anything that can be done against this? BTW, I'm running 7.1 with latest kernel ports (see above) - 64bit (AMD64) architecture Thanks much in advance for any clue, -ewald ___ 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: Printing - standard? CUPS? ...??
On Mon, Jan 12, 2009 at 07:59:33PM -0500, Jason Lenthe wrote: By all means, give CUPS a try though. Thanks to you all for your hints/suggestions - I'll try to get up CUPS with a possible fallback to print/apsfilter. -ewald ___ 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
kernel configuration
hello, i am going through the kernel configuration file to build a custom kernel and am not quite sure i understand this part correctly. my cpu is an athlon 64 x2 but i am running i386, so i am assuming that in the config file i state that my cpu is i386, not athlon 64. i ran frebsd amd64 previously, and it had HAMMER i think as the cpu in the config file. this i386 version has cpu I486_CPU cpu I586_CPU cpu I686_CPU Is this correct, and do i need all three? thank you ___ 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
Should swap space be mirrored via geom?
We have systems setup using geom based mirroring where the drives are partitioned into three slices, one for the OS, one for the swap partition, and one for our application data. We have four hot-swappable SATA drives per system. At present we only have the OS slice mirrored with geom, and our own data partition is definitely not a candidate for mirroring. The swap slice is not mirrored, so we end up with 4x4GB of space on each system (which is probably way more than we need). We have been debating whether or we should mirror the swap partitions as well. I set it up not mirrored based on some articles I read on the net, but we're concerned what might happen to a system if a drive died at a time when the its swap partition contained active pages. My first reaction would be that the applications bound to these pages would crash, something that would not happen if we used swap mirroring. Can anyone shed some light on this? ___ 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
Blocking very many (tens of thousands) ip addresses in ipfw
I need to block around 15 ip addreses from acccess the server at all at any port. The addesses are random, they are not nets. These are the spammer i want to block for 24 hours. The list is dynamically generated and regenerated every hour or so. What is the most efficient way to do it? At first i thought doing ipfw rules using 5 ips per rule, that would result in 3 rules! This will be too slow! I need to something really quick and smart. Like matching the first number from ip (195 from 192.1.2.3), if it does not match - skip, if it does - compare the next one and so on. -- Regards Artem Kuchin ___ 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: Blocking very many (tens of thousands) ip addresses in ipfw
In the last episode (Jan 14), Artem Kuchin said: I need to block around 15 ip addreses from acccess the server at all at any port. The addesses are random, they are not nets. These are the spammer i want to block for 24 hours. The list is dynamically generated and regenerated every hour or so. What is the most efficient way to do it? At first i thought doing ipfw rules using 5 ips per rule, that would result in 3 rules! This will be too slow! I need to something really quick and smart. Like matching the first number from ip (195 from 192.1.2.3), if it does not match - skip, if it does - compare the next one and so on. Take a look at the ipfw manpage, the LOOKUP TABLES section. You can add/remove entries on the fly if you need to, and for an efficient full replacement, create a file with contents like: table 1 flush table 1 add 1.2.3.4 table 1 add 2.3.4.5 etc, then load it with ipfw -f file.txt. -- Dan Nelson dnel...@allantgroup.com ___ 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: Blocking very many (tens of thousands) ip addresses in ipfw
Artem Kuchin wrote: I need to block around 15 ip addreses from acccess the server at all at any port. The addesses are random, they are not nets. These are the spammer i want to block for 24 hours. The list is dynamically generated and regenerated every hour or so. What is the most efficient way to do it? At first i thought doing ipfw rules using 5 ips per rule, that would result in 3 rules! This will be too slow! I need to something really quick and smart. Like matching the first number from ip (195 from 192.1.2.3), if it does not match - skip, if it does - compare the next one and so on. Use tables. They are efficient, and easy to manipulate. # ipfw table 1 add xx.xx.xx.xx/xx # ipfw deny all from table(1) to any It would be best if you allowed only legitimate IP addresses to pass traffic in/out of your network, and then deny all else, but the way your message reads, this is SMTP traffic inbound, so 'allow some, deny the rest' doesn't work too well here. Steve ___ 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: Blocking very many (tens of thousands) ip addresses in ipfw
On Wednesday 14 January 2009 17:23:25 Artem Kuchin wrote: I need to block around 15 ip addreses from acccess the server at all at any port. The addesses are random, they are not nets. These are the spammer i want to block for 24 hours. The list is dynamically generated and regenerated every hour or so. What is the most efficient way to do it? At first i thought doing ipfw rules using 5 ips per rule, that would result in 3 rules! This will be too slow! I need to something really quick and smart. Like matching the first number from ip (195 from 192.1.2.3), if it does not match - skip, if it does - compare the next one and so on. Quoting ipfw(8): LOOKUP TABLES Lookup tables are useful to handle large sparse address sets, typically from a hundred to several thousands of entries. There may be up to 128 different lookup tables, numbered 0 to 127. net.inet.ip.fw.dyn_buckets should probably also be increased to efficiently handle 150k IPs. -- Pieter de Goeje ___ 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
sysctl machdep.independent_wallclock
hi... what is the exact function of this sysctl setting? I couldn't find any documentation on it. greetz olli ___ 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: Blocking very many (tens of thousands) ip addresses in ipfw
Pieter de Goeje wrote: On Wednesday 14 January 2009 17:23:25 Artem Kuchin wrote: I need to block around 15 ip addreses from acccess the server at all at any port. The addesses are random, they are not nets. These are the spammer i want to block for 24 hours. The list is dynamically generated and regenerated every hour or so. What is the most efficient way to do it? At first i thought doing ipfw rules using 5 ips per rule, that would result in 3 rules! This will be too slow! I need to something really quick and smart. Like matching the first number from ip (195 from 192.1.2.3), if it does not match - skip, if it does - compare the next one and so on. Quoting ipfw(8): LOOKUP TABLES Lookup tables are useful to handle large sparse address sets, typically from a hundred to several thousands of entries. There may be up to 128 different lookup tables, numbered 0 to 127. net.inet.ip.fw.dyn_buckets should probably also be increased to efficiently handle 150k IPs. Please correct me if I'm wrong, but if the OP is going to drop all traffic immediately from the 150k IPs, then dyn_buckets shouldn't come into play, as there is no dynamic rule generated. Steve ___ 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: howto determine network device unit number? device.hints?
you may not change unit numbers as they are strictly controlled by kernel. However, on freebsd 5.3+, you may use 'ifconfig name your-name-here' to achieve the same affect Yony Yossef wrote: Hi, I would like to determine the unit number of my network cards, e.g. make the device on pci0:16 be assigned every time with unit number 0 and pci0:19 with unit number 1. Is it done by /boot/device.hints? if so, how? My cards are: mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 chip=0x636815b3 rev=0xa0 hdr=0x00 mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 chip=0x636815b3 rev=0xa0 hdr=0x00 So I've tried: hint.mtnic.0.at=pci0:16 hint.mtnic.1.at=pci0:19 but it doesn't work. They keep switching arbitrarily. I'm using FreeBSD 7.0. Thanks Yony ___ 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 -- Best regards. Hooman Fazaeli h...@sepehrs.com Sepehr S. T. Co. Ltd. Web: http://www.sepehrs.com Tel: (9821)88975701-2 Fax: (9821)88983352 ___ 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 encrypted hard disk?
I read the encrypting disk partitions section of the Handbook. What is the preferred method nowdays, geli or gbde? Is there another method that would be better? ___ 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: updating to 7.1 with a small root slice
On Wed, Jan 14, 2009 at 08:13:32AM +0100, Zbigniew Szalbot wrote: Dear all, I am looking for your advice. Due to a very stupid design decision my / slice is only 256 MB. It seems too little so whenever I compile a new kernel, I need to move the kernel.old to a different slice to install the new one. Then I pray, hope for the best and reboot. However, I read that if I want to update to 7.1 I will need to boot a generic kernel at some point. What option do I have? Probably you mean the / partition. Probably all those partitions are in one slice, but maybe not. Hmmm. 256 MB should be plenty for root, depending on what is in root. What do you leave in root?IF some things like /tmp, /usr or /var are living in the root partition, then they should be in their own. If they or some other big directory is in the way, then move it to your big partition (probably /home) and make a symbolic link (symlink) to it from the root partition.That will leave more room in root and you can get by until the next time you do a complete reinstall (maybe forever) that way. Then, if you want to redo your partitions, you can. By then, the main reason will be because disk sizes have become so large that you want to carve them up differently. Even if I install a copy of GENERIC kernel into /boot, it most likely won't fit in the available file space. The problem is the machine's remote so I cannot take it down, replace drives, etc. as I am bound by a hosting contract and frankly I really do not want to do that unless I have no other option. Thoughts? Many thanks! It is easy to move a too big directory to another large partition. Just tar up the directory and untar it in the new place and then make the link. If everything looks to be OK - including files' ownership and permissions, then delete the old directory. Lets say you have a large /home that is a separate partition and that you left /var in root instead of making it its own partition. cd /var tar -cvf /home/var.tar * cd /home mkdir new.var cd new.var tar -xvpf /home/var.tar cd / mv var old.var ln -s /home/new.var var Check out the new.var for files/ownership/permissions cd / rm -rf old.var voila, you have room in root now. Do this to appropriate directories that are too big and really should have their own partition or be in the large partition anyway. Make sure you do not do it to directories that are needed for boot. The main one that may not be obvious is /etc. Don't move it. But also, do not move /bin, /sbin, /boot, /root, /dev, /lib or /libexec Really /tmp, /usr and /var or some directories within them are your only candidates. You might also check to make sure you didn't stash some large junk files in /root and forgot to get rid of them. Anyway, 256 MB should be plenty of space for / slash unless you are putting everything in it. jerry -- Zbigniew Szalbot www.slowo.pl www.fairtrade.net.pl ___ 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: updating to 7.1 with a small root slice
Hello, Is it in /usr/src/sys/i386/conf/GENERIC ? Yes, it is, and is has the setting makeoptions DEBUG=-g included. You could # this setting and build a GENERIC kernel without the debug informations as described in the handbook about how to compile a custom kernel (it doesn't matter if KERNCONF refers to the GENERIC configuration file). Great! I was able to install the generic kernel so I should be safe when going up from 7.0 to 7.1. And I still have some space left in /. $ df -h / Filesystem SizeUsed Avail Capacity Mounted on /dev/ar0s1a242M194M 29M87%/ Thank you all for the information! Great! Now the scary thing... upgrade the system to 7.1 :) -- Zbigniew Szalbot www.slowo.pl www.fairtrade.net.pl ___ 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: updating to 7.1 with a small root slice
Hello Jerry, Anyway, 256 MB should be plenty of space for / slash unless you are putting everything in it. My main mistake was that I had makeoptionsDEBUG=-g in the kernel config file. That made for a ~130MB kernel so when I compiled and tried to install a new one, it ran out of space (it would be about 260 MB but I only had 242 MB). Many thanks for all you detailed instructions though! -- Zbigniew Szalbot www.slowo.pl www.fairtrade.net.pl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freebsd encrypted hard disk?
Johann Hasselbach wrote: I read the encrypting disk partitions section of the Handbook. What is the preferred method nowdays, geli or gbde? Is there another method that would be better? I don't know what is best, but for quite some time I've used GELI to encrypt my entire hard disk, including the / partition. I then copy /boot to a USB thumb drive with the encryption key so I don't need any portion of the hard disk unencrypted. This setup also allows me to pull the USB key from the machine after it has been booted, taking the encryption key with me. I've never had a problem. pearl# df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ar0.elia504M377M 87M81%/ devfs1.0K1.0K 0B 100%/dev /dev/ar0.elie 47G9.6G 34G22%/usr /dev/ar0.elif 47G7.2G 36G17%/var /dev/ar0.elig 47G 25G 19G57%/home Steve ___ 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: Printing - standard? CUPS? ...??
On Wed, Jan 14, 2009 at 02:44:10PM +0100, Polytropon wrote: On Mon, 12 Jan 2009 19:59:33 -0500, Jason Lenthe len...@comcast.net wrote: The problem [with CUPS] was that certain other software (gtk+ and gnome as I recall) expected /usr/bin/lpr to be the CUPS lpr (the CUPS port normally installs lpr to /usr/local/bin). It was also necessary for some applications to have /usr/local/bin before /usr/bin in your path for certain applications to work. My memory is vague regarding the details, though. When installing cups, I always tell it to overwrite the base tools. I've got the following in /etc/make.conf: .if ${.CURDIR:M*/print/cups*} CUPS_OVERWRITE_BASE=true .endif Accompanied by the following setting in /etc/src.conf: WITHOUT_LPR=true This will prevent two different versions of the lp* tools being installed. One downside I noticed since I was forced to upgrade my home system was that some programs seem to expect (!) the presence of CUPS on a system in order to print, which they didn't do in earlier versions. Yes, I'm talking to you, Gimp! :-) When trying to print something from the Gimp (I think it's called Gutenprint), the message /usr/local/bin/lpstat: Unable to connect to server is output to the controlling terminal. It seems that it's not enough that Gimp runs slower with every version update... :-( The upside is that gutenprint and cups changing all available printer settings. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpBVkFBkCrOb.pgp Description: PGP signature
Re: Flash for FreeBSD - GNOME - Firefox
On Wed, Jan 14, 2009 at 09:25:10AM -0500, Grant Peel wrote: Hi all, Is there a port that emulates Adobe Flash? i.e. Adobe's download site says 'Platform not supported' is there a port or package thats can be used to view Flash content in Firefox? You could try graphics/gnash Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpaOX6ECvT8q.pgp Description: PGP signature
Re: Slow startup of Gnome - error from gnome-keyring-daemon
On Wed, Jan 14, 2009 at 04:48:59PM +0100, Ewald Jenisch wrote: Hi, After installing a new system with 7.1 from scratch, upgrading kernel/system as well as ports to the current version I configured X-win (X -configure) and finally fired up gnome. First of all, Gnome takes a LOT of time to get up - it takes almost 5 minutes (!) till I get the icons for Computer, Trash and the icon for my home folder displayed. In /var/log/messages I see tons of the following messages: Jan 14 16:44:17 mybox gnome-keyring-daemon[977]: error connecting to D-BUS system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Jan 14 16:44:17 mybox gnome-keyring-daemon[977]: Scheduling hal init retry Jan 14 16:44:47 mybox gnome-keyring-daemon[977]: error connecting to D-BUS system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Jan 14 16:44:47 mybox gnome-keyring-daemon[977]: Scheduling hal init retry Jan 14 16:45:17 mybox gnome-keyring-daemon[977]: error connecting to D-BUS system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Jan 14 16:45:17 mybox gnome-keyring-daemon[977]: Scheduling hal init retry Jan 14 16:45:47 mybox gnome-keyring-daemon[977]: error connecting to D-BUS system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Jan 14 16:45:47 mybox gnome-keyring-daemon[977]: Scheduling hal init retry The obvious question is: Have you got hald running? Make sure your /etc/rc.conf has: gnome_enable=YES -- Jonathan Chen j...@chen.org.nz -- Nyuck, nyuck, nyuck - Curly ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freebsd encrypted hard disk?
On Wed, Jan 14, 2009 at 12:23:09PM -0500, Johann Hasselbach wrote: I read the encrypting disk partitions section of the Handbook. What is the preferred method nowdays, geli or gbde? Geli seems to be the preferred method these days. It is also what I use to encrypt my /home. It works without problems for me. A geli-encrypted device gets the extension .eli. The boot scripts handle it automatically when they see an .eli device in /etc/fstab. Depending on how you configured it you might have to give the passphrase. You can even encrypt your root directory, but in that case I think you'll need an unencrypted partition for /boot. Is there another method that would be better? Depends on what you define as better. I don't think so. Geli is convenient and seems to work well. On modern machines the performance penalty is slight. It supports well-regarded encryption algorithms like AES and Blowfish. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpQoH9MuP8ed.pgp Description: PGP signature
Performing installed ports upgrade / leaving some software intact
Dear all, I am now full into planning the 7.0-RELEASE to 7.1-RELEASE upgrade. I know that at the end of the day it will also mean upgrading all ports (portupgrade -af). I have one port - mailman - which I have customized a lot and do not really want to upgrade it as it will most likely mean I will have to hack a few files again. What options do I have so that I do not break the setup? I am thinking of: 1/ backing up the hacked files and restoring them later (but I will overwrite the newer files with older ones perhaps breaking something). 2/ making them read only (but the end result will be the same and upgrading as root I will overwrite them anyway). And that would be it. My wisdom ends here. Is there any option to survive the ports upgrade? :) If not, I guess I will just have to hack Mailman files again after the upgrade... -- Zbigniew Szalbot www.slowo.pl www.fairtrade.net.pl ___ 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: Installing FreeBSD with Windows XP
On Wed, Jan 14, 2009 at 06:13:45AM -0800, tsai wrote: Hi all, Is there a tutorial on how to install FreeBSD on a system which already has Windows XP on it? The goal is to have dual-boot with both. The FreeBSD Handbook - free online at the FreeBSD web site - has a whole section on that. It is easy. The machine on which I am typing is dual boot with FreeBSD Win-XP. Basically, you first have to shrink the XP slice (which is called a primary partition in the MS world) to make room for FreeBSD. Probably the best utility for that nowdays is gpartd which is available for free. Just do a little search and then burn a bootable copy of it to a CD. It works with NTFS as well as other MS file system types and some other freeware does not. You can also use the Parition Magic commercial product, but stick with version 7 which works well as long as it is on a hard disk. Version 8 of Partition Magic doesn't work well. Neither of them work with USB connected drives even though Version 8 claims to do so. But, gpartd does also work with USB drives. After shrinking the MS slice, then create a second bootable slice - which they call a primary partition. It may complain a bit about having two primary partitions, but don't worry about that. Also, make sure the MS-XP slice is first on the drive. It gets confused if it is not the first bootable slice on the drive. FreeBSD is happy to boot from wherever you tell it. One small and esotheric exception is that some hardware companies such as Dell and HP, put a diagnostic slice (primary partition) in front of MS-Win on the disk. But they get around it by marking it as a 'hidden' primary partition so MS MBRs do not 'see' it and just ignore it. (But FreeBSD MBRs do see it and usually label it as ??? in the menu, leaving you to ignore it) So, leave that hardware maintenance slice where it is, have the MS-XP slice next followed by the FreeBSD slice and, if you find it useful, an additional small slice that you make in to a FAT32 type. If the MS-XP slice is NTFS, it is handy to have a FA32 type slice around to use to transfer files between MS and FreeBSD.Four or five GB should be plenty depending on your usage. Alternatively, if you have shrunk the MS slice down below the max size for Fat32, then you can just convert the NTFS system to FAT32. I don't remember if gpartd will do that, but Partition Magic (version 7) will do it nicely. That introduces some limitations, plus FAT is not thought to be quite as reliable as NTFS, but I have never had any problem doing that. If you have no need to transfer files between the systems, then it is a moot point and don't bother worrying about this. When you get done with all this, everything will look just the same to the MS-XP machine, except it will have less disk space. FreeBSD will see all those slices. Presuming all those slices I mentioned, they will be identified as follows. /dev/ad0s1 - Maintenance slice /dev/ad0s2 - XP slice (either NTFS or FAT32) /dev/ad0s3 - FreeBSD slice /dev/ad0s4 - Extra file transfer FAT32 slice Or, without the extras, it would be: /dev/ad0s1 - XP slice (either NTFS or FAT32) /dev/ad0s2 - FreeBSD slice That is for ATA or SATA drives. SCSI or SAS drives would be named /dev/da0... Once you have this slice creation done, just boot the sysinstall CD and install FreeBSD to the FreeBSD slice you created. It should see those slices and only write to the one you specify. Make it write the FreeBSD MBR (the MS MBR won't work) and select the option for making the slice bootable, just like you would if installing FreeBSD by itself on the disk. Everything else is just like a normal install. Note: Of course, the total size you have to deal with when you do the partitioning in to a for /, b for swap, d for whatever, etc will be the size of the slice you made for FreeBSD, not the size of the disk itself. Then when you boot, you will see a menu that asks you to select which bootable slice to boot and you specify it using the 'F' keys eg F1, F2, F3 and it should look something like this. F1 - ??? F2 - MS-DOS(or ??? if NTFS) F3 - FreeBSD If you make that extra file transfer FAT32 slice, do not mark that as bootable and it should not show up in the menu. But the maintenance slice will show up as F1 - ??? if you have one. Have fun, jerry Thanks, tsai -- tsai ___ 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: Slow startup of Gnome - error from gnome-keyring-daemon
On Thu, Jan 15, 2009 at 06:56:13AM +1300, Jonathan Chen wrote: The obvious question is: Have you got hald running? Make sure your /etc/rc.conf has: gnome_enable=YES Hi, Didn't know that I need 'gnome_enable=YES' in my /etc/rc.conf. At least the handbook doesn't mention it, so coming from earlier releases of FreeBSD I didn't know this. Thanks for the hint! -ewald ___ 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: kernel configuration
On Wed, Jan 14, 2009 at 04:37:53PM +0100, icemaca wrote: this i386 version has cpu I486_CPU cpu I586_CPU cpu I686_CPU Basically you can comment all but I686_CPU since the others are for earlier x86 architectures. -ewald ___ 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: Performing installed ports upgrade / leaving some software intact
Zbigniew Szalbot wrote: Dear all, I am now full into planning the 7.0-RELEASE to 7.1-RELEASE upgrade. I know that at the end of the day it will also mean upgrading all ports (portupgrade -af). I have one port - mailman - which I have customized a lot and do not really want to upgrade it as it will most likely mean I will have to hack a few files again. What options do I have so that I do not break the setup? I am thinking of: 1/ backing up the hacked files and restoring them later (but I will overwrite the newer files with older ones perhaps breaking something). 2/ making them read only (but the end result will be the same and upgrading as root I will overwrite them anyway). And that would be it. My wisdom ends here. Is there any option to survive the ports upgrade? :) If not, I guess I will just have to hack Mailman files again after the upgrade... Can you verify that the original copy of the files you've hacked have indeed been modified in the upgraded version? Perhaps you could download the source for both the new version in ports, and the original version, and find out exactly what, if any changes have been made to your modified files. Steve ___ 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
Help! locate.code /tmp: filesystem full
Hi, I'm getting an error message every week and I can't seem to understand why nor manage to fix it. Here it is: #dmesg [snip] pid 54753 (locate.code), uid 65534 inumber 23557 on /tmp: filesystem full # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ar0s1a989M 53M857M 6%/ devfs 1.0K1.0K 0B 100%/dev /dev/ar0s1g 48G8.5G 36G19%/backup /dev/ar0s1d989M 44K910M 0%/tmp /dev/ar0s1f387G168G189G47%/usr /dev/ar0s1e7.7G398M6.7G 5%/var As you see there's 910MB free space in /tmp. Should be plenty to run the weekly locate script? # uname -a FreeBSD host.domain.com 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #5: Sat Jan 12 03:20:02 CET 2008 r...@host.domain.com:/usr/obj/usr/src/sys/MYOWN i386 Does anyone have a suggestion what I can do to fix this problem? Thanks a lot! Best, Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD USB Install
On Fri, Jan 9, 2009 at 10:43 AM, Brian McCann bjmcc...@gmail.com wrote: Well this just got a LOT more frustrating and interesting. I made a stick following those directions using a new stick...worked fine, booted off of it...did some work on it...somehow the filesystem got very corrupted in one of various things I was doing to it (I think it was when I accidentially unplugged it before running a sync and umount). I figured it'd just be easier to start over and build it again from scratch. So...I try to newfs it (newfs -U -L FreeBSDStick /dev/da1s1a, and newfs fails with cg 0: bad magic number . Now I'm really getting pissed. So...I run a dd (dd if=/dev/zero of=/dev/da1 bs=1m), and do the whole thing over...here's the console output: umm# dd if=/dev/zero of=/dev/da1 bs=1m dd: /dev/da1: short write on character device dd: /dev/da1: end of device 3830+0 records in 3829+1 records out 4016045568 bytes transferred in 4324.380202 secs (928699 bytes/sec) umm# fdisk -BI /dev/da1 *** Working on device /dev/da1 *** fdisk: invalid fdisk partition table found fdisk: Geom not found: da1 umm# bsdlabel -B -w da1s1 umm# newfs -U -L FreeBSDStick /dev/da1s1a /dev/da1s1a: 3827.9MB (7839640 sectors) block size 16384, fragment size 2048 using 21 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. with soft updates super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 7527200 cg 0: bad magic number So now I'm getting seriously ticked off. Anyone have any ideas what the heck could be causing this? This thumb drive was working fine with FreeBSD! I'm trying a dd on a thumb drive w/o specifying a block size / BS...we'll see what that does...but I'm still open to suggestions since I'm just about out of ideas. Thanks! --Brian To the list of things tried...add formatting the USB stick with the HDD Low Level Format Tool (http://hddguru.com/content/en/software/2006.04.12-HDD-Low-Level-Format-Tool/). Still no joy... For those following along at home, I found the cause of my problems. It apparently all came down to the machine I was making the stick on. Any machine that had an Intel SCB2 motherboard in it, would screw it up. I switched to using a different newer machine, re-did the directions at http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2 , and all my problems with it went away. YAY!!! Thanks to all those who provided input. Long live FreeBSD! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ 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: receiving mail
On Jan 13, 2009, at 11:51 PM, Pieter Donche wrote: on host1: $ host -t MX macos.cmi.ua.ac.be returns no answer It is recommended to configure MX records for the domains in DNS, but mail will fall back to using A records if no MX records exist. But, when I try from host1 $ telnet host2.domain.topdom 25 Trying 143.129.75.1... telnet: Unable to connect to remote host: Connection refused Op host2.domain.topdom I see sendmail is running: host2: $ ps -jaxw | grep sendm smmsp 816 1 816 8160 Is??0:00.02 sendmail: Queue run...@00:30:00 for /var/spool/clientmqueue (sendmail) root812 1 812 8120 Ss??0:00.01 sendmail: accepting connections (sendmail) What's wrong? Why does this not work out of the box ?? Given the security history of sendmail, it's not prudent to enable sendmail by default. Those two processes are the client mqueue runner and probably a daemon listening only on localhost rather than on all interfaces. There is a minimum level of effort required to set up mail properly; at the least, read /etc/mail/README and set: sendmail_enable=YES ...in /etc/rc.conf. I expect to deal with sendmail for as long as I administer Unix boxes, but alternatives like Postfix in particular would be my preference from a number of standpoints. Regards, -- -Chuck ___ 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: Performing installed ports upgrade / leaving some software intact
On Wed, Jan 14, 2009 at 07:03:02PM +0100, Zbigniew Szalbot wrote: Dear all, I am now full into planning the 7.0-RELEASE to 7.1-RELEASE upgrade. I know that at the end of the day it will also mean upgrading all ports (portupgrade -af). Not necessarily. Upgrading all ports is only mandatory after a major version update, e.g. from 6.x to 7.x because of changed shared library versions. A point release should not affect shared library versions. Personally, I like to keep the ports on my desktop updated every other week or so, depending on if I see something interesting on freshports... I have one port - mailman - which I have customized a lot and do not really want to upgrade it as it will most likely mean I will have to hack a few files again. What options do I have so that I do not break the setup? I am thinking of: 1/ backing up the hacked files and restoring them later (but I will overwrite the newer files with older ones perhaps breaking something). You should merge any differences by hand instead of overwriting them. 'diff -u' is your friend there. 2/ making them read only (but the end result will be the same and upgrading as root I will overwrite them anyway). 'chflags schg,sunlnk files' (as root) will do the trick. Even root cannot overwrite these without removing the flags. And that would be it. My wisdom ends here. Is there any option to survive the ports upgrade? :) Touch /var/db/pkg/mailman/+IGNOREME. This should make both portmaster and portupgrade leave this port alone. If not, I guess I will just have to hack Mailman files again after the upgrade... Or see if you can get your changes comitted upstream. Maybe as OPTIONS? Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp6T2lWu2KuF.pgp Description: PGP signature
Re: Help! locate.code /tmp: filesystem full
On Wed, Jan 14, 2009 at 1:34 PM, Andy Wodfer wod...@gmail.com wrote: Hi, I'm getting an error message every week and I can't seem to understand why nor manage to fix it. Here it is: [snip] # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ar0s1a989M 53M857M 6%/ devfs 1.0K1.0K 0B 100%/dev /dev/ar0s1g 48G8.5G 36G19%/backup /dev/ar0s1d989M 44K910M 0%/tmp /dev/ar0s1f387G168G189G47%/usr /dev/ar0s1e7.7G398M6.7G 5%/var As you see there's 910MB free space in /tmp. Should be plenty to run the weekly locate script? Have you recently had disk failures? When was your last `fsck' ? What is the output of `du -h /tmp' ? To rule out if 910M is not enough, you could `mv' /tmp to /tmp.bak and do a hard link pointing a new /tmp somewhere with more space, for example /usr/faketmp. I don't know how this will affect fstab or mount, however. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: freebsd-update doesn't seem to update to Latest
Reading the handbook and several pages on the web, i got the impression that ports are always compiled from source. I should have read the handbook more thorougly, sorry. It mentions portupgrade -P. -Original Message- From: Erik Osterholm [mailto:freebsd-lists-e...@erikosterholm.org] Sent: Tue 1/13/2009 11:01 PM To: Sebastian Setzer Subject: Re: freebsd-update doesn't seem to update to Latest On Tue, Jan 13, 2009 at 09:47:33PM +0100, Sebastian Setzer wrote: Hi, I did a freebsd-update to 7.1-RELEASE as described in the release notes. After that, I installed Openoffice (with pkg_add) and got several warnings like this one: pkg_add: warning: package 'gnome-vfs-2.22.0_2' requires 'atk-1.22.0_1', but 'atk-1.20.0' is installed Now I did # pkg_add -r atk pkg_add: package 'atk-1.22.0_1' or its older version already installed so with pkg_add -r I get newer packages than I got with freebsd-update. Why? freebsd-update only updates the base system. It doesn't touch ports. Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Slow startup of Gnome - error from gnome-keyring-daemon
On Wed, Jan 14, 2009 at 07:13:36PM +0100, Ewald Jenisch wrote: On Thu, Jan 15, 2009 at 06:56:13AM +1300, Jonathan Chen wrote: The obvious question is: Have you got hald running? Make sure your /etc/rc.conf has: gnome_enable=YES Hi, Didn't know that I need 'gnome_enable=YES' in my /etc/rc.conf. This is a shorthand for starting a set of (possibly annoying) services required by GNOME. -- Jonathan Chen j...@chen.org.nz -- Only the meek get pinched. The bold survive. - Ferris Bueller ___ 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: kernel configuration
On Jan 14, 2009, at 10:15 AM, Ewald Jenisch wrote: On Wed, Jan 14, 2009 at 04:37:53PM +0100, icemaca wrote: this i386 version has cpu I486_CPU cpu I586_CPU cpu I686_CPU Basically you can comment all but I686_CPU since the others are for earlier x86 architectures. While it is true that you can comment out all but i686 and get a working kernel, you will experience reduced performance. There are a number of low-level assembly routines (cf sys/i386/i386/support.s such as i586_bcopy) that are conditionalized off of I586_CPU only, even though they provide an advantage on i686 platforms also. -- -Chuck ___ 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: Should swap space be mirrored via geom?
On Jan 14, 2009, at 8:04 AM, Peter Steele wrote: We have been debating whether or we should mirror the swap partitions as well. I set it up not mirrored based on some articles I read on the net, but we're concerned what might happen to a system if a drive died at a time when the its swap partition contained active pages. My first reaction would be that the applications bound to these pages would crash, something that would not happen if we used swap mirroring. If you don't mirror swap space, and a drive goes out, you're almost certain to experience a kernel panic and not just application failures in userland. Unless you have an urgent need for lots of swap space available, it's much better from the standpoint of system reliability to mirror swap also. Regards, -- -Chuck ___ 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: sysctl machdep.independent_wallclock
2009/1/14 Mister Olli mister.o...@googlemail.com hi... what is the exact function of this sysctl setting? I'm guessing it's something to do with Xen, having seen a few references in Linux for xen.machdep.independent_wallclock. Have a look here: http://docs.xensource.com/XenServer/4.0.1/guest/ch04s06.html I couldn't find any documentation on it. greetz olli ___ 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: kernel configuration
On Wed, Jan 14, 2009 at 9:18 PM, Chuck Swiger cswi...@mac.com wrote: On Jan 14, 2009, at 10:15 AM, Ewald Jenisch wrote: On Wed, Jan 14, 2009 at 04:37:53PM +0100, icemaca wrote: this i386 version has cpu I486_CPU cpu I586_CPU cpu I686_CPU Basically you can comment all but I686_CPU since the others are for earlier x86 architectures. While it is true that you can comment out all but i686 and get a working kernel, you will experience reduced performance. There are a number of low-level assembly routines (cf sys/i386/i386/support.s such as i586_bcopy) that are conditionalized off of I586_CPU only, even though they provide an advantage on i686 platforms also. -- -Chuck so in any case it doesn't hurt to leave all 3. right? I have one last question though, is makeoptions DEBUG=g necessary if i am not debugging or is it always necessary to build the kernel properly? can i safely comment it out? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Slow startup of Gnome - error from gnome-keyring-daemon
On Wed, Jan 14, 2009 at 7:13 PM, Ewald Jenisch a...@jenisch.at wrote: On Thu, Jan 15, 2009 at 06:56:13AM +1300, Jonathan Chen wrote: The obvious question is: Have you got hald running? Make sure your /etc/rc.conf has: gnome_enable=YES Hi, Didn't know that I need 'gnome_enable=YES' in my /etc/rc.conf. At least the handbook doesn't mention it, so coming from earlier releases of FreeBSD I didn't know this. it's at freebsd gnome, not handbook . here http://www.freebsd.org/gnome/docs/faq2.html there are some other usefull stuff there regards ___ 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
gvinum gjournal
Hi all. I'm cross-posting this since I figure I'll have better luck finding someone who's done this before... I'm building a system that has 4 1.5TB Seagate SATA drives in it. I've setup gvinum and made mirrors for my OS partitions, and a raid5 plex for a big data partition. I'm trying to get gjournal to run on the raid5 volume...but it's doing stuff that isn't expected. First, here's my gvinum config for the array: ---snip--- drive e0 device /dev/ad8s1g drive e1 device /dev/ad10s1g drive e2 device /dev/ad12s1g drive e3 device /dev/ad14s1g volume array1 plex org raid5 128k sd drive e0 sd drive e1 sd drive e2 sd drive e3 ---/snip--- Now...according to the handbook. the volume it creates is essentially a disk drive. So...I run the following gjournal commands to make the journal, and here's what I get: ---snip--- # gjournal label /dev/gvinum/array1 GEOM_JOURNAL: Journal 4267655417: gvinum/plex/array1.p0 contains data. GEOM_JOURNAL: Journal 4267655417: gvinum/plex/array1.p0 contains journal. GEOM_JOURNAL: Journal gvinum/plex/array1.p0 clean. GEOM_JOURNAL: BIO_FLUSH not supported by gvinum/plex/array1.p0. # gjournal list Geom name: gjournal 4267655417 ID: 4267655417 Providers: 1. Name: gvinum/plex/array1.p0.journal Mediasize: 4477282549248 (4.1T) Sectorsize: 512 Mode: r0w0e0 Consumers: 1. Name: gvinum/plex/array1.p0 Mediasize: 4478356291584 (4.1T) Sectorsize: 512 Mode: r1w1e1 Jend: 4478356291072 Jstart: 4477282549248 Role: Data,Journal --/snip--- So...why is it even touching the plex p0? I figured it would, just like on a disk, if I gave it da0, create da0.journal. Moving on, if I try to newfs the journal, which is now gvinum/plex/array1.p0.journal, I get: ---snip--- # newfs -J /dev/gvinum/plex/array1.p0.journal /dev/gvinum/plex/array1.p0.journal: 4269869.4MB (8744692476 sectors) block size 16384, fragment size 2048 using 23236 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. newfs: can't read old UFS1 superblock: end of file from block device: No such file or directory ---/snip--- Followed by a panic and reboot: ---snip--- Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0d8d440 stack pointer = 0x28:0xd4e25c44 frame pointer = 0x28:0xd4e25cf4 code segment= base 0x0, limit 0xf, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags= interrupt enabled, resume, IOPL = 0 current process = 47 (gv_p array1.p0) trap number = 12 panic: page fault cpuid = 0 Uptime: 14m38s Cannot dump. No dump device defined. Automatic reboot in 15 seconds - press a key on the console to abort ---/snip--- Next...I destroyed/cleared/stoped/etc the journal to start fresh, made a new one...it created the same thing (gvinum/plex/array1.p0.journal)...I then rebooted, loaded the gjournal module, and I now see gvinum/array1.journal as the provider, and the provider inside plex is gone. I then run my newfs (newfs -J /dev/gvinum/array1.journal) , and I get ---snip--- Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x1c fault code = supervisor read, page not present instruction pointer = 0x20:0xc0d8eec5 stack pointer = 0x28:0xd4e2ecbc frame pointer = 0x28:0xd4e2ecf4 code segment= base 0x0, limit 0xf, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags= interrupt enabled, resume, IOPL = 0 current process = 50 (gv_v array1) trap number = 12 panic: page fault cpuid = 0 Uptime: 8m18s Cannot dump. No dump device defined. Automatic reboot in 15 seconds - press a key on the console to abort ---/snip--- Does anyone have any ideas here? I assumed gjournal would play nice with any file system. But clearly not. After I clear the journal off of /dev/gvinum/array1, I can do a newfs on it (/dev/gvinum/array1) without the journal fine...so that tests that the RAID5 is ok. Anyone havve any ideas? Thanks! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ 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: kernel configuration
On Jan 14, 2009, at 12:44 PM, t-u-t wrote: While it is true that you can comment out all but i686 and get a working kernel, you will experience reduced performance. There are a number of low-level assembly routines (cf sys/i386/i386/support.s such as i586_bcopy) that are conditionalized off of I586_CPU only, even though they provide an advantage on i686 platforms also. -- -Chuck so in any case it doesn't hurt to leave all 3. right? Certainly it doesn't hurt. As far as I can tell, leaving 486 option increases the kernel size (very) slightly but there doesn't seem to be many things optimized for 486 which don't have better equivalents coded for 586 or 686. Leaving out the 586 option would not be desirable AFAICT I have one last question though, is makeoptions DEBUG=g necessary if i am not debugging or is it always necessary to build the kernel properly? can i safely comment it out? It can be commented out safely, yes. Regards, -- -Chuck ___ 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: howto determine network device unit number? device.hints?
-Original Message- From: H.fazaeli [mailto:faza...@sepehrs.com] Sent: Wednesday, January 14, 2009 6:24 PM To: Yony Yossef Cc: freebsd-...@freebsd.org; freebsd-questions@freebsd.org; Eitan Shefi; Oleg Kats; Liran Liss Subject: Re: howto determine network device unit number? device.hints? you may not change unit numbers as they are strictly controlled by kernel. However, on freebsd 5.3+, you may use 'ifconfig name your-name-here' to achieve the same affect Sorry, I don't understand the usage of ifconfig you suggested and the effect it will cause. Can you please explain it? Yony Yony Yossef wrote: Hi, I would like to determine the unit number of my network cards, e.g. make the device on pci0:16 be assigned every time with unit number 0 and pci0:19 with unit number 1. Is it done by /boot/device.hints? if so, how? My cards are: mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 chip=0x636815b3 rev=0xa0 hdr=0x00 mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 chip=0x636815b3 rev=0xa0 hdr=0x00 So I've tried: hint.mtnic.0.at=pci0:16 hint.mtnic.1.at=pci0:19 but it doesn't work. They keep switching arbitrarily. I'm using FreeBSD 7.0. Thanks Yony ___ 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 -- Best regards. Hooman Fazaeli h...@sepehrs.com Sepehr S. T. Co. Ltd. Web: http://www.sepehrs.com Tel: (9821)88975701-2 Fax: (9821)88983352 ___ 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
Can't ignore anything with logcheck
Hello! For many years I've been using the security/logcheck port for monitoring my system logs. Majority of this time it's been logcheck 1.1.1, but now I installed a new server and with it came my first experience with logcheck 1.2.54 which now seems to be maintained by Debian. The configuration has changed quite thoroughly, but I have no problem with that, if only I could get it all to work... The short summary of my problem is that I can't get logcheck to ignore any messages that I don't want reported. In my case these messages appear under System Events section in the logfile, so my understanding is that putting the matching regexes into ignore.d.server/local should filter them out. But it doesn't. I've verified all my regexes with egrep as directed in logcheck documentation and they are processed correctly. I've tried running 'logcheck -d' from command line and it seems to process all the configuration files (including my local rules file), but it doesn't give me any indication why it chooses to ignore my regexes. At this point my question is whether anyone at all has gotten this to work on FreeBSD or should I start looking for a replacement for logcheck (recommendations welcome)? -- Toomas Aas ... Bugs are Sons of Glitches! ___ 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: gvinum gjournal
On Wed, Jan 14, 2009 at 4:23 PM, Brian McCann bjmcc...@gmail.com wrote: Does anyone have any ideas here? I assumed gjournal would play nice with any file system. But clearly not. After I clear the journal off of /dev/gvinum/array1, I can do a newfs on it (/dev/gvinum/array1) without the journal fine...so that tests that the RAID5 is ok. Anyone havve any ideas? Thanks! --Brian I also just got the idea to try turning off write caching on the ata controller...no help. Just thought I'd drop that out there if that clues in on something. --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freebsd encrypted hard disk?
On Wed, 14 Jan 2009 12:23:09 -0500 Johann Hasselbach jhas...@gmail.com wrote: I read the encrypting disk partitions section of the Handbook. What is the preferred method nowdays, geli or gbde? Geli. Geli is more secure when used with real-world passphrases, supports hardware acceleration, and is faster, with or without out it. As I understand it, geli is also more reliable due to some operations being non-atomic in gdbe and atomic in geli. ___ 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: Flash for FreeBSD - GNOME - Firefox
Hi Grant, here is a full description how to do that: http://freebsd.langhans.com.pl Cheers herbs On Wed, 14 Jan 2009 09:25:10 -0500 Grant Peel gp...@thenetnow.com wrote: Hi all, Is there a port that emulates Adobe Flash? i.e. Adobe's download site says 'Platform not supported' is there a port or package thats can be used to view Flash content in Firefox? -Grant ___ 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 -- *** Herbert Langhans, Warschau *** Sprachtraining Langhans *** http://www.langhans.com.pl *** herbert.raim...@gmx.net *** 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 freebsd-questions-unsubscr...@freebsd.org
Re: Installing FreeBSD with Windows XP
On Wed, Jan 14, 2009 at 01:05:42PM -0800, tsai wrote: Jerry, You read my mind. That was going to be my next question; how to get around the proprietary recovery section HP installed from the start. You hit the nail on the head! I will try this soon. Yup. Basically, you just ignore it, leave it alone - anyway as long as MS-SP isn't bothered by it. jerry Thanks, tsai On Wed, Jan 14, 2009 at 10:13 AM, Jerry McAllister jerr...@msu.edu wrote: On Wed, Jan 14, 2009 at 06:13:45AM -0800, tsai wrote: Hi all, Is there a tutorial on how to install FreeBSD on a system which already has Windows XP on it? The goal is to have dual-boot with both. The FreeBSD Handbook - free online at the FreeBSD web site - has a whole section on that. It is easy. The machine on which I am typing is dual boot with FreeBSD Win-XP. Basically, you first have to shrink the XP slice (which is called a primary partition in the MS world) to make room for FreeBSD. Probably the best utility for that nowdays is gpartd which is available for free. Just do a little search and then burn a bootable copy of it to a CD. It works with NTFS as well as other MS file system types and some other freeware does not. You can also use the Parition Magic commercial product, but stick with version 7 which works well as long as it is on a hard disk. Version 8 of Partition Magic doesn't work well. Neither of them work with USB connected drives even though Version 8 claims to do so. But, gpartd does also work with USB drives. After shrinking the MS slice, then create a second bootable slice - which they call a primary partition. It may complain a bit about having two primary partitions, but don't worry about that. Also, make sure the MS-XP slice is first on the drive. It gets confused if it is not the first bootable slice on the drive. FreeBSD is happy to boot from wherever you tell it. One small and esotheric exception is that some hardware companies such as Dell and HP, put a diagnostic slice (primary partition) in front of MS-Win on the disk. But they get around it by marking it as a 'hidden' primary partition so MS MBRs do not 'see' it and just ignore it. (But FreeBSD MBRs do see it and usually label it as ??? in the menu, leaving you to ignore it) So, leave that hardware maintenance slice where it is, have the MS-XP slice next followed by the FreeBSD slice and, if you find it useful, an additional small slice that you make in to a FAT32 type. If the MS-XP slice is NTFS, it is handy to have a FA32 type slice around to use to transfer files between MS and FreeBSD.Four or five GB should be plenty depending on your usage. Alternatively, if you have shrunk the MS slice down below the max size for Fat32, then you can just convert the NTFS system to FAT32. I don't remember if gpartd will do that, but Partition Magic (version 7) will do it nicely. That introduces some limitations, plus FAT is not thought to be quite as reliable as NTFS, but I have never had any problem doing that. If you have no need to transfer files between the systems, then it is a moot point and don't bother worrying about this. When you get done with all this, everything will look just the same to the MS-XP machine, except it will have less disk space. FreeBSD will see all those slices. Presuming all those slices I mentioned, they will be identified as follows. /dev/ad0s1 - Maintenance slice /dev/ad0s2 - XP slice (either NTFS or FAT32) /dev/ad0s3 - FreeBSD slice /dev/ad0s4 - Extra file transfer FAT32 slice Or, without the extras, it would be: /dev/ad0s1 - XP slice (either NTFS or FAT32) /dev/ad0s2 - FreeBSD slice That is for ATA or SATA drives. SCSI or SAS drives would be named /dev/da0... Once you have this slice creation done, just boot the sysinstall CD and install FreeBSD to the FreeBSD slice you created. It should see those slices and only write to the one you specify. Make it write the FreeBSD MBR (the MS MBR won't work) and select the option for making the slice bootable, just like you would if installing FreeBSD by itself on the disk. Everything else is just like a normal install. Note: Of course, the total size you have to deal with when you do the partitioning in to a for /, b for swap, d for whatever, etc will be the size of the slice you made for FreeBSD, not the size of the disk itself. Then when you boot, you will see a menu that asks you to select which bootable slice to boot and you specify it using the 'F' keys eg F1, F2, F3 and it should look something like this. F1 - ??? F2 - MS-DOS(or ??? if NTFS) F3 - FreeBSD If you make that extra file transfer FAT32 slice, do not mark that as bootable and it should not show up in the menu. But the maintenance slice will show up as F1 - ??? if
Re: freebsd encrypted hard disk?
On Wed, 14 Jan 2009 18:59:54 +0100 Roland Smith rsm...@xs4all.nl wrote: Geli is convenient and seems to work well. On modern machines the performance penalty is slight. It supports well-regarded encryption algorithms like AES and Blowfish. It depends on what you mean by modern, and slight, on my single-core amd64 2.8G the performance penalty of geli is substantial. Not just in reduced transfer rates, but also in terms of CPU cycles used - a sustained geli to geli file copy makes things really slow for me. I think most people find that filling a disk from /dev/random is slower than from /dev/null, or it at least has an impact on overall performance. And the /dev/random generator stage is AES encryption of a counter so the performance hit against /dev/null should be similar to writing to geli (and in my experience it is). And the faster your disks are, the more cpu speed you need to avoid cpu-limiting. ___ 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: Should swap space be mirrored via geom?
If you don't mirror swap space, and a drive goes out, you're almost certain to experience a kernel panic and not just application failures in userland. Unless you have an urgent need for lots of swap space available, it's much better from the standpoint of system reliability to mirror swap also. That's what we assumed might be the danger. It's pretty obvious when you think about it ultimately and I'm curious why anyone would have suggested not to mirror the swap partition. Thanks for the reply. Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freebsd encrypted hard disk?
On Wed, Jan 14, 2009 at 10:55:38PM +, RW wrote: On Wed, 14 Jan 2009 18:59:54 +0100 Roland Smith rsm...@xs4all.nl wrote: Geli is convenient and seems to work well. On modern machines the performance penalty is slight. It supports well-regarded encryption algorithms like AES and Blowfish. It depends on what you mean by modern, and slight, on my single-core amd64 2.8G the performance penalty of geli is substantial. True for a single-core machine. Not just in reduced transfer rates, but also in terms of CPU cycles used - a sustained geli to geli file copy makes things really slow for me. That's probably because two geli kernel threads are competing for time on a single core. I've had problems with that as well (geli-encrypted USB drive stalling). Since I've switched to a multi-core machine (where the number of cores should be at least equal to the number of geli-encrypted devices), CPU load for gele has dropped to barely noticable. Looking at the machines on sale at local computer stores only the absolute rock-bottom spec-ed machines are single core these days. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpiIy348Q02X.pgp Description: PGP signature
RE: howto determine network device unit number? device.hints?
you may not change unit numbers as they are strictly controlled by kernel. However, on freebsd 5.3+, you may use 'ifconfig name your-name-here' to achieve the same affect Sorry, I don't understand the usage of ifconfig you suggested and the effect it will cause. Can you please explain it? Yony Yony Yossef wrote: Hi, I would like to determine the unit number of my network cards, e.g. make the device on pci0:16 be assigned every time with unit number 0 and pci0:19 with unit number 1. Is it done by /boot/device.hints? if so, how? My cards are: mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 chip=0x636815b3 rev=0xa0 hdr=0x00 mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 chip=0x636815b3 rev=0xa0 hdr=0x00 So I've tried: hint.mtnic.0.at=pci0:16 hint.mtnic.1.at=pci0:19 but it doesn't work. They keep switching arbitrarily. I'm using FreeBSD 7.0. Thanks Yony ___ 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: updating to 7.1 with a small root slice
Zbigniew Szalbot zszal...@gmail.com writes: My main mistake was that I had makeoptionsDEBUG=-g in the kernel config file. That made for a ~130MB kernel so when I compiled and tried to install a new one, it ran out of space (it would be about 260 MB but I only had 242 MB). Many thanks for all you detailed instructions though! % df -h |grep ad0s1 /dev/ad0s1a242M 79M144M35%/ makeoptions DEBUG=-g is not commented out in my kernel conf, but I have added INSTALL_NODEBUG=yes to /etc/src.conf. See /usr/src/UPDATING (entry from 20060118). If required you can find debug/symbols files in /usr/obj. - Herbert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freebsd encrypted hard disk?
On Thu, 15 Jan 2009 00:20:54 +0100 Roland Smith rsm...@xs4all.nl wrote: On Wed, Jan 14, 2009 at 10:55:38PM +, RW wrote: Not just in reduced transfer rates, but also in terms of CPU cycles used - a sustained geli to geli file copy makes things really slow for me. That's probably because two geli kernel threads are competing for time on a single core. I've had problems with that as well (geli-encrypted USB drive stalling). Since I've switched to a multi-core machine (where the number of cores should be at least equal to the number of geli-encrypted devices), CPU load for gele has dropped to barely noticable. I find that puzzling; have you measured that on sustained geli to geli transfers (with GB size files). The reason I'm a bit sceptical is that dd'ing /dev/random to /dev/null runs at about 20MBytes/s on my single core (verses 700MBytes/s for /dev/zero). File copies into geli run at about 15Mbytes/s, openssl enc -aes-256-cbs runs at about the same ballpark figure. Even if I had multi-cores I would still be cpu-limited to 20MB/s, and that would fully occupy two cores on geli to geli transfers. Your cores are probably faster, but I'd expect a factor of two or so would be swallowed-up by faster transfers. I don't see how cpu usage would be negligible unless your individual cores are an order of magnitude faster than that. Just out of curiosity what rate do you get on dd if=/dev/random of=/dev/null bs=64k count=1 Looking at the machines on sale at local computer stores only the absolute rock-bottom spec-ed machines are single core these days. My guess is that you really need quad cores for best performance, so you avoid having all cores in geli. ___ 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
Very slow boot process (from installation disk), followed by kernel panic
Hi, I'm trying to install FreeBSD on my HP Pavilion (AMD Phenom 8650 Triple Core 2.3 GHz, Hitachi SCSI disk drive, booting from ATAPI DVD ROM). I am booting with verbose logging turned on. When the boot process reaches the line Mounting root from ufs:/dev/md0c a series of messages saying t_delta [long number] too short/too long appear for several minutes. When /stand/sysinstall running as init on vty0 is finally reached, more of the messages appear. Finally, sysinstall is started, but keyboard response is very slow. After, a few minutes a kernel panic occurs spin lock held too long and the computer reboots. I've seen bug reports with this sort of kernel panic, but not during installation. Thanks in advance, Zach ___ 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: receiving mail
On Jan 14, 2009, at 1:02 PM, Chuck Swiger wrote: On Jan 13, 2009, at 11:51 PM, Pieter Donche wrote: What's wrong? Why does this not work out of the box ?? Given the security history of sendmail, it's not prudent to enable sendmail by default. It's not just that, but people who don't understand how mail transport works, shouldn't be running mail servers. I expect to deal with sendmail for as long as I administer Unix boxes, but alternatives like Postfix in particular would be my preference from a number of standpoints. I'm in the same position. I starting running alternatives to sendmail in the late 90s on systems that I knew I was always going to maintain, but for systems that would be passed to others to maintain, I stuck with installing sendmail because there was much more expertise. Now a- days, I'm happy to set up Postfix on such systems (but will still use exim for myself). Cheers, -j ___ 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: Performing installed ports upgrade / leaving some software intact
On Jan 14, 2009, at 12:03 PM, Zbigniew Szalbot wrote: 1/ backing up the hacked [mailman] files and restoring them later (but I will overwrite the newer files with older ones perhaps breaking something). 2/ making them read only (but the end result will be the same and upgrading as root I will overwrite them anyway). Keep in mind mailman is all python. There really is nothing to recompile after a system upgrade. (Unless you are upgrading python which you aren't). Cheers, -j ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7, how to recieve internet mail
Pieter Donche wrote: On FreeBSD 7, out of the box, one can send mail to internet destinations and can send mail locally from one user to another user on the same FreeeBSD machine But it can't receive mail from internet as it appears .. A sendmail is running freebsd7box# ps -jaxw | grep sendmail smmsp 26649 1 26649 266490 Is??0:00.00 sendmail: Queue run...@00:30:00 for /var/spool/clientmqueue (sendmail) root 26651 1 26651 266510 Ss??0:00.04 sendmail: accepting connections (sendmail) The machine is listening on port 25 freebsd7box# netstat -na | grep 25 tcp4 0 0 127.0.0.1.25 *.*LISTEN But telnettting the freebsd box with its own ip address at port 25 from the root account of the box freebsd7box# telnet 143.129.75.1 25 Trying 143.129.75.1... telnet: connect to address 143.129.75.1: Connection refused The only thing that works is freebsd7box# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. ... How do I make the FreeBSD7 box accept connections to port 25 from all of the internet ?? ___ 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 Your problem is not with sendmail but with your understanding of how email works. You need your own registered domain name pointing to the ip address assigned by your isp that is used by your freebsd system running your public sendmail program. Or if you use your isp domain name for your email then you need to add the fetchmail program to your freebsd system to get your eamil from your isp and hand it off to sendmail for queing on your system. The 'Freebsd install guide' at www.a1poweruser.com has section explaining this subject in detail. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD USB Install
Brian McCann wrote: On Fri, Jan 9, 2009 at 10:43 AM, Brian McCann bjmcc...@gmail.com wrote: Well this just got a LOT more frustrating and interesting. I made a stick following those directions using a new stick...worked fine, booted off of it...did some work on it...somehow the filesystem got very corrupted in one of various things I was doing to it (I think it was when I accidentially unplugged it before running a sync and umount). I figured it'd just be easier to start over and build it again from scratch. So...I try to newfs it (newfs -U -L FreeBSDStick /dev/da1s1a, and newfs fails with cg 0: bad magic number . Now I'm really getting pissed. So...I run a dd (dd if=/dev/zero of=/dev/da1 bs=1m), and do the whole thing over...here's the console output: umm# dd if=/dev/zero of=/dev/da1 bs=1m dd: /dev/da1: short write on character device dd: /dev/da1: end of device 3830+0 records in 3829+1 records out 4016045568 bytes transferred in 4324.380202 secs (928699 bytes/sec) umm# fdisk -BI /dev/da1 *** Working on device /dev/da1 *** fdisk: invalid fdisk partition table found fdisk: Geom not found: da1 umm# bsdlabel -B -w da1s1 umm# newfs -U -L FreeBSDStick /dev/da1s1a /dev/da1s1a: 3827.9MB (7839640 sectors) block size 16384, fragment size 2048 using 21 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. with soft updates super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 7527200 cg 0: bad magic number So now I'm getting seriously ticked off. Anyone have any ideas what the heck could be causing this? This thumb drive was working fine with FreeBSD! I'm trying a dd on a thumb drive w/o specifying a block size / BS...we'll see what that does...but I'm still open to suggestions since I'm just about out of ideas. Thanks! --Brian To the list of things tried...add formatting the USB stick with the HDD Low Level Format Tool (http://hddguru.com/content/en/software/2006.04.12-HDD-Low-Level-Format-Tool/). Still no joy... For those following along at home, I found the cause of my problems. It apparently all came down to the machine I was making the stick on. Any machine that had an Intel SCB2 motherboard in it, would screw it up. I switched to using a different newer machine, re-did the directions at http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2 , and all my problems with it went away. YAY!!! Thanks to all those who provided input. Long live FreeBSD! --Brian Your link to the instructions is dead. ___ 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
Launching Vim
Can someone give me a heads up on this. I just installed vim, but when I try to launch the program I get this error message: /libexec/ld-elf.so.1: Shared object libperl.so not found, required by vim Is this a path problem? The actual file libperl.so recides in /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so TIA... Rem ___ 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
mythtv port
Has the mythtv port been fixed yet? Any timetable for a new release? The current port makefile indicates that it is broken. ___ 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: Help! locate.code /tmp: filesystem full
On 01/14/2009 10:34 AM, Andy Wodfer wrote: Hi, I'm getting an error message every week and I can't seem to understand why nor manage to fix it. Here it is: #dmesg [snip] pid 54753 (locate.code), uid 65534 inumber 23557 on /tmp: filesystem full # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ar0s1a989M 53M857M 6%/ devfs 1.0K1.0K 0B 100%/dev /dev/ar0s1g 48G8.5G 36G19%/backup /dev/ar0s1d989M 44K910M 0%/tmp /dev/ar0s1f387G168G189G47%/usr /dev/ar0s1e7.7G398M6.7G 5%/var As you see there's 910MB free space in /tmp. Should be plenty to run the weekly locate script? [...] What is the output of 'df -i /tmp'? -- Benjamin Lee http://www.b1c1l1.com/ signature.asc Description: OpenPGP digital signature
Re: Mounting a partition from freebsd 6.2?
It was /dev/ad2s1. I was able to do a force mount of the partition though and started recovering the information I was looking for. I am not sure why it is not allowing it in general but I have access to most of the files right now which is good. Has anybody had any problems with 6.2 formatted partitions not wanting to mount in 7? On Tue, Jan 13, 2009 at 7:45 AM, Jerry McAllister jerr...@msu.edu wrote: On Tue, Jan 13, 2009 at 12:06:25AM -0800, per...@pluto.rain.com wrote: is there anything specific I should look at for switches or just dump /dev/ad2s1 | restore? Use:dump 0af - | restore -rf - It would be advisable to read the dump and restore manpages first. In 6.1, and I suspect still in 6.2, restore -r should be used only when restoring onto an empty filesystem or loading an incremental on top of such a full restore. If the destination (current directory) is not the root of an empty filesystem, you want restore -x or restore -i instead. I think he was talking about a full filesystem restore in which case 'restore -rf' would be correct. The man page actually is a tiny bit misleading on the -r. You can use it to restore the whole filesystem in any dedicated space including any directory. But with -r you just cannot specify which part of the filesystem you want to restore, such as a particular directory or file. For that you will need -xf which will work for a full filesystem too in most cases. jerry ___ 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: Blocking very many (tens of thousands) ip addresses in ipfw
Is this kind of thing doable with PF or really a ipfw thing more? On Wed, Jan 14, 2009 at 9:13 AM, Steve Bertrand st...@ibctech.ca wrote: Pieter de Goeje wrote: On Wednesday 14 January 2009 17:23:25 Artem Kuchin wrote: I need to block around 15 ip addreses from acccess the server at all at any port. The addesses are random, they are not nets. These are the spammer i want to block for 24 hours. The list is dynamically generated and regenerated every hour or so. What is the most efficient way to do it? At first i thought doing ipfw rules using 5 ips per rule, that would result in 3 rules! This will be too slow! I need to something really quick and smart. Like matching the first number from ip (195 from 192.1.2.3), if it does not match - skip, if it does - compare the next one and so on. Quoting ipfw(8): LOOKUP TABLES Lookup tables are useful to handle large sparse address sets, typically from a hundred to several thousands of entries. There may be up to 128 different lookup tables, numbered 0 to 127. net.inet.ip.fw.dyn_buckets should probably also be increased to efficiently handle 150k IPs. Please correct me if I'm wrong, but if the OP is going to drop all traffic immediately from the 150k IPs, then dyn_buckets shouldn't come into play, as there is no dynamic rule generated. Steve ___ 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
Can't install from ports
Boy, this hasn't been a good night. I am unable to install from ports. When I attempt to do a compile I get this error message: 1 open conditional: at line 131 (evaluated to true) make: fatal errors encountered -- cannot continue This is a first for me. Rem ___ 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: Launching Vim
On Jan 14, 2009, at 9:39 PM, Rem P Roberti wrote: Can someone give me a heads up on this. I just installed vim, but when I try to launch the program I get this error message: /libexec/ld-elf.so.1: Shared object libperl.so not found, required by vim Is this a path problem? The actual file libperl.so recides in /usr/ local/lib/perl5/5.8.9/mach/CORE/libperl.so I take it that you also recently upgraded perl. Did you follow the instructions in /usr/ports/UPDATING regarding perl? I'm not sure that this will solve your problem, but it might. Cheers, -j ___ 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: Launching Vim
On Jan 14, 2009, at 9:39 PM, Rem P Roberti wrote: Can someone give me a heads up on this. I just installed vim, but when I try to launch the program I get this error message: /libexec/ld-elf.so.1: Shared object libperl.so not found, required by vim Is this a path problem? The actual file libperl.so recides in /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so I take it that you also recently upgraded perl. Did you follow the instructions in /usr/ports/UPDATING regarding perl? I'm not sure that this will solve your problem, but it might. Cheers, -j Oops...haven't checked UPDATING. I'll get on that now. Thanks. Rem ___ 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: Launching Vim
On Jan 14, 2009, at 9:39 PM, Rem P Roberti wrote: Can someone give me a heads up on this. I just installed vim, but when I try to launch the program I get this error message: /libexec/ld-elf.so.1: Shared object libperl.so not found, required by vim Is this a path problem? The actual file libperl.so recides in /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so I take it that you also recently upgraded perl. Did you follow the instructions in /usr/ports/UPDATING regarding perl? I'm not sure that this will solve your problem, but it might. Cheers, -j Oops...haven't checked UPDATING. I'll get on that now. Thanks. Rem Well...I checked UPDATING and ran the perl script referenced, and vim isn't one of the affected programs. So still have the problem. Rem ___ 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/ports/databases/dbf segmentation fault
Hi; Problem solved - the source dbf file is somehow corrupted when downloaded from an NT server to a PPC G4 Mac over a Microsoft RDC client connection. This is a repeatable result. Used rdesktop to download the files directly onto the trusty FreeBSD machine and it works fine that way. Cheers, Tom On 10/01/2009, at 12:16 PM, Tom Mende wrote: Hi; Hoping for some help on this application that converts dbf files into csv format. I'm not sure if the problem is with the source dbf file ... my usage / syntax ... and/or something else... BACKGROUND... uname -rs FreeBSD 7.0-RELEASE dbf --version dBase Reader and Converter V. 0.8.3.1, (c) 2002 - 2004 by Bjoern Berg ...intalled as a port from /usr/ports/databases/dbf ...make install clean ...chmod 777 cardfile.dbf # to avoid permissions problems ls -l cardfile* -rwxrwxrwx 1 tom tom 549139 Jan 9 18:32 cardfile.dbf dbf --view-info ~/cardfile.dbf -- File statistics dBase version.: Visual FoxPro (without memo) Date of last update...: 1908-12-15 Number of records.: 625 (0271d) Length of header..: 2888 (0b48d) Record length.: 874 (036ad) Columns in file...: 89 Rows in file..: 625 +---+---+---+--- +---+ | field name| type | field adress | length| field dec.| +---+---+---+--- +---+ | CF_NAME | C |1 | 45 | 0 | | CF_REGNAME | C | 2e | 45 | 0 | |CF_ID | C | 5b | 8 | 0 | | CF_CODE | C | 63 | 8 | 0 | |CF_EDI_ID | C | 6b | 13 | 0 | | CABN | C | 78 | 14 | 0 | | CPARENT_ID | C | 86 | 8 | 0 | |LINACTIVE | L | 8e | 1 | 0 | |LCUSTOMER | L | 8f | 1 | 0 | |LSUPPLIER | L | 90 | 1 | 0 | |LCREDITOR | L | 91 | 1 | 0 | |LEMPLOYEE | L | 92 | 1 | 0 | |LPROSPECT | L | 93 | 1 | 0 | | LSALESPERS | L | 94 | 1 | 0 | | CINVOICEST | C | 95 | 35 | 0 | | CINVOICES2 | C | b8 | 35 | 0 | | CINVOICECI | C | db | 20 | 0 | | CINVOICES3 | C | ef | 3 | 0 | | CINVOICEPO | C | f2 | 6 | 0 | | CINVOICECO | C | f8 | 25 | 0 | | CINVOICEPH | C | 111 | 20 | 0 | | CINVOICEFA | C | 125 | 20 | 0 | | CINVOICEC2 | C | 139 | 25 | 0 | | CEMAIL | C | 152 | 35 | 0 | | CMOBILE | C | 175 | 15 | 0 | | CDEFSHIPLO | C | 184 | 20 | 0 | | CDEFINVFOR | C | 198 | 1 | 0 | | CDEFSELLCU | C | 199 | 3 | 0 | | CDEFBUYCUR | C | 19c | 3 | 0 | | CDEFSALESR | C | 19f | 8 | 0 | | LPARTIALSH | L | 1a7 | 1 | 0 | | CDEFDEPT | C | 1a8 | 3 | 0 | | LWEBACCOUN | L | 1ab | 1 | 0 | |CWEBLOGIN | C | 1ac | 15 | 0 | | CWEBPASSWD | C | 1bb | 15 | 0 | | CGROUPCODE | C | 1ca | 4 | 0 | |CSORTCODE | C | 1ce | 4 | 0 | |LPRICECAT | L | 1d2 | 1 | 0 | |NPRICECAT | I | 1d3 | 4 | 0 | | IPM_ID | I | 1d7 | 4 | 0 | | LPRICEDISC | L | 1db | 1 | 0 | |NDISCOUNT | N | 1dc | 7 | 4 | | LTAXEXEMPT | L | 1e3 | 1 | 0 | | CREASON | C | 1e4 | 25 | 0 | | CF_BALANCE | Y | 1fd | 8 | 4 | | NLIMIT | Y | 205 | 8 | 4 | | NTERMS | N | 20d | 3 | 0 | | NSUPPLIERL |
Re: Launching Vim
On Wed, Jan 14, 2009 at 11:02 PM, Rem P Roberti remeg...@comcast.net wrote: On Jan 14, 2009, at 9:39 PM, Rem P Roberti wrote: Can someone give me a heads up on this. I just installed vim, but when I try to launch the program I get this error message: /libexec/ld-elf.so.1: Shared object libperl.so not found, required by vim this is probably not the correct way of dealing with this... but whenever I have trouble like this , I just do somthing like cd /usr/ports/editors/vim make deinstall clean make install clean most of the time the problem goes away Sam Fourman Jr ___ 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: Launching Vim
Sam Fourman Jr. wrote: On Wed, Jan 14, 2009 at 11:02 PM, Rem P Roberti remeg...@comcast.net wrote: On Jan 14, 2009, at 9:39 PM, Rem P Roberti wrote: Can someone give me a heads up on this. I just installed vim, but when I try to launch the program I get this error message: /libexec/ld-elf.so.1: Shared object libperl.so not found, required by vim this is probably not the correct way of dealing with this... but whenever I have trouble like this , I just do somthing like cd /usr/ports/editors/vim make deinstall clean make install clean most of the time the problem goes away Sam Fourman Jr Good advice, but unfortunately I can't install, deinstall, or reinstall. See my post Can't install from ports that was posted about 30 minutes ago. This one has me a little worried. Rem ___ 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: Performing installed ports upgrade / leaving some software intact
Hello, 1/ backing up the hacked [mailman] files and restoring them later (but I will overwrite the newer files with older ones perhaps breaking something). 2/ making them read only (but the end result will be the same and upgrading as root I will overwrite them anyway). Keep in mind mailman is all python. There really is nothing to recompile after a system upgrade. (Unless you are upgrading python which you aren't). I am not so sure. According to http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html All third party software will now need to be rebuilt and re-installed. This is required as installed software may depend on libraries which have been removed during the upgrade process. The ports-mgmt/portupgrade command may be used to automate this process. The following commands may be used to begin this process: So my thinking is that by issuing portupgrade -af both python and mailman will get reinstalled. However, the option suggested by Roland (thank you!) of touching /var/db/pkg/mailman/+IGNOREME seems very interesting. I must read more about it. Thank you all! -- Zbigniew Szalbot www.slowo.pl www.fairtrade.net.pl ___ 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: Blocking very many (tens of thousands) ip addresses in ipfw
On Wed, Jan 14, 2009 at 08:30:53PM -0800, mojo fms wrote: On Wed, Jan 14, 2009 at 9:13 AM, Steve Bertrand st...@ibctech.ca wrote: Pieter de Goeje wrote: On Wednesday 14 January 2009 17:23:25 Artem Kuchin wrote: I need to block around 15 ip addreses from acccess the server at all at any port. The addesses are random, they are not nets. These are the spammer i want to block for 24 hours. The list is dynamically generated and regenerated every hour or so. What is the most efficient way to do it? At first i thought doing ipfw rules using 5 ips per rule, that would result in 3 rules! This will be too slow! I need to something really quick and smart. Like matching the first number from ip (195 from 192.1.2.3), if it does not match - skip, if it does - compare the next one and so on. Quoting ipfw(8): LOOKUP TABLES Lookup tables are useful to handle large sparse address sets, typically from a hundred to several thousands of entries. There may be up to 128 different lookup tables, numbered 0 to 127. net.inet.ip.fw.dyn_buckets should probably also be increased to efficiently handle 150k IPs. Please correct me if I'm wrong, but if the OP is going to drop all traffic immediately from the 150k IPs, then dyn_buckets shouldn't come into play, as there is no dynamic rule generated. Is this kind of thing doable with PF or really a ipfw thing more? # pfctl -sm stateshard limit1 src-nodes hard limit1 frags hard limit 5000 tableshard limit 1000 table-entries hard limit 20 -- George ___ 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
doubts regarding System Initialization working (SYSINIT)
Hello all, I have been browsing through the FreeBSD kernel's source code trying to understand its working . In the mi_startup() in /sys/kern/init_main.c all the SYSINIT objects are sorted using bubble sort and then they are executed in order. My doubt is that we have declared the pointer to the struct sysinit as const pointer to a const in the macro definition of SYSINIT ie when the macro SYSINIT(kmem, SI_SUB_KMEM, SI_ORDER_FIRST, kmeminit, NULL) is expanded completely we get the following static struct sysinit kmem_sys_init = { SI_SUB_KMEM, SI_ORDER_FIRST, (sysinit_cfunc_t)(sysinit_nfunc_t)kmeminit, ((void *)(((void *)0))) }; static void const * const __set_sysinit_set_sym_kmem_sys_init __attribute__((__section__(set_ sysinit_set))) __attribute__((__used__)) = kmem_sys_init; Here we see that the pointer is of type const and to a const but when we sort and swap using *sipp=*xipp; We are trying to change the address of const pointer to a new address in which case it should segfault but it works fine. Why does it not segfault it seems I have not understood the concept behind using const *const... I will be very thankful if you can help me with it. Regards, Mehul ___ 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