Re: UPS question
On Wed, August 11, 2010 1:18 pm, Ryan Coleman wrote: On Aug 11, 2010, at 3:06 PM, David Brodbeck wrote: On Wed, August 11, 2010 12:25 pm, Ryan Coleman wrote: He thinks that at 500W needed it would give me about 12 minutes on a 1400VA. My consideration is, then, give the server 2 minutes on battery. If full power has not been returned, shut down the server but leave the modem (w/ wireless) and switch running with power for up to 6 hours. A bit of advice: If this is an unattended system, give some thought to how you will boot the server back up if the outage is longer than two minutes but shorter than six hours. Most UPS installations have *some* kind of race condition issue if power comes back after the servers have begun a shutdown, but in your case it's an unusually long window. Meaning that my 2-minute window is unusually long? If the UPS can support the system for 12 minutes, I say give it 20% of the life of the support because our power outages here are usually spikes that kill my current web server (but amazingly *not* my file server). In fact, one of those power fluxes occurred last night. I love storms for the light shows, but hate them for the toll they take on my servers. Nope, 2 minutes is fine, maybe even short depending on how long your system takes to shut down. What I'm asking about is this scenario: 1. Power goes out. 2. Server shuts itself down after 2 minutes. 3. Power comes back on before the UPS batteries are exhausted. The server never sees a power cycle, so it doesn't boot itself back up until someone physically goes and pushes the button. ___ 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: ftp login failing after upgrade to 8.1
Date: Tue, 10 Aug 2010 14:23:22 -0700 From: Chris Maness ch...@chrismaness.com To: Mark Tinguely marktingu...@gmail.com Cc: freebsd-questions@freebsd.org Subject: Re: ftp login failing after upgrade to 8.1 On Tue, Aug 10, 2010 at 2:19 PM, Mark Tinguely marktingu...@gmail.com wro= te: Chris Maness wrote: On Tue, Aug 10, 2010 at 2:07 PM, Mark Tinguely marktingu...@gmail.com wrote: Chris Maness wrote: I just upgraded to FreeBSD 8.1 and my regular user name seems to be disallowed for ftp. =A0I checked and my name or group does not seem to show up in ftpusers. =A0Any suggestions as to what might have happened= ? Thanks, Chris Maness ___ 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 Do you use a shell that is no longer in /etc/shells? --Mark. Yes, I use bash. =A0Should I add bash to the shells file? Thanks, Chris Maness yes, the full path to bash. And /etc/shells is overwritten during upgrade= s. It is logging in now, but getting some strange connection refused when I try a file transfer or list the contents of a directory. symptomatic of a firewall problem. Issue the command PASV at the ftp prompt and then try things. ___ 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
Grepping a list of words
Kindly appreciate help with how to grep (or similar) a list of words to determine if any of them are in a file rather than grepping one word at a time. Thanks for any suggestions... All the best, Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: UPS question
On Aug 11, 2010, at 6:01 PM, David Brodbeck wrote: On Wed, August 11, 2010 1:18 pm, Ryan Coleman wrote: On Aug 11, 2010, at 3:06 PM, David Brodbeck wrote: On Wed, August 11, 2010 12:25 pm, Ryan Coleman wrote: He thinks that at 500W needed it would give me about 12 minutes on a 1400VA. My consideration is, then, give the server 2 minutes on battery. If full power has not been returned, shut down the server but leave the modem (w/ wireless) and switch running with power for up to 6 hours. A bit of advice: If this is an unattended system, give some thought to how you will boot the server back up if the outage is longer than two minutes but shorter than six hours. Most UPS installations have *some* kind of race condition issue if power comes back after the servers have begun a shutdown, but in your case it's an unusually long window. Meaning that my 2-minute window is unusually long? If the UPS can support the system for 12 minutes, I say give it 20% of the life of the support because our power outages here are usually spikes that kill my current web server (but amazingly *not* my file server). In fact, one of those power fluxes occurred last night. I love storms for the light shows, but hate them for the toll they take on my servers. Nope, 2 minutes is fine, maybe even short depending on how long your system takes to shut down. What I'm asking about is this scenario: 1. Power goes out. 2. Server shuts itself down after 2 minutes. 3. Power comes back on before the UPS batteries are exhausted. The server never sees a power cycle, so it doesn't boot itself back up until someone physically goes and pushes the button. Good points. I just want to make sure it has a safe shutdown (the usual reason for a UPS) but it will be set with a BIOS turn on time if it is not on. This is for a mirrored archive that updates overnight. If it is in the middle of the process it will kill and shut off. Most power outages in my area are 1) during the hottest days of the summer - like today and 2) last less than 60 seconds. It's biggest draw is to give it a steady stream of power. -- Ryan___ 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
Page fault in kernel when using CD, BSD 7.2
Hi, Second problem: on a machine (Core 2 Quad, 2.24 GHz) the CD/DVD drive has started to give me page faults in the kernel. The press any key on the console to halt the reboot does not work. Okay, now it's happening with nothing but the fsck running. It takes maybe fifteen minutes. I'm using an ASUS P5N7A-VM mobo, AMI BIOS. The NB heatsink is barely warm (fan cooled), the memory is just warm to the touch, I've blown everything out, etc. I've got two SATA disks (Seagate and WD), in a carrier well-ventilated by a fan. They are barely warm. The CD was not in use. Ambient temperature is about 83 to 86F and this machine is a mobo on a standoffs on a board (until I free up the case it's supposed to go in). Granted that I may have a HW problem, but does the way the problem has manifested suggest anything about where to start? Mark Terribile materrib...@yahoo.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
Anyone client-bridge'ing with ath(4) ?
All: It's a bit hard to track where we stand with this issue. Is anyone having success running client-bridge (wifi0 in client mode, briding to wired interfaces)? From assorted posts, I understand ath(4) can't transmit from arbitrary source MACs or there's some limitation to the the 802.11 layer? It seems to work as long as the wifi(4) interface is in HostAP mode, but I havn't tested it (not looking to do this; well, maybe host-bridge-repeater) I do this all the time in DD-WRT on crappy Asus SOHO gear running Atheros 2xxx and 7xxx chips, so you would think it easy. ~BAS ___ 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
Page fault in kernel when using CD, BSD 7.2
Hi, In the last two days I've had two nasty problems on two machines. The first started dumping core on epiphany, apparently when the Javascript garbage collector ran. I found that the fan on the video card was running and stopping. I jury-rigged a fan over it (until I get a new one) and the problem has gone away. Probably nothing to do with the second problem, but who knows? Second problem: on a machine (Core 2 Quad, 2.24 GHz) the CD/DVD drive has started to give me page faults in the kernel. The press any key on the console to halt the reboot does not work. I've been using this drive on and off for months. I've checked all the connections (PATA), blown out the machine (the temperatures reported by sysctl range from 50 to 59 degrees from core to core), and put a different power lead into the drive. Sometimes the console gets large transfer errors (I don't want to excite the problem right now, as the fsck is finally running) before the fault. The disk transfers don't work, the drive won't open, the process can't be interrupted, etc. The error usually comes a few minutes after the drive stops working. Yes, the processor is running a little hot, but I don't think it's dangerous and its been like this for months. I have a compact heat sink on it and the interaction between the rotor/stator fan and the CPU speed control reduces the speed too much at low load. But again, it's been like that for months. Does anyone have any suggestions? Is it worth trying a new PATA or SATA drive? Mark Terribile materrib...@yahoo.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: Jail from dump/restore?
On Wed, Aug 11, 2010 at 10:57 PM, Chris Maness ch...@chrismaness.com wrote: Is it possible to create a jail from a dump/restore of a real system. If so, would I just restore the dump to the jail tld? That should be possible yes. But it's probably a better idea to just create a new jail and transfer the data, then you'll get rid of old cruft. -- chs, ___ 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: UPS question
Oliver Fromme wrote: Ryan Coleman ryan.cole...@cwis.biz wrote: He thinks that at 500W needed it would give me about 12 minutes on a 1400VA. That W and VA numbers of the UPS are pretty much irrelevant, because they tell nothing about the capacity of the battery. Those numbers only give an upper limit on the power that the UPS can handle (i.e. you cannot connect devices totalling 800 W to a 500 W UPS, for example). In order to be able to estimate how long the UPS can power wattage, you need to know the capacity of the battery. The capacity is usually given in Ah units (Ampere hours). For example, a battery with 10 Ah capacity can deliver 10 Ampere for 1 hour, or 20 Ampere for 30 minutes, or 30 Ampere for 20 Minutes ... and so on. At a typical battery voltage of 12 V, 30 A would be 360 W. So, theoretically a 10 Ah battery would be able to hold devices that use 360 W for about 20 Minutes. In practice it will be less because no UPS has 100% efficiency. Best regards Oliver Another often overlooked detail is how long the battery will last. These amp-hour figures are all for new batteries, and the number of discharge/charge cycles has some effect over time as well. Generally speaking when a UPS just sits there and does very little the batteries are like new for the first two years. Somewhere into year 3 they begin to nose over the derating curve. So at year 3.75 they will have signifigantly less full power runtime than when new. The quality of manufacture for the batteries controls this, for example with lead-acid how much metal goes into the plates. I admit to being bitten a time or two: There is a certain tendency to put the UPS in the rack and walk away and forget all about it. I've learned the hard way to keep records so I can replace weak batteries in a timely fashion. Or this happens: But that server should have been able to stay up 20 minutes instead of crashing at 7 minutes... -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 : How to connect a jail to the web ?
192.168.1.38 is the private address of rl0 on my host. 93.0.168.242 is the public one. I tried both as the jail's address. With the private one, neither portsnap nor ping work at all. With the public one, I get this result : FreeBSD# sysctl security.jail.allow_raw_sockets=1 security.jail.allow_raw_sockets: 0 - 1 FreeBSD# /etc/rc.d/jail onestart server Configuring jails:. Starting jails: MaPrison. FreeBSD# jexec 1 portsnap fetch jexec: jail_attach(1): Invalid argument FreeBSD# jls JID IP Address Hostname Path 2 93.0.168.242MaPrison /usr/prison FreeBSD# jexec 2 portsnap fetch Looking up portsnap.FreeBSD.org mirrors... none found. Fetching public key from portsnap.FreeBSD.org... failed. No mirrors remaining, giving up. FreeBSD# jexec 2 ping www.yahoo.fr ping: cannot resolve www.yahoo.fr: Host name lookup failure FreeBSD# jexec 2 ping 69.147.83.33 PING 69.147.83.33 (69.147.83.33): 56 data bytes Then, nothing during a few minutes, so I used : ^C --- 69.147.83.33 ping statistics --- 32 packets transmitted, 0 packets received, 100.0% packet loss Data can be sent to the net now but it seems they can't come back. I also tried after opening the jail the same way you do : FreeBSD# jail /usr/prison MaPrison 93.0.168.242 /bin/sh -E # ping 69.147.83.33 PING 69.147.83.33 (69.147.83.33): 56 data bytes ^C --- 69.147.83.33 ping statistics --- 30 packets transmitted, 0 packets received, 100.0% packet loss # portsnap fetch Looking up portsnap.FreeBSD.org mirrors... none found. Fetching public key from portsnap.FreeBSD.org... failed. No mirrors remaining, giving up. # De : Oliver Fromme o...@lurza.secnetix.de À : freebsd-questions@FreeBSD.ORG; berrando...@yahoo.fr Envoyé le : Mer 11 août 2010, 22h 55min 11s Objet : Re: How to connect a jail to the web ? Brice ERRANDONEA berrando...@yahoo.fr wrote: Oliver Fromme wrote: sysctl security.jail.allow_raw_sockets=1 I did it but ping still doesn't work. Which IP address are you using for the jail now? If you're using 127.0.0.1, you can only ping the host's own IP addresses, because packets with a localnet IP never leave a machine. If you're using the real address (192.168.1.38) for the jail, then you should be able to ping all addresses that you can ping from the host. I just did a quick test on my machine; it has the IP address 172.20.0.2 (which is being translated with NAT on my router, but that doesn't matter): HOST# sysctl security.jail.allow_raw_sockets=1 security.jail.allow_raw_sockets: 0 - 1 HOST# jail / testjail 172.20.0.2 /bin/sh -E # ping www.google.com PING www.l.google.com (66.102.13.105): 56 data bytes 64 bytes from 66.102.13.105: icmp_seq=0 ttl=54 time=31.196 ms 64 bytes from 66.102.13.105: icmp_seq=1 ttl=54 time=25.553 ms 64 bytes from 66.102.13.105: icmp_seq=2 ttl=54 time=27.086 ms 192.168.1.38 is the host's ip so I use 127.0.0.1 for the jail. Well, localnet addresses are not routed. If you give your jail a localnet address, it won't be able to access the network outside of the host. (Unless you take measures to rewrite/translate the addresses and forward them.) That's why DNS and portsnap don't work. I suggest using the address 192.168.1.38 for the jail, at least during installation. Make sure that the file /etc/resolv.conf inside the jail is correct, so DNS will work. Copying it from the host should be sufficient. Isn't 192.168.1.38 a localnet address too ? It's a private address (RFC 1918). I assume that you've got a NAT router that translates it to a public IP address. Do you mean I should use the public ip of my computer here ? Do you have one? So far you only mentioned 192.168.1.38. I thought it was intended to be impossible to access the host from the jail. It depends on what you want to do with the jail. Jails can be used for vastly different purposes. But you're right : I'll forget that. Good. :-) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Clear perl code is better than unclear awk code; but NOTHING comes close to unclear perl code (taken from comp.lang.awk FAQ) ___ 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: Skype
On Wed, Aug 11, 2010 at 08:00:28AM -1000, p...@pair.com wrote: in message 20100811124006.ga2...@borusse.ewmr.base, wrote Alex Huth thusly... Is anyone using skype on freebsd 8 and can tell me how to do the setup? Seem to be that there is no port and on the website i find no package for freebsd. Well, version 1.x does not work at all as in I was not able to log in after generating an account via web. Version 2.x as it existed in ports not too long ago was broken due to missing source file (not as in raw code but as in binaries). Then I searched for a possible solution that led me to download ... http://kobyla.info/soft/distfiles/skype_static-2.0.0.72-oss.tar.bz2 ... in /misc/ports/distfiles; edit net/skype/Makefile to set proper PORTVERSION; generate net/skpe/distinfo which led to successful install use of skype as in I could log in with the same password userid generated earlier place a call or two. - parv -- Thanks, works like a charm! Great! ___ 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: How to connect a jail to the web ?
David Allen the.real.david.al...@gmail.com wrote: I've read comments in the past about setting up jails using local loopback addresses, but I'm wondering if you wouldn't mind elaborating on what the actual pf rules would look like. Say you have 3 jails and more than one public IP address: ns127.0.0.2 public_ip_1 mail 127.0.0.3 public_ip_2 www 127.0.0.4 public_ip_3 You want to pass port 25 traffic to/from the 'mail' jail. But you also need that jail to use the correct public_ip address. Is that possible without using, for example, pf's binat? Just for completeness, this is a little how-to that describes how you do it with IPFW. You do not have to configure NAT. One single fwd rule is sufficient. The following example works on FreeBSD 8.1. In this example, I'll use port 42, the jail has address 127.0.0.2 on lo0, and nc (netcat) is used in place of a real daemon. The real (external) address of the host machine is 10.5.5.5. HOST# is the prompt of the server machine that hosts the jail, JAIL# is the prompt within that host machine's jail, and CLIENT$ is the prompt of a separate physical machine on the same network which is used for testing purposes. First add an alias IP to the lo0 (localnet) interface. HOST# ifconfig lo0 inet 127.0.0.2/32 alias In order to make that permament, you have to add an alias line to /etc/rc.conf, of course: ifconfig_lo0_alias0=inet 127.0.0.2/32 Check the addresses: HOST# ifconfig lo0 | grep -w inet inet 127.0.0.1 netmask 0xff00 inet 127.0.0.2 netmask 0x Install the IPFW fwd rule: HOST# ipfw add 1 fwd 127.0.0.2 tcp from any to 10.5.5.5 42 1 fwd 127.0.0.2 tcp from any to 10.5.5.5 dst-port 42 To make that permanent, add these lines to /etc/rc.conf: firewall_enable=YES firewall_type=/etc/ipfw.conf And create a file /etc/ipfw.conf containing these lines: -f flush add fwd 127.0.0.2 tcp from any to 10.5.5.5 42 Ok, now start the jail. For the sake of this example, we simply re-use the host's installed base, i.e. the jail's root path is /. For a real jail you would use the jail's root directory, of course. HOST# jail / testjail 127.0.0.2 /bin/sh -E Finally start a netcat (nc) process in the jail. In a real jail, this would be an apache process on port 80, a mail transfer agent on port 25, whatever. JAIL# nc -ln 42 Now the netcat process is listening on port 42 inside the jail on the localnet address 127.0.0.2. You can verify that with sockstat(1) on the host: HOST# sockstat | grep -w 42 root nc 1953 3 tcp4 127.0.0.2:42 *:* You can now connect to that service from a different system on the network, using the external IP address of the host. The IPFW fwd rule reroutes the packets destined for port 42 to the jail's localnet address. CLIENT$ echo Hello world | nc 10.5.5.5 42 As a result, netcat will echo the string Hello world in the jail, and the nc process will terminate. Note: In order to be able to use IPFW fwd rules, you should have these two lines in your kernel config: optionsIPFIREWALL optionsIPFIREWALL_FORWARD If you don't intend to use IPFW for anything else than fwd, you can also include the following line, so you don't have to install any additional allow rules: optionsIPFIREWALL_DEFAULT_TO_ACCEPT That's especially useful if you want to use IPFW for forwarding only, and use another software for actual packet filtering (i.e. pf or ipf). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925 ___ 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
hast
Hello, I would like to test HAST / CARP as a cheap redundant storage solution. Apart NFS, are there other ways to export the file system of the HAST box? Thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. ___ 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: Grepping a list of words
On Wed, Aug 11, 2010 at 06:00:22PM -0500, Jack L. Stone wrote: Kindly appreciate help with how to grep (or similar) a list of words to determine if any of them are in a file rather than grepping one word at a time. Something like this should do the trick: egrep (word1|word2|word3) file Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgplIzwvUzzGB.pgp Description: PGP signature
Re: Grepping a list of words
On Wed, Aug 11, 2010 at 06:00:22PM -0500, Jack L. Stone wrote: Kindly appreciate help with how to grep (or similar) a list of words to determine if any of them are in a file rather than grepping one word at a time. put the list in a file, and use grep -f better, use the \ and \ markers on the file's contents and use egrep. (grep -w option is likely to be buggy when available). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgpxMjjuiLfE9.pgp Description: PGP signature
Re: Grepping a list of words
Jack L. Stone ja...@sage-american.com writes: Kindly appreciate help with how to grep (or similar) a list of words to determine if any of them are in a file rather than grepping one word at a time. Perhaps, `-e' option? $ printf 'foo\nbar\n' | fgrep -e foo -e bar foo bar ___ 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: Page fault in kernel when using CD, BSD 7.2
-Original Message- From: Mark Terribile [mailto:materrib...@yahoo.com] Sent: 12 August 2010 03:32 To: freebsd-questions@freebsd.org Subject: Page fault in kernel when using CD, BSD 7.2 Hi, In the last two days I've had two nasty problems on two machines. The first started dumping core on epiphany, apparently when the Javascript garbage collector ran. I found that the fan on the video card was running and stopping. I jury-rigged a fan over it (until I get a new one) and the problem has gone away. Probably nothing to do with the second problem, but who knows? Second problem: on a machine (Core 2 Quad, 2.24 GHz) the CD/DVD drive has started to give me page faults in the kernel. The press any key on the console to halt the reboot does not work. I've been using this drive on and off for months. I've checked all the connections (PATA), blown out the machine (the temperatures reported by sysctl range from 50 to 59 degrees from core to core), and put a different power lead into the drive. Sometimes the console gets large transfer errors (I don't want to excite the problem right now, as the fsck is finally running) before the fault. The disk transfers don't work, the drive won't open, the process can't be interrupted, etc. The error usually comes a few minutes after the drive stops working. Yes, the processor is running a little hot, but I don't think it's dangerous and its been like this for months. I have a compact heat sink on it and the interaction between the rotor/stator fan and the CPU speed control reduces the speed too much at low load. But again, it's been like that for months. Does anyone have any suggestions? Is it worth trying a new PATA or SATA drive? Mark Terribile materrib...@yahoo.com Might be worthwhile running memtest on the machine. Regards Graeme ___ 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
Qlogic FC controller
Hi We are planning to buy new servers which we would like connect to disk array via FC. We have 2 options for this servers: Qlogic QLE2462 or QLE2460. I check in isp man but only 2432 and 2422 are supported. Is any chance to use one of this cards on freebsd? I found some informations about working QLA2460 on current. Regards Arek -- Arek Czereszewski arek (at) wup-katowice (dot) pl UNIX allows me to work smarter, not harder. ___ 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: Grepping a list of words
On Wed, 11 Aug 2010 18:00:22 -0500 Jack L. Stone ja...@sage-american.com wrote: Kindly appreciate help with how to grep (or similar) a list of words to determine if any of them are in a file rather than grepping one word at a time. Use egrep egrep (word1|word2) file signature.asc Description: PGP signature
Re: Page fault in kernel when using CD, BSD 7.2
Hi, Second problem: on a machine (Core 2 Quad, 2.24 GHz) the CD/DVD drive has started to give me page faults in the kernel. The press any key on the console to halt the reboot does not work. Okay, now it's happening with nothing but the fsck running. It takes maybe fifteen minutes. Okay, I've got a suspect. I got it past the fsck by going ino Single User and doing the file systems one disk at a time. (Two on this machine). I suspect the power supply has gone marginal. My spare is much bigger than the what I need for this machine; I'll wait on a replacement if I can. And I'll let you all know. Thanks to those who've written. Mark Terribile materrib...@yahoo.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: Grepping a list of words
On 08/12/10 00:00, Jack L. Stone wrote: Kindly appreciate help with how to grep (or similar) a list of words to determine if any of them are in a file rather than grepping one word at a time. fgrep, aka grep -F A snippet from man grep: -F, --fixed-strings Interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched. ___ 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: Grepping a list of words
Jack L Stone writes: Kindly appreciate help with how to grep (or similar) a list of words to determine if any of them are in a file rather than grepping one word at a time. #v+ % egrep 'word1|word2|word3|...|wordn' filename.txt #v- 'word1|word2|word3|...|wordn' is the regular expression, so if you can minimize it better for you :). HTH -- Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 freebsd.org!ashish | http://people.freebsd.org/~ashish/ “There is nothing new to be discovered in physics now; All that remains is more and more precise measurement.” (Lord Kelvin, 1900) pgpU33zn9d8xF.pgp Description: PGP signature
Re: Qlogic FC controller
Hi, If you check http://www.freebsd.org/releases/8.1R/hardware.html you will see that both are supported by the isp(4) driver ___ 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: Qlogic FC controller
W dniu 2010-08-12 13:50, claudiu vasadi pisze: Hi, If you check http://www.freebsd.org/releases/8.1R/hardware.html you will see that both are supported by the isp(4) driver In man are only 2432 and 2422 also on 8.1 hardware site. Or maybe I'm blind. Regards Arek -- Arek Czereszewski arek (at) wup-katowice (dot) pl UNIX allows me to work smarter, not harder. ___ 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: Qlogic FC controller
Arek, man isp shows: Qlogic 2422 Qlogic 2422 Optical Fibre Channel PCI cards (4 Gigabit) Qlogic 2432 Qlogic 2432 Optical Fibre Channel PCIe cards (4 Gigabit) and the hw list shows the same. What exactly are you trying to say here ? ___ 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: Grepping a list of words
At 05:14 PM 8.12.2010 +0530, Ashish SHUKLA wrote: Jack L Stone writes: Kindly appreciate help with how to grep (or similar) a list of words to determine if any of them are in a file rather than grepping one word at a time. #v+ % egrep 'word1|word2|word3|...|wordn' filename.txt #v- 'word1|word2|word3|...|wordn' is the regular expression, so if you can minimize it better for you :). HTH -- Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 Thanks for the replies. This suggestion won't do the job as the list of words is very long, maybe 50-60. This is why I asked how to place them all in a file. One reply dealt with using a file with egrep. I'll try that. Appreciate the help and any others in case the one doesn't work. All the best, Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Qlogic FC controller
W dniu 2010-08-12 14:04, claudiu vasadi pisze: Arek, man isp shows: Qlogic 2422 Qlogic 2422 Optical Fibre Channel PCI cards (4 Gigabit) Qlogic 2432 Qlogic 2432 Optical Fibre Channel PCIe cards (4 Gigabit) and the hw list shows the same. What exactly are you trying to say here ? Yes but in servers are 2460, 2462 or some emulex only. -- Arek Czereszewski arek (at) wup-katowice (dot) pl UNIX allows me to work smarter, not harder. ___ 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 : How to connect a jail to the web ?
Brice ERRANDONEA berrando...@yahoo.fr wrote: 192.168.1.38 is the private address of rl0 on my host. 93.0.168.242 is the public one. I tried both as the jail's address. With the private one, neither portsnap nor ping work at all. With the public one, I get this result : [...] FreeBSD# jexec 2 ping www.yahoo.fr ping: cannot resolve www.yahoo.fr: Host name lookup failure FreeBSD# jexec 2 ping 69.147.83.33 PING 69.147.83.33 (69.147.83.33): 56 data bytes [...] 32 packets transmitted, 0 packets received, 100.0% packet loss Please show the _complete_ output from ifconfig and netstat -rnfinet. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd PI: int f[9814],b,c=9814,g,i;long a=1e4,d,e,h; main(){for(;b=c,c-=14;i=printf(%04d,e+d/a),e=d%a) while(g=--b*2)d=h*b+a*(i?f[b]:a/5),h=d/--g,f[b]=d%g;} ___ 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
ISC eventlib
Hello folks, I'm a big fan of your work. I'm working on an application that essentially requires an eventlib (evSetTimer, etc.) All the research I've done points to bind9 and, I guess, trying to extract it from there. I actually tried extracting some files from bind9 and building a libevent.a but it core dumps some time. My question is does anyone know where I can get an ISC eventlib package to install in my FreeBSD env. Thanks -frank --- Frank J. Palaia Senior Member of Technical Staff - ATT 200 Laurel Avenue Middletown, NJ 07748 732-420-0205 (w) 732-320-3803 (c) NOTE: This message and any attachments may contain confidential business information intended solely for the recipients. ___ 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
ZFS data from snv_b134 to fbsd
I want to transfer a lot of ZFS data from an old OpenSolaris ZFS mirror (v22) to a new FreeBSD-8.1 ZFs mirror (v14). If I boot off the OpenSolaris boot CD and import both mirrors will the copying from v22 ZFS to v14 ZFS be harmless? I'm not sure if this is teh right mailinglist for this question. Let me know. ___ 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 : How to connect a jail to the web ?
Here they are. On the host, when the jail is not running : %ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:11:09:15:72:6a inet 192.168.1.38 netmask 0xff00 broadcast 192.168.1.255 media: Ethernet autoselect (100baseTX full-duplex) status: active fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 02:11:06:99:8a:ff ch 1 dma -1 fwip0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 lladdr 0.11.6.66.0.99.8a.ff.a.2.ff.fe.0.0.0.0 plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 nd6 options=3PERFORMNUD,ACCEPT_RTADV %netstat -rnfinet Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.1.1UGS16 434rl0 127.0.0.1 link#5 UH 0 20lo0 192.168.1.0/24 link#1 U 1 98rl0 192.168.1.38 link#1 UHS 00lo0 On the host when the jail is running : FreeBSD# jls JID IP Address Hostname Path 1 93.0.168.242MaPrison /usr/prison FreeBSD# ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:11:09:15:72:6a inet 192.168.1.38 netmask 0xff00 broadcast 192.168.1.255 inet 93.0.168.242 netmask 0x broadcast 93.0.168.242 media: Ethernet autoselect (100baseTX full-duplex) status: active fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 02:11:06:99:8a:ff ch 1 dma -1 fwip0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 lladdr 0.11.6.66.0.99.8a.ff.a.2.ff.fe.0.0.0.0 plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 nd6 options=3PERFORMNUD,ACCEPT_RTADV FreeBSD# netstat -rnfinet Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.1.1UGS 0 474rl0 93.0.168.242 link#1 UHS 0 20lo0 = 93.0.168.242/32link#1 U 00rl0 127.0.0.1 link#5 UH 0 20lo0 192.168.1.0/24 link#1 U 0 102rl0 192.168.1.38 link#1 UHS 00lo0 In the jail (running, of course) : FreeBSD# jexec 1 ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:11:09:15:72:6a inet 93.0.168.242 netmask 0x broadcast 93.0.168.242 media: Ethernet autoselect (100baseTX full-duplex) status: active fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 02:11:06:99:8a:ff ch 1 dma -1 fwip0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 lladdr 0.11.6.66.0.99.8a.ff.a.2.ff.fe.0.0.0.0 plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM FreeBSD# jexec 1 netstat -rnfinet Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.1.1UGS 0 480rl0 93.0.168.242 link#1 UHS 0 20lo0 = 93.0.168.242/32link#1 U 00rl0 127.0.0.1 link#5 UH 0 20lo0 192.168.1.0/24 link#1 U 0 102rl0 192.168.1.38 link#1 UHS 00lo0 Do you find what's wrong ? Brice De : Oliver Fromme o...@lurza.secnetix.de À : freebsd-questions@FreeBSD.ORG; berrando...@yahoo.fr Envoyé le : Jeu 12 août 2010, 14h 52min 00s Objet : Re: Re : How to connect a jail to the web ? Brice ERRANDONEA berrando...@yahoo.fr wrote: 192.168.1.38 is the private address of rl0 on my host. 93.0.168.242 is the public one. I tried both as the jail's address. With the private one, neither portsnap nor ping work at all. With the public one, I get this result : [...] FreeBSD# jexec 2 ping www.yahoo.fr ping: cannot resolve www.yahoo.fr: Host name lookup failure FreeBSD# jexec 2 ping 69.147.83.33 PING
Re: Re : Re : How to connect a jail to the web ?
Brice ERRANDONEA berrando...@yahoo.fr wrote: On the host, when the jail is not running : %ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:11:09:15:72:6a inet 192.168.1.38 netmask 0xff00 broadcast 192.168.1.255 media: Ethernet autoselect (100baseTX full-duplex) OK, so 192.168.1.38 is the only (non-localnet) IP address that you have. You should use that one for your jail. On the host when the jail is running : FreeBSD# jls JID IP Address Hostname Path 1 93.0.168.242MaPrison /usr/prison FreeBSD# ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:11:09:15:72:6a inet 192.168.1.38 netmask 0xff00 broadcast 192.168.1.255 inet 93.0.168.242 netmask 0x broadcast 93.0.168.242 media: Ethernet autoselect (100baseTX full-duplex) Where did you get that second IP address from? Did you just add it manually? Or is that the address that your gateway (DSL router, whatever) got assigned from your ISP? I assume that IP address is not really routed to your host, but that NAT (Network Address Translation) is used on your router. So you cannot use that address on the host. (If that's not true, please exlain the structure of your network in more detail.) So, if my assumptions are true, you must use the address 192.168.1.38 for your jail. Make sure that DNS is working inside the jail ... It should be sufficient to copy /etc/resolv.conf from the host to /usr/prison/etc/resolv.conf If it still doesn't work: Are you using any packet filter (ipfw, ipf, pf)? If so, please show the complete list of rules. Otherwise, it might help to run tcpdump(1) on the host, so you can see the actual packets that are transmitted and received. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++ is the only current language making COBOL look good. -- Bertrand Meyer ___ 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: Grepping a list of words
% egrep 'word1|word2|word3|...|wordn' filename.txt Thanks for the replies. This suggestion won't do the job as the list of words is very long, maybe 50-60. This is why I asked how to place them all in a file. One reply dealt with using a file with egrep. I'll try that. Gee, 50 words, that's about a 300 character pattern, that's not a problem for any shell or version of grep I know. But reading the words from a file is equivalent and as you note most likely easier to do. R's, John ___ 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
X11 question
Hello, Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. Also, is p5-Tk the same as Perl/Tk? Best regards, Fred ___ 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: Grepping a list of words
John Levine jo...@iecc.com wrote: % egrep 'word1|word2|word3|...|wordn' filename.txt Thanks for the replies. This suggestion won't do the job as the list of words is very long, maybe 50-60. This is why I asked how to place them all in a file. One reply dealt with using a file with egrep. I'll try that. Gee, 50 words, that's about a 300 character pattern, that's not a problem for any shell or version of grep I know. But reading the words from a file is equivalent and as you note most likely easier to do. The question is what is more efficient. This might be important if that kind of grep command is run very often by a script, or if it's run on very large files. My guess is that one large regular expression is more efficient than many small ones. But I haven't done real benchmarks to prove this. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd To this day, many C programmers believe that 'strong typing' just means pounding extra hard on the keyboard. -- Peter van der Linden ___ 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 : Re : How to connect a jail to the web ?
Where did you get that second IP address from? Did you just add it manually? Or is that the address that your gateway (DSL router, whatever) got assigned from your ISP? I added it manually in rc.conf (on the host) : hostname=FreeBSD.ici ifconfig_rl0=DHCP keymap=fr.iso.acc (yes, I'm french) moused_enable=YES saver=dragon hald_enable=YES dbus_enable=YES devfs_system_ruleset=localrules jail_enable=NO jail_list=MaPrison jail_interface=rl0 jail_devfs_ruleset=devfsrules_jail jail_devfs_enable=YES jail_server_rootdir=/usr/prison jail_server_hostname=MaPrison jail_server_ip=93.0.168.242 I choosed it because that's my computer's public ip, at least according to this website : http://whatismyipaddress.com/ I assume that IP address is not really routed to your host, but that NAT (Network Address Translation) is used on your router. So you cannot use that address on the host. (If that's not true, please exlain the structure of your network in more detail.) My network is VERY simple. I've got a modem (or box) provided by my phone company. It's called a neufbox and acts as a gateway. The computer with FreeBSD is connected to this box through an ethernet cable. Two other computers are connected to it via wifi. So, if my assumptions are true, you must use the address 192.168.1.38 for your jail. Make sure that DNS is working inside the jail ... It should be sufficient to copy /etc/resolv.conf from the host to /usr/prison/etc/resolv.conf OK, I'll try this. If it still doesn't work: Are you using any packet filter (ipfw, ipf, pf)? If so, please show the complete list of rules. No, I don't. I've tried pf but you told it was not necessary. Otherwise, it might help to run tcpdump(1) on the host, so you can see the actual packets that are transmitted and received. Allright. I try it too. Good bye for the moment and thanks for your help. Brice ___ 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: X11 question
Fred Boatwright f...@blakemfg.com wrote: Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. It's in x11/xinit. You can use porgle to find out: http://www.secnetix.de/tools/porgle/porgle.py?w=pq=startx It has four hits, but it's not difficult to narrow it down from there. Also, is p5-Tk the same as Perl/Tk? I think so. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd (On the statement print 42 monkeys + 1 snake:) By the way, both perl and Python get this wrong. Perl gives 43 and Python gives 42 monkeys1 snake, when the answer is clearly 41 monkeys and 1 fat snake.-- Jim Fulton ___ 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: Grepping a list of words
Oliver Fromme o...@lurza.secnetix.de writes: John Levine jo...@iecc.com wrote: % egrep 'word1|word2|word3|...|wordn' filename.txt Thanks for the replies. This suggestion won't do the job as the list of words is very long, maybe 50-60. This is why I asked how to place them all in a file. One reply dealt with using a file with egrep. I'll try that. Gee, 50 words, that's about a 300 character pattern, that's not a problem for any shell or version of grep I know. But reading the words from a file is equivalent and as you note most likely easier to do. The question is what is more efficient. This might be important if that kind of grep command is run very often by a script, or if it's run on very large files. My guess is that one large regular expression is more efficient than many small ones. But I haven't done real benchmarks to prove this. BTW, not using regular expressions is even more efficient, e.g. $ fgrep -f /usr/share/dict/words /etc/group When using egrep(1) it takes considerably more time and memory. ___ 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: Grepping a list of words
Quoth Anonymous on Thursday, 12 August 2010: Oliver Fromme o...@lurza.secnetix.de writes: John Levine jo...@iecc.com wrote: % egrep 'word1|word2|word3|...|wordn' filename.txt Thanks for the replies. This suggestion won't do the job as the list of words is very long, maybe 50-60. This is why I asked how to place them all in a file. One reply dealt with using a file with egrep. I'll try that. Gee, 50 words, that's about a 300 character pattern, that's not a problem for any shell or version of grep I know. But reading the words from a file is equivalent and as you note most likely easier to do. The question is what is more efficient. This might be important if that kind of grep command is run very often by a script, or if it's run on very large files. My guess is that one large regular expression is more efficient than many small ones. But I haven't done real benchmarks to prove this. BTW, not using regular expressions is even more efficient, e.g. $ fgrep -f /usr/share/dict/words /etc/group When using egrep(1) it takes considerably more time and memory. Having written a regex engine myself, I can see why. Though I'm sure egrep is highly optimized, even the most optimized DFA table is going to take more cycles to navigate than a simple string comparison. Not to mention the initial overhead of parsing the regex and building that table. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpFtngDyRM8G.pgp Description: PGP signature
Re: ZFS data from snv_b134 to fbsd
On Aug 12, 2010, at 6:10 AM, Dick Hoogendijk wrote: I want to transfer a lot of ZFS data from an old OpenSolaris ZFS mirror (v22) to a new FreeBSD-8.1 ZFs mirror (v14). If I boot off the OpenSolaris boot CD and import both mirrors will the copying from v22 ZFS to v14 ZFS be harmless? I'm not sure if this is teh right mailinglist for this question. Let me know. I'm NOT a ZFS expert, but I think it should be OK as long as you don't upgrade the v14 pool. OpenSolaris won't upgrade pool versions automatically, so this shouldn' t be a problem. I'm assuming this is a normal file copy, here; if you're trying to use 'zfs send' and 'zfs receive' I think you'll run into difficulty. ___ 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: Grepping a list of words
Gee, 50 words, that's about a 300 character pattern, that's not a problem for any shell or version of grep I know. But reading the words from a file is equivalent and as you note most likely easier to do. The question is what is more efficient. This might be important if that kind of grep command is run very often by a script, or if it's run on very large files. It's exactly the same, since it's the same program using the same search algorithm. The only thing that's different is the input language for the pattern. What looks like a bunch of separate patterns in the input file is internally turned into one pattern that is then compiled into a state machine that it uses to match the input. R's, John ___ 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: UPS question
David Brodbeck wrote: On Wed, August 11, 2010 1:18 pm, Ryan Coleman wrote: On Aug 11, 2010, at 3:06 PM, David Brodbeck wrote: On Wed, August 11, 2010 12:25 pm, Ryan Coleman wrote: He thinks that at 500W needed it would give me about 12 minutes on a 1400VA. My consideration is, then, give the server 2 minutes on battery. If full power has not been returned, shut down the server but leave the modem (w/ wireless) and switch running with power for up to 6 hours. A bit of advice: If this is an unattended system, give some thought to how you will boot the server back up if the outage is longer than two minutes but shorter than six hours. Most UPS installations have *some* kind of race condition issue if power comes back after the servers have begun a shutdown, but in your case it's an unusually long window. Meaning that my 2-minute window is unusually long? If the UPS can support the system for 12 minutes, I say give it 20% of the life of the support because our power outages here are usually spikes that kill my current web server (but amazingly *not* my file server). In fact, one of those power fluxes occurred last night. I love storms for the light shows, but hate them for the toll they take on my servers. Nope, 2 minutes is fine, maybe even short depending on how long your system takes to shut down. What I'm asking about is this scenario: 1. Power goes out. 2. Server shuts itself down after 2 minutes. 3. Power comes back on before the UPS batteries are exhausted. The server never sees a power cycle, so it doesn't boot itself back up until someone physically goes and pushes the button. ## I have had these power dips and surges here in Hawaii. I have installed UPS power from two stationary batters that will run the servers for 12 hours. We have experienced extensive outages in the past and this was our only solution. Surges are almost impossible to stop. I have them jump cross a surge protector. I have recently had several UPS Desktop backups fail from a surge and then a drop below 70 v. This caused the UPS to have the charging diodes blow. It was cheaper to replace the UPS 's than to repair them. #3. The motherboard bios can be set to stop a server from self booting from a power outage. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + email: n...@hdk5.net All that's really worth doing is what we do for others.- Lewis Carrol ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: X11 question
/usr/ports/x11/xinit On my system (with X, obviously, already installed): beta# whereis startx startx: /usr/local/bin/startx /usr/local/man/man1/startx.1.gz beta# pkg_which /usr/local/bin/startx xinit-1.2.0 beta# whereis xinit xinit: /usr/local/bin/xinit /usr/local/man/man1/xinit.1.gz /usr/ports/x11/xinit I' m not certain about the p5/Perl TK questions, but in the file: /usr/ports/x11-toolkits/p5-Tk/pkg-descr there is this description: This a re-port of a perl interface to Tk8.4 (John Ousterhout's production release). Perl API is essentially the same as Tk800.025 but has not been verified as compliant. It also includes all the C code parts of Tix8.1.4 from SourceForge. The perl code corresponding to Tix's Tcl code is not fully implemented. This version (Tk804.025) is only likely to work with perl5.8+. Tim Kellers On 08/12/10 12:02, Fred Boatwright wrote: Hello, Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. Also, is p5-Tk the same as Perl/Tk? Best regards, Fred ___ 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: ZFS data from snv_b134 to fbsd
On 12-8-2010 20:04, David Brodbeck wrote: On Aug 12, 2010, at 6:10 AM, Dick Hoogendijk wrote: I want to transfer a lot of ZFS data from an old OpenSolaris ZFS mirror (v22) to a new FreeBSD-8.1 ZFs mirror (v14). I'm NOT a ZFS expert, but I think it should be OK as long as you don't upgrade the v14 pool. OpenSolaris won't upgrade pool versions automatically, so this shouldn' t be a problem. I'm assuming this is a normal file copy, here; if you're trying to use 'zfs send' and 'zfs receive' I think you'll run into difficulty. Yes, it will be normal file copying. It's eassuring that osol won't ugrade the pool ;-) My main concern was that there would be some (although maybe slight) difference between FreeBSD ZFS and OpenSolaris. ___ 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: UPS question
On Aug 12, 2010, at 12:52 PM, Al Plant wrote: David Brodbeck wrote: On Wed, August 11, 2010 1:18 pm, Ryan Coleman wrote: On Aug 11, 2010, at 3:06 PM, David Brodbeck wrote: On Wed, August 11, 2010 12:25 pm, Ryan Coleman wrote: He thinks that at 500W needed it would give me about 12 minutes on a 1400VA. My consideration is, then, give the server 2 minutes on battery. If full power has not been returned, shut down the server but leave the modem (w/ wireless) and switch running with power for up to 6 hours. A bit of advice: If this is an unattended system, give some thought to how you will boot the server back up if the outage is longer than two minutes but shorter than six hours. Most UPS installations have *some* kind of race condition issue if power comes back after the servers have begun a shutdown, but in your case it's an unusually long window. Meaning that my 2-minute window is unusually long? If the UPS can support the system for 12 minutes, I say give it 20% of the life of the support because our power outages here are usually spikes that kill my current web server (but amazingly *not* my file server). In fact, one of those power fluxes occurred last night. I love storms for the light shows, but hate them for the toll they take on my servers. Nope, 2 minutes is fine, maybe even short depending on how long your system takes to shut down. What I'm asking about is this scenario: 1. Power goes out. 2. Server shuts itself down after 2 minutes. 3. Power comes back on before the UPS batteries are exhausted. The server never sees a power cycle, so it doesn't boot itself back up until someone physically goes and pushes the button. ## I have had these power dips and surges here in Hawaii. I have installed UPS power from two stationary batters that will run the servers for 12 hours. We have experienced extensive outages in the past and this was our only solution. Surges are almost impossible to stop. I have them jump cross a surge protector. I have recently had several UPS Desktop backups fail from a surge and then a drop below 70 v. This caused the UPS to have the charging diodes blow. It was cheaper to replace the UPS 's than to repair them. #3. The motherboard bios can be set to stop a server from self booting from a power outage. Yes. The downside comes from when the BIOS is told to turn on the server at, say, 10pm and the power is still out... it starts the process and runs out of battery mid-way through the boot before it gets the chance to load the UPS controller. -- Ryan___ 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: ZFS data from snv_b134 to fbsd
In the last episode (Aug 12), David Brodbeck said: On Aug 12, 2010, at 6:10 AM, Dick Hoogendijk wrote: I want to transfer a lot of ZFS data from an old OpenSolaris ZFS mirror (v22) to a new FreeBSD-8.1 ZFs mirror (v14). If I boot off the OpenSolaris boot CD and import both mirrors will the copying from v22 ZFS to v14 ZFS be harmless? I'm not sure if this is teh right mailinglist for this question. Let me know. I'm NOT a ZFS expert, but I think it should be OK as long as you don't upgrade the v14 pool. OpenSolaris won't upgrade pool versions automatically, so this shouldn' t be a problem. You can also explicitly create lower-version pools with zpool create -o version=14 ..., if you need to create one from a machine with a newer kernel. -- 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: UPS question
On Aug 12, 2010, at 12:40 PM, Ryan Coleman wrote: Yes. The downside comes from when the BIOS is told to turn on the server at, say, 10pm and the power is still out... it starts the process and runs out of battery mid-way through the boot before it gets the chance to load the UPS controller. You may want to think about using two UPS units -- a large one for your server, and a smaller one for your network stack. This way you can use UPS monitoring software (like NUT or PowerChute) to have the server command its UPS to switch off when it's fully shut down. Then when power comes back the server UPS will switch back on and the server will boot back up, assuming you've set the BIOS to boot up on power recovery. Some UPS units have the ability to set a power recovery delay to ensure the battery has some charge before the server starts up, too. ___ 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: ZFS data from snv_b134 to fbsd
On Aug 12, 2010, at 12:31 PM, Dick Hoogendijk wrote: On 12-8-2010 20:04, David Brodbeck wrote: On Aug 12, 2010, at 6:10 AM, Dick Hoogendijk wrote: I want to transfer a lot of ZFS data from an old OpenSolaris ZFS mirror (v22) to a new FreeBSD-8.1 ZFs mirror (v14). I'm NOT a ZFS expert, but I think it should be OK as long as you don't upgrade the v14 pool. OpenSolaris won't upgrade pool versions automatically, so this shouldn' t be a problem. I'm assuming this is a normal file copy, here; if you're trying to use 'zfs send' and 'zfs receive' I think you'll run into difficulty. Yes, it will be normal file copying. It's eassuring that osol won't ugrade the pool ;-) Right. You have to explicitly run zpool upgrade to upgrade pool versions. So, don't do that. ;) ___ 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: X11 question
Hi Oliver and Tim, I installed xinit but startx still doesn't exist. whereis returns nothing and man startx returns nothing. Fred Tim Kellers wrote: /usr/ports/x11/xinit On my system (with X, obviously, already installed): beta# whereis startx startx: /usr/local/bin/startx /usr/local/man/man1/startx.1.gz beta# pkg_which /usr/local/bin/startx xinit-1.2.0 beta# whereis xinit xinit: /usr/local/bin/xinit /usr/local/man/man1/xinit.1.gz /usr/ports/x11/xinit I' m not certain about the p5/Perl TK questions, but in the file: /usr/ports/x11-toolkits/p5-Tk/pkg-descr there is this description: This a re-port of a perl interface to Tk8.4 (John Ousterhout's production release). Perl API is essentially the same as Tk800.025 but has not been verified as compliant. It also includes all the C code parts of Tix8.1.4 from SourceForge. The perl code corresponding to Tix's Tcl code is not fully implemented. This version (Tk804.025) is only likely to work with perl5.8+. Tim Kellers On 08/12/10 12:02, Fred Boatwright wrote: Hello, Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. Also, is p5-Tk the same as Perl/Tk? Best regards, Fred ___ 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: UPS question
On Aug 12, 2010, at 2:49 PM, David Brodbeck wrote: On Aug 12, 2010, at 12:40 PM, Ryan Coleman wrote: Yes. The downside comes from when the BIOS is told to turn on the server at, say, 10pm and the power is still out... it starts the process and runs out of battery mid-way through the boot before it gets the chance to load the UPS controller. You may want to think about using two UPS units -- a large one for your server, and a smaller one for your network stack. This way you can use UPS monitoring software (like NUT or PowerChute) to have the server command its UPS to switch off when it's fully shut down. Then when power comes back the server UPS will switch back on and the server will boot back up, assuming you've set the BIOS to boot up on power recovery. Some UPS units have the ability to set a power recovery delay to ensure the battery has some charge before the server starts up, too. Great idea, I'll definitely keep that in mind. -- Ryan___ 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: X11 question
pkg_info | grep xinit rehash (if using some *csh) which startx ? Samuel Martín Moro {EPITECH.} tek4 CamTrace S.A.S (+033) 1 41 38 37 60 1 Allée de la Venelle 92150 Suresnes FRANCE Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) On Thu, Aug 12, 2010 at 9:40 PM, Fred Boatwright f...@blakemfg.com wrote: Hi Oliver and Tim, I installed xinit but startx still doesn't exist. whereis returns nothing and man startx returns nothing. Fred Tim Kellers wrote: /usr/ports/x11/xinit On my system (with X, obviously, already installed): beta# whereis startx startx: /usr/local/bin/startx /usr/local/man/man1/startx.1.gz beta# pkg_which /usr/local/bin/startx xinit-1.2.0 beta# whereis xinit xinit: /usr/local/bin/xinit /usr/local/man/man1/xinit.1.gz /usr/ports/x11/xinit I' m not certain about the p5/Perl TK questions, but in the file: /usr/ports/x11-toolkits/p5-Tk/pkg-descr there is this description: This a re-port of a perl interface to Tk8.4 (John Ousterhout's production release). Perl API is essentially the same as Tk800.025 but has not been verified as compliant. It also includes all the C code parts of Tix8.1.4 from SourceForge. The perl code corresponding to Tix's Tcl code is not fully implemented. This version (Tk804.025) is only likely to work with perl5.8+. Tim Kellers On 08/12/10 12:02, Fred Boatwright wrote: Hello, Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. Also, is p5-Tk the same as Perl/Tk? Best regards, Fred ___ 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 ___ 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: X11 question
Fred, From man startx(1): SEE ALSO xinit(1), X(7), Xserver(1), Xorg(1), xorg.conf(5) Try: # whereis X If X is installed, it should return: # X: /usr/local/bin/X pkg_which if X is installed should return: # pkg_which /usr/local/bin/X xorg-server-1.7.5,1 If it doesn't, then the full X server isn't installed: Try: # whereis xorg xorg: /usr/ports/x11/xorg If xorg isn't installed, cd to: /usr/ports/x11/xorg and make config-recursive (If you add any options, run make config-recursive a second time after the shell prompt returns) and then make install clean HTH Tim Kellers On 08/12/10 15:40, Fred Boatwright wrote: Hi Oliver and Tim, I installed xinit but startx still doesn't exist. whereis returns nothing and man startx returns nothing. Fred Tim Kellers wrote: /usr/ports/x11/xinit On my system (with X, obviously, already installed): beta# whereis startx startx: /usr/local/bin/startx /usr/local/man/man1/startx.1.gz beta# pkg_which /usr/local/bin/startx xinit-1.2.0 beta# whereis xinit xinit: /usr/local/bin/xinit /usr/local/man/man1/xinit.1.gz /usr/ports/x11/xinit I' m not certain about the p5/Perl TK questions, but in the file: /usr/ports/x11-toolkits/p5-Tk/pkg-descr there is this description: This a re-port of a perl interface to Tk8.4 (John Ousterhout's production release). Perl API is essentially the same as Tk800.025 but has not been verified as compliant. It also includes all the C code parts of Tix8.1.4 from SourceForge. The perl code corresponding to Tix's Tcl code is not fully implemented. This version (Tk804.025) is only likely to work with perl5.8+. Tim Kellers On 08/12/10 12:02, Fred Boatwright wrote: Hello, Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. Also, is p5-Tk the same as Perl/Tk? Best regards, Fred ___ 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
releases, branches,..
My years of OpenSolaris made me forget the use of releases and branches. I'm not into too much compiling anymore. I want a stable, but also safe server. I'm running 8.1-RELEASE now, but what about security issues found? What do I need to run if I want the lates and needed security patches? I do not want to update my system (at least as few times as possible) Which brach do I follow? I have the feeling that STABLE is too innovative(?) ___ 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: releases, branches,..
On 12.08.2010 22:46, Dick Hoogendijk wrote: My years of OpenSolaris made me forget the use of releases and branches. I'm not into too much compiling anymore. I want a stable, but also safe server. I'm running 8.1-RELEASE now, but what about security issues found? What do I need to run if I want the lates and needed security patches? I do not want to update my system (at least as few times as possible) Which brach do I follow? I have the feeling that STABLE is too innovative(?) -RELEASE but keep an eye on the advisories. This comes from someone who's been running RELENG_x for prod setups for more than a decade. //svein -- +---+--- /\ |Svein Skogen | sv...@d80.iso100.no \ / |Solberg Østli 9| PGP Key: 0xE5E76831 X|2020 Skedsmokorset | sv...@jernhuset.no / \ |Norway | PGP Key: 0xCE96CE13 | | sv...@stillbilde.net ascii | | PGP Key: 0x58CD33B6 ribbon |System Admin | svein-listm...@stillbilde.net Campaign|stillbilde.net | PGP Key: 0x22D494A4 +---+--- |msn messenger: | Mobile Phone: +47 907 03 575 |sv...@jernhuset.no | RIPE handle:SS16503-RIPE +---+--- If you really are in a hurry, mail me at svein-mob...@stillbilde.net This mailbox goes directly to my cellphone and is checked even when I'm not in front of my computer. Picture Gallery: https://gallery.stillbilde.net/v/svein/ signature.asc Description: OpenPGP digital signature
Re: releases, branches,..
On Thu, 12 Aug 2010 22:46:18 +0200, Dick Hoogendijk d...@nagual.nl wrote: My years of OpenSolaris made me forget the use of releases and branches. I'm not into too much compiling anymore. I want a stable, but also safe server. I'm running 8.1-RELEASE now, but what about security issues found? What do I need to run if I want the lates and needed security patches? I do not want to update my system (at least as few times as possible) Which brach do I follow? I have the feeling that STABLE is too innovative(?) In this case, use freebsd-update to track -RELEASE; you will get the security patches by binary updating, e. g. you can use this tool to get from 8.1-RELEASE to 8.1-RELEASE-p1 without the need to compile anything. See man freebsd-update for details. -- Polytropon 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: releases, branches,..
On 12-8-2010 22:53, Polytropon wrote: On Thu, 12 Aug 2010 22:46:18 +0200, Dick Hoogendijkd...@nagual.nl wrote: I'm running 8.1-RELEASE now, but what about security issues found? Which brach do I follow? In this case, use freebsd-update to track -RELEASE; you will get the security patches by binary updating, e. g. you can use this tool to get from 8.1-RELEASE to 8.1-RELEASE-p1 without the need to compile anything. See man freebsd-update for details. Thank you. I will follow RELEASE than. Also a thanks to Svein. ;-) Is RELEASE automaticaly set in a fresh FreeBSD install or do I need to change anything? ___ 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: releases, branches,..
On 8/12/2010 2:02 PM, Dick Hoogendijk wrote: On 12-8-2010 22:53, Polytropon wrote: On Thu, 12 Aug 2010 22:46:18 +0200, Dick Hoogendijkd...@nagual.nl wrote: I'm running 8.1-RELEASE now, but what about security issues found? Which brach do I follow? In this case, use freebsd-update to track -RELEASE; you will get the security patches by binary updating, e. g. you can use this tool to get from 8.1-RELEASE to 8.1-RELEASE-p1 without the need to compile anything. See man freebsd-update for details. Thank you. I will follow RELEASE than. Also a thanks to Svein. ;-) Is RELEASE automaticaly set in a fresh FreeBSD install or do I need to change anything? uname -raa freebsd-update will update that version you have installed (so yes RELEASE in a fresh install) only with security patches. If a new version comes out you want to upgrade to you would do something like freebsd-update upgrade -r 8.3-RELEASE ___ 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: releases, branches,..
On Thu, 12 Aug 2010 23:02:01 +0200, Dick Hoogendijk d...@nagual.nl wrote: Thank you. I will follow RELEASE than. Also a thanks to Svein. ;-) Is RELEASE automaticaly set in a fresh FreeBSD install or do I need to change anything? The freebsd-update program will track RELEASE-p because this is what it can do. It won't follow STABLE because that's not possible with this tool. :-) The common method of freebsd-update upgrade (see manpage) will then bring you to 8.1-RELEASE, I think, and will then follow the track of 8.1-RELEASE-p1, -p2, -p3 and so on. You can additionally request a specific release with the -r parameter. -- Polytropon 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: X11 question
pkg_info | grep xinit doesn't return anything rehash which startx startx: Command not found whereis X X: /usr/local/bin/X pkg_which /usr/local/bin/X pkg_which: Command not found Oliver: I used your porgle tool to find pkg_which and will install it later. Porgle appears to be a very useful tool. I installed x11-servers/xorg-server but maybe should have installed Xorg instead. However, from looking at the pkg-descr for xorg it looks like it will install a huge amount of software that will not get used. I am reluctant to do this. I have installed 8.0-RELEASE from the CD and I want to run olvwm for a desktop. I have been using Solaris 2.6 with the OpenWindows desktop for 12 years and consider it to be as close to perfection as one can get. I am being forced, kicking and screaming, to move to some other type of Unix on a PC and would like to continue using OpenWindows. It is probably going to be an uphill battle to get olvwm to work. Am I going to have to install xorg to get everything needed? Best regards, Fred Tim Kellers wrote: Fred, From man startx(1): SEE ALSO xinit(1), X(7), Xserver(1), Xorg(1), xorg.conf(5) Try: # whereis X If X is installed, it should return: # X: /usr/local/bin/X pkg_which if X is installed should return: # pkg_which /usr/local/bin/X xorg-server-1.7.5,1 If it doesn't, then the full X server isn't installed: Try: # whereis xorg xorg: /usr/ports/x11/xorg If xorg isn't installed, cd to: /usr/ports/x11/xorg and make config-recursive (If you add any options, run make config-recursive a second time after the shell prompt returns) and then make install clean HTH Tim Kellers On 08/12/10 15:40, Fred Boatwright wrote: Hi Oliver and Tim, I installed xinit but startx still doesn't exist. whereis returns nothing and man startx returns nothing. Fred Tim Kellers wrote: /usr/ports/x11/xinit On my system (with X, obviously, already installed): beta# whereis startx startx: /usr/local/bin/startx /usr/local/man/man1/startx.1.gz beta# pkg_which /usr/local/bin/startx xinit-1.2.0 beta# whereis xinit xinit: /usr/local/bin/xinit /usr/local/man/man1/xinit.1.gz /usr/ports/x11/xinit I' m not certain about the p5/Perl TK questions, but in the file: /usr/ports/x11-toolkits/p5-Tk/pkg-descr there is this description: This a re-port of a perl interface to Tk8.4 (John Ousterhout's production release). Perl API is essentially the same as Tk800.025 but has not been verified as compliant. It also includes all the C code parts of Tix8.1.4 from SourceForge. The perl code corresponding to Tix's Tcl code is not fully implemented. This version (Tk804.025) is only likely to work with perl5.8+. Tim Kellers On 08/12/10 12:02, Fred Boatwright wrote: Hello, Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. Also, is p5-Tk the same as Perl/Tk? Best regards, Fred ___ 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: X11 question
On Thu, Aug 12, 2010 at 11:43 PM, Fred Boatwright f...@blakemfg.com wrote: pkg_info | grep xinit doesn't return anything then, you doesn't have installed xinit, and startx can't be here pkg_add -rv xinit and then, if it doesn't fail, try again: rehash which startx rehash which startx startx: Command not found whereis X X: /usr/local/bin/X pkg_which /usr/local/bin/X pkg_which: Command not found Oliver: I used your porgle tool to find pkg_which and will install it later. Porgle appears to be a very useful tool. I installed x11-servers/xorg-server but maybe should have installed Xorg instead. However, from looking at the pkg-descr for xorg it looks like it will install a huge amount of software that will not get used. I am reluctant to do this. I have installed 8.0-RELEASE from the CD and I want to run olvwm for a desktop. I have been using Solaris 2.6 with the OpenWindows desktop for 12 years and consider it to be as close to perfection as one can get. I am being forced, kicking and screaming, to move to some other type of Unix on a PC and would like to continue using OpenWindows. It is probably going to be an uphill battle to get olvwm to work. Am I going to have to install xorg to get everything needed? Best regards, Fred Tim Kellers wrote: Fred, From man startx(1): SEE ALSO xinit(1), X(7), Xserver(1), Xorg(1), xorg.conf(5) Try: # whereis X If X is installed, it should return: # X: /usr/local/bin/X pkg_which if X is installed should return: # pkg_which /usr/local/bin/X xorg-server-1.7.5,1 If it doesn't, then the full X server isn't installed: Try: # whereis xorg xorg: /usr/ports/x11/xorg If xorg isn't installed, cd to: /usr/ports/x11/xorg and make config-recursive (If you add any options, run make config-recursive a second time after the shell prompt returns) and then make install clean HTH Tim Kellers On 08/12/10 15:40, Fred Boatwright wrote: Hi Oliver and Tim, I installed xinit but startx still doesn't exist. whereis returns nothing and man startx returns nothing. Fred Tim Kellers wrote: /usr/ports/x11/xinit On my system (with X, obviously, already installed): beta# whereis startx startx: /usr/local/bin/startx /usr/local/man/man1/startx.1.gz beta# pkg_which /usr/local/bin/startx xinit-1.2.0 beta# whereis xinit xinit: /usr/local/bin/xinit /usr/local/man/man1/xinit.1.gz /usr/ports/x11/xinit I' m not certain about the p5/Perl TK questions, but in the file: /usr/ports/x11-toolkits/p5-Tk/pkg-descr there is this description: This a re-port of a perl interface to Tk8.4 (John Ousterhout's production release). Perl API is essentially the same as Tk800.025 but has not been verified as compliant. It also includes all the C code parts of Tix8.1.4 from SourceForge. The perl code corresponding to Tix's Tcl code is not fully implemented. This version (Tk804.025) is only likely to work with perl5.8+. Tim Kellers On 08/12/10 12:02, Fred Boatwright wrote: Hello, Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. Also, is p5-Tk the same as Perl/Tk? Best regards, Fred ___ 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 Samuel Martín Moro {EPITECH.} tek4 CamTrace S.A.S (+033) 1 41 38 37 60 1 Allée de la Venelle 92150 Suresnes FRANCE Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) ___ 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
OpenOffice.org 3.2.1 build error
Whenever I try to build OOo, I get this error: http://pastebin.com/8DBKJAhb How do I rebuild cppunit? ___ 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: OpenOffice.org 3.2.1 build error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Caleb Stein wrote: Whenever I try to build OOo, I get this error: http://pastebin.com/8DBKJAhb How do I rebuild cppunit? Hi Caleb, A few resources suggest that the error is caused by a conflict with the installed devel/cppunit package. Can you pkg_delete it and try the OOo build again? This PR contains a reference to the problem near the bottom: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/132888 and pkg_delete is the suggested fix. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFMZHLf0sRouByUApARAhgWAKCKcr50VlHwPK3l9gVuY4xYsSHDewCdE/5d jUilW25SSonGFBrW19WSNaI= =gpsI -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
Re: X11 question
On Thu, 12 Aug 2010, Fred Boatwright wrote: [snip] I installed x11-servers/xorg-server but maybe should have installed Xorg instead. However, from looking at the pkg-descr for xorg it looks like it will install a huge amount of software that will not get used. I am reluctant to do this. I have installed 8.0-RELEASE from the CD and I want to run olvwm for a desktop. I have been using Solaris 2.6 with the OpenWindows desktop for 12 years and consider it to be as close to perfection as one can get. I am being forced, kicking and screaming, to move to some other type of Unix on a PC and would like to continue using OpenWindows. It is probably going to be an uphill battle to get olvwm to work. Am I going to have to install xorg to get everything needed? It really is the simplest way to get X working, and IMHO the least painful way to install xorg is to use the package. Without installing the xorg meta-port, you'd end up installing a lot of it by hand anyway. Come to think of it - since olvwm is a port (/usr/ports/x11-wm/olvwm), I *guess* it would pull in all of xorg as a dependency anyway. I, too, took a long time to come around to the idea that it doesn't do any harm to have unused software lying around. Disk is cheap; life is short. Hope this helps. Best regards, Fred Tim Kellers wrote: Fred, From man startx(1): SEE ALSO xinit(1), X(7), Xserver(1), Xorg(1), xorg.conf(5) Try: # whereis X If X is installed, it should return: # X: /usr/local/bin/X pkg_which if X is installed should return: # pkg_which /usr/local/bin/X xorg-server-1.7.5,1 If it doesn't, then the full X server isn't installed: Try: # whereis xorg xorg: /usr/ports/x11/xorg If xorg isn't installed, cd to: /usr/ports/x11/xorg and make config-recursive (If you add any options, run make config-recursive a second time after the shell prompt returns) and then make install clean HTH Tim Kellers On 08/12/10 15:40, Fred Boatwright wrote: Hi Oliver and Tim, I installed xinit but startx still doesn't exist. whereis returns nothing and man startx returns nothing. Fred Tim Kellers wrote: /usr/ports/x11/xinit On my system (with X, obviously, already installed): beta# whereis startx startx: /usr/local/bin/startx /usr/local/man/man1/startx.1.gz beta# pkg_which /usr/local/bin/startx xinit-1.2.0 beta# whereis xinit xinit: /usr/local/bin/xinit /usr/local/man/man1/xinit.1.gz /usr/ports/x11/xinit I' m not certain about the p5/Perl TK questions, but in the file: /usr/ports/x11-toolkits/p5-Tk/pkg-descr there is this description: This a re-port of a perl interface to Tk8.4 (John Ousterhout's production release). Perl API is essentially the same as Tk800.025 but has not been verified as compliant. It also includes all the C code parts of Tix8.1.4 from SourceForge. The perl code corresponding to Tix's Tcl code is not fully implemented. This version (Tk804.025) is only likely to work with perl5.8+. Tim Kellers On 08/12/10 12:02, Fred Boatwright wrote: Hello, Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. Also, is p5-Tk the same as Perl/Tk? Best regards, Fred ___ 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 -- Chris Hill ch...@monochrome.org ** [ Busy Expunging | ] ___ 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: X11 question
On Thu, 12 Aug 2010, Chris Hill wrote: On Thu, 12 Aug 2010, Fred Boatwright wrote: [snip] I installed x11-servers/xorg-server but maybe should have installed Xorg instead. However, from looking at the pkg-descr for xorg it looks like it will install a huge amount of software that will not get used. I am reluctant to do this. ... Am I going to have to install xorg to get everything needed? It really is the simplest way to get X working, and IMHO the least painful way to install xorg is to use the package. Without installing the xorg meta-port, you'd end up installing a lot of it by hand anyway. x11/xorg-minimal is reputed to be a lighter port. Untested by me, though. ___ 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
Is there a way to rebuild 32-bit libraries under amd64?
I have 8.0-STABLE amd64 machine, and I need to run some 32-bit FreeBSD process which runs fine on 8.0-STABLE i386. So I copied all shared libs needed by it from i386 into there respective locations on amd64, but under lib32/ folder. libexecinfo.so.1 = /usr/local/lib32/libexecinfo.so.1 (0x289ca000) libffi.so.5 = /usr/local/lib32/libffi.so.5 (0x289d5000) libstdc++.so.6 = /usr/local/lib32/libstdc++.so.6 (0x289da000) libm.so.5 = /usr/lib32/libm.so.5 (0x28ac4000) libgcc_s.so.1 = /usr/local/gcc/4.5.0-32bit/lib/libgcc_s.so.1 (0x28add000) libthr.so.3 = /usr/lib32/libthr.so.3 (0x28ae9000) libc.so.7 = /usr/lib32/libc.so.7 (0x28afe000) But the process crashes. After debugging I found that regexec returns result different from what it returns on i386 with the same input. So my question is: is there a way to rebuild for example /usr/lib32/libc.so.7 and /usr/lib32/libthr.so.3 on amd64? Or what may cause such incompatibility? Yuri ___ 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: X11 question
Indeed you are right. I installed xinit from ports but something didn't happen as it should have. I tried again using pkg_add as you suggested and startx does exist now. I installed olvwm several days ago and it did not pull in the xorg stuff also. Thanks for the help! Best regards, Fred Samuel Martín Moro wrote: On Thu, Aug 12, 2010 at 11:43 PM, Fred Boatwright f...@blakemfg.com wrote: pkg_info | grep xinit doesn't return anything then, you doesn't have installed xinit, and startx can't be here pkg_add -rv xinit and then, if it doesn't fail, try again: rehash which startx rehash which startx startx: Command not found whereis X X: /usr/local/bin/X pkg_which /usr/local/bin/X pkg_which: Command not found Oliver: I used your porgle tool to find pkg_which and will install it later. Porgle appears to be a very useful tool. I installed x11-servers/xorg-server but maybe should have installed Xorg instead. However, from looking at the pkg-descr for xorg it looks like it will install a huge amount of software that will not get used. I am reluctant to do this. I have installed 8.0-RELEASE from the CD and I want to run olvwm for a desktop. I have been using Solaris 2.6 with the OpenWindows desktop for 12 years and consider it to be as close to perfection as one can get. I am being forced, kicking and screaming, to move to some other type of Unix on a PC and would like to continue using OpenWindows. It is probably going to be an uphill battle to get olvwm to work. Am I going to have to install xorg to get everything needed? Best regards, Fred Tim Kellers wrote: Fred, From man startx(1): SEE ALSO xinit(1), X(7), Xserver(1), Xorg(1), xorg.conf(5) Try: # whereis X If X is installed, it should return: # X: /usr/local/bin/X pkg_which if X is installed should return: # pkg_which /usr/local/bin/X xorg-server-1.7.5,1 If it doesn't, then the full X server isn't installed: Try: # whereis xorg xorg: /usr/ports/x11/xorg If xorg isn't installed, cd to: /usr/ports/x11/xorg and make config-recursive (If you add any options, run make config-recursive a second time after the shell prompt returns) and then make install clean HTH Tim Kellers On 08/12/10 15:40, Fred Boatwright wrote: Hi Oliver and Tim, I installed xinit but startx still doesn't exist. whereis returns nothing and man startx returns nothing. Fred Tim Kellers wrote: /usr/ports/x11/xinit On my system (with X, obviously, already installed): beta# whereis startx startx: /usr/local/bin/startx /usr/local/man/man1/startx.1.gz beta# pkg_which /usr/local/bin/startx xinit-1.2.0 beta# whereis xinit xinit: /usr/local/bin/xinit /usr/local/man/man1/xinit.1.gz /usr/ports/x11/xinit I' m not certain about the p5/Perl TK questions, but in the file: /usr/ports/x11-toolkits/p5-Tk/pkg-descr there is this description: This a re-port of a perl interface to Tk8.4 (John Ousterhout's production release). Perl API is essentially the same as Tk800.025 but has not been verified as compliant. It also includes all the C code parts of Tix8.1.4 from SourceForge. The perl code corresponding to Tix's Tcl code is not fully implemented. This version (Tk804.025) is only likely to work with perl5.8+. Tim Kellers On 08/12/10 12:02, Fred Boatwright wrote: Hello, Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. Also, is p5-Tk the same as Perl/Tk? Best regards, Fred ___ 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 Samuel Martín Moro {EPITECH.} tek4 CamTrace S.A.S (+033) 1 41 38 37 60 1 Allée de la Venelle 92150 Suresnes FRANCE Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) ___ 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
Re: UPS question
Ryan Coleman wrote: On Aug 12, 2010, at 12:52 PM, Al Plant wrote: David Brodbeck wrote: On Wed, August 11, 2010 1:18 pm, Ryan Coleman wrote: On Aug 11, 2010, at 3:06 PM, David Brodbeck wrote: On Wed, August 11, 2010 12:25 pm, Ryan Coleman wrote: He thinks that at 500W needed it would give me about 12 minutes on a 1400VA. My consideration is, then, give the server 2 minutes on battery. If full power has not been returned, shut down the server but leave the modem (w/ wireless) and switch running with power for up to 6 hours. A bit of advice: If this is an unattended system, give some thought to how you will boot the server back up if the outage is longer than two minutes but shorter than six hours. Most UPS installations have *some* kind of race condition issue if power comes back after the servers have begun a shutdown, but in your case it's an unusually long window. Meaning that my 2-minute window is unusually long? If the UPS can support the system for 12 minutes, I say give it 20% of the life of the support because our power outages here are usually spikes that kill my current web server (but amazingly *not* my file server). In fact, one of those power fluxes occurred last night. I love storms for the light shows, but hate them for the toll they take on my servers. Nope, 2 minutes is fine, maybe even short depending on how long your system takes to shut down. What I'm asking about is this scenario: 1. Power goes out. 2. Server shuts itself down after 2 minutes. 3. Power comes back on before the UPS batteries are exhausted. The server never sees a power cycle, so it doesn't boot itself back up until someone physically goes and pushes the button. ## I have had these power dips and surges here in Hawaii. I have installed UPS power from two stationary batters that will run the servers for 12 hours. We have experienced extensive outages in the past and this was our only solution. Surges are almost impossible to stop. I have them jump cross a surge protector. I have recently had several UPS Desktop backups fail from a surge and then a drop below 70 v. This caused the UPS to have the charging diodes blow. It was cheaper to replace the UPS 's than to repair them. #3. The motherboard bios can be set to stop a server from self booting from a power outage. Yes. The downside comes from when the BIOS is told to turn on the server at, say, 10pm and the power is still out... it starts the process and runs out of battery mid-way through the boot before it gets the chance to load the UPS controller. #3. Thats why setting the bios not to self boot would work. (Stopping the bios from turning the server on after an outage.) Someone would have to check the power status manually before throwing the switch manually to make it come up after power has been restored. Also turning servers and some desktops off and on is many cases a bad idea. Example: I was called out today to look at a desktop that was turned off while the user went away for a month. It did not survive the turn on. Corrosion took its toll on the mobo and fans. The humidity was the cause. No humidity in the case when the unit is on and fans (3 of them) are working. Hope you can solve your problem. -- ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + email: n...@hdk5.net All that's really worth doing is what we do for others.- Lewis Carrol ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Telnet = servname ai_socktype error
FreeBSD my.domain.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Testing a Qmail SMTP installation with Telnet (normally use SSH for networking) Temporary Telnet set up for testing == _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Server set up == % cat /etc/services | grep telnet telnet 23/tcp telnet 23/udp % cat /etc/services | grep smtp smtp 25/tcpmail #Simple Mail Transfer smtp 25/udpmail #Simple Mail Transfer % cat /etc/rc.conf inetd_enable=YES _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ But % telnet 0 smtp 0: servname not supported for ai_socktype % telnet localhost 25 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection reset by peer Trying ::1... telnet: connect to address ::1: Connection refused telnet: Unable to connect to remote host sockstat -4 == sockstat -4 USER COMMANDPID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS myname sshd 1732 3 tcp4 nnn.xxx.yyy.zzz:22 aaa.bbb.ccc.ddd:1256 root sshd 1709 3 tcp4 nnn.xxx.yyy.zzz:22 aaa.bbb.ccc.ddd:1256 root gnome-sess 1529 10 tcp4 *:54384 *:* www httpd 1328 3 tcp4 nnn.xxx.yyy.zzz:80 *:* www httpd 1328 4 tcp4 nnn.xxx.yyy.zzz:443 *:* www httpd 1327 3 tcp4 nnn.xxx.yyy.zzz:80 *:* www httpd 1327 4 tcp4 nnn.xxx.yyy.zzz:443 *:* www httpd 1326 3 tcp4 nnn.xxx.yyy.zzz:80 *:* www httpd 1326 4 tcp4 nnn.xxx.yyy.zzz:443 *:* www httpd 1325 3 tcp4 nnn.xxx.yyy.zzz:80 *:* www httpd 1325 4 tcp4 nnn.xxx.yyy.zzz:443 *:* www httpd 1324 3 tcp4 nnn.xxx.yyy.zzz:80 *:* www httpd 1324 4 tcp4 nnn.xxx.yyy.zzz:443 *:* root Xorg 1314 3 tcp4 *:6000*:* root inetd 1267 6 tcp4 *:143 *:* root sshd 1239 4 tcp4 *:22 *:* root httpd 1207 3 tcp4 nnn.xxx.yyy.zzz:80 *:* root httpd 1207 4 tcp4 nnn.xxx.yyy.zzz:443 *:* avahiavahi-daem 1176 15 udp4 *:5353*:* avahiavahi-daem 1176 16 udp4 *:60699 *:* mysqlmysqld 948 11 tcp4 *:3306*:* root perl5.8.9 794 5 tcp4 *:1 *:* root perl5.8.9 794 6 udp4 *:1 *:* qmaild tcpserver 778 3 tcp4 *:25 *:* root tcpserver 776 3 tcp4 *:110 *:* root mountd 667 7 udp4 *:914 *:* root mountd 667 8 tcp4 *:914 *:* root syslogd580 7 udp4 *:514 *:* root ntpd 371 20 udp4 *:123 *:* root ntpd 371 22 udp4 nnn.xxx.yyy.zzz:123 *:* root ntpd 371 25 udp4 127.0.0.1:123 *:* Anyone having ahy ideas as to what may be amiss? Thanks! -- View this message in context: http://old.nabble.com/Telnet-%3D%3E-servname-ai_socktype-error-tp29425269p29425269.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: Telnet = servname ai_socktype error
In the last episode (Aug 12), jaymax said: FreeBSD my.domain.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Testing a Qmail SMTP installation with Telnet (normally use SSH for networking) Temporary Telnet set up for testing == _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Server set up == % telnet localhost 25 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection reset by peer That sounds like you connected but qmail crashed or otherwise uncleanly closed the socket. Does a tcpdump on lo0 show any interesting activity when you try that command? -- 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: Is there a way to rebuild 32-bit libraries under amd64?
I have 8.0-STABLE amd64 machine, and I need to run some 32-bit FreeBSD process which runs fine on 8.0-STABLE i386. So I copied all shared libs needed by it from i386 into there respective locations on amd64, but under lib32/ folder. libexecinfo.so.1 = /usr/local/lib32/libexecinfo.so.1 (0x289ca000) libffi.so.5 = /usr/local/lib32/libffi.so.5 (0x289d5000) libstdc++.so.6 = /usr/local/lib32/libstdc++.so.6 (0x289da000) libm.so.5 = /usr/lib32/libm.so.5 (0x28ac4000) libgcc_s.so.1 = /usr/local/gcc/4.5.0-32bit/lib/libgcc_s.so.1 (0x28add000) libthr.so.3 = /usr/lib32/libthr.so.3 (0x28ae9000) libc.so.7 = /usr/lib32/libc.so.7 (0x28afe000) But the process crashes. After debugging I found that regexec returns result different from what it returns on i386 with the same input. So my question is: is there a way to rebuild for example /usr/lib32/libc.so.7 and /usr/lib32/libthr.so.3 on amd64? Or what may cause such incompatibility? Did you install the 32-bit compatibility libraries and utilities on amd64, by selecting the lib32 option with sysinstall(8), or by running ../lib32/install.sh from the FreeBSD media, or by rebuilding and reinstalling world without a WITHOUT_LIB32 defined in src.conf(5) or make.conf(5)? Then did you make sure that rtld(1) has the proper hints to find any needed 32-bit libraries that are not in the lib32 part of the base system, by defining the right values for ldconfig32_paths and/or ldconfig_local32_dirs in rc.conf(5)? b. ___ 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