From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 00:10:05 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64ED41065677 for ; Sun, 28 Dec 2008 00:10:05 +0000 (UTC) (envelope-from dan@nyi.unixathome.org) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3F61C8FC19 for ; Sun, 28 Dec 2008 00:10:05 +0000 (UTC) (envelope-from dan@nyi.unixathome.org) Received: from localhost (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id D105B50902 for ; Sun, 28 Dec 2008 00:10:04 +0000 (GMT) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by localhost (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n1SDz6d9M7hv for ; Sun, 28 Dec 2008 00:10:02 +0000 (GMT) Received: by nyi.unixathome.org (Postfix, from userid 1001) id D9B4450846; Sun, 28 Dec 2008 00:10:01 +0000 (GMT) From: Dan Langille To: freebsd-questions@freebsd.org Message-Id: <20081228001001.D9B4450846@nyi.unixathome.org> Date: Sun, 28 Dec 2008 00:10:01 +0000 (GMT) Subject: The FreeBSD Diary: 2008-12-07 - 2008-12-27 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 00:10:05 -0000 The FreeBSD Diary contains a large number of practical examples and how-to guides. This message is posted weekly to freebsd-questions@freebsd.org with the aim of letting people know what's available on the website. Before you post a question here it might be a good idea to first search the mailing list archives and/or The FreeBSD Diary . -- Dan Langille BSDCan - http://www.BSDCan.org/ - BSD Conference From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 00:17:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5E851065674 for ; Sun, 28 Dec 2008 00:17:47 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 7B9068FC17 for ; Sun, 28 Dec 2008 00:17:47 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id A292BAFC201; Sat, 27 Dec 2008 15:17:46 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sat, 27 Dec 2008 15:17:46 -0900 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> Cc: Mitar Subject: Re: Open with O_APPEND fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 00:17:47 -0000 On Saturday 27 December 2008 11:46:03 Mitar wrote: > Hi! > > I discovered that open syscall with only O_APPEND fails with > "permission denied" if an user does not have rights to write to a file > (what is normal) even if it is root (what is a surprise). For example, > if I have a file owned by www:www and with 644 permissions root cannot > do open("testfile", O_APPEND) call. If I change ownership of I change > permission to for example 666, call succeedes. > > This works on Linux (Debian). So this is a feature? Or a bug? > > (I discovered that because htpasswd failed to add new > username/password pair (ran as root) to a file owner by www.) > > Checked on FreeBSD 7.0-STABLE. Can't reproduce: $ ls -al test.txt -rw-r--r-- 1 www www 33 Dec 27 15:12 test.txt $ sudo ./open test.txt opened as fd 3 $ cat test.txt this file cannot be appended to $ cat -n open.c 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 9 int main(void) 10 { 11 const char fname[] = "test.txt"; 12 const char txt[] = "cannot be appended to\n"; 13 int fd; 14 15 fd = open(fname, O_WRONLY|O_APPEND); 16 if( fd < 0 ) 17 err(EX_NOINPUT, "Failed to open %s", fname); 18 19 printf("%s opened as fd %i\n", fname, fd); 20 if( write(fd, txt, sizeof(txt)) < 0 ) 21 err(EX_DATAERR, "write()"); 22 close(fd); 23 return EX_OK; 24 } -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 00:51:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C4F3106564A for ; Sun, 28 Dec 2008 00:51:24 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from smtp3.brturbo.com.br (smtp3.brte.com.br [200.199.201.175]) by mx1.freebsd.org (Postfix) with ESMTP id C08198FC17 for ; Sun, 28 Dec 2008 00:51:23 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from lobo (unknown [189.70.101.241]) by smtp3.brturbo.com.br (Postfix) with ESMTP id F34F233E64 for ; Sat, 27 Dec 2008 22:40:29 -0200 (BRST) From: Mario Lobo Organization: DigiArt Systems To: freebsd-questions@freebsd.org Date: Sat, 27 Dec 2008 21:51:23 -0300 User-Agent: KMail/1.9.10 References: <560f92640812221349y683a7cbhce8ae0f22a8bedf0@mail.gmail.com> <495680E9.7070800@sequestered.net> <495686E2.8090702@telia.com> In-Reply-To: <495686E2.8090702@telia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812272151.23605.mlobo@digiart.art.br> Subject: Re: Wireless router? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 00:51:24 -0000 On Saturday 27 December 2008 16:49:54 Roger Olofsson wrote: > Corey Chandler skrev: > > Roger Olofsson wrote: > >> Corey Chandler skrev: > >>> Nerius Landys wrote: > >>>> Thank you all for your suggestions. This will be a project for me > >>>> over the holidays. I decided to go the standalone wireless router > >>>> approach. > >>> > >>> Good man! > >>> > >>>> I will need to figure out how to configure my standalone > >>>> wireless router to "pass everything through" to the internal LAN that > >>>> I already have. > >>> > >>> It's called "Bridge mode" on most APs-- it does exactly what you > >>> describe. Just make sure things like "DHCP server" are turned off or > >>> you'll see some... odd breakages. > >>> > >>>> Also I don't know too much about security, like how > >>>> to prevent eavesdroppers from connecting to my internal network. One > >>>> of you mentioned access lists, and I assume that means I tell the > >>>> wireless router which MAC addresses it accepts, and nothing else. > >>> > >>> Ugh. MAC addresses are trivial to spoof-- I usually don't bother > >>> with using them for security, although I do use 'em to ensure that > >>> particular machines always inherit particular addresses. > >>> > >>>> Is there any other way to provide security? Like a password-protected > >>>> network? What are the buzzwords for these security schemes? Which > >>>> security scheme do you recommend for preventing random people within > >>>> proximity from connecting to my internal netowrk? > >>> > >>> Absolutely. Google for WPA or WPA2; WEP has been broken and is > >>> trivial to bruteforce, so I'd not bother with that. > >>> > >>> Once you get the unit in, feel free to email me off list for > >>> configuration questions; it sounds like a fun project! > >>> > >>> -- CJC > >>> _______________________________________________ > >>> freebsd-questions@freebsd.org mailing list > >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >>> To unsubscribe, send any mail to > >>> "freebsd-questions-unsubscribe@freebsd.org" > >>> > >>> > >>> ----------------------------------------------------------------------- > >>>- > >>> > >>> > >>> No virus found in this incoming message. > >>> Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus > >>> Database: 270.10.0/1861 - Release Date: 2008-12-22 11:23 > >> > >> Hello Corey, > >> > >> I don't use 'bridge mode'. I set a normal LAN ip for the wifi router - > >> as well as ips to the FreeBSD gateway and dns. This is for the LAN > >> part of the router - then another internal LAN ip for the wifi part. > >> > >> To examplify. > >> > >> Wifi router LAN part - ip 192.168.0.20, gateway 192.168.0.1, dns > >> 192.168.0.10 and 192.168.0.11. > >> > >> Wifi wifi part - network 10.0.0.1 - 10.0.0.10. > > > > The problem with doing that is a lot of systems start throwing weird > > errors in a double NAT environment. I'd probably avoid that step and > > restrict wireless to its own VLAN if I were to go that route... > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > > > > > ------------------------------------------------------------------------ > > > > > > No virus found in this incoming message. > > Checked by AVG - http://www.avg.com > > Version: 8.0.176 / Virus Database: 270.10.0/1865 - Release Date: > > 2008-12-26 13:01 > > Hello Corey, > > There is no double NAT involved. > > /Roger > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" That's correct. I have a D-link WBR-1310 here at home. Don't know if it's a bad or hip piece. I only know it was inside my budget and it does its job perfectly. Like I said on my first post to this thread, The WAN port is not used, hence no NAT inside the unit. Configured its LAN port ip with one of my LAN, plugged it to the switch, enabled WAP2 and assign a free LAN ip to any wireless device I want to allow on our home (plus the WAP key, of course).Voila, access point. IF DHCP is wanted, I can use the unit's own but since its only one laptop I assigned a static IP to it. The only NAT happens on the freebsd machine. Don't know about the reputation of the Linksys WRT54GL. The only one I've tried I borrowed from a friend and worked very nicely also. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FREE) From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 01:30:24 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A67B91065673 for ; Sun, 28 Dec 2008 01:30:24 +0000 (UTC) (envelope-from kusanagiyang@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.186]) by mx1.freebsd.org (Postfix) with ESMTP id 60AEB8FC18 for ; Sun, 28 Dec 2008 01:30:24 +0000 (UTC) (envelope-from kusanagiyang@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so2966676rne.12 for ; Sat, 27 Dec 2008 17:30:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=LnM5UAOG2RLrqTouX/0rhd0k2ptSU2XURd2CwLhmSCI=; b=Ey5RQQcYpVCzcmC27U0bULweUrYXG8XQWPIWssrnVIkxXWoOPyAK44Q/9FPWgc2Caw X0kRiyl74o4Ukx0mmYT97fpaLuzSYlZkWBGT3ZF+/ao4FHrCKw68+a55R+B7u2gU0cUC xG3IbsNxtXph8uEAw7CN4w9qH+pWXQa8QiphY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=OYj/U8zGydv4SXWNAMPFFFZMjTq24Oa4WZcCC/5LUON8ttANIoy4uAXva91pGv+pNK YJHDGEvEmfcpQ0j6wQKG344ZbdLDuEz1eZ8x6PEAQq4gfbibdwc/1jvmO4SVSGFsdwZq GXSw5ClPr9K3LXAX1i87/vCQghhEmQhjh0Y6w= Received: by 10.65.218.13 with SMTP id v13mr9491966qbq.69.1230427823292; Sat, 27 Dec 2008 17:30:23 -0800 (PST) Received: by 10.64.208.13 with HTTP; Sat, 27 Dec 2008 17:30:23 -0800 (PST) Message-ID: Date: Sat, 27 Dec 2008 17:30:23 -0800 From: "Richard Yang" To: usleepless@gmail.com In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org Subject: Re: nat and ipfw, port forwarding X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 01:30:24 -0000 thank you, usleep (nice name)i somehow made it work by 1. add "redirect_port udp 10.0.0.200:50000 50000" in natd.conf 2. allow all traffic and diversion in ipfw.rules i tried to limit the traffic by modifying the rules in ipfw.rules, but unsuccessfully. so i just leave it be at this moment. i am very confused by the roles of natd and ipfw, and how they should work together. rich On Sat, Dec 27, 2008 at 8:40 AM, wrote: > Hi Ricard, > > On Fri, Dec 26, 2008 at 9:27 PM, Richard Yang wrote: > >> hi, >> i have a ssh machine behind a freebsd firewall with nat and ipfw. >> how do i make port forwarding so internet can access the ssh machine? >> thanx >> > > i think you need to configure /etc/ipnat.conf ( read 'man ipnat' ). this is > a example definition: > rdr em1 0.0.0.0/0 port 2223 -> 192.168.1.96 port 22 > > ( this redirects incoming traffic on outside-interface em1 port 2223 to an > internal machine on port 22 ) > > also, include "firewall_nat_enable" in your rc.conf ( read 'man rc.conf' ) > > to configure the settings from ipnat.conf, run "ipnat -C -f > /etc/ipnat.conf" > > regards, > > usleep > >> >> > From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 01:49:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ECFF1065670 for ; Sun, 28 Dec 2008 01:49:09 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id 445238FC17 for ; Sun, 28 Dec 2008 01:49:09 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBS1ncMb073331; Sat, 27 Dec 2008 17:49:38 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 27 Dec 2008 17:49:03 -0800 (PST) Date: Sat, 27 Dec 2008 17:49:03 -0800 From: Gary Kline To: Giorgos Keramidas Message-ID: <20081228014903.GA82585@thought.org> References: <20081227011335.GA29354@thought.org> <87ocyy2you.fsf@kobe.laptop> <20081227015634.GB29639@thought.org> <8763l61gbd.fsf@kobe.laptop> <20081227094012.GA39306@thought.org> <87zlihixlt.fsf@kobe.laptop> <20081227213551.GA75428@thought.org> <87k59lgu0k.fsf@kobe.laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k59lgu0k.fsf@kobe.laptop> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: FreeBSD Mailing List Subject: Re: how can i be certain that a file has copied exactly? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 01:49:09 -0000 On Sat, Dec 27, 2008 at 11:58:35PM +0200, Giorgos Keramidas wrote: > On Sat, 27 Dec 2008 13:35:51 -0800, Gary Kline wrote: > > On Sat, Dec 27, 2008 at 02:58:06PM +0200, Giorgos Keramidas wrote: > >> On Sat, 27 Dec 2008 01:40:13 -0800, Gary Kline wrote: > > [[ save the electrons!]] > > Your code copies flawlessly. I noticed late last night that cmp uses > > the same byte-by-byte cp and IIRC checks each to make certain they > > bytes are identical. My copyFile() function simply used fopen, fgets, > > and fputs. I yanked it from a program that copied files from ~/Mail > > where the lines were around 80 bytes rather than in the thousands. > > With few newlines. The gotcha got me, in other words! Thanks much > > for the function! > > That's good news, because I didn't even compile it. I just wrote it in > my mailer and hit send. I'm glad it worked :) > > For what it's worth, if you are not handling *text* files, fgets() and > fputs() are probably a bad idea. They are line oriented, and they > depend on the presence of '\n' characters. The concept of ``lines'' is, > at best, ill defined for binary files. So it makes more sense to use > either byte-for-byte copies and rely on stdio to do buffering, or to use > some sort of custom buffer and fread()/fwrite() or plain read()/write(). > Just got up from a nap [ and *coffee*]. Still, after last night's until past 03.30 with TWO giggling teenagers, god help me:) --never had sleepover when i was 13-- Anyway, your comment about writing that from scratch brought to mind something I've been pondering recently. I already have several kinds of main() functions that let you go in various directions. Input by re-direction, input from the cmdline, even both. These save me typing maybe 20 to 50 lines. If you enjoy typing and rewriting code rom scratch a zillion times, fine, but at least I would rather use my ``prefab'' main()'s. I also have some very simple and efficient string-matching functions [[ for SHORT lines!! ]] and other thing we do very often. It was (is?) throw-away code. Does it made sense to have a place on the web where you can get these kind of canned functions? I have perhaps 20 of these functions named and tagged. This was, I believe, at least one idea behind C++, but at least I have never seen any sites that offer C or C++ functions to do ``X''. gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 02:06:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BD3C106564A for ; Sun, 28 Dec 2008 02:06:59 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id A72868FC1A for ; Sun, 28 Dec 2008 02:06:58 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl57-25.kln.forthnet.gr [77.49.184.25]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mBS26V7S023132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 28 Dec 2008 04:06:36 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mBS26UNo040810; Sun, 28 Dec 2008 04:06:30 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mBS26T01040809; Sun, 28 Dec 2008 04:06:29 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Gary Kline References: <20081227011335.GA29354@thought.org> <87ocyy2you.fsf@kobe.laptop> <20081227015634.GB29639@thought.org> <8763l61gbd.fsf@kobe.laptop> <20081227094012.GA39306@thought.org> <87zlihixlt.fsf@kobe.laptop> <20081227213551.GA75428@thought.org> <87k59lgu0k.fsf@kobe.laptop> <20081228014903.GA82585@thought.org> Date: Sun, 28 Dec 2008 04:06:28 +0200 In-Reply-To: <20081228014903.GA82585@thought.org> (Gary Kline's message of "Sat, 27 Dec 2008 17:49:03 -0800") Message-ID: <87myehvysb.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: mBS26V7S023132 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.867, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.53, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: FreeBSD Mailing List Subject: Re: how can i be certain that a file has copied exactly? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 02:06:59 -0000 On Sat, 27 Dec 2008 17:49:03 -0800, Gary Kline wrote: > I also have some very simple and efficient string-matching > functions [[ for SHORT lines!! ]] and other thing we do very often. > It was (is?) throw-away code. Does it made sense to have a place > on the web where you can get these kind of canned functions? I > have perhaps 20 of these functions named and tagged. This was, I > believe, at least one idea behind C++, but at least I have never > seen any sites that offer C or C++ functions to do ``X''. There have been efforts in the past to do something like this. For example, I still remember discovering 'clib' at http://mapage.noos.fr/emdel/clib.htm a few years ago. It seems a nice idea to build a "personal toolset", but my impression is that dumping a bunch of functions on a web page is not enough anymore. The world has been `spoiled' by open source projects, so if an effort like this expects to be taken seriously from the world, it should at least have: * A public source repository, with full history, readable from everyone and compatible with one of the Open Source SCM tools. * At least one mailing list for questions & announcements of new releases. * At least one visibly active maintainer, who is willing to fix bugs, reply to email questions, and perform other `benevolent dictator' tasks. * Up to date manpages for all the functions in the collection. This sounds like a lot of work, because it *is*. That's the price of writing something that others may want to use though. Otherwise everyone can use the GNU glib and their system libc.so library :) From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 02:36:02 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BCA91065673 for ; Sun, 28 Dec 2008 02:36:02 +0000 (UTC) (envelope-from edmundj3@yahoo.com) Received: from web63408.mail.re1.yahoo.com (web63408.mail.re1.yahoo.com [69.147.97.48]) by mx1.freebsd.org (Postfix) with SMTP id C702E8FC1C for ; Sun, 28 Dec 2008 02:36:01 +0000 (UTC) (envelope-from edmundj3@yahoo.com) Received: (qmail 95049 invoked by uid 60001); 28 Dec 2008 02:09:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=5Vng7Sl8xg8z4KbmzUVCcx+891CaU7OnjpBpF7Esewn0qtNmYTsvR/FPU3FfTMYgSufb+W/39wuHaphterOxzYa5oSfneX5iX18J4p+V4TMyLmnI602TiXiCOxrq75hvdCJQXfpwAZa22WY8CAjqPEU3vr4TFQBd31GmBFu6WLs=; X-YMail-OSG: 9GavIVwVM1maCutkatuO9BGjtmpHoufEVh8qk2diXCTEatzTEefSQVOvwJQXYYVl44j4hglRkjv0AK1XVCR6mKONp82TKXFNrmIQCGvsx9LNsgCWhvyD9G_C7tKY9omd_stszPhI4Avs_ju7OLfkfpyn Received: from [69.72.26.176] by web63408.mail.re1.yahoo.com via HTTP; Sat, 27 Dec 2008 18:09:20 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Sat, 27 Dec 2008 18:09:20 -0800 (PST) From: edmund jones To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <639141.94259.qm@web63408.mail.re1.yahoo.com> Cc: Subject: cdrom restatus X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: edmundj3@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 02:36:02 -0000 Hello Happy Holidays! Hope you had a great new years. Im just writing cause I have a little problem. I must have made an adjustment while trying to round out the compatibility of the jdk. I guess to the parameter node of fstab and or /dev. Now when I try to load the cdrom from any where I get "...kernel cannot have more than 32 cdrom devices." Im stumped. Though, I just checked the site and found a little data. However could you offer any way to remove the 32 cd - cause -df does not show any loaded. I'll fiddle with the -o and make sure Im syntax ok. but if "you" had to quess -?? Please contact Thanks. From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 03:15:52 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 098001065677 for ; Sun, 28 Dec 2008 03:15:52 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (aristotle.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id B1B9F8FC12 for ; Sun, 28 Dec 2008 03:15:51 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBS3GG0J073823; Sat, 27 Dec 2008 19:16:16 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 27 Dec 2008 19:15:42 -0800 (PST) Date: Sat, 27 Dec 2008 19:15:41 -0800 From: Gary Kline To: Giorgos Keramidas Message-ID: <20081228031541.GB82585@thought.org> References: <20081227011335.GA29354@thought.org> <87ocyy2you.fsf@kobe.laptop> <20081227015634.GB29639@thought.org> <8763l61gbd.fsf@kobe.laptop> <20081227094012.GA39306@thought.org> <87zlihixlt.fsf@kobe.laptop> <20081227213551.GA75428@thought.org> <87k59lgu0k.fsf@kobe.laptop> <20081228014903.GA82585@thought.org> <87myehvysb.fsf@kobe.laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87myehvysb.fsf@kobe.laptop> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: FreeBSD Mailing List Subject: Re: how can i be certain that a file has copied exactly? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 03:15:52 -0000 On Sun, Dec 28, 2008 at 04:06:28AM +0200, Giorgos Keramidas wrote: > On Sat, 27 Dec 2008 17:49:03 -0800, Gary Kline wrote: > > I also have some very simple and efficient string-matching > > functions [[ for SHORT lines!! ]] and other thing we do very often. > > It was (is?) throw-away code. Does it made sense to have a place > > on the web where you can get these kind of canned functions? I > > have perhaps 20 of these functions named and tagged. This was, I > > believe, at least one idea behind C++, but at least I have never > > seen any sites that offer C or C++ functions to do ``X''. > > There have been efforts in the past to do something like this. > > For example, I still remember discovering 'clib' at > > http://mapage.noos.fr/emdel/clib.htm > > a few years ago. > > It seems a nice idea to build a "personal toolset", but my impression > is that dumping a bunch of functions on a web page is not enough > anymore. The world has been `spoiled' by open source projects, so if > an effort like this expects to be taken seriously from the world, it > should at least have: > > * A public source repository, with full history, readable from > everyone and compatible with one of the Open Source SCM tools. > > * At least one mailing list for questions & announcements of new > releases. > > * At least one visibly active maintainer, who is willing to fix > bugs, reply to email questions, and perform other `benevolent > dictator' tasks. > > * Up to date manpages for all the functions in the collection. > > This sounds like a lot of work, because it *is*. That's the price of > writing something that others may want to use though. Otherwise > everyone can use the GNU glib and their system libc.so library :) > :-) Well, I knew if I asked around and the right places, that eventually i'd get an intelligent answer. When I began labeling and tagging my few fn's, i realized how much work it was ... and that is just for us BSD'ers. It wouldn't work on other systems--at least not the driver side. But that was never my primary thought. I was thinking more of the application area; code that you use maybe for a few hours or days, then pitch. Or maybe tarbar with bzip. Could this be the next hundred-thousand-dollar idea? [I'd say $million, but not with the global *D*epression we may be heading into/toward. Seriously. I realize that corporation ABC wants to wipe away corporation XYZ, say, but having this global, completely free/open source site would help both equally. Seems to me this kind of site would benefit everybody and harm no one. So the maintainer/dictator would probably have to be paid. Or else get a free honey-glazed ham on New Years. I'll check out glib. Meanwhile there is publib. It has some pretty useful functions, some of whic h I had to do the hard way, then found that liw had already done them. gary > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 03:16:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84D891065676 for ; Sun, 28 Dec 2008 03:16:42 +0000 (UTC) (envelope-from mmitar@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 3FA868FC08 for ; Sun, 28 Dec 2008 03:16:42 +0000 (UTC) (envelope-from mmitar@gmail.com) Received: by an-out-0708.google.com with SMTP id c2so1649340anc.13 for ; Sat, 27 Dec 2008 19:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=BgKa864/ckyyDnqJcPFhUYwVLy/f/6e/1ZLE9lRMHhk=; b=IUYtOMMkB866jFP4y3ChanrXM/8HnEeenjm+L8o+lRQqRntP1PIWXzydPn7ZkaYWgb 7FQxlqL6nx7uwI1NiSPI92jZyPSyy89ATwbHTp1lV6pmFqvSA3YKuXIPIEzfgFBnq5jF Y5ENPgvFFQI74O86gwa5OfsB9VKl1cEJFOsZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=K0wekplPIgyv4yMAkzht2TzlbkOCKHcQsznVp5vGtALGWgByBYS6jeP0emaREC3NQG foVZx6viA7R9W48SKoOMT6XsS6qT6WJzwQ71ayq7GZ78EmIeiiD07XCEcZN1niNm6gMT FuzkQ0p1YPBd5pXH7nVRL8WhkzhcgEcT6PCS8= Received: by 10.100.110.15 with SMTP id i15mr7031881anc.151.1230434201626; Sat, 27 Dec 2008 19:16:41 -0800 (PST) Received: by 10.100.6.8 with HTTP; Sat, 27 Dec 2008 19:16:41 -0800 (PST) Message-ID: Date: Sun, 28 Dec 2008 04:16:41 +0100 From: Mitar To: Mel In-Reply-To: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> Cc: freebsd-questions@freebsd.org Subject: Re: Open with O_APPEND fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 03:16:42 -0000 Hi! On Sun, Dec 28, 2008 at 1:17 AM, Mel wrote: > 15 fd = open(fname, O_WRONLY|O_APPEND); Try only with O_APPEND, without O_WRONLY. I have just found a bug report about that: https://issues.apache.org/bugzilla/show_bug.cgi?id=45923 But the question remains: why this fails? It works on Linux, as it is seen from bug report it works also on FreeBSD 6.x, why it does not work anymore on FreeBSD 7.x? Is it correct that it does not work? I have not found anywhere written that O_WRONLY should be specified with O_APPEND. Mitar From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 03:58:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40D821065670 for ; Sun, 28 Dec 2008 03:58:25 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id F06EE8FC0C for ; Sun, 28 Dec 2008 03:58:24 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBS3wsUM074026; Sat, 27 Dec 2008 19:58:54 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 27 Dec 2008 19:58:20 -0800 (PST) Date: Sat, 27 Dec 2008 19:58:19 -0800 From: Gary Kline To: Mitar Message-ID: <20081228035819.GD82585@thought.org> References: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: Mel , freebsd-questions@freebsd.org Subject: Re: Open with O_APPEND fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 03:58:25 -0000 On Sun, Dec 28, 2008 at 04:16:41AM +0100, Mitar wrote: > Hi! > > On Sun, Dec 28, 2008 at 1:17 AM, Mel > wrote: > > 15 fd = open(fname, O_WRONLY|O_APPEND); > > Try only with O_APPEND, without O_WRONLY. > > I have just found a bug report about that: > > https://issues.apache.org/bugzilla/show_bug.cgi?id=45923 > > But the question remains: why this fails? It works on Linux, as it is > seen from bug report it works also on FreeBSD 6.x, why it does not > work anymore on FreeBSD 7.x? Is it correct that it does not work? I > have not found anywhere written that O_WRONLY should be specified with > O_APPEND. > Just a thought, but have you figured out what the value of that OR is? then check the 6.x and 7.x src. gary > > Mitar > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 04:04:00 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C30EE1065670 for ; Sun, 28 Dec 2008 04:04:00 +0000 (UTC) (envelope-from mmitar@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 7AE438FC12 for ; Sun, 28 Dec 2008 04:04:00 +0000 (UTC) (envelope-from mmitar@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2199006ywe.13 for ; Sat, 27 Dec 2008 20:03:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=kukHj2jZSVHgUmmMxts+Um0Zwxijxrz7R/Y++aoQGl8=; b=N4qDB422vl4oz5dIIUre2tv+yWjz1ydbqf8aEciYS3pIHoeE5VwUMsjybgNASBTwxq Q33gaehQAg46nQLVTZrQsDtdiyUS9s1bttz6jT9Y4IcLXrOWCLEWldareGxl4KqSqFvC GEUDM2L4th7FRogRI2yiuZymDCajtly/YSj/c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WcBbBAJy/+Cja9eVTCjFHJh2BPn5PBfxcSDAM4uWpPLiJ+OdHwREYEjfZ9dPbLGVDL GImHrNja/wqScVETg/YjMTbCaIx3xD52jYvjxqftQYAfHecwkxB3hOmuU3hITUaGywqR +OFhaSbbSJ+nkZL/Wp7YH1ZdR8ib9Qacrdi6g= Received: by 10.100.254.15 with SMTP id b15mr7070372ani.35.1230437039782; Sat, 27 Dec 2008 20:03:59 -0800 (PST) Received: by 10.100.6.8 with HTTP; Sat, 27 Dec 2008 20:03:59 -0800 (PST) Message-ID: Date: Sun, 28 Dec 2008 05:03:59 +0100 From: Mitar To: "Gary Kline" In-Reply-To: <20081228035819.GD82585@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> <20081228035819.GD82585@thought.org> Cc: freebsd-questions@freebsd.org Subject: Re: Open with O_APPEND fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 04:04:00 -0000 Hi! On Sun, Dec 28, 2008 at 4:58 AM, Gary Kline wrote: > Just a thought, but have you figured out what the value of > that OR is? then check the 6.x and 7.x src. You mean O_RDONLY? Is not that 0? So that O_RDONLY | O_APPEND is the same as O_APPEND? (That is why I am writing about O_APPEND flag and not O_RDONLY | O_APPEND as that bug report. Mitar From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 04:10:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 242091065670 for ; Sun, 28 Dec 2008 04:10:45 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id E56B48FC14 for ; Sun, 28 Dec 2008 04:10:44 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 19E8AAFBC02; Sat, 27 Dec 2008 19:10:44 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sat, 27 Dec 2008 19:10:43 -0900 User-Agent: KMail/1.9.10 References: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812271910.43793.fbsd.questions@rachie.is-a-geek.net> Cc: Mitar Subject: Re: Open with O_APPEND fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 04:10:45 -0000 On Saturday 27 December 2008 18:16:41 Mitar wrote: > Hi! > > On Sun, Dec 28, 2008 at 1:17 AM, Mel > > wrote: > > 15 fd = open(fname, O_WRONLY|O_APPEND); > > Try only with O_APPEND, without O_WRONLY. Why would you? open(2) will succeed but write(2) will fail with EBADF as documented (and I verified this behavior). Still no EACCES as you and the bugreporter are seeing. If this is really a bug in FreeBSD I'd expect way more applications to suffer issues. There must be something else at play and I certainly don't have an explanation why specifying the O_WRONLY flag would cause this bug to disappear. I suspect priv(9) to be responsible for the change in behavior you're seeing, however that should return EPERM not EACCES. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 04:46:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30D64106564A for ; Sun, 28 Dec 2008 04:46:40 +0000 (UTC) (envelope-from mmitar@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id DBF5E8FC13 for ; Sun, 28 Dec 2008 04:46:39 +0000 (UTC) (envelope-from mmitar@gmail.com) Received: by an-out-0708.google.com with SMTP id c2so1654226anc.13 for ; Sat, 27 Dec 2008 20:46:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=YaatuWISR0+yvWawgjHZ99pRRySFL0pYDjCudEjp5eY=; b=nMtMZHJiJnGdFs7nS+FVWOiqs91dL6fetwZasOBH0Sm4JIy/uNnAgd6ZFLBQrv5X2Q L/SfgZFq+VtrpJNpNQKeeq8OaM837taVnJTz8tyuRzD467A+euCJ9wNqOKtxkfbwyo6C yguKmsOiWV0S4gQ8X/LQCk87snHIo8U1xFTnQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=yFTgdbSaP+h6+B78GL5M1CiWtaidGD0FJyjztPQqeqPapyJ5SQN8fJ/9vvPqwp1gSP 9A1nDo8hg9QszkSDmQcm3EhyhaVPanY4h5+cdyRvdTrIk33DYTDcpMYrvxxYvifbVsbc LdcINTE5A8r1V5UPMC7A8A67xjcYHSGOx69+0= Received: by 10.100.140.20 with SMTP id n20mr7054194and.135.1230439599289; Sat, 27 Dec 2008 20:46:39 -0800 (PST) Received: by 10.100.6.8 with HTTP; Sat, 27 Dec 2008 20:46:39 -0800 (PST) Message-ID: Date: Sun, 28 Dec 2008 05:46:39 +0100 From: Mitar To: freebsd-questions@freebsd.org In-Reply-To: <200812271910.43793.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> <200812271910.43793.fbsd.questions@rachie.is-a-geek.net> Subject: Re: Open with O_APPEND fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 04:46:40 -0000 Hi! On Sun, Dec 28, 2008 at 5:10 AM, Mel wrote: > open(2) will succeed but write(2) will fail with EBADF as documented (and I > verified this behavior). Still no EACCES as you and the bugreporter are > seeing. Where is documented that write would fail if file is opened only with O_APPEND? Just O_APPEND should also open file for writing as appending is also writing. It cannot be used without "write" semantics so file has to be open also for writing. Mitar From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 05:46:52 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 376E0106564A for ; Sun, 28 Dec 2008 05:46:52 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (aristotle.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id E7AC68FC13 for ; Sun, 28 Dec 2008 05:46:51 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBS5lLSC074657; Sat, 27 Dec 2008 21:47:21 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 27 Dec 2008 21:46:47 -0800 (PST) Date: Sat, 27 Dec 2008 21:46:47 -0800 From: Gary Kline To: Mitar Message-ID: <20081228054646.GA90607@thought.org> References: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> <20081228035819.GD82585@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: freebsd-questions@freebsd.org Subject: Re: Open with O_APPEND fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 05:46:52 -0000 On Sun, Dec 28, 2008 at 05:03:59AM +0100, Mitar wrote: > Hi! > > On Sun, Dec 28, 2008 at 4:58 AM, Gary Kline wrote: > > Just a thought, but have you figured out what the value of > > that OR is? then check the 6.x and 7.x src. > > You mean O_RDONLY? Is not that 0? So that O_RDONLY | O_APPEND is the > same as O_APPEND? (That is why I am writing about O_APPEND flag and > not O_RDONLY | O_APPEND as that bug report. > > > Mitar i WAS in fact, just looking at man open, but not the header. just check the int values for the two #defines, OR them, then stare at the 6.x and 7.x code. more simply, diff the two.... this is a bug--thanks for the Clue--but it is fixable. nutshell, it may be zero: i don't know. gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 06:07:00 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92049106564A for ; Sun, 28 Dec 2008 06:07:00 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (ip-58-28-152-174.static-xdsl.xnet.co.nz [58.28.152.174]) by mx1.freebsd.org (Postfix) with ESMTP id 384BA8FC08 for ; Sun, 28 Dec 2008 06:07:00 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 8D5F628424; Sun, 28 Dec 2008 19:06:58 +1300 (NZDT) Date: Sun, 28 Dec 2008 19:06:58 +1300 From: Jonathan Chen To: Mitar Message-ID: <20081228060658.GA73070@osiris.chen.org.nz> References: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> <200812271910.43793.fbsd.questions@rachie.is-a-geek.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org Subject: Re: Open with O_APPEND fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 06:07:00 -0000 On Sun, Dec 28, 2008 at 05:46:39AM +0100, Mitar wrote: > Hi! > > On Sun, Dec 28, 2008 at 5:10 AM, Mel > wrote: > > open(2) will succeed but write(2) will fail with EBADF as documented (and I > > verified this behavior). Still no EACCES as you and the bugreporter are > > seeing. > > Where is documented that write would fail if file is opened only with > O_APPEND? Just O_APPEND should also open file for writing as appending > is also writing. It cannot be used without "write" semantics so file > has to be open also for writing. If I recall correctly, this behaviour has been standard on UNIX-like OS's for a *very* long time now. If you are seeing a write allowed with just O_APPEND on Linux, it would very likely be a Linux only "feature". Cheers. -- Jonathan Chen ---------------------------------------------------------------------- The Internet: an empirical test of the idea that a million monkeys banging on a million keyboards can produce Shakespeare From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 06:35:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C8C2106564A for ; Sun, 28 Dec 2008 06:35:57 +0000 (UTC) (envelope-from skoval@bonstreet.ru) Received: from fallback-smtp2.hosting.agava.net (smtp4.hosting.agava.net [89.108.104.104]) by mx1.freebsd.org (Postfix) with ESMTP id E595B8FC08 for ; Sun, 28 Dec 2008 06:35:56 +0000 (UTC) (envelope-from skoval@bonstreet.ru) Received: from smtp2.hosting.agava.net (unknown [10.0.0.4]) by fallback-smtp2.hosting.agava.net (Postfix) with ESMTP id B9FCC488B4 for ; Sun, 28 Dec 2008 06:20:28 +0000 (UTC) Received: from cp63.agava.net (cp63.agava.net [89.108.66.202]) by smtp2.hosting.agava.net (Postfix) with ESMTP id 7C234488A5 for ; Sun, 28 Dec 2008 09:20:27 +0300 (MSK) Received: from [77.108.92.110] (helo=[10.51.33.199]) by cp63.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LGp27-000OK7-LL for freebsd-questions@freebsd.org; Sun, 28 Dec 2008 09:21:51 +0300 Message-ID: <49571AA9.3030404@bonstreet.ru> Date: Sun, 28 Dec 2008 09:20:25 +0300 From: Sergey Kovalev User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: *.ko.symbols files in /boot/kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 06:35:57 -0000 I've decided to upgrade from 6.4-p1 to 7.1-RC2 on my home desktop pc. Somewhat during this procedure triggered building and installing of *.ko.symbols and kernel.symbols files. Here are my upgrade commands cd /usr/src env -i make buildworld env -i make buildkernel KERNCONF=KOCA env -i make installkernel KERNCONF=KOCA After that I get errors because my / patrition is only 128M in size. And /boot/kernel gets filled with *.symbols files. What could trigger their building and installation? And how I should cleanly rebuild/reinstall kernel in this case without rebuilding the world. I know the right path to rebuild everything cleanly, but never faced such difficulties. My /etc/make.conf: http://kovalev.com.ru/make.conf My kernel config: http://kovalev.com.ru/KOCA Please CC me cause I'm subscribed to the list. PS I've mistyped address and first posted to freebsd-users@freebsd.org. Sorry if I posted to the same list twice. From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 07:36:52 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9DE1106564A for ; Sun, 28 Dec 2008 07:36:52 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id 407388FC08 for ; Sun, 28 Dec 2008 07:36:52 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from smtp14.yandex.ru (smtp14.yandex.ru [77.88.32.84]) by forwards4.yandex.ru (Yandex) with ESMTP id 06AF74C5445; Sun, 28 Dec 2008 10:36:49 +0300 (MSK) Received: from 14-4-113-92.pool.ukrtel.net ([92.113.4.14]:24837 "EHLO HOMEUSER" smtp-auth: "kes-kes" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S393318AbYL1Hgk (ORCPT + 2 others); Sun, 28 Dec 2008 10:36:40 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp14 X-Yandex-TimeMark: 1230449800 X-BornDate: 1149541200 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 3 X-Comment: RFC 2476 MSA function at smtp14.yandex.ru logged sender identity as: kes-kes Date: Sun, 28 Dec 2008 09:36:40 +0200 From: KES X-Mailer: The Bat! (v4.0.24) Professional Organization: SaftTen X-Priority: 3 (Normal) Message-ID: <1348891341.20081228093640@yandex.ru> To: Mel In-Reply-To: <200812250913.32919.fbsd.questions@rachie.is-a-geek.net> References: <42213407.20081212101341@yandex.ru> <498807086.20081221134904@yandex.ru> <1004558695.20081224005059@yandex.ru> <200812250913.32919.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org, users@subversion.tigris.org Subject: Re[2]: can not start SVNserve X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: KES List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 07:36:52 -0000 Çäðàâñòâóéòå, Mel. Âû ïèñàëè 25 äåêàáðÿ 2008 ã., 20:13:32: M> On Tuesday 23 December 2008 13:50:59 KES wrote: >> Çäðàâñòâóéòå, KES. >> >> Âû ïèñàëè 21 äåêàáðÿ 2008 ã., 13:49:04: >> >> K> Çäðàâñòâóéòå, Mel. >> >> K> Âû ïèñàëè 21 äåêàáðÿ 2008 ã., 13:10:47: >> >> M>> On Thursday 18 December 2008 09:03:54 KES wrote: >> >>> Çäðàâñòâóéòå, Mel. >> >>> >> >>> Âû ïèñàëè 18 äåêàáðÿ 2008 ã., 9:05:35: >> >>> >> >>> M> On Wednesday 17 December 2008 21:02:07 KES wrote: >> >>> >> Çäðàâñòâóéòå, Mel. >> >>> >> >> >>> >> Âû ïèñàëè 17 äåêàáðÿ 2008 ã., 9:11:19: >> >>> >> >> >>> >> M> On Sunday 14 December 2008 16:11:17 KES wrote: >> >>> >> >> Çäðàâñòâóéòå, Polytropon. >> >>> >> >> >> >>> >> >> Âû ïèñàëè 14 äåêàáðÿ 2008 ã., 15:11:35: >> >>> >> >> >> >>> >> >> P> On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar >> >>> >> >> >> >>> >> >> P> wrote: >> >>> >> >> >> > su: Sorry >> >>> >> >> >> > >> >>> >> >> >> > >> >>> >> >> >> > kes# pw user mod svn -s /bin/bash >> >>> >> >> >> > kes# pw user show svn >> >>> >> >> >> > svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash >> >>> >> >> >> > kes# /usr/local/etc/rc.d/svnserve start >> >>> >> >> >> > Starting svnserve. >> >>> >> >> >> > su: Sorry >> >>> >> >> >> >> >>> >> >> >> try to change directory to existent >> >>> >> >> >> >>> >> >> P> (1) What's /bin/bash? Check existing shell. >> >>> >> >> >> >>> >> >> P> (2) As you said: Check existing directory. >> >>> >> >> >> >>> >> >> P> (3) Regarding su, check for wheel group inclusion. >> >>> >> >> >> >>> >> >> home# uname -a >> >>> >> >> FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug >> >>> >> >> 12 02:11:24 EEST 2008 >> >>> >> >> kes@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 home# pw >> >>> >> >> user show svn >> >>> >> >> svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin >> >>> >> >> >> >>> >> >> As you can see on 'home' machine svn user has no valid shell also >> >>> >> >> it has not valid home directory and it is not included into wheel >> >>> >> >> group >> >>> >> >> >> >>> >> >> But svnserve is started and works fine. With same settings >> >>> >> >> svnserve does not work on >> >>> >> >> kes# uname -a >> >>> >> >> FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun >> >>> >> >> Nov 23 17:19:12 EET 2008 >> >>> >> >> kes@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 >> >>> >> >> >>> >> M> echo 'rc_debug="YES"'>>/etc/rc.conf >> >>> >> M> /usr/local/etc/rc.d/svnserve start >> >>> >> >> >>> >> M> Show output from /var/log/messages. >> >>> >> >> >>> >> kes# kes# /usr/local/etc/rc.d/svnserve start >> >>> >> /usr/local/etc/rc.d/svnserve: DEBUG: checkyesno: svnserve_enable is >> >>> >> set to YES. Starting svnserve. >> >>> >> /usr/local/etc/rc.d/svnserve: DEBUG: run_rc_command: doit: su -m svn >> >>> >> -c 'sh -c "/usr/local/bin/svnserve -d --listen-port=3690 >> >>> >> --foreground -r /var/db/trunk"' su: Sorry >> >>> >> >>> M> Does this command work from the command line? >> >>> M> If not, does it work if called as su -fm rather then su -m? >> >>> M> If that does not work, does the primary group svn is supposed to be >> >>> in exist? >> >>> >> >>> >> >>> kes# su -m svn -c 'sh -c "/usr/local/bin/svnserve -d --listen-port=3690 >> >>> --foreground -r /var/db/trunk"' su: Sorry >> >>> kes# su -fm svn -c 'sh -c "/usr/local/bin/svnserve -d >> >>> --listen-port=3690 --foreground -r /var/db/trunk"' su: Sorry >> >>> kes# pw group show svn >> >>> svn:*:1005: >> >>> kes# cat /etc/group | grep svn >> >>> svn:*:1005: >> >>> kes# pw user show svn >> >>> svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash >> >>> >> >>> As you see it does not work also with -fm option >> >>> >> >>> >> >>> Also I notice next differences between FreeBDS 7.0 and 7.1 (detail >> >>> below) Notice that on both system account is locked, has no valid shell >> >>> and home directory >> >>> on FreeBSD 7.0 when I try to login with svn user it says: This account >> >>> is currently not available. on FreeBSD 7.1 when I try to login with svn >> >>> user it says: su: Sorry Maybe there is a problem with su on FreeBSD >> >>> 7.1? >> >>> >> >>> >> >>> >> >>> home# pw user show svn >> >>> svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin >> >>> home# su svn >> >>> This account is currently not available. >> >>> >> >>> >> >>> kes# pw user show svn >> >>> svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash >> >>> kes# su svn >> >>> su: Sorry >> >>> kes# pw user mod svn -s /usr/bin/nologin >> >>> kes# pw user show svn >> >>> svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/bin/nologin >> >>> kes# su svn >> >>> su: Sorry >> >> M>> The problem is elsewhere. Probably in pam(3) on the faulty machine. The >> only M>> change to su.c from 7.0 to 7.1 is fixing a compiler warning. There >> are 3 M>> instances where su exits with "Sorry". All occasions are logged >> to syslog. M>> Can you dig those log entries up? >> >> K> Dec 21 13:47:54 kes su: kes to root on /dev/ttyp5 >> K> Dec 21 13:47:58 kes kes: /r/svnserve: DEBUG: checkyesno: svnserve_enable >> is set to YES. K> Dec 21 13:47:58 kes kes: /r/svnserve: DEBUG: >> run_rc_command: doit: K> su -m svn -c 'sh -c "/usr/local/bin/svnserve -d >> K> --listen-port=3690 --foreground -r /var/db/trunk"' >> K> Dec 21 13:47:58 kes su: pam_acct_mgmt: authentication error >> >> K> Yeah, there is problem with pam. Why pam restrict root to run command >> K> under other user? >> >> Strange, but mysql works... (( >> >> kes# /r/mysql-server start >> /r/mysql-server: DEBUG: checkyesno: mysql_enable is set to YES. >> /r/mysql-server: DEBUG: pid file (/var/db/mysql/kes.net.ua.pid): not >> readable. /r/mysql-server: DEBUG: run_rc_command: start_precmd: >> mysql_prestart /r/mysql-server: DEBUG: checkyesno: mysql_limits is set to >> NO. >> Starting mysql. >> /r/mysql-server: DEBUG: run_rc_command: doit: su -m mysql -c 'sh -c >> "/usr/local/bin/mysqld_safe --defaults-extra-file=/var/db/mysql/my.cnf >> --user=mysql --datadir=/var/db/mysql >> --pid-file=/var/db/mysql/kes.net.ua.pid > /dev/null 2>&1 &"' >> /r/mysql-server: DEBUG: run_rc_command: start_postcmd: mysql_poststart M> This is a bit of a guess, but what if you change the uid and gid for the svn M> user/group to below 1000. This does not affect =( svnserve_enable="YES" svnserve_data="/var/db/trunk" svnserve_flags="-d --listen-port=3690 --foreground" svnserve_user="tst" svnserve_group="tst" kes# kes# /usr/local/etc/rc.d/svnserve start /usr/local/etc/rc.d/svnserve: DEBUG: checkyesno: svnserve_enable is set to YES. Starting svnserve. /usr/local/etc/rc.d/svnserve: DEBUG: run_rc_command: doit: su -m tst -c 'sh -c "/usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk"' su: Sorry kes# pw user show tst tst:*:300:300::0:0:User &:/home/nonexistent:/usr/sbin/nologin kes# pw group show tst tst:*:300: -- Ñ óâàæåíèåì, KES mailto:kes-kes@yandex.ru From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 08:43:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 768981065670 for ; Sun, 28 Dec 2008 08:43:09 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id E71988FC0C for ; Sun, 28 Dec 2008 08:43:08 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id mBS8h0Nv098407; Sun, 28 Dec 2008 08:43:01 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk mBS8h0Nv098407 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1230453782; bh=D3ZHq1tUgcJ7gB l7s2lwtWJIi6S9h346kLd9dUeID90=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<49573C0D.7030405@infracaninophile.co.uk>|Date:=20Sun,=2 028=20Dec=202008=2008:42:53=20+0000|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.18=20(X11/20081125)|MIME-Version:=201 .0|To:=20Mel=20|CC:=20freebsd- questions@freebsd.org,=20=0D=0A=20"B.=20Cook"=20|Subject:=20Re:=20ports-mgmt/portmaster=20question|Refe rences:=20<49522444.8080409@poughkeepsieschools.org>=20<49522C7B.10 70101@infracaninophile.co.uk>=20<200812271448.53240.fbsd.questions@ rachie.is-a-geek.net>|In-Reply-To:=20<200812271448.53240.fbsd.quest ions@rachie.is-a-geek.net>|X-Enigmail-Version:=200.95.6|Content-Typ e:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol= 3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"------------en ig8D508933733279BBC6DB8AB2"; b=L7ippO/3bGeh7z1M2XTNozNvKC5SnHBt5UyU 8V96+mH4u3qrRnFKvMsAJHh08rr6WSpZv+pTG926JOGKqPEHJy6/ot5+cY9c1pbY5td xgNWCeA06dRDDfSfVYw3MAE8oPSNy8XoVxBYA4uo+z9+pxRecOl/HnqcGwqVE1i2BQS M= Message-ID: <49573C0D.7030405@infracaninophile.co.uk> Date: Sun, 28 Dec 2008 08:42:53 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Mel References: <49522444.8080409@poughkeepsieschools.org> <49522C7B.1070101@infracaninophile.co.uk> <200812271448.53240.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <200812271448.53240.fbsd.questions@rachie.is-a-geek.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig8D508933733279BBC6DB8AB2" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 28 Dec 2008 08:43:02 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/8804/Sun Dec 28 03:13:10 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: "B. Cook" , freebsd-questions@freebsd.org Subject: Re: ports-mgmt/portmaster question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 08:43:09 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8D508933733279BBC6DB8AB2 Content-Type: text/plain; charset=ISO-8859-6; format=flowed Content-Transfer-Encoding: quoted-printable Mel wrote: > On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote: >> B. Cook wrote: >>> Is there a way to pass make args (other than -m) for each port? >>> >=20 > ... >=20 >> If you want options that only apply to specific ports, then you can us= e >> a construct like this: >> >> .if ${.CURDIR:M*/databases/mysql*} >> WITH_CHARSET=3Dutf8 >> WITH_XCHARSET=3Dnone >> WITH_COLLATION=3Dutf8_unicode_ci >> WITH_OPENSSL=3Dyes >> BUILD_OPTIMIZED=3Dyes >> WITH_INNODB=3Dyes >> WITH_ARCHIVE=3Dyes >> WITH_FEDERATED=3Dyes >> WITH_NDB=3Dyes >> WITH_CSV=3Dyes >> WITH_SPHINXSE=3Dyes >> .endif >=20 > Or, so you don't have one blobby make.conf that needs to be read for=20 > everything that uses FreeBSD's make, you can make a file called=20 > Makefile.local in the port's directory and set these. > There are only a few special cases in which this won't work, because it= is=20 > included at "the bottom of the port's Makefile", but then you can resor= t=20 > to /etc/make.conf. >=20 Yep. That's true. Unfortunately though if you use freebsd-update to=20 update your ports tree it will blow away any additional files like=20 that. csup(1) users will not have that problem. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig8D508933733279BBC6DB8AB2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAklXPBQACgkQ8Mjk52CukIzDLgCfdtGxwWYwLaN8LWRE2ENjNDIx f/AAnib63OBCVsCf+++Q0FZMSmb8nkqS =tbDk -----END PGP SIGNATURE----- --------------enig8D508933733279BBC6DB8AB2-- From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 09:10:52 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5ED8E1065670 for ; Sun, 28 Dec 2008 09:10:52 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id B94148FC12 for ; Sun, 28 Dec 2008 09:10:51 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id mBS9Aifq030276; Sun, 28 Dec 2008 09:10:46 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk mBS9Aifq030276 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1230455446; bh=+rc9s4yf6FZIwi WHmFlElqLBdPGELiAAJrGiS2gUh8k=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<49574289.4070902@infracaninophile.co.uk>|Date:=20Sun,=2 028=20Dec=202008=2009:10:33=20+0000|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.18=20(X11/20081125)|MIME-Version:=201 .0|To:=20Mel=20|CC:=20"B.=20Co ok"=20,=20=0D=0A=20freebsd-questions @freebsd.org|Subject:=20Re:=20ports-mgmt/portmaster=20question|Refe rences:=20<49522444.8080409@poughkeepsieschools.org>=09<49522C7B.10 70101@infracaninophile.co.uk>=09<200812271448.53240.fbsd.questions@ rachie.is-a-geek.net>=20<49573C0D.7030405@infracaninophile.co.uk>|I n-Reply-To:=20<49573C0D.7030405@infracaninophile.co.uk>|X-Enigmail- Version:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpg p-sha256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A =20boundary=3D"------------enig8CAD6226B11CAEB3C5778E7B"; b=ShIYCHM I9NLAzP6igaDCo5COl6bdeedx7Wfnc9FOo8/Ehsj8Y+fsUQcMFqT6bAEtUlCu53hOGP cZg8+5RqTfKtpw5gEgW5wDDLL7lrNSfCkP0futZGQ4inOeae4S0EoKbkt5g99Mglq9t YedMFGt35ExI44yC9dkAeUmTvJjAVs= Message-ID: <49574289.4070902@infracaninophile.co.uk> Date: Sun, 28 Dec 2008 09:10:33 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Mel References: <49522444.8080409@poughkeepsieschools.org> <49522C7B.1070101@infracaninophile.co.uk> <200812271448.53240.fbsd.questions@rachie.is-a-geek.net> <49573C0D.7030405@infracaninophile.co.uk> In-Reply-To: <49573C0D.7030405@infracaninophile.co.uk> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig8CAD6226B11CAEB3C5778E7B" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 28 Dec 2008 09:10:46 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/8804/Sun Dec 28 03:13:10 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: "B. Cook" , freebsd-questions@freebsd.org Subject: Re: ports-mgmt/portmaster question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 09:10:52 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8CAD6226B11CAEB3C5778E7B Content-Type: text/plain; charset=ISO-8859-6; format=flowed Content-Transfer-Encoding: quoted-printable Matthew Seaman wrote: > Mel wrote: >> On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote: >>> B. Cook wrote: >>>> Is there a way to pass make args (other than -m) for each port? >>>> >> >> ... >> >>> If you want options that only apply to specific ports, then you can u= se >>> a construct like this: >>> >>> .if ${.CURDIR:M*/databases/mysql*} >>> WITH_CHARSET=3Dutf8 >>> WITH_XCHARSET=3Dnone >>> WITH_COLLATION=3Dutf8_unicode_ci >>> WITH_OPENSSL=3Dyes >>> BUILD_OPTIMIZED=3Dyes >>> WITH_INNODB=3Dyes >>> WITH_ARCHIVE=3Dyes >>> WITH_FEDERATED=3Dyes >>> WITH_NDB=3Dyes >>> WITH_CSV=3Dyes >>> WITH_SPHINXSE=3Dyes >>> .endif >> >> Or, so you don't have one blobby make.conf that needs to be read for=20 >> everything that uses FreeBSD's make, you can make a file called=20 >> Makefile.local in the port's directory and set these. >> There are only a few special cases in which this won't work, because=20 >> it is included at "the bottom of the port's Makefile", but then you=20 >> can resort to /etc/make.conf. >> >=20 > Yep. That's true. Unfortunately though if you use freebsd-update to=20 Ooops portsnap > update your ports tree it will blow away any additional files like=20 > that. csup(1) users will not have that problem. >=20 > Cheers, >=20 > Matthew >=20 --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig8CAD6226B11CAEB3C5778E7B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAklXQpQACgkQ8Mjk52CukIxorgCfdxNAgj6BTb0l4q5WHCoIPGu1 MHQAoIQUiJORbyOJns16b8mXqD1mG+Eo =EN3n -----END PGP SIGNATURE----- --------------enig8CAD6226B11CAEB3C5778E7B-- From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 09:25:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A2D51065670 for ; Sun, 28 Dec 2008 09:25:37 +0000 (UTC) (envelope-from freebsd@kovalev.com.ru) Received: from fallback-smtp.hosting.agava.net (smtp3.hosting.agava.net [89.108.104.103]) by mx1.freebsd.org (Postfix) with ESMTP id E21488FC13 for ; Sun, 28 Dec 2008 09:25:36 +0000 (UTC) (envelope-from freebsd@kovalev.com.ru) Received: from smtp.hosting.agava.net (unknown [10.0.0.2]) by fallback-smtp.hosting.agava.net (Postfix) with ESMTP id 9E4E613BEF for ; Sun, 28 Dec 2008 09:09:24 +0000 (UTC) Received: from cp115.agava.net (cp115.agava.net [89.108.67.135]) by smtp.hosting.agava.net (Postfix) with ESMTP id 4C5C81E58C; Sun, 28 Dec 2008 09:09:22 +0000 (UTC) Received: from [77.108.92.110] (helo=[10.51.33.199]) by cp115.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LGrg6-0005w9-Q4; Sun, 28 Dec 2008 12:11:18 +0300 Message-ID: <49574240.7040502@kovalev.com.ru> Date: Sun, 28 Dec 2008 12:09:20 +0300 From: Sergey Kovalev User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Matthew Seaman References: <49522444.8080409@poughkeepsieschools.org> <49522C7B.1070101@infracaninophile.co.uk> <200812271448.53240.fbsd.questions@rachie.is-a-geek.net> <49573C0D.7030405@infracaninophile.co.uk> In-Reply-To: <49573C0D.7030405@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-6; format=flowed Content-Transfer-Encoding: 7bit Cc: "B. Cook" , freebsd-questions@freebsd.org Subject: Re: ports-mgmt/portmaster question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 09:25:37 -0000 Matthew Seaman wrote: > Mel wrote: >> On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote: >>> B. Cook wrote: >>>> Is there a way to pass make args (other than -m) for each port? >>>> >>> If you want options that only apply to specific ports, then you can use >>> a construct like this: >>> >>> .if ${.CURDIR:M*/databases/mysql*} >>> WITH_CHARSET=utf8 >>> WITH_XCHARSET=none >>> WITH_COLLATION=utf8_unicode_ci >>> WITH_OPENSSL=yes >>> BUILD_OPTIMIZED=yes >>> WITH_INNODB=yes >>> WITH_ARCHIVE=yes >>> WITH_FEDERATED=yes >>> WITH_NDB=yes >>> WITH_CSV=yes >>> WITH_SPHINXSE=yes >>> .endif >> >> Or, so you don't have one blobby make.conf that needs to be read for >> everything that uses FreeBSD's make, you can make a file called >> Makefile.local in the port's directory and set these. >> There are only a few special cases in which this won't work, because >> it is included at "the bottom of the port's Makefile", but then you >> can resort to /etc/make.conf. > > Yep. That's true. Unfortunately though if you use freebsd-update to > update your ports tree it will blow away any additional files like > that. csup(1) users will not have that problem. There is also a nice port ports-mgmt/portconf which adds some snippet to /etc/make.conf which allows you to add your options in a neat way to /usr/local/etc/ports.conf. From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 09:36:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D38B106567B for ; Sun, 28 Dec 2008 09:36:51 +0000 (UTC) (envelope-from alainfabry@belgacom.net) Received: from nelson.telenet-ops.be (nelson.telenet-ops.be [195.130.133.66]) by mx1.freebsd.org (Postfix) with ESMTP id E24EE8FC14 for ; Sun, 28 Dec 2008 09:36:50 +0000 (UTC) (envelope-from alainfabry@belgacom.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by nelson.telenet-ops.be (Postfix) with SMTP id 4C61750065 for ; Sun, 28 Dec 2008 10:36:49 +0100 (CET) Received: from localhost (d54C06E75.access.telenet.be [84.192.110.117]) by nelson.telenet-ops.be (Postfix) with ESMTP id 3C87950051 for ; Sun, 28 Dec 2008 10:36:49 +0100 (CET) Date: Sun, 28 Dec 2008 10:35:56 +0100 From: "Alain G. Fabry" To: freebsd-questions@freebsd.org Message-ID: <20081228093556.GA99170@desmo.3rdrock.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: amarok install failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 09:36:51 -0000 During the installation of amarok, I get the following error, what is going wrong here. gmake[5]: Entering directory `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp' /bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src -I../../../../amarok/src -I../../../../amarok/src/amarokcore -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice -I/usr/local/include/taglib -I/usr/local/include -I/usr/local/include -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT -I/usr/local/include -I/usr/local/include -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT mtpmediadevice.lo -MD -MP -MF .deps/mtpmediadevice.Tpo -c -o mtpmediadevice.lo mtpmediadevice.cpp /usr/local/include/libmtp.h: In member function 'virtual MediaItem* MtpMediaDevice::copyTrackToDevice(const MetaBundle&)': /usr/local/include/libmtp.h:489: error: too many arguments to function 'int LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*, LIBMTP_track_t*, int (*)(uint64_t, uint64_t, const void*), const void*)' mtpmediadevice.cpp:302: error: at this point in file mtpmediadevice.cpp: In member function 'uint32_t MtpMediaDevice::getDefaultParentId()': mtpmediadevice.cpp:383: warning: deprecated conversion from string constant to 'char*' /usr/local/include/libmtp.h: In member function 'LIBMTP_album_t* MtpMediaDevice::getOrCreateAlbum(QPtrList*)': /usr/local/include/libmtp.h:533: error: too many arguments to function 'int LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)' mtpmediadevice.cpp:532: error: at this point in file /usr/local/include/libmtp.h: In member function 'uint32_t MtpMediaDevice::createFolder(const char*, uint32_t)': /usr/local/include/libmtp.h:508: error: too few arguments to function 'uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t, uint32_t)' mtpmediadevice.cpp:611: error: at this point in file /usr/local/include/libmtp.h: In member function 'void MtpMediaDevice::playlistFromItem(MtpMediaItem*)': /usr/local/include/libmtp.h:521: error: too many arguments to function 'int LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)' mtpmediadevice.cpp:916: error: at this point in file gmake[5]: *** [mtpmediadevice.lo] Error 1 gmake[5]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp' gmake[4]: *** [all-recursive] Error 1 gmake[4]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/audio/amarok. *** Error code 1 Stop in /usr/ports/audio/amarok. *** Error code 1 Stop in /usr/ports/audio/amarok. Thanks in advance, Best wishes, Alain From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 10:08:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90992106564A for ; Sun, 28 Dec 2008 10:08:12 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id C1D838FC16 for ; Sun, 28 Dec 2008 10:08:11 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBSA7Q5V008080; Sun, 28 Dec 2008 11:07:26 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBSA7Pab008077; Sun, 28 Dec 2008 11:07:25 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 28 Dec 2008 11:07:25 +0100 (CET) From: Wojciech Puchar To: Sergey Kovalev In-Reply-To: <49571AA9.3030404@bonstreet.ru> Message-ID: <20081228110720.T8073@wojtek.tensor.gdynia.pl> References: <49571AA9.3030404@bonstreet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: *.ko.symbols files in /boot/kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 10:08:12 -0000 turn it off: makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols On Sun, 28 Dec 2008, Sergey Kovalev wrote: > I've decided to upgrade from 6.4-p1 to 7.1-RC2 on my home desktop pc. > Somewhat during this procedure triggered building and installing of > *.ko.symbols and kernel.symbols files. > Here are my upgrade commands > cd /usr/src > env -i make buildworld > env -i make buildkernel KERNCONF=KOCA > env -i make installkernel KERNCONF=KOCA > > After that I get errors because my / patrition is only 128M in size. And > /boot/kernel gets filled with *.symbols files. > What could trigger their building and installation? > > And how I should cleanly rebuild/reinstall kernel in this case without > rebuilding the world. I know the right path to rebuild everything cleanly, > but never faced such difficulties. > > My /etc/make.conf: http://kovalev.com.ru/make.conf > My kernel config: http://kovalev.com.ru/KOCA > > Please CC me cause I'm subscribed to the list. > > PS I've mistyped address and first posted to freebsd-users@freebsd.org. Sorry > if I posted to the same list twice. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 11:46:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1AAD106574E for ; Sun, 28 Dec 2008 11:46:22 +0000 (UTC) (envelope-from skoval@bonstreet.ru) Received: from smtp2.hosting.agava.net (smtp4.hosting.agava.net [89.108.104.104]) by mx1.freebsd.org (Postfix) with ESMTP id 8828D8FC1A for ; Sun, 28 Dec 2008 11:46:22 +0000 (UTC) (envelope-from skoval@bonstreet.ru) Received: from cp63.agava.net (cp63.agava.net [89.108.66.202]) by smtp2.hosting.agava.net (Postfix) with ESMTP id 25B4937034 for ; Sun, 28 Dec 2008 14:46:21 +0300 (MSK) Received: from [77.108.92.110] (helo=[10.51.33.199]) by cp63.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LGu7W-000Obo-8L for freebsd-questions@freebsd.org; Sun, 28 Dec 2008 14:47:46 +0300 Message-ID: <4957670B.70804@bonstreet.ru> Date: Sun, 28 Dec 2008 14:46:19 +0300 From: Sergey Kovalev User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <49571AA9.3030404@bonstreet.ru> <20081228110720.T8073@wojtek.tensor.gdynia.pl> In-Reply-To: <20081228110720.T8073@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: *.ko.symbols files in /boot/kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 11:46:22 -0000 Wojciech Puchar wrote: > turn it off: > > makeoptions DEBUG=-g # Build kernel with gdb(1) debug > symbols Thank you. I just figured that out experimenatlly about an hour ago. I was quite sure that this string was uncommented in my 6.4 KERNCONF and there were no any *.symbols there but I may be wrong of course. Besides I was confused by the fact that it was uncommented in GENERIC and also missed the comment to DEBUG option firstly. > On Sun, 28 Dec 2008, Sergey Kovalev wrote: > >> I've decided to upgrade from 6.4-p1 to 7.1-RC2 on my home desktop pc. >> Somewhat during this procedure triggered building and installing of >> *.ko.symbols and kernel.symbols files. >> Here are my upgrade commands >> cd /usr/src >> env -i make buildworld >> env -i make buildkernel KERNCONF=KOCA >> env -i make installkernel KERNCONF=KOCA >> >> After that I get errors because my / patrition is only 128M in size. >> And /boot/kernel gets filled with *.symbols files. >> What could trigger their building and installation? From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 12:08:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEBAB1065673 for ; Sun, 28 Dec 2008 12:08:26 +0000 (UTC) (envelope-from reese@adeptscience.com) Received: from panther.adeptscience.co.uk (panther.adeptscience.co.uk [193.116.153.7]) by mx1.freebsd.org (Postfix) with ESMTP id 693758FC19 for ; Sun, 28 Dec 2008 12:08:25 +0000 (UTC) (envelope-from reese@adeptscience.com) Received: from HP13523161411 (host86-149-199-166.range86-149.btcentralplus.com [86.149.199.166]) by panther.adeptscience.co.uk (8.13.6/8.13.6) with ESMTP id mBSC8K9d041021; Sun, 28 Dec 2008 12:08:21 GMT (envelope-from reese@adeptscience.com) From: reese@adeptscience.com To: Derek Ragona , freebsd-questions@freebsd.org Date: Sun, 28 Dec 2008 12:08:10 -0000 MIME-Version: 1.0 Message-ID: <49576C2A.10902.9459DA1@localhost> Priority: normal In-reply-to: <6.0.0.22.2.20081227105751.0267ade8@mail.computinginnovations.com> References: <49552461.25264.5D35D1@localhost> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Cc: Subject: Re: strange fsck results X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 12:08:26 -0000 I am running VMware Server 2.0 but see the same results with VMware Server 1.0. The virtual machines are copies that I made by transferring the vmware files for it from another server. As far as I know it did not have any fsck problems on that machine but I don't have access to it any more. I have noticed that there are a lot of failures (corrupted files) when moving VMware appliances with the use of USB memory sticks so I do test them right on the memory stick before I disconnect from the PC. All the host OSs are Windows XP Professional using IDE ATA drives, current hardware is an HP dx2450 AMD Phenom. but I saw the same errors on an Acer. The files systems are: # Device Mountpoint FStype Options Dump Pass# /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1e /usr ufs rw 2 2 /dev/ad0s1d /var ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 Here is a bit from fsck of /var hueysan_vm: {10} fsck /var ** /dev/ad0s1d (NO WRITE) ** Last Mounted on /var ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts UNREF FILE I=190413 OWNER=root MODE=100644 SIZE=235 MTIME=Dec 27 12:23 2008 RECONNECT? no CLEAR? no ... I get about a dozen similar UNREF errors. I am only worried about the errors if they might cause a problem with the use of the virtual server as a development server. I have installed and have running apache, mysql, sendmail, samba, rsync, etc and they all seem to work fine. I am planning on distributing copies of the virtual server to some others who are working on a project with me so I really only need to be fairly sure that no hidden gotchas are going to plague our efforts. Having the virtual server setup is a BIG plus when collaborating with people who only have Windows PCs, before I had a central FreeBSD server for testing etc but that is so much slower then have a local development server. Being able to just send off a memory stick with the VMserver and instructions is fantastic. Thanks to all, Charlie Reese On 27 Dec 2008 at 11:00, Derek Ragona wrote: > At 12:37 PM 12/26/2008, reese@adeptscience.com wrote: > >I am running FreeBSD 6.3 as a VMware virtual server and am getting some > >strange results when I run fsck. When I run it in multi-user mode I get > >quite a few UNREF FILE errors but when I switch to single user mode > >fsck does not find any errors. Is this something I need to worry about > >and if it is how might I try to get fsck to repair them? > > > > > >TIA > >Charlie Reese > > You need to give a bit more information: Are you running your VM under esx > server or workstation? What is your filesystem layout under freebsd. What > is the underlying server and disks you are running vmware on? > > -Derek > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 12:54:43 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11FEA1065687 for ; Sun, 28 Dec 2008 12:54:43 +0000 (UTC) (envelope-from mbeis@xs4all.nl) Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by mx1.freebsd.org (Postfix) with ESMTP id 9E6338FC32 for ; Sun, 28 Dec 2008 12:54:42 +0000 (UTC) (envelope-from mbeis@xs4all.nl) Received: from yokozuna.lan (213-84-73-82.adsl.xs4all.nl [80.101.78.208]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id mBSCgLjO004321 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 28 Dec 2008 13:42:22 +0100 (CET) (envelope-from mbeis@xs4all.nl) Received: from yokozuna.lan (yokozuna.lan [127.0.0.1]) by yokozuna.lan (8.14.2/8.14.2) with ESMTP id mBSCgLMj085977; Sun, 28 Dec 2008 13:42:21 +0100 (CET) (envelope-from mbeis@xs4all.nl) Date: Sun, 28 Dec 2008 13:42:21 +0100 From: Marco Beishuizen To: af300wsm@gmail.com Message-ID: <20081228134221.4c112923@yokozuna.lan> In-Reply-To: <001636458c861e94e4045ef719cf@google.com> References: <001636458c861e94e4045ef719cf@google.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Cc: "freebsd-questions@freebsd.org" Subject: Re: Having issues with the nvidia driver on my box X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 12:54:43 -0000 On Fri, 26 Dec 2008 18:14:38 +0000 af300wsm@gmail.com wrote: > Hi, > > For several reasons, one of which was to use the nvidia driver for > my board, I switched from amd64 to i386. So, I installed the driver > and although things are working I'm getting this on console 0: > > NVRM: AGP cannot be enabled on this combination of the amd CPU and OS > kernel NVRM: kernel upgrade recommended > > So, when I installed the nvidia driver I said to enable AGP. > (Figuring only that this is an AGP board, why not?) My graphical > environment works but I'd like to resolve this. Also, I think that > some little quirks in my display can be attributed to this, but I'm > not sure. Is there some sort of kernel option I must include and > build my own kernel? > > Thanks, > Andy > > ps in case it matters, my board is rather "old." I purchased it 4 > years ago and as I'm not a gamer, it suffices quite nicely. Here's > the driver I had to install for support of this chip: Did you install the latest Nvidia driver? Perhaps your card isn't supported anymore. Nvidia dropped some "older" chipsets in their latest driver. You can try "nvidia-driver-96xx" or "nvidia-driver-71xx" in the ports. I hope this helps. regards Marco -- Economies of scale: The notion that bigger is better. In particular, that if you want a certain amount of computer power, it is much better to buy one biggie than a bunch of smallies. Accepted as an article of faith by people who love big machines and all that complexity. Rejected as an article of faith by those who love small machines and all those limitations. From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 13:31:01 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07EBF1065676 for ; Sun, 28 Dec 2008 13:31:01 +0000 (UTC) (envelope-from invite+zrhfpr1z@facebookmail.com) Received: from vipfallbackmx-out.facebook.com (outmail002.sctm.tfbnw.net [204.15.20.237]) by mx1.freebsd.org (Postfix) with ESMTP id DC8098FC1C for ; Sun, 28 Dec 2008 13:31:00 +0000 (UTC) (envelope-from invite+zrhfpr1z@facebookmail.com) Received: from vipmx-out.facebook.com ([10.18.255.178]) by vipfallbackmx-out.facebook.com [hpvipfallback009.snc1.facebook.com] (8.13.1/FB.vipfallback-1.0.0) with ESMTP id mBSBHdnX004349 for ; Sun, 28 Dec 2008 03:17:39 -0800 Received: from localhost.localdomain ([10.18.255.176]) by vipmx-out.facebook.com [vipemail003.snc1.facebook.com] (8.13.1/8.13.6) with ESMTP id mBSBHcg7028533 for ; Sun, 28 Dec 2008 03:17:39 -0800 X-Facebook: from zuckmail by localhost.localdomain with local (ZuckMail); Date: Sun, 28 Dec 2008 03:17:38 -0800 To: Questions From: Addy Polani Message-ID: <0f4d892ece3e13a3edf8007ce742bbaa@localhost.localdomain> X-Priority: 3 X-Mailer: ZuckMail [version 1.00] X-Facebook-Notify: general_invite Errors-To: invite+zrhfpr1z@facebookmail.com MIME-Version: 1.0 Content-Type: text/plain; charset = "UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Check out my Facebook profile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Addy Polani List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 13:31:01 -0000 Hi questions, I set up a Facebook profile where I can post my pictures, videos and events and I want to add you as a friend so you can see it. First, you need to join Facebook! Once you join, you can also create your own profile. Thanks, Addy To sign up for Facebook, follow the link below: http://www.facebook.com/p.php?i=3D751548058&k=3D6YF3P3RZTW2M5CDFX1Z4YU&r From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 15:39:22 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEF771065673 for ; Sun, 28 Dec 2008 15:39:22 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by mx1.freebsd.org (Postfix) with ESMTP id 8AA968FC1B for ; Sun, 28 Dec 2008 15:39:22 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so5641035rvf.43 for ; Sun, 28 Dec 2008 07:39:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=lC/CPwsmA7eqEEFL7VbdYU18LbTAjtHFTwHjYVhpt9I=; b=GntVSDfOTI59banTtMxzqZL/JWfxttMcaSNewMQMeUDUPXgFTASwviW59gczDCxc02 TWBP1Rd9jCnf38H0x82fnA89Z0emDvD5hqQynt0f4GIIx4roPbKpCa9pcNbM3ojRj8U7 kGdhANxetEu2tiNUAdrFhkQhx9XqIy90Jibes= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=HQ9MEBAekKfA0zajS4Etm1OXB+Kw5zJztHraeqy5BVXPmvAlE71+1Zu41Wcqm8QCfg yVmJbj1zvQIg6UUn1UBA+Dni4NkiJ8Tn8g0m4Od80QQN1QtRqm3CxrqGpZw2OGJ70Jv4 8hM6I9cnA5gHdq1M+rYE1pxETM2qc37Zbu7Tk= Received: by 10.142.116.12 with SMTP id o12mr5267148wfc.332.1230478762191; Sun, 28 Dec 2008 07:39:22 -0800 (PST) Received: by 10.142.166.4 with HTTP; Sun, 28 Dec 2008 07:39:22 -0800 (PST) Message-ID: Date: Sun, 28 Dec 2008 16:39:22 +0100 From: usleepless@gmail.com To: "Richard Yang" In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org Subject: Re: nat and ipfw, port forwarding X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 15:39:22 -0000 Hi Richard, On Sun, Dec 28, 2008 at 2:30 AM, Richard Yang wrote: > thank you, usleep (nice name)i somehow made it work by > 1. add "redirect_port udp 10.0.0.200:50000 50000" in natd.conf > 2. allow all traffic and diversion in ipfw.rules > > i tried to limit the traffic by modifying the rules in ipfw.rules, > but unsuccessfully. so i just leave it be at this moment. > i am very confused by the roles of natd and ipfw, and how they should work > together. > As far as i understand it ( anyone please correct me if i am wrong ) : There are two types of NAT in FreeBSD to choose from: 1. Natd, which is a userspace daemon. You need to include a divert rule in your ipfw-config which looks like this: #ipfw add 100 divert natd all from any to any via $oif ( $oif stands for outside-interface ) After your packet has been diverted to natd, the NATed package is inserted once again into the firewall to be checked again. Port redirection etc is configured in natd.conf. 2. Kernel NAT, which is part of IPFW. This is what i was referring to in my last message. You set it up through rc.conf ( see man page ). There is no need for a divert-rule. Port redirection etc is configured with ipnat ( store your config in /etc/ipnat.conf ). And please, do not top-post. regards, usleep > > rich > > > On Sat, Dec 27, 2008 at 8:40 AM, wrote: > >> Hi Ricard, >> >> On Fri, Dec 26, 2008 at 9:27 PM, Richard Yang wrote: >> >>> hi, >>> i have a ssh machine behind a freebsd firewall with nat and ipfw. >>> how do i make port forwarding so internet can access the ssh machine? >>> thanx >>> >> >> i think you need to configure /etc/ipnat.conf ( read 'man ipnat' ). this >> is a example definition: >> rdr em1 0.0.0.0/0 port 2223 -> 192.168.1.96 port 22 >> >> ( this redirects incoming traffic on outside-interface em1 port 2223 to an >> internal machine on port 22 ) >> >> also, include "firewall_nat_enable" in your rc.conf ( read 'man rc.conf' ) >> >> to configure the settings from ipnat.conf, run "ipnat -C -f >> /etc/ipnat.conf" >> >> regards, >> >> usleep >> >>> >>> >> > > From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 16:35:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE2201065676 for ; Sun, 28 Dec 2008 16:35:30 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 8B98E8FC12 for ; Sun, 28 Dec 2008 16:35:29 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 5250EAFBC02; Sun, 28 Dec 2008 07:35:29 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sun, 28 Dec 2008 07:35:28 -0900 User-Agent: KMail/1.9.10 References: <20081228060658.GA73070@osiris.chen.org.nz> In-Reply-To: <20081228060658.GA73070@osiris.chen.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812280735.28751.fbsd.questions@rachie.is-a-geek.net> Cc: Mitar , Jonathan Chen Subject: Re: Open with O_APPEND fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 16:35:30 -0000 On Saturday 27 December 2008 21:06:58 Jonathan Chen wrote: > On Sun, Dec 28, 2008 at 05:46:39AM +0100, Mitar wrote: > > Hi! > > > > On Sun, Dec 28, 2008 at 5:10 AM, Mel > > > > wrote: > > > open(2) will succeed but write(2) will fail with EBADF as documented > > > (and I verified this behavior). Still no EACCES as you and the > > > bugreporter are seeing. > > > > Where is documented that write would fail if file is opened only with > > O_APPEND? Implicitly in write(2) manpage: The write(), writev(), pwrite() and pwritev() system calls will fail and the file pointer will remain unchanged if: [EBADF] The d argument is not a valid descriptor open for writing. > > Just O_APPEND should also open file for writing as appending > > is also writing. It cannot be used without "write" semantics so file > > has to be open also for writing. > > If I recall correctly, this behaviour has been standard on UNIX-like > OS's for a *very* long time now. If you are seeing a write allowed > with just O_APPEND on Linux, it would very likely be a Linux only > "feature". Yup. Append is a bad english choice for the constant as it implies writes like you say, but really should be O_ATEND, because that's all that it does: seek to EOF. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 17:11:39 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90DFF106564A for ; Sun, 28 Dec 2008 17:11:39 +0000 (UTC) (envelope-from dscialom@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.190]) by mx1.freebsd.org (Postfix) with ESMTP id 0ACD58FC18 for ; Sun, 28 Dec 2008 17:11:38 +0000 (UTC) (envelope-from dscialom@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so2954543tib.3 for ; Sun, 28 Dec 2008 09:11:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=HMFMwanHPTRCERBqLczz8jeA+izOutxRKCt3+cXcptE=; b=S/wirRYdNwMlrnG6RDbYAmtSICRe9hiG1LKiX4Y/o/UY/N4onP4Ku/zxSmehrVcEPv B65H2Xdd29DMyFcyh8hPv67PqevedzH8bR59QuZzgdZJXsUJ8gtfn5oZBCTLbg003wN+ r0gbvbfJP5ydo0Uh16m8vNZDdT7Ruw8ykeVn0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=L1+/MmjbhvRkon/Rx/Vk2lCMLD/mjP705HKBz1S6lsacxNi49lj4pDrYb0eV3bi6a+ dgVC0hVhRgxRhLLV2Cpz2DThHC0uNVwxfoCn9PKapskj3EGGuI+lqBn6O0cEB0XEB7/q JVacQpOhWWJ+VlX1wQfa7rWS4yoaig7jw3WlY= Received: by 10.110.41.17 with SMTP id o17mr7883854tio.59.1230482752227; Sun, 28 Dec 2008 08:45:52 -0800 (PST) Received: by 10.110.17.13 with HTTP; Sun, 28 Dec 2008 08:45:52 -0800 (PST) Message-ID: Date: Sun, 28 Dec 2008 17:45:52 +0100 From: "David Scialom" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Unable to modify sysid with Fdisk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 17:11:39 -0000 Hello, It seems that it is impossible to modify the sysid with fdisk since FreeBSD 6.2. I am actually using FreeBSD7.0. When I want to modify my the sysid from 165(ufs) to 12(Fat32) i get the message "Geom not found: da0" and no change is made: da0 is stock with sysid = 165. The detail are provided below. I tried also to do the same from the install FreeBSD CD without success. As someone a solution ? Zurich# fdisk -u da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) Do you want to change our idea of what BIOS thinks ? [n] *fdisk: invalid fdisk partition table found* Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 2066400 (1008 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1008/ head 63/ sector 32 Do you want to change it? [n] y Supply a decimal value for "sysid (165=FreeBSD)" [165] 12 Supply a decimal value for "start" [32] Susysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 2066400 (1008 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1008/ head 63/ sector 32 Are we happy with this entry? [n] y The data for partition 2 is: Do you want to change it? [n] The data for partition 3 is: Supply a decimal value for "size" [2066400] Explicitly specify beg/end address ? [n] sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 2066400 (1008 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1008/ head 63/ sector 32 Are we happy with this entry? [n] y The data for partition 2 is: Do you want to change it? [n] The data for partition 3 is: Do you want to change it? [n] The data for partition 4 is: Do you want to change it? [n] Partition 1 is marked active Do you want to change the active partition? [n] y Supply a decimal value for "active partition" [1] Are you happy with this choice [n] y We haven't changed the partition table yet. This is your last chance. parameters extracted from in-core disklabel are: cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) Information from DOS bootblock is: 1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 2066400 (1008 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1008/ head 63/ sector 32 2: 3: 4: Should we write new partition table? [n] y fdisk: Geom not found: "da0" Zurich# fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) fdisk: invalid fdisk partition table found Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 2066400 (1008 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1008/ head 63/ sector 32 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2585F1065670; Sun, 28 Dec 2008 18:00:37 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id D5DEC8FC19; Sun, 28 Dec 2008 18:00:36 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 04D27AFBC02; Sun, 28 Dec 2008 09:00:35 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sun, 28 Dec 2008 09:00:35 -0900 User-Agent: KMail/1.9.10 References: <20081228093556.GA99170@desmo.3rdrock.kicks-ass.net> In-Reply-To: <20081228093556.GA99170@desmo.3rdrock.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812280900.35582.fbsd.questions@rachie.is-a-geek.net> Cc: mich@FreeBSD.org, "Alain G. Fabry" Subject: Re: amarok install failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 18:00:37 -0000 On Sunday 28 December 2008 00:35:56 Alain G. Fabry wrote: > During the installation of amarok, I get the following error, what is going > wrong here. > > gmake[5]: Entering directory > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp' > /bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=compile c++ > -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src > -I../../../../amarok/src -I../../../../amarok/src/amarokcore > -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine > -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice > -I/usr/local/include/taglib -I/usr/local/include -I/usr/local/include > -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT -I/usr/local/include > -I/usr/local/include -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE > -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing > -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common > -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT > -DQT_NO_TRANSLATION -MT mtpmediadevice.lo -MD -MP -MF > .deps/mtpmediadevice.Tpo -c -o mtpmediadevice.lo mtpmediadevice.cpp > /usr/local/include/libmtp.h: In member function 'virtual MediaItem* > MtpMediaDevice::copyTrackToDevice(const MetaBundle&)': > /usr/local/include/libmtp.h:489: error: too many arguments to function 'int > LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*, > LIBMTP_track_t*, int (*)(uint64_t, uint64_t, const void*), const void*)' > mtpmediadevice.cpp:302: error: at this point in file > mtpmediadevice.cpp: In member function 'uint32_t > MtpMediaDevice::getDefaultParentId()': mtpmediadevice.cpp:383: warning: > deprecated conversion from string constant to 'char*' > /usr/local/include/libmtp.h: In member function 'LIBMTP_album_t* > MtpMediaDevice::getOrCreateAlbum(QPtrList*)': > /usr/local/include/libmtp.h:533: error: too many arguments to function 'int > LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)' > mtpmediadevice.cpp:532: error: at this point in file > /usr/local/include/libmtp.h: In member function 'uint32_t > MtpMediaDevice::createFolder(const char*, uint32_t)': > /usr/local/include/libmtp.h:508: error: too few arguments to function > 'uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t, > uint32_t)' mtpmediadevice.cpp:611: error: at this point in file > /usr/local/include/libmtp.h: In member function 'void > MtpMediaDevice::playlistFromItem(MtpMediaItem*)': > /usr/local/include/libmtp.h:521: error: too many arguments to function 'int > LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)' > mtpmediadevice.cpp:916: error: at this point in file > gmake[5]: *** [mtpmediadevice.lo] Error 1 > gmake[5]: Leaving directory > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp' > gmake[4]: *** [all-recursive] Error 1 > gmake[4]: Leaving directory > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice' > gmake[3]: *** [all-recursive] Error 1 > gmake[3]: Leaving directory > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src' gmake[2]: *** > [all-recursive] Error 1 > gmake[2]: Leaving directory > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok' gmake[1]: *** > [all-recursive] Error 1 > gmake[1]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10' > gmake: *** [all] Error 2 > *** Error code 2 This is a result of libmtp update. Either don't use libmtp, downgrade it to previous version 0.2.6 or add the patch below my sig as /usr/ports/audio/amarok/files/patch-amarok_src_mediadevice_mtp_mtpmediadevice.cpp -- Mel --- amarok/src/mediadevice/mtp/mtpmediadevice.cpp.orig 2008-08-13 13:21:51.000000000 -0800 +++ amarok/src/mediadevice/mtp/mtpmediadevice.cpp 2008-12-28 08:47:14.000000000 -0900 @@ -296,9 +296,10 @@ m_critical_mutex.lock(); debug() << "Sending track... " << bundle.url().path().utf8() << endl; + trackmeta->parent_id = parent_id; int ret = LIBMTP_Send_Track_From_File( m_device, bundle.url().path().utf8(), trackmeta, - progressCallback, this, parent_id + progressCallback, this ); m_critical_mutex.unlock(); @@ -529,7 +530,8 @@ for( MtpMediaItem *it = dynamic_cast(items->first()); it; it = dynamic_cast(items->next()) ) album_object->tracks[i++] = it->track()->id(); album_object->no_tracks = items->count(); - ret = LIBMTP_Create_New_Album( m_device, album_object, 0 ); + album_object->parent_id = 0; + ret = LIBMTP_Create_New_Album( m_device, album_object); if( ret != 0 ) { debug() << "creating album failed : " << ret << endl; @@ -577,7 +579,7 @@ { if( create ) { - check_folder = createFolder( (*it).utf8() , parent_id ); + check_folder = createFolder( (*it).utf8() , parent_id); if( check_folder == 0 ) { m_critical_mutex.unlock(); @@ -608,7 +610,9 @@ { debug() << "Creating new folder '" << name << "' as a child of "<< parent_id << endl; char *name_copy = qstrdup( name ); - uint32_t new_folder_id = LIBMTP_Create_Folder( m_device, name_copy, parent_id ); + // XXX: storage_id not used anywhere, so pass in 0, but upstream + // should revisit this. + uint32_t new_folder_id = LIBMTP_Create_Folder( m_device, name_copy, parent_id, 0 ); delete(name_copy); debug() << "New folder ID: " << new_folder_id << endl; if( new_folder_id == 0 ) @@ -913,7 +917,8 @@ if( item->playlist()->id() == 0 ) { debug() << "creating new playlist : " << metadata->name << endl; - int ret = LIBMTP_Create_New_Playlist( m_device, metadata, 0 ); + metadata->parent_id = 0; + int ret = LIBMTP_Create_New_Playlist( m_device, metadata); if( ret == 0 ) { item->playlist()->setId( metadata->playlist_id ); From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 18:56:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D0E31065670 for ; Sun, 28 Dec 2008 18:56:33 +0000 (UTC) (envelope-from jerome@code-monkey.nl) Received: from viefep18-int.chello.at (viefep19-int.chello.at [62.179.121.39]) by mx1.freebsd.org (Postfix) with ESMTP id B20448FC16 for ; Sun, 28 Dec 2008 18:56:32 +0000 (UTC) (envelope-from jerome@code-monkey.nl) Received: from edge04.upc.biz ([192.168.13.239]) by viefep19-int.chello.at (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20081228185630.ECWT29431.viefep19-int.chello.at@edge04.upc.biz>; Sun, 28 Dec 2008 19:56:30 +0100 Received: from f89199.upc-f.chello.nl ([92.108.20.29]) by edge04.upc.biz with edge id wiwT1a05l0dehbQ04iwVzy; Sun, 28 Dec 2008 19:56:29 +0100 X-SourceIP: 92.108.20.29 Received: from localhost ([127.0.0.1]) by f89199.upc-f.chello.nl; Sun, 28 Dec 2008 19:55:11 +0100 To: "Paul B. Mahol" From: jerome In-Reply-To: 3a142e750812220415o2a361006vf18468b485440ff3@mail.gmail.com Message-ID: <20081228185511.7b4deafa@f89199.upc-f.chello.nl> Date: Sun, 28 Dec 2008 19:55:11 +0100 X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: disk error / reboot / 6.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 18:56:33 -0000 Hi Paul, The patch worked (almost).=20 At first a program accessing a disk that reported an uncorrectable error= , the program just segfaulted. Another instance let to the situation that I was only able to ping the s= erver. No ssh or console access was possible anymore. -Pat =5F=5F=5F=5F=5F =20 From: Paul B. Mahol [mailto:onemda@gmail.com] To: jerome [mailto:jerome@code-monkey.nl] Cc: freebsd-questions@freebsd.org Sent: Mon, 22 Dec 2008 13:15:12 +0100 Subject: Re: disk error / reboot / 6.3 On 12/22/08, jerome wrote: > Hi Paul, > > The server resets while running, like pressing the reset button... =20 Try this patch: =20 --- src/sys/dev/ata/ata-queue.c 2008/10/27 09:26:24 1.74 +++ src/sys/dev/ata/ata-queue.c 2008/11/27 03:37:46 1.75 @@ -357,7 +357,7 @@ ata=5Fcompleted(void *context, int dummy) "\6MEDIA=5FCHANGED\5NID=5FNOT=5FFOUND" "\4MEDIA=5FCHANGE=5FREQEST" "\3ABORTED\2NO=5FMEDIA\1ILLEGAL=5FLENGTH= "); - if ((request->flags & ATA=5FR=5FDMA) && + if ((request->flags & ATA=5FR=5FDMA) && request->dma &= & (request->dma->status & ATA=5FBMSTAT=5FERROR)) printf(" dma=3D0x%02x", request->dma->status); if (!(request->flags & (ATA=5FR=5FATAPI | ATA=5FR=5FCO= NTROL))) =20 --=20 Paul =20 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 19:37:04 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E878E1065673 for ; Sun, 28 Dec 2008 19:37:04 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-bw0-f19.google.com (mail-bw0-f19.google.com [209.85.218.19]) by mx1.freebsd.org (Postfix) with ESMTP id 38C478FC14 for ; Sun, 28 Dec 2008 19:37:04 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by bwz12 with SMTP id 12so12089871bwz.19 for ; Sun, 28 Dec 2008 11:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Iu+El9ITsqTc6sjsUDr2vDXlKWNjBE4aSCcYw0VL48s=; b=niMaYsXi8Egn6NvtSGtMq2vnPgBf4ojwt5DTKBo85sfRWi0Nd9RAvrgBgpexGxcY8n FoYgBxWTG/2KFOKYpbBeOBQTfGGyspChRGc3CTSo2lXKvkci9Rp5qMwrPDTjvX2e/6wd rAEfId9qLIuvJkzd9zIRIcDZyPsCshNAB3k3w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=bM2o4qnYWkk3EgxPYSb2kdIONk0uuRsbdssr2ysxfolAYyzItphZwb2HC0DI1MAwxt ari6qhth7zQDSb8lY6RVOJkrhNeGE6ABPvo7MxxvuDneExgkCumlARFxdi3GPQiNjiE/ XqmkcU71EnkKN5kOZA8Pbm+I8KE03PAJOyHIM= Received: by 10.223.113.193 with SMTP id b1mr9421804faq.78.1230493022461; Sun, 28 Dec 2008 11:37:02 -0800 (PST) Received: by 10.223.115.1 with HTTP; Sun, 28 Dec 2008 11:37:02 -0800 (PST) Message-ID: <3a142e750812281137t63663d87x6e1efe8a8ee5f004@mail.gmail.com> Date: Sun, 28 Dec 2008 20:37:02 +0100 From: "Paul B. Mahol" To: jerome In-Reply-To: <20081228185511.7b4deafa@f89199.upc-f.chello.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081228185511.7b4deafa@f89199.upc-f.chello.nl> Cc: freebsd-questions@freebsd.org Subject: Re: disk error / reboot / 6.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 19:37:05 -0000 On 12/28/08, jerome wrote: > Hi Paul, > > The patch worked (almost). > > At first a program accessing a disk that reported an uncorrectable error, > the program just segfaulted. > > Another instance let to the situation that I was only able to ping the > server. > No ssh or console access was possible anymore. That is somehow to be expected, the point of patch is to fix panic, not trashing due to faulty disk/drivers/something else ... -- Paul From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 20:36:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FAE81065675 for ; Sun, 28 Dec 2008 20:36:16 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 33DB08FC26 for ; Sun, 28 Dec 2008 20:36:16 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by wa-out-1112.google.com with SMTP id m34so2558877wag.27 for ; Sun, 28 Dec 2008 12:36:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=8NwB2doAOvZ7DRyWBPKWg2BB/K7TFKR5cPjMLzNoxGw=; b=scZJ+NiXvK8T9XQvvCcv6qBaCdq5D7yBS0iQh1CoTBBjclBXFkMheF+J24paH7PYl+ 2E0Q5pB1CP//RPXc2YPO8XRbV5XNqFQxZWsyFLGXV4NYodRsKOrskPcpfkQ2+xkGn6Z4 cUdBi+Z+ydZxevXBnAj7STcaun9IDzneMuKF8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=MMunUlXr2hrQjj2JqtWXXSiHnB6Y48Qf9ShD5Rxw0PLnTWFLpuw2ZG2MIZjRNoNPwf g6nwOZUQbKusHgpvjGzSsJfBUTMnJg/VQwW39/FR3vEngKHuKURJ5uLytsQTiOMnnl5w umTKlhbUUF4SfA4//0dIWHnzZl/Te65lTZJuY= Received: by 10.114.133.1 with SMTP id g1mr8489568wad.21.1230496575903; Sun, 28 Dec 2008 12:36:15 -0800 (PST) Received: from ?192.168.4.44? (c-76-113-34-1.hsd1.nm.comcast.net [76.113.34.1]) by mx.google.com with ESMTPS id a8sm15508099poa.19.2008.12.28.12.36.13 (version=SSLv3 cipher=RC4-MD5); Sun, 28 Dec 2008 12:36:14 -0800 (PST) Message-ID: <4957E333.1050103@gmail.com> Date: Sun, 28 Dec 2008 13:36:03 -0700 From: Tim User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: David Scialom References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Unable to modify sysid with Fdisk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 20:36:16 -0000 David Scialom wrote: > Hello, > > It seems that it is impossible to modify the sysid with fdisk since FreeBSD > 6.2. I am actually using FreeBSD7.0. > When I want to modify my the sysid from 165(ufs) to 12(Fat32) i get the > message "Geom not found: da0" and no change is made: da0 is stock with sysid > = 165. The detail are provided below. I tried also to do the same from the > install FreeBSD CD without success. > > As someone a solution ? > > Zurich# fdisk -u da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > Do you want to change our idea of what BIOS thinks ? [n] > *fdisk: invalid fdisk partition table found* > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 32, size 2066400 (1008 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1008/ head 63/ sector 32 > Do you want to change it? [n] y > Supply a decimal value for "sysid (165=FreeBSD)" [165] 12 > Supply a decimal value for "start" [32] > Susysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) > start 32, size 2066400 (1008 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1008/ head 63/ sector 32 > Are we happy with this entry? [n] y > The data for partition 2 is: > > Do you want to change it? [n] > The data for partition 3 is: > > Supply a decimal value for "size" [2066400] > Explicitly specify beg/end address ? [n] > sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) > start 32, size 2066400 (1008 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1008/ head 63/ sector 32 > Are we happy with this entry? [n] y > The data for partition 2 is: > > Do you want to change it? [n] > The data for partition 3 is: > > Do you want to change it? [n] > The data for partition 4 is: > > Do you want to change it? [n] > Partition 1 is marked active > Do you want to change the active partition? [n] y > Supply a decimal value for "active partition" [1] > Are you happy with this choice [n] y > > We haven't changed the partition table yet. This is your last chance. > parameters extracted from in-core disklabel are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > Information from DOS bootblock is: > 1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) > start 32, size 2066400 (1008 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1008/ head 63/ sector 32 > 2: > 3: > 4: > Should we write new partition table? [n] y > fdisk: Geom not found: "da0" > Zurich# fdisk da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > fdisk: invalid fdisk partition table found > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 32, size 2066400 (1008 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1008/ head 63/ sector 32 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > The "Warning: Invalid fdisk partition table found" is a red flag to me. If the partition boundries don't lie on a cylinder, than it's invalid. I also see after it prints partition 3, it randomly asks for the size of the partition, without asking for anything else. I think those first 512 sectors are messed up. If I were you, I'd wipe the first 2 tracks of the disk. dd if=/dev/zero bs=512 count=128 of=/dev/da0 And recreate the partition then. fdisk isn't seeing a sane layout to begin with and it may silently be discarding the changes asked. Good luck. From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 20:57:31 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3779D1065670; Sun, 28 Dec 2008 20:57:31 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id E3E708FC16; Sun, 28 Dec 2008 20:57:30 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBSKvtq2080026; Sun, 28 Dec 2008 12:57:55 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sun, 28 Dec 2008 12:57:21 -0800 (PST) Date: Sun, 28 Dec 2008 12:57:20 -0800 From: Gary Kline To: Mel Message-ID: <20081228205720.GA18496@thought.org> References: <20081228093556.GA99170@desmo.3rdrock.kicks-ass.net> <200812280900.35582.fbsd.questions@rachie.is-a-geek.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812280900.35582.fbsd.questions@rachie.is-a-geek.net> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: mich@freebsd.org, freebsd-questions@freebsd.org, "Alain G. Fabry" Subject: Re: amarok install failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 20:57:31 -0000 On Sun, Dec 28, 2008 at 09:00:35AM -0900, Mel wrote: > On Sunday 28 December 2008 00:35:56 Alain G. Fabry wrote: > > During the installation of amarok, I get the following error, what is going > > wrong here. > > > > gmake[5]: Entering directory > > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp' > > /bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=compile c++ > > -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src > > -I../../../../amarok/src -I../../../../amarok/src/amarokcore > > -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine > > -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice > > -I/usr/local/include/taglib -I/usr/local/include -I/usr/local/include > > -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT -I/usr/local/include > > -I/usr/local/include -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE > > -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing > > -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common > > -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT > > -DQT_NO_TRANSLATION -MT mtpmediadevice.lo -MD -MP -MF > > .deps/mtpmediadevice.Tpo -c -o mtpmediadevice.lo mtpmediadevice.cpp > > /usr/local/include/libmtp.h: In member function 'virtual MediaItem* > > MtpMediaDevice::copyTrackToDevice(const MetaBundle&)': > > /usr/local/include/libmtp.h:489: error: too many arguments to function 'int > > LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*, > > LIBMTP_track_t*, int (*)(uint64_t, uint64_t, const void*), const void*)' > > mtpmediadevice.cpp:302: error: at this point in file > > mtpmediadevice.cpp: In member function 'uint32_t > > MtpMediaDevice::getDefaultParentId()': mtpmediadevice.cpp:383: warning: > > deprecated conversion from string constant to 'char*' > > /usr/local/include/libmtp.h: In member function 'LIBMTP_album_t* > > MtpMediaDevice::getOrCreateAlbum(QPtrList*)': > > /usr/local/include/libmtp.h:533: error: too many arguments to function 'int > > LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)' > > mtpmediadevice.cpp:532: error: at this point in file > > /usr/local/include/libmtp.h: In member function 'uint32_t > > MtpMediaDevice::createFolder(const char*, uint32_t)': > > /usr/local/include/libmtp.h:508: error: too few arguments to function > > 'uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t, > > uint32_t)' mtpmediadevice.cpp:611: error: at this point in file > > /usr/local/include/libmtp.h: In member function 'void > > MtpMediaDevice::playlistFromItem(MtpMediaItem*)': > > /usr/local/include/libmtp.h:521: error: too many arguments to function 'int > > LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)' > > mtpmediadevice.cpp:916: error: at this point in file > > gmake[5]: *** [mtpmediadevice.lo] Error 1 > > gmake[5]: Leaving directory > > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp' > > gmake[4]: *** [all-recursive] Error 1 > > gmake[4]: Leaving directory > > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice' > > gmake[3]: *** [all-recursive] Error 1 > > gmake[3]: Leaving directory > > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src' gmake[2]: *** > > [all-recursive] Error 1 > > gmake[2]: Leaving directory > > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok' gmake[1]: *** > > [all-recursive] Error 1 > > gmake[1]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10' > > gmake: *** [all] Error 2 > > *** Error code 2 > > This is a result of libmtp update. Either don't use libmtp, downgrade it to > previous version 0.2.6 or add the patch below my sig > as /usr/ports/audio/amarok/files/patch-amarok_src_mediadevice_mtp_mtpmediadevice.cpp > > -- > Mel > > --- amarok/src/mediadevice/mtp/mtpmediadevice.cpp.orig 2008-08-13 > 13:21:51.000000000 -0800 > +++ amarok/src/mediadevice/mtp/mtpmediadevice.cpp 2008-12-28 > 08:47:14.000000000 -0900 > @@ -296,9 +296,10 @@ > > m_critical_mutex.lock(); > debug() << "Sending track... " << bundle.url().path().utf8() << endl; > + trackmeta->parent_id = parent_id; > int ret = LIBMTP_Send_Track_From_File( > m_device, bundle.url().path().utf8(), trackmeta, > - progressCallback, this, parent_id > + progressCallback, this > ); > m_critical_mutex.unlock(); > > @@ -529,7 +530,8 @@ > for( MtpMediaItem *it = dynamic_cast(items->first()); > it; it = dynamic_cast(items->next()) ) > album_object->tracks[i++] = it->track()->id(); > album_object->no_tracks = items->count(); > - ret = LIBMTP_Create_New_Album( m_device, album_object, 0 ); > + album_object->parent_id = 0; > + ret = LIBMTP_Create_New_Album( m_device, album_object); > if( ret != 0 ) > { > debug() << "creating album failed : " << ret << endl; > @@ -577,7 +579,7 @@ > { > if( create ) > { > - check_folder = createFolder( (*it).utf8() , parent_id ); > + check_folder = createFolder( (*it).utf8() , parent_id); > if( check_folder == 0 ) > { > m_critical_mutex.unlock(); > @@ -608,7 +610,9 @@ > { > debug() << "Creating new folder '" << name << "' as a child of "<< > parent_id << endl; > char *name_copy = qstrdup( name ); > - uint32_t new_folder_id = LIBMTP_Create_Folder( m_device, name_copy, > parent_id ); > + // XXX: storage_id not used anywhere, so pass in 0, but upstream > + // should revisit this. > + uint32_t new_folder_id = LIBMTP_Create_Folder( m_device, name_copy, > parent_id, 0 ); > delete(name_copy); > debug() << "New folder ID: " << new_folder_id << endl; > if( new_folder_id == 0 ) > @@ -913,7 +917,8 @@ > if( item->playlist()->id() == 0 ) > { > debug() << "creating new playlist : " << metadata->name << endl; > - int ret = LIBMTP_Create_New_Playlist( m_device, metadata, 0 ); > + metadata->parent_id = 0; > + int ret = LIBMTP_Create_New_Playlist( m_device, metadata); > if( ret == 0 ) > { > item->playlist()->setId( metadata->playlist_id ); Mel, amaroK is one of my favorites. Any idea if/how soon your patch will be in ports? ---It's been awhile since my last portupgrade and I'd hate to break this one, especially! gary > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 23:01:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA244106564A; Sun, 28 Dec 2008 23:01:45 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.freebsd.org (Postfix) with ESMTP id 5098E8FC17; Sun, 28 Dec 2008 23:01:45 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr1.xs4all.nl (8.13.8/8.13.8) with ESMTP id mBSN1goC058098; Mon, 29 Dec 2008 00:01:42 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 35AFCBA93; Mon, 29 Dec 2008 00:01:42 +0100 (CET) Date: Mon, 29 Dec 2008 00:01:42 +0100 From: Roland Smith To: Gary Kline Message-ID: <20081228230142.GA95131@slackbox.xs4all.nl> References: <20081228093556.GA99170@desmo.3rdrock.kicks-ass.net> <200812280900.35582.fbsd.questions@rachie.is-a-geek.net> <20081228205720.GA18496@thought.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: <20081228205720.GA18496@thought.org> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: mich@freebsd.org, Mel , "Alain G. Fabry" , freebsd-questions@freebsd.org Subject: Re: amarok install failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 23:01:46 -0000 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 28, 2008 at 12:57:20PM -0800, Gary Kline wrote: > On Sun, Dec 28, 2008 at 09:00:35AM -0900, Mel wrote: > > On Sunday 28 December 2008 00:35:56 Alain G. Fabry wrote: [snip] > > This is a result of libmtp update. Either don't use libmtp, downgrade i= t to=20 > > previous version 0.2.6 or add the patch below my sig=20 > > as /usr/ports/audio/amarok/files/patch-amarok_src_mediadevice_mtp_mtpme= diadevice.cpp [snip] > Mel, >=20 > amaroK is one of my favorites. Any idea if/how soon your > patch will be in ports? ---It's been awhile since my last > portupgrade and I'd hate to break this one, especially! Just put the patch in the files subdirectory of the port, and set the schg and sunlnk on that patch file with chflags(1). The patch then cannot be overwritten or removed untill the flags are cleared. I haven't tried it with csup, but portsnap can't remove the extra patch. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklYBVYACgkQEnfvsMMhpyWb1wCdHI/nFBAUiGxR38X2XFe6lIkR yXsAnie5cXnXa/0v9lwJOwDaC5rkAVXK =eAft -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ-- From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 23:48:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1C45106564A for ; Sun, 28 Dec 2008 23:48:03 +0000 (UTC) (envelope-from mich@prodnet.eu) Received: from freebsdcluster.org (freebsdcluster.dk [195.184.98.178]) by mx1.freebsd.org (Postfix) with ESMTP id 111168FC1A for ; Sun, 28 Dec 2008 23:48:03 +0000 (UTC) (envelope-from mich@prodnet.eu) Received: from [192.168.0.11] (ip-97.net-82-216-37.nice.rev.numericable.fr [82.216.37.97]) by freebsdcluster.org (Postfix) with ESMTPA id A987B28419; Sun, 28 Dec 2008 23:26:22 +0000 (UTC) References: <20081228093556.GA99170@desmo.3rdrock.kicks-ass.net> <200812280900.35582.fbsd.questions@rachie.is-a-geek.net> <20081228205720.GA18496@thought.org> Message-Id: From: Michael Landin Hostbaek To: Gary Kline In-Reply-To: <20081228205720.GA18496@thought.org> Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Mailer: iPhone Mail (5G77) Mime-Version: 1.0 (iPhone Mail 5G77) Date: Mon, 29 Dec 2008 00:32:33 +0100 Cc: Michael Landin Hostbaek , Mel , "Alain G. Fabry" , "freebsd-questions@freebsd.org" Subject: Re: amarok install failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 23:48:03 -0000 On 28 d=C3=A9c. 08, at 21:57, Gary Kline wrote: > On Sun, Dec 28, 2008 at 09:00:35AM -0900, Mel wrote: >> On Sunday 28 December 2008 00:35:56 Alain G. Fabry wrote: >>> During the installation of amarok, I get the following error, what =20= >>> is going >>> wrong here. >>> >>> gmake[5]: Entering directory >>> `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/=20= >>> mtp' >>> /bin/sh /usr/local/bin/libtool --silent --tag=3DCXX --mode=3Dcompile= =20 >>> c++ >>> -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src >>> -I../../../../amarok/src -I../../../../amarok/src/amarokcore >>> -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine >>> -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice >>> -I/usr/local/include/taglib -I/usr/local/include -I/usr/local/=20 >>> include >>> -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT -I/usr/local/include >>> -I/usr/local/include -I/usr/local/include -D_GETOPT_H -=20 >>> D_THREAD_SAFE >>> -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-=20 >>> aliasing >>> -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-=20 >>> common >>> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT >>> -DQT_NO_TRANSLATION -MT mtpmediadevice.lo -MD -MP -MF >>> .deps/mtpmediadevice.Tpo -c -o mtpmediadevice.lo mtpmediadevice.cpp >>> /usr/local/include/libmtp.h: In member function 'virtual MediaItem* >>> MtpMediaDevice::copyTrackToDevice(const MetaBundle&)': >>> /usr/local/include/libmtp.h:489: error: too many arguments to =20 >>> function 'int >>> LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*, >>> LIBMTP_track_t*, int (*)(uint64_t, uint64_t, const void*), const =20 >>> void*)' >>> mtpmediadevice.cpp:302: error: at this point in file >>> mtpmediadevice.cpp: In member function 'uint32_t >>> MtpMediaDevice::getDefaultParentId()': mtpmediadevice.cpp:383: =20 >>> warning: >>> deprecated conversion from string constant to 'char*' >>> /usr/local/include/libmtp.h: In member function 'LIBMTP_album_t* >>> MtpMediaDevice::getOrCreateAlbum(QPtrList*)': >>> /usr/local/include/libmtp.h:533: error: too many arguments to =20 >>> function 'int >>> LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)' >>> mtpmediadevice.cpp:532: error: at this point in file >>> /usr/local/include/libmtp.h: In member function 'uint32_t >>> MtpMediaDevice::createFolder(const char*, uint32_t)': >>> /usr/local/include/libmtp.h:508: error: too few arguments to =20 >>> function >>> 'uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t, >>> uint32_t)' mtpmediadevice.cpp:611: error: at this point in file >>> /usr/local/include/libmtp.h: In member function 'void >>> MtpMediaDevice::playlistFromItem(MtpMediaItem*)': >>> /usr/local/include/libmtp.h:521: error: too many arguments to =20 >>> function 'int >>> LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)' >>> mtpmediadevice.cpp:916: error: at this point in file >>> gmake[5]: *** [mtpmediadevice.lo] Error 1 >>> gmake[5]: Leaving directory >>> `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/=20= >>> mtp' >>> gmake[4]: *** [all-recursive] Error 1 >>> gmake[4]: Leaving directory >>> `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice' >>> gmake[3]: *** [all-recursive] Error 1 >>> gmake[3]: Leaving directory >>> `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src' gmake[2]: =20= >>> *** >>> [all-recursive] Error 1 >>> gmake[2]: Leaving directory >>> `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok' gmake[1]: *** >>> [all-recursive] Error 1 >>> gmake[1]: Leaving directory `/usr/ports/audio/amarok/work/=20 >>> amarok-1.4.10' >>> gmake: *** [all] Error 2 >>> *** Error code 2 >> >> This is a result of libmtp update. Either don't use libmtp, =20 >> downgrade it to >> previous version 0.2.6 or add the patch below my sig >> as /usr/ports/audio/amarok/files/patch-=20 >> amarok_src_mediadevice_mtp_mtpmediadevice.cpp >> >> --=20 >> Mel >> >> --- amarok/src/mediadevice/mtp/mtpmediadevice.cpp.orig 2008-08-13 >> 13:21:51.000000000 -0800 >> +++ amarok/src/mediadevice/mtp/mtpmediadevice.cpp 2008-12-28 >> 08:47:14.000000000 -0900 >> @@ -296,9 +296,10 @@ >> >> m_critical_mutex.lock(); >> debug() << "Sending track... " << bundle.url().path().utf8() << =20= >> endl; >> + trackmeta->parent_id =3D parent_id; >> int ret =3D LIBMTP_Send_Track_From_File( >> m_device, bundle.url().path().utf8(), trackmeta, >> - progressCallback, this, parent_id >> + progressCallback, this >> ); >> m_critical_mutex.unlock(); >> >> @@ -529,7 +530,8 @@ >> for( MtpMediaItem *it =3D dynamic_cast(items-=20= >> >first()); >> it; it =3D dynamic_cast(items->next()) ) >> album_object->tracks[i++] =3D it->track()->id(); >> album_object->no_tracks =3D items->count(); >> - ret =3D LIBMTP_Create_New_Album( m_device, album_object, 0 = ); >> + album_object->parent_id =3D 0; >> + ret =3D LIBMTP_Create_New_Album( m_device, album_object); >> if( ret !=3D 0 ) >> { >> debug() << "creating album failed : " << ret << endl; >> @@ -577,7 +579,7 @@ >> { >> if( create ) >> { >> - check_folder =3D createFolder( (*it).utf8() , =20 >> parent_id ); >> + check_folder =3D createFolder( (*it).utf8() , =20 >> parent_id); >> if( check_folder =3D=3D 0 ) >> { >> m_critical_mutex.unlock(); >> @@ -608,7 +610,9 @@ >> { >> debug() << "Creating new folder '" << name << "' as a child of =20= >> "<< >> parent_id << endl; >> char *name_copy =3D qstrdup( name ); >> - uint32_t new_folder_id =3D LIBMTP_Create_Folder( m_device, =20 >> name_copy, >> parent_id ); >> + // XXX: storage_id not used anywhere, so pass in 0, but upstream >> + // should revisit this. >> + uint32_t new_folder_id =3D LIBMTP_Create_Folder( m_device, =20 >> name_copy, >> parent_id, 0 ); >> delete(name_copy); >> debug() << "New folder ID: " << new_folder_id << endl; >> if( new_folder_id =3D=3D 0 ) >> @@ -913,7 +917,8 @@ >> if( item->playlist()->id() =3D=3D 0 ) >> { >> debug() << "creating new playlist : " << metadata->name << =20= >> endl; >> - int ret =3D LIBMTP_Create_New_Playlist( m_device, metadata, =20= >> 0 ); >> + metadata->parent_id =3D 0; >> + int ret =3D LIBMTP_Create_New_Playlist( m_device, metadata); >> if( ret =3D=3D 0 ) >> { >> item->playlist()->setId( metadata->playlist_id ); > > > Mel, > > amaroK is one of my favorites. Any idea if/how soon your > patch will be in ports? ---It's been awhile since my last > portupgrade and I'd hate to break this one, especially! I will test tomorrow, and commit straight after if it does not break =20 anything. /mich > > > gary > > >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org=20 >> " > > --=20 > Gary Kline kline@thought.org http://www.thought.org Public =20 > Service Unix > http://jottings.thought.org http://transfinite.thought.org > The 2.17a release of Jottings: http://jottings.thought.org/=20 > index.php From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 00:41:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C43E61065675 for ; Mon, 29 Dec 2008 00:41:33 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 8A4928FC33 for ; Mon, 29 Dec 2008 00:41:33 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id mBT0fWQY023625; Sun, 28 Dec 2008 17:41:32 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id mBT0fVFu023622; Sun, 28 Dec 2008 17:41:32 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 28 Dec 2008 17:41:31 -0700 (MST) From: Warren Block To: Matthias Apitz In-Reply-To: <20081227120610.GA8365@rebelion.Sisis.de> Message-ID: References: <20081227120610.GA8365@rebelion.Sisis.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (wonkity.com [127.0.0.1]); Sun, 28 Dec 2008 17:41:32 -0700 (MST) Cc: freebsd-questions@freebsd.org Subject: Re: old flopy drive on parallel port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 00:41:33 -0000 On Sat, 27 Dec 2008, Matthias Apitz wrote: > I've just thrown away an very old laptop which was running FreeBSD 2.2.5 > in the mid of the 90's; this have had an external 3.5 inch floppy drive, > connected through a cable to the parallel port and this way fully supported, > even for the basic installation of FreeBSD which was based on making a > boot-able floppy; I saved this drive because I still have some old > floppies here around and at home no other drive to read them; Support may have been through hardware on the laptop. ISTR some old machines doing that: a special parallel-port floppy would be seen by the system, and the OS wouldn't know the difference. > My question is: can it be used / plug'eg in without any danger into to parallel > port of my actual laptop (Fujitsu Siemens) and is this somehow still supported > in FreeBSD 7.0 as well? If it was hardware supported by the old laptop, it could do bad things to a current system. Physical "let the smoke out" things. External USB floppy drives are cheap, although I don't know how well they work with FreeBSD. -Warren Block * Rapid City, South Dakota USA From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 03:16:50 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31A49106567E; Mon, 29 Dec 2008 03:16:50 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (aristotle.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id C5FE68FC2C; Mon, 29 Dec 2008 03:16:49 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBT3HGL2082226; Sun, 28 Dec 2008 19:17:16 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sun, 28 Dec 2008 19:16:42 -0800 (PST) Date: Sun, 28 Dec 2008 19:16:41 -0800 From: Gary Kline To: Michael Landin Hostbaek Message-ID: <20081229031640.GA29576@thought.org> References: <20081228093556.GA99170@desmo.3rdrock.kicks-ass.net> <200812280900.35582.fbsd.questions@rachie.is-a-geek.net> <20081228205720.GA18496@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: Michael Landin Hostbaek , Mel , "Alain G. Fabry" , "freebsd-questions@freebsd.org" Subject: Re: amarok install failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 03:16:50 -0000 On Mon, Dec 29, 2008 at 12:32:33AM +0100, Michael Landin Hostbaek wrote: > > [[ egad ! ]] > >>+ int ret = LIBMTP_Create_New_Playlist( m_device, metadata); > >> if( ret == 0 ) > >> { > >> item->playlist()->setId( metadata->playlist_id ); > > > > > > Mel, > > > > amaroK is one of my favorites. Any idea if/how soon your > > patch will be in ports? ---It's been awhile since my last > > portupgrade and I'd hate to break this one, especially! > > I will test tomorrow, and commit straight after if it does not break > anything. > > /mich thanks, and thank you, roland. i've fooled with chflags and patches before--esp'ly on my own stuff ... well, since hacking code in my fa--well my second-favorite activity. but if mich is going to do it, i'd breathe more easily. gary .LT. 24 da to go before the *DARKNESS* lifts. ...hope i dont get extraordinarily renditioned for mentioning that.......... > > > > > > > > gary > > > > > >> > >>_______________________________________________ > >>freebsd-questions@freebsd.org mailing list > >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >>To unsubscribe, send any mail to > >>"freebsd-questions-unsubscribe@freebsd.org " > > > >-- > >Gary Kline kline@thought.org http://www.thought.org Public > >Service Unix > > http://jottings.thought.org http://transfinite.thought.org > > The 2.17a release of Jottings: http://jottings.thought.org/ > >index.php -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 04:46:43 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 353811065670 for ; Mon, 29 Dec 2008 04:46:43 +0000 (UTC) (envelope-from masoom.shaikh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by mx1.freebsd.org (Postfix) with ESMTP id 10E9A8FC1C for ; Mon, 29 Dec 2008 04:46:43 +0000 (UTC) (envelope-from masoom.shaikh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so5812072rvf.43 for ; Sun, 28 Dec 2008 20:46:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=Owm7Pyb47GynWo86jq0hZ4ZeORu/KvGH8IiQEeG6Up0=; b=hoveqFGppFanabqinAT3hIvdx5b/tcAZydeC0Y5jv1nEjPQvYP/ky+cTcrRf3hcdz8 KSeDMe50InCTGlW7gxLHcETTA/+e/zi8ropsjDc8yxGLd0SNDi6yaMaUXdKBHhjIDIDx K4Y+5C1u5eC2DzrV37b0C9TWxfsu9d0VamOKg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=UrQpl+fXlBUlyd6ljEF0wHM/YVI9tPVtfze7FhizVY2cYC+43NL0v3Xod15mgpUAeO 45O5Hk1sb3sEmAmH9kITMh8bCxnbPu7sLerSI1NcfQlt8/NTA7K0Zbt/iJ6hXr0/T3Ss APVhYi+NEtplYZ8KMEsnEk4cYynsyEMuuHiio= Received: by 10.140.207.2 with SMTP id e2mr6553955rvg.65.1230526002390; Sun, 28 Dec 2008 20:46:42 -0800 (PST) Received: by 10.141.113.5 with HTTP; Sun, 28 Dec 2008 20:46:42 -0800 (PST) Message-ID: Date: Mon, 29 Dec 2008 10:16:42 +0530 From: "Masoom Shaikh" To: "freebsd-questions@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 04:46:43 -0000 hello list, in my previous FBSD installations i always had a local copy of handbook never bothered how it got there, until now. i lost my installation due to some good ups. reinstalled minimal 7.0 and build installed kernel & world uname -a FreeBSD raptor 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Wed Dec 17 13:27:42 UTC 2008 root@:/usr/obj/usr/src/sys/ARGON18 amd64 now i cannot see local copy of handbook, i had look at FreeBSD Documentation Primer but that seems overkill and geared towards contributing documentation http://www.freebsd.org/doc/en/books/fdp-primer/ also I cud use tarballs from FTP, but is there easy way to install them ? also csup didn't help here is my csup file *default tag=RELENG_7 *default host=ftp2.tw.freebsd.org *default prefix=/usr *default base=/var/db *default release=cvs delete use-rel-suffix compress src-all doc-all csup updates the source each time, but now i am not sure about doc!! hints and help ? Masoom Shaikh From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 04:54:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07AC21065670; Mon, 29 Dec 2008 04:54:27 +0000 (UTC) (envelope-from masoom.shaikh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by mx1.freebsd.org (Postfix) with ESMTP id C7B9A8FC17; Mon, 29 Dec 2008 04:54:26 +0000 (UTC) (envelope-from masoom.shaikh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so5813976rvf.43 for ; Sun, 28 Dec 2008 20:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=TV6zSCZK/x3bUbSxSZes2ukClVvKUgGqrHpoQraJX6E=; b=pfyICPUyoGmntqIgKf9VQE7Wn2AGaTGEL/y7zWj3zhJKBrN1B1L/8nc89qEHGCXjN1 izAc2qJz7XhwUadizYyP59c6N3WJmKRJbjdcTEdWL30vcPjA3GHX+Digk2DklMP7h2Aj Z+s2bouGJCoWs1zcvan/Tb/sTj5Q90tR8ohhU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=a/NSaUScX9Yi/nqRJMB0KSJzvkENJoSawDYK6yTbFoE3b18WbwrObL1vFoX8MNGq2l 4IpT1kJg/jOY/TnKPhEF+XCp6Zl6C1yBicnUkHFcUj3nkYIeyw23lWkhYjn/DgEUo4+3 kq2hiq6nfmRcQeh3haMFAHdhQW9ew5gesCNrM= Received: by 10.141.76.1 with SMTP id d1mr2107293rvl.110.1230526465655; Sun, 28 Dec 2008 20:54:25 -0800 (PST) Received: by 10.141.113.5 with HTTP; Sun, 28 Dec 2008 20:54:25 -0800 (PST) Message-ID: Date: Mon, 29 Dec 2008 10:24:25 +0530 From: "Masoom Shaikh" To: "Gary Kline" In-Reply-To: <20081228205720.GA18496@thought.org> MIME-Version: 1.0 References: <20081228093556.GA99170@desmo.3rdrock.kicks-ass.net> <200812280900.35582.fbsd.questions@rachie.is-a-geek.net> <20081228205720.GA18496@thought.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: mich@freebsd.org, Mel , "Alain G. Fabry" , freebsd-questions@freebsd.org Subject: Re: amarok install failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 04:54:27 -0000 On Mon, Dec 29, 2008 at 2:27 AM, Gary Kline wrote: > On Sun, Dec 28, 2008 at 09:00:35AM -0900, Mel wrote: > > On Sunday 28 December 2008 00:35:56 Alain G. Fabry wrote: > > > During the installation of amarok, I get the following error, what is > going > > > wrong here. > > > > > > gmake[5]: Entering directory > > > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp' > > > /bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=compile c++ > > > -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src > > > -I../../../../amarok/src -I../../../../amarok/src/amarokcore > > > -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine > > > -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice > > > -I/usr/local/include/taglib -I/usr/local/include > -I/usr/local/include > > > -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT -I/usr/local/include > > > -I/usr/local/include -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE > > > -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 > -fno-strict-aliasing > > > -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common > > > -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT > > > -DQT_NO_TRANSLATION -MT mtpmediadevice.lo -MD -MP -MF > > > .deps/mtpmediadevice.Tpo -c -o mtpmediadevice.lo mtpmediadevice.cpp > > > /usr/local/include/libmtp.h: In member function 'virtual MediaItem* > > > MtpMediaDevice::copyTrackToDevice(const MetaBundle&)': > > > /usr/local/include/libmtp.h:489: error: too many arguments to function > 'int > > > LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*, > > > LIBMTP_track_t*, int (*)(uint64_t, uint64_t, const void*), const > void*)' > > > mtpmediadevice.cpp:302: error: at this point in file > > > mtpmediadevice.cpp: In member function 'uint32_t > > > MtpMediaDevice::getDefaultParentId()': mtpmediadevice.cpp:383: warning: > > > deprecated conversion from string constant to 'char*' > > > /usr/local/include/libmtp.h: In member function 'LIBMTP_album_t* > > > MtpMediaDevice::getOrCreateAlbum(QPtrList*)': > > > /usr/local/include/libmtp.h:533: error: too many arguments to function > 'int > > > LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)' > > > mtpmediadevice.cpp:532: error: at this point in file > > > /usr/local/include/libmtp.h: In member function 'uint32_t > > > MtpMediaDevice::createFolder(const char*, uint32_t)': > > > /usr/local/include/libmtp.h:508: error: too few arguments to function > > > 'uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t, > > > uint32_t)' mtpmediadevice.cpp:611: error: at this point in file > > > /usr/local/include/libmtp.h: In member function 'void > > > MtpMediaDevice::playlistFromItem(MtpMediaItem*)': > > > /usr/local/include/libmtp.h:521: error: too many arguments to function > 'int > > > LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)' > > > mtpmediadevice.cpp:916: error: at this point in file > > > gmake[5]: *** [mtpmediadevice.lo] Error 1 > > > gmake[5]: Leaving directory > > > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp' > > > gmake[4]: *** [all-recursive] Error 1 > > > gmake[4]: Leaving directory > > > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice' > > > gmake[3]: *** [all-recursive] Error 1 > > > gmake[3]: Leaving directory > > > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src' gmake[2]: *** > > > [all-recursive] Error 1 > > > gmake[2]: Leaving directory > > > `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok' gmake[1]: *** > > > [all-recursive] Error 1 > > > gmake[1]: Leaving directory > `/usr/ports/audio/amarok/work/amarok-1.4.10' > > > gmake: *** [all] Error 2 > > > *** Error code 2 > > > > This is a result of libmtp update. Either don't use libmtp, downgrade it > to > > previous version 0.2.6 or add the patch below my sig > > as > /usr/ports/audio/amarok/files/patch-amarok_src_mediadevice_mtp_mtpmediadevice.cpp > > > > -- > > Mel > > > > --- amarok/src/mediadevice/mtp/mtpmediadevice.cpp.orig 2008-08-13 > > 13:21:51.000000000 -0800 > > +++ amarok/src/mediadevice/mtp/mtpmediadevice.cpp 2008-12-28 > > 08:47:14.000000000 -0900 > > @@ -296,9 +296,10 @@ > > > > m_critical_mutex.lock(); > > debug() << "Sending track... " << bundle.url().path().utf8() << > endl; > > + trackmeta->parent_id = parent_id; > > int ret = LIBMTP_Send_Track_From_File( > > m_device, bundle.url().path().utf8(), trackmeta, > > - progressCallback, this, parent_id > > + progressCallback, this > > ); > > m_critical_mutex.unlock(); > > > > @@ -529,7 +530,8 @@ > > for( MtpMediaItem *it = > dynamic_cast(items->first()); > > it; it = dynamic_cast(items->next()) ) > > album_object->tracks[i++] = it->track()->id(); > > album_object->no_tracks = items->count(); > > - ret = LIBMTP_Create_New_Album( m_device, album_object, 0 ); > > + album_object->parent_id = 0; > > + ret = LIBMTP_Create_New_Album( m_device, album_object); > > if( ret != 0 ) > > { > > debug() << "creating album failed : " << ret << endl; > > @@ -577,7 +579,7 @@ > > { > > if( create ) > > { > > - check_folder = createFolder( (*it).utf8() , parent_id ); > > + check_folder = createFolder( (*it).utf8() , parent_id); > > if( check_folder == 0 ) > > { > > m_critical_mutex.unlock(); > > @@ -608,7 +610,9 @@ > > { > > debug() << "Creating new folder '" << name << "' as a child of "<< > > parent_id << endl; > > char *name_copy = qstrdup( name ); > > - uint32_t new_folder_id = LIBMTP_Create_Folder( m_device, name_copy, > > parent_id ); > > + // XXX: storage_id not used anywhere, so pass in 0, but upstream > > + // should revisit this. > > + uint32_t new_folder_id = LIBMTP_Create_Folder( m_device, name_copy, > > parent_id, 0 ); > > delete(name_copy); > > debug() << "New folder ID: " << new_folder_id << endl; > > if( new_folder_id == 0 ) > > @@ -913,7 +917,8 @@ > > if( item->playlist()->id() == 0 ) > > { > > debug() << "creating new playlist : " << metadata->name << endl; > > - int ret = LIBMTP_Create_New_Playlist( m_device, metadata, 0 ); > > + metadata->parent_id = 0; > > + int ret = LIBMTP_Create_New_Playlist( m_device, metadata); > > if( ret == 0 ) > > { > > item->playlist()->setId( metadata->playlist_id ); > > > Mel, > > amaroK is one of my favorites. Any idea if/how soon your > patch will be in ports? ---It's been awhile since my last > portupgrade and I'd hate to break this one, especially! > > gary > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > -- > Gary Kline kline@thought.org http://www.thought.org Public Service > Unix > http://jottings.thought.org http://transfinite.thought.org > The 2.17a release of Jottings: http://jottings.thought.org/index.php > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > yeah true, Amarok happens to be my fav too!! ;-) not willing to sound impatient but when can we expect to see 2.0 in ports ? tried building directly, but hit a block when it asked mysql lib in ports there are quite a number of MySQL versions and they all (nearly) have client and server ports. Not willing to break other things for the sake of candy, i aborted Masoom Shaikh From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 04:56:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64F5C106564A for ; Mon, 29 Dec 2008 04:56:42 +0000 (UTC) (envelope-from fbsd1@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 577EC8FC1E for ; Mon, 29 Dec 2008 04:56:42 +0000 (UTC) (envelope-from fbsd1@a1poweruser.com) Received: from [202.69.174.228] ([202.69.174.228]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 28 Dec 2008 20:56:01 -0800 Message-ID: <49585885.1030005@a1poweruser.com> Date: Mon, 29 Dec 2008 12:56:37 +0800 From: Fbsd1 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Masoom Shaikh References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Dec 2008 04:56:02.0248 (UTC) FILETIME=[BF89F480:01C96971] X-Sender: fbsd1@a1poweruser.com Cc: "freebsd-questions@freebsd.org" Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 04:56:42 -0000 Masoom Shaikh wrote: > hello list, > > in my previous FBSD installations i always had a local copy of handbook > never bothered how it got there, until now. i lost my installation due to > some good ups. reinstalled minimal 7.0 and build installed kernel & world > > uname -a > FreeBSD raptor 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Wed Dec 17 13:27:42 > UTC 2008 root@:/usr/obj/usr/src/sys/ARGON18 amd64 > > now i cannot see local copy of handbook, i had look at FreeBSD Documentation > Primer > but that seems overkill and geared towards contributing documentation > http://www.freebsd.org/doc/en/books/fdp-primer/ > > also I cud use tarballs from FTP, but is there easy way to install them ? > also csup didn't help here is my csup file > > *default tag=RELENG_7 > *default host=ftp2.tw.freebsd.org > *default prefix=/usr > *default base=/var/db > *default release=cvs delete use-rel-suffix compress > src-all > doc-all > > csup updates the source each time, but now i am not sure about doc!! > > hints and help ? > > Masoom Shaikh Minimal install does not include the handbook. Thats why its called a minimal install. Normal install you get handbook. The following link to the handbook's first page tell you where to ftp your copy from. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 04:57:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 296C61065676 for ; Mon, 29 Dec 2008 04:57:32 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by mx1.freebsd.org (Postfix) with ESMTP id D96DB8FC16 for ; Mon, 29 Dec 2008 04:57:31 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by an-out-0708.google.com with SMTP id c2so1743573anc.13 for ; Sun, 28 Dec 2008 20:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=0dYdmUEOtTDgxC80TOjnY3567Cy6ug6332GRH7/CUq0=; b=AwOqiFVlxPDfK82ZbtQ1+Mr3Aqq3BYu+ZWP7A73L2cfqc9hSgXQEpWhJEW4pv2xR+X /Hkl7O3+xVHQkQEF99c67YYIlgSNyoc0Ij42jadryo+76A35wpG6Iav/e7RpUoZIvK41 GCxC4GiHRIue9YPAxBV3G7DIlSe5Gyh3Dhzi4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=cOUhcpAEoqUgEARymukOIoBVPmUhvuUKfWY9EXYpTbUz5z7w3NiaQP1ZlCUwYsI5VV abtvQoQ0xH+36uOmEuWC6McOYj/Sp43jrHtNDYq22J3wVkDVqMkgmIe/RuquZ40xBT+e 2lFc8i+sj3bcaruPrBB9uZ67hhwZqEXemCIzY= Received: by 10.100.131.13 with SMTP id e13mr7478649and.57.1230526651245; Sun, 28 Dec 2008 20:57:31 -0800 (PST) Received: from ?192.168.1.100? ([190.177.202.204]) by mx.google.com with ESMTPS id b37sm23485768ana.50.2008.12.28.20.57.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Dec 2008 20:57:30 -0800 (PST) From: Gonzalo Nemmi To: freebsd-questions@freebsd.org Date: Mon, 29 Dec 2008 02:57:37 -0200 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812290257.37570.gnemmi@gmail.com> Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 04:57:32 -0000 On Monday 29 December 2008 2:46:42 am Masoom Shaikh wrote: > hello list, > > in my previous FBSD installations i always had a local copy of handbook > never bothered how it got there, until now. i lost my installation due to > some good ups. reinstalled minimal 7.0 and build installed kernel & world > > uname -a > FreeBSD raptor 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Wed Dec 17 > 13:27:42 UTC 2008 root@:/usr/obj/usr/src/sys/ARGON18 amd64 > > now i cannot see local copy of handbook, i had look at FreeBSD > Documentation Primer > but that seems overkill and geared towards contributing documentation > http://www.freebsd.org/doc/en/books/fdp-primer/ > > also I cud use tarballs from FTP, but is there easy way to install them ? > also csup didn't help here is my csup file > > *default tag=RELENG_7 > *default host=ftp2.tw.freebsd.org > *default prefix=/usr > *default base=/var/db > *default release=cvs delete use-rel-suffix compress > src-all > doc-all > > csup updates the source each time, but now i am not sure about doc!! > > hints and help ? > > Masoom Shaikh > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" sysinstall -> Configure -> Distributions -> docs ? Have fun :) -- Blessings Gonzalo Nemmi From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 05:11:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE313106564A for ; Mon, 29 Dec 2008 05:11:32 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell.rawbw.com (shell.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id AA8FC8FC17 for ; Mon, 29 Dec 2008 05:11:32 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from eagle.syrec.org (c-24-6-210-197.hsd1.ca.comcast.net [24.6.210.197]) (authenticated bits=0) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id mBT5BVGF017579 for ; Sun, 28 Dec 2008 21:11:32 -0800 (PST) Message-ID: <49585C02.1030508@rawbw.com> Date: Sun, 28 Dec 2008 21:11:30 -0800 From: Yuri User-Agent: Thunderbird 2.0.0.18 (X11/20081127) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How process size is calculated? Is it always based on the current highest available address in memory space? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yuri@rawbw.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 05:11:32 -0000 malloc(3) can be controlled by MALLOC_OPTIONS to use mmap-based allocation as opposed to sbrk-based allocation. But allocations/deallocations with mmaps can eventually lead to non-continuously mmapped memory (having some non-mmapped gaps). Are these gaps excluded from the process size or size is always linked to the current highest available address in memory space? Yuri From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 09:23:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3C0F106567E for ; Mon, 29 Dec 2008 09:23:41 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: from corpmail.itlegion.ru (corpmail.itlegion.ru [84.21.226.211]) by mx1.freebsd.org (Postfix) with SMTP id 2BC648FC1A for ; Mon, 29 Dec 2008 09:23:40 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: (qmail 58414 invoked from network); 29 Dec 2008 12:23:45 +0300 Received: from unknown (HELO ?192.168.0.12?) (192.168.0.12) by 84.21.226.211 with SMTP; 29 Dec 2008 12:23:45 +0300 Message-ID: <4958969B.8000404@itlegion.ru> Date: Mon, 29 Dec 2008 12:21:31 +0300 From: Artem Kuchin Organization: IT Legion User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Mel References: <49551091.5000009@itlegion.ru> <200812271041.39903.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <200812271041.39903.fbsd.questions@rachie.is-a-geek.net> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: 3ware array access lock up on 7.1-RC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 09:23:42 -0000 Mel =D0=C9=DB=C5=D4: > On Friday 26 December 2008 08:12:49 Artem Kuchin wrote: > =20 >> I am not even sure that it is related to freebsd, but maybe someone co= uld >> point out the problem. >> >> We wanted to upgrade our hosting server from >> FreeBSD 6.2, 3ware 8506-4LP SATA RAID, raid 5 >> to >> FreeBSD 7.1 (RC for now), 9550SXU-4LP, raid 10 >> >> We have tested the new installation on ASUS P5K WS motherboard >> with PCI-X slot while the server kept running. >> >> The server has Supermicro X5DPE-G2 (pretty old one, 2004). >> >> So, when everything was ready, i just took out the old controller and >> disks and installed the new controller and the array disks. >> >> The system booted up, but when i started very intense file operations >> the file >> system just froze. The weird thing is that any open program which does= >> not use >> filesystem kept running fine. For example, i could type and edit in op= en >> ee editor, >> but copying progress bar in midnight commander just stood still. If i >> tried to save file >> or open file or do anything disk related from ee in another console th= e >> program froze too, >> apparently waiting for disk system to reply forever (i tried waiting f= or >> 20 minutes). >> I could even connect to ssh port, but it does not auth because sshd >> needs to read something >> from the disk. >> I put everything back into Asus P5K WS and tested it. Everything worke= d >> fine again. >> >> Any idea what might going on here? >> =20 > > OS bugs aside, a dead disk that keeps getting IO request explains all=20 > symptoms. Dead can also mean, faulty cable, buggy connector. I would ex= pect=20 > the hardware raid controller to pick up on it though and remove it from= the=20 > array. > =20 No, not the case here. As i said, the same controller with the same=20 disks work perfectly on ASUS motherboard. -- Artem From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 09:30:51 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC465106564A for ; Mon, 29 Dec 2008 09:30:51 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id AC8BA8FC12 for ; Mon, 29 Dec 2008 09:30:51 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id mBT9UpPx028389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 29 Dec 2008 01:30:51 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id mBT9UpEJ028388 for freebsd-questions@FreeBSD.org; Mon, 29 Dec 2008 01:30:51 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA21136; Mon, 29 Dec 08 01:27:03 PST Date: Mon, 29 Dec 2008 01:29:39 -0800 From: perryh@pluto.rain.com To: freebsd-questions@FreeBSD.org Message-Id: <49589883.lhmPNVeBMeI7aDqo%perryh@pluto.rain.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: vpnc connects, but does not work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 09:30:51 -0000 I have installed vpnc to connect to an employer's Cisco VPN system, and it seems to make the connection, but after connecting I can't ping the tun0 interface nor anything beyond it. The symptom seems to resemble what is described in the Routing section of http://www.cs.rpi.edu/~flemej/fbsd-cisco-vpn.pdf, but since that is using a completely different setup on the FreeBSD side I have no idea whether the remedy described there is applicable (nor, if it is, how to determine the addresses to use in this case). Does this look at all familiar, or does anyone have any ideas for how to go about debugging it? I didn't find anything that seemed applicable in recent ports@ or questions@ archives, and an earlier inquiry on ports@ did not produce a solution. (I have XX'd out potentially-sensitive material in the following.) # /usr/local/sbin/vpnc Enter password for XXX@XXX.XXX.com: Connect Banner: | *** XXX, Inc. Authorized Use Only *** add host YYY.YYY.127.228: gateway 192.168.200.254 add net ZZZ.ZZZ.0.0: gateway ZZZ.ZZZ.233.42 add net ZZZ.ZZZ.57.128: gateway ZZZ.ZZZ.233.42 add net ZZZ.ZZZ.57.133: gateway ZZZ.ZZZ.233.42 VPNC started in background (pid: 24776)... The addresses in those last two "add net" lines seem to be the nameservers: $ cat /etc/resolv.conf #@VPNC_GENERATED@ -- this file is generated by vpnc # and will be overwritten by vpnc # as long as the above mark is intact nameserver ZZZ.ZZZ.57.128 nameserver ZZZ.ZZZ.57.133 search XXX.com which leads me to wonder whether they really ought to be "add host" -- for that matter it's not clear they're needed at all since they should be covered by the "add net ZZZ.ZZZ.0.0" -- but I guess that may not make much difference when I can't even ping my own gateway (tun0) address :( $ ping ZZZ.ZZZ.233.42 PING ZZZ.ZZZ.233.42 (ZZZ.ZZZ.233.42): 56 data bytes ^C --- ZZZ.ZZZ.233.42 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss $ ping ZZZ.ZZZ.57.128 PING ZZZ.ZZZ.57.128 (ZZZ.ZZZ.57.128): 56 data bytes ^C --- ZZZ.ZZZ.57.128 ping statistics --- 10 packets transmitted, 0 packets received, 100% packet loss $ ping ZZZ.ZZZ.57.133 PING ZZZ.ZZZ.57.133 (ZZZ.ZZZ.57.133): 56 data bytes ^C --- ZZZ.ZZZ.57.133 ping statistics --- 27 packets transmitted, 0 packets received, 100% packet loss $ ifconfig -a xl0: flags=8843 mtu 1500 options=9 inet6 fe80::2b0:d0ff:fe28:ad4f%xl0 prefixlen 64 scopeid 0x1 inet 192.168.200.61 netmask 0xffffff00 broadcast 192.168.200.255 ether 00:b0:d0:28:ad:4f media: Ethernet autoselect (10baseT/UTP) status: active plip0: flags=108810 mtu 1500 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 tun0: flags=8051 mtu 1412 inet6 fe80::2b0:d0ff:fe28:ad4f%tun0 prefixlen 64 scopeid 0x4 inet ZZZ.ZZZ.233.42 --> ZZZ.ZZZ.233.42 netmask 0xffffffff Opened by PID 24635 Meanwhile I _can_ ping YYY.YYY.127.228, which I guess is the concentrator's public IP address: $ ping YYY.YYY.127.228 PING YYY.YYY.127.228 (YYY.YYY.127.228): 56 data bytes 64 bytes from YYY.YYY.127.228: icmp_seq=0 ttl=116 time=53.226 ms 64 bytes from YYY.YYY.127.228: icmp_seq=1 ttl=116 time=52.982 ms 64 bytes from YYY.YYY.127.228: icmp_seq=2 ttl=116 time=53.130 ms ^C --- YYY.YYY.127.228 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 52.982/53.113/53.226/0.100 ms Traceroute to YYY.YYY.127.228 produces the same 14-hop result whether connected or disconnected (modulo the need to use "traceroute -n" while connected: since vpnc has replaced /etc/resolv.conf with one specifying only the corporate nameservers, and I can't reach them because the link doesn't work, there is no name service while connected). Just like ping, traceroute to the tun0 IP address, while connected, produced nothing: $ traceroute -n ZZZ.ZZZ.233.42 traceroute to ZZZ.ZZZ.233.42 (ZZZ.ZZZ.233.42), 64 hops max, 40 byte packets 1 * * * 2 * * * 3 * * * 4 * * * 5 * * * ^C What seems truly bizarre is that, as noted above, I couldn't ping the tun0 interface while connected even though ifconfig reported it as up. Shouldn't a local interface, reported as up, *always* respond to a ping of its own IP address? $ netstat -r -n Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.200.254 UGS 0 2209723 xl0 127.0.0.1 127.0.0.1 UH 0 2 lo0 ZZZ.ZZZ ZZZ.ZZZ.233.42 UGS 0 0 tun0 ZZZ.ZZZ.57.128/32 ZZZ.ZZZ.233.42 UGS 0 19 tun0 ZZZ.ZZZ.57.133/32 ZZZ.ZZZ.233.42 UGS 0 18 tun0 ZZZ.ZZZ.233.42 ZZZ.ZZZ.233.42 UH 59 20 tun0 YYY.YYY.127/27 ZZZ.ZZZ.233.42 UGS 0 0 tun0 YYY.YYY.127.96/27 ZZZ.ZZZ.233.42 UGS 0 0 tun0 YYY.YYY.127.224/27 ZZZ.ZZZ.233.42 UGS 0 0 tun0 YYY.YYY.127.228 192.168.200.254 UGHS 0 106 xl0 192.168.200 link#1 UC 0 0 xl0 192.168.200.254 00:09:5b:a1:c8:9e UHLW 3 4318078 xl0 1148 192.168.200.255 ff:ff:ff:ff:ff:ff UHLWb 1 3 xl0 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 10:05:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 233A71065674 for ; Mon, 29 Dec 2008 10:05:06 +0000 (UTC) (envelope-from dscialom@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.190]) by mx1.freebsd.org (Postfix) with ESMTP id 6F7258FC17 for ; Mon, 29 Dec 2008 10:05:05 +0000 (UTC) (envelope-from dscialom@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so3123184tib.3 for ; Mon, 29 Dec 2008 02:05:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=s58neI+3C4+PTbf9yp++6E/c/TSXYJIi2cuxH7qsNko=; b=M7wMPSnEIq9JU4cN+p/Pd0otDV9epx7sJZyUWj2WomED33TZFMpeRr2apxW95/drAT ybc0hxwI43c10Jx9n3EnAtK08njyYpRQELxrVhkB4M69kZ5ONoM2gvDB62so6whYQuTy cpRqhwlQP/bI6QqqUIiMhhdmWuoAjwPyZEVe4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=DLQId60IURVtYAYOR31QyWUOWT7Z6f70bLLot3IQ2rVPcNK5HpkeiLURYb9Z3laTqe upQob4MtzUwKoX5+R0BCaBijBJEX0NcdWvK1MyOl4+vPWH5MWuJ0QzgZPpYbUvj6Yt6T dXkDmhiHrMo8cqHa9pUUrqezdm1a+K/ctMJwE= Received: by 10.110.40.8 with SMTP id n8mr469998tin.0.1230545104247; Mon, 29 Dec 2008 02:05:04 -0800 (PST) Received: by 10.110.17.13 with HTTP; Mon, 29 Dec 2008 02:05:03 -0800 (PST) Message-ID: Date: Mon, 29 Dec 2008 11:05:03 +0100 From: "David Scialom" To: Tim , freebsd-questions@freebsd.org In-Reply-To: <4957E333.1050103@gmail.com> MIME-Version: 1.0 References: <4957E333.1050103@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Unable to modify sysid with Fdisk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 10:05:06 -0000 Hello Tim, Thanks for your suggestion. The probleme after the section 3 does not exist. It is actually a wrong copy paste done by me. Nothing changed after your suggestion : Zurich# dd if=/dev/zero bs=512 count=128 of=/dev/da0 128+0 records in 128+0 records out 65536 bytes transferred in 0.095998 secs (682681 bytes/sec) Zurich# fdisk -u da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) Do you want to change our idea of what BIOS thinks ? [n] *fdisk: invalid fdisk partition table found* Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 Do you want to change it? [n] y Supply a decimal value for "sysid (165=FreeBSD)" [165] 12 Supply a decimal value for "start" [32] Supply a decimal value for "size" [16352] Explicitly specify beg/end address ? [n] sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 Are we happy with this entry? [n] y The data for partition 2 is: Do you want to change it? [n] The data for partition 3 is: Do you want to change it? [n] The data for partition 4 is: Do you want to change it? [n] Partition 1 is marked active Do you want to change the active partition? [n] We haven't changed the partition table yet. This is your last chance. parameters extracted from in-core disklabel are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) Information from DOS bootblock is: 1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 2: 3: 4: Should we write new partition table? [n] y *fdisk: Geom not found: "da0"* Zurich# fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) fdisk: invalid fdisk partition table found Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 16352 (7 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 7/ head 63/ sector 32 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: 2008/12/28 Tim > David Scialom wrote: > >> Hello, >> >> It seems that it is impossible to modify the sysid with fdisk since >> FreeBSD >> 6.2. I am actually using FreeBSD7.0. >> When I want to modify my the sysid from 165(ufs) to 12(Fat32) i get the >> message "Geom not found: da0" and no change is made: da0 is stock with >> sysid >> = 165. The detail are provided below. I tried also to do the same from the >> install FreeBSD CD without success. >> >> As someone a solution ? >> >> Zurich# fdisk -u da0 >> ******* Working on device /dev/da0 ******* >> parameters extracted from in-core disklabel are: >> cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) >> >> parameters to be used for BIOS calculations are: >> cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) >> >> Do you want to change our idea of what BIOS thinks ? [n] >> *fdisk: invalid fdisk partition table found* >> Media sector size is 512 >> Warning: BIOS sector numbering starts with sector 1 >> Information from DOS bootblock is: >> The data for partition 1 is: >> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) >> start 32, size 2066400 (1008 Meg), flag 80 (active) >> beg: cyl 0/ head 1/ sector 1; >> end: cyl 1008/ head 63/ sector 32 >> Do you want to change it? [n] y >> Supply a decimal value for "sysid (165=FreeBSD)" [165] 12 >> Supply a decimal value for "start" [32] >> Susysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) >> start 32, size 2066400 (1008 Meg), flag 80 (active) >> beg: cyl 0/ head 1/ sector 1; >> end: cyl 1008/ head 63/ sector 32 >> Are we happy with this entry? [n] y >> The data for partition 2 is: >> >> Do you want to change it? [n] >> The data for partition 3 is: >> >> Supply a decimal value for "size" [2066400] >> Explicitly specify beg/end address ? [n] >> sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) >> start 32, size 2066400 (1008 Meg), flag 80 (active) >> beg: cyl 0/ head 1/ sector 1; >> end: cyl 1008/ head 63/ sector 32 >> Are we happy with this entry? [n] y >> The data for partition 2 is: >> >> Do you want to change it? [n] >> The data for partition 3 is: >> >> Do you want to change it? [n] >> The data for partition 4 is: >> >> Do you want to change it? [n] >> Partition 1 is marked active >> Do you want to change the active partition? [n] y >> Supply a decimal value for "active partition" [1] >> Are you happy with this choice [n] y >> >> We haven't changed the partition table yet. This is your last chance. >> parameters extracted from in-core disklabel are: >> cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) >> >> parameters to be used for BIOS calculations are: >> cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) >> >> Information from DOS bootblock is: >> 1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) >> start 32, size 2066400 (1008 Meg), flag 80 (active) >> beg: cyl 0/ head 1/ sector 1; >> end: cyl 1008/ head 63/ sector 32 >> 2: >> 3: >> 4: >> Should we write new partition table? [n] y >> fdisk: Geom not found: "da0" >> Zurich# fdisk da0 >> ******* Working on device /dev/da0 ******* >> parameters extracted from in-core disklabel are: >> cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) >> >> parameters to be used for BIOS calculations are: >> cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) >> >> fdisk: invalid fdisk partition table found >> Media sector size is 512 >> Warning: BIOS sector numbering starts with sector 1 >> Information from DOS bootblock is: >> The data for partition 1 is: >> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) >> start 32, size 2066400 (1008 Meg), flag 80 (active) >> beg: cyl 0/ head 1/ sector 1; >> end: cyl 1008/ head 63/ sector 32 >> The data for partition 2 is: >> >> The data for partition 3 is: >> >> The data for partition 4 is: >> > >> > > The "Warning: Invalid fdisk partition table found" is a red flag to me. If > the partition boundries don't lie on a cylinder, than it's invalid. > > I also see after it prints partition 3, it randomly asks for the size of > the partition, without asking for anything else. > > I think those first 512 sectors are messed up. If I were you, I'd wipe the > first 2 tracks of the disk. > dd if=/dev/zero bs=512 count=128 of=/dev/da0 > > And recreate the partition then. fdisk isn't seeing a sane layout to begin > with and it may silently be discarding the changes asked. > > Good luck. > From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 12:46:04 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 009C01065678 for ; Mon, 29 Dec 2008 12:46:04 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id 5A3858FC22 for ; Mon, 29 Dec 2008 12:46:03 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by ewy14 with SMTP id 14so5739878ewy.19 for ; Mon, 29 Dec 2008 04:46:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=NbJ3xKx4D+cxBNmVJlvZGKmMWoSeK97YB7VhBgPe9Jk=; b=n1z+tJuEv2bQgjhirM8zSrHtXWPWlHTdjCK3gHLOHmEhWWwUmknFjY8klWi1kV7TgZ uEyrn6bqmNYcHsPwPJ0WS6cShWWGczgrjjA3i4MCpk/AIYKC80f5NpqEfsE+haPjyQ80 hd7Z7P+ySugsnOeKiLl45GWsd+cY0SXFgQuN8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=QXI3dc/OBTgPvIVBymghQVhQx3AC2R2lFQ+Mamk501X2EpYNXWLeyC533RpxCr0iRl vQie46mxxmZ2Dqx1tSukMkzxEENCH3H3tEdNve+Bjk/01EAjuj1gMTTNWTvvE/PCLCRR NAMa/Bbu7nnuBYdxJUO0wceSKbAJYxjP+T2sE= Received: by 10.210.45.17 with SMTP id s17mr15928588ebs.69.1230554762215; Mon, 29 Dec 2008 04:46:02 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id z40sm43981793ikz.9.2008.12.29.04.46.00 (version=SSLv3 cipher=RC4-MD5); Mon, 29 Dec 2008 04:46:01 -0800 (PST) Date: Mon, 29 Dec 2008 12:45:58 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20081229124558.43cefc56@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 12:46:04 -0000 On Mon, 29 Dec 2008 10:16:42 +0530 "Masoom Shaikh" wrote: lso I cud use tarballs from FTP, but is there easy way to install > them ? also csup didn't help here is my csup file > > *default tag=RELENG_7 > *default host=ftp2.tw.freebsd.org > *default prefix=/usr > *default base=/var/db > *default release=cvs delete use-rel-suffix compress > src-all > doc-all > > csup updates the source each time, but now i am not sure about doc!! > If you do it that way, you have to generate the html files yourself, cvup fetches generic data files that can be used to generate html , pdf etc. What I do these days is mirror the online version with wget. #!/bin/sh cd /usr/share/doc/en wg_args=" --mirror -np -nH --cut-dirs=2 --limit-rate=33k" bg_flags="" # Run quietly from cron [ ! -t 0 ] && bg_flags=" --quiet " wget $bg_flags $wg_args "http://www.freebsd.org/doc/en_US.ISO8859-1/" From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 15:10:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92FC11065670 for ; Mon, 29 Dec 2008 15:10:32 +0000 (UTC) (envelope-from masoom.shaikh@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.186]) by mx1.freebsd.org (Postfix) with ESMTP id 1F3758FC16 for ; Mon, 29 Dec 2008 15:10:31 +0000 (UTC) (envelope-from masoom.shaikh@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so3189980tib.3 for ; Mon, 29 Dec 2008 07:10:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=FjSnK85BbgbtmYlXLHVfLdSfJhMCVIagxfISK/9ISjA=; b=JGbgDjFjElZA33WEDpm32HrRODCfX67x+enwIpNtUo5CDGxMxNBgfsSsJXTUOz5nA3 KfTZzgRIxQ5OMw2pW3VOCKKeRMFNfswrPVj04TIA0y9aCrxz9qU923e7iUrOlhzsHff0 dlEAUQY0EJc2qr+zKHJF7k4uPpnneoHMnfFDk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=TREi8h+fi/GeQjSrksKkdv2aXgyXEVHSI+E89CbT68nNzXDhm4jkWWLs3WBlejqCme RDC9Meq0ec5FaDXbhGjoIURpY+6zgMVDbubFmdVki9Wn5HDJunfcWVGgJuRpDZVQeYyT 8T+PPIXiMqkq4PsITF8qGi00RXXj7YqSAtxkY= Received: by 10.110.31.5 with SMTP id e5mr2313432tie.2.1230563430834; Mon, 29 Dec 2008 07:10:30 -0800 (PST) Received: from raptor.localnet ([122.167.35.86]) by mx.google.com with ESMTPS id y5sm1025035tia.1.2008.12.29.07.10.28 (version=SSLv3 cipher=RC4-MD5); Mon, 29 Dec 2008 07:10:29 -0800 (PST) From: Masoom Shaikh To: freebsd-questions@freebsd.org Date: Mon, 29 Dec 2008 20:39:42 +0530 User-Agent: KMail/1.10.1 (FreeBSD/7.1-PRERELEASE; KDE/4.1.1; amd64; ; ) References: <20081229124558.43cefc56@gumby.homeunix.com> In-Reply-To: <20081229124558.43cefc56@gumby.homeunix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812292039.43242.masoom.shaikh@gmail.com> Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 15:10:32 -0000 On Monday 29 December 2008 18:15:58 RW wrote: > On Mon, 29 Dec 2008 10:16:42 +0530 > "Masoom Shaikh" wrote: > > lso I cud use tarballs from FTP, but is there easy way to install > > > them ? also csup didn't help here is my csup file > > > > *default tag=RELENG_7 > > *default host=ftp2.tw.freebsd.org > > *default prefix=/usr > > *default base=/var/db > > *default release=cvs delete use-rel-suffix compress > > src-all > > doc-all > > > > csup updates the source each time, but now i am not sure about doc!! > > If you do it that way, you have to generate the html files yourself, > cvup fetches generic data files that can be used to generate html , pdf > etc. > > What I do these days is mirror the online version with wget. > > > > #!/bin/sh > > cd /usr/share/doc/en > > wg_args=" --mirror -np -nH --cut-dirs=2 --limit-rate=33k" > > bg_flags="" > > # Run quietly from cron > [ ! -t 0 ] && bg_flags=" --quiet " > > wget $bg_flags $wg_args "http://www.freebsd.org/doc/en_US.ISO8859-1/" > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" that is clever use of wget :) but can't docs remain updated with csup ? if yes, how ? otherwise I will be happy to generate them from sources if they happen to be some simple target Masoom Shaikh From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 15:59:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81FEB106564A for ; Mon, 29 Dec 2008 15:59:06 +0000 (UTC) (envelope-from bsd-unix@embarqmail.com) Received: from mailrelay.embarq.synacor.com (mailrelay.embarq.synacor.com [208.47.184.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3797B8FC20 for ; Mon, 29 Dec 2008 15:59:06 +0000 (UTC) (envelope-from bsd-unix@embarqmail.com) DKIM-Signature: v=1; a=rsa-sha1; d=embarqmail.com; s=s012408; c=relaxed/simple; q=dns/txt; i=@embarqmail.com; t=1230566345; h=From:Subject:Date:To:Mime-Version:Content-Type; bh=4MOk/F+36pjS31EtOEP9GyX6U2Y=; b=PWm7/G2irHUQYgCCxqIMqBdq6HzMz4nfNrjsDiF2XRRO+bR0L+jh/ro3v/zKLMxY 7lAbfhUlBLiNymqv2aux2qBZFK2cFa513gFRZCUI5pLzhj2FITlBSjo7Hefrc5n8; X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=B6xQqDB83fKiz5ZfXZ4A:9 a=CDgQniwFOZUBgANeZcgA:7 a=pVhk_YQYWoFHfj1OhXvvn2YyFLoA:4 a=QMfvKO4qQ48A:10 a=MSl-tDqOz04A:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp01.embarq.synacor.com smtp.user=rpratt1950@embarqmail.com; auth=pass (LOGIN) Received: from [74.5.191.142] ([74.5.191.142:50606] helo=kt.weeeble.com) by mailrelay.embarq.synacor.com (envelope-from ) (ecelerity 2.2.2.36 r(27513/27514)) with ESMTPA id 09/67-22889-8C3F8594; Mon, 29 Dec 2008 10:59:05 -0500 Date: Mon, 29 Dec 2008 10:59:04 -0500 From: Randy Pratt To: Masoom Shaikh Message-Id: <20081229105904.523e3494.bsd-unix@embarqmail.com> In-Reply-To: <200812292039.43242.masoom.shaikh@gmail.com> References: <20081229124558.43cefc56@gumby.homeunix.com> <200812292039.43242.masoom.shaikh@gmail.com> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i386-portbld-freebsd6.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 15:59:06 -0000 On Mon, 29 Dec 2008 20:39:42 +0530 Masoom Shaikh wrote: > On Monday 29 December 2008 18:15:58 RW wrote: > > On Mon, 29 Dec 2008 10:16:42 +0530 > > "Masoom Shaikh" wrote: > > > > lso I cud use tarballs from FTP, but is there easy way to install > > > > > them ? also csup didn't help here is my csup file > > > > > > *default tag=RELENG_7 > > > *default host=ftp2.tw.freebsd.org > > > *default prefix=/usr > > > *default base=/var/db > > > *default release=cvs delete use-rel-suffix compress > > > src-all > > > doc-all > > > > > > csup updates the source each time, but now i am not sure about doc!! > > > > If you do it that way, you have to generate the html files yourself, > > cvup fetches generic data files that can be used to generate html , pdf > > etc. > > > > What I do these days is mirror the online version with wget. > > > > > > > > #!/bin/sh > > > > cd /usr/share/doc/en > > > > wg_args=" --mirror -np -nH --cut-dirs=2 --limit-rate=33k" > > > > bg_flags="" > > > > # Run quietly from cron > > [ ! -t 0 ] && bg_flags=" --quiet " > > > > wget $bg_flags $wg_args "http://www.freebsd.org/doc/en_US.ISO8859-1/" > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > that is clever use of wget :) > but can't docs remain updated with csup ? if yes, how ? > otherwise I will be happy to generate them from sources if they happen to be > some simple target You might consider using Docsnap. This allows you to maintain all the FreeBSD documentation with a minimum of effort. Docsnap is an rsync repository for easy updating of installed FreeBSD documentation (/usr/share/doc). The first run may take longer but subsequent updates take very little time. Only the differences in the documents are transferred. That is the main advantage but you also do not need to install ports with hefty overhead to build documents. Rsync is only utility required (/usr/ports/net/rsync). Typical usage: # rsync -rltvz docsnap.sk.FreeBSD.org::docsnap /usr/share/doc/ For more information see http://docsnap.sk.freebsd.org/ and possibly the rsync manual page. HTH, Randy -- From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 17:27:18 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE562106566C for ; Mon, 29 Dec 2008 17:27:18 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 884D58FC12 for ; Mon, 29 Dec 2008 17:27:18 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LHLtd-0000MY-Ea for freebsd-questions@freebsd.org; Mon, 29 Dec 2008 09:27:17 -0800 Message-ID: <21206324.post@talk.nabble.com> Date: Mon, 29 Dec 2008 09:27:17 -0800 (PST) From: Karrj To: freebsd-questions@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: John.Karr@bt.com References: <21094731.post@talk.nabble.com> <494BE2EC.20407@infracaninophile.co.uk> Subject: RE: Netstat command output X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 17:27:18 -0000 I have continued to research the issue of receiving errors on the Broadcom and from all the information I have found it appears Broadcom in general may be problematic. I have verified all hardware and hard coded switch and cards at 100Mbps and full duplex and still recieve a small percentage of errors on the broadcom card. I tried a different machine with Intel cards with the same swicth and file transfers and no errors. The driver I have installed for the Broadcom is the one that installed with the initial FreeBSD install. Is there a newer driver I could try? Are there any configuration settings beside duplex, speed and offloading? Thanks - John -- View this message in context: http://www.nabble.com/Netstat-command-output-tp21094731p21206324.html Sent from the freebsd-questions mailing list archive at Nabble.com. From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 20:07:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF72D1065674 for ; Mon, 29 Dec 2008 20:07:36 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id A675C8FC13 for ; Mon, 29 Dec 2008 20:07:36 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 7C18DB84F; Mon, 29 Dec 2008 21:07:35 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29177-02; Mon, 29 Dec 2008 21:07:23 +0100 (CET) Received: from [192.168.1.58] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Mon, 29 Dec 2008 21:07:23 +0100 (CET) Message-ID: <49592E79.40504@dugas-family.org> Date: Mon, 29 Dec 2008 21:09:29 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Wojciech Puchar References: <20081216094719.EDCEE1065675@hub.freebsd.org> <49478749.2030200@dugas-family.org> <20081216123057.M61117@wojtek.tensor.gdynia.pl> In-Reply-To: <20081216123057.M61117@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: freebsd-questions@freebsd.org Subject: Re: Optimising pxeboot disk size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 20:07:37 -0000 Hello, Wojciech Puchar wrote: > i already did such things but with NetBSD 1.5 for my Xterminal distro. > it's simple: > mount / readonly, put everything here. > in /etc put /etc/rc consisting only > #!/bin/sh > exec /systemrc > > in /systemrc put something like that: > #!/bin/sh > echo -n Mounting workstation config directory... > #get your IP or MAC address using ifconfig,grep,cut,awk,how you like > #put to to say MYIP > /sbin/mount_nfs yournfsserver:/clients/etc/MYIP /etc > echo done > exec /etc/rc Thank you very much, it is now running well after some hardware adventure. I couldn't find the hostname sent by dhcp, but found a way to find the ip address. The only problem i have is that the "echo done" and other standard outputs are not visible in /var/log/messages. How can i keep them either in dmesg or /var/log/messages ? Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 20:12:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D08E11065672 for ; Mon, 29 Dec 2008 20:12:34 +0000 (UTC) (envelope-from bseklecki@collaborativefusion.com) Received: from collaborativefusion.com (mx01.pub.collaborativefusion.com [206.210.89.201]) by mx1.freebsd.org (Postfix) with ESMTP id 7A7BB8FC1A for ; Mon, 29 Dec 2008 20:12:34 +0000 (UTC) (envelope-from bseklecki@collaborativefusion.com) Received: from Internal Mail-Server by mx01 (envelope-from bseklecki@collaborativefusion.com) with SMTP; 29 Dec 2008 15:12:33 -0500 From: "Brian A. Seklecki" To: Mel In-Reply-To: <200812271028.11339.fbsd.questions@rachie.is-a-geek.net> References: <1230146554.4673.265.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> <200812271028.11339.fbsd.questions@rachie.is-a-geek.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-uCrvkLGbZs5Q8CfMARHU" Organization: Collaborative Fusion, Inc. Date: Mon, 29 Dec 2008 15:12:33 -0500 Message-Id: <1230581553.19488.7.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Cc: freebsd-questions@freebsd.org, Bill Moran Subject: Re: Default list of exported variables in sh(1) - $HOSTNAME X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bseklecki@collaborativefusion.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 20:12:35 -0000 --=-uCrvkLGbZs5Q8CfMARHU Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > > SSH_CONNECTION > > FTP_PASSIVE_MODE > > EDITOR >=20 > I suspect linux to set them from .profile files (even /etc/profile) and n= ot=20 > hardcoded in a shell or login program. The default skeletons=20 Mel: You were right to some extent. However, the problem is more complicated (or less complicated, depending). First, FreeBSD's default php.ini doesn't have: $variables_order =3D "EGPCS", so $ENV[] array wasn't getting popualted at all. Second, Apache FreeBSD RC scripts inherit the user environment from sudo(8) unless you pass -H or -i flag/args E.x.:, % sudo -H -i -u root /usr/local/etc/rc.d/apache22 restart Compared to: $ su - Password: $ /usr/local/etc/rc.d/apache22 restart Result in completely different results in PHP's $_ENV[] Additionally, the results of "$ su -" differ completely from the shell environment that executes when rc(8) is first run at boot time. I may be better off using getenv() in PHP directly. =20 ~BAS > in /usr/share/skel on FreeBSD does not set them. Neither=20 > does /etc/login.conf.=20 > I would set it in /etc/profile. >=20 --=20 Brian A. Seklecki Collaborative Fusion, Inc. --=-uCrvkLGbZs5Q8CfMARHU Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAklZLywACgkQCne6BNDQ+R9coQCfRy+izM84yZuASMewZzOTUYkl PkoAnR2nzBV7efqhEpSkSaouPtTkVIf3 =TCrY -----END PGP SIGNATURE----- --=-uCrvkLGbZs5Q8CfMARHU-- From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 20:17:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F94A106564A for ; Mon, 29 Dec 2008 20:17:53 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id 473FB8FC08 for ; Mon, 29 Dec 2008 20:17:53 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 27C98B852 for ; Mon, 29 Dec 2008 21:17:52 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28960-09 for ; Mon, 29 Dec 2008 21:17:43 +0100 (CET) Received: from [192.168.1.58] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP for ; Mon, 29 Dec 2008 21:17:43 +0100 (CET) Message-ID: <495930E4.1030501@dugas-family.org> Date: Mon, 29 Dec 2008 21:19:48 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20081216094719.EDCEE1065675@hub.freebsd.org> In-Reply-To: <20081216094719.EDCEE1065675@hub.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Subject: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 20:17:53 -0000 Hi, I'm working on a project to have many diskless clients PXEbooting on 1 nfs server. With some help :-) i could manage to share almost all system files (/, /usr,..) through NFS. i can see a reading speed difference 4 time slower on client than on server (time tar -cf - /usr > /dev/null). I will play with jumbo MTU for network performance, but would anybody know if i can ask system files NFS exports to stay in server memory ? I have less than 2Go to share and 2GO DDR2 is affordable. Thanks a lot, Best regards, From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 20:27:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9FC7106564A for ; Mon, 29 Dec 2008 20:27:29 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 552168FC0C for ; Mon, 29 Dec 2008 20:27:29 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1LHOhw-0004Wx-4q; Mon, 29 Dec 2008 20:27:24 +0000 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id mBTKRMUo011149; Mon, 29 Dec 2008 20:27:23 GMT Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id 5F83EFCB841; Mon, 29 Dec 2008 20:27:17 +0000 (GMT) Date: Mon, 29 Dec 2008 20:27:17 +0000 From: Frank Shute To: Masoom Shaikh Message-ID: <20081229202717.GA78262@melon.esperance-linux.co.uk> Mail-Followup-To: Masoom Shaikh , freebsd-questions@freebsd.org References: <20081229124558.43cefc56@gumby.homeunix.com> <200812292039.43242.masoom.shaikh@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812292039.43242.masoom.shaikh@gmail.com> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.3-RELEASE-p2 i386 X-Organisation: 'http://www.shute.org.uk/' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.1.7 (zetnet.co.uk [194.247.46.1]); Mon, 29 Dec 2008 20:27:23 +0000 (GMT) Cc: freebsd-questions@freebsd.org Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 20:27:30 -0000 On Mon, Dec 29, 2008 at 08:39:42PM +0530, Masoom Shaikh wrote: > > On Monday 29 December 2008 18:15:58 RW wrote: > > On Mon, 29 Dec 2008 10:16:42 +0530 > > "Masoom Shaikh" wrote: > > > > lso I cud use tarballs from FTP, but is there easy way to install > > > > > them ? also csup didn't help here is my csup file > > > > > > *default tag=RELENG_7 > > > *default host=ftp2.tw.freebsd.org > > > *default prefix=/usr > > > *default base=/var/db > > > *default release=cvs delete use-rel-suffix compress > > > src-all > > > doc-all > > > > > > csup updates the source each time, but now i am not sure about doc!! > > > > If you do it that way, you have to generate the html files yourself, > > cvup fetches generic data files that can be used to generate html , pdf > > etc. > > > > What I do these days is mirror the online version with wget. > > > > > > > > #!/bin/sh > > > > cd /usr/share/doc/en > > > > wg_args=" --mirror -np -nH --cut-dirs=2 --limit-rate=33k" > > > > bg_flags="" > > > > # Run quietly from cron > > [ ! -t 0 ] && bg_flags=" --quiet " > > > > wget $bg_flags $wg_args "http://www.freebsd.org/doc/en_US.ISO8859-1/" > > that is clever use of wget :) > but can't docs remain updated with csup ? if yes, how ? > otherwise I will be happy to generate them from sources if they happen to be > some simple target > You can keep a local copy of the docs & update the sources for the docs with csup but you have to regenerate them with a make command after you have csup'd. The process is described within this page I just put up: http://www.shute.org.uk/misc/freebsd_uptodate.html There maybe some errors there or things I've missed, so apologies for that in advance. Any questions, just drop me an email. It's good practice IMO to have a locally updated copy of the handbook. You always need the handbook when your 'net connection is down ;) Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 21:05:44 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AAC01065672 for ; Mon, 29 Dec 2008 21:05:44 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 066FF8FC4F for ; Mon, 29 Dec 2008 21:05:42 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 2F5D5AFBC02; Mon, 29 Dec 2008 12:05:41 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org, bseklecki@collaborativefusion.com Date: Mon, 29 Dec 2008 12:05:26 -0900 User-Agent: KMail/1.9.10 References: <1230146554.4673.265.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> <200812271028.11339.fbsd.questions@rachie.is-a-geek.net> <1230581553.19488.7.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> In-Reply-To: <1230581553.19488.7.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812291205.26505.fbsd.questions@rachie.is-a-geek.net> Cc: Bill Moran Subject: Re: Default list of exported variables in sh(1) - $HOSTNAME X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 21:05:44 -0000 On Monday 29 December 2008 11:12:33 Brian A. Seklecki wrote: > > > SSH_CONNECTION > > > FTP_PASSIVE_MODE > > > EDITOR > > > > I suspect linux to set them from .profile files (even /etc/profile) and > > not hardcoded in a shell or login program. The default skeletons > > Mel: > > You were right to some extent. However, the problem is more > complicated (or less complicated, depending). > > First, FreeBSD's default php.ini doesn't have: > > $variables_order = "EGPCS", so $ENV[] array wasn't getting popualted at > all. The port only installs php.ini-dist and php.ini-recommended, which are the ones from the PHP source tree. If neither of these is copied to php.ini then php.ini-dist is hardcoded inside php itself, also not something the FreeBSD port alters. > Second, Apache FreeBSD RC scripts inherit the user environment from > sudo(8) unless you pass -H or -i flag/args > > E.x.:, > > % sudo -H -i -u root /usr/local/etc/rc.d/apache22 restart > > Compared to: > > $ su - > Password: > $ /usr/local/etc/rc.d/apache22 restart > > Result in completely different results in PHP's $_ENV[] As expected. However, stuff in /etc/profile applies to all Bourne type shells. > Additionally, the results of "$ su -" differ completely from the shell > environment that executes when rc(8) is first run at boot time. Correct. You can however clean the entire environment, by setting apache22limits_enable="YES" and apache22limits_args="-e -E -C daemon". If you need specific variables to be available and the rest to be gone, the standard rc script doesn't support it. You'd have to roll your own. > I may be better off using getenv() in PHP directly. For portability yes, since it doesn't rely on EGPCS, but otherwise they give the same results. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 21:20:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EF32106566C for ; Mon, 29 Dec 2008 21:20:53 +0000 (UTC) (envelope-from bseklecki@collaborativefusion.com) Received: from collaborativefusion.com (mx01.pub.collaborativefusion.com [206.210.89.201]) by mx1.freebsd.org (Postfix) with ESMTP id E18838FC0C for ; Mon, 29 Dec 2008 21:20:52 +0000 (UTC) (envelope-from bseklecki@collaborativefusion.com) Received: from Internal Mail-Server by mx01 (envelope-from bseklecki@collaborativefusion.com) with SMTP; 29 Dec 2008 16:20:51 -0500 From: "Brian A. Seklecki" To: Mel In-Reply-To: <200812291205.26505.fbsd.questions@rachie.is-a-geek.net> References: <1230146554.4673.265.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> <200812271028.11339.fbsd.questions@rachie.is-a-geek.net> <1230581553.19488.7.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> <200812291205.26505.fbsd.questions@rachie.is-a-geek.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-srCRQAvDoh1wdUBSC/eI" Organization: Collaborative Fusion, Inc. Date: Mon, 29 Dec 2008 16:20:51 -0500 Message-Id: <1230585651.19488.10.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Cc: freebsd-questions@freebsd.org, Bill Moran Subject: Re: Default list of exported variables in sh(1) - $HOSTNAME X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bseklecki@collaborativefusion.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 21:20:53 -0000 --=-srCRQAvDoh1wdUBSC/eI Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2008-12-29 at 12:05 -0900, Mel wrote: >=20 > > I may be better off using getenv() in PHP directly. >=20 > For portability yes, since it doesn't rely on EGPCS, but otherwise > they give the same results. Another option would be to pay the PHP people to add POSIX 1003.1-2001 gethostname(2). I'll ask on the lists. --=20 Brian A. Seklecki Collaborative Fusion, Inc. --=-srCRQAvDoh1wdUBSC/eI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAklZPzMACgkQCne6BNDQ+R9y7ACfQRnqKBDsfiCzH+0PVyWVHDIA meoAnRHRovXJhbZik63/QPAgnC52/qrH =CzK/ -----END PGP SIGNATURE----- --=-srCRQAvDoh1wdUBSC/eI-- From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 21:31:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C51F106566C for ; Mon, 29 Dec 2008 21:31:17 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from rv-out-0304.google.com (rv-out-0304.google.com [209.85.198.219]) by mx1.freebsd.org (Postfix) with ESMTP id 0A7748FC19 for ; Mon, 29 Dec 2008 21:31:16 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: by rv-out-0304.google.com with SMTP id b20so11610331rvf.31 for ; Mon, 29 Dec 2008 13:31:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.115.109.18 with SMTP id l18mr8172640wam.8.1230586276813; Mon, 29 Dec 2008 13:31:16 -0800 (PST) Message-ID: <0016364574ace51c2d045f36314f@google.com> Date: Mon, 29 Dec 2008 21:31:16 +0000 From: af300wsm@gmail.com To: Marco Beishuizen , af300wsm@gmail.com, "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Re: Having issues with the nvidia driver on my box X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 21:31:17 -0000 On Dec 28, 2008 5:42am, Marco Beishuizen wrote: > On Fri, 26 Dec 2008 18:14:38 +0000 > > > > > Did you install the latest Nvidia driver? Perhaps your card isn't > > supported anymore. Nvidia dropped some "older" chipsets in their latest > > driver. You can try "nvidia-driver-96xx" or "nvidia-driver-71xx" in the > > ports. I hope this helps. I installed the nvidia-driver-96xx because when I installed the latest one it said that my chipset wasn't supported. Actually, I think that the suggestions from Mike helped. I added the option in my xorg.conf file that says to use the nvidia agp drivers before using the kernel agp.ko. Andy From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 21:43:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 025C91065695 for ; Mon, 29 Dec 2008 21:43:25 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (brucec-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:c09::2]) by mx1.freebsd.org (Postfix) with ESMTP id AF9068FC13 for ; Mon, 29 Dec 2008 21:43:24 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 48BD0192D9; Mon, 29 Dec 2008 16:43:23 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on muon X-Spam-Level: X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 Received: from gluon (unknown [IPv6:2a01:348:10f:0:240:f4ff:fe57:9871]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Mon, 29 Dec 2008 16:43:23 -0500 (EST) Date: Mon, 29 Dec 2008 21:43:19 +0000 From: Bruce Cran To: Frank Shute Message-ID: <20081229214319.65a008a1@gluon> In-Reply-To: <20081229202717.GA78262@melon.esperance-linux.co.uk> References: <20081229124558.43cefc56@gumby.homeunix.com> <200812292039.43242.masoom.shaikh@gmail.com> <20081229202717.GA78262@melon.esperance-linux.co.uk> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Masoom Shaikh , freebsd-questions@freebsd.org Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 21:43:26 -0000 On Mon, 29 Dec 2008 20:27:17 +0000 Frank Shute wrote: > You can keep a local copy of the docs & update the sources for the > docs with csup but you have to regenerate them with a make command > after you have csup'd. > > The process is described within this page I just put up: > > http://www.shute.org.uk/misc/freebsd_uptodate.html > > There maybe some errors there or things I've missed, so apologies for > that in advance. Any questions, just drop me an email. > > It's good practice IMO to have a locally updated copy of the handbook. > > You always need the handbook when your 'net connection is down ;) Are the docs branched? I tried running a csup with tag=RELENG_7 and nothing got created; changing the line doc-all to doc-all tag=. fixed it and fetched all the docs. -- Bruce Cran From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 21:56:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B6561065670 for ; Mon, 29 Dec 2008 21:56:27 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 909B28FC1D for ; Mon, 29 Dec 2008 21:56:26 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl119-205.kln.forthnet.gr [77.49.238.205]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mBTLtwYg012552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 29 Dec 2008 23:56:04 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mBTLtw0m018817; Mon, 29 Dec 2008 23:55:58 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mBTLtv7F018816; Mon, 29 Dec 2008 23:55:57 +0200 (EET) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: Masoom Shaikh In-Reply-To: <20081229202717.GA78262@melon.esperance-linux.co.uk> (Frank Shute's message of "Mon, 29 Dec 2008 20:27:17 +0000") Date: Mon, 29 Dec 2008 23:52:57 +0200 Message-ID: <87myeemyx2.fsf@kobe.laptop> References: <20081229124558.43cefc56@gumby.homeunix.com> <200812292039.43242.masoom.shaikh@gmail.com> <20081229202717.GA78262@melon.esperance-linux.co.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-MailScanner-ID: mBTLtwYg012552 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.3, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.10, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 21:56:27 -0000 --=-=-= On Mon, 29 Dec 2008 20:27:17 +0000, Frank Shute wrote: > You can keep a local copy of the docs & update the sources for the > docs with csup but you have to regenerate them with a make command > after you have csup'd. > > The process is described within this page I just put up: > > http://www.shute.org.uk/misc/freebsd_uptodate.html Hi Masoom, We have been working on a patch for the Handbook that adds a short description of the same process. The patch has been recently posted to freebsd-doc, by Gabor Pali: http://lists.freebsd.org/pipermail/freebsd-doc/2008-December/015315.html Since you already have written something similar, do you think we can convince you to review the patch? It would be nice if you could help us improve it or make it easier to read, and use. Regards, Giorgos --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklZRrkACgkQ1g+UGjGGA7Z+WgCgkmgtMPeKveWmihmKRBn9JS9D LrgAoJSntDqpawV004KjKh9wQPOKgHCI =u2uy -----END PGP SIGNATURE----- --=-=-=-- From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 22:02:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A91E5106564A for ; Mon, 29 Dec 2008 22:02:06 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id DD7A28FC12 for ; Mon, 29 Dec 2008 22:02:05 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBTM0Odn069149; Mon, 29 Dec 2008 23:00:24 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBTM0NCQ069142; Mon, 29 Dec 2008 23:00:24 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 29 Dec 2008 23:00:23 +0100 (CET) From: Wojciech Puchar To: Bernard Dugas In-Reply-To: <49592E79.40504@dugas-family.org> Message-ID: <20081229225952.W68805@wojtek.tensor.gdynia.pl> References: <20081216094719.EDCEE1065675@hub.freebsd.org> <49478749.2030200@dugas-family.org> <20081216123057.M61117@wojtek.tensor.gdynia.pl> <49592E79.40504@dugas-family.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Optimising pxeboot disk size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 22:02:07 -0000 > Thank you very much, it is now running well after some hardware adventure. > > I couldn't find the hostname sent by dhcp, but found a way to find the ip > address. just use hostname command. > > The only problem i have is that the "echo done" and other standard outputs > are not visible in /var/log/messages. How can i keep them either in dmesg or > /var/log/messages ? add second echo to >>/var/log/messages ;) From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 22:03:05 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35D7D106566B for ; Mon, 29 Dec 2008 22:03:05 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 774EA8FC1E for ; Mon, 29 Dec 2008 22:03:04 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBTM1NjD069683; Mon, 29 Dec 2008 23:01:23 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBTM1Nfk069680; Mon, 29 Dec 2008 23:01:23 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 29 Dec 2008 23:01:23 +0100 (CET) From: Wojciech Puchar To: Bernard Dugas In-Reply-To: <495930E4.1030501@dugas-family.org> Message-ID: <20081229230115.F68805@wojtek.tensor.gdynia.pl> References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 22:03:05 -0000 > > i can see a reading speed difference 4 time slower on client than on server > (time tar -cf - /usr > /dev/null). > > I will play with jumbo MTU for network performance, but would anybody know if > i can ask system files NFS exports to stay in server memory ? I have less > than 2Go to share and 2GO DDR2 is affordable. you don't have to. From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 22:04:56 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DEFD106567B for ; Mon, 29 Dec 2008 22:04:56 +0000 (UTC) (envelope-from lconrad@Go2France.com) Received: from mgw1.MEIway.com (mgw1.meiway.com [81.255.84.75]) by mx1.freebsd.org (Postfix) with ESMTP id C170B8FC19 for ; Mon, 29 Dec 2008 22:04:55 +0000 (UTC) (envelope-from lconrad@Go2France.com) Received: from VirusGate.MEIway.com (virusgate.meiway.com [81.255.84.76]) by mgw1.MEIway.com (Postfix Relay Hub) with ESMTP id F10E34726AA; Mon, 29 Dec 2008 22:43:20 +0100 (CET) Received: from localhost (localhost.MEIWay.com [127.0.0.1]) by VirusGate.MEIway.com (Postfix) with SMTP id 715FD386950; Mon, 29 Dec 2008 22:43:21 +0100 (CET) (envelope-from lconrad@Go2France.com) X-AV-Checked: Mon Dec 29 22:43:21 2008 virusgate.meiway.com Received: from mail.Go2France.com (ms1.meiway.com [81.255.84.73]) by VirusGate.MEIway.com (Postfix) with ESMTP id 2D8B6386702; Mon, 29 Dec 2008 22:43:20 +0100 (CET) (envelope-from lconrad@Go2France.com) Date: Mon, 29 Dec 2008 22:31:17 +0100 Message-Id: <200812292231.AA754909386@mail.Go2France.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "Len Conrad" X-Sender: To: X-Mailer: Subject: help with sed and tick marks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lconrad@Go2France.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 22:04:56 -0000 A string in a file contains ('name@domain.net'', ... where and we want to remove the extra tick mark, to have: ('name@domain.net', iow, replace net'' with net' We've tried many combinations with sed, but failed. Suggestions? thanks, Len From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 22:29:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A66B81065673 for ; Mon, 29 Dec 2008 22:29:15 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 18B578FC1F for ; Mon, 29 Dec 2008 22:29:14 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl119-205.kln.forthnet.gr [77.49.238.205]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mBTMT1ch015161 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 30 Dec 2008 00:29:06 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mBTMT0SK020823; Tue, 30 Dec 2008 00:29:00 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mBTMSxZp020803; Tue, 30 Dec 2008 00:28:59 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Bruce Cran References: <20081229124558.43cefc56@gumby.homeunix.com> <200812292039.43242.masoom.shaikh@gmail.com> <20081229202717.GA78262@melon.esperance-linux.co.uk> <20081229214319.65a008a1@gluon> Date: Tue, 30 Dec 2008 00:28:59 +0200 In-Reply-To: <20081229214319.65a008a1@gluon> (Bruce Cran's message of "Mon, 29 Dec 2008 21:43:19 +0000") Message-ID: <87iqp2ipjo.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: mBTMT1ch015161 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.868, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.53, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Frank Shute , Masoom Shaikh , freebsd-questions@freebsd.org Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 22:29:16 -0000 On Mon, 29 Dec 2008 21:43:19 +0000, Bruce Cran wrote: > Are the docs branched? I tried running a csup with tag=RELENG_7 and > nothing got created; changing the line > > doc-all > > to > > doc-all tag=. > > fixed it and fetched all the docs. Hi Bruce, No, there are no release-specific branches to the doc/ tree. The 'HEAD' of the CVS repository is all there is. If you look at the CVS tag names, there _are_ a few old branches and experimental tags, but these are mostly left-overs from projects that are no longer active. The "tag=." run that you used should give you the latest documentation sources :-) From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 22:31:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6227B1065696 for ; Mon, 29 Dec 2008 22:31:10 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id B44DD8FC1B for ; Mon, 29 Dec 2008 22:31:09 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl119-205.kln.forthnet.gr [77.49.238.205]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mBTMUx3g015269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 30 Dec 2008 00:31:05 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mBTMUxxA022165; Tue, 30 Dec 2008 00:30:59 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mBTMUx2w022159; Tue, 30 Dec 2008 00:30:59 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: lconrad@Go2France.com References: <200812292231.AA754909386@mail.Go2France.com> Date: Tue, 30 Dec 2008 00:30:59 +0200 In-Reply-To: <200812292231.AA754909386@mail.Go2France.com> (Len Conrad's message of "Mon, 29 Dec 2008 22:31:17 +0100") Message-ID: <87eizqipgc.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: mBTMUx3g015269 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.869, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.53, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: help with sed and tick marks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 22:31:10 -0000 On Mon, 29 Dec 2008 22:31:17 +0100, "Len Conrad" wrote: > A string in a file contains > > ('name@domain.net'', > > ... where and we want to remove the extra tick mark, to have: > > ('name@domain.net', > > iow, replace > > net'' > > with > > net' > > We've tried many combinations with sed, but failed. > > Suggestions? Use proper quoting in your shell, i.e.: sed -e 's/'\'\''/'\''/g' < inputfile > outputfile or different quote to delimit the sed expression: sed -e "s/''/'/g" From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 22:35:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48129106564A for ; Mon, 29 Dec 2008 22:35:12 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from typhoon.enabled.com (typhoon.enabled.com [216.218.220.21]) by mx1.freebsd.org (Postfix) with ESMTP id 3526D8FC0C for ; Mon, 29 Dec 2008 22:35:12 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from [172.23.0.135] (nat-service4.juniper.net [66.129.225.151]) (authenticated bits=0) by typhoon.enabled.com (8.14.3/8.14.3) with ESMTP id mBTMZBin019827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 29 Dec 2008 14:35:11 -0800 (PST) (envelope-from admin2@enabled.com) Message-ID: <4959509A.2060506@enabled.com> Date: Mon, 29 Dec 2008 14:35:06 -0800 From: Noah User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: User Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: restart rsync process via shell script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 22:35:12 -0000 Hi there, I am trying to figure out the most accurate way to assess if an rsync process is running and is established to the remote rsync server and is transferring data. I am writing a bourne shell script to restart rsync if the connection to the remote rsync server is lost. The command "ps ax | grep 'rsync' | grep -v grep" is not enough because the rsync and ssh process can be running but the connection to the remote server is no longer ESTABLISHED and the backup is no longer proceeding. Then perhaps the command "netstat -A | grep '192.168.1.10' | grep 'ESTABLISHED' | grep -v grep" would be helpful. But in some cases I have found that I have ssh connections to the remote rsync server that obfuscate the rsync ssh ESTABLISH statistics. the rsync command I am using is: "/usr/bin/rsync -avz '/Users/noah/' -e 'ssh -p 22' root@192.168.1.10:/Users" Any suggestions please? Cheers, Noah From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 23:15:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88BE0106564A for ; Mon, 29 Dec 2008 23:15:30 +0000 (UTC) (envelope-from bounces@bounces.jaxtr.com) Received: from smtp158.sv.jaxtr.com (smtp158.sv.jaxtr.com [74.201.86.158]) by mx1.freebsd.org (Postfix) with ESMTP id 69CDC8FC16 for ; Mon, 29 Dec 2008 23:15:30 +0000 (UTC) (envelope-from bounces@bounces.jaxtr.com) DKIM-Signature: v=1; a=rsa-sha1; d=jaxtr.com; s=dkim1024; c=simple/simple; q=dns/txt; i=@jaxtr.com; t=1230591330; h=From:Resent-From; bh=zgUdTQcf3VcwhXlCNamIkcaop1I=; b=DLFMvm1o7XA8b37sNXaTfU90b9sOuB+jC8q7PWMUNv0wE0CPU6RkRcgTeap7b3tC KOPp7jVFoyYPRDlhy6FajxPORLMfTZqfatUFr67qxa5bTSxq97O0xhLjhGjpDAM9 4LGr9jiGcUGFHeuNS/AX7kBRC/hatnBP29PEMQKSeVQ=; DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=dk1024; d=jaxtr.com; h=Received:Resent-From:Date:From:To:Message-ID:Subject:MIME-Version:Content-Type:X-Sysflow; b=LULzXt05g8BSiKTgJ9iPWa/ZnNHshU5BhQmxW+gNneUrMTeaAL4hzfFjXyTgeixN 3z8kbJapN0Qa5MUxOVpq3gCpYW/2GeXV4pOmUzSvrvQIS9BDzkdCjn7tZhCNruGI vNuQntWL/qCwet0tUxwxB7RhCiyYdSq3EZv72xrH01M= Received: from [74.201.86.160] ([74.201.86.160:48185] helo=que1.sv.jaxtr.com) by smtp1.sv.jaxtr.com (envelope-from ) (ecelerity 2.2.2.31 r(24168/24420)) with ESMTP id B1/47-09639-26559594; Mon, 29 Dec 2008 22:55:30 +0000 Resent-From: bounces@jaxtr.com Date: Mon, 29 Dec 2008 22:55:30 +0000 (GMT) From: jaxtr To: freebsd-questions@freebsd.org Message-ID: <1102295167.3427041230591330041.JavaMail.tomcat@que1.sv.jaxtr.com> MIME-Version: 1.0 X-Sysflow: cv,20081229t2000,jujvng.w9unxe,316450985 Resent-Message-Id: <20081229231530.69CDC8FC16@mx1.freebsd.org> Resent-Date: Mon, 29 Dec 2008 23:15:30 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Happy Holidays! Check out our new low rates X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 23:15:30 -0000 Hello Sunil, Save money with our new low rates for making international calls on your phone using a local jaxtr number: India US$ 0.024 / min USA US$ 0.008 / min Canada US$ 0.008 / min China US$ 0.008 / min UK US$ 0.008 / min Click here to see more: http://www.jaxtr.com/user/rates.jsp?tId=316450985_405_458 Happy Holidays, -The jaxtr team P.S. Share these savings with friends and family worldwide by telling them about jaxtr! jaxtr, 855 Oak Grove Avenue, Suite 100, Menlo Park, CA 94025 To stop receiving emails, send email to blockme@jaxtr.com From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 23:39:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 660A8106566C for ; Mon, 29 Dec 2008 23:39:29 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 2FAD18FC08 for ; Mon, 29 Dec 2008 23:39:28 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 17F09AFBC02; Mon, 29 Dec 2008 14:39:28 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Mon, 29 Dec 2008 14:39:27 -0900 User-Agent: KMail/1.9.10 References: <4959509A.2060506@enabled.com> In-Reply-To: <4959509A.2060506@enabled.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812291439.27877.fbsd.questions@rachie.is-a-geek.net> Cc: Noah Subject: Re: restart rsync process via shell script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 23:39:29 -0000 On Monday 29 December 2008 13:35:06 Noah wrote: > Hi there, > > I am trying to figure out the most accurate way to assess if an rsync > process is running and is established to the remote rsync server and is > transferring data. I am writing a bourne shell script to restart rsync > if the connection to the remote rsync server is lost. > > The command "ps ax | grep 'rsync' | grep -v grep" is not enough because > the rsync and ssh process can be running but the connection to the > remote server is no longer ESTABLISHED and the backup is no longer > proceeding. > > Then perhaps the command "netstat -A | grep '192.168.1.10' | grep > 'ESTABLISHED' | grep -v grep" would be helpful. But in some cases I > have found that I have ssh connections to the remote rsync server that > obfuscate the rsync ssh ESTABLISH statistics. > > the rsync command I am using is: "/usr/bin/rsync -avz '/Users/noah/' -e > 'ssh -p 22' root@192.168.1.10:/Users" > > Any suggestions please? Set ServerAliveInterval to a low value so the connection is dropped. You can do this on the commandline using -e 'ssh -o ServerAliveInterval=10 -p 22'. This would drop the connection if the server can't be reached within 10 seconds. Once the connection is dropped, rsync should exit with a value other then 0, so you can wrap your rsync command in a while loop, like: KEEP_RUNNING=1 while test ${KEEP_RUNNING} -gt 0; do rsync -avz /Users/noah/ -e 'ssh -p 22 -o ServerAliveInterval=10' \ root@192.168.1.10:/Users KEEP_RUNNING=$? done -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 00:13:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A245E1065670 for ; Tue, 30 Dec 2008 00:13:30 +0000 (UTC) (envelope-from luizbcampos@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id 582BF8FC0C for ; Tue, 30 Dec 2008 00:13:30 +0000 (UTC) (envelope-from luizbcampos@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2421269ywe.13 for ; Mon, 29 Dec 2008 16:13:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=zdw1NJIKMkIw1iIzZwlfs++iuy3mBHMhS3outOzZJCc=; b=EeL9Jm8lkIk6fxZAi2v1Ayr98yfidjVdLO5uX0dpWrr8tNaufQ9ZWR3hHiwM3cndMB ODsMhVGbbJRPvWJfRObJx4IFCaKF3gOTtiYCzxJutqHUGRyrttWvX1D7LZZtZvbgN5tM q/odRczkS3QX4cJ6NuD1Hl2qvWp4Uw0HBI3UQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=GqfQGfRavWtj45a5C7P1FMxqgJhae68LiAMxQZztO2YicG6fJ+0NqtRkeEhupxFVJY yi8vda/nT814tivkZyi74JHPWeXMsN6b0guY5nHlnxkngAPlROh0GOFX22epjvL1azp1 ESPtoGuIXM/b2bp3shtIpbh6hJF56N409s8Nc= Received: by 10.100.134.10 with SMTP id h10mr8000491and.150.1230596009593; Mon, 29 Dec 2008 16:13:29 -0800 (PST) Received: by 10.100.226.5 with HTTP; Mon, 29 Dec 2008 16:13:29 -0800 (PST) Message-ID: Date: Mon, 29 Dec 2008 22:13:29 -0200 From: luizbcampos To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: running asfiles on windowmaker... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 00:13:31 -0000 Does anyone know how to run asfiles on windowmaker? Whereis its executable? (path) From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 01:53:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 780E1106566C for ; Tue, 30 Dec 2008 01:53:47 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 1D7998FC1E for ; Tue, 30 Dec 2008 01:53:46 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.14.2/8.14.2) with ESMTP id mBU1rbnO058559; Mon, 29 Dec 2008 19:53:38 -0600 (CST) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20081229194809.02548738@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Mon, 29 Dec 2008 19:53:23 -0600 To: reese@adeptscience.com, freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <49576C2A.10902.9459DA1@localhost> References: <49552461.25264.5D35D1@localhost> <49576C2A.10902.9459DA1@localhost> Mime-Version: 1.0 X-Antivirus: avast! (VPS 081229-0, 12/29/2008), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV 0.94.2-exp/8811/Mon Dec 29 14:02:38 2008 on betty.computinginnovations.com X-Virus-Status: Clean X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: mBU1rbnO058559 X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: strange fsck results X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 01:53:47 -0000 At 06:08 AM 12/28/2008, reese@adeptscience.com wrote: >I am running VMware Server 2.0 but see the same results with >VMware Server 1.0. The virtual machines are copies that I >made by transferring the vmware files for it from another server. >As far as I know it did not have any fsck problems on that machine >but I don't have access to it any more. I have noticed that there >are a lot of failures (corrupted files) when moving VMware appliances with >the >use of USB memory sticks so I do test them right on the memory >stick before I disconnect from the PC. > >All the host OSs are Windows XP Professional using IDE ATA drives, current >hardware is an HP dx2450 AMD Phenom. but I saw the same errors on an Acer. > >The files systems are: > ># Device Mountpoint FStype Options Dump Pass# >/dev/ad0s1b none swap sw 0 0 >/dev/ad0s1a / ufs rw 1 1 >/dev/ad0s1e /usr ufs rw 2 2 >/dev/ad0s1d /var ufs rw 2 2 >/dev/acd0 /cdrom cd9660 ro,noauto 0 0 > >Here is a bit from fsck of /var > >hueysan_vm: {10} fsck /var >** /dev/ad0s1d (NO WRITE) >** Last Mounted on /var >** Phase 1 - Check Blocks and Sizes >** Phase 2 - Check Pathnames >** Phase 3 - Check Connectivity >** Phase 4 - Check Reference Counts >UNREF FILE I=190413 OWNER=root MODE=100644 >SIZE=235 MTIME=Dec 27 12:23 2008 >RECONNECT? no > > >CLEAR? no >... > >I get about a dozen similar UNREF errors. > > >I am only worried about the errors if they might cause a problem >with the use of the virtual server as a development server. I have >installed and have running apache, mysql, sendmail, samba, >rsync, etc and they all seem to work fine. I am planning on >distributing copies of the virtual server to some others who are >working on a project with me so I really only need to be >fairly sure that no hidden gotchas are going to plague >our efforts. Having the virtual server setup is a BIG plus >when collaborating with people who only have Windows >PCs, before I had a central FreeBSD server for testing >etc but that is so much slower then have a local development >server. Being able to just send off a memory stick with the >VMserver and instructions is fantastic. > > >Thanks to all, >Charlie Reese Charlie, I have a number of FreeBSD servers 7.0 running under ESX server 3.5. With FreeBSD 7, it has the background fsck. I checked my servers and did see one with an issue from fsck, but later the background fsck had it fixed. The only issue I've had running the i386 version of FreeBSD, and other OS's under ESX is to be sure to use the vmware tools to copy the VM's once they are properly powered off. You might want to try upgrading one of your VM FreeBSD servers to 7.0 and see if the issue persists. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 01:58:38 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CD96106564A for ; Tue, 30 Dec 2008 01:58:38 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.170]) by mx1.freebsd.org (Postfix) with ESMTP id 0D8018FC1A for ; Tue, 30 Dec 2008 01:58:37 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so7192584wfg.7 for ; Mon, 29 Dec 2008 17:58:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=YJ2p8gOu5Tut3A3ZgV8GwqD0Wzr4W+9ichJjJSLt6aY=; b=gS547EBbSoizg0qoau4AJ3rg1BMXS77oJjwA27omi7eHaU+GIuIZ5eMDdiLHzjl/JU IpQw9frUzI7K9V0uKgYeOLbt5fqpPBcnynaUaEor62aXOon5LDo/2Uqgyuyv4HfWPkvz fyvHGGLxWClS+6W3rxRbyGd0NlvLAfmz7fSfU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=hhh46eUWH9zWc4R0RC6I4lJhzgbGngY1rfIf+PkLKQpXyYbbY4aTZkBC5X9EKd1rXx FVKWv69WwCiS2ARjq6AMEnL/vTCp+FCLE2VSwSoeAiRYPFs75gAAC+V8i52kW5t72bSx 7YxRa+fQ3D/BYmVgBcoYLPDHQAURUCjgLr0S4= Received: by 10.142.50.15 with SMTP id x15mr5913947wfx.80.1230602317579; Mon, 29 Dec 2008 17:58:37 -0800 (PST) Received: from ?192.168.4.70? (c-76-113-34-1.hsd1.nm.comcast.net [76.113.34.1]) by mx.google.com with ESMTPS id 30sm32507583wfa.21.2008.12.29.17.58.35 (version=SSLv3 cipher=RC4-MD5); Mon, 29 Dec 2008 17:58:36 -0800 (PST) Message-ID: <4959804B.8070907@gmail.com> Date: Mon, 29 Dec 2008 18:58:35 -0700 From: Tim Judd User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: David Scialom References: <4957E333.1050103@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Unable to modify sysid with Fdisk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 01:58:38 -0000 David Scialom wrote: > Hello Tim, > > Thanks for your suggestion. The probleme after the section 3 does not > exist. It is actually a wrong copy paste done by me. Nothing changed > after your suggestion : > > Zurich# dd if=/dev/zero bs=512 count=128 of=/dev/da0 > 128+0 records in > 128+0 records out > 65536 bytes transferred in 0.095998 secs (682681 bytes/sec) > > Zurich# fdisk -u da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) > > Do you want to change our idea of what BIOS thinks ? [n] > *fdisk: invalid fdisk partition table found* > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 32, size 16352 (7 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 7/ head 63/ sector 32 > Do you want to change it? [n] y > Supply a decimal value for "sysid (165=FreeBSD)" [165] 12 > Supply a decimal value for "start" [32] > Supply a decimal value for "size" [16352] > Explicitly specify beg/end address ? [n] > sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) > start 32, size 16352 (7 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 7/ head 63/ sector 32 > Are we happy with this entry? [n] y > The data for partition 2 is: > > Do you want to change it? [n] > The data for partition 3 is: > > Do you want to change it? [n] > The data for partition 4 is: > > Do you want to change it? [n] > Partition 1 is marked active > Do you want to change the active partition? [n] > > We haven't changed the partition table yet. This is your last chance. > parameters extracted from in-core disklabel are: > cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) > > Information from DOS bootblock is: > 1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) > start 32, size 16352 (7 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 7/ head 63/ sector 32 > 2: > 3: > 4: > Should we write new partition table? [n] y > *fdisk: Geom not found: "da0"* > > Zurich# fdisk da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=8 heads=64 sectors/track=32 (2048 blks/cyl) > > fdisk: invalid fdisk partition table found > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 32, size 16352 (7 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 7/ head 63/ sector 32 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > > > > > > > 2008/12/28 Tim > > > David Scialom wrote: > > Hello, > > It seems that it is impossible to modify the sysid with fdisk > since FreeBSD > 6.2. I am actually using FreeBSD7.0. > When I want to modify my the sysid from 165(ufs) to 12(Fat32) i > get the > message "Geom not found: da0" and no change is made: da0 is > stock with sysid > = 165. The detail are provided below. I tried also to do the > same from the > install FreeBSD CD without success. > > As someone a solution ? > > Zurich# fdisk -u da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > Do you want to change our idea of what BIOS thinks ? [n] > *fdisk: invalid fdisk partition table found* > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 32, size 2066400 (1008 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1008/ head 63/ sector 32 > Do you want to change it? [n] y > Supply a decimal value for "sysid (165=FreeBSD)" [165] 12 > Supply a decimal value for "start" [32] > Susysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) > start 32, size 2066400 (1008 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1008/ head 63/ sector 32 > Are we happy with this entry? [n] y > The data for partition 2 is: > > Do you want to change it? [n] > The data for partition 3 is: > > Supply a decimal value for "size" [2066400] > Explicitly specify beg/end address ? [n] > sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) > start 32, size 2066400 (1008 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1008/ head 63/ sector 32 > Are we happy with this entry? [n] y > The data for partition 2 is: > > Do you want to change it? [n] > The data for partition 3 is: > > Do you want to change it? [n] > The data for partition 4 is: > > Do you want to change it? [n] > Partition 1 is marked active > Do you want to change the active partition? [n] y > Supply a decimal value for "active partition" [1] > Are you happy with this choice [n] y > > We haven't changed the partition table yet. This is your last > chance. > parameters extracted from in-core disklabel are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > Information from DOS bootblock is: > 1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) > start 32, size 2066400 (1008 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1008/ head 63/ sector 32 > 2: > 3: > 4: > Should we write new partition table? [n] y > fdisk: Geom not found: "da0" > Zurich# fdisk da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl) > > fdisk: invalid fdisk partition table found > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 32, size 2066400 (1008 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1008/ head 63/ sector 32 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > > > > The "Warning: Invalid fdisk partition table found" is a red flag to > me. If the partition boundries don't lie on a cylinder, than it's > invalid. > > I also see after it prints partition 3, it randomly asks for the > size of the partition, without asking for anything else. > > I think those first 512 sectors are messed up. If I were you, I'd > wipe the first 2 tracks of the disk. > dd if=/dev/zero bs=512 count=128 of=/dev/da0 > > And recreate the partition then. fdisk isn't seeing a sane layout > to begin with and it may silently be discarding the changes asked. > > Good luck. > > If you're just looking to make a partition id 165 for everything on the disk, I think fdisk -i or fdisk -I is a much quicker way to accomplish your goal. from fdisk(8): -i Initialize sector 0 of the disk. Existing slice entries will be cleared (marked as unused) before editing. (Compare with -u.) -I Initialize sector 0 slice table for one FreeBSD slice covering the entire disk. But I've noticed on your recent posting that somehow fdisk is still seeing a partition 1 still after zeroing not only the MBR, but the first two tracks of the disk. Are we sure this disk is in good mechanical condition? It's behaving erratically and I'm challenging that it's in good shape. See below for a (re)quote highlighting what I'm very curious about. -------- Quote: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 16352 (7 Meg), flag 80 (active) -------- /Quote It saw a FreeBSD partition of 7MB in size. 7MB may be too small to have fat12/16/32 even (don't ask me to quote a reference or documentation on weather it is too small or whatever). a zero'd drive should have NOTHING defined, and somehow it's still seeing a 7MB partition. Logistically, it isn't working. Originally it saw a 1008MB partition. How big is this drive we're trying to work with? Is the drive in a enclosure with some conversion, like a USB<->(E)IDE, or a USB<->SATA? Something's not right, and I'm sure it's something simple -- the fact that we're getting erratic results is going to bug me until we solve it. From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 03:38:56 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D70E106566B for ; Tue, 30 Dec 2008 03:38:56 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from typhoon.enabled.com (typhoon.enabled.com [216.218.220.21]) by mx1.freebsd.org (Postfix) with ESMTP id 0AAB28FC0C for ; Tue, 30 Dec 2008 03:38:55 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from [172.23.0.135] (nat-service4.juniper.net [66.129.225.151]) (authenticated bits=0) by typhoon.enabled.com (8.14.3/8.14.3) with ESMTP id mBU3ctQs035287 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 29 Dec 2008 19:38:55 -0800 (PST) (envelope-from admin2@enabled.com) Message-ID: <495997CA.9050708@enabled.com> Date: Mon, 29 Dec 2008 19:38:50 -0800 From: Noah User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Mel References: <4959509A.2060506@enabled.com> <200812291439.27877.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <200812291439.27877.fbsd.questions@rachie.is-a-geek.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: restart rsync process via shell script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 03:38:56 -0000 Mel wrote: > On Monday 29 December 2008 13:35:06 Noah wrote: >> Hi there, >> >> I am trying to figure out the most accurate way to assess if an rsync >> process is running and is established to the remote rsync server and is >> transferring data. I am writing a bourne shell script to restart rsync >> if the connection to the remote rsync server is lost. >> >> The command "ps ax | grep 'rsync' | grep -v grep" is not enough because >> the rsync and ssh process can be running but the connection to the >> remote server is no longer ESTABLISHED and the backup is no longer >> proceeding. >> >> Then perhaps the command "netstat -A | grep '192.168.1.10' | grep >> 'ESTABLISHED' | grep -v grep" would be helpful. But in some cases I >> have found that I have ssh connections to the remote rsync server that >> obfuscate the rsync ssh ESTABLISH statistics. >> >> the rsync command I am using is: "/usr/bin/rsync -avz '/Users/noah/' -e >> 'ssh -p 22' root@192.168.1.10:/Users" >> >> Any suggestions please? > > Set ServerAliveInterval to a low value so the connection is dropped. You can > do this on the commandline using -e 'ssh -o ServerAliveInterval=10 -p 22'. > This would drop the connection if the server can't be reached within 10 > seconds. > Once the connection is dropped, rsync should exit with a value other then 0, > so you can wrap your rsync command in a while loop, like: > > KEEP_RUNNING=1 > while test ${KEEP_RUNNING} -gt 0; do > rsync -avz /Users/noah/ -e 'ssh -p 22 -o ServerAliveInterval=10' \ > root@192.168.1.10:/Users > KEEP_RUNNING=$? > done > I like that - thanks! From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 03:48:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78183106566B for ; Tue, 30 Dec 2008 03:48:57 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-bw0-f19.google.com (mail-bw0-f19.google.com [209.85.218.19]) by mx1.freebsd.org (Postfix) with ESMTP id EA4638FC16 for ; Tue, 30 Dec 2008 03:48:56 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by bwz12 with SMTP id 12so13618327bwz.19 for ; Mon, 29 Dec 2008 19:48:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=sRprUraZMG8OmzoWZIgIY3y9MenUh5D8sgfJmQL+ZrA=; b=SXIiTv4RJrv3ZytrnpjyIXX1iV3c0c+AflU4rTFkeUF6IUDusm9RHb9thRl18RBPUu cpetOslRGJ4P4ui0IHG0yZcNof69Yxo6U/QjUUJPmPm4Mm6I9WCj7dAh62LatWdcN2Ut j3qKfhEx0Z/gcjdH0OkPobeANdNLEa5N88hPw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=DR+AXoKpL84jmJ7C+BZ+rMfsVWOOw2hbwpHbqhlV2rMwg2IgkW1u5MiGvVSHNVbmQU 1LeTkRdyXT9bfT1Bzd7GwaoJnaMnR59PGUu3ZAmswsE8jJMROgER6xvrnR6k9xy9oPjI RZ+cX/9FaHtBnqe0OPiVEyD6T5bySXGzVGukU= Received: by 10.223.108.15 with SMTP id d15mr1910206fap.105.1230608935317; Mon, 29 Dec 2008 19:48:55 -0800 (PST) Received: by 10.223.110.142 with HTTP; Mon, 29 Dec 2008 19:48:55 -0800 (PST) Message-ID: <4ad871310812291948n2159a0a9p9781183694e4dae8@mail.gmail.com> Date: Mon, 29 Dec 2008 22:48:55 -0500 From: "Glen Barber" To: luizbcampos In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-questions@freebsd.org Subject: Re: running asfiles on windowmaker... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 03:48:57 -0000 On Mon, Dec 29, 2008 at 7:13 PM, luizbcampos wrote: > Does anyone know how to run asfiles on windowmaker? Whereis its > executable? (path) I have no idea what asfiles is, but I would assume `which asfiles' would tell you where it is located. -- Glen Barber "Tell me and I forget. Teach me and I remember. Involve me and I learn." - Benjamin Franklin From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 06:00:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C8801065670 for ; Tue, 30 Dec 2008 06:00:58 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id 285688FC19 for ; Tue, 30 Dec 2008 06:00:58 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id mBU60vV2089372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 29 Dec 2008 22:00:57 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id mBU60vt2089371; Mon, 29 Dec 2008 22:00:57 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA24099; Mon, 29 Dec 08 21:59:25 PST Date: Mon, 29 Dec 2008 22:02:00 -0800 From: perryh@pluto.rain.com To: glen.j.barber@gmail.com Message-Id: <4959b958.1X35M0vcBdIGo3IN%perryh@pluto.rain.com> References: <4ad871310812291948n2159a0a9p9781183694e4dae8@mail.gmail.com> In-Reply-To: <4ad871310812291948n2159a0a9p9781183694e4dae8@mail.gmail.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: luizbcampos@gmail.com, freebsd-questions@freebsd.org Subject: Re: running asfiles on windowmaker... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 06:00:58 -0000 > > Does anyone know how to run asfiles on windowmaker? > > Whereis its executable? (path) > > I have no idea what asfiles is, but I would assume > `which asfiles' would tell you where it is located. ... unless it's not in PATH, and the OP is asking which directory needs to be added. asfiles is a port which installs into /usr/local, so I'd expect the executable to be in /usr/local/bin. If not, find /usr/local -name asfiles -print should find it. From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 06:13:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFEC810656C3 for ; Tue, 30 Dec 2008 06:13:03 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 3BD328FC1B for ; Tue, 30 Dec 2008 06:13:02 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1LHXqb-0000hQ-Pa; Tue, 30 Dec 2008 06:12:57 +0000 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id mBU6CuRk019623; Tue, 30 Dec 2008 06:12:57 GMT Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id 93DCEFCB841; Tue, 30 Dec 2008 06:12:51 +0000 (GMT) Date: Tue, 30 Dec 2008 06:12:51 +0000 From: Frank Shute To: Bruce Cran Message-ID: <20081230061251.GA80902@melon.esperance-linux.co.uk> Mail-Followup-To: Bruce Cran , Masoom Shaikh , freebsd-questions@freebsd.org References: <20081229124558.43cefc56@gumby.homeunix.com> <200812292039.43242.masoom.shaikh@gmail.com> <20081229202717.GA78262@melon.esperance-linux.co.uk> <20081229214319.65a008a1@gluon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081229214319.65a008a1@gluon> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.3-RELEASE-p2 i386 X-Organisation: 'http://www.shute.org.uk/' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.1.7 (zetnet.co.uk [194.247.46.1]); Tue, 30 Dec 2008 06:12:57 +0000 (GMT) Cc: Masoom Shaikh , freebsd-questions@freebsd.org Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 06:13:04 -0000 On Mon, Dec 29, 2008 at 09:43:19PM +0000, Bruce Cran wrote: > > On Mon, 29 Dec 2008 20:27:17 +0000 > Frank Shute wrote: > > > You can keep a local copy of the docs & update the sources for the > > docs with csup but you have to regenerate them with a make command > > after you have csup'd. > > > > The process is described within this page I just put up: > > > > http://www.shute.org.uk/misc/freebsd_uptodate.html > > > > There maybe some errors there or things I've missed, so apologies for > > that in advance. Any questions, just drop me an email. > > > > It's good practice IMO to have a locally updated copy of the handbook. > > > > You always need the handbook when your 'net connection is down ;) > > Are the docs branched? I tried running a csup with > tag=RELENG_7 and nothing got created; changing the line > > doc-all > > to > > doc-all tag=. > > fixed it and fetched all the docs. > Hi Bruce, As Giorgios points out, the docs aren't branched. I'll try & make it clearer on that page that it's only for SUPFILE(source) that there is a branch you have to follow. PORTSSUPFILE(ports) & DOCSUPFILE(docs) are just given the current tag, which they should have by default. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 06:49:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E22A4106566C for ; Tue, 30 Dec 2008 06:49:24 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) by mx1.freebsd.org (Postfix) with ESMTP id 979408FC13 for ; Tue, 30 Dec 2008 06:49:24 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [212.54.42.141] (helo=smtp10.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LHYPq-00049V-Ty; Tue, 30 Dec 2008 07:49:22 +0100 Received: from [84.25.72.219] (helo=ra.egypt.nl) by smtp10.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LHYPm-0000Ff-Ku; Tue, 30 Dec 2008 07:49:18 +0100 Received: from [192.168.13.81] (iPod.egypt.nl [192.168.13.81]) by ra.egypt.nl (Postfix) with ESMTP id 66C4339840; Tue, 30 Dec 2008 07:49:13 +0100 (CET) References: <4ad871310812291948n2159a0a9p9781183694e4dae8@mail.gmail.com> <4959b958.1X35M0vcBdIGo3IN%perryh@pluto.rain.com> Message-Id: From: Peter Boosten To: "perryh@pluto.rain.com" In-Reply-To: <4959b958.1X35M0vcBdIGo3IN%perryh@pluto.rain.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (5G77) Mime-Version: 1.0 (iPod Mail 5G77) Date: Tue, 30 Dec 2008 07:51:21 +0100 X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1LHYPm-0000Ff-Ku X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.913, required 5, BAYES_00 -2.60, SPF_NEUTRAL 0.69) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No Cc: "glen.j.barber@gmail.com" , "luizbcampos@gmail.com" , "freebsd-questions@freebsd.org" Subject: Re: running asfiles on windowmaker... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 06:49:25 -0000 On 30 dec 2008, at 07:02, perryh@pluto.rain.com wrote: >>> Does anyone know how to run asfiles on windowmaker? >>> Whereis its executable? (path) >> >> I have no idea what asfiles is, but I would assume >> `which asfiles' would tell you where it is located. > > ... unless it's not in PATH, and the OP is asking which directory > needs to be added. asfiles is a port which installs into /usr/local, > so I'd expect the executable to be in /usr/local/bin. If not, > > find /usr/local -name asfiles -print > > should find it. > pkg_info -L package (replace "package" by actual package name) Shows all files installed by the port, assuming OP installed asfiles through the port. Peter -- Http://www.boosten.org From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 06:56:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9B08106566B for ; Tue, 30 Dec 2008 06:56:22 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (brucec-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:c09::2]) by mx1.freebsd.org (Postfix) with ESMTP id 839DB8FC17 for ; Tue, 30 Dec 2008 06:56:22 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id BF0C5192DB; Tue, 30 Dec 2008 01:56:20 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on muon X-Spam-Level: X-Spam-Status: No, score=-1.9 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from gluon (tau.demon.co.uk [80.177.26.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Tue, 30 Dec 2008 01:56:20 -0500 (EST) Date: Tue, 30 Dec 2008 06:56:15 +0000 From: Bruce Cran To: Frank Shute Message-ID: <20081230065615.7224f2c7@gluon> In-Reply-To: <20081230061251.GA80902@melon.esperance-linux.co.uk> References: <20081229124558.43cefc56@gumby.homeunix.com> <200812292039.43242.masoom.shaikh@gmail.com> <20081229202717.GA78262@melon.esperance-linux.co.uk> <20081229214319.65a008a1@gluon> <20081230061251.GA80902@melon.esperance-linux.co.uk> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Masoom Shaikh , freebsd-questions@freebsd.org Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 06:56:23 -0000 On Tue, 30 Dec 2008 06:12:51 +0000 Frank Shute wrote: > As Giorgios points out, the docs aren't branched. > > I'll try & make it clearer on that page that it's only for > SUPFILE(source) that there is a branch you have to follow. > PORTSSUPFILE(ports) & DOCSUPFILE(docs) are just given the current tag, > which they should have by default. Sorry I missed where you say to use the doc-supfile; I thought both src and doc were being fetched using a single cvsupfile like in Masoom's original email. On reading the page again it's actually quite clear that you should use the standard doc-supfile which will contain the correct tag line. -- Bruce Cran From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 08:25:02 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CBA710656D3 for ; Tue, 30 Dec 2008 08:25:02 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id E97838FC29 for ; Tue, 30 Dec 2008 08:24:54 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 463EBB850; Tue, 30 Dec 2008 09:24:53 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36956-02; Tue, 30 Dec 2008 09:24:44 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Tue, 30 Dec 2008 09:24:44 +0100 (CET) Message-ID: <4959DB47.9000003@dugas-family.org> Date: Tue, 30 Dec 2008 09:26:47 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Wojciech Puchar References: <20081216094719.EDCEE1065675@hub.freebsd.org> <49478749.2030200@dugas-family.org> <20081216123057.M61117@wojtek.tensor.gdynia.pl> <49592E79.40504@dugas-family.org> <20081229225952.W68805@wojtek.tensor.gdynia.pl> In-Reply-To: <20081229225952.W68805@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: freebsd-questions@freebsd.org Subject: Re: Optimising pxeboot disk size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 08:25:02 -0000 Wojciech Puchar wrote: >> I couldn't find the hostname sent by dhcp, but found a way to find the >> ip address. > > just use hostname command. I did, but the answer is empty (remember this is before /etc/rc is run). Where is kept the data received by dhcp_client during pxe boot ? >> The only problem i have is that the "echo done" and other standard >> outputs are not visible in /var/log/messages. How can i keep them >> either in dmesg or /var/log/messages ? > > add second echo to >>/var/log/messages ;) Hope not to forget one > ;-) But is there a system call or configuration to do that automatically ? I can see some echo in /etc/rc without any >>, and their result seems to go to /var/messages. I wish to learn to do clean scripting :-) Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 08:44:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A8E9106566B for ; Tue, 30 Dec 2008 08:44:46 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id 553538FC14 for ; Tue, 30 Dec 2008 08:44:46 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 2D885B853; Tue, 30 Dec 2008 09:44:45 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36934-08; Tue, 30 Dec 2008 09:44:36 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Tue, 30 Dec 2008 09:44:36 +0100 (CET) Message-ID: <4959DFEF.5090407@dugas-family.org> Date: Tue, 30 Dec 2008 09:46:39 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Wojciech Puchar References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> In-Reply-To: <20081229230115.F68805@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: freebsd-questions@freebsd.org Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 08:44:46 -0000 Wojciech Puchar wrote: >> i can see a reading speed difference 4 time slower on client than on >> server (time tar -cf - /usr > /dev/null). >> >> I will play with jumbo MTU for network performance, but would anybody >> know if i can ask system files NFS exports to stay in server memory ? >> I have less than 2Go to share and 2GO DDR2 is affordable. > > you don't have to. So you din't think that if all files are already in RAM on server, i will save the drive access time ? Or do you think the NFS network access is so much slow that the disk access time is just marginal ? Do you think i should use something more efficient than NFS ? Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 10:06:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AAA9106564A for ; Tue, 30 Dec 2008 10:06:34 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6C8C88FC0C for ; Tue, 30 Dec 2008 10:06:32 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBUA6NLA081991; Tue, 30 Dec 2008 11:06:23 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBUA6L6p081957; Tue, 30 Dec 2008 11:06:22 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 30 Dec 2008 11:06:21 +0100 (CET) From: Wojciech Puchar To: Bernard Dugas In-Reply-To: <4959DB47.9000003@dugas-family.org> Message-ID: <20081230110543.T79577@wojtek.tensor.gdynia.pl> References: <20081216094719.EDCEE1065675@hub.freebsd.org> <49478749.2030200@dugas-family.org> <20081216123057.M61117@wojtek.tensor.gdynia.pl> <49592E79.40504@dugas-family.org> <20081229225952.W68805@wojtek.tensor.gdynia.pl> <4959DB47.9000003@dugas-family.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Optimising pxeboot disk size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 10:06:34 -0000 >> add second echo to >>/var/log/messages ;) > > Hope not to forget one > ;-) > > But is there a system call or configuration to do that automatically ? I can > see some echo in /etc/rc without any >>, and their result seems to go to > /var/messages. > > I wish to learn to do clean scripting :-) actually i don't know how it's done in stardard rc scripts From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 11:03:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91B47106564A for ; Tue, 30 Dec 2008 11:03:37 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 2BA378FC1B for ; Tue, 30 Dec 2008 11:03:36 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.3/jtpda-5.4) with ESMTP id mBUB3ZaG040355 for ; Tue, 30 Dec 2008 12:03:35 +0100 (CET) X-Ids: 166 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id 2E0498A2D5 for ; Tue, 30 Dec 2008 12:03:34 +0100 (CET) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 1D6B215; Tue, 30 Dec 2008 12:03:34 +0100 (CET) Date: Tue, 30 Dec 2008 12:03:34 +0100 From: Michel Talon To: freebsd-questions@freebsd.org Message-ID: <20081230110334.GA43765@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (shiva.jussieu.fr [134.157.0.166]); Tue, 30 Dec 2008 12:03:35 +0100 (CET) X-Virus-Scanned: ClamAV 0.94.2/8814/Tue Dec 30 09:43:21 2008 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail.jussieu.fr with ID 495A0007.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 495A0007.001/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ X-j-chkmail-Score: MSGID : 495A0007.001 on jchkmail.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.013 -> S=0.013 X-j-chkmail-Status: Ham Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 11:03:37 -0000 Bernard Dugas wrote: > So you din't think that if all files are already in RAM on server, i > will save the drive access time ? > > Or do you think the NFS network access is so much slow that the disk > access time is just marginal ? > > Do you think i should use something more efficient than NFS ? The VM system in principle does a good job of keeping in memory files which are frequently accessed, so you should not have to do anything special, and moreover i don't think there exists something convenient to force some files in memory (and this would be detrimental to the globalthroughput of the server). As to NFS speed, you should experiment with NFS on TCP and run a large number of nfsd on the server (see nfs_server_flags in rc.conf). For example -n 6 or -n 8. Maybe also experiment with the readsize and writesize. Anyways, i don't think you can expect the same throughput via NFS (say 10 MB/s, or more on Gig ethernet) as on a local disk (40 MB/s or more). -- Michel TALON From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 13:33:56 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51BBF1065675 for ; Tue, 30 Dec 2008 13:33:56 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id D33F58FC13 for ; Tue, 30 Dec 2008 13:33:55 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1LHejH-0003Hu-Fj; Tue, 30 Dec 2008 13:33:51 +0000 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id mBUDXoQW009469; Tue, 30 Dec 2008 13:33:51 GMT Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id 78169FCB841; Tue, 30 Dec 2008 13:33:45 +0000 (GMT) Date: Tue, 30 Dec 2008 13:33:45 +0000 From: Frank Shute To: Giorgos Keramidas Message-ID: <20081230133345.GA81883@melon.esperance-linux.co.uk> Mail-Followup-To: Giorgos Keramidas , freebsd-questions@freebsd.org References: <20081229124558.43cefc56@gumby.homeunix.com> <200812292039.43242.masoom.shaikh@gmail.com> <20081229202717.GA78262@melon.esperance-linux.co.uk> <87myeemyx2.fsf@kobe.laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87myeemyx2.fsf@kobe.laptop> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.3-RELEASE-p2 i386 X-Organisation: 'http://www.shute.org.uk/' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.1.7 (zetnet.co.uk [194.247.46.1]); Tue, 30 Dec 2008 13:33:51 +0000 (GMT) Cc: freebsd-questions@freebsd.org Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 13:33:56 -0000 On Mon, Dec 29, 2008 at 11:52:57PM +0200, Giorgos Keramidas wrote: > > On Mon, 29 Dec 2008 20:27:17 +0000, Frank Shute wrote: > > You can keep a local copy of the docs & update the sources for the > > docs with csup but you have to regenerate them with a make command > > after you have csup'd. > > > > The process is described within this page I just put up: > > > > http://www.shute.org.uk/misc/freebsd_uptodate.html > > Hi Masoom, > > We have been working on a patch for the Handbook that adds a short > description of the same process. > > The patch has been recently posted to freebsd-doc, by Gabor Pali: > > http://lists.freebsd.org/pipermail/freebsd-doc/2008-December/015315.html > > Since you already have written something similar, do you think we can > convince you to review the patch? It would be nice if you could help > us improve it or make it easier to read, and use. Hi Giorgos, I think your post was meant to be addressed to me as I wrote the above guide. I'd be happy to review the patch that Gabor has written & if necessary add or subtract from it. It will take me a bit of time to get up to speed with the mark-up & review/grok the updating docs in the round. ATM, they certainly fall short of including anything about updating a local copy of the docs. I'll sign up for docs@ & then my impertinent/stupid questions about the docs can be answered there....hopefully ;) Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 14:05:38 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF67C106566C for ; Tue, 30 Dec 2008 14:05:38 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 1C9C18FC08 for ; Tue, 30 Dec 2008 14:05:37 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBUE5Sit087483; Tue, 30 Dec 2008 15:05:28 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBUE5RJj087480; Tue, 30 Dec 2008 15:05:28 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 30 Dec 2008 15:05:27 +0100 (CET) From: Wojciech Puchar To: Bernard Dugas In-Reply-To: <4959DFEF.5090407@dugas-family.org> Message-ID: <20081230150507.U87347@wojtek.tensor.gdynia.pl> References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 14:05:39 -0000 >>> less than 2Go to share and 2GO DDR2 is affordable. >> >> you don't have to. > > So you din't think that if all files are already in RAM on server, i will > save the drive access time ? FreeBSD automatically use all free memory as cache. From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 14:07:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA356106573B for ; Tue, 30 Dec 2008 14:07:21 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 2F0D58FC18 for ; Tue, 30 Dec 2008 14:07:19 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBUE7EX0088246; Tue, 30 Dec 2008 15:07:14 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBUE7DMm088223; Tue, 30 Dec 2008 15:07:14 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 30 Dec 2008 15:07:12 +0100 (CET) From: Wojciech Puchar To: Michel Talon In-Reply-To: <20081230110334.GA43765@lpthe.jussieu.fr> Message-ID: <20081230150604.Q87347@wojtek.tensor.gdynia.pl> References: <20081230110334.GA43765@lpthe.jussieu.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 14:07:23 -0000 > As to NFS speed, you should experiment with NFS on TCP and run a large > number of nfsd on the server (see nfs_server_flags in rc.conf). For > example -n 6 or -n 8. Maybe also experiment with the readsize and > writesize. Anyways, i don't think you can expect the same throughput > via NFS (say 10 MB/s, or more on Gig ethernet) as on a local disk anyway even relatively slow computer (like pentium 200) can easily saturate fast ethernet. mostly network speed is the limit. there is slowdown because network introduces slight delay, but few ms at most if network is made properly From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 14:27:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BD66106566B for ; Tue, 30 Dec 2008 14:27:25 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id 8CAF38FC08 for ; Tue, 30 Dec 2008 14:27:24 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id mBUERMRk093001; Wed, 31 Dec 2008 01:27:22 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 31 Dec 2008 01:27:22 +1100 (EST) From: Ian Smith To: David Scialom In-Reply-To: <20081229100518.846A610656ED@hub.freebsd.org> Message-ID: <20081231001712.X51566@sola.nimnet.asn.au> References: <20081229100518.846A610656ED@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: Unable to modify sysid with Fdisk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 14:27:25 -0000 In freebsd-questions Digest, Vol 244, Issue 1, Message 6 On Sun, 28 Dec 2008 17:45:52 +0100 David Scialom wrote: > Hello, > > It seems that it is impossible to modify the sysid with fdisk since FreeBSD > 6.2. I am actually using FreeBSD7.0. > When I want to modify my the sysid from 165(ufs) to 12(Fat32) i get the > message "Geom not found: da0" and no change is made: da0 is stock with sysid > = 165. The detail are provided below. I tried also to do the same from the > install FreeBSD CD without success. > > As someone a solution ? David, I've skimmed through this thread so far, but I didn't notice anyone suggest, well, not doing it that way. You want to change the MBR slice type of da0 from ufs to doswin32. Is that to put an msdosfs filesystem on it? Or is it already formatted as one of those? Is it a 1GB USB memory stick? Inserted but not mounted? Try just deleting the existing ufs slice (assuming it's on a disk not in use) then readd that same size slice (here, whole disk) as type 12. That shouldn't touch any slice's data at all, just the MBR (and you've already dd'd the whole GB raw da0 disk to backup just in case ..) I've used the fdisk wrapper in sysinstall to slice usb stick disks, sometimes with both msdos and ufs slices, just because I prefer that interface rather than maybe miscalculating an offset or size .. ymmv. And from the darkside, FDISK x: /MBR probably still works :) HTH, Ian From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 15:06:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 627671065670 for ; Tue, 30 Dec 2008 15:06:16 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id 1A5F18FC0C for ; Tue, 30 Dec 2008 15:06:15 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 459DFB859; Tue, 30 Dec 2008 16:06:14 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 41138-02; Tue, 30 Dec 2008 16:06:05 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Tue, 30 Dec 2008 16:06:05 +0100 (CET) Message-ID: <495A3957.9050002@dugas-family.org> Date: Tue, 30 Dec 2008 16:08:07 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Wojciech Puchar References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> In-Reply-To: <20081230150507.U87347@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: freebsd-questions@freebsd.org Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 15:06:16 -0000 Wojciech Puchar wrote: >> So you din't think that if all files are already in RAM on server, i >> will save the drive access time ? > > FreeBSD automatically use all free memory as cache. OK > there is slowdown because network introduces slight delay, > but few ms at most if network is made properly This is a Gbps network with only 1 switch between nfs server and client, with less than 0.2ms ping. So bandwidth should not be a problem, seems that NFSV3 is the limitation... Trying to change mtu, but don't look easy, where can i find the possible range for ports ? Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 15:21:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DA07106564A for ; Tue, 30 Dec 2008 15:21:29 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8DB4D8FC13 for ; Tue, 30 Dec 2008 15:21:28 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id mBUFM7JN053857 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Dec 2008 15:22:09 GMT (envelope-from vince@unsane.co.uk) Message-ID: <495A3C72.5070802@unsane.co.uk> Date: Tue, 30 Dec 2008 15:21:22 +0000 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Bernard Dugas References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> In-Reply-To: <495A3957.9050002@dugas-family.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Wojciech Puchar , freebsd-questions@freebsd.org Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 15:21:29 -0000 Bernard Dugas wrote: > Wojciech Puchar wrote: >>> So you din't think that if all files are already in RAM on server, i >>> will save the drive access time ? >> >> FreeBSD automatically use all free memory as cache. > > OK > > > there is slowdown because network introduces slight delay, > > but few ms at most if network is made properly > > This is a Gbps network with only 1 switch between nfs server and > client, with less than 0.2ms ping. So bandwidth should not be a > problem, seems that NFSV3 is the limitation... > > Trying to change mtu, but don't look easy, where can i find the > possible range for ports ? > MTU can be a pain, check what your switch supports, and the manpage for your network driver should say what MTU the nic supports. mtu is set using ifconfig (or the ifconfig_$nic line in rc.conf) : from man ifconfig mtu n Set the maximum transmission unit of the interface to n, default is interface specific. The MTU is used to limit the size of packets that are transmitted on an interface. Not all interfaces support setting the MTU, and some interfaces have range restric- tions. from man em (for example) Support for Jumbo Frames is provided via the interface MTU setting. Selecting an MTU larger than 1500 bytes with the ifconfig(8) utility con- figures the adapter to receive and transmit Jumbo Frames. The maximum MTU size for Jumbo Frames is 16114. Vince > Best regards, From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 15:39:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5F1C106566B for ; Tue, 30 Dec 2008 15:39:57 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 12D548FC13 for ; Tue, 30 Dec 2008 15:39:56 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from localhost (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.14.2/8.14.2) with ESMTP id mBUFdJAK004904; Tue, 30 Dec 2008 09:39:19 -0600 (CST) (envelope-from kdk@daleco.biz) X-Virus-Scanned: amavisd-new at daleco.biz Received: from ezekiel.daleco.biz ([127.0.0.1]) by localhost (ezekiel.daleco.biz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zqzf9s+ZkTEH; Tue, 30 Dec 2008 09:39:12 -0600 (CST) Received: from archangel.daleco.biz (ezekiel.daleco.biz [66.76.92.18]) by ezekiel.daleco.biz (8.14.2/8.14.2) with ESMTP id mBUFcqgv004890; Tue, 30 Dec 2008 09:38:59 -0600 (CST) (envelope-from kdk@daleco.biz) Message-ID: <495A408C.3060109@daleco.biz> Date: Tue, 30 Dec 2008 09:38:52 -0600 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.16) Gecko/20080719 SeaMonkey/1.1.11 MIME-Version: 1.0 To: Peter Boosten References: <4ad871310812291948n2159a0a9p9781183694e4dae8@mail.gmail.com> <4959b958.1X35M0vcBdIGo3IN%perryh@pluto.rain.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "glen.j.barber@gmail.com" , "perryh@pluto.rain.com" , "luizbcampos@gmail.com" , "freebsd-questions@freebsd.org" Subject: Re: running asfiles on windowmaker... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 15:39:57 -0000 Peter Boosten wrote: > > On 30 dec 2008, at 07:02, perryh@pluto.rain.com wrote: > >>>> Does anyone know how to run asfiles on windowmaker? >>>> Whereis its executable? (path) >>> >>> I have no idea what asfiles is, but I would assume >>> `which asfiles' would tell you where it is located. >> >> ... unless it's not in PATH, and the OP is asking which directory >> needs to be added. asfiles is a port which installs into /usr/local, >> so I'd expect the executable to be in /usr/local/bin. If not, >> >> find /usr/local -name asfiles -print >> >> should find it. >> > pkg_info -L package > > (replace "package" by actual package name) > > Shows all files installed by the port, assuming OP installed asfiles > through the port. ... and in this case, he'd better pipe that to more(1) [17] Tue 30.Dec.2008 9:33:36 [kadmin@archangel][~] pkg_info -L asfiles-1.0_2 | wc -l 231 ... or, even better, to head: [18] Tue 30.Dec.2008 9:33:50 [kadmin@archangel][~] pkg_info -L asfiles-1.0_2 | head Information for asfiles-1.0_2: Files: /usr/local/man/man1/files.1.gz /usr/local/man/man3/regexp.3.gz /usr/local/bin/files /usr/local/include/bitmaps/MASK.xbm /usr/local/include/bitmaps/application.xbm /usr/local/include/bitmaps/autocad.xbm /usr/local/include/bitmaps/bargraph.xbm ... and now we know why looking for asfiles doesn't help much. Try running "files", Luiz. Kevin Kinsey -- If it's Tuesday, this must be someone else's fortune. From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 15:51:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E4031065670 for ; Tue, 30 Dec 2008 15:51:33 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 8860B8FC13 for ; Tue, 30 Dec 2008 15:51:32 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl119-205.kln.forthnet.gr [77.49.238.205]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mBUFnnjB019318 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 30 Dec 2008 17:49:57 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mBUFnlts051447 for ; Tue, 30 Dec 2008 17:49:47 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mBUFnl25051446; Tue, 30 Dec 2008 17:49:47 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: freebsd-questions@freebsd.org References: <20081229124558.43cefc56@gumby.homeunix.com> <200812292039.43242.masoom.shaikh@gmail.com> <20081229202717.GA78262@melon.esperance-linux.co.uk> <87myeemyx2.fsf@kobe.laptop> <20081230133345.GA81883@melon.esperance-linux.co.uk> Date: Tue, 30 Dec 2008 17:49:47 +0200 In-Reply-To: <20081230133345.GA81883@melon.esperance-linux.co.uk> (Frank Shute's message of "Tue, 30 Dec 2008 13:33:45 +0000") Message-ID: <87wsdhll2c.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: mBUFnnjB019318 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.869, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.53, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Subject: Re: local copy of handbook X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 15:51:33 -0000 On Tue, 30 Dec 2008 13:33:45 +0000, Frank Shute wrote: >On Mon, Dec 29, 2008 at 11:52:57PM +0200, Giorgos Keramidas wrote: >>On Mon, 29 Dec 2008 20:27:17 +0000, Frank Shute wrote: >>> You can keep a local copy of the docs & update the sources for the >>> docs with csup but you have to regenerate them with a make command >>> after you have csup'd. >>> >>> The process is described within this page I just put up: >>> >>> http://www.shute.org.uk/misc/freebsd_uptodate.html >> >> Hi Masoom, >> We have been working on a patch for the Handbook that adds a short >> description of the same process. >> >> The patch has been recently posted to freebsd-doc, by Gabor Pali: >> >> http://lists.freebsd.org/pipermail/freebsd-doc/2008-December/015315.html >> >> Since you already have written something similar, do you think we can >> convince you to review the patch? It would be nice if you could help >> us improve it or make it easier to read, and use. > > Hi Giorgos, > I think your post was meant to be addressed to me as I wrote the above > guide. Yes. Sorry about that Frank :) > I'd be happy to review the patch that Gabor has written & if necessary > add or subtract from it. > > It will take me a bit of time to get up to speed with the mark-up & > review/grok the updating docs in the round. ATM, they certainly fall > short of including anything about updating a local copy of the docs. I can build a patched Handbook and upload it online, if that helps. Then you don't have to learn SGML to read it. Just let me know if you need it, and it's done. From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 17:53:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BACB106566B for ; Tue, 30 Dec 2008 17:53:48 +0000 (UTC) (envelope-from Pieter.Donche@ua.ac.be) Received: from hmacs.cmi.ua.ac.be (hmacs.cmi.ua.ac.be [143.129.75.10]) by mx1.freebsd.org (Postfix) with ESMTP id D55178FC24 for ; Tue, 30 Dec 2008 17:53:47 +0000 (UTC) (envelope-from Pieter.Donche@ua.ac.be) Received: from hmacs.cmi.ua.ac.be (localhost [127.0.0.1]) by hmacs.cmi.ua.ac.be (8.13.8+Sun/8.13.8) with ESMTP id mBUHrkUU024817 for ; Tue, 30 Dec 2008 18:53:46 +0100 (CET) Received: from localhost (pdon@localhost) by hmacs.cmi.ua.ac.be (8.13.8+Sun/8.13.8/Submit) with ESMTP id mBUHrkA9024814 for ; Tue, 30 Dec 2008 18:53:46 +0100 (CET) X-Authentication-Warning: hmacs.cmi.ua.ac.be: pdon owned process doing -bs Date: Tue, 30 Dec 2008 18:53:45 +0100 (CET) From: Pieter Donche X-X-Sender: pdon@hmacs.cmi.ua.ac.be To: "mail.list freebsd-questions" Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: editing dhcpd.conf file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pieter Donche List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 17:53:48 -0000 If one wants to set up a DHCP server in such a way that that a host with a given MAC-address will, at any time it connects, get the same IP address, one can record that fixed relation in the /usr/local/etc/dhcpd.conf file. Now, when someone already registered his laptop, and buys a new latop to replace the old (a different MAC address), can then omshell be used to record the change in the /usr/local/etc/dhcpd.conf file? Does omshell edit the /usr/local/etc/dhcpd.conf? Or is the only way to make changes to that file, to use an plain text editor, make the change manually and do a /usr/local/etc/rc.d/isc-dhcpd restart afterwards ? From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 18:16:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7EB1106566B for ; Tue, 30 Dec 2008 18:16:29 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mx1.identry.com (on.identry.com [66.111.0.194]) by mx1.freebsd.org (Postfix) with ESMTP id 754BA8FC16 for ; Tue, 30 Dec 2008 18:16:29 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 66970 invoked by uid 89); 30 Dec 2008 18:16:28 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 30 Dec 2008 18:16:28 -0000 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-questions@freebsd.org From: John Almberg Date: Tue, 30 Dec 2008 13:16:27 -0500 X-Mailer: Apple Mail (2.753.1) Subject: How do I configure PHP to use curl? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 18:16:30 -0000 I just ran into something that has me stumped. It's probably a real newbie question, but I can't figure it out... I'm trying to add curl support to my PHP installation, but when I run 'make config' in the /usr/ports/lang/php5 directory, curl is not one of the very small set of options given. PHP has a million options, so how do you set one that is not in the 'make config' box? -- John From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 18:20:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81755106567B for ; Tue, 30 Dec 2008 18:20:24 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from fmailhost01.isp.att.net (fmailhost01.isp.att.net [204.127.217.101]) by mx1.freebsd.org (Postfix) with ESMTP id 694BD8FC20 for ; Tue, 30 Dec 2008 18:20:24 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from [10.5.21.122] (adsl-156-31-14.bna.bellsouth.net[70.156.31.14]) by isp.att.net (frfwmhc01) with ESMTP id <20081230182023H0100fl0ase>; Tue, 30 Dec 2008 18:20:24 +0000 X-Originating-IP: [70.156.31.14] Message-ID: <495A6655.3070502@datapipe.com> Date: Tue, 30 Dec 2008 12:20:05 -0600 From: Paul Procacci User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: John Almberg References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How do I configure PHP to use curl? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 18:20:25 -0000 John Almberg wrote: > I just ran into something that has me stumped. It's probably a real > newbie question, but I can't figure it out... > > I'm trying to add curl support to my PHP installation, but when I run > 'make config' in the /usr/ports/lang/php5 directory, curl is not one > of the very small set of options given. > > PHP has a million options, so how do you set one that is not in the > 'make config' box? > > -- John > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" cd /usr/ports/ftp/php5-curl make install restart your web server. Cheers! From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 18:26:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F3901065672 for ; Tue, 30 Dec 2008 18:26:45 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3423C8FC27 for ; Tue, 30 Dec 2008 18:26:44 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LHjIh-0005RW-0v for freebsd-questions@freebsd.org; Tue, 30 Dec 2008 18:26:43 +0000 Received: from pool-138-88-90-120.res.east.verizon.net ([138.88.90.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Dec 2008 18:26:43 +0000 Received: from nightrecon by pool-138-88-90-120.res.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Dec 2008 18:26:43 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Tue, 30 Dec 2008 13:26:57 -0500 Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-138-88-90-120.res.east.verizon.net Sender: news Subject: Re: How do I configure PHP to use curl? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nightrecon@verizon.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 18:26:45 -0000 John Almberg wrote: > I just ran into something that has me stumped. It's probably a real > newbie question, but I can't figure it out... > > I'm trying to add curl support to my PHP installation, but when I run > 'make config' in the /usr/ports/lang/php5 directory, curl is not one > of the very small set of options given. > > PHP has a million options, so how do you set one that is not in the > 'make config' box? > > -- John > Try /usr/ports/lang/php5-extensions instead. This is where you add the million other options. -Mike From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 18:31:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48C20106564A for ; Tue, 30 Dec 2008 18:31:10 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mx1.identry.com (on.identry.com [66.111.0.194]) by mx1.freebsd.org (Postfix) with ESMTP id D92D28FC12 for ; Tue, 30 Dec 2008 18:31:09 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 30223 invoked by uid 89); 30 Dec 2008 18:30:59 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 30 Dec 2008 18:30:59 -0000 Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <754FE542-2987-4924-94DC-396D7F4A9E71@identry.com> Content-Transfer-Encoding: 7bit From: John Almberg Date: Tue, 30 Dec 2008 13:30:51 -0500 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.753.1) Subject: Re: How do I configure PHP to use curl? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 18:31:10 -0000 On Dec 30, 2008, at 1:26 PM, Michael Powell wrote: > John Almberg wrote: > >> I just ran into something that has me stumped. It's probably a real >> newbie question, but I can't figure it out... >> >> I'm trying to add curl support to my PHP installation, but when I run >> 'make config' in the /usr/ports/lang/php5 directory, curl is not one >> of the very small set of options given. >> >> PHP has a million options, so how do you set one that is not in the >> 'make config' box? >> >> -- John >> > Try /usr/ports/lang/php5-extensions instead. This is where you add > the million other options. Ah! I knew there was a simple answer. Thanks: John From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 18:35:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A5521065673 for ; Tue, 30 Dec 2008 18:35:17 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-fx0-f11.google.com (mail-fx0-f11.google.com [209.85.220.11]) by mx1.freebsd.org (Postfix) with ESMTP id 149B48FC21 for ; Tue, 30 Dec 2008 18:35:16 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by fxm4 with SMTP id 4so984311fxm.19 for ; Tue, 30 Dec 2008 10:35:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=SHy4IIAI5hNH/wXbAGE9Q4YC/larqx7DI5GnWGeRS/Q=; b=BWsvV98s/i6PYFfxbZWZDJmbgSM99vnjvZNPG5DuvXpbJ1u5VHQ2xEPNhJgbvWCHSi vqLL53e97hWr5sRIAz8kLJXM6D7Tfb1utN0jHp9e1wfDyMPHWn3ps5mvPm3dOi+ktuKN oyvchhG5vk9NcmUlAvHFYv40q0eFDuLT649yY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=pSRFZtulkgtwhsHd3Ep92+FTnOGJzFoXi/IRTOw+u0nMOXm14FDu0ywaV9VcN5ShLR znuNYPmCYCIyDGlCEMCAby/YUYDh68XVGvCSNR7+vVCC2amvw8mnC/T00P+fUGbKSUWe 9L7jyGNrOUiTyvrKl5vqJpceKLQAFSWsCGrEM= Received: by 10.223.109.20 with SMTP id h20mr10938932fap.41.1230662115233; Tue, 30 Dec 2008 10:35:15 -0800 (PST) Received: by 10.223.109.80 with HTTP; Tue, 30 Dec 2008 10:35:15 -0800 (PST) Message-ID: <4ad871310812301035u5184fb3di9a28095466beeddf@mail.gmail.com> Date: Tue, 30 Dec 2008 13:35:15 -0500 From: "Glen Barber" To: "John Almberg" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-questions@freebsd.org Subject: Re: How do I configure PHP to use curl? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 18:35:17 -0000 On Tue, Dec 30, 2008 at 1:16 PM, John Almberg wrote: > I just ran into something that has me stumped. It's probably a real newbie > question, but I can't figure it out... > > I'm trying to add curl support to my PHP installation, but when I run 'make > config' in the /usr/ports/lang/php5 directory, curl is not one of the very > small set of options given. > > PHP has a million options, so how do you set one that is not in the 'make > config' box? > Have a look at lang/php5-extensions -- Glen Barber "Tell me and I forget. Teach me and I remember. Involve me and I learn." - Benjamin Franklin From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 18:36:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F68010656C7 for ; Tue, 30 Dec 2008 18:36:07 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-bw0-f19.google.com (mail-bw0-f19.google.com [209.85.218.19]) by mx1.freebsd.org (Postfix) with ESMTP id E5B718FC16 for ; Tue, 30 Dec 2008 18:36:06 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by bwz12 with SMTP id 12so14453148bwz.19 for ; Tue, 30 Dec 2008 10:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=0xcbS2IA8YfILACYM2Dt7tc8i4vAp/e0SZRiqQROHM0=; b=ZiPJILdI/3hGUxumteEIyOYe//W6j/GRAYCvEiT0tLIdL84pOINkvuK9qQgecotgC7 jEY1Ysi50gNqAanKrsmd2HTuucvPKxACWM1NWB91zrOVJn2HR2w/gzmD/65VpfgUtgri cFXxBGw3sf9MYOroWcZZY7/CpDuGyrM5fvL0A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=nMsfD7VSY3PFWopRsFuKyYr8keuLdYbcUavLKExc4d8E5CTAIQUmOfCk/A/yYd4/km xALambQfJH577xqi+b1kzFQAk2VCS90f14CAWmnCmrMcfltODITDax0hJXX7v4nMQfIw q8U/Hi/GXfDCv+WQw4oLEI1f/YxBc+O1THabo= Received: by 10.223.103.147 with SMTP id k19mr10954555fao.0.1230662165312; Tue, 30 Dec 2008 10:36:05 -0800 (PST) Received: by 10.223.109.80 with HTTP; Tue, 30 Dec 2008 10:36:05 -0800 (PST) Message-ID: <4ad871310812301036l39e5c0acsd800d545f07df288@mail.gmail.com> Date: Tue, 30 Dec 2008 13:36:05 -0500 From: "Glen Barber" To: "John Almberg" In-Reply-To: <4ad871310812301035u5184fb3di9a28095466beeddf@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4ad871310812301035u5184fb3di9a28095466beeddf@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: How do I configure PHP to use curl? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 18:36:07 -0000 On Tue, Dec 30, 2008 at 1:35 PM, Glen Barber wrote: > On Tue, Dec 30, 2008 at 1:16 PM, John Almberg wrote: >> I just ran into something that has me stumped. It's probably a real newbie >> question, but I can't figure it out... >> >> I'm trying to add curl support to my PHP installation, but when I run 'make >> config' in the /usr/ports/lang/php5 directory, curl is not one of the very >> small set of options given. >> >> PHP has a million options, so how do you set one that is not in the 'make >> config' box? >> > > Have a look at lang/php5-extensions > > Whoops. My mailbox just updated; didn't realize this was answered. Sorry for that! -- Glen Barber "Tell me and I forget. Teach me and I remember. Involve me and I learn." - Benjamin Franklin From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 18:45:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27E54106566B for ; Tue, 30 Dec 2008 18:45:30 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mx1.identry.com (on.identry.com [66.111.0.194]) by mx1.freebsd.org (Postfix) with ESMTP id B5E818FC1C for ; Tue, 30 Dec 2008 18:45:29 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 6601 invoked by uid 89); 30 Dec 2008 18:45:29 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 30 Dec 2008 18:45:29 -0000 Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <4ad871310812301036l39e5c0acsd800d545f07df288@mail.gmail.com> References: <4ad871310812301035u5184fb3di9a28095466beeddf@mail.gmail.com> <4ad871310812301036l39e5c0acsd800d545f07df288@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <236680EF-466C-4288-BAB4-597477F097DD@identry.com> Content-Transfer-Encoding: 7bit From: John Almberg Date: Tue, 30 Dec 2008 13:45:28 -0500 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.753.1) Subject: Re: How do I configure PHP to use curl? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 18:45:30 -0000 On Dec 30, 2008, at 1:36 PM, Glen Barber wrote: > On Tue, Dec 30, 2008 at 1:35 PM, Glen Barber > wrote: >> On Tue, Dec 30, 2008 at 1:16 PM, John Almberg >> wrote: >>> I just ran into something that has me stumped. It's probably a >>> real newbie >>> question, but I can't figure it out... >>> >>> I'm trying to add curl support to my PHP installation, but when I >>> run 'make >>> config' in the /usr/ports/lang/php5 directory, curl is not one of >>> the very >>> small set of options given. >>> >>> PHP has a million options, so how do you set one that is not in >>> the 'make >>> config' box? >>> >> >> Have a look at lang/php5-extensions >> >> > > Whoops. My mailbox just updated; didn't realize this was answered. > Sorry for that! This list is just toooo fast :-) It worked, by the way. And I upgraded to 5.2.8 while I was at it. I guess there were a couple of vulnerabilities with 5.2.7. Why does anyone use anything other than FreeBSD? -- John From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 19:14:28 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CA8D106566B for ; Tue, 30 Dec 2008 19:14:28 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 7F54B8FC0C for ; Tue, 30 Dec 2008 19:14:27 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBUJEIgP013595; Tue, 30 Dec 2008 20:14:18 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBUJEGEt013573; Tue, 30 Dec 2008 20:14:16 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 30 Dec 2008 20:14:16 +0100 (CET) From: Wojciech Puchar To: Vincent Hoffman In-Reply-To: <495A3C72.5070802@unsane.co.uk> Message-ID: <20081230201351.L12391@wojtek.tensor.gdynia.pl> References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org, Bernard Dugas Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 19:14:28 -0000 >> >>> there is slowdown because network introduces slight delay, >>> but few ms at most if network is made properly >> >> This is a Gbps network with only 1 switch between nfs server and >> client, with less than 0.2ms ping. So bandwidth should not be a it should work with near-wire speed on 100Mbit clients. From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 19:31:21 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90DE21065673 for ; Tue, 30 Dec 2008 19:31:21 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id 4EDA98FC1F for ; Tue, 30 Dec 2008 19:31:21 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBUJVoxn097047 for ; Tue, 30 Dec 2008 11:31:50 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Tue, 30 Dec 2008 11:31:14 -0800 (PST) Date: Tue, 30 Dec 2008 11:31:14 -0800 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20081230193111.GA32641@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: Subject: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 19:31:21 -0000 Guys, Someone send a sed website that i thought i had bookmarked on firefox3. I don't see it in history; it is not b'marked. This question may not be do-able in sed, I don't know. BEen searching around for over an hour and a half; have tried things that have failed in my /tmp/test directory; time to ask the list. The problem is that there are many, _many_ embedded "" lines, _not_ the other Href links. Which would be best to use, given that a backup is critical? sed or perl? tia, as always, gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 19:47:50 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADF65106567A for ; Tue, 30 Dec 2008 19:47:50 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id 486448FC1E for ; Tue, 30 Dec 2008 19:47:50 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from smtp15.yandex.ru (smtp15.yandex.ru [77.88.32.85]) by forwards4.yandex.ru (Yandex) with ESMTP id A4F934C59EB for ; Tue, 30 Dec 2008 22:47:48 +0300 (MSK) Received: from 221-11-113-92.pool.ukrtel.net ([92.113.11.221]:15883 "EHLO HOMEUSER" smtp-auth: "kes-kes" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4866226AbYL3Trp (ORCPT ); Tue, 30 Dec 2008 22:47:45 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp15 X-Yandex-TimeMark: 1230666465 X-BornDate: 1149541200 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 1 X-Comment: RFC 2476 MSA function at smtp15.yandex.ru logged sender identity as: kes-kes Date: Tue, 30 Dec 2008 21:47:40 +0200 From: KES X-Mailer: The Bat! (v4.0.24) Professional Organization: SaftTen X-Priority: 2 (High) Message-ID: <1691697011.20081230214740@yandex.ru> To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: Subject: Performance loss with dynamic IPFW rules X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: KES List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 19:47:51 -0000 Çäðàâñòâóéòå, Questions. 1 allow all from any to any via rl0 2 allow all from any to any via rl1 109 skipto 110 tcp from any to any 80 in recv $iface #split only http trafic 109 skipto 200 all from any to any #do not split all other trafic 110 check-state 111 prob 0.5 skipto 131 in recv rl2 121 skipto 122 keep-state in recv rl2 123 setfib 0 proto all in recv rl2 125 skipto 150 proto all in recv rl2 131 skipto 132 keep-state in recv rl2 133 setfib 1 proto all in recv rl2 135 skipto 150 proto all in recv rl2 I am connected on rl1. INET is rl0, rl1 each 4Mbit/s When I open many connections I get performance loss: 1) Web pages are not opened (it seems flow at start goes through rl0 and then goes rl1. EXPECTED: it flows only through one channel until closed) 2) I get about 2Mbit/s while downloading something When I not open many flows I get 8Mbit/s while serfing What is problem? -- Ñ óâàæåíèåì, KES mailto:kes-kes@yandex.ru From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 19:55:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1864C106564A for ; Tue, 30 Dec 2008 19:55:07 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id DF2C98FC12 for ; Tue, 30 Dec 2008 19:55:06 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 13D721FF299; Tue, 30 Dec 2008 14:55:06 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 30 Dec 2008 14:55:06 -0500 X-Sasl-enc: fC0k9nKFZ7343+X7B8ThNE82nLPW9xDjcaCv+g/gtlfI 1230666905 Received: from hagrid.ewd.goldmark.org (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTPSA id A00FE510C; Tue, 30 Dec 2008 14:55:05 -0500 (EST) Message-Id: <871E23EC-C811-4432-95F8-C3347D256C6D@goldmark.org> From: Jeffrey Goldberg To: Pieter Donche In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 30 Dec 2008 13:55:03 -0600 References: X-Mailer: Apple Mail (2.930.3) Cc: "mail.list freebsd-questions" Subject: Re: editing dhcpd.conf file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 19:55:07 -0000 On Dec 30, 2008, at 11:53 AM, Pieter Donche wrote: > Now, when someone already registered his laptop, and buys a new > latop to replace the old (a different MAC address), can then omshell > be used to record the change in the /usr/local/etc/dhcpd.conf file? > Does omshell edit the /usr/local/etc/dhcpd.conf? > > Or is the only way to make changes to that file, to use an plain text > editor, make the change manually and do a /usr/local/etc/rc.d/isc- > dhcpd restart afterwards ? I hadn't heard about omshell or OMAPI until seeing your post. So my answer is based on no experience other than just reading its man pages. It appears that OMAPI does not edit the dhcpd.conf file. However, changes made through OMAPI will be reflected in dhcpd.leases with the line dynamic; indicating that the lease was created via OMAPI. Thus, in principle one could write a daemon that would watch dhcpd.leases for new dynamic leases and then call something that would edit dhcpd.conf. I don't know if anyone has put that together, but it would make sense to ask in places where OMAPI is discussed. Best of luck with this, Cheers, -j From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 20:16:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1845D106564A for ; Tue, 30 Dec 2008 20:16:27 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id A13A38FC18 for ; Tue, 30 Dec 2008 20:16:26 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id mBUKGOxA018150; Tue, 30 Dec 2008 21:16:24 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id C4EE3B84E; Tue, 30 Dec 2008 21:16:23 +0100 (CET) Date: Tue, 30 Dec 2008 21:16:23 +0100 From: Roland Smith To: Gary Kline Message-ID: <20081230201623.GB65659@slackbox.xs4all.nl> References: <20081230193111.GA32641@thought.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Yylu36WmvOXNoKYn" Content-Disposition: inline In-Reply-To: <20081230193111.GA32641@thought.org> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Mailing List Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 20:16:27 -0000 --Yylu36WmvOXNoKYn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: > The problem is that there are many, _many_ embedded=20 > " Site in my hundreds, or > thousands, or files. I only want to delete the > "http://" lines, _not_ the other Href links. >=20 > Which would be best to use, given that a backup is critical? > sed or perl? IMHO, perl with the -i option to do in-place editing with backups. You could also use the -p option to loop over files. See perlrun(1). Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --Yylu36WmvOXNoKYn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklagZcACgkQEnfvsMMhpyU+/ACffgWA7koUEwQ1+25aKrhUEw++ qrMAniS5zi3QQEfzu/neloXmVp6WZXuq =TDud -----END PGP SIGNATURE----- --Yylu36WmvOXNoKYn-- From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 20:23:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F70B106566C for ; Tue, 30 Dec 2008 20:23:26 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 226098FC1D for ; Tue, 30 Dec 2008 20:23:25 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id mBUKH2bt037003; Tue, 30 Dec 2008 15:17:02 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id mBUKH2gM037002; Tue, 30 Dec 2008 15:17:02 -0500 (EST) (envelope-from jerrymc) Date: Tue, 30 Dec 2008 15:17:01 -0500 From: Jerry McAllister To: FreeBSD Message-ID: <20081230201701.GD36749@gizmo.acns.msu.edu> References: <494A693A.5050204@optiksecurite.com> <200812181028.18306.kirk@strauser.com> <20081218163632.GE5150@torus.slightlystrange.org> <494A820E.2030907@optiksecurite.com> <20081219040719.GA83557@gizmo.acns.msu.edu> <494BBFCA.5060305@optiksecurite.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <494BBFCA.5060305@optiksecurite.com> User-Agent: Mutt/1.4.2.2i Cc: Jerry McAllister , freebsd-questions@freebsd.org Subject: Re: SOLVED: Simple swap question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 20:23:26 -0000 On Fri, Dec 19, 2008 at 10:37:46AM -0500, FreeBSD wrote: > Jerry McAllister a écrit : > >On Thu, Dec 18, 2008 at 12:02:06PM -0500, FreeBSD wrote: > > > > > >>Daniel Bye a écrit : > >> > >>>On Thu, Dec 18, 2008 at 10:28:18AM -0600, Kirk Strauser wrote: > >>> > >>>>On Thursday 18 December 2008 09:16:10 FreeBSD wrote: > >>>> > >>>>>Hi everyone, > >>>>> > >>>>>I have a FreeBSD 7.0-Release server that started to swap after an error > >>>>>in a shell script (process spawning competition ;-) ). I killed the > >>>>>shell and the RAM is now OK. The problem is that the swap is still > >>>>>used. > >>>>>How can I "reset" the swap? > >>>>> > >>>>You don't. The system will handle it for you, I promise. :-) > >>>> > >>>And very well, too. > >>> > >>>You can prompt it to move pages back into RAM if you start using a > >>>swapped- > >>>out process again - say, for example, a quiescent word processor had been > >>>swapped out, you could get it back by raising it and starting to type. > >>> > >>>But as Kirk said, there really is no need. It's one of the kernel's many > >>>jobs, and I'm inclined to leave it get on with it! > >>> > >>>Dan > >>> > >>> > >>Thanks for your answer. I'm asking here because it's been several days > >>and there is still used swap for data that should never be used anymore. > >>If the kernel wants to keep it, why not move it to RAM now that there is > >>some free? > >> > > > >Why bother if it isn't being currently used? > > > >////jerry > > > > > Because this server is monitored by Nagios and it emails me every hour a > warning because the swap is not 100% free (I know it's pretty extreme, > but I want to know if the system is swapping). > > I just tried > > swapoff -a ; swapon -a > > and it worked great. > > Thanks everyone for your answer. > > Martin > But, you want it to use swap. The system uses swap to stash stuff it is not currently using - where it can move it back in to use in a much more efficient, fast manner than re-looking it up again on filesystem disk. ////jerry > > From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 20:29:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B763106564A for ; Tue, 30 Dec 2008 20:29:46 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id A3CEF8FC17 for ; Tue, 30 Dec 2008 20:29:45 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id mBUKNM32037054; Tue, 30 Dec 2008 15:23:22 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id mBUKNLS0037053; Tue, 30 Dec 2008 15:23:21 -0500 (EST) (envelope-from jerrymc) Date: Tue, 30 Dec 2008 15:23:21 -0500 From: Jerry McAllister To: FreeBSD Message-ID: <20081230202321.GE36749@gizmo.acns.msu.edu> References: <494BE22A.3060301@optiksecurite.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <494BE22A.3060301@optiksecurite.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org, Tom Worster Subject: Re: SOLVED: Simple swap question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 20:29:46 -0000 On Fri, Dec 19, 2008 at 01:04:26PM -0500, FreeBSD wrote: > Tom Worster a écrit : > >On 12/19/08 10:37 AM, "FreeBSD" wrote: > > > > > >>Because this server is monitored by Nagios and it emails me every hour a > >>warning because the swap is not 100% free (I know it's pretty extreme, > >>but I want to know if the system is swapping). > >> > > > >if a swap space is available and swapping not turned off, it seems > >reasonable to expect the OS to use it as it sees fit. > > > >rather than trying to tinker with the kernel's swapping policy on the fly > >every time you get a warning, perhaps think about either telling nagios not > >to worry about it or don't use swapping. i'd go with the former. but you > >say > >you want to ensure that swap doesn't get used -- so maybe get rid of the > >swap slice? > > > This server is very lightly used, so most of the time if the swap is > getting used it shows that something is going wrong. This simply is not true. It may once have correlated with some problem, but the fact that swap is used does not indicate any problem. It indicates that the system is working properly. > This warning > already proved usefull once, so I don't think I'm going to change it. I > don't want to mess with the kernel actions, but there was no reason to > keep this in swap. I understand that the kernel can't know that, that's > why I wanted to know the way to "reset" the swap. There is always a lot > of free or inactive RAM and, in normal condition, the swap should not be > used. It's been like that for months, so I think it's a good idea to be > notified if the swap is used. Really, before you go making that choice, you should study the ins and outs of how swap is used. You will find that some amount of use, even in a lightly used server, is desirable under almost all circumstances. ////jerry > > Martin > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 20:29:58 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3344106572B for ; Tue, 30 Dec 2008 20:29:58 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id 556A18FC0C for ; Tue, 30 Dec 2008 20:29:58 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from smtp5.yandex.ru (smtp5.yandex.ru [77.88.32.24]) by forwards4.yandex.ru (Yandex) with ESMTP id 4664419302D for ; Tue, 30 Dec 2008 23:29:57 +0300 (MSK) Received: from 221-11-113-92.pool.ukrtel.net ([92.113.11.221]:44811 "EHLO HOMEUSER" smtp-auth: "kes-kes" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S6144112AbYL3U3u (ORCPT ); Tue, 30 Dec 2008 23:29:50 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp5 X-Yandex-TimeMark: 1230668990 X-BornDate: 1149541200 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 3 X-Comment: RFC 2476 MSA function at smtp5.yandex.ru logged sender identity as: kes-kes Date: Tue, 30 Dec 2008 22:29:50 +0200 From: KES X-Mailer: The Bat! (v4.0.24) Professional Organization: SaftTen X-Priority: 3 (Normal) Message-ID: <213016870.20081230222950@yandex.ru> To: KES In-Reply-To: <1691697011.20081230214740@yandex.ru> References: <1691697011.20081230214740@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: questions@freebsd.org Subject: Re: Performance loss with dynamic IPFW rules X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: KES List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 20:29:58 -0000 Çäðàâñòâóéòå, KES. Âû ïèñàëè 30 äåêàáðÿ 2008 ã., 21:47:40: K> Çäðàâñòâóéòå, Questions. K> 1 allow all from any to any via rl0 K> 2 allow all from any to any via rl1 K> 109 skipto 110 tcp from any to any 80 in recv $iface #split only http trafic K> 109 skipto 200 all from any to any #do not split all other trafic K> 110 check-state K> 111 prob 0.5 skipto 131 in recv rl2 K> 121 skipto 122 keep-state in recv rl2 K> 123 setfib 0 proto all in recv rl2 K> 125 skipto 150 proto all in recv rl2 K> 131 skipto 132 keep-state in recv rl2 K> 133 setfib 1 proto all in recv rl2 K> 135 skipto 150 proto all in recv rl2 K> I am connected on rl1. K> INET is rl0, rl1 each 4Mbit/s K> When I open many connections I get performance loss: K> 1) Web pages are not opened (it seems flow at start goes through rl0 K> and then goes rl1. EXPECTED: it flows only through one channel until K> closed) K> 2) I get about 2Mbit/s while downloading something K> When I not open many flows I get 8Mbit/s while serfing K> What is problem? Also another interesting behaviour. Packets with FIB 1 are outgoing through rl0 interface, but must out go via rl1. Why? -- Ñ óâàæåíèåì, KES mailto:kes-kes@yandex.ru From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 20:51:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B8E41065673 for ; Tue, 30 Dec 2008 20:51:36 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (aristotle.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id CA34C8FC23 for ; Tue, 30 Dec 2008 20:51:35 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBUKq6WT097485; Tue, 30 Dec 2008 12:52:06 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Tue, 30 Dec 2008 12:51:31 -0800 (PST) Date: Tue, 30 Dec 2008 12:51:31 -0800 From: Gary Kline To: Roland Smith Message-ID: <20081230205131.GA34211@thought.org> References: <20081230193111.GA32641@thought.org> <20081230201623.GB65659@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081230201623.GB65659@slackbox.xs4all.nl> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-2.4 required=3.6 tests=ALL_TRUSTED,BAYES_00, URIBL_BLACK autolearn=no version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: FreeBSD Mailing List Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 20:51:37 -0000 On Tue, Dec 30, 2008 at 09:16:23PM +0100, Roland Smith wrote: > On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: > > The problem is that there are many, _many_ embedded > > "" lines, _not_ the other Href links. > > > > Which would be best to use, given that a backup is critical? > > sed or perl? > > IMHO, perl with the -i option to do in-place editing with backups. You > could also use the -p option to loop over files. See perlrun(1). > > Roland All right, then is this the right syntax. In other words, do I need the double quotes to match the "http:" string? perl -pi.bak -e 'print unless "/m/http:/" || eof; close ARGV if eof' * gary > -- > R.F.Smith http://www.xs4all.nl/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 21:04:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1020D106566B for ; Tue, 30 Dec 2008 21:04:03 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id BE2098FC22 for ; Tue, 30 Dec 2008 21:04:02 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id F0173B854; Tue, 30 Dec 2008 22:04:01 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 44476-05; Tue, 30 Dec 2008 22:03:52 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Tue, 30 Dec 2008 22:03:52 +0100 (CET) Message-ID: <495A8D31.8060406@dugas-family.org> Date: Tue, 30 Dec 2008 22:05:53 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: vince@unsane.co.uk References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> In-Reply-To: <20081229230115.F68805@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: freebsd-questions@freebsd.org Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 21:04:03 -0000 Vince wrote: >> Trying to change mtu, but don't look easy, where can i find the >> possible range for ports ? > MTU can be a pain, check what your switch supports, and the manpage for > your network driver should say what MTU the nic supports. Thank you for the method ! It seems that em and re are not behaving like they should : re(4) says : "The 8169, 8169S and 8110S also support jumbo frames, which can be configured via the interface MTU setting. The MTU is limited to 7422, since the chip cannot transmit larger frames. " But : nfsserver# ifconfig re0 -mtu 7422 ifconfig: -mtu: bad value nfsserver# ifconfig re0 -mtu 7421 ifconfig: -mtu: bad value It should be a Realtek RTL 8111c but i don't know where to find the relationship to what pciconf -l gives me : re0@pci0:2:0:0: class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x02 hdr=0x00 em(4) says : "The maximum MTU size for Jumbo Frames is 16114." But : client9# ifconfig em1 -mtu 8192 ifconfig: -mtu: bad value with : Dec 30 16:02:36 client9 kernel: em1: port 0x7f00-0x7f1f mem 0xfd4e0000-0xfd4fffff irq 17 at device 0.0 on pci7 client1# ifconfig em0 -mtu 8192 ifconfig: -mtu: bad value with : Dec 30 18:10:38 client1 kernel: em0: port 0xfe00-0xfe1f mem 0xf dfc0000-0xfdfdffff,0xfdffe000-0xfdffefff irq 20 at device 25.0 on pci0 Now i understand better "MTU can be a pain" ;-) Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 21:07:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBB13106564A for ; Tue, 30 Dec 2008 21:07:22 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.freebsd.org (Postfix) with ESMTP id 634348FC19 for ; Tue, 30 Dec 2008 21:07:22 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 15791 invoked by uid 0); 30 Dec 2008 21:07:20 -0000 Received: from unknown (HELO Grumpy.DynDNS.org) (75.76.211.79) by smtp3.knology.net with SMTP; 30 Dec 2008 21:07:20 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id 8C3AA28422; Tue, 30 Dec 2008 15:07:20 -0600 (CST) Date: Tue, 30 Dec 2008 15:07:20 -0600 From: David Kelly To: Gary Kline Message-ID: <20081230210720.GA65861@Grumpy.DynDNS.org> References: <20081230193111.GA32641@thought.org> <20081230201623.GB65659@slackbox.xs4all.nl> <20081230205131.GA34211@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081230205131.GA34211@thought.org> User-Agent: Mutt/1.4.2.3i Cc: Roland Smith , FreeBSD Mailing List Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD-Questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 21:07:23 -0000 On Tue, Dec 30, 2008 at 12:51:31PM -0800, Gary Kline wrote: > On Tue, Dec 30, 2008 at 09:16:23PM +0100, Roland Smith wrote: > > On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: > > > The problem is that there are many, _many_ embedded > > > "" lines, _not_ the other Href links. > > > > > > Which would be best to use, given that a backup is critical? > > > sed or perl? > > > > IMHO, perl with the -i option to do in-place editing with backups. You > > could also use the -p option to loop over files. See perlrun(1). > > > > Roland > > > All right, then is this the right syntax. In other words, do > I need the double quotes to match the "http:" string? > > perl -pi.bak -e 'print unless "/m/http:/" || eof; close ARGV if eof' * In years past I used fetch(1) to download the day's page from a comic strip site, awk to extract the URL of the day's comic strip, and fetch again to put a copy of the comic strip in my archive. This application sounds similar. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad. From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 21:07:50 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FE9E106566B for ; Tue, 30 Dec 2008 21:07:50 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id A2A6D8FC18 for ; Tue, 30 Dec 2008 21:07:49 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from smtp15.yandex.ru (smtp15.yandex.ru [77.88.32.85]) by forwards4.yandex.ru (Yandex) with ESMTP id 29F774C529B for ; Wed, 31 Dec 2008 00:07:48 +0300 (MSK) Received: from 62-184-124-91.pool.ukrtel.net ([91.124.184.62]:14348 "EHLO HOMEUSER" smtp-auth: "kes-kes" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4866206AbYL3VHr (ORCPT ); Wed, 31 Dec 2008 00:07:47 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp15 X-Yandex-TimeMark: 1230671267 X-BornDate: 1149541200 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 5 X-Comment: RFC 2476 MSA function at smtp15.yandex.ru logged sender identity as: kes-kes Date: Tue, 30 Dec 2008 23:07:37 +0200 From: KES X-Mailer: The Bat! (v4.0.24) Professional Organization: SaftTen X-Priority: 3 (Normal) Message-ID: <288006721.20081230230737@yandex.ru> To: KES In-Reply-To: <213016870.20081230222950@yandex.ru> References: <1691697011.20081230214740@yandex.ru> <213016870.20081230222950@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: questions@freebsd.org Subject: Re[2]: BUG! Performance loss with dynamic IPFW rules X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: KES List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 21:07:50 -0000 Çäðàâñòâóéòå, KES. Âû ïèñàëè 30 äåêàáðÿ 2008 ã., 22:29:50: K> Çäðàâñòâóéòå, KES. K> Âû ïèñàëè 30 äåêàáðÿ 2008 ã., 21:47:40: K>> Çäðàâñòâóéòå, Questions. K>> 1 allow all from any to any via rl0 K>> 2 allow all from any to any via rl1 K>> 109 skipto 110 tcp from any to any 80 in recv $iface #split only http trafic K>> 109 skipto 200 all from any to any #do not split all other trafic K>> 110 check-state K>> 111 prob 0.5 skipto 131 in recv rl2 K>> 121 skipto 122 keep-state in recv rl2 K>> 123 setfib 0 proto all in recv rl2 K>> 125 skipto 150 proto all in recv rl2 K>> 131 skipto 132 keep-state in recv rl2 K>> 133 setfib 1 proto all in recv rl2 K>> 135 skipto 150 proto all in recv rl2 K>> I am connected on rl1. K>> INET is rl0, rl1 each 4Mbit/s K>> When I open many connections I get performance loss: K>> 1) Web pages are not opened (it seems flow at start goes through rl0 K>> and then goes rl1. EXPECTED: it flows only through one channel until K>> closed) K>> 2) I get about 2Mbit/s while downloading something K>> When I not open many flows I get 8Mbit/s while serfing K>> What is problem? K> Also another interesting behaviour. K> Packets with FIB 1 are outgoing through rl0 interface, but must out go K> via rl1. Why? I resolve problem!!! I have mpd5 on both interfaces rl0 and rl1. It starts PPPoE connection with my ISP. mpd5 has FIB 0. and has option to NAT packets. When I send packet from rl2 to INET it is: tcpdump -n -i rl1 22:51:40.917666 IP 192.168.9.80.3113 > 205.188.8.85.5190: P 1:27(26) ack 1461 win 65535 I add counters for 192.168.9.80 to ipfw 05500 711 54217 count ip from any to any out xmit rl1 05510 711 54217 count tag 1 ip from 192.168.9.80 to any out xmit rl1 05515 0 0 deny log ip from any to any out xmit rl1 not tagged 1 05890 711 54217 allow untag 1 ip from any to any out xmit rl1 tagged 1 05899 0 0 deny log ip from any to any via rl1 05899 0 0 skipto 65000 ip from any to any Then packet is NATed by mpd (it runned with FIB 0) and out via rl0! instead of rl1 =( I think packet changes its FIB after NATing by process with different FIB than packet itself =( look tcpdump. kes# ifconfig rl0 rl0: flags=88d1 metric 0 mtu 1492 inet 92.113.11.221 --> 195.5.5.202 netmask 0xffffffff kes# ifconfig rl1 rl1: flags=88d1 metric 0 mtu 1492 inet 91.124.184.62 --> 195.5.5.209 netmask 0xffffffff tcpdump -n -i rl0 23:00:39.013565 IP 91.124.184.62 > 68.147.56.238: ICMP 91.124.184.62 udp port 59344 unreachable, length 36 23:00:39.043593 IP 91.124.184.62 > 69.251.246.7: ICMP 91.124.184.62 udp port 59344 unreachable, length 36 23:00:39.675315 IP 91.124.184.62 > 71.30.187.17: ICMP 91.124.184.62 udp port 10758 unreachable, length 36 23:00:39.818931 IP 91.124.184.62 > 117.11.167.163: ICMP 91.124.184.62 udp port 10758 unreachable, length 36 23:00:41.865974 IP 91.124.184.62 > 67.177.215.23: ICMP 91.124.184.62 udp port 10758 unreachable, length 36 23:00:43.289822 IP 91.124.184.62 > 88.84.178.189: ICMP 91.124.184.62 udp port 10758 unreachable, length 36 tcpdump -n -i rl1 23:00:39.013133 IP 68.147.56.238.23877 > 91.124.184.62.59344: UDP, length 103 23:00:39.042899 IP 69.251.246.7.46602 > 91.124.184.62.59344: UDP, length 103 23:00:39.675293 IP 71.30.187.17.61710 > 91.124.184.62.10758: UDP, length 103 23:00:39.818910 IP 117.11.167.163.12312 > 91.124.184.62.10758: UDP, length 98 23:00:41.865952 IP 67.177.215.23.24147 > 91.124.184.62.10758: UDP, length 98 23:00:43.289801 IP 88.84.178.189.60799 > 91.124.184.62.10758: UDP, length 101 23:00:43.419409 IP 93.80.208.87.61523 > 91.124.184.62.10758: S 3219801041:3219801041(0) win 8192 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8AB910656BA for ; Tue, 30 Dec 2008 21:09:03 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 253AD8FC14 for ; Tue, 30 Dec 2008 21:09:02 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl119-205.kln.forthnet.gr [77.49.238.205]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mBUL765D008172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 30 Dec 2008 23:07:13 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mBUL76Hj051412; Tue, 30 Dec 2008 23:07:06 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mBUL755K051411; Tue, 30 Dec 2008 23:07:05 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Gary Kline References: <20081230193111.GA32641@thought.org> <20081230201623.GB65659@slackbox.xs4all.nl> <20081230205131.GA34211@thought.org> Date: Tue, 30 Dec 2008 23:07:05 +0200 In-Reply-To: <20081230205131.GA34211@thought.org> (Gary Kline's message of "Tue, 30 Dec 2008 12:51:31 -0800") Message-ID: <87abad4bk6.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: mBUL765D008172 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.869, required 5, ALL_TRUSTED -1.80, AWL 0.53, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Roland Smith , FreeBSD Mailing List Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 21:09:04 -0000 On Tue, 30 Dec 2008 12:51:31 -0800, Gary Kline wrote: > All right, then is this the right syntax. In other words, do > I need the double quotes to match the "http:" string? > > perl -pi.bak -e 'print unless "/m/http:/" || eof; close ARGV if eof' * Close, but not exactly right... You have to keep in mind that the argument to -e is a Perl expression, i.e. something you might type as part of a script that looks like this: #!/usr/bin/perl while () { YOUR-EXPRESSION-HERE; print $_; } One of the ways to print only the lines that do *not* match the "http://" pattern is: print unless (m/http:\/\//); Note how the '/' characters that are part of the m/.../ expression need extra backslashes to quote them. You can avoid this by using another character for the m/.../ expression delimiter, like: print unless (m!http://!); But you are not still done. The while loop above already contains a print statement _outside_ of your expression. So if you add this to a perl -p -e '...' invocation you are asking Perl to run this code: #!/usr/bin/perl while () { print unless (m!http://!); print $_; } Each line of input will be printed _anyway_, but you will be duplicating all the non-http lines. Use -n instead of -p to fix that: perl -n -e 'print unless (m!http://!)' A tiny detail that may be useful is that "http://" is not required to be lowercase in URIs. It may be worth adding the 'i' modifier after the second '!' of the URI matching expression: perl -n -e 'print unless (m!http://!i)' Once you have that sort-of-working, it may be worth investigating more elaborate URI matching regexps, because this will match far too much (including, for instance, all the non-URI lines of this email that contain the regexp example itself). From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 21:16:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C0CF1065672 for ; Tue, 30 Dec 2008 21:16:36 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.freebsd.org (Postfix) with ESMTP id E1A458FC13 for ; Tue, 30 Dec 2008 21:16:35 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from marge.bs.l (e180013165.adsl.alicedsl.de [85.180.13.165]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1LHlx414JD-0000Zt; Tue, 30 Dec 2008 22:16:34 +0100 Received: from bsch by marge.bs.l with local (Exim 4.69) (envelope-from ) id 1LHlx3-0006RA-OU; Tue, 30 Dec 2008 22:16:33 +0100 Date: Tue, 30 Dec 2008 22:16:33 +0100 From: Bertram Scharpf To: Gary Kline , freebsd-questions@freebsd.org Message-ID: <20081230211633.GA24525@marge.bs.l> Mail-Followup-To: Gary Kline , freebsd-questions@freebsd.org References: <20081230193111.GA32641@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081230193111.GA32641@thought.org> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: Bertram Scharpf X-Provags-ID: V01U2FsdGVkX1+yHhI/yzfLe/Xc4JO+xwl3g8m1jkPtulheZy8 0I9xtu3bakI0KnKigNc/5qoZMwVv837peoG2PhaEMOhDPwJt/C WZMIMhJfAmduGnKZiJXelpi1IgLBGy5vsAT8d9Qijk= Cc: Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 21:16:36 -0000 Hi Gary, Am Dienstag, 30. Dez 2008, 11:31:14 -0800 schrieb Gary Kline: > The problem is that there are many, _many_ embedded > "" lines, _not_ the other Href links. > > sed or perl? Ruby. Untested: $ ruby -i.bak -pe 'next if ~/href="([^"]*)"/i and $1 == "http://example.com"' somefile.html Probably you want to do something more sophisticated. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 21:16:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 199BD10656CF for ; Tue, 30 Dec 2008 21:16:46 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by mx1.freebsd.org (Postfix) with ESMTP id 894C48FC1B for ; Tue, 30 Dec 2008 21:16:45 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id mBULGgtZ056429; Tue, 30 Dec 2008 22:16:43 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 7259CB84E; Tue, 30 Dec 2008 22:16:42 +0100 (CET) Date: Tue, 30 Dec 2008 22:16:42 +0100 From: Roland Smith To: Gary Kline Message-ID: <20081230211642.GA67769@slackbox.xs4all.nl> References: <20081230193111.GA32641@thought.org> <20081230201623.GB65659@slackbox.xs4all.nl> <20081230205131.GA34211@thought.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <20081230205131.GA34211@thought.org> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Mailing List Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 21:16:46 -0000 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 30, 2008 at 12:51:31PM -0800, Gary Kline wrote: > On Tue, Dec 30, 2008 at 09:16:23PM +0100, Roland Smith wrote: > > On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: > > > The problem is that there are many, _many_ embedded=20 > > > " Site in my hundreds, or > > > thousands, or files. I only want to delete the > > > "http://" lines, _not_ the other Href links. > > >=20 > > > Which would be best to use, given that a backup is critical? > > > sed or perl? > >=20 > > IMHO, perl with the -i option to do in-place editing with backups. You > > could also use the -p option to loop over files. See perlrun(1). > >=20 > > Roland >=20 >=20 > All right, then is this the right syntax. In other words, do > I need the double quotes to match the "http:" string? >=20 > perl -pi.bak -e 'print unless "/m/http:/" || eof; close ARGV if eof' * You don't need the quotes (if the command doesn't contain anything that your shell would eat/misuse/replace). See perlop(1). =20 This will disregard the entire line with a URI in it. Is this really what you want? Copy some of the files you want to scrub to a separate directory, and run tests to see if your script works: mkdir mytest; cp foo mytest/; cd mytest; perl -pi.bak ../scrub.pl foo diff -u foo foo.bak=20 Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklaj7oACgkQEnfvsMMhpyUZbACePuqcE/gh+OafRN4PYnoF11H1 o+0AoJY+O/fkUAUIy06oxpURouVuZSux =G1Sm -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM-- From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 21:36:02 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DC1A106564A for ; Tue, 30 Dec 2008 21:36:02 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id AA8148FC08 for ; Tue, 30 Dec 2008 21:36:01 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id mBULZqTH034840; Tue, 30 Dec 2008 21:35:53 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk mBULZqTH034840 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1230672953; bh=yKw1BjGdigLkTP IoUidjsGg5x26UGHXwbCzJ/tNlngU=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<495A9432.5070401@infracaninophile.co.uk>|Date:=20Tue,=2 030=20Dec=202008=2021:35:46=20+0000|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.18=20(X11/20081125)|MIME-Version:=201 .0|To:=20Bernard=20Dugas=20|CC:=20vince@u nsane.co.uk,=20freebsd-questions@freebsd.org|Subject:=20Re:=20Optim ising=20NFS=20for=20system=20files|References:=20<20081216094719.ED CEE1065675@hub.freebsd.org>=09<495930E4.1030501@dugas-family.org>=0 9<20081229230115.F68805@wojtek.tensor.gdynia.pl>=20<495A8D31.806040 6@dugas-family.org>|In-Reply-To:=20<495A8D31.8060406@dugas-family.o rg>|X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/signed=3 B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pgp-sign ature"=3B=0D=0A=20boundary=3D"------------enig0ADC47AE3CDE058AD70C9 2D4"; b=P5YPNoehxqQ7IEbYvLPrpev9Rp9lg6ZnxzAJnk9Akh9HVtH0IYUT88TlyFt njur/E/4ZE4GeNL9ve+LJqiRhi4d2I4hA+AeJCmR34M7R7ld5dgurvbBObL2nlSe61R y39aOLTiHNc2pX/zmvCO6HLaZcR+NpYJH0LxtpK4FFgB8= Message-ID: <495A9432.5070401@infracaninophile.co.uk> Date: Tue, 30 Dec 2008 21:35:46 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Bernard Dugas References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <495A8D31.8060406@dugas-family.org> In-Reply-To: <495A8D31.8060406@dugas-family.org> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig0ADC47AE3CDE058AD70C92D4" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Tue, 30 Dec 2008 21:35:53 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/8814/Tue Dec 30 08:43:21 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org, vince@unsane.co.uk Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 21:36:02 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0ADC47AE3CDE058AD70C92D4 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Bernard Dugas wrote: > But : > nfsserver# ifconfig re0 -mtu 7422 > ifconfig: -mtu: bad value > nfsserver# ifconfig re0 -mtu 7421 > ifconfig: -mtu: bad value Syntax error on the ifconfig command line: % ifconfig de0=20 de0: flags=3D8843 metric 0 mtu 15= 00 [...] % sudo ifconfig de0 mtu 1460=20 % ifconfig de0 de0: flags=3D8843 metric 0 mtu 14= 60 [...] % sudo ifconfig de0 mtu 1500 % sudo ifconfig de0 -mtu 1460 ifconfig: -mtu: bad value It's 'mtu NNNN' not '-mtu NNNN' Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig0ADC47AE3CDE058AD70C92D4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAklalDgACgkQ8Mjk52CukIx3dgCeNHUyuG9asePilTPXEky4+MEb DtoAnAoWAQLKu1g3hDlTrr9+mKFYgaiD =b6h0 -----END PGP SIGNATURE----- --------------enig0ADC47AE3CDE058AD70C92D4-- From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 21:39:55 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECD4D1065670 for ; Tue, 30 Dec 2008 21:39:55 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id A2E868FC18 for ; Tue, 30 Dec 2008 21:39:50 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 38F7BB82F; Tue, 30 Dec 2008 22:39:49 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 44945-03; Tue, 30 Dec 2008 22:39:40 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Tue, 30 Dec 2008 22:39:40 +0100 (CET) Message-ID: <495A9595.6080201@dugas-family.org> Date: Tue, 30 Dec 2008 22:41:41 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Wojciech Puchar References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> <20081230201351.L12391@wojtek.tensor.gdynia.pl> In-Reply-To: <20081230201351.L12391@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: freebsd-questions@freebsd.org, Vincent Hoffman Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 21:39:56 -0000 Wojciech Puchar wrote: >>> This is a Gbps network with only 1 switch between nfs server and >>> client, with less than 0.2ms ping. So bandwidth should not be a > > it should work with near-wire speed on 100Mbit clients. Server and clients are 1Gbps. But i have a 4 factor of performance for reading only ... nfsserver# time tar -cf - clientusr-amd64 > /dev/null 5.001u 12.147s 1:23.92 20.4% 69+1369k 163345+0io 0pf+0w client9# time tar -cf - /usr > /dev/null tar: Removing leading '/' from member names 3.985u 19.779s 4:32.47 8.7% 74+1457k 0+0io 0pf+0w Note : clientusr-amd64 is around 1.3GB and is the same directory exported to client9 /usr with nfs. I have tried on 7.1-RC1 and 7.1-RC2, with amd64 architecture. CPU don't seem to be the limiting factor, more than 80% idle on server, they are either Core2duo on nfsserver : Dec 23 04:52:18 nfsserver kernel: CPU: Intel(R) Celeron(R) CPU E1200 @ 1.60GHz (1600.01-MHz K8-class CPU) Dec 23 04:52:18 nfsserver kernel: Origin = "GenuineIntel" Id = 0x6fd Stepping = 13 or on client9 : /var/log/messages.3:Dec 29 12:21:20 client9 kernel: CPU: Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz (2200.01-MHz K8-class CPU) If anybody can help to look at right places... ? How may i divide the problem ? Or is my simple test wrong ? I use a tar directed to /dev/null to avoid any writing. Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 22:07:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89010106564A for ; Tue, 30 Dec 2008 22:07:20 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id 3D8668FC0C for ; Tue, 30 Dec 2008 22:07:20 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBUM7lUG097925; Tue, 30 Dec 2008 14:07:47 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Tue, 30 Dec 2008 14:07:12 -0800 (PST) Date: Tue, 30 Dec 2008 14:07:12 -0800 From: Gary Kline To: Giorgos Keramidas Message-ID: <20081230220711.GA47453@thought.org> References: <20081230193111.GA32641@thought.org> <20081230201623.GB65659@slackbox.xs4all.nl> <20081230205131.GA34211@thought.org> <87abad4bk6.fsf@kobe.laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87abad4bk6.fsf@kobe.laptop> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: Roland Smith , FreeBSD Mailing List Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 22:07:21 -0000 On Tue, Dec 30, 2008 at 11:07:05PM +0200, Giorgos Keramidas wrote: > On Tue, 30 Dec 2008 12:51:31 -0800, Gary Kline wrote: > > All right, then is this the right syntax. In other words, do > > I need the double quotes to match the "http:" string? > > > > perl -pi.bak -e 'print unless "/m/http:/" || eof; close ARGV if eof' * > > Close, but not exactly right... > > You have to keep in mind that the argument to -e is a Perl expression, > i.e. something you might type as part of a script that looks like this: > > #!/usr/bin/perl > > while () { > YOUR-EXPRESSION-HERE; > print $_; > } > > One of the ways to print only the lines that do *not* match the > "http://" pattern is: > > print unless (m/http:\/\//); > > Note how the '/' characters that are part of the m/.../ expression need > extra backslashes to quote them. You can avoid this by using another > character for the m/.../ expression delimiter, like: i've used '%' rather than bangs because i wasn't sure if the bang might make the shell have a fit; great to know it won't:_) [i try to avoid escapes when i can... .] > > print unless (m!http://!); > > But you are not still done. The while loop above already contains a > print statement _outside_ of your expression. So if you add this to a > perl -p -e '...' invocation you are asking Perl to run this code: > > #!/usr/bin/perl > > while () { > print unless (m!http://!); > print $_; > } > > Each line of input will be printed _anyway_, but you will be duplicating > all the non-http lines. Use -n instead of -p to fix that: > > perl -n -e 'print unless (m!http://!)' > ahhhm, that's what happened last night. i would up with dup lines (2) pointing me to different links. had no clue. fortunately i had the .bak! > A tiny detail that may be useful is that "http://" is not required to be > lowercase in URIs. It may be worth adding the 'i' modifier after the > second '!' of the URI matching expression: > > perl -n -e 'print unless (m!http://!i)' > > Once you have that sort-of-working, it may be worth investigating more > elaborate URI matching regexps, because this will match far too much > (including, for instance, all the non-URI lines of this email that > contain the regexp example itself). i shall check try a grep -ri http * >/usr/tmp/g.out and see what turns up. thanks much, gary > -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 22:16:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E872F1065674 for ; Tue, 30 Dec 2008 22:16:37 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id A19FA8FC16 for ; Tue, 30 Dec 2008 22:16:37 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 5F748B849; Tue, 30 Dec 2008 23:16:36 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 45383-01; Tue, 30 Dec 2008 23:16:27 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Tue, 30 Dec 2008 23:16:27 +0100 (CET) Message-ID: <495A9E34.6080009@dugas-family.org> Date: Tue, 30 Dec 2008 23:18:28 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Matthew Seaman References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <495A8D31.8060406@dugas-family.org> <495A9432.5070401@infracaninophile.co.uk> In-Reply-To: <495A9432.5070401@infracaninophile.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: freebsd-questions@freebsd.org, vince@unsane.co.uk Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 22:16:38 -0000 Matthew Seaman wrote: > It's 'mtu NNNN' not '-mtu NNNN' I'm confused, thanks so much ! There was no option without - in my old unix time ;-) Thanks to you, it seems that my max mtu is 9216 on em : client9# ifconfig em1 mtu 9216 client9# ifconfig em1 mtu 9217 ifconfig: ioctl (set mtu): Invalid argument Max mtu is changing on re : nfsserver# ifconfig re0 mtu 1504 nfsserver# ifconfig re0 mtu 1505 ifconfig: ioctl (set mtu): Invalid argument But another re accept 7422 : client6# ifconfig re0 mtu 7422 client6# ifconfig re0 mtu 7423 ifconfig: ioctl (set mtu): Invalid argument It seems that only testing can give the limit, this is not documented. Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 22:18:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91DC6106566C for ; Tue, 30 Dec 2008 22:18:53 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (aristotle.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id 2F8A38FC0C for ; Tue, 30 Dec 2008 22:18:53 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBUMJHkb097983; Tue, 30 Dec 2008 14:19:17 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Tue, 30 Dec 2008 14:18:41 -0800 (PST) Date: Tue, 30 Dec 2008 14:18:41 -0800 From: Gary Kline To: Roland Smith Message-ID: <20081230221841.GA46220@thought.org> References: <20081230193111.GA32641@thought.org> <20081230201623.GB65659@slackbox.xs4all.nl> <20081230205131.GA34211@thought.org> <20081230211642.GA67769@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081230211642.GA67769@slackbox.xs4all.nl> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-2.4 required=3.6 tests=ALL_TRUSTED,BAYES_00, URIBL_BLACK autolearn=no version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: FreeBSD Mailing List Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 22:18:55 -0000 On Tue, Dec 30, 2008 at 10:16:42PM +0100, Roland Smith wrote: > On Tue, Dec 30, 2008 at 12:51:31PM -0800, Gary Kline wrote: > > On Tue, Dec 30, 2008 at 09:16:23PM +0100, Roland Smith wrote: > > > On Tue, Dec 30, 2008 at 11:31:14AM -0800, Gary Kline wrote: > > > > The problem is that there are many, _many_ embedded > > > > "" lines, _not_ the other Href links. > > > > > > > > Which would be best to use, given that a backup is critical? > > > > sed or perl? > > > > > > IMHO, perl with the -i option to do in-place editing with backups. You > > > could also use the -p option to loop over files. See perlrun(1). > > > > > > Roland > > > > > > All right, then is this the right syntax. In other words, do > > I need the double quotes to match the "http:" string? > > > > perl -pi.bak -e 'print unless "/m/http:/" || eof; close ARGV if eof' * > > You don't need the quotes (if the command doesn't contain anything that > your shell would eat/misuse/replace). See perlop(1). i have, thanks; getting more clues... . > > This will disregard the entire line with a URI in it. Is this really > what you want? exactly; anything that has http://WHATEVER i do not want to copy. the slight gotcha is if the LIne // tag is on the folowing line. but in most cases the whole anchor, close-anchor of these junk lines is on one line. ...i know a closing tag does nothing; it's just sloppy markup. > > Copy some of the files you want to scrub to a separate directory, and > run tests to see if your script works: > > mkdir mytest; cp foo mytest/; cd mytest; perl -pi.bak ../scrub.pl foo > diff -u foo foo.bak thanks much to you and giorgos. i thought about doing this by-hand, but only for about 0.01s! gary > > Roland > -- > R.F.Smith http://www.xs4all.nl/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 23:07:59 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7516310656DC for ; Tue, 30 Dec 2008 23:07:59 +0000 (UTC) (envelope-from peo@intersonic.se) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.8.98]) by mx1.freebsd.org (Postfix) with ESMTP id 3BFA38FC13 for ; Tue, 30 Dec 2008 23:07:59 +0000 (UTC) (envelope-from peo@intersonic.se) X-Virus-Scanned: amavisd-new at BSDLabs AB Message-ID: <495AA573.4020303@intersonic.se> Date: Tue, 30 Dec 2008 23:49:23 +0100 From: Per olof Ljungmark Organization: Intersonic AB User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: iwi on 7-STABLE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 23:07:59 -0000 Hi all, Here I am away with the family visiting friends and I REALLY need to get the iwi if up and running. It's a recently updated system (7.1RC2). Read the man pages, tried different variations on legal.intel_iwi.license_ack=1, iwi_load, firmware_load etc. in /boot/loader.conf but I cannot get a connection to the router. It used to work on this box with my basic config, a Thinkpad T42, and it still does with XP. The interface is associated to the access point ok. Anyone who can hint me on how to debug this? Would sysctl debug.iwi.0=1 help? Of course, ANY information is of interest. Does iwi have a problem with certain routers? Sorry, no config files, I'm without connectivity when booting FreeBSD... Any help appriciated! Thanks, -- per From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 23:26:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC85D106564A for ; Tue, 30 Dec 2008 23:26:37 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 297D18FC14 for ; Tue, 30 Dec 2008 23:26:36 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBUNQQWZ045575; Wed, 31 Dec 2008 00:26:26 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBUNQOLu045572; Wed, 31 Dec 2008 00:26:25 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Wed, 31 Dec 2008 00:26:24 +0100 (CET) From: Wojciech Puchar To: Bernard Dugas In-Reply-To: <495A9595.6080201@dugas-family.org> Message-ID: <20081231002557.D45571@wojtek.tensor.gdynia.pl> References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> <20081230201351.L12391@wojtek.tensor.gdynia.pl> <495A9595.6080201@dugas-family.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org, Vincent Hoffman Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 23:26:38 -0000 > nfsserver# time tar -cf - clientusr-amd64 > /dev/null > 5.001u 12.147s 1:23.92 20.4% 69+1369k 163345+0io 0pf+0w > > client9# time tar -cf - /usr > /dev/null > tar: Removing leading '/' from member names > 3.985u 19.779s 4:32.47 8.7% 74+1457k 0+0io 0pf+0w > > Note : clientusr-amd64 is around 1.3GB and is the same directory exported to > client9 /usr with nfs. > it's FAST. what's wrong? From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 01:06:59 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 625E21065674 for ; Wed, 31 Dec 2008 01:06:59 +0000 (UTC) (envelope-from peo@intersonic.se) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.8.98]) by mx1.freebsd.org (Postfix) with ESMTP id 2386F8FC17 for ; Wed, 31 Dec 2008 01:06:58 +0000 (UTC) (envelope-from peo@intersonic.se) X-Virus-Scanned: amavisd-new at BSDLabs AB Message-ID: <495AC5AF.5060408@intersonic.se> Date: Wed, 31 Dec 2008 02:06:55 +0100 From: Per olof Ljungmark Organization: Intersonic AB User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Peter Harrison References: <495AA573.4020303@intersonic.se> <20081230233350.GA4401@laptop.piggybox> In-Reply-To: <20081230233350.GA4401@laptop.piggybox> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: iwi on 7-STABLE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 01:06:59 -0000 Peter Harrison wrote: > Tuesday, 30 December 2008 at 23:49:23 +0100, Per olof Ljungmark said: > >> Hi all, >> >> Here I am away with the family visiting friends and I REALLY need >> to get the iwi if up and running. >> >> It's a recently updated system (7.1RC2). Read the man pages, tried >> different variations on legal.intel_iwi.license_ack=1, iwi_load, >> firmware_load etc. in /boot/loader.conf but I cannot get a >> connection to the router. >> >> It used to work on this box with my basic config, a Thinkpad T42, >> and it still does with XP. >> >> The interface is associated to the access point ok. >> >> Anyone who can hint me on how to debug this? Would sysctl >> debug.iwi.0=1 help? Of course, ANY information is of interest. Does >> iwi have a problem with certain routers? >> >> Sorry, no config files, I'm without connectivity when booting >> FreeBSD... >> >> Any help appriciated! > > I don't know whether iwi has issues with particular routers, however > I do have it working on 7-STABLE i386 without difficulty. > > Does it help to see the relevant bits from my config? > > /boot/loader.conf: > > if_iwi_load=YES wlan_load=YES firmware_load=YES iwi_bss_load=YES > iwi_ibss_load=YES iwi_monitor_load=YES legal.intel_iwi.license_ack=1 > > /etc/rc.conf: > > ifconfig_iwi0="inet 192.168.1.4 netmask 255.255.255.0 ssid > *********** bssid 00:14:bf:94:1e:75 channel 11 wepmode on wepkey > **************************** deftxkey 1" > > (yes, I know I shouldn't still be using WEP). > > Works without difficult connecting to a Linksys router. > > I did have some difficulty I seem to recall when I turned off SSID > broadcast on the router. I'd suggest trying with all the security > turned off if you haven't already to see if you can connect at all, > and then reintroduce the security measures later. Thanks for your reply. Your config is identical to mine. I think something fishy is going on here but don't know what it is - yet.. The router is a Netgear WNR854T. -- per From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 01:48:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDACF106564A for ; Wed, 31 Dec 2008 01:48:09 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id 788BC8FC17 for ; Wed, 31 Dec 2008 01:48:09 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mBV1mcDc099052 for ; Tue, 30 Dec 2008 17:48:38 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Tue, 30 Dec 2008 17:48:02 -0800 (PST) Date: Tue, 30 Dec 2008 17:48:02 -0800 From: Gary Kline To: freebsd-questions@freebsd.org Message-ID: <20081231014802.GB46220@thought.org> References: <20081230193111.GA32641@thought.org> <20081230211633.GA24525@marge.bs.l> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081230211633.GA24525@marge.bs.l> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-2.4 required=3.6 tests=ALL_TRUSTED,BAYES_00, URIBL_BLACK autolearn=no version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 01:48:10 -0000 On Tue, Dec 30, 2008 at 10:16:33PM +0100, Bertram Scharpf wrote: > Hi Gary, > > Am Dienstag, 30. Dez 2008, 11:31:14 -0800 schrieb Gary Kline: > > The problem is that there are many, _many_ embedded > > "" lines, _not_ the other Href links. > > > > sed or perl? > > Ruby. Untested: > > $ ruby -i.bak -pe 'next if ~/href="([^"]*)"/i and $1 == "http://example.com"' somefile.html > > Probably you want to do something more sophisticated. > > Bertram > Hi Bertram, Well, after about 45 minutes of mousing cut/paste/edit, plus editing scripts, i ain't there yet. if i use the perl -e 'print unless "/m/http:/" || eof; close ARGV if eof' *.htm no errors, but the new.htm is == new.htm.bak; in other words, it looks like a partial match on just "http" fails. Don't know why. i'm pretty sure the entire " xxx " would do it. roland, the dbl quote were necessary it seems. maybe i'll try parens. gary > > -- > Bertram Scharpf > Stuttgart, Deutschland/Germany > http://www.bertram-scharpf.de -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 02:10:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BE73106566C for ; Wed, 31 Dec 2008 02:10:17 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.234]) by mx1.freebsd.org (Postfix) with ESMTP id 579528FC16 for ; Wed, 31 Dec 2008 02:10:17 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so6724290rvf.43 for ; Tue, 30 Dec 2008 18:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=hMUDT0q5CWljsZU9ASdnTyyo7IyfEtdPft7ZaqC+zWs=; b=LuMOdt/ZSB3Cg8xQP57ER0ihb/vSwih8df/T6gfqbsHv3nbJCEErNVh/p8qwRJzkUt BTrJVg2KqvSZpiss/+/Yhbjb5G4bOUr+ny11uZmmmhBieLPrzxGl5VyZ9YGEywmzoPiu 5IX99HYH2vXsqKj3iv3eeanpjHzkTw1FAxPe8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=vyZ3FXxY9DSfbDwQzjBX5PufXTrcIxZStJKwkoPINojRQxCUQmTcjGdPwL/zVMHuo6 ZMXYNn7z5lfXD/6QvkfPiono9HQXFrKQDpMaHQAPyqT/AwF/0MZTAaJNl6nrwDSFlAAm sch19/fbl6tlfyjSyhNCAjA0o+EPvJqd2MAU4= Received: by 10.142.177.7 with SMTP id z7mr6350830wfe.132.1230688183522; Tue, 30 Dec 2008 17:49:43 -0800 (PST) Received: by 10.142.166.4 with HTTP; Tue, 30 Dec 2008 17:49:43 -0800 (PST) Message-ID: Date: Wed, 31 Dec 2008 02:49:43 +0100 From: usleepless@gmail.com To: "Michel Talon" In-Reply-To: <20081230110334.GA43765@lpthe.jussieu.fr> MIME-Version: 1.0 References: <20081230110334.GA43765@lpthe.jussieu.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 02:10:17 -0000 On 12/30/08, Michel Talon wrote: > > Bernard Dugas wrote: > > > So you din't think that if all files are already in RAM on server, i > > will save the drive access time ? > > > > Or do you think the NFS network access is so much slow that the disk > > access time is just marginal ? > > > > Do you think i should use something more efficient than NFS ? > > > The VM system in principle does a good job of keeping in memory files > which are frequently accessed, so you should not have to do anything > special, and moreover i don't think there exists something convenient > to force some files in memory (and this would be detrimental to the > globalthroughput of the server). > > As to NFS speed, you should experiment with NFS on TCP and run a large > number of nfsd on the server (see nfs_server_flags in rc.conf). For > example -n 6 or -n 8. Maybe also experiment with the readsize and > writesize. > Anyways, i don't think you can expect the same throughput > via NFS (say 10 MB/s, or more on Gig ethernet) as on a local disk > (40 MB/s or more). i disagree. i have recently installed a NAS by slapping FreeNAS on a relative old server ( P4 2.8Ghz ) and experimented with lots of stuff because i was disappointed with the througput. spoiler: 1st try 30MB/s, last try 82MB/s. hardware server: - intel server p4 3ghz, 1GB memory - onboard intel 1Gb fxp nic - 2 x barracuda 750GB disks - hp procurve 3500zl( ? ) - OS: Freebsd 6.2 ( FreeNAS ) hardware linux workstation: - 2 x dual core, 2GB memory workstation - onboard intel 1Gb nic - 3 250GB disks - OS: Ubuntu 8.10 hardware windows workstation: - same - OS: Windows Server 2003 First installation - FreeNAS, ignorant as i was: chose JBOD as disk-configuration. This is Just a Bunch Of Disks, it just concats all the ( 2 pcs ) drives into 1 big volume. - Tested throughput(cifs/samba), got about 40MB/s on my linux box. Tested on the windows box: about 33MB/s. - Above measurements where achieved only after jumbo-frames and send-receive-buffer optimalisations ( won about 10% ) I was heavily disappointed with the results: i had installed a couple of NAS-systems, which could easily reach 80MB/s or 140MB/s with two nic's trunked. To make a long story short: with Gigabit networking it is not the network which is the bottle-neck: it is the local access to disks. So you need to use lots of disks. So instead of JBOD you need to configure RAID0, RAID1 on the file server etc to maximize disk throughput. That's why the NAS-systems performed so well: they had 4 disks each. - Second installation - FreeNAS, RAID0 - Tested throughput ( to local RAID0 ): - ftp: 82MB/s - nfs: 75MB/s - cifs/samba: 42MB/s Confused by the performance of cifs, i configured jumboframes, large send/receive buffers for cifs/samba, freenas-tuning-opting, polling etc. To no avail, there seems to be another limit to cifs/samba performance ( FreeNAS has an optimized smb.conf btw). Test issues ( things that get you confused ) - if you expect to be able to copy a file at Gigabit speeds, you need to be able to write as fast to your local disk as well. So to reliable test SAN/NAS performance at Gigabit speeds you need RAID at the server and at the client. Or write to /dev/null - if you repeatedly test with the same file, it will get cached into memory of the NAS. so you won't be testing troughput disk->network->disk anymore: you are testing NAS-memory->network->disk. I was testing with ubuntu-iso's, but with 1GB of memory, ISO's get cached as well. - if you repeatedly test with the same file, and you have enough local memory, and you test with nfs or cifs/samba, the file will get cached locally as well. this results into transfer-speeds to /dev/null exceeding 100MB/s ( Gigabit speeds ). i have observed transfer speeds to /dev/null of 400MB/s! The funny thing is i started this DIY-NAS with FreeNAS because we had a cheap commercial NAS with 4 disks ( raid 5 ). We have had performance troubles at 100Mbit, repeated authentication trouble ( integration with MSAD ), and when we upgraded our network to Gigabit, it only performed at 11MB/s! We now have a NAS that performs faster than local disk. We plan to use it run development-virtual-machines on. With Gigabit ethernet the network isn't the problem anymore: it's disks. You need as much as you can get your hands on. About your question about memory management: it is not needed and you don't want it. tune nics, filesystems, memory, nfs-options and disks. regards, usleep -- > > > Michel TALON > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 04:36:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86D3F106564A for ; Wed, 31 Dec 2008 04:36:51 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id D6DC28FC18 for ; Wed, 31 Dec 2008 04:36:50 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from marge.bs.l (e180013165.adsl.alicedsl.de [85.180.13.165]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1LHsp541kJ-0005nK; Wed, 31 Dec 2008 05:36:49 +0100 Received: from bsch by marge.bs.l with local (Exim 4.69) (envelope-from ) id 1LHsp5-0003iq-F8; Wed, 31 Dec 2008 05:36:47 +0100 Date: Wed, 31 Dec 2008 05:36:47 +0100 From: Bertram Scharpf To: Gary Kline , freebsd-questions@freebsd.org Message-ID: <20081231043647.GB13851@marge.bs.l> Mail-Followup-To: Gary Kline , freebsd-questions@freebsd.org References: <20081230193111.GA32641@thought.org> <20081230211633.GA24525@marge.bs.l> <20081231014802.GB46220@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081231014802.GB46220@thought.org> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: Bertram Scharpf X-Provags-ID: V01U2FsdGVkX18QyfCnwNuvbNJCml+LTDgawkgEtJskz6YDzob Sajrg19o1QJrBpmGDLWt5hcD1BejWbx+whPvivzhekSTsh9WTd 6a5iR1U7kmjwuI/kbipWwKtTeuBJVygqeQ/t5VE18w= Cc: Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 04:36:53 -0000 Hi Gary, Am Dienstag, 30. Dez 2008, 17:48:02 -0800 schrieb Gary Kline: > On Tue, Dec 30, 2008 at 10:16:33PM +0100, Bertram Scharpf wrote: > > Hi Gary, > > > > Am Dienstag, 30. Dez 2008, 11:31:14 -0800 schrieb Gary Kline: > > > The problem is that there are many, _many_ embedded > > > "" lines, _not_ the other Href links. > > > > > > sed or perl? > > > > Ruby. Untested: > > > > $ ruby -i.bak -pe 'next if ~/href="([^"]*)"/i and $1 == "http://example.com"' somefile.html > > > > Probably you want to do something more sophisticated. > > no errors, but the new.htm is == new.htm.bak; in other words, > it looks like a partial match on just "http" fails. Don't > know why. i'm pretty sure the entire " xxx " > would do it. This is not FreeBSD-specific, though. I still wonder why you rely on lines just containing %r{^.*$} . Maybe you're doing a quick'n'dirty solution but I'm quite sure you won't get along with a one-liner. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 07:52:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D95B1065670 for ; Wed, 31 Dec 2008 07:52:10 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id C79FF8FC1D for ; Wed, 31 Dec 2008 07:52:09 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 95F81B862; Wed, 31 Dec 2008 08:52:08 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 51498-03; Wed, 31 Dec 2008 08:51:59 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Wed, 31 Dec 2008 08:51:59 +0100 (CET) Message-ID: <495B2516.4020904@dugas-family.org> Date: Wed, 31 Dec 2008 08:53:58 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Wojciech Puchar References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> <20081230201351.L12391@wojtek.tensor.gdynia.pl> <495A9595.6080201@dugas-family.org> <20081231002557.D45571@wojtek.tensor.gdynia.pl> In-Reply-To: <20081231002557.D45571@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: freebsd-questions@freebsd.org, Vincent Hoffman Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 07:52:10 -0000 Wojciech Puchar wrote: >> nfsserver# time tar -cf - clientusr-amd64 > /dev/null >> 5.001u 12.147s 1:23.92 20.4% 69+1369k 163345+0io 0pf+0w >> >> client9# time tar -cf - /usr > /dev/null >> tar: Removing leading '/' from member names >> 3.985u 19.779s 4:32.47 8.7% 74+1457k 0+0io 0pf+0w >> >> Note : clientusr-amd64 is around 1.3GB and is the same directory >> exported to client9 /usr with nfs. >> > it's FAST. what's wrong? First thing that may be wrong is the understanding of the time figures. The documentation is not clear about them and the -h option is not working : client6# time -h tar -cf - /usr > /dev/null -h: Command not found. 0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w The main thing is that the 3rd figures 1:23.92 and 4:32.47 seems to be the time i wait in front of the computer while it works (ok, i know, i should enjoy a beer, or hot coffee with this nice snow ;-) : client9# date ; time tar -cf - /usr > /dev/null ; date ; Wed Dec 31 08:23:59 CET 2008 tar: Removing leading '/' from member names 4.103u 19.651s 4:25.80 8.9% 74+1453k 0+0io 2pf+0w Wed Dec 31 08:28:25 CET 2008 and 08:28:25 - 08:23:59 = 00:04:26 is very close to 4:25.80. On server, it means : 1440MB / 84s = 17MB/s On client, that becomes : 1440MB / 266s = 5.4MB/s I know the disk is not very fast, but i would like the NFS layer not to add too much... I don't want my users to wait between 3 or 4 times more because computer is using NFS. I have plenty of cpu and bandwidth available : something is slowing the process that should not... But what ? How to diagnose NFS ? Where should i look in a logical diagnosis process ? Best regards -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 08:04:28 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 362C11065677 for ; Wed, 31 Dec 2008 08:04:28 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) by mx1.freebsd.org (Postfix) with ESMTP id B64768FC1B for ; Wed, 31 Dec 2008 08:04:27 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [212.54.42.133] (helo=smtp2.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LHw42-0002x9-9l; Wed, 31 Dec 2008 09:04:26 +0100 Received: from [84.25.72.219] (helo=ra.egypt.nl) by smtp2.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LHw40-0007Ld-JH; Wed, 31 Dec 2008 09:04:24 +0100 Received: from [192.168.13.81] (iPod.egypt.nl [192.168.13.81]) by ra.egypt.nl (Postfix) with ESMTP id 3FD1A3989E; Wed, 31 Dec 2008 09:04:19 +0100 (CET) References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> <20081230201351.L12391@wojtek.tensor.gdynia.pl> <495A9595.6080201@dugas-family.org> <20081231002557.D45571@wojtek.tensor.gdynia.pl> <495B2516.4020904@dugas-family.org> Message-Id: From: Peter Boosten To: Bernard Dugas In-Reply-To: <495B2516.4020904@dugas-family.org> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (5G77) Mime-Version: 1.0 (iPod Mail 5G77) Date: Wed, 31 Dec 2008 09:06:26 +0100 X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1LHw40-0007Ld-JH X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.687, required 5, BAYES_50 0.00, SPF_NEUTRAL 0.69) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No Cc: Wojciech Puchar , "freebsd-questions@freebsd.org" , Vincent Hoffman Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 08:04:28 -0000 On 31 dec 2008, at 08:53, Bernard Dugas wrote: > Wojciech Puchar wrote: > >>> nfsserver# time tar -cf - clientusr-amd64 > /dev/null >>> 5.001u 12.147s 1:23.92 20.4% 69+1369k 163345+0io 0pf+0w >>> >>> client9# time tar -cf - /usr > /dev/null >>> tar: Removing leading '/' from member names >>> 3.985u 19.779s 4:32.47 8.7% 74+1457k 0+0io 0pf+0w >>> >>> Note : clientusr-amd64 is around 1.3GB and is the same directory >>> exported to client9 /usr with nfs. >>> >> it's FAST. what's wrong? > > First thing that may be wrong is the understanding of the time > figures. The documentation is not clear about them and the -h option > is not working : > > client6# time -h tar -cf - /usr > /dev/null > -h: Command not found. > 0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w > > The main thing is that the 3rd figures 1:23.92 and 4:32.47 seems to > be the time i wait in front of the computer while it works (ok, i > know, i should enjoy a beer, or hot coffee with this nice snow ;-) : > > client9# date ; time tar -cf - /usr > /dev/null ; date ; > Wed Dec 31 08:23:59 CET 2008 > tar: Removing leading '/' from member names > 4.103u 19.651s 4:25.80 8.9% 74+1453k 0+0io 2pf+0w > Wed Dec 31 08:28:25 CET 2008 > > and 08:28:25 - 08:23:59 = 00:04:26 is very close to 4:25.80. > > On server, it means : 1440MB / 84s = 17MB/s > On client, that becomes : 1440MB / 266s = 5.4MB/s > > I know the disk is not very fast, but i would like the NFS layer not > to add too much... > > I don't want my users to wait between 3 or 4 times more because > computer is using NFS. In my opinion there are more considerations than only nfs: the data is pulled twice over the network, and the tar process might initiate paging which is done over the network as well. The tar comparison is not a good one. Peter -- http://www.boosten.org From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 08:10:05 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8392A106564A for ; Wed, 31 Dec 2008 08:10:05 +0000 (UTC) (envelope-from debian-users-admin@debian.or.jp) Received: from osdn.debian.or.jp (osdn.debian.or.jp [202.221.179.41]) by mx1.freebsd.org (Postfix) with ESMTP id 597188FC08 for ; Wed, 31 Dec 2008 08:10:04 +0000 (UTC) (envelope-from debian-users-admin@debian.or.jp) Received: from lists.debian.or.jp (osdn.debian.or.jp [202.221.179.41]) by osdn.debian.or.jp (Postfix) with ESMTP id 5AEABC2E63 for ; Wed, 31 Dec 2008 16:22:00 +0900 (JST) Date: Wed, 31 Dec 2008 16:22:00 +0900 From: debian-users-admin@debian.or.jp To: questions@freebsd.org Message-Id: <200812311622.FMLAAA13337.debian-users@debian.or.jp> References: <20081231072157.6777BAFE45@hp.debian.or.jp> X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)] X-ML-Info: If you have a question, please contact debian-users-admin@debian.or.jp; Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Cc: Subject: Subscribe request result (debian-users ML) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: debian-users-ctl@debian.or.jp List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 08:10:05 -0000 Hi, I am the fml ML manager for the ML . --debian-users@debian.or.jp, Be Seeing You! ************************************************************ If you have any questions or problems, please contact debian-users-admin@debian.or.jp ************************************************************ From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 08:16:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39567106566B for ; Wed, 31 Dec 2008 08:16:15 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id B3DE08FC08 for ; Wed, 31 Dec 2008 08:16:14 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so1033992ugs.39 for ; Wed, 31 Dec 2008 00:16:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=eCJtqb6HpJJwHRtgGLFjADtAxJAwK8dK/e6pLHvpCE0=; b=irZJd3STL3mO2xGJ6vQEQj8hntbUKutunOTbmIv5dnfZ8n9bDqzvILqIKafflzpQur /wuLFEMhx9wnS5IpwfyLhuzl2tsFkoJTD5VptMHffCny0ZUVihpEmOs0CpAa1dIUiRAc aNzFDQidxKMioWhZScoXYONUPAfccReeHbUTk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=o6HChRoln/IutEOkUtnw8+u7HCA/R0D2QhH9JltwA2rwLYVdWFhtQaIQ+pRZESJ/gI W7kw9fgJXaIJQF7mgStm+5Ul8PhQpf1DIazmeUP4YX1Rv7txBmZiqSmFD1v2iWEPnSzm VFzkwu8qyv7Gm6/185ijqqzu3C4TX5V6Pmvnw= Received: by 10.67.29.4 with SMTP id g4mr10535877ugj.73.1230711373343; Wed, 31 Dec 2008 00:16:13 -0800 (PST) Received: from atlantis.dyndns.org (athedsl-13416.home.otenet.gr [87.202.52.208]) by mx.google.com with ESMTPS id b39sm39652907ugf.38.2008.12.31.00.16.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 31 Dec 2008 00:16:12 -0800 (PST) Message-ID: <495B2A4B.8010002@gmail.com> Date: Wed, 31 Dec 2008 10:16:11 +0200 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.17 (X11/20081011) MIME-Version: 1.0 To: Bernard Dugas References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> <20081230201351.L12391@wojtek.tensor.gdynia.pl> <495A9595.6080201@dugas-family.org> <20081231002557.D45571@wojtek.tensor.gdynia.pl> <495B2516.4020904@dugas-family.org> In-Reply-To: <495B2516.4020904@dugas-family.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 08:16:15 -0000 Bernard Dugas wrote: > Wojciech Puchar wrote: > >>> nfsserver# time tar -cf - clientusr-amd64 > /dev/null >>> 5.001u 12.147s 1:23.92 20.4% 69+1369k 163345+0io 0pf+0w >>> >>> client9# time tar -cf - /usr > /dev/null >>> tar: Removing leading '/' from member names >>> 3.985u 19.779s 4:32.47 8.7% 74+1457k 0+0io 0pf+0w >>> >>> Note : clientusr-amd64 is around 1.3GB and is the same directory >>> exported to client9 /usr with nfs. >>> >> it's FAST. what's wrong? > > First thing that may be wrong is the understanding of the time > figures. The documentation is not clear about them and the -h option > is not working : > > client6# time -h tar -cf - /usr > /dev/null > -h: Command not found. > 0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w Just a sidenote, you are probably getting a version of time integrated to your shell. The -h option works fine in /usr/bin/time, so run like this: client6# /usr/bin/time -h tar -cf - /usr > /dev/null From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 09:29:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF610106566B for ; Wed, 31 Dec 2008 09:29:54 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id 557608FC1F for ; Wed, 31 Dec 2008 09:29:54 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 058F1B82F; Wed, 31 Dec 2008 10:29:53 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 58059-02; Wed, 31 Dec 2008 10:29:43 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Wed, 31 Dec 2008 10:29:43 +0100 (CET) Message-ID: <495B3BFE.1040404@dugas-family.org> Date: Wed, 31 Dec 2008 10:31:42 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Wojciech Puchar References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> <20081230201351.L12391@wojtek.tensor.gdynia.pl> <495A9595.6080201@dugas-family.org> <20081231002557.D45571@wojtek.tensor.gdynia.pl> In-Reply-To: <20081231002557.D45571@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: freebsd-questions@freebsd.org, Vincent Hoffman Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 09:29:55 -0000 I am trying a memory disk on server to see the effect of hard drive performances, and also discovering the function :-) The conclusion is that memory disk is faster that this drive ;-) 45MB/s vs 10Mb/s But the NFS access to the memory drive is still 5MB/s :-( As there is no more hard drive involved, we know that there is a bottleneck at 5MB in NFS layer on this system... Where ? Thanks a lot for any help on the method to find/diagnose this ! ----------------------------------------Details are below : nfsserver# uname -a FreeBSD nfsserver 7.1-RC1 FreeBSD 7.1-RC1 #0: Sun Dec 7 00:38:13 UTC 2008 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 nfsserver# mdconfig -a -t swap -s 600m -o reserve -u 7 nfsserver# ls /dev/md* /dev/md7 /dev/mdctl nfsserver# newfs -i 2048 /dev/md7 Reduced frags per cylinder group from 60864 to 59928 to enlarge last cyl group /dev/md7: 600.0MB (1228800 sectors) block size 16384, fragment size 2048 using 6 cylinder groups of 117.05MB, 7491 blks, 59968 inodes. super-block backups (for fsck -b #) at: 160, 239872, 479584, 719296, 959008, 1198720 nfsserver# mkdir /tstnfs nfsserver# mount /dev/md7 /tstnfs nfsserver# date ; time tar -cf - /nfsro/commun/clientusr-amd64-7.2-RC2-20081230/ports > /dev/null ; date ; Wed Dec 31 09:11:08 CET 2008 tar: Removing leading '/' from member names 3.794u 8.766s 0:46.40 27.0% 71+1406k 123375+0io 0pf+0w Wed Dec 31 09:11:54 CET 2008 That makes 498MB / 46s = 10.8MB/s for disk drive. nfsserver# date ; cp -r -p /nfsro/commun/clientusr-amd64-7.2-RC2-20081230/ports /tstnfs/ports ; date Wed Dec 31 09:33:09 CET 2008 Wed Dec 31 09:34:46 CET 2008 df -h /dev/md7 512M 498M -27M 106% /tstnfs nfsserver# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ; Wed Dec 31 09:36:59 CET 2008 tar: Removing leading '/' from member names 2.947u 6.218s 0:10.61 86.2% 74+1463k 104885+0io 0pf+0w Wed Dec 31 09:37:10 CET 2008 nfsserver# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ; Wed Dec 31 09:37:12 CET 2008 tar: Removing leading '/' from member names 2.895u 6.487s 0:11.01 85.1% 74+1466k 112838+0io 0pf+0w Wed Dec 31 09:37:23 CET 2008 nfsserver# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ; Wed Dec 31 09:40:22 CET 2008 tar: Removing leading '/' from member names 2.902u 6.610s 0:11.10 85.6% 75+1483k 113393+0io 0pf+0w Wed Dec 31 09:40:33 CET 2008 That makes 498MB / 11s = 45MB/s : better that 10MB/s for disk, but not exceptional. Now on the client : client9# uname -a FreeBSD client9 7.1-RC2 FreeBSD 7.1-RC2 #0: Tue Dec 23 11:42:13 UTC 2008 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 client9# mount -o ro nfsserver:/tstnfs /tstnfs client9# df -h nfsserver:/tstnfs 512M 498M 0B 100% /tstnfs client9# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ; Wed Dec 31 09:50:39 CET 2008 tar: Removing leading '/' from member names 2.896u 13.020s 1:35.22 16.7% 75+1483k 0+0io 2pf+0w Wed Dec 31 09:52:14 CET 2008 client9# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ; Wed Dec 31 09:52:22 CET 2008 tar: Removing leading '/' from member names 2.700u 12.755s 1:27.78 17.6% 76+1498k 0+0io 0pf+0w Wed Dec 31 09:53:50 CET 2008 client9# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ; Wed Dec 31 09:55:02 CET 2008 tar: Removing leading '/' from member names 2.681u 12.688s 1:28.15 17.4% 74+1464k 0+0io 0pf+0w Wed Dec 31 09:56:30 CET 2008 That makes between 95s and 87s, then 498MB / 95s = 5,2MB/s and 5.7MB/s, like previous test from hard drive NFS export. Top is showing around 100MB of free memory while taring on client9, so i don't think tar is paging on network : last pid: 3318; load averages: 0.17, 0.11, 0.04 up 0+11:14:27 10:08:10 30 processes: 1 running, 29 sleeping CPU: 0.8% user, 0.0% nice, 9.0% system, 0.0% interrupt, 90.2% idle Mem: 19M Active, 720M Inact, 136M Wired, 240K Cache, 110M Buf, 98M Free Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 09:35:50 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6133106564A for ; Wed, 31 Dec 2008 09:35:50 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id 89D6D8FC12 for ; Wed, 31 Dec 2008 09:35:50 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id B4405B82F; Wed, 31 Dec 2008 10:35:49 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 57017-06; Wed, 31 Dec 2008 10:35:40 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Wed, 31 Dec 2008 10:35:40 +0100 (CET) Message-ID: <495B3D63.2030005@dugas-family.org> Date: Wed, 31 Dec 2008 10:37:39 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Peter Boosten References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> <20081230201351.L12391@wojtek.tensor.gdynia.pl> <495A9595.6080201@dugas-family.org> <20081231002557.D45571@wojtek.tensor.gdynia.pl> <495B2516.4020904@dugas-family.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: "freebsd-questions@freebsd.org" Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 09:35:51 -0000 Peter Boosten wrote: >> On server, it means : 1440MB / 84s = 17MB/s >> On client, that becomes : 1440MB / 266s = 5.4MB/s >> >> I know the disk is not very fast, but i would like the NFS layer not >> to add too much... >> >> I don't want my users to wait between 3 or 4 times more because >> computer is using NFS. > > In my opinion there are more considerations than only nfs: the data is > pulled twice over the network, and the tar process might initiate > paging which is done over the network as well. The tar comparison is > not a good one. I would welcome any way to check that idea on the system. But : - tar is directed to /dev/null so that should avoid any physical writing ; - there is still memory FREE on both server and client while taring ; - the effect of tar is the same on server and client, so the "induced error" should be the same time on both. Thanks a lot, Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 09:37:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94264106567B for ; Wed, 31 Dec 2008 09:37:32 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id 488518FC16 for ; Wed, 31 Dec 2008 09:37:32 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 2F3EFB82F; Wed, 31 Dec 2008 10:37:31 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 58059-04; Wed, 31 Dec 2008 10:37:21 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Wed, 31 Dec 2008 10:37:21 +0100 (CET) Message-ID: <495B3DC8.20003@dugas-family.org> Date: Wed, 31 Dec 2008 10:39:20 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Manolis Kiagias References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> <20081230201351.L12391@wojtek.tensor.gdynia.pl> <495A9595.6080201@dugas-family.org> <20081231002557.D45571@wojtek.tensor.gdynia.pl> <495B2516.4020904@dugas-family.org> <495B2A4B.8010002@gmail.com> In-Reply-To: <495B2A4B.8010002@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: "freebsd-questions@freebsd.org" Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 09:37:32 -0000 Manolis Kiagias wrote: >>First thing that may be wrong is the understanding of the time >>figures. The documentation is not clear about them and the -h option >>is not working : >> >>client6# time -h tar -cf - /usr > /dev/null >>-h: Command not found. >>0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w > > Just a sidenote, you are probably getting a version of time integrated > to your shell. The -h option works fine in /usr/bin/time, so run like this: > > client6# /usr/bin/time -h tar -cf - /usr > /dev/null Very true, this is it :-) Thanks a lot for your help ! Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 09:46:50 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 612B0106566B for ; Wed, 31 Dec 2008 09:46:50 +0000 (UTC) (envelope-from dhaneshkk@hotmail.com) Received: from col0-omc4-s6.col0.hotmail.com (col0-omc4-s6.col0.hotmail.com [65.55.34.208]) by mx1.freebsd.org (Postfix) with ESMTP id 3E0E68FC19 for ; Wed, 31 Dec 2008 09:46:50 +0000 (UTC) (envelope-from dhaneshkk@hotmail.com) Received: from COL106-W2 ([65.55.34.199]) by col0-omc4-s6.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 31 Dec 2008 01:46:50 -0800 Message-ID: X-Originating-IP: [218.248.24.18] From: dhaneshk k To: Date: Wed, 31 Dec 2008 09:46:49 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 31 Dec 2008 09:46:50.0161 (UTC) FILETIME=[B421B210:01C96B2C] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: accessing a networked printer to a FreeBSD box X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 09:46:50 -0000 people=2C I am trying to access a printer from our LAN to my FreeBSD Desktop PC which package I needed to do that ? system-config-printer right ? NOTE :I am not trying to attach a new printer to FreeBSD just want to acces= s an already working printer in our LAN I installed system-config-printer from ports =2C but whenever I tried to do $system-config-printer =2C one blank dialog window blinks away =2C the in the tty I am getting this error .. [bhagat@storm /usr/home/bhagat]$ system-config-printer Traceback (most recent call last): File "/usr/local/share/system-config-printer/system-config-printer.py"=2C= line 5272=2C in main(configure_printer=2C change_ppd) File "/usr/local/share/system-config-printer/system-config-printer.py"=2C= line 5242=2C in main mainwindow =3D GUI(configure_printer=2C change_ppd) File "/usr/local/share/system-config-printer/system-config-printer.py"=2C= line 333=2C in __init__ self.AboutDialog.set_program_name(domain) AttributeError: 'gtk.AboutDialog' object has no attribute 'set_program_name= ' [bhagat@storm /usr/home/bhagat]$=20 what the exact issue ? what I made wrong =2C (I dont think I need CUPS to be installed as I was not trying to attach a printer to this FreeBSD box) . Here I am attaching the system-config-printer.py file please help me fix the issue ( OR I have to install any other package than system-config-printer ?)=20 I thank you all in advance for any hints to fix it out . struggling to fix= this issue for the last couple of days .. Any hints most Welcome Dhanesh I tried to install gnome-cups-manager too(from ports ) =2C but installati= on failed as follows =20 gnome-cups-manager.c: In function `event_cb': gnome-cups-manager.c:79: error: syntax error before "do" gnome-cups-manager.c:79: error: syntax error before ')' token gnome-cups-manager.c:79: error: `_g_boolean_var_' undeclared (first use in = this function) gnome-cups-manager.c:79: error: (Each undeclared identifier is reported onl= y once gnome-cups-manager.c:79: error: for each function it appears in.) gnome-cups-manager.c:79: error: syntax error before ')' token gnome-cups-manager.c:74: warning: unused variable `printer' gnome-cups-manager.c: At top level: gnome-cups-manager.c:53: warning: 'check_cups' defined but not used gnome-cups-manager.c:72: warning: 'event_cb' defined but not used gmake[3]: *** [gnome-cups-manager.o] Error 1 gmake[3]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome= -cups-manager-0.31/gnome-cups-manager' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome= -cups-manager-0.31/gnome-cups-manager' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome= -cups-manager-0.31' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/print/gnome-cups-manager. [root@storm /usr/ports/print/gnome-cups-manager]#=20 _________________________________________________________________ Much more than email =96 don't miss out on the rest of the Windows Live=99. http://www.microsoft.com/windows/windowslive/= From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 10:22:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17984106564A for ; Wed, 31 Dec 2008 10:22:07 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id C001E8FC25 for ; Wed, 31 Dec 2008 10:22:06 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 445B4B858; Wed, 31 Dec 2008 11:22:05 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 58482-04; Wed, 31 Dec 2008 11:21:55 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Wed, 31 Dec 2008 11:21:55 +0100 (CET) Message-ID: <495B483A.4080408@dugas-family.org> Date: Wed, 31 Dec 2008 11:23:54 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: usleepless@gmail.com References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> <20081230201351.L12391@wojtek.tensor.gdynia.pl> <495A9595.6080201@dugas-family.org> <20081231002557.D45571@wojtek.tensor.gdynia.pl> <495B2516.4020904@dugas-family.org> <495B2A4B.8010002@gmail.com> In-Reply-To: <495B2A4B.8010002@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: "freebsd-questions@freebsd.org" Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 10:22:07 -0000 usleep wrote: > - Second installation > - FreeNAS, RAID0 > - Tested throughput ( to local RAID0 ): > - ftp: 82MB/s > - nfs: 75MB/s > - cifs/samba: 42MB/s Thanks a lot for these clear references ! > Test issues ( things that get you confused ) > - if you expect to be able to copy a file at Gigabit speeds, you > need to be able to write as fast to your local disk as well. So to > reliable test SAN/NAS performance at Gigabit speeds you need RAID at > the server and at the client. Or write to /dev/null This is what i did with the tar. What function do you use for testing ? > - if you repeatedly test with the same file, it will get cached into > memory of the NAS. so you won't be testing troughput > disk->network->disk anymore: you are testing > NAS-memory->network->disk. I was testing with > ubuntu-iso's, but with 1GB of memory, ISO's get cached as well. i was fearing that, but it seems that does not happen in my testing, as repeating same test give same result. I don't know why it does not happens... > - if you repeatedly test with the same file, and you have enough > local memory, and you test with nfs or cifs/samba, the file will get > cached locally as well. this results into transfer-speeds to > /dev/null exceeding 100MB/s ( Gigabit speeds ). i have observed > transfer speeds to /dev/null of 400MB/s! I would love to see that behaviour. But it didn't happen neither in my testing :-( > We now have a NAS that performs faster than local disk. ^^^^ Is it the FreeNAS you describe in your testing or a new one ? > We plan to use it run development-virtual-machines on. This is also my target :-) I will have some high density servers (6 independent servers in 1U) and trying to master the freebsd diskless process before... Best regards, -- Bernard DUGAS Mobile +33 615 333 770 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 11:51:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4108106571C for ; Wed, 31 Dec 2008 11:51:10 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from smtp2.brturbo.com.br (smtp2.brte.com.br [200.199.201.149]) by mx1.freebsd.org (Postfix) with ESMTP id 4BF148FC1F for ; Wed, 31 Dec 2008 11:51:09 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from mailapp02.brturbo.com (unknown [10.160.120.197]) by smtp2.brturbo.com.br (Postfix) with ESMTP id 2A27E340E; Wed, 31 Dec 2008 09:43:30 -0200 (BRST) Received: from mailapp02.brturbo.com (mailapp01.brturbo.com [10.160.120.197]) by mailapp02.brturbo.com (Postfix) with ESMTP id 63AD45F4078; Wed, 31 Dec 2008 09:48:19 -0200 (BRST) Message-ID: <20932403.1230724099404.JavaMail.nfsnobody@mailapp02.brturbo.com> Date: Wed, 31 Dec 2008 08:48:19 -0300 (ART) From: Mario Lobo To: dhaneshk k , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2228_20123523.1230724099402" SDL_HA: false X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: accessing a networked printer to a FreeBSD box X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 11:51:11 -0000 ------=_Part_2228_20123523.1230724099402 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Do you have CUPS installed? Mario -----Mensagem original----- De: dhaneshk k Enviada em: 31/12/2008 07:46:49 Para: Assunto: accessing a networked printer to a FreeBSD box people, I am trying to access a printer from our LAN to my FreeBSD Desktop PC which package I needed to do that ? system-config-printer right ? NOTE :I am not trying to attach a new printer to FreeBSD just want to access an already working printer in our LAN I installed system-config-printer from ports , but whenever I tried to do $system-config-printer , one blank dialog window blinks away , the in the tty I am getting this error .. [bhagat@storm /usr/home/bhagat]$ system-config-printer Traceback (most recent call last): File "/usr/local/share/system-config-printer/system-config-printer.py", line 5272, in main(configure_printer, change_ppd) File "/usr/local/share/system-config-printer/system-config-printer.py", line 5242, in main mainwindow = GUI(configure_printer, change_ppd) File "/usr/local/share/system-config-printer/system-config-printer.py", line 333, in __init__ self.AboutDialog.set_program_name(domain) AttributeError: 'gtk.AboutDialog' object has no attribute 'set_program_name' [bhagat@storm /usr/home/bhagat]$ what the exact issue ? what I made wrong , (I dont think I need CUPS to be installed as I was not trying to attach a printer to this FreeBSD box) . Here I am attaching the system-config-printer.py file please help me fix the issue ( OR I have to install any other package than system-config-printer ?) I thank you all in advance for any hints to fix it out . struggling to fix this issue for the last couple of days .. Any hints most Welcome Dhanesh I tried to install gnome-cups-manager too(from ports ) , but installation failed as follows gnome-cups-manager.c: In function `event_cb': gnome-cups-manager.c:79: error: syntax error before "do" gnome-cups-manager.c:79: error: syntax error before ')' token gnome-cups-manager.c:79: error: `_g_boolean_var_' undeclared (first use in this function) gnome-cups-manager.c:79: error: (Each undeclared identifier is reported only once gnome-cups-manager.c:79: error: for each function it appears in.) gnome-cups-manager.c:79: error: syntax error before ')' token gnome-cups-manager.c:74: warning: unused variable `printer' gnome-cups-manager.c: At top level: gnome-cups-manager.c:53: warning: 'check_cups' defined but not used gnome-cups-manager.c:72: warning: 'event_cb' defined but not used gmake[3]: *** [gnome-cups-manager.o] Error 1 gmake[3]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnom e-cups-manager' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnom e-cups-manager' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/print/gnome-cups-manager. [root@storm /usr/ports/print/gnome-cups-manager]# _________________________________________________________________ Much more than email ? don't miss out on the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/_________________________ ______________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" ------=_Part_2228_20123523.1230724099402-- From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 12:45:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB58B106566B for ; Wed, 31 Dec 2008 12:45:17 +0000 (UTC) (envelope-from dhaneshkk@hotmail.com) Received: from col0-omc2-s12.col0.hotmail.com (col0-omc2-s12.col0.hotmail.com [65.55.34.86]) by mx1.freebsd.org (Postfix) with ESMTP id 97A348FC16 for ; Wed, 31 Dec 2008 12:45:17 +0000 (UTC) (envelope-from dhaneshkk@hotmail.com) Received: from COL106-W37 ([65.55.34.72]) by col0-omc2-s12.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 31 Dec 2008 04:45:17 -0800 Message-ID: X-Originating-IP: [218.248.24.18] From: dhaneshk k To: , Date: Wed, 31 Dec 2008 12:45:17 +0000 Importance: Normal In-Reply-To: <20932403.1230724099404.JavaMail.nfsnobody@mailapp02.brturbo.com> References: <20932403.1230724099404.JavaMail.nfsnobody@mailapp02.brturbo.com> MIME-Version: 1.0 X-OriginalArrivalTime: 31 Dec 2008 12:45:17.0452 (UTC) FILETIME=[A22CA4C0:01C96B45] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: RE: accessing a networked printer to a FreeBSD box X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 12:45:18 -0000 yes I installed cups from ports [root@storm /usr/local/etc/nagios]# ls /var/db/pkg/ |grep cups cups-base-1.3.7_4 cups-pstoraster-8.15.4_2 libgnomecups-0.2.3_1=2C1 py25-cups-1.9.41 Date: Wed=2C 31 Dec 2008 08:48:19 -0300 From: mlobo@digiart.art.br To: dhaneshkk@hotmail.com=3B freebsd-questions@freebsd.org Subject: Re: accessing a networked printer to a FreeBSD box Do you have CUPS installed? Mario -----Mensagem original----- De: dhaneshk k=20 Enviada em: 31/12/2008 07:46:49 Para:=20 Assunto: accessing a networked printer to a FreeBSD box people=2C I am trying to access a printer from our LAN to my FreeBSD Desktop PC which package I needed to do that ? system-config-printer right ? NOTE :I am not trying to attach a new printer to FreeBSD just want to acces= s an already working printer in our LAN I installed system-config-printer from ports =2C but whenever I tried to do $system-config-printer =2C one blank dialog window blinks away =2C the in the tty I am getting this error .. [bhagat@storm /usr/home/bhagat]$ system-config-printer Traceback (most recent call last): File "/usr/local/share/system-config-printer/system-config-printer.py"=2C= line 5272=2C in=20 main(configure_printer=2C change_ppd) File "/usr/local/share/system-config-printer/system-config-printer.py"=2C= line 5242=2C in main mainwindow =3D GUI(configure_printer=2C change_ppd) File "/usr/local/share/system-config-printer/system-config-printer.py"=2C= line 333=2C in __init__ self.AboutDialog.set_program_name(domain) AttributeError: 'gtk.AboutDialog' object has no attribute 'set_program_name= ' [bhagat@storm /usr/home/bhagat]$=20 what the exact issue ? what I made wrong =2C (I dont think I need CUPS to be installed as I was not trying to attach a printer to this FreeBSD box) . Here I am attaching the system-config-printer.py file please help me fix the issue ( OR I have to install any other package than system-config-printer ?)=20 I thank you all in advance for any hints to fix it out . struggling to fix= this issue for the last couple of days .. Any hints most Welcome Dhanesh I tried to install gnome-cups-manager too(from ports ) =2C but installati= on failed as follows =20 gnome-cups-manager.c: In function `event_cb': gnome-cups-manager.c:79: error: syntax error before "do" gnome-cups-manager.c:79: error: syntax error before ')' token gnome-cups-manager.c:79: error: `_g_boolean_var_' undeclared (first use in = this function) gnome-cups-manager.c:79: error: (Each undeclared identifier is reported onl= y once gnome-cups-manager.c:79: error: for each function it appears in.) gnome-cups-manager.c:79: error: syntax error before ')' token gnome-cups-manager.c:74: warning: unused variable `printer' gnome-cups-manager.c: At top level: gnome-cups-manager.c:53: warning: 'check_cups' defined but not used gnome-cups-manager.c:72: warning: 'event_cb' defined but not used gmake[3]: *** [gnome-cups-manager.o] Error 1 gmake[3]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome= -cups-manager-0.31/gnome-cups-manager' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome= -cups-manager-0.31/gnome-cups-manager' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome= -cups-manager-0.31' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/print/gnome-cups-manager. [root@storm /usr/ports/print/gnome-cups-manager]#=20 _________________________________________________________________ Much more than email ? don't miss out on the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/______________________________= _________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe=2C send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" _________________________________________________________________ Much more than email =96 don't miss out on the rest of the Windows Live=99. http://www.microsoft.com/windows/windowslive/events.aspx= From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 12:58:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0D59106566B for ; Wed, 31 Dec 2008 12:58:25 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from smtp1.brturbo.com.br (smtp1.brte.com.br [200.199.201.162]) by mx1.freebsd.org (Postfix) with ESMTP id 2A44E8FC16 for ; Wed, 31 Dec 2008 12:58:24 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from mailapp02.brturbo.com (unknown [10.160.120.197]) by smtp1.brturbo.com.br (Postfix) with ESMTP id E0A373404; Wed, 31 Dec 2008 10:52:05 -0200 (BRST) Received: from mailapp02.brturbo.com (mailapp01.brturbo.com [10.160.120.197]) by mailapp02.brturbo.com (Postfix) with ESMTP id B3E695F4078; Wed, 31 Dec 2008 10:55:33 -0200 (BRST) Message-ID: <6898637.1230728133733.JavaMail.nfsnobody@mailapp02.brturbo.com> Date: Wed, 31 Dec 2008 09:55:33 -0300 (ART) From: Mario Lobo To: dhaneshk k , mlobo@digiart.art.br, freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2285_31714110.1230728133730" SDL_HA: false X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: RE: accessing a networked printer to a FreeBSD box X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 12:58:26 -0000 ------=_Part_2285_31714110.1230728133730 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Have you tried accessing http://localhost:631 and adding the printer from there? Mario -----Mensagem original----- De: dhaneshk k Enviada em: 31/12/2008 10:45:17 Para: , Assunto: RE: accessing a networked printer to a FreeBSD box yes I installed cups from ports [root@storm /usr/local/etc/nagios]# ls /var/db/pkg/ |grep cups cups-base-1.3.7_4 cups-pstoraster-8.15.4_2 libgnomecups-0.2.3_1,1 py25-cups-1.9.41 Date: Wed, 31 Dec 2008 08:48:19 -0300 From: mlobo@digiart.art.br To: dhaneshkk@hotmail.com; freebsd-questions@freebsd.org Subject: Re: accessing a networked printer to a FreeBSD box Do you have CUPS installed? Mario -----Mensagem original----- De: dhaneshk k Enviada em: 31/12/2008 07:46:49 Para: Assunto: accessing a networked printer to a FreeBSD box people, I am trying to access a printer from our LAN to my FreeBSD Desktop PC which package I needed to do that ? system-config-printer right ? NOTE :I am not trying to attach a new printer to FreeBSD just want to access an already working printer in our LAN I installed system-config-printer from ports , but whenever I tried to do $system-config-printer , one blank dialog window blinks away , the in the tty I am getting this error .. [bhagat@storm /usr/home/bhagat]$ system-config-printer Traceback (most recent call last): File "/usr/local/share/system-config-printer/system-config-printer.py", line 5272, in main(configure_printer, change_ppd) File "/usr/local/share/system-config-printer/system-config-printer.py", line 5242, in main mainwindow = GUI(configure_printer, change_ppd) File "/usr/local/share/system-config-printer/system-config-printer.py", line 333, in __init__ self.AboutDialog.set_program_name(domain) AttributeError: 'gtk.AboutDialog' object has no attribute 'set_program_name' [bhagat@storm /usr/home/bhagat]$ what the exact issue ? what I made wrong , (I dont think I need CUPS to be installed as I was not trying to attach a printer to this FreeBSD box) . Here I am attaching the system-config-printer.py file please help me fix the issue ( OR I have to install any other package than system-config-printer ?) I thank you all in advance for any hints to fix it out . struggling to fix this issue for the last couple of days .. Any hints most Welcome Dhanesh I tried to install gnome-cups-manager too(from ports ) , but installation failed as follows gnome-cups-manager.c: In function `event_cb': gnome-cups-manager.c:79: error: syntax error before "do" gnome-cups-manager.c:79: error: syntax error before ')' token gnome-cups-manager.c:79: error: `_g_boolean_var_' undeclared (first use in this function) gnome-cups-manager.c:79: error: (Each undeclared identifier is reported only once gnome-cups-manager.c:79: error: for each function it appears in.) gnome-cups-manager.c:79: error: syntax error before ')' token gnome-cups-manager.c:74: warning: unused variable `printer' gnome-cups-manager.c: At top level: gnome-cups-manager.c:53: warning: 'check_cups' defined but not used gnome-cups-manager.c:72: warning: 'event_cb' defined but not used gmake[3]: *** [gnome-cups-manager.o] Error 1 gmake[3]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnom e-cups-manager' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnom e-cups-manager' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/print/gnome-cups-manager. [root@storm /usr/ports/print/gnome-cups-manager]# _________________________________________________________________ Much more than email ? don't miss out on the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/_________________________ ______________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" _________________________________________________________________ Much more than email ? don't miss out on the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/events.aspx______________ _________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" ------=_Part_2285_31714110.1230728133730-- From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 13:30:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3092D106564A for ; Wed, 31 Dec 2008 13:30:54 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id E0F688FC13 for ; Wed, 31 Dec 2008 13:30:53 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from isis.bris.ac.uk ([137.222.10.63]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1LI19v-00039C-0k for freebsd-questions@freebsd.org; Wed, 31 Dec 2008 13:30:52 +0000 Received: from mech-cluster238.men.bris.ac.uk ([137.222.187.238]) by isis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1LI19t-0003eI-9Q for freebsd-questions@freebsd.org; Wed, 31 Dec 2008 13:30:49 +0000 Received: from mech-cluster238.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-cluster238.men.bris.ac.uk (8.14.3/8.14.3) with ESMTP id mBVDUmvi080210 for ; Wed, 31 Dec 2008 13:30:48 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster238.men.bris.ac.uk (8.14.3/8.14.3/Submit) id mBVDUmgW080209 for freebsd-questions@freebsd.org; Wed, 31 Dec 2008 13:30:48 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster238.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Wed, 31 Dec 2008 13:30:48 +0000 From: Anton Shterenlikht To: freebsd-questions@freebsd.org Message-ID: <20081231133048.GA76399@mech-cluster238.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -1.4 X-Spam-Level: - Subject: obsolete /usr/share/doc/handbook ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 13:30:54 -0000 I update my local FBSD documentation with cvsup doc-all. I note that the latest FBSD documentation is under /usr/doc. However I still have /usr/share/doc which is about 2 years out of date. On the other hand /usr/doc does not appear in hier(7), whereas /usr/share/doc does. Can I safely delete the obsolete docs under /usr/share/doc? Why are there two doc folders? many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 13:43:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81840106566B for ; Wed, 31 Dec 2008 13:43:10 +0000 (UTC) (envelope-from thavinci@thavinci.za.net) Received: from thavinci.za.net (mail.e-soul.co.za [196.211.117.44]) by mx1.freebsd.org (Postfix) with ESMTP id 089648FC08 for ; Wed, 31 Dec 2008 13:43:09 +0000 (UTC) (envelope-from thavinci@thavinci.za.net) Received: from thavinci.za.net (localhost [127.0.0.1]) by thavinci.za.net (Postfix) with ESMTP id CFCB39B497 for ; Wed, 31 Dec 2008 15:43:06 +0200 (SAST) Received: by thavinci.za.net (Postfix, from userid 1002) id AF6819B494; Wed, 31 Dec 2008 15:43:06 +0200 (SAST) Received: from thavincimain (unknown [192.168.12.24]) by thavinci.za.net (Postfix) with ESMTP id 8919A9B489 for ; Wed, 31 Dec 2008 15:43:06 +0200 (SAST) From: "Marcel Grandemange" To: References: <045701c967b6$d668c8f0$833a5ad0$@za.net> <44tz8p615j.fsf@lowell-desk.lan> In-Reply-To: <44tz8p615j.fsf@lowell-desk.lan> Date: Wed, 31 Dec 2008 15:42:04 +0200 Message-ID: <00bc01c96b4d$9136eec0$b3a4cc40$@za.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcloP+WJjkHIe8vZTjOZUhJ42/P6rgDDXb3g Content-Language: en-us X-Virus-Scanned: ClamAV using ClamSMTP Subject: RE: EOIP Tunnels X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 13:43:10 -0000 > Does FreeBSD support EOIP tunnels? >>The kernel used to, and the code seems to still be around, but it may >>not be used much any more. There are netgraph nodes that you should be >>able to build it out of as well. > If so where can I find more info? >>I'd look at the manuals for netgraph's Ethernet nodes, and perhaps the >>GIF source code. >>But I'd *really* recommend you tunnel IP rather than ethernet if you >>can. Unfortunately this is for compatibility with Mikrotik Routers. Thank You For Info! >>-- >>Lowell Gilbert, embedded/networking software engineer, Boston area >> http://be-well.ilk.org/~lowell/ From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 13:53:11 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 284A91065670 for ; Wed, 31 Dec 2008 13:53:11 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id D889E8FC1E for ; Wed, 31 Dec 2008 13:53:09 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from isis.bris.ac.uk ([137.222.10.63]) by dirj.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1LI1VS-00015D-I2; Wed, 31 Dec 2008 13:53:08 +0000 Received: from mech-cluster238.men.bris.ac.uk ([137.222.187.238]) by isis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1LI1VR-0003rR-82; Wed, 31 Dec 2008 13:53:05 +0000 Received: from mech-cluster238.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-cluster238.men.bris.ac.uk (8.14.3/8.14.3) with ESMTP id mBVDr4R3086108; Wed, 31 Dec 2008 13:53:04 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster238.men.bris.ac.uk (8.14.3/8.14.3/Submit) id mBVDr3x9086107; Wed, 31 Dec 2008 13:53:03 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster238.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Wed, 31 Dec 2008 13:53:03 +0000 From: Anton Shterenlikht To: Anton Shterenlikht Message-ID: <20081231135302.GA86089@mech-cluster238.men.bris.ac.uk> References: <20081231133048.GA76399@mech-cluster238.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081231133048.GA76399@mech-cluster238.men.bris.ac.uk> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -1.4 X-Spam-Level: - Cc: freebsd-questions@freebsd.org Subject: SOLVED: Re: obsolete /usr/share/doc/handbook ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 13:53:11 -0000 On Wed, Dec 31, 2008 at 01:30:48PM +0000, Anton Shterenlikht wrote: > I update my local FBSD documentation with cvsup doc-all. > I note that the latest FBSD documentation is under /usr/doc. > However I still have /usr/share/doc which is about 2 years out of date. > > On the other hand /usr/doc does not appear in hier(7), > whereas /usr/share/doc does. > > Can I safely delete the obsolete docs under /usr/share/doc? > Why are there two doc folders? sorry, rushed to ask before trying. I get it now. /usr/doc - sources for all docs. Doing make install puts the html docs under /usr/share/doc. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 13:57:08 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BB3E106568F for ; Wed, 31 Dec 2008 13:57:08 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.4]) by mx1.freebsd.org (Postfix) with ESMTP id D3A4E8FC1D for ; Wed, 31 Dec 2008 13:57:07 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 6461 invoked from network); 31 Dec 2008 13:57:07 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 31 Dec 2008 13:57:07 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id B19EA50864; Wed, 31 Dec 2008 08:57:03 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 9B3521DAA0; Wed, 31 Dec 2008 08:57:02 -0500 (EST) To: Anton Shterenlikht References: <20081231133048.GA76399@mech-cluster238.men.bris.ac.uk> From: Lowell Gilbert Date: Wed, 31 Dec 2008 08:57:02 -0500 In-Reply-To: <20081231133048.GA76399@mech-cluster238.men.bris.ac.uk> (Anton Shterenlikht's message of "Wed\, 31 Dec 2008 13\:30\:48 +0000") Message-ID: <44k59gv45t.fsf@lowell-desk.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: obsolete /usr/share/doc/handbook ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 13:57:08 -0000 Anton Shterenlikht writes: > I update my local FBSD documentation with cvsup doc-all. > I note that the latest FBSD documentation is under /usr/doc. > However I still have /usr/share/doc which is about 2 years out of date. > > On the other hand /usr/doc does not appear in hier(7), > whereas /usr/share/doc does. > > Can I safely delete the obsolete docs under /usr/share/doc? > Why are there two doc folders? What you have downloaded is the source from which the docs are built. If you want to build them yourself, the directions are in the FreeBSD Documentation Project primer (which is in the "books" section of the documentation; I'd recommend you read it on the web -- for example, http://www.freebsd.org/doc/en_US.ISO8859-1/books/fdp-primer/ -- until you have a more recent local copy). If you aren't planning on building the documents yourself, just download them from the ftp sites. Every document includes a suggestion to do so from ftp://ftp.freebsd.org/pub/FreeBSD/doc/ -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 15:01:39 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C3E91065672 for ; Wed, 31 Dec 2008 15:01:39 +0000 (UTC) (envelope-from stanb@panix.com) Received: from l2mail1.panix.com (l2mail1.panix.com [166.84.1.75]) by mx1.freebsd.org (Postfix) with ESMTP id EFA2E8FC13 for ; Wed, 31 Dec 2008 15:01:38 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by l2mail1.panix.com (Postfix) with ESMTP id 25F6E5C1F5 for ; Wed, 31 Dec 2008 09:43:21 -0500 (EST) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail1.panix.com (Postfix) with ESMTP id 2A7CF29415 for ; Wed, 31 Dec 2008 09:43:13 -0500 (EST) Received: from teddy.fas.com (c-76-26-198-188.hsd1.sc.comcast.net [76.26.198.188]) by mailbackend.panix.com (Postfix) with ESMTP id ED9EB1AB2 for ; Wed, 31 Dec 2008 09:43:12 -0500 (EST) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1LI2Hw-0004aG-00 for ; Wed, 31 Dec 2008 09:43:12 -0500 Date: Wed, 31 Dec 2008 09:43:11 -0500 From: stan To: Free BSD Questions list Message-ID: <20081231144311.GA17410@teddy.fas.com> Mail-Followup-To: Free BSD Questions list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 09:32:46 up 233 days, 15:55, 1 user, load average: 0.05, 0.05, 0.02 User-Agent: Mutt/1.5.4i Sender: Stan Brown Subject: Scaner setup question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 15:01:39 -0000 I am trying to set up my HP C2520A scanner on 7.1 san-find-scanner finds it at /dev/pass0, byt that device is only acessible to root: crw------- 1 root operator 0, 104 Dec 30 18:10 /dev/pass0 Now obviously I could change this, but i am wondering what the "correct" way to allow ordinary users to access tis device is? -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 15:06:50 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43D49106566C for ; Wed, 31 Dec 2008 15:06:50 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by mx1.freebsd.org (Postfix) with ESMTP id 179748FC12 for ; Wed, 31 Dec 2008 15:06:49 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail2.panix.com (Postfix) with ESMTP id 4C1883480D for ; Wed, 31 Dec 2008 10:06:49 -0500 (EST) Received: from teddy.fas.com (c-76-26-198-188.hsd1.sc.comcast.net [76.26.198.188]) by mailbackend.panix.com (Postfix) with ESMTP id 2979BEF79 for ; Wed, 31 Dec 2008 10:06:49 -0500 (EST) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1LI2em-0004k4-00 for ; Wed, 31 Dec 2008 10:06:48 -0500 Date: Wed, 31 Dec 2008 10:06:48 -0500 From: stan To: Free BSD Questions list Message-ID: <20081231150648.GA18063@teddy.fas.com> Mail-Followup-To: Free BSD Questions list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 10:01:15 up 233 days, 16:23, 1 user, load average: 0.03, 0.02, 0.02 User-Agent: Mutt/1.5.4i Sender: Stan Brown Subject: PostgreSQL setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 15:06:50 -0000 I have installed PostgreSQL via the ports on a new 7.1 machine. I am trying to set it up. I found: http://www.freebsddiary.org/postgresql.php Whic says to run: su -l pgsql -c initdb But that gives me the following error message: initdb: no data directory specified You must identify the directory where the data for this database system will reside. Do this with either the invocation option -D or the environment variable PGDATA. But when I try: # su -l pgsql -c initdb -D /usr/local/postgres I get: Illegal option -D What am I doing wrong? -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 15:14:44 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2EEA106564A for ; Wed, 31 Dec 2008 15:14:44 +0000 (UTC) (envelope-from lenny@edpausa.com) Received: from skywalker.edpausa.com (mail.edpausa.com [67.88.41.162]) by mx1.freebsd.org (Postfix) with ESMTP id C15AF8FC14 for ; Wed, 31 Dec 2008 15:14:44 +0000 (UTC) (envelope-from lenny@edpausa.com) Received: from localhost (localhost.edpausa.com [127.0.0.1]) by skywalker.edpausa.com (Postfix) with ESMTP id A5BCBC9503 for ; Wed, 31 Dec 2008 10:03:49 -0500 (EST) X-Virus-Scanned: amavisd-new at edpausa.com Received: from skywalker.edpausa.com ([127.0.0.1]) by localhost (skywalker.edpausa.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M8CMuCwgNnHV for ; Wed, 31 Dec 2008 10:03:45 -0500 (EST) Received: from mail.edpausa.com (localhost.edpausa.com [127.0.0.1]) by skywalker.edpausa.com (Postfix) with ESMTP id 48844C9520 for ; Wed, 31 Dec 2008 10:03:45 -0500 (EST) Received: from 129.98.4.169 (SquirrelMail authenticated user lenny) by mail.edpausa.com with HTTP; Wed, 31 Dec 2008 10:03:45 -0500 (EST) Message-ID: <4278c8fe736003a1c147f3c44da8adc9.squirrel@mail.edpausa.com> Date: Wed, 31 Dec 2008 10:03:45 -0500 (EST) From: lenny@edpausa.com To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.16 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: named won't bind to external interface and ignores other options. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 15:14:45 -0000 bind 9.4.2/FreeBSD 7.0 seems to be ignoring many settings I enter in /etc/namedb/named.conf. zones are being properly served internally, but can't query or transfer from the outside. listen-on {216.154.117.227; 192.168.1.1;}; listen-on-v6 { none; }; tcp6 0 0 ::1.953 *.* LISTEN tcp4 0 0 127.0.0.1.953 *.* LISTEN tcp4 0 0 192.168.1.1.53 *.* LISTEN any ideas ? From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 15:15:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1080106566B for ; Wed, 31 Dec 2008 15:15:30 +0000 (UTC) (envelope-from andrewlylegould@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 6988E8FC23 for ; Wed, 31 Dec 2008 15:15:30 +0000 (UTC) (envelope-from andrewlylegould@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1873469fgb.35 for ; Wed, 31 Dec 2008 07:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=sQn5L0/6SMnI50b4t+s9zoUVkDO0cptsZI/x/GWDVUI=; b=dQ7LC9H6cN5SjjmYvA6nbkcnXtr7tPD+1T5+cHl48DwKu3i7GnULeNKvQrGNnig00e Lvn/getKv0WTFrdtEfIYeX2LsrslWWGPRN9BV+5npE9vPuZw75cEtIQCHVlcjDIeJUB4 jm+9d/Pnfjd5uAoyNS7FtwsQ1vKHx9KbN06Js= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=Kj7RSCi47ssni4fbybtMyAIig9D1bWo/Aac23lMOp7SVKRcYM3S4Jk0+7l0qXsQ8Fb KlIdQWqQxTFs3XSgE1WBVTHxYILuy+6+cbsRBFusz55TCouyr4HJrdEA05Eg8/Dystlh vEjti/UQ1RsjPWnr2gNnwResAm741jwFDThIM= Received: by 10.103.241.5 with SMTP id t5mr5736802mur.127.1230736528534; Wed, 31 Dec 2008 07:15:28 -0800 (PST) Received: by 10.103.229.16 with HTTP; Wed, 31 Dec 2008 07:15:28 -0800 (PST) Message-ID: Date: Wed, 31 Dec 2008 09:15:28 -0600 From: "Andrew Gould" To: "Free BSD Questions list" In-Reply-To: <20081231150648.GA18063@teddy.fas.com> MIME-Version: 1.0 References: <20081231150648.GA18063@teddy.fas.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: PostgreSQL setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 15:15:31 -0000 On Wed, Dec 31, 2008 at 9:06 AM, stan wrote: > I have installed PostgreSQL via the ports on a new 7.1 machine. I am trying > to set it up. > > I found: > > http://www.freebsddiary.org/postgresql.php > > Whic says to run: > > su -l pgsql -c initdb > > But that gives me the following error message: > > initdb: no data directory specified > You must identify the directory where the data for this database system > will reside. Do this with either the invocation option -D or the > environment variable PGDATA. > > But when I try: > > # su -l pgsql -c initdb -D /usr/local/postgres > > I get: > > Illegal option -D > > What am I doing wrong? > > I think the command has to be enclosed in quotation marks since it consists of multiple words. su thinks the '-D' is an argument for su rather than initdb. su -l pgsql -c 'initdb -D /usr/local/postgres' Best of luck, Andrew From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 15:17:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89F781065720 for ; Wed, 31 Dec 2008 15:17:01 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 4150A8FC2E for ; Wed, 31 Dec 2008 15:17:01 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1LI2oe-000H8l-8F for freebsd-questions@freebsd.org; Wed, 31 Dec 2008 18:17:00 +0300 To: Free BSD Questions list References: <20081231150648.GA18063@teddy.fas.com> From: Boris Samorodov Date: Wed, 31 Dec 2008 18:17:06 +0300 In-Reply-To: <20081231150648.GA18063@teddy.fas.com> (stan's message of "Wed\, 31 Dec 2008 10\:06\:48 -0500") Message-ID: <13963197@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: PostgreSQL setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 15:17:02 -0000 stan writes: > I have installed PostgreSQL via the ports on a new 7.1 machine. I am trying > to set it up. > > I found: > > http://www.freebsddiary.org/postgresql.php > > Whic says to run: > > su -l pgsql -c initdb > > But that gives me the following error message: > > initdb: no data directory specified > You must identify the directory where the data for this database system > will reside. Do this with either the invocation option -D or the > environment variable PGDATA. > > But when I try: > > # su -l pgsql -c initdb -D /usr/local/postgres > > I get: > > Illegal option -D > > What am I doing wrong? You haven't read a post-install message. ;-) You may read it now: ----- $ less /usr/ports/databases/postgresql83-server/files/pkg-message-server.in ----- WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 15:21:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FED6106564A for ; Wed, 31 Dec 2008 15:21:24 +0000 (UTC) (envelope-from pstreem@gmail.com) Received: from mail-bw0-f19.google.com (mail-bw0-f19.google.com [209.85.218.19]) by mx1.freebsd.org (Postfix) with ESMTP id 92DE28FC14 for ; Wed, 31 Dec 2008 15:21:23 +0000 (UTC) (envelope-from pstreem@gmail.com) Received: by bwz12 with SMTP id 12so15444348bwz.19 for ; Wed, 31 Dec 2008 07:21:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ZgRaWgppSiI66vbDYZprykc6i2hTW8q6ofRfuGDgmrE=; b=lVDOowyac+naz6v8ZiNZwW2HcmEW0e4BeceeN40kpJpgRQZox039YpJ+SEv+BTaRVN 89McXuNTe7iM4lqhpZbmahRRiik/wuNEnZDiwblshwSzBzQ6drtKNWkF5c+z2fvniU8N cK+eT/LAAumpId74lpQYCXkuqLbRJm0CKf7/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=lLh2/tq3YIjZluK9Leq987G998fD5dvOUDVVN7/ZdPFr0w2bwto9A6rPj3dKvrc5jp 5codBf22jjK6u9ItKwLfaLKw5TqzlICAPILXhz7E+XmFZJVajlfByY+9C6UAu8rNtb4q OEVUjR139y7HueO3AJIv14h2vCtLqnn3uZLGQ= Received: by 10.103.218.9 with SMTP id v9mr5746531muq.78.1230736880825; Wed, 31 Dec 2008 07:21:20 -0800 (PST) Received: by 10.103.40.12 with HTTP; Wed, 31 Dec 2008 07:21:20 -0800 (PST) Message-ID: <2c66535d0812310721i320944a2j8084119069eebf76@mail.gmail.com> Date: Wed, 31 Dec 2008 23:21:20 +0800 From: "PstreeM China" To: "Free BSD Questions list" In-Reply-To: <20081231150648.GA18063@teddy.fas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081231150648.GA18063@teddy.fas.com> Subject: Re: PostgreSQL setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 15:21:24 -0000 > just look /usr/ports/database/postgresql*-server/pkg-desc* init your db,run the command /usr/local/etc/rc.d/postgresql initdb first ,add the line into /etc/rc.conf:postgresql_enable="yes" From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 15:33:00 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF340106566B for ; Wed, 31 Dec 2008 15:32:59 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-bw0-f19.google.com (mail-bw0-f19.google.com [209.85.218.19]) by mx1.freebsd.org (Postfix) with ESMTP id 56BE38FC16 for ; Wed, 31 Dec 2008 15:32:59 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-bw0-f19.google.com with SMTP id 12so15456641bwz.19 for ; Wed, 31 Dec 2008 07:32:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=+oQmPKRUOqYW+dQdomkL8y2+H9T1fp+CVPH8+UM6Wxg=; b=UmZiYPBGN5TCwkIKbtCA3yhf4ct1d5V/pZoxlM74cd7K/q7Gp+yWiw7sM5TTYnI6Kj NKjjdj+YsRWFQe4u7UJDEmi5EtcrVZ3oTwVGlhYlWZlbtEOkTK2XLRqibQiekedNjuEv QVlfCR8gLnNRTJvehkYC9omjYVV3FeJmLSq9Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=ai5Wbgxvqc28vZdXzd2LuMs5J0Dtl1tyqmhToLikf+RLSVaPA1GeZoGKLirbUYyKj5 960l4LWW6hRxNGoEyZ8JUdoPFAAoYFaskBth7eEyIYvaWRA/AaOGsHfnb3XvH9l8f4g2 A2X9iCgpREOvCKvKGp5NgatGSh491OYkOG4Os= Received: by 10.181.201.18 with SMTP id d18mr6081465bkq.125.1230737578237; Wed, 31 Dec 2008 07:32:58 -0800 (PST) Received: by 10.181.9.10 with HTTP; Wed, 31 Dec 2008 07:32:58 -0800 (PST) Message-ID: <991123400812310732s5f23c072k18571437d9239c84@mail.gmail.com> Date: Wed, 31 Dec 2008 18:32:58 +0300 From: "Odhiambo Washington" To: "Andrew Gould" In-Reply-To: MIME-Version: 1.0 References: <20081231150648.GA18063@teddy.fas.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Free BSD Questions list Subject: Re: PostgreSQL setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 15:33:00 -0000 On Wed, Dec 31, 2008 at 6:15 PM, Andrew Gould wrote: > On Wed, Dec 31, 2008 at 9:06 AM, stan wrote: > > > I have installed PostgreSQL via the ports on a new 7.1 machine. I am > trying > > to set it up. > > > > I found: > > > > http://www.freebsddiary.org/postgresql.php > > > > Whic says to run: > > > > su -l pgsql -c initdb > > > > But that gives me the following error message: > > > > initdb: no data directory specified > > You must identify the directory where the data for this database system > > will reside. Do this with either the invocation option -D or the > > environment variable PGDATA. > > Go into the port directory for postgresql71 and so "make deinstall". After that, do script -a ~/PGSQL-INSTALL.txt make install clean Once that is done, go ito the ~/PGSQL-INSTALL.txt and read the lines towards the bottom. Those are sometimes calles Post-install message. They tell you exactly what to do on FreeBSD. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "The way my luck is running, if I was a politician I would be honest." Rodney Dangerfield From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 15:42:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09E60106564A for ; Wed, 31 Dec 2008 15:42:06 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.17]) by mx1.freebsd.org (Postfix) with ESMTP id 91FCF8FC1B for ; Wed, 31 Dec 2008 15:42:05 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from [84.92.153.232] (helo=curlew.milibyte.co.uk) by pih-relay04.plus.net with esmtp (Exim) id 1LI3Ct-0003ZD-7Q for freebsd-questions@freebsd.org; Wed, 31 Dec 2008 15:42:03 +0000 Received: by curlew.milibyte.co.uk with local (Exim 4.69) (envelope-from ) id 1LI3Cs-0000Ov-Jo for freebsd-questions@freebsd.org; Wed, 31 Dec 2008 15:42:03 +0000 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Wed, 31 Dec 2008 15:42:02 +0000 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812311542.02436.jmc-freebsd2@milibyte.co.uk> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false X-Plusnet-Relay: 5a7da3e092cad0a609be23f7b98ccfbd Subject: kgdb - problem obtaining a backtrace X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 15:42:06 -0000 Every time I plug my camera into the USB port on my 7.1-RC2 system I get a kernel panic. The camera causes no problem with 6.4-RELEASE on the same PC. I have submitted a PR for this problem (http://www.freebsd.org/cgi/query-pr.cgi?pr=130076) and attached kgdb output with a backtrace. Unfortunately the backtrace was of no use as the fault occurs in a loaded module and I was asked to use asf(8) output to load the modules into kgdb and create a more useful backtrace. Unfortunately when I did this I still got the same backtrace shown below. This is the first time I've needed to submit a PR and do things with crash dumps so I'm very much out of my depth in uncharted waters but willing to learn. Have I done something wrong with kgdb or is there some other problem with the dump file? ----------------------------------------------- curlew# kgdb /boot/kernel/kernel /var/crash/vmcore.0 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0x0 stack pointer = 0x28:0xe55ed698 frame pointer = 0x28:0xe55ed6d8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 14 (swi4: clock sio) trap number = 12 panic: page fault cpuid = 0 Uptime: 2m50s Physical memory: 1971 MB Dumping 70 MB: 55 39 23 7 Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kernel/acpi.ko.symbols...done. done. Loaded symbols for /boot/kernel/acpi.ko Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done. done. Loaded symbols for /boot/kernel/linux.ko #0 doadump () at pcpu.h:196 196 pcpu.h: No such file or directory. in pcpu.h (kgdb) source /root/.asf add symbol table from file "/boot/kernel/acpi.ko.symbols" at .text_addr = 0xc0db4350 .data_addr = 0xc0df5000 .bss_addr = 0xc0df73a0 add symbol table from file "/boot/kernel/linux.ko.symbols" at .text_addr = 0xc55a9080 .data_addr = 0xc55bf080 .bss_addr = 0xc55c16e0 (kgdb) backtrace #0 doadump () at pcpu.h:196 #1 0xc0795627 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #2 0xc07958f9 in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:574 #3 0xc0aa7b0c in trap_fatal (frame=0xe55ed658, eva=0) at /usr/src/sys/i386/i386/trap.c:939 #4 0xc0aa7d90 in trap_pfault (frame=0xe55ed658, usermode=0, eva=0) at /usr/src/sys/i386/i386/trap.c:852 #5 0xc0aa874c in trap (frame=0xe55ed658) at /usr/src/sys/i386/i386/trap.c:530 #6 0xc0a8e5bb in calltrap () at /usr/src/sys/i386/i386/exception.s:159 #7 0x00000000 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) q ----------------------------------------------- I don't know if I did things the right way but here's the procedure I followed to get the backtrace: The output of kldstat was: Id Refs Address Size Name 1 7 0xc0400000 9a1f68 kernel 2 1 0xc0da2000 6a2c4 acpi.ko 3 1 0xc5599000 22000 linux.ko ... and I ran the following command: asf -N /boot/kernel/kernel -M /var/crash/vmcore.0 -s /boot/kernel ... which produced the following .asf file: add-symbol-file /boot/kernel/acpi.ko.symbols 0xc0db4350 -s .data 0xc0df5000 -s .bss 0xc0df73a0 add-symbol-file /boot/kernel/linux.ko.symbols 0xc55a9080 -s .data 0xc55bf080 -s .bss 0xc55c16e0 ... which I specified in a source command in kgdb -- Mike Clarke From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 16:58:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CAD74106566C for ; Wed, 31 Dec 2008 16:58:51 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 7D2D38FC08 for ; Wed, 31 Dec 2008 16:58:46 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so3481969qwb.7 for ; Wed, 31 Dec 2008 08:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=m4pYc29QPT3EMJV1l9U2J0DP38ENOWhb2fDsFD27h6Q=; b=r70bXKMr88rgQ/0etzE9QxNg4jQEzbK6C0MMEvpbZX/Q5DZISz4g/hd6Mg4gvXSm98 R3hkB5tvua88yFkuhxHtdl8lwjMiL5CBQ8p/Jkud/v+XBkMb6ouV/RkKexBLEvVtAdPl smAV41kzhBzRDiSLyuL3XMV0PdoxLpAgvT42g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=fHHc+3h+iri8pFcPlkNuAHt79AAk1hWPqfl+izGnejpuB8itiimuvYe1CC2dlGeH3N BkU55f1eyN+DMEZdyJ5bcTNJOp9wMeuXRVzWt4hJdgzVqmK3Z77F/hPsrwW5Aey1sJfH gFfilUNpSXZnWSVl335KDpZW2kGEuq7IE9Ls4= Received: by 10.214.59.16 with SMTP id h16mr13996940qaa.300.1230742724817; Wed, 31 Dec 2008 08:58:44 -0800 (PST) Received: from ?192.168.1.2? (c-71-230-240-241.hsd1.pa.comcast.net [71.230.240.241]) by mx.google.com with ESMTPS id 9sm6647592yws.24.2008.12.31.08.58.42 (version=SSLv3 cipher=RC4-MD5); Wed, 31 Dec 2008 08:58:43 -0800 (PST) From: Glen Barber To: stan In-Reply-To: <20081231144311.GA17410@teddy.fas.com> References: <20081231144311.GA17410@teddy.fas.com> Content-Type: text/plain Date: Wed, 31 Dec 2008 11:58:48 -0500 Message-Id: <1230742728.28408.0.camel@orion> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Cc: Free BSD Questions list Subject: Re: Scaner setup question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 16:58:52 -0000 On Wed, 2008-12-31 at 09:43 -0500, stan wrote: > I am trying to set up my HP C2520A scanner on 7.1 san-find-scanner finds it > at /dev/pass0, byt that device is only acessible to root: > > crw------- 1 root operator 0, 104 Dec 30 18:10 /dev/pass0 > > Now obviously I could change this, but i am wondering what the "correct" > way to allow ordinary users to access tis device is? > Have a look at the man pages for devd, devfs.conf and devfs.rules. -- Glen Barber "Tell me and I forget. Teach me and I remember. Involve me and I learn." - Benjamin Franklin From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 17:35:18 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AA6A1065670 for ; Wed, 31 Dec 2008 17:35:18 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.freebsd.org (Postfix) with ESMTP id 3E3C38FC14 for ; Wed, 31 Dec 2008 17:35:18 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail1.panix.com (Postfix) with ESMTP id AFD3A29417 for ; Wed, 31 Dec 2008 12:35:17 -0500 (EST) Received: from teddy.fas.com (c-76-26-198-188.hsd1.sc.comcast.net [76.26.198.188]) by mailbackend.panix.com (Postfix) with ESMTP id 825B6DE3D for ; Wed, 31 Dec 2008 12:35:17 -0500 (EST) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1LI4yT-0005pp-00 for ; Wed, 31 Dec 2008 12:35:17 -0500 Date: Wed, 31 Dec 2008 12:35:17 -0500 From: stan To: Free BSD Questions list Message-ID: <20081231173517.GA22363@teddy.fas.com> Mail-Followup-To: Free BSD Questions list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 12:34:25 up 233 days, 18:56, 1 user, load average: 0.00, 0.06, 0.03 User-Agent: Mutt/1.5.4i Sender: Stan Brown Subject: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 17:35:18 -0000 I just built a new 7.1 machine, and when I ssh from a Linux box to it I get the following errors: usr/local/bin/xauth: (stdin):1: bad display name "unix:10.0" in "remove" command /usr/local/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add" command And I cannit get ssh to foward the X protocol. Yes I have added ForwardX11 yes to /etc/ssh/ssh_config What am I doing wrong? -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 17:41:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 768A1106566B for ; Wed, 31 Dec 2008 17:41:45 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id 296E28FC08 for ; Wed, 31 Dec 2008 17:41:44 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so3493431qwb.7 for ; Wed, 31 Dec 2008 09:41:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=elBbR2yBSlJXpcVfIkp0M4b7ZQyjjXY/m47w4S0uUv0=; b=QpTp7PQZTqypm/ncecduUv5Dl92i+JoXcRB8b/Du6JvekgG7LeinuXl+8yvpvvpeeR 5XRSVitxuUvIpLt3epfZsZTuWQLav8s4YBUPogI/sn0KSA2n6awruN2Tl+onfF6KVF0C DxVjYV0i8MP+S6B5M0VE0vWq2qrclMir+SYIc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=THnvhdXqkk/nxj6z5W1HJg1zEiMdMgEhb+WiO1uDqF8timC/yd75o4TY5Leey9KqOV MsWlGcUAfTRbQx1zK1Ay/AWhzB8kh84LWSpK2l7Yt+u46QSyFr2W8WbwMcCKfb1GFq4L RNivdNpYx0gVQ8/b4jxcuZEwCseTx/Rmefa+Q= Received: by 10.214.181.20 with SMTP id d20mr14050596qaf.378.1230745303487; Wed, 31 Dec 2008 09:41:43 -0800 (PST) Received: from ?192.168.1.2? (c-71-230-240-241.hsd1.pa.comcast.net [71.230.240.241]) by mx.google.com with ESMTPS id 6sm23873889ywi.36.2008.12.31.09.41.42 (version=SSLv3 cipher=RC4-MD5); Wed, 31 Dec 2008 09:41:42 -0800 (PST) From: Glen Barber To: stan In-Reply-To: <20081231173517.GA22363@teddy.fas.com> References: <20081231173517.GA22363@teddy.fas.com> Content-Type: text/plain Date: Wed, 31 Dec 2008 12:41:48 -0500 Message-Id: <1230745308.28408.2.camel@orion> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Cc: Free BSD Questions list Subject: Re: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 17:41:45 -0000 On Wed, 2008-12-31 at 12:35 -0500, stan wrote: > I just built a new 7.1 machine, and when I ssh from a Linux box to it I get > the following errors: > > usr/local/bin/xauth: (stdin):1: bad display name "unix:10.0" in "remove" > command > /usr/local/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add" > command > > And I cannit get ssh to foward the X protocol. Yes I have added > > ForwardX11 yes to /etc/ssh/ssh_config > > What am I doing wrong? > I assume you have xserver on the FreeBSD box? Check your display name. I'm pretty sure it's supposed to be 'hostname:0:0'. -- Glen Barber "Tell me and I forget. Teach me and I remember. Involve me and I learn." - Benjamin Franklin From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 17:52:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66D00106566B for ; Wed, 31 Dec 2008 17:52:42 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by mx1.freebsd.org (Postfix) with ESMTP id 0C75C8FC1A for ; Wed, 31 Dec 2008 17:52:41 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail2.panix.com (Postfix) with ESMTP id 36A823480A for ; Wed, 31 Dec 2008 12:52:41 -0500 (EST) Received: from teddy.fas.com (c-76-26-198-188.hsd1.sc.comcast.net [76.26.198.188]) by mailbackend.panix.com (Postfix) with ESMTP id 07A73E89A for ; Wed, 31 Dec 2008 12:52:41 -0500 (EST) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1LI5FI-0005vk-00 for ; Wed, 31 Dec 2008 12:52:40 -0500 Date: Wed, 31 Dec 2008 12:52:40 -0500 From: stan To: Free BSD Questions list Message-ID: <20081231175240.GA22662@teddy.fas.com> Mail-Followup-To: Free BSD Questions list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 12:45:55 up 233 days, 19:08, 1 user, load average: 0.00, 0.01, 0.00 User-Agent: Mutt/1.5.4i Sender: Stan Brown Subject: scanner setup question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 17:52:42 -0000 I am trying to set up a new machine that has an HP scanner atached to it. I am a bit confused at the moment. I am trying to set up to allow users to acess this scanner. I have added this to /etc/devfs.conf perm pass0 0660 And that seesm to work: # ls -l /dev/pas* crw-rw---- 1 root operator 0, 104 Dec 31 12:07 /dev/pass0 I have added my suer to the operator group # grep stan /etc/gro* wheel:*:0:root,stan operator:*:5:root,stan network:*:69:stan stan:*:210: Running san-find-scanner as me finds the sacnner: found SCSI processor "HP C2520A 3503" at /dev/pass0 But, $ scanimage -L No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). What am I doing wrong? BTW as root: # scanimage -L device `hp:/dev/pass0' is a Hewlett-Packard C2520A flatbed scanner -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 17:54:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D607310656EE for ; Wed, 31 Dec 2008 17:54:30 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.freebsd.org (Postfix) with ESMTP id 76FDE8FC20 for ; Wed, 31 Dec 2008 17:54:30 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail1.panix.com (Postfix) with ESMTP id 187EE2940E; Wed, 31 Dec 2008 12:54:30 -0500 (EST) Received: from teddy.fas.com (c-76-26-198-188.hsd1.sc.comcast.net [76.26.198.188]) by mailbackend.panix.com (Postfix) with ESMTP id D8585D329; Wed, 31 Dec 2008 12:54:29 -0500 (EST) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1LI5H3-0005w0-00; Wed, 31 Dec 2008 12:54:29 -0500 Date: Wed, 31 Dec 2008 12:54:29 -0500 From: stan To: Glen Barber Message-ID: <20081231175429.GB22662@teddy.fas.com> Mail-Followup-To: Glen Barber , Free BSD Questions list References: <20081231173517.GA22363@teddy.fas.com> <1230745308.28408.2.camel@orion> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1230745308.28408.2.camel@orion> X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 12:45:55 up 233 days, 19:08, 1 user, load average: 0.00, 0.01, 0.00 User-Agent: Mutt/1.5.4i Sender: Stan Brown Cc: Free BSD Questions list Subject: Re: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 17:54:31 -0000 On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote: > On Wed, 2008-12-31 at 12:35 -0500, stan wrote: > > I just built a new 7.1 machine, and when I ssh from a Linux box to it I get > > the following errors: > > > > usr/local/bin/xauth: (stdin):1: bad display name "unix:10.0" in "remove" > > command > > /usr/local/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add" > > command > > > > And I cannit get ssh to foward the X protocol. Yes I have added > > > > ForwardX11 yes to /etc/ssh/ssh_config > > > > What am I doing wrong? > > > > I assume you have xserver on the FreeBSD box? Check your display name. > I'm pretty sure it's supposed to be 'hostname:0:0'. > Perhaps I was not clear. Yes I do have the X server running on the FreeBSD machine, but that should not matter, as I am ssh'ing _from_ the Linux box which does have a working X server on it also, and can ssh to other machines and get X fowarded corectly. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 17:58:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3232A1065670 for ; Wed, 31 Dec 2008 17:58:16 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id D707B8FC1B for ; Wed, 31 Dec 2008 17:58:15 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so3497516qwb.7 for ; Wed, 31 Dec 2008 09:58:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=U9ldjdUb4aIFW3IZqfVM0QYaRHvKZrhvr301Z1urwnk=; b=v48P46EcjENxK/LHc/oMkrFhjGfMhuhidtHDijj22+E2+HNRcCcV1mNstjchs7YsiO 5qA+k8o9pOn4GXRuW9466WmTU1llEq1wgf4T6RlGfAl5yw0JwSsCdy3lMTS/8IlxtxQx wCXsR2XRmE4GrgUuy9nCz3P7HwM89Wv/U6oZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=fS2azqEmF9pKIXvRnZbZ05sgBYd8bFqOUD4y1i8tArIqCxqbtouPN3jkHsXB2fuEEy qMVWcu9Y8jZ2gHWxLLimidDoCySjTn3BLvKDqZClswIRaIkOytDC0IBAw8FQBEirTIVZ z6kf6vJUDn5d3ycr7NJc2DtoRqcY6FPy1Tr+s= Received: by 10.214.243.6 with SMTP id q6mr14083285qah.295.1230746294304; Wed, 31 Dec 2008 09:58:14 -0800 (PST) Received: from ?192.168.1.2? (c-71-230-240-241.hsd1.pa.comcast.net [71.230.240.241]) by mx.google.com with ESMTPS id 6sm25535711ywp.18.2008.12.31.09.58.12 (version=SSLv3 cipher=RC4-MD5); Wed, 31 Dec 2008 09:58:13 -0800 (PST) From: Glen Barber To: stan In-Reply-To: <20081231175429.GB22662@teddy.fas.com> References: <20081231173517.GA22363@teddy.fas.com> <1230745308.28408.2.camel@orion> <20081231175429.GB22662@teddy.fas.com> Content-Type: text/plain Date: Wed, 31 Dec 2008 12:58:18 -0500 Message-Id: <1230746298.28408.5.camel@orion> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Cc: Free BSD Questions list Subject: Re: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 17:58:16 -0000 On Wed, 2008-12-31 at 12:54 -0500, stan wrote: > On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote: > > On Wed, 2008-12-31 at 12:35 -0500, stan wrote: > > > I just built a new 7.1 machine, and when I ssh from a Linux box to it I get > > > the following errors: > > > > > > usr/local/bin/xauth: (stdin):1: bad display name "unix:10.0" in "remove" > > > command > > > /usr/local/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add" > > > command > > > > > > And I cannit get ssh to foward the X protocol. Yes I have added > > > > > > ForwardX11 yes to /etc/ssh/ssh_config > > > > > > What am I doing wrong? > > > > > > > I assume you have xserver on the FreeBSD box? Check your display name. > > I'm pretty sure it's supposed to be 'hostname:0:0'. > > > Perhaps I was not clear. Yes I do have the X server running on the FreeBSD > machine, but that should not matter, as I am ssh'ing _from_ the Linux box > which does have a working X server on it also, and can ssh to other > machines and get X fowarded corectly. > You need an xserver to connect *to*, which is why I asked. -- Glen Barber "Tell me and I forget. Teach me and I remember. Involve me and I learn." - Benjamin Franklin From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 18:01:39 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B934610656C6 for ; Wed, 31 Dec 2008 18:01:39 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq2.gn.mail.iss.as9143.net (smtpq2.gn.mail.iss.as9143.net [212.54.34.165]) by mx1.freebsd.org (Postfix) with ESMTP id 4A0B58FC12 for ; Wed, 31 Dec 2008 18:01:39 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [212.54.34.138] (helo=smtp7.gn.mail.iss.as9143.net) by smtpq2.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LI5Nx-00075R-P5; Wed, 31 Dec 2008 19:01:37 +0100 Received: from [84.25.72.219] (helo=ra.egypt.nl) by smtp7.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LI5Nq-0001zo-0E; Wed, 31 Dec 2008 19:01:30 +0100 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id D8E9539887; Wed, 31 Dec 2008 19:01:27 +0100 (CET) Message-ID: <495BB378.5000004@boosten.org> Date: Wed, 31 Dec 2008 19:01:28 +0100 From: Peter Boosten User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Glen Barber References: <20081231173517.GA22363@teddy.fas.com> <1230745308.28408.2.camel@orion> <20081231175429.GB22662@teddy.fas.com> <1230746298.28408.5.camel@orion> In-Reply-To: <1230746298.28408.5.camel@orion> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1LI5Nq-0001zo-0E X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.913, required 5, BAYES_00 -2.60, SPF_NEUTRAL 0.69) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No Cc: stan , Free BSD Questions list Subject: Re: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 18:01:40 -0000 Glen Barber wrote: > On Wed, 2008-12-31 at 12:54 -0500, stan wrote: >> On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote: >>> On Wed, 2008-12-31 at 12:35 -0500, stan wrote: >>>> I just built a new 7.1 machine, and when I ssh from a Linux box to it I get >>>> the following errors: >>>> >>>> usr/local/bin/xauth: (stdin):1: bad display name "unix:10.0" in "remove" >>>> command >>>> /usr/local/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add" >>>> command >>>> >>>> And I cannit get ssh to foward the X protocol. Yes I have added >>>> >>>> ForwardX11 yes to /etc/ssh/ssh_config >>>> >>>> What am I doing wrong? >>>> >>> I assume you have xserver on the FreeBSD box? Check your display name. >>> I'm pretty sure it's supposed to be 'hostname:0:0'. >>> >> Perhaps I was not clear. Yes I do have the X server running on the FreeBSD >> machine, but that should not matter, as I am ssh'ing _from_ the Linux box >> which does have a working X server on it also, and can ssh to other >> machines and get X fowarded corectly. >> > > You need an xserver to connect *to*, which is why I asked. Nope, not true: you can ssh to client without x server (from an X server) and start x clients to display on your local machine. Through the ssh session, your display will be localhost:10:0 Peter -- http://www.boosten.org From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 18:02:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A969A106568F for ; Wed, 31 Dec 2008 18:02:41 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id 7E9EF8FC0C for ; Wed, 31 Dec 2008 18:02:41 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 2180 invoked from network); 31 Dec 2008 18:02:40 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 31 Dec 2008 18:02:40 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id 3754550820; Wed, 31 Dec 2008 13:02:36 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id B503B1D1AF; Wed, 31 Dec 2008 13:02:36 -0500 (EST) To: Glen Barber References: <20081231173517.GA22363@teddy.fas.com> <1230745308.28408.2.camel@orion> <20081231175429.GB22662@teddy.fas.com> <1230746298.28408.5.camel@orion> From: Lowell Gilbert Date: Wed, 31 Dec 2008 13:02:36 -0500 In-Reply-To: <1230746298.28408.5.camel@orion> (Glen Barber's message of "Wed\, 31 Dec 2008 12\:58\:18 -0500") Message-ID: <44sko4ql37.fsf@lowell-desk.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: stan , Free BSD Questions list Subject: Re: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 18:02:42 -0000 Glen Barber writes: > On Wed, 2008-12-31 at 12:54 -0500, stan wrote: >> On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote: >> > On Wed, 2008-12-31 at 12:35 -0500, stan wrote: >> > > I just built a new 7.1 machine, and when I ssh from a Linux box to it I get >> > > the following errors: >> > > >> > > usr/local/bin/xauth: (stdin):1: bad display name "unix:10.0" in "remove" >> > > command >> > > /usr/local/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add" >> > > command >> > > >> > > And I cannit get ssh to foward the X protocol. Yes I have added >> > > >> > > ForwardX11 yes to /etc/ssh/ssh_config >> > > >> > > What am I doing wrong? >> > > >> > >> > I assume you have xserver on the FreeBSD box? Check your display name. >> > I'm pretty sure it's supposed to be 'hostname:0:0'. >> > >> Perhaps I was not clear. Yes I do have the X server running on the FreeBSD >> machine, but that should not matter, as I am ssh'ing _from_ the Linux box >> which does have a working X server on it also, and can ssh to other >> machines and get X fowarded corectly. >> > > You need an xserver to connect *to*, which is why I asked. No, Stan is right; an X server is only needed on the machine that actually hosts the display. The xauth error message are indicating the problem, but I don't know what they're telling us. The hostname should probably be "localhost", and sshd_config is set up to do that by default. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 18:02:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6605010656CD for ; Wed, 31 Dec 2008 18:02:53 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.freebsd.org (Postfix) with ESMTP id 20A098FC1D for ; Wed, 31 Dec 2008 18:02:53 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail1.panix.com (Postfix) with ESMTP id C2E0829416; Wed, 31 Dec 2008 13:02:52 -0500 (EST) Received: from teddy.fas.com (c-76-26-198-188.hsd1.sc.comcast.net [76.26.198.188]) by mailbackend.panix.com (Postfix) with ESMTP id 8C4B2D219; Wed, 31 Dec 2008 13:02:52 -0500 (EST) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1LI5PA-00061K-00; Wed, 31 Dec 2008 13:02:52 -0500 Date: Wed, 31 Dec 2008 13:02:52 -0500 From: stan To: Glen Barber Message-ID: <20081231180252.GD22662@teddy.fas.com> Mail-Followup-To: Glen Barber , Free BSD Questions list References: <20081231173517.GA22363@teddy.fas.com> <1230745308.28408.2.camel@orion> <20081231175429.GB22662@teddy.fas.com> <1230746298.28408.5.camel@orion> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1230746298.28408.5.camel@orion> X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 12:45:55 up 233 days, 19:08, 1 user, load average: 0.00, 0.01, 0.00 User-Agent: Mutt/1.5.4i Sender: Stan Brown Cc: Free BSD Questions list Subject: Re: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 18:02:54 -0000 On Wed, Dec 31, 2008 at 12:58:18PM -0500, Glen Barber wrote: > On Wed, 2008-12-31 at 12:54 -0500, stan wrote: > > On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote: > > > On Wed, 2008-12-31 at 12:35 -0500, stan wrote: > > > > I just built a new 7.1 machine, and when I ssh from a Linux box to it I get > > > > the following errors: > > > > > > > > usr/local/bin/xauth: (stdin):1: bad display name "unix:10.0" in "remove" > > > > command > > > > /usr/local/bin/xauth: (stdin):2: bad display name "unix:10.0" in "add" > > > > command > > > > > > > > And I cannit get ssh to foward the X protocol. Yes I have added > > > > > > > > ForwardX11 yes to /etc/ssh/ssh_config > > > > > > > > What am I doing wrong? > > > > > > > > > > I assume you have xserver on the FreeBSD box? Check your display name. > > > I'm pretty sure it's supposed to be 'hostname:0:0'. > > > > > Perhaps I was not clear. Yes I do have the X server running on the FreeBSD > > machine, but that should not matter, as I am ssh'ing _from_ the Linux box > > which does have a working X server on it also, and can ssh to other > > machines and get X fowarded corectly. > > > > You need an xserver to connect *to*, which is why I asked. > On the FreeBSD machine? I may be confused, but I think that on the FreeBSD machine the "client" tassk (eg xclock) is run, and it is pointed to the server on the machine that I am connecting _from_. Am I confused? -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 18:21:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D68B106564A for ; Wed, 31 Dec 2008 18:21:59 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq2.gn.mail.iss.as9143.net (smtpq2.gn.mail.iss.as9143.net [212.54.34.165]) by mx1.freebsd.org (Postfix) with ESMTP id 1DFA78FC12 for ; Wed, 31 Dec 2008 18:21:58 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [212.54.34.133] (helo=smtp2.gn.mail.iss.as9143.net) by smtpq2.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LI5he-00070P-0X; Wed, 31 Dec 2008 19:21:58 +0100 Received: from [84.25.72.219] (helo=ra.egypt.nl) by smtp2.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LI5hc-0002pV-Q3; Wed, 31 Dec 2008 19:21:56 +0100 Received: from [192.168.13.81] (iPod.egypt.nl [192.168.13.81]) by ra.egypt.nl (Postfix) with ESMTP id 008A739840; Wed, 31 Dec 2008 19:21:55 +0100 (CET) References: <20081231173517.GA22363@teddy.fas.com> <1230745308.28408.2.camel@orion> <20081231175429.GB22662@teddy.fas.com> <1230746298.28408.5.camel@orion> <495BB378.5000004@boosten.org> Message-Id: From: Peter Boosten To: Peter Boosten In-Reply-To: <495BB378.5000004@boosten.org> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (5G77) Mime-Version: 1.0 (iPod Mail 5G77) Date: Wed, 31 Dec 2008 19:24:02 +0100 X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1LI5hc-0002pV-Q3 X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.054, required 5, BAYES_20 -0.74, SPF_NEUTRAL 0.69) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No Cc: stan , Glen Barber , Free BSD Questions list Subject: Re: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 18:21:59 -0000 On 31 dec 2008, at 19:01, Peter Boosten wrote: > > > Glen Barber wrote: >> On Wed, 2008-12-31 at 12:54 -0500, stan wrote: >>> On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote: >>>> On Wed, 2008-12-31 at 12:35 -0500, stan wrote: >>>>> I just built a new 7.1 machine, and when I ssh from a Linux box >>>>> to it I get >>>>> the following errors: >>>>> >>>>> usr/local/bin/xauth: (stdin):1: bad display name "unix:10.0" in >>>>> "remove" >>>>> command >>>>> /usr/local/bin/xauth: (stdin):2: bad display name "unix:10.0" >>>>> in "add" >>>>> command >>>>> >>>>> And I cannit get ssh to foward the X protocol. Yes I have added >>>>> >>>>> ForwardX11 yes to /etc/ssh/ssh_config >>>>> >>>>> What am I doing wrong? >>>>> >>>> I assume you have xserver on the FreeBSD box? Check your display >>>> name. >>>> I'm pretty sure it's supposed to be 'hostname:0:0'. >>>> >>> Perhaps I was not clear. Yes I do have the X server running on the >>> FreeBSD >>> machine, but that should not matter, as I am ssh'ing _from_ the >>> Linux box >>> which does have a working X server on it also, and can ssh to other >>> machines and get X fowarded corectly. >>> >> >> You need an xserver to connect *to*, which is why I asked. > > Nope, not true: you can ssh to client without x server (from an X > server) and start x clients to display on your local machine. > > Through the ssh session, your display will be localhost:10:0 > > Peter > > After re-reading Glens remark he's actually right: the client connects * to* the server, however the confusion starts when connecting to the client with ssh. Peter From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 18:30:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2836C106566C for ; Wed, 31 Dec 2008 18:30:25 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id CDD298FC12 for ; Wed, 31 Dec 2008 18:30:24 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so3504898qwb.7 for ; Wed, 31 Dec 2008 10:30:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=lQ7oe1eYKiBxQw0dCha7qxIKRsSDUKt7CY2yzb+hO/I=; b=FHKjRS5U8Ubjg4hRHvFGgVdmEptkQMRU77Ew/mvzUEMYHl+JfAzC5O6/a0GmntAXP6 Ao++QZymXoJ+A3X5ulKbNnb0qw4Yf5hxUR8/LsVCQ+ofN6U+J0Q8hTlm9m2PTXfD5UMm cJ1SrcaE8kKjEbhrtmS+IJXQhX66ugO2M5Xww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=cvAOMv4jKyFX3YMYbe2XVrQmTYITRZVuj+jIX9joDBXEwN3rLeBNjWLaooMcqVu047 j1CZEgOZajRoYG4WJYYra1YMNghsT6pFCDJr5q5gie8VVOetJ9Cw8T5ZKpnb6pjLtsXR qXztmEZNykFJG7DAPgN0Widt54fQAbo/wX9GQ= Received: by 10.214.59.12 with SMTP id h12mr14111778qaa.291.1230748223142; Wed, 31 Dec 2008 10:30:23 -0800 (PST) Received: from ?192.168.1.2? (c-71-230-240-241.hsd1.pa.comcast.net [71.230.240.241]) by mx.google.com with ESMTPS id 9sm15471561ywf.43.2008.12.31.10.30.21 (version=SSLv3 cipher=RC4-MD5); Wed, 31 Dec 2008 10:30:22 -0800 (PST) From: Glen Barber To: Lowell Gilbert In-Reply-To: <44sko4ql37.fsf@lowell-desk.lan> References: <20081231173517.GA22363@teddy.fas.com> <1230745308.28408.2.camel@orion> <20081231175429.GB22662@teddy.fas.com> <1230746298.28408.5.camel@orion> <44sko4ql37.fsf@lowell-desk.lan> Content-Type: text/plain Date: Wed, 31 Dec 2008 13:30:28 -0500 Message-Id: <1230748228.28408.7.camel@orion> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Cc: stan , Free BSD Questions list Subject: Re: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 18:30:25 -0000 On Wed, 2008-12-31 at 13:02 -0500, Lowell Gilbert wrote: > No, Stan is right; an X server is only needed on the machine that > actually hosts the display. > > The xauth error message are indicating the problem, but I don't > know what they're telling us. The hostname should probably be > "localhost", and sshd_config is set up to do that by default. > Right. The host is hosting the display -- his Linux machine is the client *to* the Xserver. -- Glen Barber "Tell me and I forget. Teach me and I remember. Involve me and I learn." - Benjamin Franklin From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 18:32:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 503FA1065673 for ; Wed, 31 Dec 2008 18:32:21 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 011588FC08 for ; Wed, 31 Dec 2008 18:32:20 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so3505294qwb.7 for ; Wed, 31 Dec 2008 10:32:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=hm6HQ04MW37q7+DdLRmb8yfUmeMEbXLhW54+IZvuonI=; b=hfneGKwLVZtjAiHld9Vnk/Qn5B/ajA2wPN/Y2roeTKIws87CQgZqIhydNwH70G5e/u vM3F+DmZRX6gzWXmT2CQ5vdpmaKWA5b1DjFBLeSf4IosoZfrsQj+RIHRqmnUxzTJoxap aVFeF502i8gjFSrk4uMFtR9AGwkjo4q/fzvkQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=V71zDCybRcl5OSW6ZaEI3SyZhl0tZoRbKKnJUGArm3clPSCSE/oUH/vhwPHkX6bKU2 7hlgfxqsvyJ3Rtzek1FM1pUiEc4d3Pcau1g3zDb4rPs0izyb/a13rjvWRGYTYjZ0P/Q7 kw3JGXaDcNcgTpVCPu5LcKVCbdMcnlixpWoxQ= Received: by 10.214.241.19 with SMTP id o19mr14171293qah.29.1230748338995; Wed, 31 Dec 2008 10:32:18 -0800 (PST) Received: from ?192.168.1.2? (c-71-230-240-241.hsd1.pa.comcast.net [71.230.240.241]) by mx.google.com with ESMTPS id 5sm2183983ywd.42.2008.12.31.10.32.17 (version=SSLv3 cipher=RC4-MD5); Wed, 31 Dec 2008 10:32:18 -0800 (PST) From: Glen Barber To: stan In-Reply-To: <20081231180252.GD22662@teddy.fas.com> References: <20081231173517.GA22363@teddy.fas.com> <1230745308.28408.2.camel@orion> <20081231175429.GB22662@teddy.fas.com> <1230746298.28408.5.camel@orion> <20081231180252.GD22662@teddy.fas.com> Content-Type: text/plain Date: Wed, 31 Dec 2008 13:32:23 -0500 Message-Id: <1230748343.28408.10.camel@orion> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Cc: Free BSD Questions list Subject: Re: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 18:32:21 -0000 On Wed, 2008-12-31 at 13:02 -0500, stan wrote: > On the FreeBSD machine? I may be confused, but I think that on the FreeBSD > machine the "client" tassk (eg xclock) is run, and it is pointed to the > server on the machine that I am connecting _from_. Am I confused? > The task runs on the host machine (using the Xserver) and is forwarded over SSH to the client machine. The "client task" you refer to is on the "host" machine. -- Glen Barber "Tell me and I forget. Teach me and I remember. Involve me and I learn." - Benjamin Franklin From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 18:53:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04718106566B for ; Wed, 31 Dec 2008 18:53:25 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from rv-out-0304.google.com (rv-out-0304.google.com [209.85.198.214]) by mx1.freebsd.org (Postfix) with ESMTP id D95488FC13 for ; Wed, 31 Dec 2008 18:53:24 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: by rv-out-0304.google.com with SMTP id b20so13560163rvf.31 for ; Wed, 31 Dec 2008 10:53:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.115.109.18 with SMTP id l18mr9506773wam.8.1230749603697; Wed, 31 Dec 2008 10:53:23 -0800 (PST) Message-ID: <0016364574acef9556045f5c38b7@google.com> Date: Wed, 31 Dec 2008 18:53:23 +0000 From: af300wsm@gmail.com To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Using PHP PDO on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 18:53:25 -0000 Hello, So, I've installed from ports the following: sniper# pkg_info | grep php php5-5.2.6_2 PHP Scripting Language php5-pdo-5.2.6_2 The pdo shared extension for php php5-pdo_pgsql-5.2.6_1 The pdo_pgsql shared extension for php php5-pgsql-5.2.6_1 The pgsql shared extension for php I noticed in /usr/local/etc/php there is a file named, extensions.ini with the following contents: sniper# cat php/extensions.ini extension=pgsql.so extension=pdo.so extension=pdo_pgsql.so However, when I try to use the PDO in my php script I get this error from the interpreter: could not find driver Now, I don't know what I'm missing. I've tried renaming /usr/local/etc/php.ini-recommended to php.ini. However, after reloading apache, I'm still getting the, "could not find driver," error. So, what's the secret to using this extension on FreeBSD? Andy From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 19:11:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31BEE1065673 for ; Wed, 31 Dec 2008 19:11:29 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by mx1.freebsd.org (Postfix) with ESMTP id C6C038FC18 for ; Wed, 31 Dec 2008 19:11:28 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail2.panix.com (Postfix) with ESMTP id 34D783481B; Wed, 31 Dec 2008 14:11:28 -0500 (EST) Received: from teddy.fas.com (c-76-26-198-188.hsd1.sc.comcast.net [76.26.198.188]) by mailbackend.panix.com (Postfix) with ESMTP id 23C6B174C; Wed, 31 Dec 2008 14:11:28 -0500 (EST) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1LI6TX-0006a8-00; Wed, 31 Dec 2008 14:11:27 -0500 Date: Wed, 31 Dec 2008 14:11:27 -0500 From: stan To: Glen Barber Message-ID: <20081231191127.GA25246@teddy.fas.com> Mail-Followup-To: Glen Barber , Free BSD Questions list References: <20081231173517.GA22363@teddy.fas.com> <1230745308.28408.2.camel@orion> <20081231175429.GB22662@teddy.fas.com> <1230746298.28408.5.camel@orion> <20081231180252.GD22662@teddy.fas.com> <1230748343.28408.10.camel@orion> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1230748343.28408.10.camel@orion> X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 14:07:42 up 233 days, 20:30, 1 user, load average: 0.16, 0.07, 0.02 User-Agent: Mutt/1.5.4i Sender: Stan Brown Cc: Free BSD Questions list Subject: Re: ssh and X11 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 19:11:29 -0000 On Wed, Dec 31, 2008 at 01:32:23PM -0500, Glen Barber wrote: > On Wed, 2008-12-31 at 13:02 -0500, stan wrote: > > On the FreeBSD machine? I may be confused, but I think that on the FreeBSD > > machine the "client" tassk (eg xclock) is run, and it is pointed to the > > server on the machine that I am connecting _from_. Am I confused? > > > > The task runs on the host machine (using the Xserver) and is forwarded > over SSH to the client machine. The "client task" you refer to is on > the "host" machine. > The terms sever, and client are backwards from the intuitve expectaion in the X world. The "server" is the process (X) taht actually updates the screen with graphics (eg draw box). The "client" is the process that wisfes to access the serrver to put somehting on the screen (eg xclcok). So, in this case the "server" is on the Linux machine, and the client(s0 are on the FreeBSD machine. For the record, I solved the problem. Thier was no "hostname" entry in /etc/rc.conf. hostname returned nothig. Fixing this, and rebooting cured this problem. Thaks to veryone for making me think this through. Now, if somebady cna just give me a clue on the scanner issue (see seperate thread). -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 19:47:04 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEE1510656BF for ; Wed, 31 Dec 2008 19:47:04 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 8EAD88FC19 for ; Wed, 31 Dec 2008 19:47:04 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 4D3D2AFBC02; Wed, 31 Dec 2008 10:47:03 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Wed, 31 Dec 2008 10:46:50 -0900 User-Agent: KMail/1.9.10 References: <20081231175240.GA22662@teddy.fas.com> In-Reply-To: <20081231175240.GA22662@teddy.fas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812311046.50890.fbsd.questions@rachie.is-a-geek.net> Cc: stan Subject: Re: scanner setup question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 19:47:05 -0000 On Wednesday 31 December 2008 08:52:40 stan wrote: > I am trying to set up a new machine that has an HP scanner atached to it. I > am a bit confused at the moment. > > I am trying to set up to allow users to acess this scanner. I have added > this to /etc/devfs.conf > > perm pass0 0660 > > And that seesm to work: > > # ls -l /dev/pas* > crw-rw---- 1 root operator 0, 104 Dec 31 12:07 /dev/pass0 > > I have added my suer to the operator group > > # grep stan /etc/gro* > wheel:*:0:root,stan > operator:*:5:root,stan > network:*:69:stan > stan:*:210: > > Running san-find-scanner as me finds the sacnner: > > > found SCSI processor "HP C2520A 3503" at /dev/pass0 > > But, > > $ scanimage -L > > No scanners were identified. If you were expecting something different, > check that the scanner is plugged in, turned on and detected by the > sane-find-scanner tool (if appropriate). Please read the documentation > which came with this software (README, FAQ, manpages). > > What am I doing wrong? No experience with a scanner, but for a CD writer you also need access to the xpt device. It's worth a shot. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 19:48:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C1001065674 for ; Wed, 31 Dec 2008 19:48:19 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 6AFB88FC17 for ; Wed, 31 Dec 2008 19:48:19 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id C204FAFBC02; Wed, 31 Dec 2008 10:48:18 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Wed, 31 Dec 2008 10:48:18 -0900 User-Agent: KMail/1.9.10 References: <4278c8fe736003a1c147f3c44da8adc9.squirrel@mail.edpausa.com> In-Reply-To: <4278c8fe736003a1c147f3c44da8adc9.squirrel@mail.edpausa.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812311048.18460.fbsd.questions@rachie.is-a-geek.net> Cc: lenny@edpausa.com Subject: Re: named won't bind to external interface and ignores other options. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 19:48:20 -0000 On Wednesday 31 December 2008 06:03:45 lenny@edpausa.com wrote: > bind 9.4.2/FreeBSD 7.0 seems to be ignoring many settings I enter in > /etc/namedb/named.conf. zones are being properly served internally, but > can't query or transfer from the outside. > > > > listen-on {216.154.117.227; 192.168.1.1;}; > listen-on-v6 { none; }; > > > tcp6 0 0 ::1.953 *.* LISTEN > tcp4 0 0 127.0.0.1.953 *.* LISTEN > tcp4 0 0 192.168.1.1.53 *.* LISTEN > > > any ideas ? Any clues in /var/log/messages? 216.154.117.227 is on a local interface? -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 19:55:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 041A81065672 for ; Wed, 31 Dec 2008 19:55:19 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id C69B38FC19 for ; Wed, 31 Dec 2008 19:55:18 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 53EADAFBC02; Wed, 31 Dec 2008 10:55:18 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Wed, 31 Dec 2008 10:55:17 -0900 User-Agent: KMail/1.9.10 References: <20081231150648.GA18063@teddy.fas.com> <991123400812310732s5f23c072k18571437d9239c84@mail.gmail.com> In-Reply-To: <991123400812310732s5f23c072k18571437d9239c84@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812311055.17889.fbsd.questions@rachie.is-a-geek.net> Cc: Odhiambo Washington , Andrew Gould Subject: Re: PostgreSQL setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 19:55:19 -0000 On Wednesday 31 December 2008 06:32:58 Odhiambo Washington wrote: > On Wed, Dec 31, 2008 at 6:15 PM, Andrew Gould wrote: > > On Wed, Dec 31, 2008 at 9:06 AM, stan wrote: > > > I have installed PostgreSQL via the ports on a new 7.1 machine. I am > > > > trying > > > > > to set it up. > > > > > > I found: > > > > > > http://www.freebsddiary.org/postgresql.php > > > > > > Whic says to run: > > > > > > su -l pgsql -c initdb > > > > > > But that gives me the following error message: > > > > > > initdb: no data directory specified > > > You must identify the directory where the data for this database system > > > will reside. Do this with either the invocation option -D or the > > > environment variable PGDATA. > > Go into the port directory for postgresql71 and so "make deinstall". After > that, do > > script -a ~/PGSQL-INSTALL.txt make install clean > > Once that is done, go ito the ~/PGSQL-INSTALL.txt and read the lines > towards the bottom. Those are sometimes calles Post-install message. They > tell you exactly what to do on FreeBSD. Erm, that's kind of a round-about way to accomplish: cat /usr/local/share/doc/postgresql/README-server or: cat /var/db/pkg/postgresql-server*/+DISPLAY -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 20:07:23 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C26C01065674 for ; Wed, 31 Dec 2008 20:07:23 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3DD228FC16 for ; Wed, 31 Dec 2008 20:07:23 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id mBVK7CRi011318; Wed, 31 Dec 2008 20:07:17 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk mBVK7CRi011318 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1230754037; bh=2KDaOblrvXHkGD XUdsvjJXJf7byB9KUJ0vI320E4HKY=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<495BD0EA.2030906@infracaninophile.co.uk>|Date:=20Wed,=2 031=20Dec=202008=2020:07:06=20+0000|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.18=20(X11/20081125)|MIME-Version:=201 .0|To:=20Mel=20|CC:=20freebsd- questions@freebsd.org,=20=0D=0A=20Odhiambo=20Washington=20,=0D=0A=20Andrew=20Gould=20|S ubject:=20Re:=20PostgreSQL=20setup|References:=20<20081231150648.GA 18063@teddy.fas.com>=09=09<991123400812310732s5f23c072k18571437d9239c84@ma il.gmail.com>=20<200812311055.17889.fbsd.questions@rachie.is-a-geek .net>|In-Reply-To:=20<200812311055.17889.fbsd.questions@rachie.is-a -geek.net>|X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/s igned=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/p gp-signature"=3B=0D=0A=20boundary=3D"------------enig9A8CC9B6A47B97 3F91F5CDCE"; b=JMtviYdDzIhhXiMxhiVS9UrlyC3eq7FjDdemCbB7pHAPR55x7lMa ugv2FPE9dXyhocQnTp3+p8voGMu68G3a7WI4ClI9omcBHJjYWPaOxeosaONwL9YSTxw txRoZVt73GifOtLv+CDMUbvY4mihPZ5OB5hnMEavRB0GoikrqCuc= Message-ID: <495BD0EA.2030906@infracaninophile.co.uk> Date: Wed, 31 Dec 2008 20:07:06 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Mel References: <20081231150648.GA18063@teddy.fas.com> <991123400812310732s5f23c072k18571437d9239c84@mail.gmail.com> <200812311055.17889.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <200812311055.17889.fbsd.questions@rachie.is-a-geek.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig9A8CC9B6A47B973F91F5CDCE" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 31 Dec 2008 20:07:17 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/8819/Wed Dec 31 14:28:33 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Odhiambo Washington , Andrew Gould , freebsd-questions@freebsd.org Subject: Re: PostgreSQL setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 20:07:24 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9A8CC9B6A47B973F91F5CDCE Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Mel wrote: > On Wednesday 31 December 2008 06:32:58 Odhiambo Washington wrote: >> script -a ~/PGSQL-INSTALL.txt make install clean >> >> Once that is done, go ito the ~/PGSQL-INSTALL.txt and read the lines >> towards the bottom. Those are sometimes calles Post-install message. T= hey >> tell you exactly what to do on FreeBSD. >=20 > Erm, that's kind of a round-about way to accomplish: > cat /usr/local/share/doc/postgresql/README-server > or: > cat /var/db/pkg/postgresql-server*/+DISPLAY >=20 pkg_info -Dx postgresql Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig9A8CC9B6A47B973F91F5CDCE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAklb0PAACgkQ8Mjk52CukIyEjQCdEngPON5Fr3yjVSudA+NOf0uu b6AAnRZy1RoW9Sd1cb8bSDMJjXLC6OtO =hlVR -----END PGP SIGNATURE----- --------------enig9A8CC9B6A47B973F91F5CDCE-- From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 20:17:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4A6A10656E3 for ; Wed, 31 Dec 2008 20:17:45 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by mx1.freebsd.org (Postfix) with ESMTP id 622078FC1A for ; Wed, 31 Dec 2008 20:17:45 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail2.panix.com (Postfix) with ESMTP id E5B933480C for ; Wed, 31 Dec 2008 15:17:44 -0500 (EST) Received: from teddy.fas.com (c-76-26-198-188.hsd1.sc.comcast.net [76.26.198.188]) by mailbackend.panix.com (Postfix) with ESMTP id CAB45E762 for ; Wed, 31 Dec 2008 15:17:44 -0500 (EST) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1LI7Vg-000708-00 for ; Wed, 31 Dec 2008 15:17:44 -0500 Date: Wed, 31 Dec 2008 15:17:44 -0500 From: stan To: Free BSD Questions list Message-ID: <20081231201744.GA25666@teddy.fas.com> Mail-Followup-To: Free BSD Questions list References: <20081231175240.GA22662@teddy.fas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081231175240.GA22662@teddy.fas.com> X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 14:28:08 up 233 days, 20:50, 1 user, load average: 0.08, 0.03, 0.00 User-Agent: Mutt/1.5.4i Sender: Stan Brown Subject: Re: scanner setup question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 20:17:46 -0000 On Wed, Dec 31, 2008 at 12:52:40PM -0500, stan wrote: > I am trying to set up a new machine that has an HP scanner atached to it. I > am a bit confused at the moment. > > I am trying to set up to allow users to acess this scanner. I have added > this to /etc/devfs.conf > > perm pass0 0660 > > And that seesm to work: > > # ls -l /dev/pas* > crw-rw---- 1 root operator 0, 104 Dec 31 12:07 /dev/pass0 > > I have added my suer to the operator group > > # grep stan /etc/gro* > wheel:*:0:root,stan > operator:*:5:root,stan > network:*:69:stan > stan:*:210: > > Running san-find-scanner as me finds the sacnner: > > > found SCSI processor "HP C2520A 3503" at /dev/pass0 > > But, > > $ scanimage -L > > No scanners were identified. If you were expecting something different, > check that the scanner is plugged in, turned on and detected by the > sane-find-scanner tool (if appropriate). Please read the documentation > which came with this software (README, FAQ, manpages). > > What am I doing wrong? > > > BTW as root: > > # scanimage -L > device `hp:/dev/pass0' is a Hewlett-Packard C2520A flatbed scanner > I did finally resolve this, although I am not certain whu this works. I woulnd up putting the following 3 lines in /etc/devfs.conf own pass0 root:operator perm pass0 0660 link pass0 scanner The one I did not have in here, when it was not working was the link. Strange that tunning as root sane checks the pass0 device, but noot when running as an ordianry user. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 20:21:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE54B1065674 for ; Wed, 31 Dec 2008 20:21:32 +0000 (UTC) (envelope-from kwoody@citytel.net) Received: from pop.citytel.net (pop.citytel.net [209.145.111.50]) by mx1.freebsd.org (Postfix) with ESMTP id A59618FC0C for ; Wed, 31 Dec 2008 20:21:32 +0000 (UTC) (envelope-from kwoody@citytel.net) Received: from pop.citytel.net (pop.citytel.net [209.145.111.50]) by pop.citytel.net (Postfix) with ESMTP id 613D1207B5 for ; Wed, 31 Dec 2008 12:21:31 -0800 (PST) Date: Wed, 31 Dec 2008 12:21:31 -0800 (PST) From: Keith To: freebsd-questions@freebsd.org Message-ID: <20081231120905.B77789@pop.citytel.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Dell 1950 RAID 1 Drives. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 20:21:33 -0000 Have the above server, drive 0 failed. No onsite spares left. Ordered replacement drives a week ago but they are still on route and wont be here till Jan 5 or 6. All I have is a test server of the same make/model in my test rack configured and running a slightly different version of FBSD. If I pull a drive from this test server that is already configured to a RAID contoller and put it into the server with the bad drive, how will the machine deal with it as it already has a valid config on it? Will I just be able to go to the RAID Bios and rebuild? Or wipe the config on the test server so the drive has no config on it before installing it into the server with the failed drive? Are the SAS drives in a Dell 1950 hot swap by chance? Have not had a drive go like this with no spares around before. Thanks. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 20:49:22 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EDBB106564A for ; Wed, 31 Dec 2008 20:49:22 +0000 (UTC) (envelope-from SRS0=WKIqSX=5E=shell.siscom.net=vogelke@siscom.net) Received: from lamorack.siscom.net (lamorack.siscom.net [209.251.2.116]) by mx1.freebsd.org (Postfix) with ESMTP id 4C7858FC19 for ; Wed, 31 Dec 2008 20:49:22 +0000 (UTC) (envelope-from SRS0=WKIqSX=5E=shell.siscom.net=vogelke@siscom.net) Received: from shell.siscom.net ([209.251.2.80]) by lamorack.siscom.net with esmtp (Exim 4.62) (envelope-from ) id 1LI7Z7-0007ok-01 for freebsd-questions@FreeBSD.ORG; Wed, 31 Dec 2008 15:21:17 -0500 Received: by shell.siscom.net (Postfix, from userid 2198) id CEB3B115529; Wed, 31 Dec 2008 15:21:16 -0500 (EST) Received: by kev.msw.wpafb.af.mil (Postfix, from userid 32768) id C8012BE14; Wed, 31 Dec 2008 15:20:14 -0500 (EST) To: freebsd-questions@FreeBSD.ORG In-reply-to: <20081230193111.GA32641@thought.org> (message from Gary Kline on Tue, 30 Dec 2008 11:31:14 -0800) Organization: Oasis Systems Inc. X-Disclaimer: I don't speak for the USAF or Oasis. X-GPG-ID: 1024D/711752A0 2006-06-27 Karl Vogel X-GPG-Fingerprint: 56EB 6DBF 4224 C953 F417 CC99 4C7C 7D46 7117 52A0 Message-Id: <20081231202014.C8012BE14@kev.msw.wpafb.af.mil> Date: Wed, 31 Dec 2008 15:20:14 -0500 (EST) From: vogelke+software@pobox.com (Karl Vogel) Cc: Subject: Re: well, blew it... sed or perl q again. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vogelke+software@pobox.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 20:49:22 -0000 >> On Tue, 30 Dec 2008 11:31:14 -0800, >> Gary Kline said: G> The problem is that there are many, _many_ embedded " HREF="http://whatever> Site in my hundreds, or thousands, or G> files. I only want to delete the "http://" lines, _not_ G> the other Href links. Use perl. You'll want the "i" option to do case-insensitive matching, plus "m" for matching that could span multiple lines; the first quoted line above shows one of several places where a URL can cross a line-break. You might want to leave the originals completely alone. I never trust programs to modify files in place: you% mkdir /tmp/work you% find . -type f -print | xargs grep -li http://junkfoo.com > FILES you% pax -rwdv -pe /tmp/work < FILES Your perl script can just read FILES and overwrite the stuff in the new directory. You'll want to slurp the entire file into memory so you catch any URL that spans multiple lines. Try the script below, it works for input like this: This Site should go away too. And so should Site this And finally Site this -- Karl Vogel I don't speak for the USAF or my company The average person falls asleep in seven minutes. --item for a lull in conversation --------------------------------------------------------------------------- #!/usr/bin/perl -w use strict; my $URL = 'href=(.*?)"http://junkfoo.com/*"'; my $contents; my $fh; my $infile; my $outfile; while (<>) { chomp; $infile = $_; s{^./}{/tmp/}; $outfile = $_; open ($fh, "< $infile") or die "$infile"; $contents = do { local $/; <$fh> }; close ($fh); $contents =~ s{ # substitute ... # ... until we end } { }gixms; # ... with a single space open ($fh, "> $outfile") or die "$outfile"; print $fh $contents; close ($fh); } exit(0); From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 21:25:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D341E1065670 for ; Wed, 31 Dec 2008 21:25:21 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.freebsd.org (Postfix) with ESMTP id 7A0518FC14 for ; Wed, 31 Dec 2008 21:25:21 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mail1.panix.com (Postfix) with ESMTP id B744A29402 for ; Wed, 31 Dec 2008 16:25:20 -0500 (EST) Received: from teddy.fas.com (c-76-26-198-188.hsd1.sc.comcast.net [76.26.198.188]) by mailbackend.panix.com (Postfix) with ESMTP id 913D4E5C3 for ; Wed, 31 Dec 2008 16:25:20 -0500 (EST) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1LI8Z6-0007Qv-00 for ; Wed, 31 Dec 2008 16:25:20 -0500 Date: Wed, 31 Dec 2008 16:25:20 -0500 From: stan To: Free BSD Questions list Message-ID: <20081231212520.GA28385@teddy.fas.com> Mail-Followup-To: Free BSD Questions list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 16:18:33 up 233 days, 22:41, 1 user, load average: 0.01, 0.04, 0.00 User-Agent: Mutt/1.5.4i Sender: Stan Brown Subject: inetd.conf entry for saned? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 21:25:22 -0000 I seem to be having an inrdinate amount of trouble getting a working inetd.conf entry for saned on 7.1 If I run saned from the command line, I can connect and scan. But I cannot seem to amke it work from inetd Here is what I have: sane-port stream tcp nowait saned /usr/local/sbin/saned saned Yes, I created a user for saned. although I am suprsied that the port did not do that. When I start inetd with the -d flag, I get: black# inetd -d ADD : sane-port proto=tcp accept=1 max=0 user=saned group=(null)class=daemon builtin=0x0 server=/usr/local/sbin/saned policy="" inetd: sane-port/tcp: ipsec initialization failed; in entrust inetd: sane-port/tcp: ipsec initialization failed; out entrust inetd: enabling sane-port, fd 4 inetd: registered /usr/local/sbin/saned on 4 What file do I add this line to? -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 23:53:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12F98106566B for ; Wed, 31 Dec 2008 23:53:27 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from outbound-mail-08.bluehost.com (outbound-mail-08.bluehost.com [69.89.17.208]) by mx1.freebsd.org (Postfix) with SMTP id D73288FC08 for ; Wed, 31 Dec 2008 23:53:26 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: (qmail 10183 invoked by uid 0); 31 Dec 2008 23:53:28 -0000 Received: from unknown (HELO box183.bluehost.com) (69.89.25.183) by outboundproxy1.bluehost.com with SMTP; 31 Dec 2008 23:53:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=apotheon.com; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:Mime-Version:Content-Type:Content-Disposition:User-Agent:X-Identified-User; b=LfrNv4Cyv1J7ALPl5B7mnPWc9Iwufci6dSXLaS2Ghz47clZIN5zCMfVHNici6gRwe9H1IANc1J8t0KlfZluNRH+NzQLTnEQo63RwjYmmELbw9Hohi3DsxnUtwB15L2LQ; Received: from c-24-8-180-234.hsd1.co.comcast.net ([24.8.180.234] helo=kokopelli.hydra) by box183.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LIAsR-0007UG-KW for freebsd-questions@freebsd.org; Wed, 31 Dec 2008 16:53:28 -0700 Received: by kokopelli.hydra (sSMTP sendmail emulation); Wed, 31 Dec 2008 16:52:33 -0700 Date: Wed, 31 Dec 2008 16:52:33 -0700 From: Chad Perrin To: FreeBSD Questions Message-ID: <20081231235233.GA64764@kokopelli.hydra> Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Identified-User: {737:box183.bluehost.com:apotheon:apotheon.org} {sentby:smtp auth 24.8.180.234 authed with ren@apotheon.org} Subject: mplayer won't build X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 23:53:27 -0000 --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable For some reason, on . . . My machine: FreeBSD 6.2-RELEASE-p11 MPlayer refuses to build: N - O - T - E There are some knobs which *can* *not* be selected via the OPTIONS framework. You might want to check the Makefile in order to learn more about them. If you want to use the GUI, you can either install /usr/ports/multimedia/mplayer-skins or download official skin collections from http://www.mplayerhq.hu/homepage/dload.html =3D=3D=3D> mplayer-0.99.11_8 has known vulnerabilities: =3D> mplayer -- twinvq processing buffer overflow vulnerability. Reference: =3D> Please update your ports tree and try again. *** Error code 1 Stop in /usr/ports/multimedia/mplayer. *** Error code 1 Stop in /usr/ports/multimedia/mplayer. Is the problem that there isn't a newer, fixed version of MPlayer in ports? If so -- why can't I override it using `portinstall -f`? Am I going to feel dumb when I realize what's stopping MPlayer from building? How long would it take to vacuum the entire state of Florida if it was carpeted? What is the average airspeed velocity of an unladen swallow in flight? Okay . . . feel free to ignore the last two or three questions. --=20 Chad Perrin [ content licensed OWL: http://owl.apotheon.org ] Quoth Henry Spencer: "Those who don't understand Unix are doomed to reinvent it, poorly." --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklcBcEACgkQ9mn/Pj01uKXFLwCgp+GkjOe+s6d7ywKG0wuySOv5 UpAAmwTEjWMIQiOAw9+G71kpOS+OrqLd =nINm -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--