From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 01:00:12 2011 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 0C4F21065672 for ; Sun, 20 Mar 2011 01:00:12 +0000 (UTC) (envelope-from 839273@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 689BD8FC14 for ; Sun, 20 Mar 2011 01:00:10 +0000 (UTC) Received: by ywf9 with SMTP id 9so2315944ywf.13 for ; Sat, 19 Mar 2011 18:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=CzTwSpm4uoiKUlRR4nqq9naP+BsUeGrZYwiVxPP1Aao=; b=q0DWyHkpG/GXQAuTAGlx5W/5gS6Rq2KtTbRYVYcj4KTESRw5fFXzo0ahpJumAwr+/U eEO+EcHm0q2fP+PWOBPro+a76VXN1iWiYEjvgEY2tEqbF3TY2Sy+0aQOKKyVgfksfnNP jlU+kFlBfhHLbXbv3H3WTqslsXjeMBXBEETIc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=ZKlT6KbySVw8K+UBMCT5vVdxnCABgR0RLHFq8G88/cj04KxmarugMYZDR94v616Zbp ltuMhcyeGJFsG5VzRXxQV46MlNGblAVUkiBmMQ5R7rEcmv7uiI+R5cHKfmLwkIcfWyFE pItz3JB3WIvyaZKcfkjB07l1hwOS6Q45zmYNQ= MIME-Version: 1.0 Received: by 10.150.169.8 with SMTP id r8mr2508868ybe.447.1300582809351; Sat, 19 Mar 2011 18:00:09 -0700 (PDT) Sender: 839273@gmail.com Received: by 10.150.216.2 with HTTP; Sat, 19 Mar 2011 18:00:09 -0700 (PDT) In-Reply-To: References: <759A467E-407A-4DB8-9756-08011B5405F0@vicor.com> Date: Sat, 19 Mar 2011 20:30:09 -0430 X-Google-Sender-Auth: rISZAEAaRpUBah0fcyFWjUlolFk Message-ID: From: Andres Perera To: Maxim Khitrov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Devin Teske , FreeBSD Subject: Re: Shell script termination with exit function in backquotes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: 839273@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 01:00:12 -0000 On Sat, Mar 19, 2011 at 11:45 AM, Maxim Khitrov wrote: > > Here's another, but related, problem that I just ran into. The man page r= eads: > > =C2=A0 =C2=A0 Commands may be grouped by writing either > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (list) > =C2=A0 =C2=A0 or > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { list; } > =C2=A0 =C2=A0 The first form executes the commands in a subshell. =C2=A0N= ote that built-in > =C2=A0 =C2=A0 commands thus executed do not affect the current shell... and it also says that the rhs in a pipe is always executed in a subshell > > Here's my script: > > ---- > #!/bin/sh > > { A=3D1; }; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo $A > echo | { B=3D2; }; =C2=A0 =C2=A0 =C2=A0echo $B > { C=3D3; } > /dev/null; echo $C > ---- > > And here's the output: > > ---- > 1 > > 3 > ---- > > Where did the '2' go? Again, I have to assume that when stdin is piped > to a group of commands, those commands are executed in a subshell > despite curly braces. But where is this behavior documented? It seems > that there are a lot of corner cases that can only be understood if > you are familiar with the shell implementation. Documentation can > certainly be improved in places. > this time it's a case of you not being familiar, and not violations of principle of least suprise like ash command substitutions the only broadly deployed shells that do not execute the (whole) rhs in a subshell are ksh and descendants, and even then there are many exceptions the bracket grouping is irrelevant From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 08:58:22 2011 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 7280E106564A for ; Sun, 20 Mar 2011 08:58:22 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 072398FC14 for ; Sun, 20 Mar 2011 08:58:21 +0000 (UTC) Received: by fxm11 with SMTP id 11so5576822fxm.13 for ; Sun, 20 Mar 2011 01:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=hcXbIxYiPDYzpfCK7Xcjw5ok8yCEvS/5XvxOtK5ZYAc=; b=Ux3PIO6JDnCGhUn4j36ybBRZagp5QO9n4wEbUfoG7oGgPEVQVKwoHjARpa+yNhcc64 r8+9/q4Pw1/y06pjWNTiOwE4WiDfBgf1urh54MXiP28jprVPbx1rOSU3U9OOTXhEU5V8 XjpIOLZC/6HNkoeeOLBqfKt7yI5EiZZkwM15w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=hCPYFnqjEv0QUYIMER8ltQX3ycrQ8rLTJGyvSBdH4FzFxVqTJamkVVAeGmyvKQmIEp Pk7zto6gRFqDc9xuiMwvjG0h+h0wGKbL9Gl6/zG3Jhc5NF770T8SuF1VK8ES3BCpQ1LG vupoaZen1VvU2Z1JSVrIj5DVPv1xX+1R3K9xI= Received: by 10.223.79.78 with SMTP id o14mr3345837fak.110.1300611319994; Sun, 20 Mar 2011 01:55:19 -0700 (PDT) Received: from Groseille.malikania.fr (65.21.102-84.rev.gaoland.net [84.102.21.65]) by mx.google.com with ESMTPS id o17sm1996898fal.25.2011.03.20.01.55.18 (version=SSLv3 cipher=OTHER); Sun, 20 Mar 2011 01:55:19 -0700 (PDT) Message-ID: <4D85C107.9060704@gmail.com> Date: Sun, 20 Mar 2011 09:55:35 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110320 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: devd started with single-user mode? 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, 20 Mar 2011 08:58:22 -0000 Hello, I just realized that I can't use my USB keyboard if I start FreeBSD in single user mode. The keyboard is still detected but I can't use it. It works with the loader of course. I don't know if it's related to devd and if it's running. I also have USB legacy enabled in the BIOS settings. Cheers, -- David Demelier From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 11:13:39 2011 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 341FC1065670 for ; Sun, 20 Mar 2011 11:13:39 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id EBD478FC13 for ; Sun, 20 Mar 2011 11:13:38 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id 4AD5A1D923; Sun, 20 Mar 2011 12:13:37 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2KBDamY001818; Sun, 20 Mar 2011 12:13:36 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 20 Mar 2011 12:13:36 +0100 From: Polytropon To: David Demelier Message-Id: <20110320121336.837fadc9.freebsd@edvax.de> In-Reply-To: <4D85C107.9060704@gmail.com> References: <4D85C107.9060704@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: devd started with single-user mode? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 11:13:39 -0000 On Sun, 20 Mar 2011 09:55:35 +0100, David Demelier wrote: > Hello, > > I just realized that I can't use my USB keyboard if I start FreeBSD in > single user mode. The keyboard is still detected but I can't use it. > > It works with the loader of course. I don't know if it's related to devd > and if it's running. > > I also have USB legacy enabled in the BIOS settings. Do you have kbdmux in your kernel? If you don't have it, switching to "the other" keyboard is needed to be issued from the AT keyboard (if present), using the kbdcontrol program. Kernel configuration should contain: options KBD_INSTALL_CDEV # install a CDEV entry in /dev # atkbdc0 controls both the keyboard and the PS/2 mouse device kbdmux # keyboard multiplexer device atkbdc # AT keyboard controller device atkbd # AT keyboard options ATKBD_DFLT_KEYMAP makeoptions ATKBD_DFLT_KEYMAP=german.iso # USB support stuff here... device ukbd # Keyboard options UKBD_DFLT_KEYMAP makeoptions UKBD_DFLT_KEYMAP=german.iso If I remember correctly, most of the important lines are part of the GENERIC kernel configuration. On my system, I can't use the USB keyboard in CMOS setup or at the loader, but it works as soon as the kernel has finished loading, so when the boot process has enabled the single user mode, the USB keyboard is usable. For loader-related things, I still have to keep a PS/2 AT keyboard handy. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 08:18:25 2011 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 7C8091065670 for ; Sun, 20 Mar 2011 08:18:25 +0000 (UTC) (envelope-from darkstar99999@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 562CB8FC08 for ; Sun, 20 Mar 2011 08:18:25 +0000 (UTC) Received: by pwj8 with SMTP id 8so799741pwj.13 for ; Sun, 20 Mar 2011 01:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=PtmBUqRjh8qWo8AFCOiQ/P5e3IuY/1X7OOCP/IQMKKA=; b=uKOHa2/EJPS4ZSF+Tnt4hSa+/CvlrySZPx5/Fe/AFwdBXcXuL4bsonozt74KOSnCRI TtfGXvTyBCCHr8qPveR0tvpWt4K628Hsss9LH7NWcc56YqnXMzk8h2d884uE1ZLz2qbw JogwVfJQMtJERdaQqgsESlrVlD48SXlU/v1x4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Nz4hHCid6ZGxjuUVRscZbWU8ZPVKhsIbJd3idlQxCxdkmjdThqjWV2fvlckldWvWH6 GQI+ogdrCtpWSCcNPdYK/0EBEX4D3rbNfR7cen71KI0qGwZ/z4yQPrRqsxpnvI+Pdnn6 Q9+iBKnHQLIegUlBwFRQOe6eGxdr+ilWTBhVc= MIME-Version: 1.0 Received: by 10.142.171.16 with SMTP id t16mr1585009wfe.402.1300607580195; Sun, 20 Mar 2011 00:53:00 -0700 (PDT) Received: by 10.143.31.19 with HTTP; Sun, 20 Mar 2011 00:52:59 -0700 (PDT) Received: by 10.143.31.19 with HTTP; Sun, 20 Mar 2011 00:52:59 -0700 (PDT) Date: Sun, 20 Mar 2011 02:52:59 -0500 Message-ID: From: aaron van caster To: freebsd-questions@FreeBSD.org X-Mailman-Approved-At: Sun, 20 Mar 2011 11:15:40 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Minimum system requirements 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, 20 Mar 2011 08:18:25 -0000 Just would like to know what are the minimum system/hardware requirements to run 8.2 OS and do to have a simple video showing installation? Thanks! From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 11:30:41 2011 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 034D81065670 for ; Sun, 20 Mar 2011 11:30:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id BAD8D8FC1A for ; Sun, 20 Mar 2011 11:30:40 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id BDE991E2C6; Sun, 20 Mar 2011 12:30:39 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2KBUdrW001865; Sun, 20 Mar 2011 12:30:39 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 20 Mar 2011 12:30:38 +0100 From: Polytropon To: aaron van caster Message-Id: <20110320123038.aabd603f.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Minimum system requirements X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 11:30:41 -0000 On Sun, 20 Mar 2011 02:52:59 -0500, aaron van caster wrote: > Just would like to know what are the minimum system/hardware requirements to > run 8.2 OS and do to have a simple video showing installation? This primarily depends on the codecs used for the video. If there is much compression involved, requirements are higher than to play uncompressed video (where mainly the access speed to storage matters). For example, I've had excellent results on a 300 MHz P2. The P4 with 2 GHz I'm using at home plays everything at a good speed. Maybe the ability of direct rendering is important, too, so you chose your GPU according to good driver support (ATI Radeon "old-fashioned" in my case). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 11:34:41 2011 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 3AAE9106566B for ; Sun, 20 Mar 2011 11:34:41 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id BDAFF8FC14 for ; Sun, 20 Mar 2011 11:34:40 +0000 (UTC) Received: by fxm11 with SMTP id 11so5629926fxm.13 for ; Sun, 20 Mar 2011 04:34:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ozQsbSZdqv79RfPvd0BbsBCbv11fms0kYakUlOzVVaQ=; b=Cr8yT7zQ0f23hk8D2a+jSidEKLZ5T3RVvMDU2kUo+EmaCZeZcNZp+KngniKmPIICm8 JVnQx7M7H4G3o1JrnjzlgxBU52qXLLzOXN1i49+NkzKFfW0zOrtEUGR82GykP0dtV/PY jSeewTtI4QQFBVI7coLAeGxilndCJo2HcsDrs= 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=prMJyfG+u0JMvs0k47U2SS0H7pOsw1L88IbAZPTARhbXwjNmHWKcioTCMn7i/ehmx0 4slqaoLvW7X6cQh5SwGaNfk7asL7abyFT8ZE4KJTmyylsUzPGeEMTTEp8AIcAffl88FJ 9WvTTBq57LRqDSKYnkDima7d84j1s6UgtqEBc= Received: by 10.223.127.210 with SMTP id h18mr3515805fas.46.1300620879738; Sun, 20 Mar 2011 04:34:39 -0700 (PDT) Received: from Groseille.malikania.fr (65.21.102-84.rev.gaoland.net [84.102.21.65]) by mx.google.com with ESMTPS id l4sm464349fan.38.2011.03.20.04.34.38 (version=SSLv3 cipher=OTHER); Sun, 20 Mar 2011 04:34:38 -0700 (PDT) Message-ID: <4D85E65E.2020205@gmail.com> Date: Sun, 20 Mar 2011 12:34:54 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110320 Thunderbird/3.1.9 MIME-Version: 1.0 To: Polytropon References: <4D85C107.9060704@gmail.com> <20110320121336.837fadc9.freebsd@edvax.de> In-Reply-To: <20110320121336.837fadc9.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: devd started with single-user mode? 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, 20 Mar 2011 11:34:41 -0000 On 20/03/2011 12:13, Polytropon wrote: > On Sun, 20 Mar 2011 09:55:35 +0100, David Demelier wrote: >> Hello, >> >> I just realized that I can't use my USB keyboard if I start FreeBSD in >> single user mode. The keyboard is still detected but I can't use it. >> >> It works with the loader of course. I don't know if it's related to devd >> and if it's running. >> >> I also have USB legacy enabled in the BIOS settings. > > Do you have kbdmux in your kernel? If you don't have it, > switching to "the other" keyboard is needed to be issued > from the AT keyboard (if present), using the kbdcontrol > program. > > Kernel configuration should contain: > > options KBD_INSTALL_CDEV # install a CDEV entry in /dev > # atkbdc0 controls both the keyboard and the PS/2 mouse > device kbdmux # keyboard multiplexer > device atkbdc # AT keyboard controller > device atkbd # AT keyboard > options ATKBD_DFLT_KEYMAP > makeoptions ATKBD_DFLT_KEYMAP=german.iso > # USB support stuff here... > device ukbd # Keyboard > options UKBD_DFLT_KEYMAP > makeoptions UKBD_DFLT_KEYMAP=german.iso > > If I remember correctly, most of the important lines are > part of the GENERIC kernel configuration. > > On my system, I can't use the USB keyboard in CMOS setup > or at the loader, but it works as soon as the kernel has > finished loading, so when the boot process has enabled > the single user mode, the USB keyboard is usable. For > loader-related things, I still have to keep a PS/2 AT > keyboard handy. > > Oh yes I have kbdmux but as module only since the /etc/rc.d/bthidd wanted to load it itself. I added as device instead of modules. Thanks! -- David Demelier From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 12:24:13 2011 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 032D1106566C for ; Sun, 20 Mar 2011 12:24:13 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mx1.freebsd.org (Postfix) with ESMTP id BC0718FC0A for ; Sun, 20 Mar 2011 12:24:12 +0000 (UTC) Received-SPF: None identity=pra; client-ip=209.6.91.204; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="roberthuff@rcn.com"; x-conformance=sidf_compatible Received-SPF: None identity=mailfrom; client-ip=209.6.91.204; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="roberthuff@rcn.com"; x-conformance=sidf_compatible Received-SPF: None identity=helo; client-ip=209.6.91.204; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="postmaster@jerusalem.litteratus.org.litteratus.org"; x-conformance=sidf_compatible Received: from unknown (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.91.204]) by smtp01.lnh.mail.rcn.net with ESMTP; 20 Mar 2011 08:24:06 -0400 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19845.61896.774943.164655@jerusalem.litteratus.org> Date: Sun, 20 Mar 2011 08:23:36 -0400 To: David Demelier In-Reply-To: <4D85C107.9060704@gmail.com> References: <4D85C107.9060704@gmail.com> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid Cc: freebsd-questions@freebsd.org Subject: devd started with single-user mode? 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, 20 Mar 2011 12:24:13 -0000 David Demelier writes: > I just realized that I can't use my USB keyboard if I start > FreeBSD in single user mode. The keyboard is still detected but I > can't use it. My memory says I had this problem several years ago. Back in 5.*, or maybe 6.*????? It could fixed in the short term by a rebooting the machine. The long term fix was changes in the code. Since then, works for me. May we have more information avout your hardware and FreeBSD version, please? Robert Huff From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 12:55:56 2011 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 25F431065670 for ; Sun, 20 Mar 2011 12:55:56 +0000 (UTC) (envelope-from jahilliya@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id DD44E8FC08 for ; Sun, 20 Mar 2011 12:55:55 +0000 (UTC) Received: by iyj12 with SMTP id 12so6597716iyj.13 for ; Sun, 20 Mar 2011 05:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=gNBTAD/QIqsdCorPm2bwN8oDsI0E2mw9oY9zzHTQ5b4=; b=RWjCClhs1Ikrw7tLDwgVj6aa56Qyc9pfrBV+o0X/kO0Cu35ck+GiYiXIY6t16Yd0Ta 9iqFOYv0sDjUFJGF2YkCsn+PNijn+tPvdnJLCZKYmPgc+H7WQjU6s/ZYfJnAAdB4zrWZ WvzkERWWdMjekDySykJULMy0q4LlE2icB440g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; b=SWZKngWe6kmjOdymy06K7jwXWUG1/kG9SIBRgENELH9Qcmplq0ye8a7iFOJJzI0Lz8 zvxgxUo5JJet/PN6MiZI4Eskw1P7Unbz+pt2jEdk3KFwyR/bJvurH3LoIlATDHI4iHcv nEs+AsoK/gmbpw96h3sW8U45l+1Omo3dsu2kY= Received: by 10.231.113.214 with SMTP id b22mr3009607ibq.102.1300623810494; Sun, 20 Mar 2011 05:23:30 -0700 (PDT) Received: from [10.227.115.103] ([202.124.74.201]) by mx.google.com with ESMTPS id e9sm1098807ibb.47.2011.03.20.05.23.27 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Mar 2011 05:23:29 -0700 (PDT) References: <20110320123038.aabd603f.freebsd@edvax.de> In-Reply-To: <20110320123038.aabd603f.freebsd@edvax.de> Mime-Version: 1.0 (iPhone Mail 8C148a) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (8C148a) From: Daniel Marsh Date: Sun, 20 Mar 2011 23:23:24 +1100 To: Polytropon Cc: aaron van caster , "freebsd-questions@freebsd.org" Subject: Re: Minimum system requirements 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, 20 Mar 2011 12:55:56 -0000 I'm sure he meant is there a video that shows the steps taken to complete th= e install. This will also list hardware requirements, but in short it does d= epend on what you want, I run BSD on a pentium m, 1ghz with 1gb ram and it r= uns sweet. You could run it on lesser hardware without a problem... Other than the hand book and reading the section on installation I'd have a l= ook in YouTube and see if there are any instructional videos. Cheers On 20/03/2011, at 22:30, Polytropon wrote: > On Sun, 20 Mar 2011 02:52:59 -0500, aaron van caster wrote: >> Just would like to know what are the minimum system/hardware requirements= to >> run 8.2 OS and do to have a simple video showing installation? >=20 > This primarily depends on the codecs used for the video. > If there is much compression involved, requirements are > higher than to play uncompressed video (where mainly > the access speed to storage matters). For example, I've > had excellent results on a 300 MHz P2. The P4 with 2 GHz > I'm using at home plays everything at a good speed. > Maybe the ability of direct rendering is important, too, > so you chose your GPU according to good driver support > (ATI Radeon "old-fashioned" in my case). >=20 >=20 >=20 > --=20 > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.or= g" From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 14:56:07 2011 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 EDCA01065697 for ; Sun, 20 Mar 2011 14:56:07 +0000 (UTC) (envelope-from pctls.3364@envfrm.rsys2.com) Received: from omp.email.pctools.com (omp.email.pctools.com [12.130.137.112]) by mx1.freebsd.org (Postfix) with ESMTP id CCD7C8FC0A for ; Sun, 20 Mar 2011 14:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=pctools; d=email.pctools.com; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:Reply-To:Subject:List-Unsubscribe:To:Message-ID; i=newsletter@email.pctools.com; bh=Gt/3bKh9wW6Bby138C8iU2zXUbA=; b=avEUGWJELaArkKTMamP/Yts/JHFOgXbqcW+JuYg1aAo9I5DKadtv89xdjp70e8OCzh6KR3Fd828/ s9IrX0Tyhm+ciB4w4bmOtlEtKA0UrjM6OCikxCnKJP1K1pyhCohGV+b2cWzKkas3TSXK2LjfnQxV 8KDOuKuo2+MvKbHKceA= DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=pctools; d=email.pctools.com; b=i8nZ8qSx7l3y9Dvy36NeYHoqYkH3/HuqF8U0BPKdhKBhe5vdsbAKKi4FUXP/zAeCUDdiEGyC5dxc Uu96DF4Vid/ntGkH7oP+TP7e+niDD70q82XUBt4e0ygHa4gGcYbHS/Vta2YsnVkwgtqir5eOHkpn MsNWnRN9s3ha9gvLXkw=; Received: by omp.email.pctools.com (PowerMTA(TM) v3.5r15) id hgoaoe0morcs for ; Sun, 20 Mar 2011 07:41:02 -0700 (envelope-from ) Content-Transfer-Encoding: quoted-printable Date: Sun, 20 Mar 2011 07:41:02 -0700 From: "PC Tools" X-sgxh1: zbmLklphgkxMjLLIkKQhjn X-rext: 3.interact2.0k.F9vxH.F97P1.F9gXO.Bcjan.E.H.KaO X-cid: pctls.100119541.100009422 To: questions@freebsd.org Message-ID: <0.0.4D8.107.1CBE70CD5CDCF3A.0@omp.email.pctools.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Organize your computer in under an hour X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: PC Tools List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 14:56:08 -0000 <=21DOCTYPE html PUBLIC =22-//W3C//DTD XHTML 1=2E0 Transitional//EN=22 =22h= ttp://www=2Ew3=2Eorg/TR/xhtml1/DTD/xhtml1-transitional=2Edtd=22> <=21--=5Bif gte mso 9=5D> <=21=5Bendif=5D--> Helpful tips to organize your PC=2E [1]Read More =7C [2]View Online <=21--=5Bif g= te mso 9=5D> <=21=5Bendif=5D--> [e=] [3D=22https=] [=] [3]3D=22PC PC Tools Newsletter [4]Home [5]My Account [6]Support An orga= nized computer is a safer computer=21 Most people know tha= t keeping your online files in order makes for a more enjoyable computing e= xperience=2E But did you know that a=20 messy computer can actually be dangerous? If your filing s= ystem looks=20 like a tangled subway map, you=E2=80=99re likely to lose tr= ack of downloaded=20 files making it easier for malicious software to hide and d= o damage=2E [7]3D=22Read [secure=2Epctool=] [8][secure=2Epctool=] [secure=2Epctools=] [9][=] [secure=2Epctools=] [10][=] [secure=2Epctool=] Was =2429=2E99 Now =2420=2E99 [secure=2Epctoo=] Pro= duct Tip: Speed up, maintain an= d optimize your computer with PC Tools Registry Mechanic 2011=2E [11]Click here to find out how=2E<= /a> =20 [12][secure=2Epct=] Fi= nd us on Facebook [13][=] [14]Follow us on Twitter= [15][=] [16]Sign up for our news= letter [17][=] [18]Update your details<= /a> [secure=2Epctools=] Got q= uestions? We= =E2=80=99ve got answers=2E Tap into PC Tools Knowledge Base for help=2E [19]Get started here= =2E =20 [3D=22htt=] <=21--=5Bif g= te mso 9=5D> <=21=5Bendif=5D--> [e=] [e=] [res=] [res=] 3D=22=22 [secure=2E=] 3D=22=22 Protection Products [20]PC Tools Spywa= re Doctor(TM) with Antivirus 2011 [21]PC Tools(TM)= ; Internet Security 2011 3D=22=22 3D=22=22= 3D=22=22 [secure=2E=] 3D=22=22 Performance Products [22]PC Tools Regis= try Mechanic(TM) 2011 [23]PC Tools(TM)= ; Performance Toolkit 2011 3D=22=22 [=] [24][r=] [25]Find us on Fac= ebook [26][r=] [27]Follow us on T= witter [28][r=] [29]Sign up for ou= r newsletter [30][r=] [31]Update your details [32]3D=22PC [i=] <= /td> Copyright =C2=A9 2010 PC Tools= =2E All rights reserved=2E PC Tools, the PC Tools Logo, Spyware Doctor and = Registry Mechanic are either trademarks or registered trademarks of PC Tool= s Technology Pty Ltd=2E Other names may be trademarks of their respective = owners=2E This message was intended for =E2=80=98questions=40freebsd=2Eorg=E2= =80=99=2E You have received this message because you are subscribed to =E2=80= =98PC Tools newsletter and special promotions=E2=80=99=2E PC Tools values your privacy and we only use your personal informatio= n in accordance with the PC Tools Privacy Policy=2E [33]Update your subscription = =7C [34]Unsubscribe =7C [35]Con= tact us=2E PC Tools Limited brookvale Plaza, East Park, Shannon, Co=2E Clare, I= reland=2E [i=] <= /td> [=] References 1. =3D=22http://email=2Epctools=2Ecom/pub/cc?_ri_=3DX0Gzc2X%3DUQpglLjHJlTQRsQz= 2. 3D=22http://email=2Epctools=2Ecom/pub/cc?_ri_=3DX0Gzc2X%= 3. 3D=22http://email=2Epctools=2Ecom/pub= 4. 3D=22http://email=2Epctools=2Ecom/pub/cc?_ri_=3DX0Gzc2X%3DU= 5. 3D=22http://email=2Epctools=2Ecom/pub/cc?_ri_=3DX0Gzc2X%3DU= 6. 3D=22http://email=2Epctools=2Ecom/pub/cc?_ri_=3DX0Gzc2X%3DU= 7. 3D=22http://email=2Epctools=2E=/ 8. 3D=22http:/= 9. 3D=22http://email=2Epctools=2E=/ 10. 3D=22http://email=2Epctools=2E=/ 11. 3D=22http://emai=/ 12. 3D=22http://email=2Epctools=2E=/ 13. 3D=22http://email=2Epctools=2Ecom/pub/cc?_ri_= 14. 3D=22http://emai=/ 15. 3D=22http://email=2Epctools=2Ecom/pub/cc?_ri_= 16. 3D=22http://emai=/ 17. 3D=22http://email=2Epctools=2Ecom/pub/cc?_ri_= 18. 3D=22http://emai=/ 19. 3D=22http://email=/ 20. 3D=22http:= 21. 3D=22http:= 22. 3D=22http:= 23. 3D=22http:= 24. 3D=22http://email=2Epctools=2Ecom/pub/cc?_= 25. 3D=22http:= 26. 3D=22http://email=2Epctools=2Ecom/pub/cc?_= 27. 3D=22http:= 28. 3D=22http://email=2Epctools=2Ecom/pub/cc?_= 29. 3D=22http:= 30. 3D=22http://email=2Epctools=2Ecom/pub/cc?_= 31. 3D=22http://email=2Epctools=/ 32. 3D=22http://email=2Epctools=2Ecom/pub/cc?= 33. 3D=22http://email=2Epctools=/ 34. 3D=22http://email=2Epctools=2Eco=/ 35. 3D=22http://email=2Epctools=2Ecom/pub/cc?_ri_=3DX0Gz= From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 15:43:49 2011 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 F0584106566B for ; Sun, 20 Mar 2011 15:43:49 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 7075A8FC0C for ; Sun, 20 Mar 2011 15:43:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id p2KFhjWP086593; Mon, 21 Mar 2011 02:43:46 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 21 Mar 2011 02:43:45 +1100 (EST) From: Ian Smith To: Maxim Khitrov In-Reply-To: <20110320120022.DAC7C10657C1@hub.freebsd.org> Message-ID: <20110321022004.L36648@sola.nimnet.asn.au> References: <20110320120022.DAC7C10657C1@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: Shell script termination with exit function in backquotes 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, 20 Mar 2011 15:43:50 -0000 in freebsd-questions Digest, Vol 354, Issue 10, Message: 4 On Sat, 19 Mar 2011 12:15:26 -0400 Maxim Khitrov wrote: > Here's another, but related, problem that I just ran into. The man page reads: > > Commands may be grouped by writing either > (list) > or > { list; } > The first form executes the commands in a subshell. Note that built-in > commands thus executed do not affect the current shell... > > Here's my script: > > ---- > #!/bin/sh > > { A=1; }; echo $A > echo | { B=2; }; echo $B > { C=3; } > /dev/null; echo $C > ---- > > And here's the output: > > ---- > 1 > > 3 > ---- > > Where did the '2' go? Again, I have to assume that when stdin is piped > to a group of commands, those commands are executed in a subshell > despite curly braces. But where is this behavior documented? It seems > that there are a lot of corner cases that can only be understood if > you are familiar with the shell implementation. Documentation can > certainly be improved in places. See sh(1) /Pipelines - last para: Note that unlike some other shells, sh executes each process in the pipe- line as a child of the sh process. Shell built-in commands are the exception to this rule. They are executed in the current shell, although they do not affect its environment when used in pipelines. The braces aren't relevant because it's a pipeline, so even without: echo | B=2; echo $B writes '', but echo | { B=2; echo $B; } or (equivalent within a pipeline) echo | ( B=2; echo $B; ) writes '2'. cheers, Ian From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 20:38:47 2011 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 194061065670 for ; Sun, 20 Mar 2011 20:38:47 +0000 (UTC) (envelope-from max@mxcrypt.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id D673D8FC0C for ; Sun, 20 Mar 2011 20:38:46 +0000 (UTC) Received: by vws18 with SMTP id 18so5501881vws.13 for ; Sun, 20 Mar 2011 13:38:46 -0700 (PDT) Received: by 10.220.199.133 with SMTP id es5mr961885vcb.19.1300653526079; Sun, 20 Mar 2011 13:38:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.68.9 with HTTP; Sun, 20 Mar 2011 13:38:16 -0700 (PDT) From: Maxim Khitrov Date: Sun, 20 Mar 2011 16:38:16 -0400 Message-ID: To: FreeBSD Content-Type: text/plain; charset=UTF-8 Subject: glabel causes "GEOM: ada1: media size does not match label" messages 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, 20 Mar 2011 20:38:47 -0000 Hi all, Executing the following commands on any valid storage device seems to cause "media size does not match label" kernel messages (FreeBSD 8.2 amd64). I understand why they happen - glabel metadata occupies the last sector, so bsdlabel sees a device that is 1 sector smaller than what the kernel sees. The question is whether there is some simple way of suppressing these messages, since they come up every time the system is booted or the partition is mounted/unmounted: # glabel label vol0 ada1 # bsdlabel -w /dev/label/vol0 GEOM: ada1: media size does not match label. # newfs /dev/label/vol0a # mount /dev/label/vol0a /mnt GEOM: ada1: media size does not match label. # umount /mnt GEOM: ada1: media size does not match label. As you can see, I'm not using MBR or GPT partitioning schemes. I try to avoid those unless I plan on sharing the media with another OS. Even if using gpart would get rid of these errors (not sure, since then you'll just have a partition whose size doesn't match), I would still prefer to find some other way to suppress them. - Max From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 22:35:15 2011 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 3F961106566B for ; Sun, 20 Mar 2011 22:35:15 +0000 (UTC) (envelope-from max@mxcrypt.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0658A8FC1B for ; Sun, 20 Mar 2011 22:35:14 +0000 (UTC) Received: by vws18 with SMTP id 18so5547373vws.13 for ; Sun, 20 Mar 2011 15:35:14 -0700 (PDT) Received: by 10.52.74.66 with SMTP id r2mr4705269vdv.263.1300660514172; Sun, 20 Mar 2011 15:35:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.68.9 with HTTP; Sun, 20 Mar 2011 15:34:44 -0700 (PDT) In-Reply-To: References: From: Maxim Khitrov Date: Sun, 20 Mar 2011 18:34:44 -0400 Message-ID: To: FreeBSD Content-Type: text/plain; charset=UTF-8 Subject: Re: glabel causes "GEOM: ada1: media size does not match label" messages 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, 20 Mar 2011 22:35:15 -0000 On Sun, Mar 20, 2011 at 4:38 PM, Maxim Khitrov wrote: > Hi all, > > Executing the following commands on any valid storage device seems to > cause "media size does not match label" kernel messages (FreeBSD 8.2 > amd64). I understand why they happen - glabel metadata occupies the > last sector, so bsdlabel sees a device that is 1 sector smaller than > what the kernel sees. The question is whether there is some simple way > of suppressing these messages, since they come up every time the > system is booted or the partition is mounted/unmounted: > > # glabel label vol0 ada1 > # bsdlabel -w /dev/label/vol0 > GEOM: ada1: media size does not match label. > # newfs /dev/label/vol0a > # mount /dev/label/vol0a /mnt > GEOM: ada1: media size does not match label. > # umount /mnt > GEOM: ada1: media size does not match label. > > As you can see, I'm not using MBR or GPT partitioning schemes. I try > to avoid those unless I plan on sharing the media with another OS. > Even if using gpart would get rid of these errors (not sure, since > then you'll just have a partition whose size doesn't match), I would > still prefer to find some other way to suppress them. > > - Max > Heh... In the process of searching for a solution to this, I decided to see what would happen if I used bsdlabel on ada1 rather than vol0 (in my example above), and created a 1-sector partition at the very end of the disk. So the layout would be something like this: # /dev/ada1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: * * 4.2BSD c: * 0 unused h: 1 * unused The 'c' partition now covers the entire disk, which stops the kernel from complaining about media size not matching the label. At the same time, the 'h' partition will protect the last sector, which contains glabel metadata. The problem now is that the label is technically invalid for the vol0 device, which is what I'll be mounting. Indeed, bsdlabel complains when I run it for /dev/label/vol0: # /dev/label/vol0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 3907029151 16 4.2BSD 0 0 0 c: 3907029168 0 unused 0 0 h: 1 3907029167 unused 0 0 partition c: partition extends past end of unit bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities partition h: partition extends past end of unit I don't care about partition 'h'; it is there only to stop the preceding partition from covering the last sector. Are there any real issues with the 'c' partition being 1 sector too big for the vol0 device (but just the right size for ada1)? This is a bit of a hack, but I'll take it if it stops the kernel from complaining and doesn't create any new problems. - Max From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 04:31:09 2011 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 B5A14106564A for ; Mon, 21 Mar 2011 04:31:09 +0000 (UTC) (envelope-from carlj@peak.org) Received: from oak.localnet (unknown [IPv6:2001:1938:266:0:6ef0:49ff:fe05:658b]) by mx1.freebsd.org (Postfix) with ESMTP id E44468FC14 for ; Mon, 21 Mar 2011 04:31:08 +0000 (UTC) Received: from oak.localnet (localhost [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id 2EA56D57E for ; Sun, 20 Mar 2011 21:31:05 -0700 (PDT) Received: (from carlj@localhost) by oak.localnet (8.14.4/8.14.4/Submit) id p2L4Uxlh001669; Sun, 20 Mar 2011 21:30:59 -0700 (PDT) (envelope-from carlj@peak.org) X-Authentication-Warning: oak.localnet: carlj set sender to carlj@peak.org using -f From: Carl Johnson To: freebsd-questions@freebsd.org References: Mail-Followup-To: freebsd-questions@freebsd.org Date: Sun, 20 Mar 2011 21:30:59 -0700 In-Reply-To: (Maxim Khitrov's message of "Sun, 20 Mar 2011 18:34:44 -0400") Message-ID: <87k4ftp01o.fsf@oak.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: glabel causes "GEOM: ada1: media size does not match label" messages 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, 21 Mar 2011 04:31:09 -0000 Maxim Khitrov writes: > On Sun, Mar 20, 2011 at 4:38 PM, Maxim Khitrov wrote: >> Hi all, >> >> Executing the following commands on any valid storage device seems to >> cause "media size does not match label" kernel messages (FreeBSD 8.2 >> amd64). I understand why they happen - glabel metadata occupies the >> last sector, so bsdlabel sees a device that is 1 sector smaller than >> what the kernel sees. The question is whether there is some simple way >> of suppressing these messages, since they come up every time the >> system is booted or the partition is mounted/unmounted: >> >> # glabel label vol0 ada1 >> # bsdlabel -w /dev/label/vol0 >> GEOM: ada1: media size does not match label. >> # newfs /dev/label/vol0a >> # mount /dev/label/vol0a /mnt >> GEOM: ada1: media size does not match label. >> # umount /mnt >> GEOM: ada1: media size does not match label. >> >> As you can see, I'm not using MBR or GPT partitioning schemes. I try >> to avoid those unless I plan on sharing the media with another OS. >> Even if using gpart would get rid of these errors (not sure, since >> then you'll just have a partition whose size doesn't match), I would >> still prefer to find some other way to suppress them. >> >> - Max I am not an expert, but that looks correct as you have it, so I would expect some other problem. You are using vol0 as the partition for newfs and its size should be correctly sized to allow for the last sector of ada1 being used by glabel. I have heard comments that there problems in what some call 'dangerously dedicated' partitions, so you might want to create a single slice covering the whole disk and partition that. If you just want volume names for a filesystem, you might want to try the -L option for either newfs or tunefs. The last example of the glabel manpage shows using a ufs label to contrast it with glabel. I use ufs labels for all of my filesystems and just use glabel for swap, and I suspect that swapon wouldn't catch the type of problem that you are seeing. > Heh... In the process of searching for a solution to this, I decided > to see what would happen if I used bsdlabel on ada1 rather than vol0 > (in my example above), and created a 1-sector partition at the very > end of the disk. So the layout would be something like this: > > # /dev/ada1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: * * 4.2BSD > c: * 0 unused > h: 1 * unused > > The 'c' partition now covers the entire disk, which stops the kernel > from complaining about media size not matching the label. At the same > time, the 'h' partition will protect the last sector, which contains > glabel metadata. > > The problem now is that the label is technically invalid for the vol0 > device, which is what I'll be mounting. Indeed, bsdlabel complains > when I run it for /dev/label/vol0: > > # /dev/label/vol0: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 3907029151 16 4.2BSD 0 0 0 > c: 3907029168 0 unused 0 0 > h: 1 3907029167 unused 0 0 > partition c: partition extends past end of unit > bsdlabel: partition c doesn't cover the whole unit! > bsdlabel: An incorrect partition c may cause problems for standard > system utilities > partition h: partition extends past end of unit > > I don't care about partition 'h'; it is there only to stop the > preceding partition from covering the last sector. Are there any real > issues with the 'c' partition being 1 sector too big for the vol0 > device (but just the right size for ada1)? > > This is a bit of a hack, but I'll take it if it stops the kernel from > complaining and doesn't create any new problems. I don't see where adding an extra partition at the end does anything to protect the earlier partition. -- Carl Johnson carlj@peak.org From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 07:02:46 2011 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 2D989106566B for ; Mon, 21 Mar 2011 07:02:46 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id AA8048FC1A for ; Mon, 21 Mar 2011 07:02:45 +0000 (UTC) Received: by bwz12 with SMTP id 12so5438031bwz.13 for ; Mon, 21 Mar 2011 00:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=S5uNPIgSAaaKowTKZDMn4kAVvMVF/W8rGK6qodSpm7s=; b=UMCNrH4V4aDBABnrd/sY0Emx09rhpey8kd809BUGLwaV1xpLKoCAOWwKB0byHziPut RXfa4si9UHAB8UnTytW7PzkhkXo1xYwrhWxb6o6vss5GLBHkjyqG7SPX30UKTb+Q9hHU NWZse8ZdC3GnCtdqcpsfiomrCHsw1+Xi3y5Dw= 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=n+yalGRPsiqe3TJrRq9Y/QC19OYBLR19e3nF5f3jV74CcBRPzBfPZKZrcpqnq3qS+d Tf9aoEfe8EJ5BAGVlKL6KJGS9imcYIcXulrHSm5C32JBJv4GCk9FEEOYvsYK3b3vPlwh epYbyAOykL/I4ASSo/KnOWaVtSDakXfSHW5Xo= Received: by 10.204.170.193 with SMTP id e1mr3323500bkz.136.1300690964437; Mon, 21 Mar 2011 00:02:44 -0700 (PDT) Received: from Melon.malikania.fr (wifi-osiris-sec-180-195.u-strasbg.fr [130.79.180.195]) by mx.google.com with ESMTPS id v21sm350209bkt.23.2011.03.21.00.02.42 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 00:02:43 -0700 (PDT) Message-ID: <4D86F7C7.90008@gmail.com> Date: Mon, 21 Mar 2011 08:01:27 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110306 Thunderbird/3.1.9 MIME-Version: 1.0 To: Polytropon References: <4D85C107.9060704@gmail.com> <20110320121336.837fadc9.freebsd@edvax.de> In-Reply-To: <20110320121336.837fadc9.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: devd started with single-user mode? 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, 21 Mar 2011 07:02:46 -0000 On 20/03/2011 12:13, Polytropon wrote: > On Sun, 20 Mar 2011 09:55:35 +0100, David Demelier wrote: >> Hello, >> >> I just realized that I can't use my USB keyboard if I start FreeBSD in >> single user mode. The keyboard is still detected but I can't use it. >> >> It works with the loader of course. I don't know if it's related to devd >> and if it's running. >> >> I also have USB legacy enabled in the BIOS settings. > > Do you have kbdmux in your kernel? If you don't have it, > switching to "the other" keyboard is needed to be issued > from the AT keyboard (if present), using the kbdcontrol > program. > > Kernel configuration should contain: > > options KBD_INSTALL_CDEV # install a CDEV entry in /dev > # atkbdc0 controls both the keyboard and the PS/2 mouse > device kbdmux # keyboard multiplexer > device atkbdc # AT keyboard controller > device atkbd # AT keyboard > options ATKBD_DFLT_KEYMAP > makeoptions ATKBD_DFLT_KEYMAP=german.iso > # USB support stuff here... > device ukbd # Keyboard > options UKBD_DFLT_KEYMAP > makeoptions UKBD_DFLT_KEYMAP=german.iso > > If I remember correctly, most of the important lines are > part of the GENERIC kernel configuration. > > On my system, I can't use the USB keyboard in CMOS setup > or at the loader, but it works as soon as the kernel has > finished loading, so when the boot process has enabled > the single user mode, the USB keyboard is usable. For > loader-related things, I still have to keep a PS/2 AT > keyboard handy. > > The problem when you're using directly kbdmux in the kernel config, the ATKBD_DFLT_KEYMAP and UKBD_DFLT_KEYMAP are ineffective, you can't set these both together ... For me I added these both to use uk.iso but in single user mode I still have the standard us layout. Cheers, -- David Demelier From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 08:50:44 2011 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 9D133106566C for ; Mon, 21 Mar 2011 08:50:44 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from shopzeus.com (135-shost.hostoffice.hu [195.228.74.135]) by mx1.freebsd.org (Postfix) with ESMTP id 329B28FC08 for ; Mon, 21 Mar 2011 08:50:43 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by shopzeus.com (Postfix) with ESMTP id 1B6F0889739E; Mon, 21 Mar 2011 04:35:24 -0400 (EDT) Message-ID: <4D870DCD.9000404@shopzeus.com> Date: Mon, 21 Mar 2011 09:35:25 +0100 From: Laszlo Nagy User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: questions@freebsd.org, Daniel Fekete Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-shopzeus-MailScanner-Information: Please contact the ISP for more information X-shopzeus-MailScanner-ID: 1B6F0889739E.A8208 X-shopzeus-MailScanner: Found to be clean X-shopzeus-MailScanner-From: gandalf@shopzeus.com X-Spam-Status: No Cc: Subject: fstat bug? 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, 21 Mar 2011 08:50:44 -0000 Hi All, I have a Python program that goes up to 100% CPU. Just like this (top): PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 80212 user1 2 44 0 70520K 16212K select 1 0:30 100.00% /usr/local/bin/python process_updates_ss_od.py -l 10 I have added extra logs and it turns out that there are two threads. One thread is calling "time.sleep()" and the other is calling "os.stat" call. (Actually it is calling os.path.isfile, but I hunted down the last link in the chain.) The most interesting thing is that the process is in "SELECT" state. As far as I know, CPU load should be 0% because "select" state should block program execution until the I/O completes. I must also tell you that the os.stat call is taking long because this system has about 7 million files on a slow disk under heavy load. It would be normal for an os.stat call to return after 10 seconds. I have no problem with that. But I think that the 100% CPU is not acceptable. I guess that the code is running a system call in kernel mode. I think this because I can send a KILL signal to it and the state changes to the following: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 80212 user1 2 44 0 70520K 15256K STOP 5 1:27 100.00% /usr/local/bin/python process_updates_ss_od.py -l 10 So the state of the process changes to "STOP", but the program does not stop until the os.stat call returns back. Sometimes for a minute. Could it be a problem with the operation system? Is it possible that an os.stat call requires 100% CPU power from the OS? (I believe that os.stat ends in fstat()). Or is it a problem with the Python implementation? (Unfortunately I cannot give you an example program. Giving an example would require giving you a slow I/O device with millions of files on it.) OS version: FreeBSD 8.1-STABLE amd64 Python version: 2.6.6 Thanks, Laszlo -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 10:05:34 2011 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 7FB66106564A for ; Mon, 21 Mar 2011 10:05:34 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 3E4348FC14 for ; Mon, 21 Mar 2011 10:05:33 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.186]) by mail.unitedinsong.com.au (Postfix) with ESMTP id 089FA5C22 for ; Mon, 21 Mar 2011 20:13:16 +1000 (EST) Message-ID: <4D8722F2.501@herveybayaustralia.com.au> Date: Mon, 21 Mar 2011 20:05:38 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20110204 Thunderbird/3.0.11 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: linux_compat ldap authentication 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, 21 Mar 2011 10:05:34 -0000 Just quickly off the top: has/is anyone working on a solution for this? Acrobat and other linux programs aren't running with ldap authentication setup on 8.x. Aside from running a periodic script to grab the passwd entries, I'm wondering if anyone has succeeded in finding/building ldap auth libraries or another alternative? Cheers From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 10:06:08 2011 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 1E39C106564A for ; Mon, 21 Mar 2011 10:06:08 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-fx0-f68.google.com (mail-fx0-f68.google.com [209.85.161.68]) by mx1.freebsd.org (Postfix) with ESMTP id A4D3C8FC1C for ; Mon, 21 Mar 2011 10:06:07 +0000 (UTC) Received: by fxm15 with SMTP id 15so885062fxm.7 for ; Mon, 21 Mar 2011 03:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=Fb/4Y64UAogQgMlpAh9GFZc4nCHbAg+JmqMXxnYUl8c=; b=i9iSBVy4CruOpNSFR0vM80tfNBB0gy0c2RqZwnYV8YGM/HwHEwQD2qspiLSnvIUGKY bzSQiPTGP1q4MAwNhUK2NEMKDKxX4sy8Y6dmMj8WvL/52Il7k63OGVgH74s42Rk6uVmO zM6+Dbd7XBilHbXBNJONLt0p0NHrc6HgcyYNc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=KxQA6lAgBch/Rh93YANL12pCiuw/B6CCFSAkbEA/KI3etjcY8HIV7kszYbCb2d0PDK CZP6meIgzSr9f5loAYUiVcWNisOo+aEeiM6fC4WXwyDS1JhYg0ZdljS4G5V23jTFVDwD Bgrc2RIwbE0BzgMfve0eRLBOQPdYesdFzFB/w= Received: by 10.223.77.16 with SMTP id e16mr4645916fak.87.1300701088900; Mon, 21 Mar 2011 02:51:28 -0700 (PDT) Received: from localhost (h1866336.stratoserver.net [85.214.117.89]) by mx.google.com with ESMTPS id n1sm2386714fam.16.2011.03.21.02.51.21 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 02:51:28 -0700 (PDT) From: Pan Tsu To: David Demelier References: <4D85C107.9060704@gmail.com> <20110320121336.837fadc9.freebsd@edvax.de> <4D86F7C7.90008@gmail.com> Date: Mon, 21 Mar 2011 12:51:08 +0300 In-Reply-To: <4D86F7C7.90008@gmail.com> (David Demelier's message of "Mon, 21 Mar 2011 08:01:27 +0100") Message-ID: <86tyewztrn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-questions@freebsd.org Subject: Re: devd started with single-user mode? 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, 21 Mar 2011 10:06:08 -0000 David Demelier writes: > The problem when you're using directly kbdmux in the kernel config, > the ATKBD_DFLT_KEYMAP and UKBD_DFLT_KEYMAP are ineffective, you can't > set these both together ... > > For me I added these both to use uk.iso but in single user mode I > still have the standard us layout. Can you try the patch in kern/153459 ? It adds KBDMUX_DFLT_KEYMAP which allows using non-default layout in single user mode or ddb. From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 10:41:22 2011 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 BC5F3106566C for ; Mon, 21 Mar 2011 10:41:22 +0000 (UTC) (envelope-from max@mxcrypt.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 835A28FC13 for ; Mon, 21 Mar 2011 10:41:22 +0000 (UTC) Received: by vws18 with SMTP id 18so5728448vws.13 for ; Mon, 21 Mar 2011 03:41:21 -0700 (PDT) Received: by 10.220.178.200 with SMTP id bn8mr1016472vcb.194.1300704081373; Mon, 21 Mar 2011 03:41:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.68.9 with HTTP; Mon, 21 Mar 2011 03:40:51 -0700 (PDT) In-Reply-To: <87k4ftp01o.fsf@oak.localnet> References: <87k4ftp01o.fsf@oak.localnet> From: Maxim Khitrov Date: Mon, 21 Mar 2011 06:40:51 -0400 Message-ID: To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Carl Johnson Subject: Re: glabel causes "GEOM: ada1: media size does not match label" messages 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, 21 Mar 2011 10:41:22 -0000 On Mon, Mar 21, 2011 at 12:30 AM, Carl Johnson wrote: > Maxim Khitrov writes: > >> On Sun, Mar 20, 2011 at 4:38 PM, Maxim Khitrov wrote: >>> Hi all, >>> >>> Executing the following commands on any valid storage device seems to >>> cause "media size does not match label" kernel messages (FreeBSD 8.2 >>> amd64). I understand why they happen - glabel metadata occupies the >>> last sector, so bsdlabel sees a device that is 1 sector smaller than >>> what the kernel sees. The question is whether there is some simple way >>> of suppressing these messages, since they come up every time the >>> system is booted or the partition is mounted/unmounted: >>> >>> # glabel label vol0 ada1 >>> # bsdlabel -w /dev/label/vol0 >>> GEOM: ada1: media size does not match label. >>> # newfs /dev/label/vol0a >>> # mount /dev/label/vol0a /mnt >>> GEOM: ada1: media size does not match label. >>> # umount /mnt >>> GEOM: ada1: media size does not match label. >>> >>> As you can see, I'm not using MBR or GPT partitioning schemes. I try >>> to avoid those unless I plan on sharing the media with another OS. >>> Even if using gpart would get rid of these errors (not sure, since >>> then you'll just have a partition whose size doesn't match), I would >>> still prefer to find some other way to suppress them. >>> >>> - Max > > =C2=A0I am not an expert, but that looks correct as you have it, so I wou= ld > expect some other problem. =C2=A0You are using vol0 as the partition for > newfs and its size should be correctly sized to allow for the last > sector of ada1 being used by glabel. =C2=A0I have heard comments that the= re > problems in what some call 'dangerously dedicated' partitions, so you > might want to create a single slice covering the whole disk and > partition that. I've been using 'dangerously dedicated' partitioning for years without any issues. What problems have been reported by others? > =C2=A0If you just want volume names for a filesystem, you might want to t= ry > the -L option for either newfs or tunefs. =C2=A0The last example of the > glabel manpage shows using a ufs label to contrast it with glabel. =C2=A0= I > use ufs labels for all of my filesystems and just use glabel for swap, > and I suspect that swapon wouldn't catch the type of problem that you > are seeing. I do use UFS labels where necessary. In this case, I'm writing a script that needs to access all bsdlabel partitions through a common name. >> Heh... In the process of searching for a solution to this, I decided >> to see what would happen if I used bsdlabel on ada1 rather than vol0 >> (in my example above), and created a 1-sector partition at the very >> end of the disk. So the layout would be something like this: >> >> # /dev/ada1: >> 8 partitions: >> # =C2=A0 =C2=A0 =C2=A0 =C2=A0size =C2=A0 offset =C2=A0 =C2=A0fstype =C2= =A0 [fsize bsize bps/cpg] >> =C2=A0 a: =C2=A0 =C2=A0 =C2=A0 =C2=A0* =C2=A0 =C2=A0 =C2=A0 =C2=A0* =C2= =A0 =C2=A04.2BSD >> =C2=A0 c: =C2=A0 =C2=A0 =C2=A0 =C2=A0* =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2= =A0 =C2=A0unused >> =C2=A0 h: =C2=A0 =C2=A0 =C2=A0 =C2=A01 =C2=A0 =C2=A0 =C2=A0 =C2=A0* =C2= =A0 =C2=A0unused >> >> The 'c' partition now covers the entire disk, which stops the kernel >> from complaining about media size not matching the label. At the same >> time, the 'h' partition will protect the last sector, which contains >> glabel metadata. >> >> The problem now is that the label is technically invalid for the vol0 >> device, which is what I'll be mounting. Indeed, bsdlabel complains >> when I run it for /dev/label/vol0: >> >> # /dev/label/vol0: >> 8 partitions: >> # =C2=A0 =C2=A0 =C2=A0 =C2=A0size =C2=A0 offset =C2=A0 =C2=A0fstype =C2= =A0 [fsize bsize bps/cpg] >> =C2=A0 a: 3907029151 =C2=A0 =C2=A0 =C2=A0 16 =C2=A0 =C2=A04.2BSD =C2=A0 = =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 0 >> =C2=A0 c: 3907029168 =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0unused = =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> =C2=A0 h: =C2=A0 =C2=A0 =C2=A0 =C2=A01 3907029167 =C2=A0 =C2=A0unused = =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 >> partition c: partition extends past end of unit >> bsdlabel: partition c doesn't cover the whole unit! >> bsdlabel: An incorrect partition c may cause problems for standard >> system utilities >> partition h: partition extends past end of unit >> >> I don't care about partition 'h'; it is there only to stop the >> preceding partition from covering the last sector. Are there any real >> issues with the 'c' partition being 1 sector too big for the vol0 >> device (but just the right size for ada1)? >> >> This is a bit of a hack, but I'll take it if it stops the kernel from >> complaining and doesn't create any new problems. > > I don't see where adding an extra partition at the end does anything to > protect the earlier partition. In my example, if I remove the 'h' partition, "a: * * 4.2BSD" will be sized to take-up the entire disk, including the sector containing glabel metadata. This would allow newfs/UFS to overwrite that sector with some other data. By adding an extra 1-sector partition at the end, I'm making sure that the metadata stays outside of 'a' or any other partition preceding 'h'. This is only necessary when allowing bsdlabel to pick partition sizes automatically (using '*' for size). Once bsdlabel is written, the 'h' partition can be deleted. It will simply show up as 1-sector free space at the end of ada1. - Max From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 10:41:46 2011 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 5F08910656D1 for ; Mon, 21 Mar 2011 10:41:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 22EB18FC13 for ; Mon, 21 Mar 2011 10:41:45 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id 3B8F41E271; Mon, 21 Mar 2011 11:41:44 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2LAfh8q001582; Mon, 21 Mar 2011 11:41:43 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 21 Mar 2011 11:41:43 +0100 From: Polytropon To: David Demelier Message-Id: <20110321114143.dbe53291.freebsd@edvax.de> In-Reply-To: <4D86F7C7.90008@gmail.com> References: <4D85C107.9060704@gmail.com> <20110320121336.837fadc9.freebsd@edvax.de> <4D86F7C7.90008@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: devd started with single-user mode? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 10:41:46 -0000 On Mon, 21 Mar 2011 08:01:27 +0100, David Demelier wrote: > The problem when you're using directly kbdmux in the kernel config, the > ATKBD_DFLT_KEYMAP and UKBD_DFLT_KEYMAP are ineffective, you can't set > these both together ... Thanks for the pointer. Really! I know that it worked in the past (as you've noticed, I did define german keyboard settings), and it stopped working with FreeBSD 7. Of course I didn't use kbdmux prior to that. Good to know about that. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 10:46:22 2011 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 597361065672 for ; Mon, 21 Mar 2011 10:46:22 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id DE1E48FC0C for ; Mon, 21 Mar 2011 10:46:21 +0000 (UTC) Received: by wwc33 with SMTP id 33so7180325wwc.31 for ; Mon, 21 Mar 2011 03:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=IuLO1yP1GY1iZh8W/wENaEAed5VrXxBI0rkniLhR+X0=; b=ae0lrn+ExZWCrb3UgbPajjkeajEEkNe+f9wv2+1Y7nNC582mLcw38lSGPis1nNhq2d j076xNbh+MHtarjMY3rHZxeCDnrAD4nK5td+WFfwdW5qaRqOZkky38jUVK4BlQSl86Vt G+EkoQRpxisRi77EGS2msAEAqbbnaIvobCPLU= 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=fibpLy/qnSzAljxy+KDxZPUhNjXfBuapO1yjp8JSJELtDXKayEp/pliyAntiIi/F1Q TuzwZxSKl5mis3ByQwwMfjVlhcbpj1q8yqUo3gyAANeLy3GTJ0UxpQW8vXf6QgJHw6Ps GboWQU/TrowCYXLGuEtFtGbESt+kIBQ5zSwqU= Received: by 10.227.0.88 with SMTP id 24mr4002968wba.123.1300704380752; Mon, 21 Mar 2011 03:46:20 -0700 (PDT) Received: from Melon.malikania.fr (pcap.u-strasbg.fr [130.79.208.185]) by mx.google.com with ESMTPS id o6sm2695876wbo.20.2011.03.21.03.46.16 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 03:46:17 -0700 (PDT) Message-ID: <4D872C32.6090300@gmail.com> Date: Mon, 21 Mar 2011 11:45:06 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110306 Thunderbird/3.1.9 MIME-Version: 1.0 To: Pan Tsu References: <4D85C107.9060704@gmail.com> <20110320121336.837fadc9.freebsd@edvax.de> <4D86F7C7.90008@gmail.com> <86tyewztrn.fsf@gmail.com> In-Reply-To: <86tyewztrn.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: devd started with single-user mode? 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, 21 Mar 2011 10:46:22 -0000 On 21/03/2011 10:51, Pan Tsu wrote: > David Demelier writes: > >> The problem when you're using directly kbdmux in the kernel config, >> the ATKBD_DFLT_KEYMAP and UKBD_DFLT_KEYMAP are ineffective, you can't >> set these both together ... >> >> For me I added these both to use uk.iso but in single user mode I >> still have the standard us layout. > > Can you try the patch in kern/153459 ? It adds KBDMUX_DFLT_KEYMAP which > allows using non-default layout in single user mode or ddb. By the way why is kbdmux needed for an usb keyboard? Should not be managed by ukbd only? I don't understand .. But thanks for the patch. Cheers, -- David Demelier From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 11:05:26 2011 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 2C253106566B for ; Mon, 21 Mar 2011 11:05:26 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id E28BE8FC1E for ; Mon, 21 Mar 2011 11:05:25 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id CEE6D1E40A; Mon, 21 Mar 2011 12:05:24 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2LB5OMl001667; Mon, 21 Mar 2011 12:05:24 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 21 Mar 2011 12:05:23 +0100 From: Polytropon To: Maxim Khitrov Message-Id: <20110321120523.e6cdb00d.freebsd@edvax.de> In-Reply-To: References: <87k4ftp01o.fsf@oak.localnet> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: glabel causes "GEOM: ada1: media size does not match label" messages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 11:05:26 -0000 On Mon, 21 Mar 2011 06:40:51 -0400, Maxim Khitrov wrote: > I've been using 'dangerously dedicated' partitioning for years without > any issues. What problems have been reported by others? I think those "problems" originate from some operating systems not able to work with disks that do not come with a DOS-style partition table. This may be restricted to DOS-related operating systems (which I personally do not have to care about). For my needs, there has never been a problem booting from such a layout or accessing it. If you just have one slice (a.k.a. "DOS primary partition") and no other operating systems on the disk, there is _no_ particular requirement to create a slice, as far as I could experience. However, it may be needed in multi-boot constellations. The word "dangerous" (deserving the quotes) is, in my opinion, used to emphasize that there is the "danger" that *OTHER* operating systems can't deal with it. Those systems are traditionally located in MICROS~1 land. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 11:08:17 2011 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 DA6511065672 for ; Mon, 21 Mar 2011 11:08:17 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 71FAB8FC17 for ; Mon, 21 Mar 2011 11:08:17 +0000 (UTC) Received: by wwc33 with SMTP id 33so7203400wwc.31 for ; Mon, 21 Mar 2011 04:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=2jl6Q3j+E1gYXTGyNwgKepqVl5UcykEbKkx84e9GzIg=; b=w1xlDKRiTADt7H/fWYexdpgB35M+TjJgN71jXR5Md0fDC65v20h7JbA0NG9nI+ADsw rRzye8E5Keg4xX0O8vC/MRF1YGfq5l4HA7+BmtXzBRcflpXrZk7dP2RIb3Ir2KtzZ4JB T/2cn9X36iO3mSwh1cDxk+Uv2QVG+EKBskKYk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=rZhmFZh3eOI5yxzHIsv8zTFctISgb+LL030GuY7umg4SwezURh+177nHYb5lqPoOIw qqbDTgP0DXRj3NsZgsuIn/FnqBwycihiykrAkArRsXLm2gH3BCeHEQrVbGQTX2udFd8F Ql4qEgu6dWESiLJBD5arphmz89FmDkwlrgbhU= Received: by 10.216.51.135 with SMTP id b7mr5037329wec.29.1300705696363; Mon, 21 Mar 2011 04:08:16 -0700 (PDT) Received: from Melon.malikania.fr (wifi-osiris-sec-181-199.u-strasbg.fr [130.79.181.199]) by mx.google.com with ESMTPS id h11sm2702761wbc.60.2011.03.21.04.08.14 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 04:08:15 -0700 (PDT) Message-ID: <4D873157.2000403@gmail.com> Date: Mon, 21 Mar 2011 12:07:03 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110306 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Wireless always getting down/up 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, 21 Mar 2011 11:08:17 -0000 Hello, In my university there is a special WPA-EAP access point used for safety. I can't get a connection alive 15 minutes without being deconnected.. I noticed these messages when the problem appears : Mar 21 11:58:42 Melon wpa_supplicant[351]: CTRL-EVENT-EAP-STARTED EAP authentication started Mar 21 11:58:42 Melon wpa_supplicant[351]: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 21 (TTLS) selected Mar 21 11:58:42 Melon wpa_supplicant[351]: OpenSSL: tls_connection_handshake - Failed to read possible Application Data error:00000000:lib(0):func(0):reason(0) Is this a wpa_supplicant/openssl trouble ? This is the following configuration I must use (provided by my university) network={ priority=10 ssid="eduroam" proto=WPA2 WPA scan_ssid=1 key_mgmt=WPA-EAP pairwise=TKIP group=TKIP eap=TTLS ca_cert="/etc/iut-cert.pem" anonymous_identity="anonymous@u-strasbg.fr" phase2="auth=PAP" identity="myusername" password="mypasssword" } Disabling ca_cert or enabling does not solve. Cheers, -- David Demelier From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 11:11:36 2011 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 4A1EB1065675 for ; Mon, 21 Mar 2011 11:11:36 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 0E3978FC12 for ; Mon, 21 Mar 2011 11:11:35 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id 0B7F41E42C; Mon, 21 Mar 2011 12:11:34 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2LBBYWi001699; Mon, 21 Mar 2011 12:11:34 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 21 Mar 2011 12:11:34 +0100 From: Polytropon To: David Demelier Message-Id: <20110321121134.b2e3011c.freebsd@edvax.de> In-Reply-To: <4D872C32.6090300@gmail.com> References: <4D85C107.9060704@gmail.com> <20110320121336.837fadc9.freebsd@edvax.de> <4D86F7C7.90008@gmail.com> <86tyewztrn.fsf@gmail.com> <4D872C32.6090300@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: devd started with single-user mode? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 11:11:36 -0000 On Mon, 21 Mar 2011 11:45:06 +0100, David Demelier wrote: > By the way why is kbdmux needed for an usb keyboard? Should not be > managed by ukbd only? > > I don't understand .. But thanks for the patch. Basically, the kbdmux option "wires keyboards in parallel", so you can use both keyboards (assume they are physically present) at the same time, like "one keyboard for each hand". If this option was not present, you would have to use "kbdcontrol -k" to switch from one keyboard (the currently active one) to the other (not usable). Problems may occur if your mainboard does provide an AT style keyboard (usually with PS/2 connector) as atkbdc0 and adkbd0 (controller and keyboard) even if there is no physical keyboard attached. This would then usually become the primary keyboard. A USB keyboard, detected later on as ukbd0, would not automatically be activated (or switched over to by a "kbdcontrol -k" command issued by devd) and can therefore not be used, even if physically present (in opposite to the "phantom" keyboard atkbd0). The kbdmux option makes _all_ keyboards available for input (without using "kbdcontrol -k" and without dependency of devd) so the USB keyboard will be used, the AT "phantom" keyboard will be ignored (which is good when it's not even present). So basically, kbdmux means "use all of them", while its absence means "use this or that". -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 11:15:38 2011 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 683CA106567C for ; Mon, 21 Mar 2011 11:15:38 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id EBC428FC24 for ; Mon, 21 Mar 2011 11:15:37 +0000 (UTC) Received: by wyf23 with SMTP id 23so6056838wyf.13 for ; Mon, 21 Mar 2011 04:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=WoTqD+kxfA8vUh8+7QzLZxZDilVWzD9gbHQFwtnVLvQ=; b=ueYqPJVEwwWRH+CQ8g0MBBuANBAktCAzFzbtQ0ojaIkbnn+gSfzQXIjDp9LvZO8DIR UtW7za6PnRxMEUhVCNzbnYJzVR2iImn1WWmfAk9Ax9KfJ/GNxntUcrxmPegFoiM2HZAO ztwQrHQz8HCILv8WwiEPXvx6FFALMO8tU9Y8k= 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=GcWAO2h60KYo5QwmvSbZS5q88+CsHt91SOwT3OYRd3TH/EwCR+yRHu35ebQwatOLIb kbOyomzppmZFV3xTCx9Xf+mh+tdPBF9QeYDBaAv7Ix7eNyLgw32Y2ODG5HIiHgZoUGEo YZGSoKMR9davoopBu3mCZPNFHerYL9+8zRZBk= Received: by 10.227.132.15 with SMTP id z15mr3935436wbs.218.1300706135485; Mon, 21 Mar 2011 04:15:35 -0700 (PDT) Received: from Melon.malikania.fr (wifi-osiris-sec-181-199.u-strasbg.fr [130.79.181.199]) by mx.google.com with ESMTPS id x1sm2705460wbh.36.2011.03.21.04.15.32 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 04:15:33 -0700 (PDT) Message-ID: <4D87330E.8000904@gmail.com> Date: Mon, 21 Mar 2011 12:14:22 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110306 Thunderbird/3.1.9 MIME-Version: 1.0 To: Polytropon References: <4D85C107.9060704@gmail.com> <20110320121336.837fadc9.freebsd@edvax.de> <4D86F7C7.90008@gmail.com> <86tyewztrn.fsf@gmail.com> <4D872C32.6090300@gmail.com> <20110321121134.b2e3011c.freebsd@edvax.de> In-Reply-To: <20110321121134.b2e3011c.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: devd started with single-user mode? 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, 21 Mar 2011 11:15:38 -0000 On 21/03/2011 12:11, Polytropon wrote: > On Mon, 21 Mar 2011 11:45:06 +0100, David Demelier wrote: >> By the way why is kbdmux needed for an usb keyboard? Should not be >> managed by ukbd only? >> >> I don't understand .. But thanks for the patch. > > Basically, the kbdmux option "wires keyboards in parallel", so > you can use both keyboards (assume they are physically present) > at the same time, like "one keyboard for each hand". If this > option was not present, you would have to use "kbdcontrol -k" > to switch from one keyboard (the currently active one) to the > other (not usable). Problems may occur if your mainboard does > provide an AT style keyboard (usually with PS/2 connector) as > atkbdc0 and adkbd0 (controller and keyboard) even if there is > no physical keyboard attached. This would then usually become > the primary keyboard. A USB keyboard, detected later on as > ukbd0, would not automatically be activated (or switched over > to by a "kbdcontrol -k" command issued by devd) and can therefore > not be used, even if physically present (in opposite to the > "phantom" keyboard atkbd0). The kbdmux option makes _all_ > keyboards available for input (without using "kbdcontrol -k" > and without dependency of devd) so the USB keyboard will be > used, the AT "phantom" keyboard will be ignored (which is good > when it's not even present). > > So basically, kbdmux means "use all of them", while its absence > means "use this or that". > > > Thanks for this information :-) I understood. I hope the patch proposed will be MFC to -STABLE then. Kind regards, -- David Demelier From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 11:25:08 2011 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 E88CE106564A for ; Mon, 21 Mar 2011 11:25:07 +0000 (UTC) (envelope-from D.Schaft@rn.rabobank.nl) Received: from RNmail4.rabobank.nl (rnmail4.rabobank.nl [145.72.106.116]) by mx1.freebsd.org (Postfix) with ESMTP id 15CCD8FC15 for ; Mon, 21 Mar 2011 11:24:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rn.rabobank.nl; i=D.Schaft@rn.rabobank.nl; q=dns/txt; s=dkim; t=1300706700; x=1332242700; h=from:to:date:subject:message-id:in-reply-to:mime-version: content-transfer-encoding; z=From:=20|To:=20,=20|Date:=20Mon ,=2021=20Mar=202011=2012:24:44=20+0100|Subject:=20RE:=20s guil-client=20startup=20problem|Message-ID:=20<7901458E71 514A4DB40498F4740BB08D395AC35068@MAIL3005.rabobank.corp> |In-Reply-To:=20 |MIME-Version:=201.0|Content-Transfer-Encoding:=20quoted- printable; bh=ixt/r6EpPWfGb5Rk0PjvonAMa4Rg/o/KIKBmEvV8Ybg=; b=Mb/SrpFe6wWbzdyu/PmLGvxa+Jnso5phXAorEv1YpUIByHBUb8/Sg0ll KhXx0zXj9cDXSA/QIL14NHLBncSLbN7q73KsTB9lFlzp6zFlUvNvDyqOH igUSJWZTRPuCtya; X-IronPort-AV: E=Sophos;i="4.63,218,1299452400"; d="scan'208";a="316352852" From: To: , Date: Mon, 21 Mar 2011 12:24:44 +0100 Thread-Topic: sguil-client startup problem Thread-Index: AcvloLUY3rKM9nYwRXeLYqdXZor/vACF/YAQ Message-ID: <7901458E71514A4DB40498F4740BB08D395AC35068@MAIL3005.rabobank.corp> In-Reply-To: Accept-Language: nl-NL Content-Language: nl-NL X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: nl-NL Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginalArrivalTime: 21 Mar 2011 11:24:47.0006 (UTC) FILETIME=[959A93E0:01CBE7BA] Content-Transfer-Encoding: quoted-printable Cc: Subject: RE: sguil-client startup 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: Mon, 21 Mar 2011 11:25:08 -0000 Paul, No worries, I had to deinstall tclX, ictl , iwidgets and sguil-client and r= einstall them in the same order to make things work.=20 Not touching the tcl8.5 installation. On the server side, Barnyard2 required an extra addition in the Makefile, r= eferencing the --with-tcllib=3D location (after the mysql reference). Followed by a deinstall and install , resulting in a working snort -> barny= ard2 -> sguil environment. Thanks for your time. Met vriendelijke groet / Kind regards, Danny van der Schaft -----Oorspronkelijk bericht----- Van: Paul Schmehl [mailto:pschmehl_lists@tx.rr.com]=20 Verzonden: vrijdag 18 maart 2011 20:14 Aan: Schaft van der, D (Danny); freebsd-questions@freebsd.org Onderwerp: Re: sguil-client startup problem --On March 17, 2011 4:30:31 PM +0100 D.Schaft@rn.rabobank.nl wrote: > I have a question regarding the installation and startup of sguil-client > on a 8.2 Generic OS. It seems that my installation requires an iwidget > extension when run with tclsh8.4 and receives an error when running > wish8.4: > > Error in startup script: can't read "0": no such variable while executing > Exec /usr/local/bin/wish8.4 "$0" "$@" line 5. > > I have all the required packages , I suppose > (tclX-8.4,tcl-8.4,tcllib,tcltls,tk8.4,ictl-3), also the iwidget extension > is installed... Strangely enough also version 8.5 is present on the > system, could that be a problem. Hopefully , there is someone who has > experienced the same or better yet, has an answer to my problem... > Apparently the default tcl install is now 8.5. Looks like I'm going to=20 have to update the ports. You *may* be able to fix your problem by editing the sguil.tk file,=20 although I'm not sure what other impacts that might have. The script calls=20 wish8.4 explicitly, but that probably doesn't exist on your system. Change=20 it to 8.5 and see if that fixes the problem. --=20 Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Rabobank disclaimer: http://www.rabobank.nl/disclaimer From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 12:57:18 2011 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 195521065678 for ; Mon, 21 Mar 2011 12:57:18 +0000 (UTC) (envelope-from mklaphek@cedarpath.com) Received: from remote.cedarpath.com (static-72-90-89-111.syrcny.fios.verizon.net [72.90.89.111]) by mx1.freebsd.org (Postfix) with ESMTP id 94F6D8FC1A for ; Mon, 21 Mar 2011 12:57:17 +0000 (UTC) Received: from CP-SBS-1.cedarpath.local ([fe80::45c3:bd2f:a005:15ff]) by CP-SBS-1.cedarpath.local ([fe80::45c3:bd2f:a005:15ff%11]) with mapi; Mon, 21 Mar 2011 08:48:28 -0400 From: Michael Klapheke To: "freebsd-questions@freebsd.org" Date: Mon, 21 Mar 2011 08:48:27 -0400 Thread-Topic: FreeBSD Boot Thread-Index: AcvnxUvOF7BLzZhnRhil8Tsc3EjhuQ== Message-ID: <61CB098E09920647A7B1F8D58189E3FD01212C259D@CP-SBS-1.cedarpath.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US 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 Subject: FreeBSD Boot 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, 21 Mar 2011 12:57:18 -0000 Hi. I know this subject has been addressed in other posts, but I cannot se= em to get it to work. I have inherited a FreeBSD server and I cannot get i= t to boot properly. I read the articles on avoiding having to press the F1= key, and I tried to follow the suggestions (note, my disks are labeled "da= 0s1" etc. instead of "ad0") as in the following: boot0cfg -B -b /boot/boot0 /dev/da0 or even fdisk -B -b /boot/boot0 /dev/da0 Neither of these prevents the user from having to press the F1 key. I also read the tutorial on how FreeBSD boots, but I cannot find anything t= hat helps. Any assistance is appreciated. Thanks Mike From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 13:04:45 2011 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 7890A1065675 for ; Mon, 21 Mar 2011 13:04:45 +0000 (UTC) (envelope-from erich@alogreentechnologies.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.226.44]) by mx1.freebsd.org (Postfix) with ESMTP id 462858FC12 for ; Mon, 21 Mar 2011 13:04:44 +0000 (UTC) Received: from amd620.ovitrap.com ([49.128.188.2]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id p2LD4VfW012120; Mon, 21 Mar 2011 07:04:35 -0600 From: Erich Dollansky Organization: ALO Green Technologies Pte Ltd To: freebsd-questions@freebsd.org Date: Mon, 21 Mar 2011 20:04:39 +0700 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.5.4; amd64; ; ) References: <61CB098E09920647A7B1F8D58189E3FD01212C259D@CP-SBS-1.cedarpath.local> In-Reply-To: <61CB098E09920647A7B1F8D58189E3FD01212C259D@CP-SBS-1.cedarpath.local> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103212004.39503.erich@alogreentechnologies.com> X-Mailman-Approved-At: Mon, 21 Mar 2011 13:19:37 +0000 Cc: Michael Klapheke Subject: Re: FreeBSD Boot 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, 21 Mar 2011 13:04:45 -0000 Hi, you have a bootmanager installed. On Monday 21 March 2011 19:48:27 Michael Klapheke wrote: > Hi. I know this subject has been addressed in other posts, but I cannot seem to get it to work. I have inherited a FreeBSD server and I cannot get it to boot properly. I read the articles on avoiding having to press the F1 key, and I tried to follow the suggestions (note, my disks are labeled "da0s1" etc. instead of "ad0") as in the following: > da are SCSI disks, ad are ATA disks. > boot0cfg -B -b /boot/boot0 /dev/da0 > > or even > > fdisk -B -b /boot/boot0 /dev/da0 > Just start sysinstall and write a plain mbr without a boot manager. > Neither of these prevents the user from having to press the F1 key. Of course not. Erich From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 13:34:54 2011 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 BF7CE106564A for ; Mon, 21 Mar 2011 13:34:54 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 7C4F68FC12 for ; Mon, 21 Mar 2011 13:34:54 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q1fFv-000371-4E for freebsd-questions@freebsd.org; Mon, 21 Mar 2011 14:34:47 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Mar 2011 14:34:47 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Mar 2011 14:34:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Mon, 21 Mar 2011 14:34:29 +0100 Lines: 26 Message-ID: References: <61CB098E09920647A7B1F8D58189E3FD01212C259D@CP-SBS-1.cedarpath.local> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101102 Thunderbird/3.1.6 In-Reply-To: <61CB098E09920647A7B1F8D58189E3FD01212C259D@CP-SBS-1.cedarpath.local> X-Enigmail-Version: 1.1.2 Subject: Re: FreeBSD Boot 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, 21 Mar 2011 13:34:54 -0000 On 21/03/2011 13:48, Michael Klapheke wrote: > Hi. I know this subject has been addressed in other posts, but I cannot seem to get it to work. I have inherited a FreeBSD server and I cannot get it to boot properly. I read the articles on avoiding having to press the F1 key, and I tried to follow the suggestions (note, my disks are labeled "da0s1" etc. instead of "ad0") as in the following: > > boot0cfg -B -b /boot/boot0 /dev/da0 > > or even > > fdisk -B -b /boot/boot0 /dev/da0 > > Neither of these prevents the user from having to press the F1 key. It's not a configurable parameter of the boot loader, you need a different boot loader ("default"). However, why is that a problem? The user doesn't *have* to press the F1 key, he can just wait 5 seconds or so and the boot will proceed with the last boot choice. > I also read the tutorial on how FreeBSD boots, but I cannot find anything that helps. T think the relevant lines from boot0cfg(8) are: To go back to non-interactive booting, use fdisk(8) to install the default MBR: fdisk -B ad0 From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 13:39:16 2011 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 6EA371065672 for ; Mon, 21 Mar 2011 13:39:16 +0000 (UTC) (envelope-from kazakevichilya@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 044F38FC17 for ; Mon, 21 Mar 2011 13:39:15 +0000 (UTC) Received: by wyf23 with SMTP id 23so6195811wyf.13 for ; Mon, 21 Mar 2011 06:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=57wpsY2L5j5AjUH/Bq2zXymb/P8v+VQxYRMVbN3xO8c=; b=a3Ydmnz+q0yU/PjDDuYwaKwUICE4P80l+Cle+LUT9MCOWKv04NRnl2pmpHcY3hD9+a mXe6giBWyqniHlo4eGvWl45gVIroEgT44bMIkAN2R76gXAqXVSW3nIox/2WP9DZYE+kx MuGaIs3ZRQMZ/OT57650T1qGkB/vCskTLaDxI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=MNzNepyVCWrg0Cf93wrpn6kt/CPA7L77QjdivghFSyRfK1T+KIYs+HqnCPJUjeINlH nbJWoEYcvg2DNmwd2ywwLTdLcF8qrHmQFozf2RAKv1T1+9LqSRpfFCEkGEjTMYE94y3r IyYqvlcA2xKzo4kMad1McRlvH53EqFfGPew/c= MIME-Version: 1.0 Received: by 10.227.198.206 with SMTP id ep14mr4083578wbb.174.1300714754193; Mon, 21 Mar 2011 06:39:14 -0700 (PDT) Received: by 10.227.157.148 with HTTP; Mon, 21 Mar 2011 06:39:13 -0700 (PDT) In-Reply-To: <61CB098E09920647A7B1F8D58189E3FD01212C259D@CP-SBS-1.cedarpath.local> References: <61CB098E09920647A7B1F8D58189E3FD01212C259D@CP-SBS-1.cedarpath.local> Date: Mon, 21 Mar 2011 16:39:13 +0300 Message-ID: From: Ilya Kazakevich To: Michael Klapheke Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-questions@freebsd.org" Subject: Re: FreeBSD Boot 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, 21 Mar 2011 13:39:16 -0000 You can use "fdisk -B" to install non-interactive boot manager. Or you can use -t in boot0cfg to make timeout equals to zero. If after it you STILL have "F1" -- you probably boot from another drive: not da0 but da1. How many drives do you have? Check your BIOS settings to find which drive you boot from. Ilya. On Mon, Mar 21, 2011 at 3:48 PM, Michael Klapheke wrote: > Hi. I know this subject has been addressed in other posts, but I cannot > seem to get it to work. I have inherited a FreeBSD server and I cannot get > it to boot properly. I read the articles on avoiding having to press the F1 > key, and I tried to follow the suggestions (note, my disks are labeled > "da0s1" etc. instead of "ad0") as in the following: > > boot0cfg -B -b /boot/boot0 /dev/da0 > > or even > > fdisk -B -b /boot/boot0 /dev/da0 > > Neither of these prevents the user from having to press the F1 key. > > I also read the tutorial on how FreeBSD boots, but I cannot find anything > that helps. > > Any assistance is appreciated. > > Thanks > > Mike > _______________________________________________ > 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 Mar 21 15:50:10 2011 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 766EA1065676 for ; Mon, 21 Mar 2011 15:50:10 +0000 (UTC) (envelope-from ekarkkai@pp.htv.fi) Received: from filtteri6.pp.htv.fi (filtteri6.pp.htv.fi [213.243.153.189]) by mx1.freebsd.org (Postfix) with ESMTP id 165FE8FC08 for ; Mon, 21 Mar 2011 15:50:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by filtteri6.pp.htv.fi (Postfix) with ESMTP id 72AC156E197 for ; Mon, 21 Mar 2011 17:30:26 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp4.welho.com ([213.243.153.38]) by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new, port 10024) with ESMTP id 3UnPZ0P74p7J for ; Mon, 21 Mar 2011 17:30:25 +0200 (EET) Received: from zero.my.domain (cs95087.pp.htv.fi [212.90.95.87]) by smtp4.welho.com (Postfix) with ESMTP id D81535BC011 for ; Mon, 21 Mar 2011 17:30:25 +0200 (EET) Received: from thunderbolt.my.domain (thunderbolt.my.domain [10.192.168.30]) by zero.my.domain (8.14.4/8.14.4) with ESMTP id p2LFUOI0005560 for ; Mon, 21 Mar 2011 17:30:25 +0200 (EET) (envelope-from ekarkkai@pp.htv.fi) Received: from thunderbolt.my.domain (localhost [127.0.0.1]) by thunderbolt.my.domain (8.14.4/8.14.4) with ESMTP id p2LFUOvL028028 for ; Mon, 21 Mar 2011 17:30:24 +0200 (EET) (envelope-from ejk@thunderbolt.my.domain) Received: (from ejk@localhost) by thunderbolt.my.domain (8.14.4/8.14.4/Submit) id p2LFUOLV028027 for freebsd-questions@freebsd.org; Mon, 21 Mar 2011 17:30:24 +0200 (EET) (envelope-from ejk) Date: Mon, 21 Mar 2011 17:30:24 +0200 From: Esa Karkkainen To: freebsd-questions@freebsd.org Message-ID: <20110321153024.GA85545@pp.htv.fi> Mail-Followup-To: Esa Karkkainen , freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: Soekris net4801 running 8.2-R-p1 crashdumps 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, 21 Mar 2011 15:50:10 -0000 Hi, My pf firewall running on net4801 has crashed twice this year. When the net4801 is handling more than 10Mbit/s of network traffic, the box seems to crash. I have two crashdumps. I'll paste backtrace from the first one below. The backtrace from the second seems to be quite identical. #0 doadump () at pcpu.h:246 246 pcpu.h: No such file or directory. in pcpu.h (kgdb) #0 doadump () at pcpu.h:246 #1 0xc0572033 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:416 #2 0xc057223e in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:590 #3 0xc052e3e3 in hardclock (usermode=-1, pc=3229071867) at /usr/src/sys/kern/kern_clock.c:765 #4 0xc078db81 in hardclockintr (frame=0xc13a8828) at /usr/src/sys/i386/isa/clock.c:138 #5 0xc078dd77 in clkintr (frame=0xc13a8828) at /usr/src/sys/i386/isa/clock.c:198 #6 0xc054bc15 in intr_event_handle (ie=0xc1423a80, frame=0xc13a8828) at /usr/src/sys/kern/kern_intr.c:1378 #7 0xc0779909 in intr_execute_handlers (isrc=0xc0825d60, frame=0xc13a8828) at /usr/src/sys/i386/i386/intr_machdep.c:251 #8 0xc078d5d7 in atpic_handle_intr (vector=0, frame=0xc13a8828) at /usr/src/sys/i386/isa/atpic.c:595 #9 0xc0775251 in Xatpic_intr0 () at atpic_vector.s:62 #10 0xc077b9fb in spinlock_exit () at cpufunc.h:348 #11 0xc078d85f in getit () at /usr/src/sys/i386/isa/clock.c:329 #12 0xc078e0b5 in DELAY (n=100000) at /usr/src/sys/i386/isa/clock.c:424 #13 0xc05716d2 in shutdown_panic (junk=0x0, howto=260) at /usr/src/sys/kern/kern_shutdown.c:464 #14 0xc05720b3 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:419 #15 0xc057223e in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:590 #16 0xc0789cbc in trap_fatal (frame=0xc13a8a38, eva=12) at /usr/src/sys/i386/i386/trap.c:938 #17 0xc0789f40 in trap_pfault (frame=0xc13a8a38, usermode=0, eva=12) at /usr/src/sys/i386/i386/trap.c:851 #18 0xc078a855 in trap (frame=0xc13a8a38) at /usr/src/sys/i386/i386/trap.c:533 #19 0xc07751ab in calltrap () at /usr/src/sys/i386/i386/exception.s:165 #20 0xc05c2118 in m_copydata (m=0x0, off=0, len=12, cp=0xc1cc086c "") at /usr/src/sys/kern/uipc_mbuf.c:819 #21 0xc0638345 in ip_forward (m=0xc1bf7e00, srcrt=1) at /usr/src/sys/netinet/ip_input.c:1471 #22 0xc0639c09 in ip_input (m=0xc1bf7e00) at /usr/src/sys/netinet/ip_input.c:735 #23 0xc061d319 in netisr_dispatch_src (proto=1, source=0, m=0xc1bf7e00) at /usr/src/sys/net/netisr.c:917 #24 0xc061d5b0 in netisr_dispatch (proto=1, m=0xc1bf7e00) at /usr/src/sys/net/netisr.c:1004 #25 0xc061852a in ether_demux (ifp=0xc1418400, m=0xc1bf7e00) at /usr/src/sys/net/if_ethersubr.c:901 #26 0xc0618a83 in ether_input (ifp=0xc1418400, m=0xc1bf7e00) at /usr/src/sys/net/if_ethersubr.c:760 #27 0xc04fc088 in sis_rxeof (sc=0xc1475600) at /usr/src/sys/dev/sis/if_sis.c:1477 #28 0xc04fcb93 in sis_poll (ifp=0xc1418400, cmd=POLL_ONLY, count=5) at /usr/src/sys/dev/sis/if_sis.c:1605 #29 0xc056480b in netisr_poll () at /usr/src/sys/kern/kern_poll.c:448 #30 0xc061d961 in swi_net (arg=0xc0c25800) at /usr/src/sys/net/netisr.c:748 #31 0xc054ac8b in intr_event_execute_handlers (p=0xc14267f8, ie=0xc143b400) at /usr/src/sys/kern/kern_intr.c:1220 #32 0xc054c2da in ithread_loop (arg=0xc1407b40) at /usr/src/sys/kern/kern_intr.c:1233 #33 0xc0548a00 in fork_exit (callout=0xc054c270 , arg=0xc1407b40, frame=0xc13a8d38) at /usr/src/sys/kern/kern_fork.c:844 #34 0xc0775220 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:270 -- "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." -- Douglas Adams 1952 - 2001 From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 15:57:50 2011 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 D71D5106564A for ; Mon, 21 Mar 2011 15:57:50 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id A5D648FC14 for ; Mon, 21 Mar 2011 15:57:50 +0000 (UTC) Received: by iyj12 with SMTP id 12so7753098iyj.13 for ; Mon, 21 Mar 2011 08:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=kHDWOqB0ZMRjbHpXhqI3slNGdds9aQhmEbLJAdQDxeU=; b=G5qHDWLrI+ibvlJuv7RaB/rgqZP+QTc6sd+QRB1boCk9yUhpg5+FjNfY6S++k7Daqb GcBwz/DT5xCsZxJa8Xx5ZcP2FSb3HTa2VaOsX2w/oGZP23a/DxfACtkezHBr0MT3ObbW NVi0gkU4BPRajdeT5ODZvbSz0hAuxkT02IeD4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=SCFVesVVfBjLnbXH3EK5zMcKhl7zS2E4x510vVlFIaLg+JzCj+s7mB7B/DLf+Nso5T hrkfDuA0p5RrDdh7YCX2o6+Kd7MzLsa+sQqvmd9T0PEnwcda4/UYTdU6QGxTL2pRWa7f AWWrN9wiXwAL9OPfW5njkRow1Lq4dWsW/ppPQ= MIME-Version: 1.0 Received: by 10.42.156.129 with SMTP id z1mr6971632icw.473.1300723020162; Mon, 21 Mar 2011 08:57:00 -0700 (PDT) Received: by 10.231.23.81 with HTTP; Mon, 21 Mar 2011 08:57:00 -0700 (PDT) Date: Mon, 21 Mar 2011 10:57:00 -0500 Message-ID: From: Antonio Olivares To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Subject: gkrellm2 GnuTLS and OpenSSL, conky doesn't 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, 21 Mar 2011 15:57:50 -0000 Dear FreeBSD experts, I wanted to install gkrellm2 and I get the following error. grullahighschool# cd /usr/ports/sysutils/ grullahighschool# cd gkrellm2 grullahighschool# pwd /usr/ports/sysutils/gkrellm2 grullahighschool# make install clean ===> gkrellm-2.3.4_3 is marked as broken: GnuTLS and OpenSSL is mutually exclusive.. *** Error code 1 Stop in /usr/ports/sysutils/gkrellm2. I then thought to myself conky can do the job too, so I tried to install it and it succeeded, but when I try to run it, I get the following: [olivares@grullahighschool ~]$ conky Conky: no readable personal or system-wide config file found I am running 8.1 freebsd [olivares@grullahighschool ~]$ uname -a FreeBSD grullahighschool.rgccisd.org 8.1-RELEASE-p0 FreeBSD 8.1-RELEASE-p0 #0: Mon Jul 26 08:26:45 UTC 2010 root@hybrid.freebsdgr.org:/usr/obj/usr/src/sys/GENERIC amd64 Thanks for any pointers as to how to solve at least one of the two. If I can get conky to work, I'd be happy or get gkrellm running XFCE as the desktop. Regards, Antonio From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 16:02:14 2011 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 A7D5B106566B for ; Mon, 21 Mar 2011 16:02:14 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 377448FC13 for ; Mon, 21 Mar 2011 16:02:13 +0000 (UTC) Received: by iwn33 with SMTP id 33so7721363iwn.13 for ; Mon, 21 Mar 2011 09:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=L4KHQ8t0dULUme9YW+9ZYsEXyQcK4xPFoqisN8pmgqI=; b=mn0DbCkfJtf8i7KeXYgPvM8dTZGQJRMiSfyMFBrhK5RNU0iYYDUNbwCFSWVepTRlGn kd0uMVVIBCD1zbHy+bJ3ZFaTuhdV8q24Oi26H2Td+kQrPHGrLJ4HwpbviQT+SR6qZC4m ejYB4pAV2OA8tr/vsGEFZFjzt652c9txlyYLw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=uhPUC/ZNltVLTO2FDWPTwKKKTy3KCcDV6mGdH3yZKNS3/W+m+v3ul29As859rGAov0 96d1ejIgvSH1PXYfGymjzSdeBxgVyAB+ull1nh8o8UiIK7wCw+NtUN+ub46hExUejnUz E5Os5C7GEN9NqLw9rlG+5v3b+3tjjYIqVVEao= MIME-Version: 1.0 Received: by 10.231.120.193 with SMTP id e1mr4309004ibr.154.1300723333509; Mon, 21 Mar 2011 09:02:13 -0700 (PDT) Received: by 10.231.23.81 with HTTP; Mon, 21 Mar 2011 09:02:13 -0700 (PDT) In-Reply-To: <20110312232449.GA91695@guilt.hydra> References: <20110312232449.GA91695@guilt.hydra> Date: Mon, 21 Mar 2011 11:02:13 -0500 Message-ID: From: Antonio Olivares To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Chad Perrin Subject: Re: Character shortcuts 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, 21 Mar 2011 16:02:14 -0000 On Sat, Mar 12, 2011 at 5:24 PM, Chad Perrin wrote: > On Sat, Mar 12, 2011 at 02:07:59PM -0600, Antonio Olivares wrote: >> Dear FreeBSD experts, >> >> There has been something that I find hard to do, I would like to find >> a CTRL + KEY combination, or ALT + KEY combination to input special >> characters like (=F1) =A0[ALT + 164 or ALT + 0241 in Mr. Gates OS]. >> >> http://www.forlang.wsu.edu/help/keyboards.asp >> >> accents other symbols like copyright, euro, etc. =A0I would like to do >> the same(have a special key combination) to get the characters in >> FreeBSD too, but googling have not found something that works. =A0I even >> tried to run a litte program in the shell to generate the characters >> to use for cutting + pasting to no avial. > > I wrote this about setting up a Compose key a while back: > > =A0 =A0entering special characters in Xorg > =A0 =A0http://sob.apotheon.org/?p=3D814 > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] > Chad & all, using the command $ setxkbmap -option compose:ralt works very well :) Thank you all for the help provided. using the ALT key + SHIFT (TILDE ~) + n gives : =F1 , accents and other special characters are easy to do now thanks to the much easier to follow than Mr. Gates OS :) Regards, Antonio From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 17:37:52 2011 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 7E48D1065676 for ; Mon, 21 Mar 2011 17:37:52 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 03F848FC14 for ; Mon, 21 Mar 2011 17:37:51 +0000 (UTC) Received: by fxm11 with SMTP id 11so6740061fxm.13 for ; Mon, 21 Mar 2011 10:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=NExQZ2NJDX/WzOxM1tLF0sgbZplow3s83fIn2j/oqs4=; b=hqnU/wmZnSKj+CJ9S59NzA1UEGqYyWsEKCYra5c7GsGcHfLP+CnJKi4V15pN4M9m1u H+hhq2zcy5oLYAcR6Aqp7s/ekK7dI7COyM5Owwg9QowBflg+u/P5/hOPMnO0JxO7Lk+y d4L36o1f9Ah6VfZ0c6xnvSjH3CnvJbgtjs1dA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=MMQ+dSucKq0Xl6r3bW80nBrWikcqjf9tb/zD0y/VOW44pda3eR2BajQVFxW6CF2vY9 +xjxWxfL1kXM5ieB00JMx1gPudXulQANV7CMvZl2UNEbM5pl2VlAUCl22EyPP03twe0a p+19RWoFeDKQatUCx+R27Gyif+vpe+H0kH8sM= Received: by 10.223.81.197 with SMTP id y5mr684143fak.25.1300728413978; Mon, 21 Mar 2011 10:26:53 -0700 (PDT) Received: from Groseille.malikania.fr ([84.102.21.65]) by mx.google.com with ESMTPS id b18sm2386762fak.8.2011.03.21.10.26.52 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 10:26:53 -0700 (PDT) Message-ID: <4D878A6B.4070403@gmail.com> Date: Mon, 21 Mar 2011 18:27:07 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110320 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: gkrellm2 GnuTLS and OpenSSL, conky doesn't 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, 21 Mar 2011 17:37:52 -0000 On 21/03/2011 16:57, Antonio Olivares wrote: > Dear FreeBSD experts, > > I wanted to install gkrellm2 and I get the following error. > > grullahighschool# cd /usr/ports/sysutils/ > grullahighschool# cd gkrellm2 > grullahighschool# pwd > /usr/ports/sysutils/gkrellm2 > grullahighschool# make install clean > ===> gkrellm-2.3.4_3 is marked as broken: GnuTLS and OpenSSL is > mutually exclusive.. > *** Error code 1 > I think this is an error easy to understand for people that speak a little english. You can't install gkrellm2 with both GNUTLS and OPENSSL options at the same time! Do make config and disable GNUTLS (it's the default thus I assume you probably enabled it) > Stop in /usr/ports/sysutils/gkrellm2. > > > I then thought to myself conky can do the job too, so I tried to > install it and it succeeded, but when I try to run it, I get the > following: > > [olivares@grullahighschool ~]$ conky > Conky: no readable personal or system-wide config file found > You may need to write a ~/.conkyrc to run properly conky. Please read conky. It's easy to understand or search for conky examples on the web. > I am running 8.1 freebsd > > [olivares@grullahighschool ~]$ uname -a > FreeBSD grullahighschool.rgccisd.org 8.1-RELEASE-p0 FreeBSD > 8.1-RELEASE-p0 #0: Mon Jul 26 08:26:45 UTC 2010 > root@hybrid.freebsdgr.org:/usr/obj/usr/src/sys/GENERIC amd64 > > Thanks for any pointers as to how to solve at least one of the two. > If I can get conky to work, I'd be happy or get gkrellm running XFCE > as the desktop. > > Regards, > > Antonio > _______________________________________________ > 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" Cheers, -- David Demelier From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 17:45:42 2011 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 3FBFC1065673 for ; Mon, 21 Mar 2011 17:45:42 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 07D688FC22 for ; Mon, 21 Mar 2011 17:45:41 +0000 (UTC) Received: by iyj12 with SMTP id 12so7873358iyj.13 for ; Mon, 21 Mar 2011 10:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=iVOPJNd2bPc1UQ48nvUGSH6/LIMla4kAD8pVKgHsDbo=; b=aY36itGtIMGjO7z5hNA6fHZjBdjgAtIxSr7JBFEZ1Ctmn8eBgNpXzc+/sTvkkKTZG4 XrXGvKefC0Iw2hSnijItM/D5TwsjgtYSnZode8hgERtEN6RoxPs2VQU+fMOGJqq0raIV /uFV7JXiaTZMXYngl34leIId6eIlTKjyPVPu4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XK4TCGYelB0GYwaWLgFH7fRUf2c8+tOHCZeM0ySUI2O9vZkV19kwaDXeMbG2Hx1Bm5 ZQHxVnxuniNpyDe9u904ZIROPER625gzyPY1WfUu4PZUMwzSa8rSUJRQsXUG07A/BpWg Ng86tMJYCpwR0Eybvzk2Xwz8xF3dXxhpUlWO0= MIME-Version: 1.0 Received: by 10.231.206.14 with SMTP id fs14mr4456428ibb.104.1300729541008; Mon, 21 Mar 2011 10:45:41 -0700 (PDT) Received: by 10.231.23.81 with HTTP; Mon, 21 Mar 2011 10:45:40 -0700 (PDT) In-Reply-To: <4D878A6B.4070403@gmail.com> References: <4D878A6B.4070403@gmail.com> Date: Mon, 21 Mar 2011 12:45:40 -0500 Message-ID: From: Antonio Olivares To: David Demelier Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: gkrellm2 GnuTLS and OpenSSL, conky doesn't 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, 21 Mar 2011 17:45:42 -0000 On Mon, Mar 21, 2011 at 12:27 PM, David Demelier wrote: > On 21/03/2011 16:57, Antonio Olivares wrote: >> >> Dear FreeBSD experts, >> >> I wanted to install gkrellm2 and I get the following error. >> >> grullahighschool# cd /usr/ports/sysutils/ >> grullahighschool# cd gkrellm2 >> grullahighschool# pwd >> /usr/ports/sysutils/gkrellm2 >> grullahighschool# make install clean >> =3D=3D=3D> =A0 gkrellm-2.3.4_3 is marked as broken: GnuTLS and OpenSSL i= s >> mutually exclusive.. >> *** Error code 1 >> > > I think this is an error easy to understand for people that speak a littl= e > english. > > You can't install gkrellm2 with both GNUTLS and OPENSSL options at the sa= me > time! > > Do make config and disable GNUTLS (it's the default thus I assume you > probably enabled it) > >> Stop in /usr/ports/sysutils/gkrellm2. >> >> >> I then thought to myself conky can do the job too, so I tried to >> install it and it succeeded, but when I try to run it, I get the >> following: >> >> [olivares@grullahighschool ~]$ conky >> Conky: no readable personal or system-wide config file found >> > > You may need to write a ~/.conkyrc to run properly conky. Please read con= ky. > It's easy to understand or search for conky examples on the web. > >> I am running 8.1 freebsd >> >> [olivares@grullahighschool ~]$ uname -a >> FreeBSD grullahighschool.rgccisd.org 8.1-RELEASE-p0 FreeBSD >> 8.1-RELEASE-p0 #0: Mon Jul 26 08:26:45 UTC 2010 >> root@hybrid.freebsdgr.org:/usr/obj/usr/src/sys/GENERIC =A0amd64 >> >> Thanks for any pointers as to how to solve at least one of the two. >> If I can get conky to work, I'd be happy or get gkrellm running XFCE >> as the desktop. >> > Cheers, > > -- David, Thank you very much for your help :) I have run # make config and disabled the bad guy and now I am in business with gkrellm. I did not know how to go back and make changes, and with your guidance I overcame the problem. On the other hand with conky, I get error [olivares@grullahighschool ~]$ conky -C > ~/.conkyrc [olivares@grullahighschool ~]$ conky Conky: Xft not enabled at compile time Conky: desktop window (1400003) is subwindow of root window (12b) Conky: window type - desktop Conky: drawing to created window (0x1e00001) Conky: drawing to single buffer Segmentation fault: 11 (core dumped) [olivares@grullahighschool ~]$ conky Conky: Xft not enabled at compile time Conky: desktop window (1400003) is subwindow of root window (12b) Conky: window type - desktop Conky: drawing to created window (0x1e00001) Conky: drawing to single buffer It starts up find, but then crashes. But I have gkrellm working so I am happy :) Regards, Antonio From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 17:50:38 2011 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 EA4A7106566C for ; Mon, 21 Mar 2011 17:50:38 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 762338FC1F for ; Mon, 21 Mar 2011 17:50:38 +0000 (UTC) Received: by fxm11 with SMTP id 11so6754735fxm.13 for ; Mon, 21 Mar 2011 10:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=PlYrEs8t6IF7i6A2afnFrP729/gc0IBicX2gMUfHUbQ=; b=QNVBDfvFQv4Z+CUkc1I4oxUyx1GHcm3fJ+sipCo5NL3PKGuWrnf5gYex+km6BENQKU j93X/4iKrJbEp9dLGj18vEotivIw6aOqJCZacTDzLnFGNGOaRZlN8GI8DxrTC0v+HjJS 0/4ezWfEGOy7o9sUVq0n0S42p8+LVgQgWnPR0= 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=HBr3Xinhzue0ai86whgdXzuaPo+xY1S8lVxFgpTtEj0xfH88NrcjJh7xaeKmmuTiPT 6fPDwXTWLq9XCY46Na4Up6aaFqtca3dPsgM1JNj6Z/u3bA8+zuyqTkzkc+jKrWwPPrtD y9Z8n22W2r1ylz2gZU3ldEi7q6G40ps983/C0= Received: by 10.223.30.66 with SMTP id t2mr1487418fac.16.1300729754945; Mon, 21 Mar 2011 10:49:14 -0700 (PDT) Received: from Groseille.malikania.fr (65.21.102-84.rev.gaoland.net [84.102.21.65]) by mx.google.com with ESMTPS id n9sm1935298fax.3.2011.03.21.10.49.12 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 10:49:13 -0700 (PDT) Message-ID: <4D878FAB.8050500@gmail.com> Date: Mon, 21 Mar 2011 18:49:31 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110320 Thunderbird/3.1.9 MIME-Version: 1.0 To: Antonio Olivares References: <4D878A6B.4070403@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: gkrellm2 GnuTLS and OpenSSL, conky doesn't 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, 21 Mar 2011 17:50:39 -0000 On 21/03/2011 18:45, Antonio Olivares wrote: > On Mon, Mar 21, 2011 at 12:27 PM, David Demelier > wrote: >> On 21/03/2011 16:57, Antonio Olivares wrote: >>> >>> Dear FreeBSD experts, >>> >>> I wanted to install gkrellm2 and I get the following error. >>> >>> grullahighschool# cd /usr/ports/sysutils/ >>> grullahighschool# cd gkrellm2 >>> grullahighschool# pwd >>> /usr/ports/sysutils/gkrellm2 >>> grullahighschool# make install clean >>> ===> gkrellm-2.3.4_3 is marked as broken: GnuTLS and OpenSSL is >>> mutually exclusive.. >>> *** Error code 1 >>> >> >> I think this is an error easy to understand for people that speak a little >> english. >> >> You can't install gkrellm2 with both GNUTLS and OPENSSL options at the same >> time! >> >> Do make config and disable GNUTLS (it's the default thus I assume you >> probably enabled it) >> >>> Stop in /usr/ports/sysutils/gkrellm2. >>> >>> >>> I then thought to myself conky can do the job too, so I tried to >>> install it and it succeeded, but when I try to run it, I get the >>> following: >>> >>> [olivares@grullahighschool ~]$ conky >>> Conky: no readable personal or system-wide config file found >>> >> >> You may need to write a ~/.conkyrc to run properly conky. Please read conky. >> It's easy to understand or search for conky examples on the web. >> >>> I am running 8.1 freebsd >>> >>> [olivares@grullahighschool ~]$ uname -a >>> FreeBSD grullahighschool.rgccisd.org 8.1-RELEASE-p0 FreeBSD >>> 8.1-RELEASE-p0 #0: Mon Jul 26 08:26:45 UTC 2010 >>> root@hybrid.freebsdgr.org:/usr/obj/usr/src/sys/GENERIC amd64 >>> >>> Thanks for any pointers as to how to solve at least one of the two. >>> If I can get conky to work, I'd be happy or get gkrellm running XFCE >>> as the desktop. >>> >> Cheers, >> >> -- > David, > > Thank you very much for your help :) I have run > # make config > and disabled the bad guy and now I am in business with gkrellm. I did > not know how to go back and make changes, and with your guidance I > overcame the problem. > > On the other hand with conky, I get error > > [olivares@grullahighschool ~]$ conky -C> ~/.conkyrc > [olivares@grullahighschool ~]$ conky > Conky: Xft not enabled at compile time > Conky: desktop window (1400003) is subwindow of root window (12b) > Conky: window type - desktop > Conky: drawing to created window (0x1e00001) > Conky: drawing to single buffer > Segmentation fault: 11 (core dumped) > [olivares@grullahighschool ~]$ conky > Conky: Xft not enabled at compile time > Conky: desktop window (1400003) is subwindow of root window (12b) > Conky: window type - desktop > Conky: drawing to created window (0x1e00001) > Conky: drawing to single buffer > > > It starts up find, but then crashes. But I have gkrellm working so I > am happy :) > sorry I don't use conky anymore, it crashes and leave a core dump or not ? Some window manager does not handle well conky and may redraw the root over the conky that's why sometime the conky output may disappear. If this is your case take a look at the own_window or window_type settings (I don't know exactly sorry). > Regards, > > Antonio Cheers, -- David Demelier From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 18:28:23 2011 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 29ECA106566B for ; Mon, 21 Mar 2011 18:28:23 +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 D89E18FC18 for ; Mon, 21 Mar 2011 18:28:22 +0000 (UTC) Received: from [212.54.34.142] (helo=smtp11.gn.mail.iss.as9143.net) by smtpq2.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1Q1jb8-0003GU-52 for freebsd-questions@freebsd.org; Mon, 21 Mar 2011 19:12:58 +0100 Received: from 541980a1.cm-5-2c.dynamic.ziggo.nl ([84.25.128.161] helo=ra.egypt.nl) by smtp11.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1Q1jb7-0003uC-2k for freebsd-questions@freebsd.org; Mon, 21 Mar 2011 19:12:57 +0100 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id 7068939865 for ; Mon, 21 Mar 2011 19:12:56 +0100 (CET) Message-ID: <4D879527.2040306@boosten.org> Date: Mon, 21 Mar 2011 19:12:55 +0100 From: Peter Boosten User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20110321153024.GA85545@pp.htv.fi> In-Reply-To: <20110321153024.GA85545@pp.htv.fi> X-Enigmail-Version: 1.1.1 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: 1Q1jb7-0003uC-2k X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-0.419, vereist 5, BAYES_00 -1.90, CM_META_TB_NOARR 0.50, RDNS_DYNAMIC 0.98, SPF_PASS -0.00) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No Subject: Re: Soekris net4801 running 8.2-R-p1 crashdumps 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, 21 Mar 2011 18:28:23 -0000 On 21-3-2011 16:30, Esa Karkkainen wrote: > Hi, > > My pf firewall running on net4801 has crashed twice this year. > > When the net4801 is handling more than 10Mbit/s of network > traffic, the box seems to crash. > That's not only for 8.2, I had M0n0 installed on my 4801, and it would totally lockup at 12Mbit/s, and in some instances crash also. I always thought it was related to the hardware (and especially the NICs). I solved that by buying a 5501. Peter -- http://www.boosten.org From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 19:34:58 2011 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 C833A106564A for ; Mon, 21 Mar 2011 19:34:58 +0000 (UTC) (envelope-from dcdowse@gmx.net) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 38DF68FC08 for ; Mon, 21 Mar 2011 19:34:57 +0000 (UTC) Received: (qmail invoked by alias); 21 Mar 2011 19:08:13 -0000 Received: from g230142130.adsl.alicedsl.de (EHLO bytebox.homeunix.net) [92.230.142.130] by mail.gmx.net (mp026) with SMTP; 21 Mar 2011 20:08:13 +0100 X-Authenticated: #30106961 X-Provags-ID: V01U2FsdGVkX18gdzFZYBIgu8VmNGoJpZ44OOlgdze1Tadnnjw3dQ hYM6pQ4Svmkoxf Date: Mon, 21 Mar 2011 20:08:12 +0100 From: "Daniel C. Dowse" To: freebsd-questions@freebsd.org In-Reply-To: References: <4D878A6B.4070403@gmail.com> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.22.1; i386-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Message-Id: <20110321193458.C833A106564A@hub.freebsd.org> Subject: Re: gkrellm2 GnuTLS and OpenSSL, conky doesn't 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, 21 Mar 2011 19:34:58 -0000 On Mon, 21 Mar 2011 12:45:40 -0500, Antonio Olivares wrote: [snip] >On the other hand with conky, I get error > >[olivares@grullahighschool ~]$ conky -C > ~/.conkyrc >[olivares@grullahighschool ~]$ conky >Conky: Xft not enabled at compile time >Conky: desktop window (1400003) is subwindow of root window (12b) >Conky: window type - desktop >Conky: drawing to created window (0x1e00001) >Conky: drawing to single buffer >Segmentation fault: 11 (core dumped) >[olivares@grullahighschool ~]$ conky >Conky: Xft not enabled at compile time >Conky: desktop window (1400003) is subwindow of root window (12b) >Conky: window type - desktop >Conky: drawing to created window (0x1e00001) >Conky: drawing to single buffer > > >It starts up find, but then crashes. But I have gkrellm working so I >am happy :) [snap] Hi, you probably have to enable XFT support with make config in sysutils/conky and select that option. If this doesn't help to prevent conky from crashing, i don't know either. I use Conky 1.8.1 on 8.1-RELEASE-p2 with no problems except with some memory leak after a few days. With conky -v you can see the selected options your conky was compiled with. cheers Daniel -- \\|// (o o) -----------ooO-(_)-Ooo------------------------------------------- - »Der vernünftige Mensch passt sich der Welt an; - - der unvernünftige Mensch versucht, die Welt seinem Wesen - - anzupassen. Deshalb kommt jeglicher Fortschritt - - vom unvernünftigen Menschen.« George Bernhard Shaw - ----------------------------------------------------------------- - Please send plain ASCII text only. - - Please reply below quoted text section. - ----------------------------------------------------------------- From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 20:15:21 2011 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 9A8BD1065675 for ; Mon, 21 Mar 2011 20:15:21 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2AD1E8FC12 for ; Mon, 21 Mar 2011 20:15:20 +0000 (UTC) Received: by fxm11 with SMTP id 11so6912594fxm.13 for ; Mon, 21 Mar 2011 13:15:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=x9z8y0fg1vPoRJQzeHCVfEHDs18EdIhOo6aCbE/OWpY=; b=gY3fXlMP4TRKMKq7B/yxeVaA7gyBK3YGtJyZuFbgzBMwrkl4hWFVJkRuev8GFFhy7Z gX1G6jfIuJk0scHxFVH5Gadr4oJDzr5bv6EugADxG2WWzNFw9lstkoxCr0xXaYez88bm BYHl04NI+e+sm14lmwD0+J08JDec/SLccVNr0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=JM9BqYXw2bzFRLJ/J8L+uy8dsVIzo6Jqw28JeiOJ0G+nx7gZ8lsQVBPvxfMayp97Kl Z4WlbTX0VoPqq/rAJvR9KEEzaa0Mk1dw57+hNlJJYMKaDYgqoS+JSod+dvd4RhcdmXKs l8B9ygZyviDuOmBdrdYDO3wjZAwLgOXj4BkTA= MIME-Version: 1.0 Received: by 10.223.20.144 with SMTP id f16mr5465041fab.68.1300738464104; Mon, 21 Mar 2011 13:14:24 -0700 (PDT) Received: by 10.223.87.9 with HTTP; Mon, 21 Mar 2011 13:14:24 -0700 (PDT) In-Reply-To: <20110321193458.C833A106564A@hub.freebsd.org> References: <4D878A6B.4070403@gmail.com> <20110321193458.C833A106564A@hub.freebsd.org> Date: Mon, 21 Mar 2011 15:14:24 -0500 Message-ID: From: Antonio Olivares To: "Daniel C. Dowse" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: gkrellm2 GnuTLS and OpenSSL, conky doesn't 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, 21 Mar 2011 20:15:21 -0000 On Mon, Mar 21, 2011 at 2:08 PM, Daniel C. Dowse wrote: > On =A0Mon, 21 Mar 2011 12:45:40 -0500, Antonio Olivares > wrote: > [snip] >>On the other hand with conky, I get error >> >>[olivares@grullahighschool ~]$ conky -C > ~/.conkyrc >>[olivares@grullahighschool ~]$ conky >>Conky: Xft not enabled at compile time >>Conky: desktop window (1400003) is subwindow of root window (12b) >>Conky: window type - desktop >>Conky: drawing to created window (0x1e00001) >>Conky: drawing to single buffer >>Segmentation fault: 11 (core dumped) >>[olivares@grullahighschool ~]$ conky >>Conky: Xft not enabled at compile time >>Conky: desktop window (1400003) is subwindow of root window (12b) >>Conky: window type - desktop >>Conky: drawing to created window (0x1e00001) >>Conky: drawing to single buffer >> >> >>It starts up find, but then crashes. =A0But I have gkrellm working so I >>am happy :) > [snap] > > Hi, > > you probably have to enable XFT support with =A0make config in sysutils/c= onky and > select that option. If this doesn't help to prevent conky from crashing, = i > don't know either. I use Conky 1.8.1 on 8.1-RELEASE-p2 with no problems e= xcept > with some memory leak after a few days. With conky -v you can see the sel= ected > options your conky was compiled with. > > cheers > > Daniel > > -- Daniel, gkrellm is working, tried to recompile conky with XFT support and it still crashes :( [olivares@grullahighschool ~]$ conky Conky: desktop window (1400003) is subwindow of root window (12b) Conky: window type - desktop Conky: drawing to created window (0x2200001) Conky: drawing to single buffer Segmentation fault: 11 (core dumped) For the moment I will stick to gkrellm :) Thanks for helping. Regards, Antonio From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 21:03:12 2011 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 4DED2106566B for ; Mon, 21 Mar 2011 21:03:12 +0000 (UTC) (envelope-from chris@vindaloo.com) Received: from mta3.srv.hcvlny.cv.net (mta3.srv.hcvlny.cv.net [167.206.4.198]) by mx1.freebsd.org (Postfix) with ESMTP id 1FA708FC13 for ; Mon, 21 Mar 2011 21:03:12 +0000 (UTC) Received: from corellia.vindaloo.com (ool-457cb346.dyn.optonline.net [69.124.179.70]) by mta3.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0LIF0067CD356CY0@mta3.srv.hcvlny.cv.net> for FreeBSD-Questions@freebsd.org; Mon, 21 Mar 2011 16:33:06 -0400 (EDT) Received: from hadar.vindaloo.com (hadar.vindaloo.com [172.24.145.72]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by corellia.vindaloo.com (Postfix) with ESMTPSA id 8D08F2846A; Mon, 21 Mar 2011 16:33:05 -0400 (EDT) Date: Mon, 21 Mar 2011 16:33:05 -0400 From: Christopher Hilton To: FreeBSD-Questions@freebsd.org Message-id: <3DCCCCBB-5476-40AC-8AA3-B4AF32BAF663@vindaloo.com> MIME-version: 1.0 X-Mailer: Apple Mail (2.1082) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Cc: Subject: VMware fusion / USB 2.0 issues. 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, 21 Mar 2011 21:03:12 -0000 Good afternoon, I'm having a problem with a FreeBSD virtual machine on VMware fusion v3.1.2. Basically I get no USB 2.0 functionality. When I plug in a USB 2.0 mass storage device I get: uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1 With some devices I can fix the problem by reconfiguring VMware Fusion for USB 1.0 / 1.1 only. With others the device appears unwilling to negotiate with a USB 1.1 root hub and this is unusable altogether. I'm running FreeBSD 8.2 PRERELEASE based on the 2011/01 snapshot. If anyone else has seen this can come up with a work around I'd appreciate any assistance they could provide. Thanks -- Chris ---------------------------------------------------------------------------- "There will be an answer, Let it be." e: chris -at- vindaloo -dot- com From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 21:38:53 2011 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 CBA58106566C for ; Mon, 21 Mar 2011 21:38:53 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 600368FC15 for ; Mon, 21 Mar 2011 21:38:52 +0000 (UTC) Received: by fxm11 with SMTP id 11so7001940fxm.13 for ; Mon, 21 Mar 2011 14:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=QuHyBLeX7PckQUHi8QfkELacjpqprwSG1TlUf6rZnYc=; b=hJwPNVb/bva2rRg0a3tgmglANI6EeiUinQbq6WhrpGcsnzmMMEWAMS4YbTGAiKEzw4 cC3m7nzntNSNeX5FYF4QlYpoDK7m9dOdM8FT42qL2+JjGH03rViwetFxXr850JpuMA96 hCwRs8KLyVTutKgHRKG/vMAFrKlMdKIIVEnOo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=RMlrwu36MLMIt+UlwSQK1JdgyHfAF5a/p8XOPg3Q2Hdj86tAeckl45tBkXYdI235QO NcIx0bXsbWdhF7I0RgXyWF7LwPQcBdE2fpRD+lcLC53Uwg0oTJn2hy2tgpry5n45LaNQ zc9TdT3udjtgtMK9wE4JUQ/4NvrN/jEiHJyao= MIME-Version: 1.0 Received: by 10.223.121.102 with SMTP id g38mr1082298far.9.1300743531655; Mon, 21 Mar 2011 14:38:51 -0700 (PDT) Received: by 10.223.56.217 with HTTP; Mon, 21 Mar 2011 14:38:51 -0700 (PDT) In-Reply-To: References: Date: Mon, 21 Mar 2011 17:38:51 -0400 Message-ID: From: "illoai@gmail.com" To: aaron van caster Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: Minimum system requirements 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, 21 Mar 2011 21:38:53 -0000 On 20 March 2011 03:52, aaron van caster wrote: > Just would like to know what are the minimum system/hardware requirements to > run 8.2 OS and do to have a simple video showing installation? > The absolute minimum to run sysinstall is something like 24MB on an 80486. I believe that once installed you can run with 16MB. 80386 support was taken out of GENERIC some time ago (6.x, maybe?). I don't know if those chips are supported at all, any more. Hard drive space is MUCH larger in a default install than 4,5,&6.x, but if you are creative you can get a whole system on a 350MB HDD. The embedded guys would have a lot better notion than I do. As a beginner, you should really consider 4GB to be a practical minimum. I don't know what to think of this: http://www.youtube.com/watch?v=perc0_7n52I I usually try to save my dancing until /after/ the install. -- -- From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 02:39:30 2011 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 018A21065675 for ; Tue, 22 Mar 2011 02:39:30 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id B31BE8FC1E for ; Tue, 22 Mar 2011 02:39:29 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.186]) by mail.unitedinsong.com.au (Postfix) with ESMTP id BDC915C22 for ; Tue, 22 Mar 2011 12:47:12 +1000 (EST) Message-ID: <4D880BE2.1020907@herveybayaustralia.com.au> Date: Tue, 22 Mar 2011 12:39:30 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20110204 Thunderbird/3.0.11 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: linux_compat libcups 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, 22 Mar 2011 02:39:30 -0000 Hi guys. Another minor issue is getting printers recognised in linux programs. For user functionality cups is the key- so avoiding it is impossible. I dumped libcups.so.2 from a F10 rpm, but this didn't work; aside from the fact it was an older library which I wasn't entirely sure would be a close enough hack. Do I need to install a complete cups client to make this work? Does the library need to match the client? The latter I ask because the programs appear to create a system call to lp/lpr, so I would assume the libraries don't need to be an exact match. The libraries seem to only query cups for available printers. Cheers From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 03:34:39 2011 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 2EEFF1065670 for ; Tue, 22 Mar 2011 03:34:39 +0000 (UTC) (envelope-from yxy.716@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id EC0F98FC14 for ; Tue, 22 Mar 2011 03:34:38 +0000 (UTC) Received: by iwn33 with SMTP id 33so8381896iwn.13 for ; Mon, 21 Mar 2011 20:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=xf1ZJKD1EpUnLbyeUhwjg1buw/8cH+UYJMJ8K5yAvkc=; b=lj4hvrtKzfGC3u1aNucUni4kppRgBq+PjgMgspaPMcvZXCO6pBpBmrXh9qFXjwhwwG rz8ljmlWbPv+D89a5mvP17vMmwSY6xq8uD9F1/Qdq+VlTxdqrQGHpEApIgrDlfDNqKrO l4cW/fN3VXx4hGAEC76Cxu/0A55IjN+hokgGI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=S2c8HhE/taDYly8KDfZLBQAj29fPaRlvpauL6K7TR9KysdI41fuWmToQa4piXsCvjr jA3EzsTpo2L1/ehlNhySdaxzZ5ZS2t70TpFhz+Sh767BFTNhKN7wUHMjkN4tgHQySXus TX83uthEBmRHkdonCn1pUjeTnPKSYb1PO2SU8= Received: by 10.42.115.133 with SMTP id k5mr8022413icq.181.1300763102091; Mon, 21 Mar 2011 20:05:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.179.1 with HTTP; Mon, 21 Mar 2011 20:04:42 -0700 (PDT) From: xinyou yan Date: Tue, 22 Mar 2011 11:04:42 +0800 Message-ID: To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 Subject: Mobile hard disk does not respond 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, 22 Mar 2011 03:34:39 -0000 I have i mobile hard disk 320g . However ,frebsd can't respond to it ls dev/ have no message da0 for it From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 03:46:37 2011 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 E8B92106564A for ; Tue, 22 Mar 2011 03:46:37 +0000 (UTC) (envelope-from erichfreebsdlist@ovitrap.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.226.44]) by mx1.freebsd.org (Postfix) with ESMTP id B389C8FC1B for ; Tue, 22 Mar 2011 03:46:37 +0000 (UTC) Received: from amd620.ovitrap.com ([49.128.188.2]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id p2M3kQGC013107; Mon, 21 Mar 2011 21:46:29 -0600 From: Erich Dollansky To: freebsd-questions@freebsd.org Date: Tue, 22 Mar 2011 10:46:25 +0700 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.5.4; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103221046.25129.erichfreebsdlist@ovitrap.com> Cc: xinyou yan Subject: Re: Mobile hard disk does not respond 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, 22 Mar 2011 03:46:38 -0000 Hi, On Tuesday 22 March 2011 10:04:42 xinyou yan wrote: > I have i mobile hard disk 320g . this is not of very much help. > > However ,frebsd can't respond to it > > ls dev/ > > have no message da0 for it Can you enlight us with information from dmesg and usbconfig? Maybe with and without the disk plugged in. FreeBSD does not recognise all USB/AT bridges properly. Maybe, you have bad luck. Erich From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 06:26:34 2011 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 27C96106566C for ; Tue, 22 Mar 2011 06:26:34 +0000 (UTC) (envelope-from FreeBSD@insightbb.com) Received: from mxsf01.insightbb.com (mxsf01.insightbb.com [74.128.0.71]) by mx1.freebsd.org (Postfix) with ESMTP id E97A38FC19 for ; Tue, 22 Mar 2011 06:26:33 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.63,224,1299474000"; d="scan'208";a="1102827129" Received: from unknown (HELO asav00.insightbb.com) ([172.31.249.123]) by mxsf01.insightbb.com with ESMTP; 22 Mar 2011 02:26:32 -0400 X-Connecting-IP: 74.132.139.5 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AthDAE7eh01KhIsFPGdsb2JhbACJDpw0CwEBAQE3MsJQgxYBgk0E X-IronPort-AV: E=Sophos;i="4.63,224,1299474000"; d="scan'208";a="97648460" Received: from 74-132-139-5.dhcp.insightbb.com (HELO laptop2.stevenfriedrich.org) ([74.132.139.5]) by asavout00.insightbb.com with ESMTP; 22 Mar 2011 02:26:32 -0400 From: Steven Friedrich To: freebsd-questions@freebsd.org Date: Tue, 22 Mar 2011 02:26:21 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-RELEASE; KDE/4.5.5; i386; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201103220226.22277.FreeBSD@insightbb.com> Subject: Kodak C195 digital camera appears to affect WD on usb 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, 22 Mar 2011 06:26:34 -0000 I know you'll think I'm crazy, but I'm pretty sure I've only started seeing these errors since plugging in this camera. Mar 22 01:06:22 laptop2 kernel: umass0: on usbus4 Mar 22 01:06:22 laptop2 kernel: Root mount waiting for: usbus4 Mar 22 01:06:22 laptop2 kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 Mar 22 01:06:22 laptop2 kernel: da0: Fixed Direct Access SCSI-4 device Mar 22 01:06:22 laptop2 kernel: da0: 40.000MB/s transfers Mar 22 01:06:22 laptop2 kernel: da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) Mar 22 01:10:24 laptop2 root: Unknown USB device: vendor 0x040a product 0x0600 bus uhub2 Mar 22 01:10:24 laptop2 kernel: ugen2.2: at usbus2 Mar 22 01:10:24 laptop2 kernel: umass1: on usbus2 Mar 22 01:10:26 laptop2 kernel: (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Mar 22 01:10:26 laptop2 kernel: (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error Mar 22 01:10:26 laptop2 kernel: (probe0:umass-sim1:1:0:0): SCSI status: Check Condition Mar 22 01:10:26 laptop2 kernel: (probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,2 (Medium not present - tray open) Mar 22 01:11:32 laptop2 wpa_supplicant[413]: CTRL-EVENT-SCAN-RESULTS Mar 22 01:12:06 laptop2 login: 2 LOGIN FAILURES ON ttyv0 Mar 22 01:12:09 laptop2 login: ROOT LOGIN (root) ON ttyv0 Mar 22 01:12:19 laptop2 kernel: ugen2.2: at usbus2 (disconnected) Mar 22 01:12:19 laptop2 kernel: umass1: at uhub2, port 1, addr 2 (disconnected) I believe these next two were caused by the camera on umass-sim1 Mar 22 01:12:21 laptop2 kernel: (da0:umass-sim0:0:0:0): AutoSense failed Mar 22 01:12:21 laptop2 kernel: g_vfs_done():da0s1f[WRITE(offset=5780930560, length=16384)]error = 5 Here's a little config info: dmesg when plugging in camera ugen2.2: at usbus2 umass1: on usbus2 (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error (probe0:umass-sim1:1:0:0): SCSI status: Check Condition (probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,2 (Medium not present - tray open) usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.2: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen3.2: at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen2.2: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ----------------------------------------------------------------------------------------------------- System Name: laptop2.StevenFriedrich.org Window Manager(s): kde4-4.5.5_1 X Window System: xorg-7.5.1 X.Org X Server 1.7.7 OS version: FreeBSD 8.2-RELEASE i386 (5.2 MB kernel) Platform: HP pavilion zd8000 (zd8215us) CPU: 2.80GHz Intel Pentium 4 (HTT) with 2 GB memory ----------------------------------------------------------------------------------------------------- FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386) Installed devices: pcm0: (play/rec) default From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 07:02:52 2011 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 0958F106566B for ; Tue, 22 Mar 2011 07:02:52 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 74F3B8FC12 for ; Tue, 22 Mar 2011 07:02:51 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.186]) by mail.unitedinsong.com.au (Postfix) with ESMTP id 228895C22 for ; Tue, 22 Mar 2011 17:10:34 +1000 (EST) Message-ID: <4D88499D.2000408@herveybayaustralia.com.au> Date: Tue, 22 Mar 2011 17:02:53 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20110204 Thunderbird/3.0.11 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <201103220226.22277.FreeBSD@insightbb.com> In-Reply-To: <201103220226.22277.FreeBSD@insightbb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Kodak C195 digital camera appears to affect WD on usb 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, 22 Mar 2011 07:02:52 -0000 On 03/22/11 16:26, Steven Friedrich wrote: > I know you'll think I'm crazy, but I'm pretty sure I've only started seeing > these errors since plugging in this camera. > > Mar 22 01:06:22 laptop2 kernel: umass0: rev 2.00/1.75, addr 2> on usbus4 > Mar 22 01:06:22 laptop2 kernel: Root mount waiting for: usbus4 > Mar 22 01:06:22 laptop2 kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > Mar 22 01:06:22 laptop2 kernel: da0: Fixed Direct > Access SCSI-4 device > Mar 22 01:06:22 laptop2 kernel: da0: 40.000MB/s transfers > Mar 22 01:06:22 laptop2 kernel: da0: 476940MB (976773168 512 byte sectors: > 255H 63S/T 60801C) > > > Mar 22 01:10:24 laptop2 root: Unknown USB device: vendor 0x040a product 0x0600 > bus uhub2 > Mar 22 01:10:24 laptop2 kernel: ugen2.2: at usbus2 > Mar 22 01:10:24 laptop2 kernel: umass1: C195 Digital Camera, class 0/0, rev 1.10/1.00, addr 2> on usbus2 > Mar 22 01:10:26 laptop2 kernel: (probe0:umass-sim1:1:0:0): TEST UNIT READY. > CDB: 0 0 0 0 0 0 > Mar 22 01:10:26 laptop2 kernel: (probe0:umass-sim1:1:0:0): CAM status: SCSI > Status Error > Mar 22 01:10:26 laptop2 kernel: (probe0:umass-sim1:1:0:0): SCSI status: Check > Condition > Mar 22 01:10:26 laptop2 kernel: (probe0:umass-sim1:1:0:0): SCSI sense: NOT > READY asc:3a,2 (Medium not present - tray open) > Mar 22 01:11:32 laptop2 wpa_supplicant[413]: CTRL-EVENT-SCAN-RESULTS > Mar 22 01:12:06 laptop2 login: 2 LOGIN FAILURES ON ttyv0 > Mar 22 01:12:09 laptop2 login: ROOT LOGIN (root) ON ttyv0 > > > Mar 22 01:12:19 laptop2 kernel: ugen2.2: at usbus2 > (disconnected) > Mar 22 01:12:19 laptop2 kernel: umass1: at uhub2, port 1, addr 2 > (disconnected) > > I believe these next two were caused by the camera on umass-sim1 > > Mar 22 01:12:21 laptop2 kernel: (da0:umass-sim0:0:0:0): AutoSense failed > Mar 22 01:12:21 laptop2 kernel: g_vfs_done():da0s1f[WRITE(offset=5780930560, > length=16384)]error = 5 > > Here's a little config info: > > dmesg when plugging in camera > > ugen2.2: at usbus2 > umass1: rev 1.10/1.00, addr 2> on usbus2 > (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error > (probe0:umass-sim1:1:0:0): SCSI status: Check Condition > (probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,2 (Medium not present > - tray open) > > usbconfig > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=SAVE > ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=SAVE > ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=SAVE > ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=SAVE > ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=SAVE > ugen4.2: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > ugen3.2: at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) > pwr=ON > ugen2.2: at > usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > It appears to be a routine attempt to determine a usb device by devd. Assuming you are trying to access the camera, are you able to mount it? > > > > ----------------------------------------------------------------------------------------------------- > System Name: laptop2.StevenFriedrich.org > Window Manager(s): kde4-4.5.5_1 > X Window System: xorg-7.5.1 X.Org X Server 1.7.7 > OS version: FreeBSD 8.2-RELEASE i386 (5.2 MB kernel) > Platform: HP pavilion zd8000 (zd8215us) > CPU: 2.80GHz Intel Pentium 4 (HTT) with 2 GB memory > > ----------------------------------------------------------------------------------------------------- > FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386) > Installed devices: > pcm0: (play/rec) default > _______________________________________________ > 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 Mar 22 07:33:05 2011 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 574501065672 for ; Tue, 22 Mar 2011 07:33:05 +0000 (UTC) (envelope-from yxy.716@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 099E68FC13 for ; Tue, 22 Mar 2011 07:33:04 +0000 (UTC) Received: by iwn33 with SMTP id 33so8547606iwn.13 for ; Tue, 22 Mar 2011 00:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=vdtZ/Rge7iqOuWrP0MfEQlKYIKGa6AyxmkWrmOykurU=; b=fiAMnybsA/nSMCqSkvIbCr2DH2g7Y2DhyLSjymb81kjc/2pla1UEV4UtlN0XDTELc6 oHISL9T+wLmFAVn68vW7XeWpFbl6TG/rdYbio4NdBz5sCRerv05IyD1F01g9DCIpL3Hz sySpFNx+WihMBrq1dFL2uE0AEdty8nFrc8xkM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=UNCFi7lqyKSDBCylYDW2oDALIjQjtBk6rS+JpLIGRkPEqtL21gCQkN1Drks/owVyfT E1NjwrmZgCDT/I3Grub11tIL/D6UOH9pTpYRcAXf0UPAV8Y/DfiAs6ZkRscqeiMxfVIG wovdK3IK5cu0ssygRYl3RGiyEBHzUtJBRWEKc= Received: by 10.42.115.133 with SMTP id k5mr8356185icq.181.1300779184079; Tue, 22 Mar 2011 00:33:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.179.1 with HTTP; Tue, 22 Mar 2011 00:32:44 -0700 (PDT) From: xinyou yan Date: Tue, 22 Mar 2011 15:32:44 +0800 Message-ID: To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 Subject: boot linux 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, 22 Mar 2011 07:33:05 -0000 i install freebsd last reboot ,I can find F1 windows F2? F3 freebsd where can i fix to load my linux ? I install grub on /devsd7 Now i use windows to load grub then linux However I want to loader linux directly . From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 10:25:30 2011 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 187C11065677 for ; Tue, 22 Mar 2011 10:25:30 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 99C0E8FC12 for ; Tue, 22 Mar 2011 10:25:29 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q1ymG-00017P-LQ for freebsd-questions@freebsd.org; Tue, 22 Mar 2011 11:25:28 +0100 Received: from gw1.masterhost.ru ([87.242.97.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Mar 2011 11:25:28 +0100 Received: from citrin by gw1.masterhost.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Mar 2011 11:25:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Anton Yuzhaninov Date: Tue, 22 Mar 2011 10:25:16 +0000 (UTC) Organization: Vega Lines: 74 Sender: Anton Yuzhaninov Message-ID: X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: gw1.masterhost.ru User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/9.0-CURRENT (i386)) Subject: how to enable NCQ on Intel ESB2 AHCI SATA controller/ST31000340NS 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, 22 Mar 2011 10:25:30 -0000 How to enable NCQ on this controller: ahci0@pci0:0:31:2: class=0x010601 card=0x808015d9 chip=0x26818086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' device = 'LSI LOGIC, 62089A2, LSISAS1068 B0, T 0620, WE 119200.1 (62089A2)' class = mass storage subclass = SATA bar [10] = type I/O Port, range 32, base 0x18a0, size 8, enabled bar [14] = type I/O Port, range 32, base 0x1874, size 4, enabled bar [18] = type I/O Port, range 32, base 0x1878, size 8, enabled bar [1c] = type I/O Port, range 32, base 0x1870, size 4, enabled bar [20] = type I/O Port, range 32, base 0x1880, size 32, enabled bar [24] = type Memory, range 32, base 0xd8700400, size 1024, enabled cap 01[70] = powerspec 2 supports D0 D3 current D0 cap 12[a8] = SATA Index-Data Pair dmesg: ahci0: port 0x18a0-0x18a7,0x1874-0x1877,0x1878-0x187f,0x1870-0x1873,0x1880-0x189f mem 0xd8700400-0xd87007ff irq 19 at device 31.2 on pci0 ahci0: [ITHREAD] ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier supported ... ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-8acd0: DVDROM at ata0-slave UDMA33 ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C) ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ATA-8 SATA 2.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C) .... There is no lines "Command Queueing enabled" # camcontrol tags ada0 (pass0:ahcich0:0:0:0): device openings: 2 camcontrol identify ada0 pass0: ATA-8 SATA 2.x device pass0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) protocol ATA/ATAPI-8 SATA 2.x device model ST31000340NS firmware revision SN05 serial number 9QJ1L67B WWN 5000c500d902ea3 cylinders 16383 heads 16 sectors/track 63 sector size logical 512, physical 512, offset 0 LBA supported 268435455 sectors LBA48 supported 1953525168 sectors PIO supported PIO4 DMA supported WDMA2 UDMA6 media RPM 7200 Feature Support Enabled Value Vendor read ahead yes yes write cache yes yes flush cache yes yes overlap no Tagged Command Queuing (TCQ) no no Native Command Queuing (NCQ) yes 32 tags .... # uname -srp FreeBSD 8.2-STABLE-20110315 amd64 -- WBR, Anton Yuzhaninov From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 12:32:51 2011 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 2C659106564A for ; Tue, 22 Mar 2011 12:32:51 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8892D8FC13 for ; Tue, 22 Mar 2011 12:32:50 +0000 (UTC) Received: by wwc33 with SMTP id 33so8623239wwc.31 for ; Tue, 22 Mar 2011 05:32:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding; bh=HufOr7WANXIkFK2bTzSPD/tVGzE+xnvusLNtu+S4MHc=; b=aVPZbDv7YiTOmnNbGUM/NWhbd8RRzQwxJDIP5LKjZKnHbzdIsrPn+T6kzFCprXnu/H YTB5/F6cJvKGbj8GY/TZkeBcH5gPxb4BKL0T6/VONqALFDk+IuaIzBv8edwXVBMs4z63 ox2arRmnHf0nG2x0XjiBuMV1XQxFi07NjDpUQ= 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=QccNpMMiS1fUPh2w1K5Qp8jMoIml/owTgF5r+ulsP9zq02qGOnUf6WWe+nMzFqzl2g xBdCQgYRqIAYpY51SIsPbsCFqhBVuKOzOpt+5VsbyW9CeAN+hEssUWaLNH9O0Qu98AZg GZRDAHlFTMGsBpXnVS2HGMPpKMUY5MVGYuA1M= Received: by 10.216.62.77 with SMTP id x55mr5109090wec.59.1300797169395; Tue, 22 Mar 2011 05:32:49 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk [87.194.105.247]) by mx.google.com with ESMTPS id c54sm2914940wer.30.2011.03.22.05.32.45 (version=SSLv3 cipher=OTHER); Tue, 22 Mar 2011 05:32:46 -0700 (PDT) Date: Tue, 22 Mar 2011 12:32:43 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20110322123243.1257e695@gumby.homeunix.com> In-Reply-To: References: <759A467E-407A-4DB8-9756-08011B5405F0@vicor.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Shell script termination with exit function in backquotes 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, 22 Mar 2011 12:32:51 -0000 On Sat, 19 Mar 2011 09:44:57 -0700 Devin Teske wrote: > At least two variations to the rule that { ... } is a block of > commands executed in the current shell are: > > 1. When the block appears as a function Is that correct? I'd assumed that functions do execute in the current shell since you can alter variables from a function, whilst you can't from a "()". e.g. -------------------------------------------------------------------- $ cat /tmp/foo #!/bin/sh f (){ x=2 } x=1 f echo $x ( x=3 ) echo $x -------------------------------------------------------------------- $ /tmp/foo 2 2 From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 13:59:22 2011 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 08DC8106564A for ; Tue, 22 Mar 2011 13:59:22 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id BF46F8FC18 for ; Tue, 22 Mar 2011 13:59:21 +0000 (UTC) Received: by qyk35 with SMTP id 35so3470898qyk.13 for ; Tue, 22 Mar 2011 06:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=4dgfR/jwWjcTKNcKW9nRV2kpHklYxFt+4i5YaLh/NPs=; b=bz5boI3DmIU65zcW40cvefmpYeNBGaoj2icBvUUWlcAFM75iwj4DfmgHWGbMyVLtpe TYHBr2V93ZdCKWL/2f1t27ZUvIraimtTxJK9TTZJHPwRxfgh511mDZhsb5t1DFOZK3b/ yPHwTikGr4ZjfLSX6JJ6BP1+ch3XEw0DI/Wec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=GWV5ovI0nrf3Hk0XLU5cXwCltbWe9jkVpvNv0VizSF1WhFbHUV3Nyoc9eKnr+x2TNg 4xZ/xxjfjRbhq6X+uQvjecpCXl2IzT9X25talG4rVBT3BrjJt9Gjd++3js63GWHUnl8z ARWHIMLHJuCMtL5JzogugU4B7H04HCUJM80t4= MIME-Version: 1.0 Received: by 10.224.213.8 with SMTP id gu8mr4328982qab.320.1300800482503; Tue, 22 Mar 2011 06:28:02 -0700 (PDT) Received: by 10.52.160.132 with HTTP; Tue, 22 Mar 2011 06:28:02 -0700 (PDT) Date: Tue, 22 Mar 2011 09:28:02 -0400 Message-ID: From: Jim To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: opening a shared object / failing with Undefined Symbol. 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, 22 Mar 2011 13:59:22 -0000 I have an application that opens two .so files with dlopen(3): /usr/local/lib/libag_core.so /usr/local/lib/libag_gui.so Both files exist Running nm(1) against each produces a lot of output, showing all the symbols I know to exist in each library. My application gets a null return from dlopen on the libag_gui.so. dlerror produces the following string: "/usr/local/lib/libag_gui.so Undefined symbol "agTimingLock" $ nm /usr/local/lib/libag_gui.so | grep agTiming U agTimingLock I'm guessing that means that agTimingLock is used in that library but not defined? $ nm /usr/local/lib/libag_core.so | grep agTiming 0000000000141c00 B agTimingLock And this would mean that it is defined in libag_core.so? Given that libag_core.so gets loaded first, does anyone have any suggestions on how to fix such an issue? (Note: I didn't write this library, I did compile/install it) Thanks, -Jim Stapleton From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 14:06:20 2011 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 21C93106566C for ; Tue, 22 Mar 2011 14:06:20 +0000 (UTC) (envelope-from kazakevichilya@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id A99068FC21 for ; Tue, 22 Mar 2011 14:06:19 +0000 (UTC) Received: by wwk4 with SMTP id 4so4758467wwk.1 for ; Tue, 22 Mar 2011 07:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ULiTG7ipsrZPng8LgUhNBzM+RcZBCoO6+igI1Zaavuw=; b=Q8/1EE9cjiMQ8HO7YoLwWmGe7yTjlpgz7ABdGYWzakrVmbnosJyOv4BJexeZOGmHlV qyC/2We+6PBEuoM3hw0ihBkyEE56c2ekP4ddR1hX98DLny4U/Sen+ecrKP1BdcgFGrlO CPmZLcEoCW/aUamckPgLlwWqHvioT/8nHZ3eo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mRNOb0GeQSnbdLTrjyHP8RpK6Qf37h9hnh7uE9zZs0JgbAYCAsBcXggGNS+khTqDKn GuqsPJjYzbxp4G0YQTl3QSd0CNUOkuscG/WLiTPEDa4w89snFnj6wESGW/CGcOSZ68Tv GzsxB/2ihE7PiCC47VCbGNfKXKuDVz136pkGg= MIME-Version: 1.0 Received: by 10.227.138.220 with SMTP id b28mr5398240wbu.87.1300802778044; Tue, 22 Mar 2011 07:06:18 -0700 (PDT) Received: by 10.227.157.148 with HTTP; Tue, 22 Mar 2011 07:06:17 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Mar 2011 17:06:17 +0300 Message-ID: From: Ilya Kazakevich To: xinyou yan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions Subject: Re: boot linux 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, 22 Mar 2011 14:06:20 -0000 You need to install boot0cfg in your MBR man boot0cfg http://www.freebsd.org/doc/en/books/handbook/boot-blocks.html Honestly you can use any MBR loader you like (grub, lilo, boot0cfg, windows). Windows can't access boot sector on non-ntfs partitions, so you need to fetch first block from your unix slice (boot1 or take it from /boot/boot1) and store it as file (like freebsd.blk) on windows drive. Grub and lilo probably can access slice their selfs. boot0cfg definitely can. Ilya. On Tue, Mar 22, 2011 at 10:32 AM, xinyou yan wrote: > i install freebsd last > > reboot ,I can find > > F1 windows > F2? > F3 freebsd > > where can i fix to load my linux ? > I install grub on /devsd7 > > Now i use windows to load grub then linux > However I want to loader linux directly . > _______________________________________________ > 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 Mar 22 14:17:03 2011 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 895981065670 for ; Tue, 22 Mar 2011 14:17:03 +0000 (UTC) (envelope-from jimmiejaz@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2C5A98FC0C for ; Tue, 22 Mar 2011 14:17:02 +0000 (UTC) Received: by gyg13 with SMTP id 13so2663202gyg.13 for ; Tue, 22 Mar 2011 07:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=yv4sGIiJbvMUzlK7gH09LxUHCJnmgIXlQmVpFwj8uMI=; b=WgJJxZ0dkaIOeG4UaXnbAJ/5CGIZ/5GySIDpocFKn6UcRoc3nuDdr/RLFnpNa9KvLe gd/9T0Qgdl8bnLZ/XRMt2TpZqx7qM8pnXiDcNGIFQeYkr4aTXU6lJdGMHW8aldk7j6EF ODQD64qnhzU/zt6Kbzp4XA2HQN9Ei1J8XPZWM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=i+kDypqR17RjJtYpbXiKm9RJMqxZkPaII0abqdLn1YftOASz3oidQ7XkWC9FUYcORc V9SsqXGsRR+WshupOjVMG46kN595s3MKaFanWx8IKTZK8xxmHPhNoqjUambMlSnPHoSa YJ1MposyppSvmCsIQoYNLb0JS8si1IZjM/pYk= Received: by 10.151.43.15 with SMTP id v15mr5175892ybj.170.1300803421841; Tue, 22 Mar 2011 07:17:01 -0700 (PDT) Received: from jimmiejaz.org (bas9-toronto63-1128677805.dsl.bell.ca [67.70.65.173]) by mx.google.com with ESMTPS id t16sm1712743ybe.19.2011.03.22.07.16.58 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2011 07:16:59 -0700 (PDT) Message-ID: <4D88AF58.1080006@gmail.com> Date: Tue, 22 Mar 2011 10:16:56 -0400 From: Jimmie James User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.15) Gecko/20110308 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org, freebsd-multimedia@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: vlc, webcam streaming X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jimmiejaz@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2011 14:17:03 -0000 Camera works fine with skype, emesene work wonderfully, mplayer gives me an image, but it flashes between green screen and the actual images. Full vlc -vv output is here, http://pastebin.com/MaEP6f6R (highlights below) Anyone have a suggestion/hint/tip? VLC is unable to open the MRL 'v4l://'. Check the log for details. # [0x2899954c] qt4 interface debug: Initialization of Capture device panel # [0x2899954c] qt4 interface warning: Input option: input-slave=alsa:// # [0x2899954c] qt4 interface warning: Input option: v4l-norm=0 # [0x2899954c] qt4 interface warning: Input option: v4l-frequency=0 # [0x2899954c] qt4 interface warning: Input option: file-caching=300 # [0x288056bc] main playlist debug: adding item `v4l:///dev/video0' ( v4l:///dev/video0 ) # [0x2899954c] qt4 interface debug: Adding a new MRL to recent ones: v4l:///dev/video0 # [0x288056bc] main playlist debug: rebuilding array of current - root Playlist # [0x288056bc] main playlist debug: rebuild done - 1 items, index -1 # [0x288056bc] main playlist debug: processing request item v4l:///dev/video0 node null skip 0 # [0x288056bc] main playlist debug: resyncing on v4l:///dev/video0 # [0x288056bc] main playlist debug: v4l:///dev/video0 is at 0 # [0x288056bc] main playlist debug: starting new item # [0x288056bc] main playlist debug: creating new input thread # [0x2d820fdc] main input debug: Creating an input for 'v4l:///dev/video0' # [0x2d820fdc] main input debug: thread (input) created at priority 10 (input/input.c:214) # [0x2d820fdc] main input debug: thread started # [0x2d820fdc] main input debug: using timeshift granularity of 50 MiB # [0x2d820fdc] main input debug: using timeshift path '/tmp' # [0x2d820fdc] main input debug: `v4l:///dev/video0' gives access `v4l' demux `' path `/dev/video0' # [0x2d820fdc] main input debug: creating demux: access='v4l' demux='' path='/dev/video0' # [0x2e423f7c] main demux debug: looking for access_demux module: 1 candidate # [0x2e423f7c] v4l demux debug: opening device '/dev/video0' # [0x2899954c] qt4 interface debug: IM: Setting an input # [0x2e423f7c] v4l demux debug: V4L device Logitech QuickCam Pro 4000 1 channels 0 audios 160 < w < 640 120 < h < 480 # [0x2e423f7c] v4l demux debug: invalid width 0 # [0x2e423f7c] v4l demux debug: invalid height 0 # [0x2e423f7c] v4l demux debug: setting channel usb(0) 0 tuners flags=0x0 type=0x2 norm=0x0 # [0x2e423f7c] v4l demux error: cannot set channel (Invalid argument) # [0x2e423f7c] main demux debug: no access_demux module matching "v4l" could be loaded -- I am currently away on leave, traveling through time and will be returning last week. Life is tough, but it's tougher when you're stupid. From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 14:51:32 2011 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 0967B106564A for ; Tue, 22 Mar 2011 14:51:32 +0000 (UTC) (envelope-from mkearney@nvita.org) Received: from squirrelserver.nvita.org (nvita.org [173.13.234.121]) by mx1.freebsd.org (Postfix) with ESMTP id BC6268FC0A for ; Tue, 22 Mar 2011 14:51:31 +0000 (UTC) Received: from SQUIRRELSERVER.nvita.org ([192.168.0.3]) by SQUIRRELSERVER.nvita.org ([192.168.0.3]) with mapi; Tue, 22 Mar 2011 11:01:54 -0400 From: "Michael J. Kearney" To: "freebsd-questions@freebsd.org" Date: Tue, 22 Mar 2011 11:01:54 -0400 Thread-Topic: Nonsensical Web Log Entries Thread-Index: AcvoohT2vZux2NabRveJ6PvF2Yp+dQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: Nonsensical Web Log Entries 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, 22 Mar 2011 14:51:32 -0000 SSdtIGp1c3Qgc2F5aW5nLi4uIHlvdSBjYW4gYWRkIHRvIGJ1dCBub3QgdGFrZSBhd2F5IGZyb20g eW91ciBvcGVyYXRpb25hbCBtYXRyaWNlcyBmb3IgaW5zdGFuY2UgYnkgdXNpbmcgdGNwZHVtcCB0 byBhbnlsaXplIHRoZSB0cmFmZmljIG9uIHBvcnQgODAgLi4uIGxvbCBzb3VuZHMgbGlrZSBhIGZv dWwgYmFsbA0KDQoicGV0ZXJAdmZlbWFpbC5uZXQiIDxwZXRlckB2ZmVtYWlsLm5ldD4gd3JvdGU6 DQoNCg== From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 15:06:05 2011 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 927CC106564A for ; Tue, 22 Mar 2011 15:06:05 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id 22E818FC0A for ; Tue, 22 Mar 2011 15:06:04 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=0KkIQGagYCvnrzE3Z2Lmid87OPdbX6VLcZYwAuLMZ50= c=1 sm=1 a=IU0TiZmyZPMA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=fGO4tVQLAAAA:8 a=EIwWLcqJZ1boMC9ffqwA:9 a=6TG_8lzcY4KdoPKuw4IA:7 a=vITOKqmlmEJC_5f1DUVj2Sn0RdoA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 103922840; Tue, 22 Mar 2011 15:55:59 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, jimmiejaz@gmail.com Date: Tue, 22 Mar 2011 15:55:17 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4D88AF58.1080006@gmail.com> In-Reply-To: <4D88AF58.1080006@gmail.com> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103221555.17815.hselasky@c2i.net> Cc: freebsd-questions@freebsd.org Subject: Re: vlc, webcam streaming 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, 22 Mar 2011 15:06:05 -0000 On Tuesday 22 March 2011 15:16:56 Jimmie James wrote: > Camera works fine with skype, emesene work wonderfully, mplayer gives me > an image, but it flashes between green screen and the actual images. > > Full vlc -vv output is here, http://pastebin.com/MaEP6f6R (highlights > below) Anyone have a suggestion/hint/tip? > > VLC is unable to open the MRL 'v4l://'. Check the log for details. Hi, I think VLC removed support for Webcams. Only video streaming devices and DVB- X devices are supported. Flickering pictures might be due to lack of buffering in webcamd. Could you dump the config descriptor with usbconfig for your device? Which version of webcamd are you using? --HPS From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 15:30:18 2011 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 DB5D7106566C for ; Tue, 22 Mar 2011 15:30:18 +0000 (UTC) (envelope-from tlt@tltodd.com) Received: from tltodd.com (mail2.tltodd.com [74.93.73.41]) by mx1.freebsd.org (Postfix) with ESMTP id 7304F8FC1E for ; Tue, 22 Mar 2011 15:30:18 +0000 (UTC) Received: (from tlt@localhost) by tltodd.com (8.9.3/8.9.3) id JAA75278 for freebsd-questions@freebsd.org; Tue, 22 Mar 2011 09:16:51 -0600 (CST) (envelope-from tlt) Date: Tue, 22 Mar 2011 09:16:51 -0600 From: Terry Todd To: freebsd-questions@freebsd.org Message-ID: <20110322091651.A75191@badger.tltodd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Subject: calibre 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: Tue, 22 Mar 2011 15:30:18 -0000 What happened to the calibre port? It's not there as far as I can tell. running 8.0-RELEASE # ls -ld /usr/ports/deskutils/cal* drwxr-xr-x 3 root wheel 512 Nov 21 2009 /usr/ports/deskutils/cal drwxr-xr-x 3 root wheel 512 Nov 21 2009 /usr/ports/deskutils/calcurse From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 15:33:46 2011 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 0FF45106566B for ; Tue, 22 Mar 2011 15:33:46 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from ifdnrg29.ifdnrg.com (outbound.ifdnrg.com [193.200.98.138]) by mx1.freebsd.org (Postfix) with ESMTP id AAB4C8FC0C for ; Tue, 22 Mar 2011 15:33:45 +0000 (UTC) Received: from [192.168.1.85] (93-97-172-73.zone5.bethere.co.uk [93.97.172.73]) (authenticated bits=0) by ifdnrg29.ifdnrg.com (8.14.4/8.14.4) with ESMTP id p2MFXg20090743; Tue, 22 Mar 2011 15:33:43 GMT (envelope-from paul@ifdnrg.com) Message-ID: <4D88C153.10103@ifdnrg.com> Date: Tue, 22 Mar 2011 15:33:39 +0000 From: Paul Macdonald User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Terry Todd References: <20110322091651.A75191@badger.tltodd.com> In-Reply-To: <20110322091651.A75191@badger.tltodd.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: calibre 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: Tue, 22 Mar 2011 15:33:46 -0000 On 22/03/2011 15:16, Terry Todd wrote: > What happened to the calibre port? It's not there as far as I can tell. > > running 8.0-RELEASE > > # ls -ld /usr/ports/deskutils/cal* > drwxr-xr-x 3 root wheel 512 Nov 21 2009 /usr/ports/deskutils/cal > drwxr-xr-x 3 root wheel 512 Nov 21 2009 /usr/ports/deskutils/calcurse > > > Its on one my 8.2-REL, myabe refresh ports tree? #make search name=calibre Port: calibre-0.7.23_1 Path: /usr/ports/deskutils/calibre Info: Ebook management application Maint: stas@FreeBSD.org Paul. > _______________________________________________ > 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" -- ------------------------- Paul Macdonald IFDNRG Ltd Web and video hosting ------------------------- t: 0131 5548070 m: 07534206249 e: paul@ifdnrg.com w: http://www.ifdnrg.com ------------------------- IFDNRG 40 Maritime Street Edinburgh EH6 6SA ------------------------- From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 15:35:33 2011 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 8FAD61065676 for ; Tue, 22 Mar 2011 15:35:33 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from fileserver.home.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) by mx1.freebsd.org (Postfix) with ESMTP id 048F88FC22 for ; Tue, 22 Mar 2011 15:35:32 +0000 (UTC) Received: from fileserver.home.qeng-ho.org (localhost [127.0.0.1]) by fileserver.home.qeng-ho.org (8.14.4/8.14.4) with ESMTP id p2MFZUZU033245; Tue, 22 Mar 2011 15:35:31 GMT (envelope-from freebsd@qeng-ho.org) Message-ID: <4D88C1C2.70902@qeng-ho.org> Date: Tue, 22 Mar 2011 15:35:30 +0000 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.14) Gecko/20110303 Thunderbird/3.1.8 MIME-Version: 1.0 To: Terry Todd References: <20110322091651.A75191@badger.tltodd.com> In-Reply-To: <20110322091651.A75191@badger.tltodd.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: calibre 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: Tue, 22 Mar 2011 15:35:33 -0000 On 03/22/11 15:16, Terry Todd wrote: > What happened to the calibre port? It's not there as far as I can tell. > > running 8.0-RELEASE > > # ls -ld /usr/ports/deskutils/cal* > drwxr-xr-x 3 root wheel 512 Nov 21 2009 /usr/ports/deskutils/cal > drwxr-xr-x 3 root wheel 512 Nov 21 2009 /usr/ports/deskutils/calcurse > It's there on my system (8.2R): arthur@fileserver> ls -ld /usr/ports/deskutils/cal* drwxr-xr-x 3 root wheel 512 Jun 8 2010 /usr/ports/deskutils/cal drwxr-xr-x 3 root wheel 512 Oct 23 00:34 /usr/ports/deskutils/calcurse drwxr-xr-x 3 root wheel 512 Nov 27 00:43 /usr/ports/deskutils/calibre Refresh your ports? From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 15:37:55 2011 Return-Path: Delivered-To: questions@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id E10D11065670; Tue, 22 Mar 2011 15:37:55 +0000 (UTC) Date: Tue, 22 Mar 2011 15:37:55 +0000 From: Alexander Best To: Laszlo Nagy Message-ID: <20110322153755.GA40457@freebsd.org> References: <4D870DCD.9000404@shopzeus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D870DCD.9000404@shopzeus.com> Cc: questions@freebsd.org, Daniel Fekete Subject: Re: fstat bug? 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, 22 Mar 2011 15:37:56 -0000 On Mon Mar 21 11, Laszlo Nagy wrote: > > Hi All, > > I have a Python program that goes up to 100% CPU. Just like this (top): you might want to re-post this message to freebsd-hackers@. in my experience freebsd-questions@ is suited for user-related questions and not that much for developers who seek answers to very techie questions. cheers. alex > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU > COMMAND > 80212 user1 2 44 0 70520K 16212K select 1 0:30 100.00% > /usr/local/bin/python process_updates_ss_od.py -l 10 > > I have added extra logs and it turns out that there are two threads. One > thread is calling "time.sleep()" and the other is calling "os.stat" > call. (Actually it is calling os.path.isfile, but I hunted down the last > link in the chain.) The most interesting thing is that the process is in > "SELECT" state. As far as I know, CPU load should be 0% because "select" > state should block program execution until the I/O completes. > > I must also tell you that the os.stat call is taking long because this > system has about 7 million files on a slow disk under heavy load. It > would be normal for an os.stat call to return after 10 seconds. I have > no problem with that. But I think that the 100% CPU is not acceptable. I > guess that the code is running a system call in kernel mode. I think > this because I can send a KILL signal to it and the state changes to the > following: > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU > COMMAND > 80212 user1 2 44 0 70520K 15256K STOP 5 1:27 100.00% > /usr/local/bin/python process_updates_ss_od.py -l 10 > > So the state of the process changes to "STOP", but the program does not > stop until the os.stat call returns back. Sometimes for a minute. > > Could it be a problem with the operation system? Is it possible that an > os.stat call requires 100% CPU power from the OS? (I believe that > os.stat ends in fstat()). Or is it a problem with the Python implementation? > > (Unfortunately I cannot give you an example program. Giving an example > would require giving you a slow I/O device with millions of files on it.) > > OS version: FreeBSD 8.1-STABLE amd64 > Python version: 2.6.6 > > Thanks, > > Laszlo > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > -- a13x From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 22:19:24 2011 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 B3BCF106564A for ; Tue, 22 Mar 2011 22:19:24 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id 5530F8FC1D for ; Tue, 22 Mar 2011 22:19:24 +0000 (UTC) Received: from turtle.stack.nl (turtle.stack.nl [IPv6:2001:610:1108:5010::132]) by mx1.stack.nl (Postfix) with ESMTP id 37AE61DD436; Tue, 22 Mar 2011 23:19:23 +0100 (CET) Received: by turtle.stack.nl (Postfix, from userid 1677) id 2C39A1737F; Tue, 22 Mar 2011 23:19:23 +0100 (CET) Date: Tue, 22 Mar 2011 23:19:23 +0100 From: Jilles Tjoelker To: Maxim Khitrov Message-ID: <20110322221922.GA3674@stack.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-questions@freebsd.org Subject: Re: Shell script termination with exit function in backquotes 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, 22 Mar 2011 22:19:24 -0000 Maxim Khitrov wrote: > [$(exit) exits the main shell environment] This is a bug which is fixed in 9-current. Another message: > On Sat, Mar 19, 2011 at 12:44 PM, Devin Teske wrote: > > [all elements of multi-command pipelines are executed in a subshell] > > You're learning that there are deviations to the rule as-mentioned > > in the man-page. > I've learned this a long time ago :) > My point is that these deviations should be noted in the man page to > help eliminate such surprises. A single sentence would have sufficed > in this case. The man page is not complete, but this has been in it for a while, in the Pipelines subsection: ] Note that unlike some other shells, sh executes each process in a ] pipeline with more than one command in a subshell environment and as a ] child of the sh process. This means that in A | B | C, three processes are created with the shell as their common parent. (Compared to the Bourne shell, where A and B are children of C, and to the Korn shell which executes C in the main shell process.) Note, PR bin/34811 requests certain first commands of pipelines (in particular, "jobs") to be executed in the main shell environment, not as a subshell. POSIX permits this and it may be implemented at some point. If the pipeline has two elements, the second element could be executed in the main shell environment as well but this could be confusing. > > The reason for these deviations is quite simple in-fact... > > The shell needs to create a new set of stdin/stdout file-descriptors > > for the block of commands that you've created, and executing said > > commands within a sub-shell achieves that. That is not the reason. Code like { ... } >F also redirects file descriptors for the duration of the block but does not create a subshell. For the Bourne shell freaks, exec 3>&1 >F; ...; exec >&3 3>&- One of the reasons is job control. To keep things sane, all processes in a job should be in the same process group. Executing part of the job in the main shell process requires special effort to make sure tty input/output/control works correctly and to handle ^Z, such as by forking when ^Z happens (which may be unexpected). Also, the Bourne shell has always executed all elements of pipelines in a subshell and many shells have followed it. -- Jilles Tjoelker From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 23:03:50 2011 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 45CC2106566C; Tue, 22 Mar 2011 23:03:50 +0000 (UTC) (envelope-from jimmiejaz@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id F17D88FC12; Tue, 22 Mar 2011 23:03:49 +0000 (UTC) Received: by iwn33 with SMTP id 33so9522233iwn.13 for ; Tue, 22 Mar 2011 16:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=JqIU4sxyKvm3/snBMG9xAcLktFmLu/rt1P4N1hYo8ao=; b=pGNhmWhZj8+3TClswgebkjeZarxctkSO0wBsWWUYXKzJaRZ86oa0ZRUFBJlpgSvJSs xY82LJ37+vD1HjXQZrT9yj0CCYyz9efR63tVthVg3yw0HHhegTqE4rz26972u40Phv9m g2Dl06BVwc0IqNVALNU9QParFYY7AlleyX0lw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=MCgTrSMvjxrDal5Cyw6jnzQAyzHUtoI8euYMnUQchAaFQe3StpGdc8NWADC9RlrFAb nMtEsW+Q9kJON1fMSHQ01+pg22u554zOSDgU00iLqUvCmE48Gl3FcAyurxZlIF7w4bDy UB2VDM+4IF1IaeqpO/GZkd0dTGUUCws1UMJqY= Received: by 10.231.21.150 with SMTP id j22mr20795ibb.178.1300835029322; Tue, 22 Mar 2011 16:03:49 -0700 (PDT) Received: from jimmiejaz.org (bas9-toronto63-1128677805.dsl.bell.ca [67.70.65.173]) by mx.google.com with ESMTPS id gy41sm3519037ibb.5.2011.03.22.16.03.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2011 16:03:47 -0700 (PDT) Message-ID: <4D892AD1.8060005@gmail.com> Date: Tue, 22 Mar 2011 19:03:45 -0400 From: Jimmie James User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.15) Gecko/20110308 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org, freebsd-multimedia@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Fwd: Re: vlc, webcam streaming X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jimmiejaz@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2011 23:03:50 -0000 (sorry, dropped the list off this) On 03/22/11 10:55, Hans Petter Selasky wrote: > On Tuesday 22 March 2011 15:16:56 Jimmie James wrote: >> Camera works fine with skype, emesene work wonderfully, mplayer gives me >> an image, but it flashes between green screen and the actual images. >> >> Full vlc -vv output is here, http://pastebin.com/MaEP6f6R (highlights >> below) Anyone have a suggestion/hint/tip? >> >> VLC is unable to open the MRL 'v4l://'. Check the log for details. > > Hi, > > I think VLC removed support for Webcams. Only video streaming devices and DVB- > X devices are supported. > > Flickering pictures might be due to lack of buffering in webcamd. > > Could you dump the config descriptor with usbconfig for your device? > > Which version of webcamd are you using? > > --HPS > That's interesting with VLC, googling around seems to suggest it works with V4L2 usbconfig -u 2 -a 2 dump_curr_config_desc is at the end of this message. webcamd-0.1.20_1 gstreamer-plugins-v4l2-0.10.27,3 Gstreamer Video 4 Linux 2 source plugin libv4l-0.8.1 Video4Linux library v4l_compat-1.0.20101027_1 Video4Linux IOCTL header files As for mplayer, I'm going to "assuME" it's more user error/command line options after playing a bit more with it. Mplayer called like mplayer tv:// -tv driver=v4l:device=/dev/video0 is clear. Playing tv://. TV file format detected. Selected driver: v4l name: Video 4 Linux input author: Alex Beregszaszi comment: under development ================================================================= WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!! As the V4L1 compatibility layer is broken, this may not work. If you encounter any problems, use driver=v4l2 instead. Bugreports on driver=v4l with v4l2 drivers will be ignored. ================================================================= Selected device: Logitech QuickCam Pro 4000 Capabilities: capture teletext overlay clipping frameram mjpeg-encoder Device type: 1917853805 Supported sizes: 160x120 => 640x480 Inputs: 1 0: usb: (tuner:0, norm:pal) Called like tv:// -tv driver=v4l2:device=/dev/video0 is all flickery. MPlayer SVN-r32577-snapshot-4.2.1 (C) 2000-2010 MPlayer Team Playing tv://. TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski comment: first try, more to come ;-) Selected device: Logitech QuickCam Pro 4000 Capabilities: video capture read/write streaming supported norms: 0 = webcam; inputs: 0 = usb; Current input: 0 Current format: YUV420 tv.c: norm_from_string(pal): Bogus norm parameter, setting default. Selected input hasn't got a tuner! v4l2: Cannot get fps v4l2: ioctl set mute failed: Invalid argument v4l2: ioctl query control failed: Invalid argument ========================================================================== Opening video decoder: [raw] RAW Uncompressed Video Movie-Aspect is undefined - no prescaling applied. VO: [x11] 640x480 => 640x480 Planar YV12 [swscaler @ 0x2aa3f010] using unscaled yuv420p -> bgra special converter Selected video codec: [rawyv12] vfm: raw (RAW YV12) ugen2.2: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x01fd bNumInterfaces = 0x0003 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x00fa Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x0000 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 0 Alt 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0001 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x00c4 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 0 Alt 2 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0002 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x0124 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 0 Alt 3 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0003 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x01c0 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 0 Alt 4 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0004 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x0250 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 0 Alt 5 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0005 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x02c0 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 0 Alt 6 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0006 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x0308 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 0 Alt 7 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0007 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x0348 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 0 Alt 8 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0008 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x0380 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 0 Alt 9 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0009 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x03c0 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 0 Alt 10 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x000a bNumEndpoints = 0x0002 bInterfaceClass = 0x000a bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x0064 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0001 wMaxPacketSize = 0x03c0 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0000 bNumEndpoints = 0x0000 bInterfaceClass = 0x0001 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x09, 0x24, 0x01, 0x00, 0x01, 0x26, 0x00, 0x01, 0x08 | 0x02 Additional Descriptor bLength = 0x0c bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x0c, 0x24, 0x02, 0x01, 0x01, 0x02, 0x00, 0x01, 0x08 | 0x00, 0x00, 0x00, 0x00 Additional Descriptor bLength = 0x08 bDescriptorType = 0x24 bDescriptorSubType = 0x06 RAW dump: 0x00 | 0x08, 0x24, 0x06, 0x02, 0x01, 0x01, 0x03, 0x00 Additional Descriptor bLength = 0x09 bDescriptorType = 0x24 bDescriptorSubType = 0x03 RAW dump: 0x00 | 0x09, 0x24, 0x03, 0x03, 0x01, 0x01, 0x00, 0x02, 0x08 | 0x00 Interface 2 bLength = 0x000b bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0001 bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0009 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0001 wMaxPacketSize = 0x0000 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 2 Alt 1 bLength = 0x000b bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0001 bNumEndpoints = 0x0001 bInterfaceClass = 0x0001 bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x07 bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x24, 0x01, 0x03, 0x01, 0x01, 0x00 Additional Descriptor bLength = 0x0b bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x0b, 0x24, 0x02, 0x01, 0x01, 0x02, 0x10, 0x01, 0x08 | 0x44, 0xac, 0x00 Endpoint 0 bLength = 0x0009 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0001 wMaxPacketSize = 0x005a bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x07 bDescriptorType = 0x25 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x25, 0x01, 0x00, 0x00, 0x00, 0x00 Interface 2 Alt 2 bLength = 0x000b bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0002 bNumEndpoints = 0x0001 bInterfaceClass = 0x0001 bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x07 bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x24, 0x01, 0x03, 0x01, 0x01, 0x00 Additional Descriptor bLength = 0x0b bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x0b, 0x24, 0x02, 0x01, 0x01, 0x02, 0x10, 0x01, 0x08 | 0x22, 0x56, 0x00 Endpoint 0 bLength = 0x0009 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0001 wMaxPacketSize = 0x002e bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x07 bDescriptorType = 0x25 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x25, 0x01, 0x00, 0x00, 0x00, 0x00 Interface 2 Alt 3 bLength = 0x000b bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0003 bNumEndpoints = 0x0001 bInterfaceClass = 0x0001 bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x07 bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x24, 0x01, 0x03, 0x01, 0x01, 0x00 Additional Descriptor bLength = 0x0b bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x0b, 0x24, 0x02, 0x01, 0x01, 0x02, 0x10, 0x01, 0x08 | 0x11, 0x2b, 0x00 Endpoint 0 bLength = 0x0009 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0001 wMaxPacketSize = 0x0019 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x07 bDescriptorType = 0x25 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x25, 0x01, 0x00, 0x00, 0x00, 0x00 Interface 2 Alt 4 bLength = 0x000b bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0004 bNumEndpoints = 0x0001 bInterfaceClass = 0x0001 bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x07 bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x24, 0x01, 0x03, 0x01, 0x01, 0x00 Additional Descriptor bLength = 0x0b bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x0b, 0x24, 0x02, 0x01, 0x01, 0x02, 0x10, 0x01, 0x08 | 0x40, 0x1f, 0x00 Endpoint 0 bLength = 0x0009 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0001 wMaxPacketSize = 0x0010 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x07 bDescriptorType = 0x25 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x07, 0x25, 0x01, 0x00, 0x00, 0x00, 0x00 -- I am currently away on leave, traveling through time and will be returning last week. Life is tough, but it's tougher when you're stupid. From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 01:07:52 2011 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 CB074106566C for ; Wed, 23 Mar 2011 01:07:52 +0000 (UTC) (envelope-from dteske@vicor.com) Received: from postoffice.vicor.com (postoffice.vicor.com [69.26.56.53]) by mx1.freebsd.org (Postfix) with ESMTP id AE8998FC0A for ; Wed, 23 Mar 2011 01:07:52 +0000 (UTC) Received: from [192.82.228.150] (port=57149) by postoffice.vicor.com with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.74) (envelope-from ) id 1Q2CYE-0003g7-5h; Tue, 22 Mar 2011 18:07:56 -0700 From: Devin Teske To: RW In-Reply-To: <20110322123243.1257e695@gumby.homeunix.com> References: <759A467E-407A-4DB8-9756-08011B5405F0@vicor.com> <20110322123243.1257e695@gumby.homeunix.com> Organization: VICOR, Inc. Date: Tue, 22 Mar 2011 18:07:13 -0700 Message-ID: <1300842433.5368.2.camel@dt.vicor.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 X-Scan-Signature: 431a13a277cf820871f488ba670a8931 X-Scan-Host: postoffice.vicor.com Content-Type: text/plain; charset="cp1252" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Shell script termination with exit function in backquotes 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, 23 Mar 2011 01:07:52 -0000 On Tue, 2011-03-22 at 12:32 +0000, RW wrote: > On Sat, 19 Mar 2011 09:44:57 -0700 > Devin Teske wrote: > > > > At least two variations to the rule that { ... } is a block of > > commands executed in the current shell are: > > > > 1. When the block appears as a function > > Is that correct? It depends on where and how you are using the function. For example, ... #!/bin/sh : ============ abc() { x=2 } : ============ x=1 abc echo $x # produces "2" : ============ x=1 : `abc` echo $x # produces "1" : ============ x=1 : `x=2` echo $x # produces "2" : ============ x=1 : `{ x=2; }` echo $x # produces "2" : ============ ... in the above example, the function embedded within back-ticks is executed in a sub-shell (but that is not to imply that back-ticks themselves invoke a sub-shell -- as shown above, I put a simple statement and a compound statement [surrounded in curlies] in back-ticks and neither are executed in a sub-shell... only the function-call is executed within a sub-shell when executed within back-ticks). > I'd assumed that functions do execute in the current > shell since you can alter variables from a function Functions may or may-not execute in a sub-shell depending on the context in which they are used. > , whilst you can't > from a "()". Correct, parenthesetical blocks always form a sub-shell. > > e.g. > -------------------------------------------------------------------- > $ cat /tmp/foo > #!/bin/sh > > f (){ > x=2 > } > > x=1 > f > echo $x > ( x=3 ) > echo $x > > -------------------------------------------------------------------- > > $ /tmp/foo > 2 > 2 > > > > _______________________________________________ > 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" -- Cheers, Devin Teske -> FUN STUFF <- -----BEGIN GEEK CODE BLOCK----- Version 3.12 GAT/CS/B/CC/E/IT/MC/M/MU/P/S/TW d+(++) s: a- C+++@$ UB++++$ P++++@$ L ++++$ E- W+++ N? o? K? w@ O M++$ V- PS+>++ PE@ Y+ PGP-> t(+) 5? X(+) R(-) tv+ b +>++ DI+ D+(++) G++ e>++++ h r+++ z+++ ------END GEEK CODE BLOCK------ Learn about the "Geek Code": http://www.geekcode.com/ -> LEGAL DISCLAIMER <- This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. -> END TRANSMISSION <- From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 14:39:07 2011 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 DD83A1065674 for ; Wed, 23 Mar 2011 14:39:07 +0000 (UTC) (envelope-from ndhertbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 69C5E8FC08 for ; Wed, 23 Mar 2011 14:39:07 +0000 (UTC) Received: by bwz12 with SMTP id 12so7774784bwz.13 for ; Wed, 23 Mar 2011 07:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=xJkSsrOge9/bEuD1wA4cR4Ya/YHjl30SagrBqhj83pQ=; b=wKCSUjg1IGntXXs/7BRbhIdNLFVOqYMKGy5jtrHJOg0sLt2NDDyVR7Hy54AQ0tdtof QEnOymIIBWFOS5z2fWB3wG8MHVKwIW4bAHv7mDRYdw7wnVQuOZ+Y7Fviyc+eUS2GXFnY yDMZr4sK9mRutvHCFOllENZJ5jLXimJohdc30= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sd1zhDqK6yEd6Yu/iCXUciTPBJ5A8cGvJqBzgaF58Xrcl/lz4uYHZ2FnM6CL840O+P 7TBVL3Btwk4AM0NIl+KAgBzW+KJs5YrMq0zIjiPQZXbsAWla0HBexjxwVEV3RcuNsFxA 2G7dblgD7F6EXcao7yNO5n3Dc3dXK2bH7NhpY= MIME-Version: 1.0 Received: by 10.204.151.204 with SMTP id d12mr6095509bkw.127.1300889576207; Wed, 23 Mar 2011 07:12:56 -0700 (PDT) Received: by 10.204.115.138 with HTTP; Wed, 23 Mar 2011 07:12:56 -0700 (PDT) Date: Wed, 23 Mar 2011 15:12:56 +0100 Message-ID: From: n dhert To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 8.1 to 8.2 upgrade, apache SSL Certificates 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, 23 Mar 2011 14:39:07 -0000 Hi, I did an upgrade from FreeBSD 8.1 to 8.2 today. All OK so far, except for Apache (apache-2.2.17_1) It wouldn't start. /var/log/httpd-error.log [Wed Mar 23 13:04:26 2011] [error] Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0) I dit not change anything tot my apache config in the last weeks (and have restarted apache, via apachectl graceful several times). My certificates are still there and did not change. Accessing some of my https enabled virtual hosts worked before the upgrade. # apachectl configtest Suntax OK If I start apache without SSL (commenting out the "Include etc/apache22/extra/httpd-ssl.conf" line in /usr/local/etc/apache22/httpd.conf), then apache starts. Waht can be the cause, it worked before 8.2 ?? From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 15:01:37 2011 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 CC38B106566B for ; Wed, 23 Mar 2011 15:01:37 +0000 (UTC) (envelope-from ebeukes@cut.ac.za) Received: from relay.cut.ac.za (relay.cut.ac.za [196.21.38.110]) by mx1.freebsd.org (Postfix) with ESMTP id ECD2B8FC08 for ; Wed, 23 Mar 2011 15:01:35 +0000 (UTC) Received: from bfnmail1.cut.ac.za (bfnmail1.cut.ac.za [196.21.38.120]) by relay.cut.ac.za (8.14.4/8.14.4) with ESMTP id p2NDoUp6002812 for ; Wed, 23 Mar 2011 15:50:30 +0200 Received: from bfnmail1.cut.ac.za (localhost.localdomain [127.0.0.1]) by bfnmail1.cut.ac.za (8.13.8/8.13.8) with ESMTP id p2NDnbb4019321 for ; Wed, 23 Mar 2011 15:49:38 +0200 Date: Wed, 23 Mar 2011 15:49:37 +0200 From: "Eric Beukes" To: freebsd-questions Message-ID: x-scalix-Hops: 1 MIME-Version: 1.0 X-MXID: p2NDoUp6002812 X-Spam-Score: 0 X-Scanned-By: MailXServer-v5.1a on 196.21.38.110 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Bandwith Management 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, 23 Mar 2011 15:01:38 -0000 Could you please assist me. =20 I have a freebsd box the previous person who handled it left the company. =20 Now we increased the bandwidth with tenet now how do I increase it on my freebsd box? =20 As well as how do I now what is actually used for the management of the bandwith like ipfw, ect? =20 Please let me know=20 =20 Thank you, =20 Eric Beukes -----------------------------------------------------------------=0D This e-mail is subjected to the disclaimer that can be viewed at:=0D * http://www.cut.ac.za/www/disclaimer/email_disclaimer=0D ----------------------------------------------------------------- From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 15:09:33 2011 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 38D70106566B for ; Wed, 23 Mar 2011 15:09:33 +0000 (UTC) (envelope-from ndhertbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id BAF898FC17 for ; Wed, 23 Mar 2011 15:09:32 +0000 (UTC) Received: by bwz12 with SMTP id 12so7806601bwz.13 for ; Wed, 23 Mar 2011 08:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=S6AnW9E8um9jeuqhcn/SFcHQTPeioCyazOegRdGa0wk=; b=k6BLTubxRbm5USFv1nvtXmdIPaCWxl6e2pXid/VAMuVWYjRLjgsif72VkUh+PEmlrM Feqw2xXfxksG/7Ib6/Nqdms0XephAwWYEPXb4GIbd0zBOPxzfguMcZb17cnS9vbw9Gs4 /QQ7M1a9we/Vqq/uVbeKNZD0bj3qj8gsrBwnc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uZhFc4YLHVFbzvi20bmJh4YA2Z5LGZxmDXKuFm0s2z9YS6x9FHncjqj2z1i55W1xzV utc0iIraZBVd78OZxGjXtW1deYNDlw7J7UUKrBVhub8QjLSRTVJ1PZeLYYbVzbczsD2N f55FyU50ehRefxa0W5fqtNkc7Wu8Ou3As2FAM= MIME-Version: 1.0 Received: by 10.204.18.204 with SMTP id x12mr6185839bka.46.1300892971369; Wed, 23 Mar 2011 08:09:31 -0700 (PDT) Received: by 10.204.115.138 with HTTP; Wed, 23 Mar 2011 08:09:31 -0700 (PDT) Date: Wed, 23 Mar 2011 16:09:31 +0100 Message-ID: From: n dhert To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Solved - 8.1 to 8.2 upgrade, apache SSL Certificates 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, 23 Mar 2011 15:09:33 -0000 Don't border, i found the error, nothing to with freebsd. sorry 2011/3/23 n dhert > Hi, > > I did an upgrade from FreeBSD 8.1 to 8.2 today. All OK so far, except for > Apache (apache-2.2.17_1) > It wouldn't start. > /var/log/httpd-error.log > [Wed Mar 23 13:04:26 2011] [error] Server should be SSL-aware but has no > certificate configured [Hint: SSLCertificateFile] ((null):0) > > I dit not change anything tot my apache config in the last weeks (and have > restarted apache, via apachectl graceful several > times). My certificates are still there and did not change. Accessing some > of my https enabled virtual hosts worked > before the upgrade. > > # apachectl configtest > Suntax OK > > If I start apache without SSL (commenting out the "Include > etc/apache22/extra/httpd-ssl.conf" line in > /usr/local/etc/apache22/httpd.conf), > then apache starts. > > Waht can be the cause, it worked before 8.2 ?? > > > > From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 16:21:43 2011 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 6C2D01065678 for ; Wed, 23 Mar 2011 16:21:43 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 3D3D78FC0A for ; Wed, 23 Mar 2011 16:21:42 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 4F27926399B1; Wed, 23 Mar 2011 11:22:04 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pXpMLgaKiXNF; Wed, 23 Mar 2011 11:21:45 -0500 (CDT) Received: from [192.168.46.76] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id 0354126399AF; Wed, 23 Mar 2011 11:21:44 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ryan Coleman In-Reply-To: Date: Wed, 23 Mar 2011 11:21:21 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <618C962E-94B8-4C2B-8C7B-0A1B96F66671@d3photography.com> References: To: Eric Beukes X-Mailer: Apple Mail (2.1082) Cc: freebsd-questions Subject: Re: Bandwith Management 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, 23 Mar 2011 16:21:43 -0000 Do you know exactly what they used to limit the bandwidth? was it IPFW = or something else? On Mar 23, 2011, at 8:49 AM, Eric Beukes wrote: > Could you please assist me. >=20 >=20 >=20 > I have a freebsd box the previous person who handled it left the > company. >=20 >=20 >=20 > Now we increased the bandwidth with tenet now how do I increase it on = my > freebsd box? >=20 >=20 >=20 > As well as how do I now what is actually used for the management of = the > bandwith like ipfw, ect? >=20 >=20 >=20 > Please let me know=20 >=20 >=20 >=20 > Thank you, >=20 >=20 >=20 > Eric Beukes >=20 >=20 >=20 > ----------------------------------------------------------------- > This e-mail is subjected to the disclaimer that can be viewed at: > * http://www.cut.ac.za/www/disclaimer/email_disclaimer > ----------------------------------------------------------------- > _______________________________________________ > 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 Mar 23 16:45:17 2011 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 2CDF1106564A for ; Wed, 23 Mar 2011 16:45:17 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 01ED98FC0C for ; Wed, 23 Mar 2011 16:45:15 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id D0A5CE80499; Wed, 23 Mar 2011 09:45:11 -0700 (PDT) Date: Wed, 23 Mar 2011 09:45:11 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20110323164504.GA25317@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24 years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: why does this simple counter fail? 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, 23 Mar 2011 16:45:17 -0000 Guys, Can any of you php hackers tell me why this simple self-hacked counter bomb? appended. tia. -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.98a release of Jottings: http://jottings.thought.org
From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 16:47:32 2011 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 827131065670 for ; Wed, 23 Mar 2011 16:47:32 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 415108FC1A for ; Wed, 23 Mar 2011 16:47:32 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 287F426399BD; Wed, 23 Mar 2011 11:47:54 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fYBGDp9B2P54; Wed, 23 Mar 2011 11:47:40 -0500 (CDT) Received: from [192.168.46.76] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id BD4DB26399BC; Wed, 23 Mar 2011 11:47:39 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) From: Ryan Coleman In-Reply-To: <20110323164504.GA25317@thought.org> Date: Wed, 23 Mar 2011 11:47:16 -0500 Message-Id: References: <20110323164504.GA25317@thought.org> To: Gary Kline X-Mailer: Apple Mail (2.1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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, 23 Mar 2011 16:47:32 -0000 Do you have an error for it? If not... add after the first =20 > Guys, >=20 > Can any of you php hackers tell me why this simple self-hacked > counter bomb? >=20 > appended. >=20 > tia. >=20 > --=20 > Gary Kline kline@thought.org http://www.thought.org Public Service = Unix > Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.98a release of Jottings: http://jottings.thought.org >=20 > >=20 > =20 > $directory=3D"./countdir/"; >=20 > if (! (file_exists( ($directory.$file)) )) > { > if (! ($fp =3D fopen( ($directory.$file), "w")) ) > { > echo "Can't create file '$directory.$file'"; > exit(1); > } > else > { > fseek($fp,0); > fputs($fp, $count); > fputs($fp, "\n"); > fputs($fp, $file); > fclose($fp); > } > } >=20 > if (file_exists( ($directory.$file))) > { > $fp =3D fopen($directory.$file, "r+"); > flock($fp, 1); > $count =3D fgets($fp, 4096); > $count +=3D 1; > fseek($fp,0); > fputs($fp, $count); > fputs($fp, "\n"); > fputs($fp, $file); >=20 > flock($fp, 3); > fclose($fp); > ?> >=20 >
> > >=20 > print " there have been "; > ?> >=20 > > >=20 > print $count; > ?> >=20 > > > print "hits\n"; > ?> >=20 >
>=20 > =20 > }=20 > else > { > print "Can't find file, check '$directory.$file'\n"; > } >=20 > ?> >=20 > _______________________________________________ > 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 Mar 23 16:48:21 2011 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 94FE5106566B for ; Wed, 23 Mar 2011 16:48:21 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 656018FC14 for ; Wed, 23 Mar 2011 16:48:21 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 4D3E026399BD; Wed, 23 Mar 2011 11:48:43 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PBev-0BDqYb3; Wed, 23 Mar 2011 11:48:30 -0500 (CDT) Received: from [192.168.46.76] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id 538D326399BC; Wed, 23 Mar 2011 11:48:29 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) From: Ryan Coleman In-Reply-To: <20110323164504.GA25317@thought.org> Date: Wed, 23 Mar 2011 11:48:06 -0500 Message-Id: References: <20110323164504.GA25317@thought.org> To: Gary Kline X-Mailer: Apple Mail (2.1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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, 23 Mar 2011 16:48:21 -0000 On a side note, I'd nix $count +=3D 1; for=20 $count++; -- ryan On Mar 23, 2011, at 11:45 AM, Gary Kline wrote: >=20 > Guys, >=20 > Can any of you php hackers tell me why this simple self-hacked > counter bomb? >=20 > appended. >=20 > tia. >=20 > --=20 > Gary Kline kline@thought.org http://www.thought.org Public Service = Unix > Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.98a release of Jottings: http://jottings.thought.org >=20 > >=20 > =20 > $directory=3D"./countdir/"; >=20 > if (! (file_exists( ($directory.$file)) )) > { > if (! ($fp =3D fopen( ($directory.$file), "w")) ) > { > echo "Can't create file '$directory.$file'"; > exit(1); > } > else > { > fseek($fp,0); > fputs($fp, $count); > fputs($fp, "\n"); > fputs($fp, $file); > fclose($fp); > } > } >=20 > if (file_exists( ($directory.$file))) > { > $fp =3D fopen($directory.$file, "r+"); > flock($fp, 1); > $count =3D fgets($fp, 4096); > $count +=3D 1; > fseek($fp,0); > fputs($fp, $count); > fputs($fp, "\n"); > fputs($fp, $file); >=20 > flock($fp, 3); > fclose($fp); > ?> >=20 >
> > >=20 > print " there have been "; > ?> >=20 > > >=20 > print $count; > ?> >=20 > > > print "hits\n"; > ?> >=20 >
>=20 > =20 > }=20 > else > { > print "Can't find file, check '$directory.$file'\n"; > } >=20 > ?> >=20 > _______________________________________________ > 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 Mar 23 17:03:55 2011 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 2C6C2106564A for ; Wed, 23 Mar 2011 17:03:55 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id D65E18FC17 for ; Wed, 23 Mar 2011 17:03:54 +0000 (UTC) Received: by qwc9 with SMTP id 9so6785972qwc.13 for ; Wed, 23 Mar 2011 10:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=qpFq2xFfAbJLimWTQOckOId69TZCZ/r7xwS+cLcgpU4=; b=hB4MFwni3rqEqFS0meQ1cgnXsLgmjILAYJAXoZR4tak2sHgn0+ZKkbay7nVpKG0T3h FQuZxg1zdIEEyd2mcjGSMxuqmy7hN1SDO2I29HwmeLKPVyDrwMvoGT+4bGA75yPMlkb6 gsWuwPMCAQGrkAXwiqienJEgmOmjNdoZZ51G4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=QHFhQ4+Q7FLi3TrVX/jxO0aW5SQroK314YRM/lx+MriBeFbP9/HsPao75OcXos0kNd UDLl4tAdBFxYQ2X3+ZgdKv6OWGTINdWwmSDhBD5LhYLk4rPRKh/Zzu5KlUI5WLsVMlOR 1TMC2AlHXkTRAZ6oYfvVfb7MhHadv5pOR6X08= Received: by 10.224.203.73 with SMTP id fh9mr6077068qab.340.1300898475237; Wed, 23 Mar 2011 09:41:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.250.139 with HTTP; Wed, 23 Mar 2011 09:40:35 -0700 (PDT) In-Reply-To: References: From: Odhiambo Washington Date: Wed, 23 Mar 2011 19:40:35 +0300 Message-ID: To: Eric Beukes Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions Subject: Re: Bandwith Management 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, 23 Mar 2011 17:03:55 -0000 On Wed, Mar 23, 2011 at 16:49, Eric Beukes wrote: > Could you please assist me. > > > > I have a freebsd box the previous person who handled it left the > company. > > > > Now we increased the bandwidth with tenet now how do I increase it on my > freebsd box? > > > > As well as how do I now what is actually used for the management of the > bandwith like ipfw, ect? > > > > Please let me know > > For starters, could you please show what's in /etc/rc.conf? -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Damn!! From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 17:15:01 2011 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 4A736106566B for ; Wed, 23 Mar 2011 17:15:01 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from ifdnrg29.ifdnrg.com (outbound.ifdnrg.com [193.200.98.138]) by mx1.freebsd.org (Postfix) with ESMTP id D452B8FC12 for ; Wed, 23 Mar 2011 17:15:00 +0000 (UTC) Received: from [192.168.1.85] (93-97-172-73.zone5.bethere.co.uk [93.97.172.73]) (authenticated bits=0) by ifdnrg29.ifdnrg.com (8.14.4/8.14.4) with ESMTP id p2NHEvUa016141 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 23 Mar 2011 17:14:58 GMT (envelope-from paul@ifdnrg.com) Message-ID: <4D8A2A90.4040407@ifdnrg.com> Date: Wed, 23 Mar 2011 17:14:56 +0000 From: Paul Macdonald User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Gary Kline References: <20110323164504.GA25317@thought.org> In-Reply-To: <20110323164504.GA25317@thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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, 23 Mar 2011 17:15:01 -0000 On 23/03/2011 16:45, Gary Kline wrote: > Guys, > > Can any of you php hackers tell me why this simple self-hacked > counter bomb? > > appended. > > tia. $file doesn't look to be set anywhere if its a web script ( as opposed to cmd line cli) tyhen its probably passed as a POST or GET variable., register_globals needs to be on for this variable to be auto set, if the form is submitted via POST, change script to: $directory="./countdir/"; $file=$_POST['file']; .... if the form is submitted via GET (you'd see the file=variable in the address bar), change script to: $directory="./countdir/"; $file=$_GET['file']; .... Of course you want to sanitise this $file variable so that it can't be hacked. -- ------------------------- Paul Macdonald IFDNRG Ltd Web and video hosting ------------------------- t: 0131 5548070 m: 07534206249 e: paul@ifdnrg.com w: http://www.ifdnrg.com ------------------------- IFDNRG 40 Maritime Street Edinburgh EH6 6SA ------------------------- From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 17:18:02 2011 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 B1A01106566B for ; Wed, 23 Mar 2011 17:18:02 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 830078FC14 for ; Wed, 23 Mar 2011 17:18:02 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 502DA26399CB; Wed, 23 Mar 2011 12:18:24 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ngqZQfx6IuYK; Wed, 23 Mar 2011 12:18:11 -0500 (CDT) Received: from [192.168.46.76] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id A56E826399C7; Wed, 23 Mar 2011 12:18:10 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ryan Coleman In-Reply-To: <4D8A2A90.4040407@ifdnrg.com> Date: Wed, 23 Mar 2011 12:17:45 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <8D24A40B-A76B-4753-9616-6CC57A597CDC@d3photography.com> References: <20110323164504.GA25317@thought.org> <4D8A2A90.4040407@ifdnrg.com> To: Paul Macdonald X-Mailer: Apple Mail (2.1082) Cc: Gary Kline , FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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, 23 Mar 2011 17:18:02 -0000 On Mar 23, 2011, at 12:14 PM, Paul Macdonald wrote: > On 23/03/2011 16:45, Gary Kline wrote: >> Guys, >>=20 >> Can any of you php hackers tell me why this simple self-hacked >> counter bomb? >>=20 >> appended. >>=20 >> tia. > $file doesn't look to be set anywhere >=20 > if its a web script ( as opposed to cmd line cli) tyhen its probably = passed as a POST or GET variable., >=20 > register_globals needs to be on for this variable to be auto set, >=20 > if the form is submitted via POST, change script to: >=20 > $directory=3D"./countdir/"; > $file=3D$_POST['file']; > .... >=20 > if the form is submitted via GET (you'd see the file=3Dvariable in the = address bar), change script to: >=20 > $directory=3D"./countdir/"; > $file=3D$_GET['file']; > .... >=20 > Of course you want to sanitise this $file variable so that it can't be = hacked. Additionally you could do: $file =3D $_SERVER['PHP_SELF']; Which will tie the filename to the actual PHP file. But you might want to do something like... $file =3D urlencode($_SERVER['REQUEST_URI']).".txt"; to make it the full url, safe vars for file names and add .txt to make = it readable in other things not FreeBSD.= From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 17:36:12 2011 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 6AA6E106564A for ; Wed, 23 Mar 2011 17:36:12 +0000 (UTC) (envelope-from mkearney@nvita.org) Received: from squirrelserver.nvita.org (nvita.org [173.13.234.121]) by mx1.freebsd.org (Postfix) with ESMTP id 26E9B8FC16 for ; Wed, 23 Mar 2011 17:36:11 +0000 (UTC) Received: from SQUIRRELSERVER.nvita.org ([192.168.0.3]) by SQUIRRELSERVER.nvita.org ([192.168.0.3]) with mapi; Wed, 23 Mar 2011 13:46:36 -0400 From: "Michael J. Kearney" To: freebsd-questions Date: Wed, 23 Mar 2011 13:46:35 -0400 Thread-Topic: Bandwith Management Thread-Index: AcvpbNP1eRB6Vp+YTS+1gKioOk55KwAFWzVs Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: Re: Bandwith Management 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, 23 Mar 2011 17:36:12 -0000 The isp takes it to the dmarc after that its up to you. You could make a ph= onecall and find out where the dsu / csu us at. Eric Beukes wrote: Could you please assist me. I have a freebsd box the previous person who handled it left the company. Now we increased the bandwidth with tenet now how do I increase it on my freebsd box? As well as how do I now what is actually used for the management of the bandwith like ipfw, ect? Please let me know Thank you, Eric Beukes ----------------------------------------------------------------- This e-mail is subjected to the disclaimer that can be viewed at: * http://www.cut.ac.za/www/disclaimer/email_disclaimer ----------------------------------------------------------------- _______________________________________________ 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 Mar 23 18:35:09 2011 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 1AB131065670 for ; Wed, 23 Mar 2011 18:35:09 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 420F18FC0C for ; Wed, 23 Mar 2011 18:35:06 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q2Ste-0007e0-9E for freebsd-questions@freebsd.org; Wed, 23 Mar 2011 19:35:06 +0100 Received: from pool-116.enst-bretagne.fr ([192.108.117.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Mar 2011 19:35:06 +0100 Received: from fred by pool-116.enst-bretagne.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Mar 2011 19:35:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: =?utf-8?B?RnLDqWTDqXJpYw==?= Perrin Date: Wed, 23 Mar 2011 19:11:15 +0100 Lines: 22 Message-ID: References: <20110323164504.GA25317@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-116.enst-bretagne.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:75S2ATZYJFWmGwUg91EiKQqqOhM= Subject: Re: why does this simple counter fail? 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, 23 Mar 2011 18:35:09 -0000 Gary Kline writes: > Can any of you php hackers tell me why this simple self-hacked > counter bomb? As others said, what does 'this simple counter bomb' means? > $fp = fopen($directory.$file, "r+"); > flock($fp, 1); You want an exclusive lock (LOCK_EX, which is 2 is you use some ancient PHP), not a shared lock. When updating the file: > fputs($fp, $count); > fputs($fp, "\n"); > fputs($fp, $file); Why do you feel the need to store the filename inside the file itself? You don't seem to need it after. -- Frédéric Perrin -- http://tar-jx.bz From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 18:50:01 2011 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 8D6671065670 for ; Wed, 23 Mar 2011 18:50:01 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 5DBB88FC15 for ; Wed, 23 Mar 2011 18:50:01 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 4A3AC26399F1 for ; Wed, 23 Mar 2011 13:50:23 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ISnupzTHM6pf for ; Wed, 23 Mar 2011 13:50:10 -0500 (CDT) Received: from [192.168.46.85] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id 4DDFB26399F0 for ; Wed, 23 Mar 2011 13:50:10 -0500 (CDT) From: Ryan Coleman Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 23 Mar 2011 13:49:46 -0500 Message-Id: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> To: FreeBSD Mailing List Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) Subject: Automating mounting of ISO images 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, 23 Mar 2011 18:50:01 -0000 I have a folder full of ISOs that we're sharing on the network instead = of having the discs available (seems like a good idea, right?) But I want to automate the process on boot instead of having to write a = static script to do the work. Disc images are located in /mount/disc_images/ (all are ISOs) They need to mount into /mount/office_files/images/FILENAME [without the = .iso extension] How can I do this? I've always been given these types of scripts in the = past at an old job but I don't have access to those examples anymore. From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 18:51:08 2011 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 4FD8F106566B for ; Wed, 23 Mar 2011 18:51:08 +0000 (UTC) (envelope-from avstin@mail.ru) Received: from f269.mail.ru (f269.mail.ru [217.69.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id C0D848FC13 for ; Wed, 23 Mar 2011 18:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Message-Id:Content-Transfer-Encoding:Content-Type:Reply-To:Date:Mime-Version:Subject:To:From; bh=gB0rPv5ljS3Vk/OJroQvJdeSGITizQYlp8ud/XeBCYA=; b=FzH1xv/eXXBcLNY5XowGJ2BTt9XRwaqpWEgziqVDDPAEisbjI7TWcClzkvMJanq3HMSeQgCuUyfEPk5crrQa1veei9J4yVsZzDU/HKWV0aKdo4sNUFlY3/4peMyU1ps5; Received: from mail by f269.mail.ru with local id 1Q2T98-0003mw-00 for freebsd-questions@freebsd.org; Wed, 23 Mar 2011 21:51:06 +0300 Received: from [68.57.112.205] by e.mail.ru with HTTP; Wed, 23 Mar 2011 21:51:06 +0300 From: =?utf-8?Q?=D0=90=D0=B2=D1=81=D1=82=D0=B8=D0=BD_=D0=9A=D0=B8=D0=BC?= To: freebsd-questions@freebsd.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [68.57.112.205] Date: Wed, 23 Mar 2011 21:51:06 +0300 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 Message-Id: X-Spam: Not detected X-Mras: Ok Subject: FreeBSD-based hosting X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?utf-8?Q?=D0=90=D0=B2=D1=81=D1=82=D0=B8=D0=BD_=D0=9A=D0=B8=D0=BC?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 18:51:08 -0000 SGksIGFsbCwKCkkgaGFwcGVuZWQgdG8gY29tZSBhY3Jvc3MgdGhpcyBOZXRjcmFmdCBzdXJ2ZXkg b2YgdGhlICJNb3N0IFJlbGlhYmxlIEhvc3RpbmcgQ29tcGFueSBTaXRlcyBpbiBGZWJydWFyeSAy MDExIiAodGhlIG1vc3QgcmVjZW50IG1vbnRoIGZvciB3aGljaCBzdGF0aXN0aWNzIGFyZSBhdmFp bGFibGUpOgpodHRwOi8vbmV3cy5uZXRjcmFmdC5jb20vYXJjaGl2ZXMvMjAxMS8wMy8wMS9tb3N0 LXJlbGlhYmxlLWhvc3RpbmctY29tcGFueS1zaXRlcy1pbi1mZWJydWFyeS0yMDExLmh0bWwKSSB3 YXMgc3VycHJpc2VkIHRoYXQgdGhlIHRvcCB0aHJlZSBtb3N0IHJlbGlhYmxlIHNpdGVzIGZvciBs YXN0IG1vbnRoIHdlcmUgYWxsIHJ1bm5pbmcgRnJlZUJTRCA6TwoKSSdtIGN1cnJlbnRseSB1c2lu ZyBhIExpbnV4LWJhc2VkIGhvc3RpbmcgcHJvdmlkZXIgYnV0IGFtIGludGVyZXN0ZWQgaW4gbWln cmF0aW5nIHRvIGEgRnJlZUJTRC1iYXNlZCBwcm92aWRlciBmb3IgdHdvIHJlYXNvbnM6ICAoMSkg SSBkZXZlbG9wIG9uIGEgc3lzdGVtIHJ1bm5pbmcgRnJlZUJTRCwgc28gaXQgd291bGQgbWFrZSB0 aGluZ3Mgc2ltcGxlciBmb3IgbWUgaWYgdGhlIHNlcnZlcnMgd2hlcmVvbiBteSBzaXRlIHJhbiBk aWQgYWxzbywgYW5kICgyKSBJJ2QgbGlrZSB0byBtaWdyYXRlIHRvIHVzaW5nIEZyZWVCU0QgY291 bnRlcnBhcnRzIGluIGxpZXUgb2YgTGludXggc3RhbmRieXMgKGUuIGcuLCBwZiBpbnN0ZWFkIG9m IGlwdGFibGVzLCBldGMuKSAgQ2FuIGFueW9uZSByZWNvbW1lbmQgdGhlIGJlc3QgRnJlZUJTRC1i YXNlZCBob3N0aW5nIHByb3ZpZGVyIHRoYXQgdGhleSd2ZSB1c2VkIHJlY2VudGx5IGFuZC9vciBh cmUgY3VycmVudGx5IHVzaW5nLCBpbiB0ZXJtcyBvZjoKCihhKSBwcm92aWRpbmcgZGVkaWNhdGVk IHNlcnZlcnMsIG9yLCBhdCB0aGUgdmVyeSBsZWFzdCwgdHJ1ZSBWUFNlcyAoaS4gZS4sIG9uZSB5 b3UgY2FuIGhhcmQtcmVib290IGF0IHdoaW0sIG5vdCBhIEZyZWVCU0QgamFpbCksIG9idmlvdXNs eSB3aXRoIGZ1bGwgcm9vdCBhY2Nlc3M7CihiKSBjb25uZWN0aW9uIGxhdGVuY3kgKGhvdyBsb25n IGl0IHRha2VzIHRvIGNvbm5lY3QgdmlhIHNzaC9zZnRwKSBhbmQgc3BlZWQvbGFnOwooYykgb2Jz ZXJ2ZWQgZGlzay9maWxlIEkvTyBwZXJmb3JtYW5jZSAoYm90aCBsYXRlbmN5IGFuZCB0aHJvdWdo cHV0LCBwYXJ0aWN1bGFybHkgaW1wb3J0YW50IGluIHRoZSBjYXNlIG9mIFZQU2VzIC0tIG15IGN1 cnJlbnQgTGludXggVlBTLWJhc2VkIHNlcnZpY2Ugc3RhcnRlZCBvdXQgZ3JlYXQsIGJ1dCBub3cg ZmlsZSBJL08gcGVyZm9ybWFuY2UgaGFzIHNsb3dlZCB0byBhIGNyYXdsIGFzIHRoZXkndmUgYWRk ZWQgVlBTZXMgd2l0aG91dCBwcm9wb3J0aW9uYXRlbHkgaW5jcmVhc2luZyBoYXJkd2FyZSByZXNv dXJjZXMpOwooZCkgY29zdC1lZmZlY3RpdmVuZXNzIChpLiBlLiwgaG93IG11Y2ggeW91IGdldCBm b3Igc29tZXdoZXJlIG9uIHRoZSBvcmRlciBvZiAkMTAwIGEgbW9udGggLS0gSSdtIGludGVyZXN0 ZWQgaW4gc2V0dGluZyB1cCBhIHNtYWxsLCBleHBlcmltZW50YWwgV1dXIHNpdGUsIGFuZCB0aGVu IGhvcGUgdG8gc2NhbGUgdXAgZnJvbSB0aGVyZSk7CihlKSBwcmVmZXJhYmx5IGEgaG9zdGluZyBw cm92aWRlciB0aGF0IGRlbGl2ZXJzIGEgZGVkaWNhdGVkIG9yIHZpcnR1YWwgc2VydmVyIHdpdGgg YSBmcmVzaCwgY2xlYW4gaW5zdGFsbCBvZiB0aGUgbW9zdCByZWNlbnQgcmVsZWFzZSBvZiBGcmVl QlNEICg4LjItUkVMRUFTRSBhcyBvZiB0aGUgdGltZSBvZiB0aGlzIHdyaXRpbmcpIHJpZ2h0IG9m ZiB0aGUgYmF0OyBhbmQKKGYpIGluIGNhc2Ugb2YgdGllcywgdGhlIGV4dGVudCB0byB3aGljaCB0 aGV5J3ZlIGdpdmVuIGJhY2sgdG8gdGhlIEZyZWVCU0QgY29tbXVuaXR5LCBlaXRoZXIgdGhyb3Vn aCBjb250cmlidXRlZCBjb2RlIG9yIGhhcmR3YXJlLCBob3N0aW5nLCBhbmQvb3IgZmluYW5jaWFs IHN1cHBvcnQ/CgpNeSBmaXJzdCBpbnN0aW5jdCB3YXMgc2ltcGx5IHRvIGNob29zZSBhIGhvc3Rp bmcgcHJvdmlkZXIgYmFzZWQgb24gdGhlIE5ldGNyYWZ0IHN1cnZleSBhYm92ZSwgYnV0IHNpbmNl IEkgY2FuJ3QgYXNzZXNzIHRoZSBvdGhlciBjcml0ZXJpYSBiYXNlZCBvbiB0aGUgTmV0Y3JhZnQg c3VydmV5IGFsb25lIEkgZmlndXJlZCBJJ2QgYmUgYmVzdCBvZmYgZ29pbmcgd2l0aCB3aGF0IHkn YWxsIHJlY29tbWVuZCBiYXNlZCBvbiB5b3VyIHBlcnNvbmFsIGFuZCB0ZWNobmljYWwgZXhwZXJp ZW5jZSB3aXRoIGFsbCBmYWN0b3JzIHRha2VuIGludG8gY29uc2lkZXJhdGlvbiwgbm90IGp1c3Qg cHVyZSByZWxpYWJpbGl0eSBhY2NvcmRpbmcgdG8gYSBzaW5nbGUgbWV0cmljLiAgKE5vdGU6ICBJ IGtub3cgdGhpcyBzdWJqZWN0IHJlc3VyZmFjZXMgZnJvbSB0aW1lIHRvIHRpbWUgaW4gdGhlIEZy ZWVCU0QgbWFpbGluZyBsaXN0cyBhbmQgZm9yYSwgYnV0IEknZCBsaWtlIHRvIGFzayBhbmV3IGFz IHRoZSBxdWFsaXR5IG9mIGhvc3RpbmcgY29tcGFuaWVzJyBzZXJ2aWNlcyB2YXJpZXMgc28gcXVp Y2tseSBhcyB0aGV5IGpvc3RsZSBmb3IgbWFya2V0IHBvc2l0aW9uLikKClRoYW5rcyBpbiBhZHZh bmNlLCBldmVyeW9uZSwgYW5kIG15IGFwb2xvZ2llcyBmb3IgYXNraW5nIGEgImNvbW1lcmNpYWwi LXR5cGUgcXVlc3Rpb24sIHJhdGhlciB0aGFuIGEgcHVyZWx5IHRlY2huaWNhbCBvbmUuICAoQW5k IHBsZWFzZSwgbm8gYWRzIG9yIHNlbGYtcHJvbW90aW9uIGluIHJlcGx5OyBsZXQncyBqdXN0IGFs bCBhZ3JlZSB1cGZyb250IHRvIGJveWNvdHQgYW55IHBvc3RlciB0aGF0IHZpb2xhdGVzIHRoaXMg YmFzaWMgcnVsZSBvZiBjb21tb24gY291cnRlc3kgOikKCkFsbCB0aGUgYmVzdCwKQXVzdGluCgpQ LiBTLiAgSWYgeW91IHJlY29tbWVuZCBob3N0aW5nIHByb3ZpZGVycyBiYXNlZCBvdXRzaWRlIG9m IHRoZSBVLiBTLiBvciBSdXNzaWFuIEZlZGVyYXRpb24gSSdkIGFwcHJlY2lhdGUgaXQgaWYgeW91 IGNvdWxkIHJlc3RyaWN0IHlvdXJzZWxmIHRvIHRob3NlIHdobyBoYXZlIGEgc29saWQgdHJhY2sg cmVjb3JkIG9mIGhhbmRsaW5nIHNlY3VyZSB0cmFuc2FjdGlvbnMgaW4gVVNEIGFuZCB3aG9zZSBz aXRlcyBhbmQgZG9jdW1lbnRhdGlvbiBhcmUgYXZhaWxhYmxlIGluIEVuZ2xpc2ggb3IgUnVzc2lh bi4gIFRoYW5rcyEKClAuIFAuIFMuICBQbGVhc2UgcmVwbHkgdG8gdGhlIGxpc3QsIG5vdCB0byBt ZSBwZXJzb25hbGx5LgotLQrQktGB0LUg0LLQvtC30LzQvtC20L3QvtGB0YLQuCBATWFpbC5SdSDQ siDRgtCy0L7QtdC8INC80L7QsdC40LvRjNC90L7QvC4K0J/RgNC+0YHRgtC+INC30LDQudC00Lgg 0YEg0YLQtdC70LXRhNC+0L3QsCDQvdCwIG0ubWFpbC5ydQ== From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 18:59:39 2011 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 2F54D106566C for ; Wed, 23 Mar 2011 18:59:39 +0000 (UTC) (envelope-from merlyn@stonehenge.com) Received: from mail.mroute.net (lax-gw09.mailroute.net [199.89.0.109]) by mx1.freebsd.org (Postfix) with ESMTP id 141D78FC13 for ; Wed, 23 Mar 2011 18:59:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by lax-gw09.mroute.net (Postfix) with ESMTP id D3BAA1385B8; Wed, 23 Mar 2011 18:59:37 +0000 (GMT) X-Virus-Scanned: by MailRoute Received: from red.stonehenge.com (red.stonehenge.com [208.79.95.2]) by lax-gw09.mroute.net (Postfix) with ESMTP id 19370138517; Wed, 23 Mar 2011 18:59:37 +0000 (GMT) Received: by red.stonehenge.com (Postfix, from userid 1001) id 02C77190B; Wed, 23 Mar 2011 11:59:37 -0700 (PDT) From: merlyn@stonehenge.com (Randal L. Schwartz) To: =?utf-8?B?0JDQstGB0YLQuNC9INCa0LjQvA==?= References: x-mayan-date: Long count = 12.19.18.4.1; tzolkin = 2 Imix; haab = 14 Cumku Date: Wed, 23 Mar 2011 11:59:36 -0700 In-Reply-To: (=?utf-8?B?ItCQ0LLRgdGC0LjQvSDQmtC40LwiJ3M=?= message of "Wed, 23 Mar 2011 21:51:06 +0300") Message-ID: <86k4fp4q93.fsf@red.stonehenge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD-based hosting 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, 23 Mar 2011 18:59:39 -0000 >>>>> "=D0=90=D0=B2=D1=81=D1=82=D0=B8=D0=BD" =3D=3D =D0=90=D0=B2=D1=81=D1= =82=D0=B8=D0=BD =D0=9A=D0=B8=D0=BC writes: =D0=90=D0=B2=D1=81=D1=82=D0=B8=D0=BD> Can anyone recommend the best FreeBSD= -based hosting provider =D0=90=D0=B2=D1=81=D1=82=D0=B8=D0=BD> that they've used recently and/or are= currently using, in terms =D0=90=D0=B2=D1=81=D1=82=D0=B8=D0=BD> of: You might want to check the archives for this mailing list. This question gets asked and answered repeatedly. :) I'll once again say how happy I am with . Check them out. Tell 'em I sent ya. --=20 Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 19:11:37 2011 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 3EE30106566C for ; Wed, 23 Mar 2011 19:11:37 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout018.mac.com (asmtpout018.mac.com [17.148.16.93]) by mx1.freebsd.org (Postfix) with ESMTP id 257328FC0A for ; Wed, 23 Mar 2011 19:11:36 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp018.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LII009OEYN6CK90@asmtp018.mac.com> for freebsd-questions@freebsd.org; Wed, 23 Mar 2011 12:11:31 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-03-23_08:2011-03-23, 2011-03-23, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1103230105 From: Chuck Swiger In-reply-to: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> Date: Wed, 23 Mar 2011 12:11:30 -0700 Message-id: <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> To: Ryan Coleman X-Mailer: Apple Mail (2.1084) Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images 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, 23 Mar 2011 19:11:37 -0000 Hi-- On Mar 23, 2011, at 11:49 AM, Ryan Coleman wrote: > Disc images are located in /mount/disc_images/ (all are ISOs) > They need to mount into /mount/office_files/images/FILENAME [without the .iso extension] > > How can I do this? I've always been given these types of scripts in the past at an old job but I don't have access to those examples anymore. Something like this might do (untested, though): #! /bin/sh for FILE in /mount/disc_images/*; do DEST=$FILE:r mount -t cd9660 /dev/`mdconfig -f ${FILE}` /mount/office_files/images/${DEST} done Might need to add quotes if you have spaces or other unusual characters in your ISO filenames.... Regards, -- -Chuck From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 19:20:37 2011 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 773831065673 for ; Wed, 23 Mar 2011 19:20:37 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 388398FC13 for ; Wed, 23 Mar 2011 19:20:37 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id 7FBF91E539; Wed, 23 Mar 2011 20:20:35 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2NJKYuQ001635; Wed, 23 Mar 2011 20:20:34 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 23 Mar 2011 20:20:34 +0100 From: Polytropon To: Ryan Coleman Message-Id: <20110323202034.1c6a5fce.freebsd@edvax.de> In-Reply-To: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 19:20:37 -0000 On Wed, 23 Mar 2011 13:49:46 -0500, Ryan Coleman wrote: > I have a folder full of ISOs that we're sharing on the > network instead of having the discs available (seems > like a good idea, right?) Please use the correct terminology: FreeBSD (as any UNIX operating systems) calls them DIRECTORIES. "Folders" is something else, it's not equivalent to a directory, so "folders" is wrong. > But I want to automate the process on boot instead of > having to write a static script to do the work. > > Disc images are located in /mount/disc_images/ (all are ISOs) > They need to mount into /mount/office_files/images/FILENAME > [without the .iso extension] > > How can I do this? I've always been given these types of > scripts in the past at an old job but I don't have access > to those examples anymore. Something like this (not even tested, but quite verbose and unelegant) should work: #!/bin/sh NODE=0 for IMAGE in /mount/disc_images/*.iso; do mdconfig -a -t vnode -u $NODE -f $IMAGE mount -t cd9660 -o ro /dev/md$NODE /mount/office_files/images/`basename $IMAGE .iso` NODE=`expr $NODE + 1` done This of course assumes that you have PROPER file names. In case the ISO file names contain special characters, attention has to be paid for quoting and escaping. Worth reading: http://www.dwheeler.com/essays/filenames-in-shell.html http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html After reading it, you'll easily recognize that I did it wrong in the suggestive script. :-) I'm not sure if you can mount from ISO files directly, but maybe you can try that too. Remember unmounting the files when not in use (scripted: umount and mdconfig -d). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 19:48:23 2011 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 CA8B21065688 for ; Wed, 23 Mar 2011 19:48:23 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB2A8FC16 for ; Wed, 23 Mar 2011 19:48:23 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1Q2U2P-0009nJ-Nr; Wed, 23 Mar 2011 15:48:21 -0400 Received: from v104.entropy.prv (v104.entropy.prv [192.168.1.104]) by cube.entropy.prv (Postfix) with ESMTP id 5CA454C13C1A; Wed, 23 Mar 2011 15:48:14 -0400 (EDT) Message-ID: <4D8A4E7E.2050403@FreeBSD.org> Date: Wed, 23 Mar 2011 15:48:14 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Ryan Coleman References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> In-Reply-To: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 19:48:23 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 3/23/11 2:49 PM, Ryan Coleman wrote: > I have a folder full of ISOs that we're sharing on the network instead of having the discs available (seems like a good idea, right?) > > But I want to automate the process on boot instead of having to write a static script to do the work. > > Disc images are located in /mount/disc_images/ (all are ISOs) > They need to mount into /mount/office_files/images/FILENAME [without the .iso extension] > > How can I do this? I've always been given these types of scripts in the past at an old job but I don't have access to those examples anymore. Hi Ryan, You can put something like this in /etc/rc.conf to get the device files created automatically: mdconfig_md0="-t vnode -f /mount/disc_images/Image1.iso" mdconfig_md1="-t vnode -f /mount/disc_images/Image2.iso" mdconfig_md2="-t vnode -f /mount/disc_images/Image3.iso" Because these devices (/dev/md0, /dev/md1, /dev/md2) will be created before /etc/fstab is processed, you can then add the following entries in that file: /dev/md0 /mount/office_files/images/Image1 cd9660 ro 0 0 /dev/md1 /mount/office_files/images/Image2 cd9660 ro 0 0 /dev/md2 /mount/office_files/images/Image3 cd9660 ro 0 0 Check out the rc(8) man page (http://bit.ly/fuwn5n) for more information about how the startup scripts work, as well as the one that processes the device creation directives above - /etc/rc.d/mdconfig Finally, you can always add your own custom startup scripts to /usr/local/etc/rc.d if you need to do something that the standard startup scripts can't handle. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2KTn4ACgkQ0sRouByUApCAiwCfZzO8jnaKIFxuOoZotU8Ac49I MMIAni1KMFDqLe1YeMaS/LZUsgrV1PfY =JUk3 -----END PGP SIGNATURE----- From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 19:53:29 2011 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 3C0F1106566C for ; Wed, 23 Mar 2011 19:53:29 +0000 (UTC) (envelope-from nvidican@m2.vidican.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B771B8FC08 for ; Wed, 23 Mar 2011 19:53:28 +0000 (UTC) Received: by wyf23 with SMTP id 23so8836770wyf.13 for ; Wed, 23 Mar 2011 12:53:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.253.147 with SMTP id f19mr244683wes.19.1300910007510; Wed, 23 Mar 2011 12:53:27 -0700 (PDT) Sender: nvidican@m2.vidican.com Received: by 10.216.7.80 with HTTP; Wed, 23 Mar 2011 12:53:27 -0700 (PDT) X-Originating-IP: [136.1.1.105] In-Reply-To: References: Date: Wed, 23 Mar 2011 15:53:27 -0400 X-Google-Sender-Auth: vm1yNDcV6MMEz4NDVfsdAULKnjE Message-ID: From: Nathan Vidican To: =?KOI8-R?B?4dfT1MnOIOvJzQ==?= Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD-based hosting 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, 23 Mar 2011 19:53:29 -0000 On Wed, Mar 23, 2011 at 2:51 PM, =E1=D7=D3=D4=C9=CE =EB=C9=CD wrote: > Hi, all, > > I happened to come across this Netcraft survey of the "Most Reliable > Hosting Company Sites in February 2011" (the most recent month for which > statistics are available): > > http://news.netcraft.com/archives/2011/03/01/most-reliable-hosting-compan= y-sites-in-february-2011.html > I was surprised that the top three most reliable sites for last month wer= e > all running FreeBSD :O > > I'm currently using a Linux-based hosting provider but am interested in > migrating to a FreeBSD-based provider for two reasons: (1) I develop on = a > system running FreeBSD, so it would make things simpler for me if the > servers whereon my site ran did also, and (2) I'd like to migrate to usin= g > FreeBSD counterparts in lieu of Linux standbys (e. g., pf instead of > iptables, etc.) Can anyone recommend the best FreeBSD-based hosting > provider that they've used recently and/or are currently using, in terms = of: > > (a) providing dedicated servers, or, at the very least, true VPSes (i. e.= , > one you can hard-reboot at whim, not a FreeBSD jail), obviously with full > root access; > (b) connection latency (how long it takes to connect via ssh/sftp) and > speed/lag; > (c) observed disk/file I/O performance (both latency and throughput, > particularly important in the case of VPSes -- my current Linux VPS-based > service started out great, but now file I/O performance has slowed to a > crawl as they've added VPSes without proportionately increasing hardware > resources); > (d) cost-effectiveness (i. e., how much you get for somewhere on the orde= r > of $100 a month -- I'm interested in setting up a small, experimental WWW > site, and then hope to scale up from there); > (e) preferably a hosting provider that delivers a dedicated or virtual > server with a fresh, clean install of the most recent release of FreeBSD > (8.2-RELEASE as of the time of this writing) right off the bat; and > (f) in case of ties, the extent to which they've given back to the FreeBS= D > community, either through contributed code or hardware, hosting, and/or > financial support? > > My first instinct was simply to choose a hosting provider based on the > Netcraft survey above, but since I can't assess the other criteria based = on > the Netcraft survey alone I figured I'd be best off going with what y'all > recommend based on your personal and technical experience with all factor= s > taken into consideration, not just pure reliability according to a single > metric. (Note: I know this subject resurfaces from time to time in the > FreeBSD mailing lists and fora, but I'd like to ask anew as the quality o= f > hosting companies' services varies so quickly as they jostle for market > position.) > > Thanks in advance, everyone, and my apologies for asking a > "commercial"-type question, rather than a purely technical one. (And > please, no ads or self-promotion in reply; let's just all agree upfront t= o > boycott any poster that violates this basic rule of common courtesy :) > > All the best, > Austin > > P. S. If you recommend hosting providers based outside of the U. S. or > Russian Federation I'd appreciate it if you could restrict yourself to th= ose > who have a solid track record of handling secure transactions in USD and > whose sites and documentation are available in English or Russian. Thank= s! > > P. P. S. Please reply to the list, not to me personally. > -- > =F7=D3=C5 =D7=CF=DA=CD=CF=D6=CE=CF=D3=D4=C9 @Mail.Ru =D7 =D4=D7=CF=C5=CD = =CD=CF=C2=C9=CC=D8=CE=CF=CD. > =F0=D2=CF=D3=D4=CF =DA=C1=CA=C4=C9 =D3 =D4=C5=CC=C5=C6=CF=CE=C1 =CE=C1 m.= mail.ru > _______________________________________________ > 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" > +1 vote for Arp Networks - I've been a happy customer with them for a coupl= e of years now. Their VPS offerings scale very well, and they give you full remote console access including the ability to 'poweroff' and restart your VPS. The control panel is simple, and their support has been good. Their network has caused no problems for me personally, though I don't know what kind of latency you might incur from Russia. I figure it's worth trying at least, they do not lock you into a contract and you can usually get a new VPS up within a day to be able to mess with it yourself. --=20 Nathan Vidican nathan@vidican.com From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 20:06:29 2011 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 69532106564A for ; Wed, 23 Mar 2011 20:06:29 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 3DD0A8FC0C for ; Wed, 23 Mar 2011 20:06:29 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 670092639A01; Wed, 23 Mar 2011 15:06:51 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WRKzH-jj8fQy; Wed, 23 Mar 2011 15:06:38 -0500 (CDT) Received: from [192.168.46.76] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id 9739E2639A00; Wed, 23 Mar 2011 15:06:38 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ryan Coleman In-Reply-To: <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> Date: Wed, 23 Mar 2011 15:06:14 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> To: Chuck Swiger X-Mailer: Apple Mail (2.1082) Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images 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, 23 Mar 2011 20:06:29 -0000 We're close on this (thanks for the push). It wants to load the entire path up in ${DEST} which is not ideal but I = can live with that. I am also trying to make the directories right before the attempt to = mount the image (a 'duh' moment just now).=20 So I'd like to have just the filename, not the full path, made as a = folder...=20 In other news: The ISOs are all made by me, so no special chars, just = capital and lowercase letters, sometimes numbers, no spaces and use of = underscores and hyphens. thanks! On Mar 23, 2011, at 2:11 PM, Chuck Swiger wrote: > Hi-- >=20 > On Mar 23, 2011, at 11:49 AM, Ryan Coleman wrote: >> Disc images are located in /mount/disc_images/ (all are ISOs) >> They need to mount into /mount/office_files/images/FILENAME [without = the .iso extension] >>=20 >> How can I do this? I've always been given these types of scripts in = the past at an old job but I don't have access to those examples = anymore. >=20 > Something like this might do (untested, though): >=20 > #! /bin/sh = =20 >=20 > for FILE in /mount/disc_images/*; do > DEST=3D$FILE:r > mount -t cd9660 /dev/`mdconfig -f ${FILE}` = /mount/office_files/images/${DEST} > done >=20 > Might need to add quotes if you have spaces or other unusual = characters in your ISO filenames.... >=20 > Regards, > --=20 > -Chuck >=20 From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 20:08:02 2011 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 95A131065678 for ; Wed, 23 Mar 2011 20:08:02 +0000 (UTC) (envelope-from FreeBSD@insightbb.com) Received: from mxsf00.insightbb.com (mxsf00.insightbb.com [74.128.0.70]) by mx1.freebsd.org (Postfix) with ESMTP id 609A98FC08 for ; Wed, 23 Mar 2011 20:08:02 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.63,233,1299474000"; d="scan'208";a="1052329468" Received: from unknown (HELO asav03.insightbb.com) ([172.31.249.123]) by mxsf00.insightbb.com with ESMTP; 23 Mar 2011 16:08:01 -0400 X-Connecting-IP: 74.132.139.5 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgZgAIfviU1KhIsFO2dsb2JhbACJDY8+jHkLAQEBARkeMohNunqFaQQ X-IronPort-AV: E=Sophos;i="4.63,233,1299474000"; d="scan'208";a="214538820" Received: from 74-132-139-5.dhcp.insightbb.com (HELO laptop2.stevenfriedrich.org) ([74.132.139.5]) by asavout03.insightbb.com with ESMTP; 23 Mar 2011 16:08:00 -0400 From: Steven Friedrich To: freebsd-questions@freebsd.org Date: Wed, 23 Mar 2011 16:07:52 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-RELEASE; KDE/4.5.5; i386; ; ) References: <201103220226.22277.FreeBSD@insightbb.com> <4D88499D.2000408@herveybayaustralia.com.au> In-Reply-To: <4D88499D.2000408@herveybayaustralia.com.au> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201103231607.53579.FreeBSD@insightbb.com> Cc: Da Rock Subject: Re: Kodak C195 digital camera appears to affect WD on usb 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, 23 Mar 2011 20:08:02 -0000 I know I wasn't clear in my original mail, but after this AutoSense failed, I get LOTS of g_vfs_done errors. I don't get them if I don't plu in the camera > Mar 22 01:12:21 laptop2 kernel: (da0:umass-sim0:0:0:0): AutoSense failed > Mar 22 01:12:21 laptop2 kernel: g_vfs_done():da0s1f[WRITE(offset=5780930560, > length=16384)]error = 5 ^^^^^^^^^^^^^^ Lot's and lot's of these. > Da Rock said: It appears to be a routine attempt to determine a usb device by devd. Assuming you are trying to access the camera, are you able to mount it? I just got the camera a week ago. When I first connected it, it would automatically create da1-da3. Now it doesn't. It used to get detected with gphoto2 --auto-detect as a Generic PTP camera. I don't know if I changed a camera setting to cause any new behaviour, but I looked at them. No setting for mode like PTP. From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 20:16:07 2011 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 D812B106566B for ; Wed, 23 Mar 2011 20:16:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 98CA78FC0C for ; Wed, 23 Mar 2011 20:16:07 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx01.qsc.de (Postfix) with ESMTP id D6CB23CC7C; Wed, 23 Mar 2011 21:16:05 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2NKG59f001820; Wed, 23 Mar 2011 21:16:05 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 23 Mar 2011 21:16:05 +0100 From: Polytropon To: Ryan Coleman Message-Id: <20110323211605.4c893e70.freebsd@edvax.de> In-Reply-To: <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 20:16:07 -0000 On Wed, 23 Mar 2011 15:06:14 -0500, Ryan Coleman wrote: > I am also trying to make the directories right before the attempt > to mount the image (a 'duh' moment just now). > So I'd like to have just the filename, not the full path, made > as a folder... A directory. :-) > In other news: The ISOs are all made by me, so no special chars, > just capital and lowercase letters, sometimes numbers, no spaces > and use of underscores and hyphens. Underscores and hypens are traditionally not a problem. Spaces can be and need extra attention. But as you're using PROPER filenames, it should be easy to get the target directory name from the ISO filename. The unelegant way is to use basename: DIRNAME=`basename ${FILE} .iso` Of course, there's a sh builtin for the same purpose: DIRNAME=${FILE%.iso} Adding this to the iteration list, you can easily create the directories needed prior to the mount attempt. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 20:22:15 2011 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 A6794106566C for ; Wed, 23 Mar 2011 20:22:15 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 7A89C8FC0C for ; Wed, 23 Mar 2011 20:22:15 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 934562639A07; Wed, 23 Mar 2011 15:22:37 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PDF4ZyxGjNCa; Wed, 23 Mar 2011 15:22:24 -0500 (CDT) Received: from [192.168.46.76] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id A44DC2639A06; Wed, 23 Mar 2011 15:22:24 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ryan Coleman In-Reply-To: <20110323211605.4c893e70.freebsd@edvax.de> Date: Wed, 23 Mar 2011 15:22:00 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <6E177CD7-7FA1-4A1C-ADBD-13F85A8049A1@d3photography.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> <20110323211605.4c893e70.freebsd@edvax.de> To: Polytropon X-Mailer: Apple Mail (2.1082) Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images 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, 23 Mar 2011 20:22:15 -0000 On Mar 23, 2011, at 3:16 PM, Polytropon wrote: > On Wed, 23 Mar 2011 15:06:14 -0500, Ryan Coleman = wrote: >> I am also trying to make the directories right before the attempt >> to mount the image (a 'duh' moment just now).=20 >> So I'd like to have just the filename, not the full path, made >> as a folder...=20 >=20 > A directory. :-) Thank you. :-) slip of the fingers... >=20 >=20 >> In other news: The ISOs are all made by me, so no special chars, >> just capital and lowercase letters, sometimes numbers, no spaces >> and use of underscores and hyphens. >=20 > Underscores and hypens are traditionally not a problem. Spaces > can be and need extra attention. But as you're using PROPER > filenames, it should be easy to get the target directory name > from the ISO filename. >=20 > The unelegant way is to use basename: >=20 > DIRNAME=3D`basename ${FILE} .iso` >=20 > Of course, there's a sh builtin for the same purpose: >=20 > DIRNAME=3D${FILE%.iso} >=20 > Adding this to the iteration list, you can easily create > the directories needed prior to the mount attempt. I'll give this a whirl in a bit. From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 20:35:36 2011 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 7D31D106564A for ; Wed, 23 Mar 2011 20:35:36 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 51DE08FC0A for ; Wed, 23 Mar 2011 20:35:36 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id CCB762639A0A; Wed, 23 Mar 2011 15:35:58 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YUR3CQzTI86E; Wed, 23 Mar 2011 15:35:46 -0500 (CDT) Received: from [192.168.46.76] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id E0A672639A07; Wed, 23 Mar 2011 15:35:45 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ryan Coleman In-Reply-To: <20110323211605.4c893e70.freebsd@edvax.de> Date: Wed, 23 Mar 2011 15:35:21 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <2A377C8B-D9E6-4E60-834C-5BD7C03AA552@d3photography.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> <20110323211605.4c893e70.freebsd@edvax.de> To: Polytropon X-Mailer: Apple Mail (2.1082) Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images 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, 23 Mar 2011 20:35:36 -0000 Here's the working script (Yay!) #! /bin/sh for FILE in /mount/disc_images/*.iso; do DEST=3D$FILE DIRNAME=3D`basename ${FILE} .iso` echo ${DIRNAME} ${FILE} mkdir /mount/new_brighton/images/${DIRNAME} mount -t cd9660 /dev/`mdconfig -f ${FILE}` = /mount/new_brighton/images/${DIRNAME} done Thanks to Polytropon and Chuck for their guidance. On Mar 23, 2011, at 3:16 PM, Polytropon wrote: > On Wed, 23 Mar 2011 15:06:14 -0500, Ryan Coleman = wrote: >> I am also trying to make the directories right before the attempt >> to mount the image (a 'duh' moment just now).=20 >> So I'd like to have just the filename, not the full path, made >> as a folder...=20 >=20 > A directory. :-) >=20 >=20 >=20 >> In other news: The ISOs are all made by me, so no special chars, >> just capital and lowercase letters, sometimes numbers, no spaces >> and use of underscores and hyphens. >=20 > Underscores and hypens are traditionally not a problem. Spaces > can be and need extra attention. But as you're using PROPER > filenames, it should be easy to get the target directory name > from the ISO filename. >=20 > The unelegant way is to use basename: >=20 > DIRNAME=3D`basename ${FILE} .iso` >=20 > Of course, there's a sh builtin for the same purpose: >=20 > DIRNAME=3D${FILE%.iso} >=20 > Adding this to the iteration list, you can easily create > the directories needed prior to the mount attempt. >=20 >=20 >=20 > --=20 > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 20:45:19 2011 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 125131065670 for ; Wed, 23 Mar 2011 20:45:19 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id C42518FC08 for ; Wed, 23 Mar 2011 20:45:18 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx01.qsc.de (Postfix) with ESMTP id 06A473CD41; Wed, 23 Mar 2011 21:45:17 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2NKjGqt001913; Wed, 23 Mar 2011 21:45:17 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 23 Mar 2011 21:45:16 +0100 From: Polytropon To: Ryan Coleman Message-Id: <20110323214516.47d71026.freebsd@edvax.de> In-Reply-To: <2A377C8B-D9E6-4E60-834C-5BD7C03AA552@d3photography.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> <20110323211605.4c893e70.freebsd@edvax.de> <2A377C8B-D9E6-4E60-834C-5BD7C03AA552@d3photography.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 20:45:19 -0000 On Wed, 23 Mar 2011 15:35:21 -0500, Ryan Coleman wrote: > Here's the working script (Yay!) > > #! /bin/sh > > for FILE in /mount/disc_images/*.iso; do > DEST=$FILE > DIRNAME=`basename ${FILE} .iso` > echo ${DIRNAME} ${FILE} > mkdir /mount/new_brighton/images/${DIRNAME} > mount -t cd9660 /dev/`mdconfig -f ${FILE}` /mount/new_brighton/images/${DIRNAME} > done > > Thanks to Polytropon and Chuck for their guidance. Just a little note: Make sure you're mounting the ISOs as "-o ro" to prevent write access to them. If users don't have +w access to the mounted directories, you can leave out this step. Depending on the permissions used, this might corrupt (or at least change) the image files which may not be desired. If you want to omit one external program call (one per iteration step), use DIRNAME=${FILE%.iso} instead of the `basename ${FILE} .iso` - although it's more obvious what DIRNAME gets designated to. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 21:05:27 2011 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 54239106568B for ; Wed, 23 Mar 2011 21:05:27 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 259F98FC08 for ; Wed, 23 Mar 2011 21:05:27 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id A231E2639A0F; Wed, 23 Mar 2011 16:05:49 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BCAsAvm9ju4m; Wed, 23 Mar 2011 16:05:36 -0500 (CDT) Received: from [192.168.46.76] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id C83F72639A0E; Wed, 23 Mar 2011 16:05:36 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ryan Coleman In-Reply-To: <20110323214516.47d71026.freebsd@edvax.de> Date: Wed, 23 Mar 2011 16:05:12 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> <20110323211605.4c893e70.freebsd@edvax.de> <2A377C8B-D9E6-4E60-834C-5BD7C03AA552@d3photography.com> <20110323214516.47d71026.freebsd@edvax.de> To: Polytropon X-Mailer: Apple Mail (2.1082) Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images 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, 23 Mar 2011 21:05:27 -0000 On Mar 23, 2011, at 3:45 PM, Polytropon wrote: > On Wed, 23 Mar 2011 15:35:21 -0500, Ryan Coleman = wrote: >> Here's the working script (Yay!) >>=20 >> #! /bin/sh >>=20 >> for FILE in /mount/disc_images/*.iso; do >> DEST=3D$FILE >> DIRNAME=3D`basename ${FILE} .iso` >> echo ${DIRNAME} ${FILE} >> mkdir /mount/new_brighton/images/${DIRNAME} >> mount -t cd9660 /dev/`mdconfig -f ${FILE}` = /mount/new_brighton/images/${DIRNAME} >> done >>=20 >> Thanks to Polytropon and Chuck for their guidance. >=20 > Just a little note: >=20 > Make sure you're mounting the ISOs as "-o ro" to prevent > write access to them. If users don't have +w access to > the mounted directories, you can leave out this step. > Depending on the permissions used, this might corrupt > (or at least change) the image files which may not be > desired. >=20 > If you want to omit one external program call (one per > iteration step), use DIRNAME=3D${FILE%.iso} instead of the > `basename ${FILE} .iso` - although it's more obvious what > DIRNAME gets designated to. :-) I did try that once and it didn't strip the directory structure out so = when basename worked I didn't mess with it too much. If we have 100+ = ISOs to mount then I'll worry. From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 21:08:37 2011 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 A93BF106566B for ; Wed, 23 Mar 2011 21:08:37 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 67B178FC12 for ; Wed, 23 Mar 2011 21:08:37 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx01.qsc.de (Postfix) with ESMTP id 7ECB43CC7B; Wed, 23 Mar 2011 22:08:36 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2NL8Ztb001981; Wed, 23 Mar 2011 22:08:35 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 23 Mar 2011 22:08:35 +0100 From: Polytropon To: Ryan Coleman Message-Id: <20110323220835.7cb1514a.freebsd@edvax.de> In-Reply-To: References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> <20110323211605.4c893e70.freebsd@edvax.de> <2A377C8B-D9E6-4E60-834C-5BD7C03AA552@d3photography.com> <20110323214516.47d71026.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 21:08:37 -0000 On Wed, 23 Mar 2011 16:05:12 -0500, Ryan Coleman wrote: > I did try that once and it didn't strip the directory structure > out so when basename worked I didn't mess with it too much. I've just checked - you're right. While `basename` works as intended, ${%} can be applied to "pure filenames" only in this case. > If we have 100+ ISOs to mount then I'll worry. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 21:17:47 2011 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 540CE106564A for ; Wed, 23 Mar 2011 21:17:47 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout025.mac.com (asmtpout025.mac.com [17.148.16.100]) by mx1.freebsd.org (Postfix) with ESMTP id 3ADCD8FC0A for ; Wed, 23 Mar 2011 21:17:47 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp025.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LIJ00GJS4HEHH80@asmtp025.mac.com> for freebsd-questions@freebsd.org; Wed, 23 Mar 2011 14:17:39 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-03-23_08:2011-03-23, 2011-03-23, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1103230126 From: Chuck Swiger In-reply-to: <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> Date: Wed, 23 Mar 2011 14:17:38 -0700 Message-id: <6120FA66-E11C-4DFD-BF34-915807B3DA2B@mac.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> To: Ryan Coleman X-Mailer: Apple Mail (2.1084) Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images 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, 23 Mar 2011 21:17:47 -0000 On Mar 23, 2011, at 1:06 PM, Ryan Coleman wrote: > I am also trying to make the directories right before the attempt to mount the image (a 'duh' moment just now). > So I'd like to have just the filename, not the full path, made as a folder... Ah, yes-- add "mkdir -p /mount/office_files/images/${DEST}" before the mount command. Someone else mentioned a use of basedir command.... Regards, -- -Chuck From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 21:21:45 2011 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 67FEF106566C for ; Wed, 23 Mar 2011 21:21:45 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 28AC78FC15 for ; Wed, 23 Mar 2011 21:21:44 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx01.qsc.de (Postfix) with ESMTP id E73903CD58; Wed, 23 Mar 2011 22:21:43 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2NLLhYU002026; Wed, 23 Mar 2011 22:21:43 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 23 Mar 2011 22:21:43 +0100 From: Polytropon To: Chuck Swiger Message-Id: <20110323222143.d155ada6.freebsd@edvax.de> In-Reply-To: <6120FA66-E11C-4DFD-BF34-915807B3DA2B@mac.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> <6120FA66-E11C-4DFD-BF34-915807B3DA2B@mac.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Ryan Coleman , FreeBSD Mailing List Subject: Re: Automating mounting of ISO images X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 21:21:45 -0000 On Wed, 23 Mar 2011 14:17:38 -0700, Chuck Swiger wrote: > Ah, yes-- add "mkdir -p /mount/office_files/images/${DEST}" before the mount command. > Someone else mentioned a use of basedir command.... Prefix it with a test: [ -d /mount/office_files/images/${DEST} ] && mkdir... mount... so there will be no error if the script is started for the second time (and the directories still exist), means: create them only if not yet present. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 21:25:15 2011 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 EDE9B1065672 for ; Wed, 23 Mar 2011 21:25:15 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout030.mac.com (asmtpout030.mac.com [17.148.16.105]) by mx1.freebsd.org (Postfix) with ESMTP id D2B688FC08 for ; Wed, 23 Mar 2011 21:25:15 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp030.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LIJ00B7A4T70160@asmtp030.mac.com> for freebsd-questions@freebsd.org; Wed, 23 Mar 2011 14:24:44 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-03-23_08:2011-03-23, 2011-03-23, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1103230126 From: Chuck Swiger In-reply-to: <20110323222143.d155ada6.freebsd@edvax.de> Date: Wed, 23 Mar 2011 14:24:43 -0700 Message-id: <1ACB836D-CDF9-490D-A27D-C23B8F8167D8@mac.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> <6120FA66-E11C-4DFD-BF34-915807B3DA2B@mac.com> <20110323222143.d155ada6.freebsd@edvax.de> To: Polytropon X-Mailer: Apple Mail (2.1084) Cc: Ryan Coleman , FreeBSD Mailing List Subject: Re: Automating mounting of ISO images 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, 23 Mar 2011 21:25:16 -0000 On Mar 23, 2011, at 2:21 PM, Polytropon wrote: > Prefix it with a test: > > [ -d /mount/office_files/images/${DEST} ] && mkdir... > mount... > > so there will be no error if the script is started for the > second time (and the directories still exist), means: create > them only if not yet present. While I agree with this suggested change from the perspective of only doing work if you actually need to do it, note that "mkdir -p" doesn't return an error if the directory already exists. :-) Regards, -- -Chuck From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 21:29:59 2011 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 32400106564A for ; Wed, 23 Mar 2011 21:29:59 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id E639D8FC0C for ; Wed, 23 Mar 2011 21:29:58 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id C166A1DBF3; Wed, 23 Mar 2011 22:29:57 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2NLTvje002058; Wed, 23 Mar 2011 22:29:57 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 23 Mar 2011 22:29:56 +0100 From: Polytropon To: Chuck Swiger Message-Id: <20110323222956.c6b44ab3.freebsd@edvax.de> In-Reply-To: <1ACB836D-CDF9-490D-A27D-C23B8F8167D8@mac.com> References: <21012F71-5038-45F1-98C6-72A0B1239009@d3photography.com> <31D3BED1-7035-435F-B127-EFAAF6AFF076@mac.com> <20D9B390-3190-4865-A19E-BDEDC595E7A2@d3photography.com> <6120FA66-E11C-4DFD-BF34-915807B3DA2B@mac.com> <20110323222143.d155ada6.freebsd@edvax.de> <1ACB836D-CDF9-490D-A27D-C23B8F8167D8@mac.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: Automating mounting of ISO images X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 21:29:59 -0000 On Wed, 23 Mar 2011 14:24:43 -0700, Chuck Swiger wrote: > While I agree with this suggested change from the perspective > of only doing work if you actually need to do it, note that > "mkdir -p" doesn't return an error if the directory already > exists. :-) You're telling this to a man who checks the results of fopen(), fgets(), fprintf() and even of fclose(). :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 21:37:27 2011 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 444DF1065672 for ; Wed, 23 Mar 2011 21:37:27 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id E6D038FC08 for ; Wed, 23 Mar 2011 21:37:26 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id p2NLbCKh040954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Mar 2011 16:37:12 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.4/8.14.4) with ESMTP id p2NLbCQB002578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Mar 2011 16:37:12 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.4/8.14.4/Submit) id p2NLbBgL002577; Wed, 23 Mar 2011 16:37:11 -0500 (CDT) (envelope-from dan) Date: Wed, 23 Mar 2011 16:37:11 -0500 From: Dan Nelson To: Anton Yuzhaninov Message-ID: <20110323213711.GH44561@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 8.2-PRERELEASE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Wed, 23 Mar 2011 16:37:12 -0500 (CDT) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 Cc: freebsd-questions@freebsd.org Subject: Re: how to enable NCQ on Intel ESB2 AHCI SATA controller/ST31000340NS 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, 23 Mar 2011 21:37:27 -0000 In the last episode (Mar 22), Anton Yuzhaninov said: > How to enable NCQ on this controller: > ahci0@pci0:0:31:2: class=0x010601 card=0x808015d9 chip=0x26818086 rev=0x09 hdr=0x00 > vendor = 'Intel Corporation' > device = 'LSI LOGIC, 62089A2, LSISAS1068 B0, T 0620, WE 119200.1 (62089A2)' > class = mass storage > subclass = SATA > bar [10] = type I/O Port, range 32, base 0x18a0, size 8, enabled > bar [14] = type I/O Port, range 32, base 0x1874, size 4, enabled > bar [18] = type I/O Port, range 32, base 0x1878, size 8, enabled > bar [1c] = type I/O Port, range 32, base 0x1870, size 4, enabled > bar [20] = type I/O Port, range 32, base 0x1880, size 32, enabled > bar [24] = type Memory, range 32, base 0xd8700400, size 1024, enabled > cap 01[70] = powerspec 2 supports D0 D3 current D0 > cap 12[a8] = SATA Index-Data Pair > > dmesg: > ahci0: port 0x18a0-0x18a7,0x1874-0x1877,0x1878-0x187f,0x1870-0x1873,0x1880-0x189f mem 0xd8700400-0xd87007ff irq 19 at device 31.2 on pci0 > ahci0: [ITHREAD] > ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier supported If you do a verbose boot, you should get a couple more lines printed: ahci0: Caps: 64bit NCQ SNTF AL CLO 3Gbps PM PMD SSC PSC 32cmd CCC EM 6ports ahci0: Caps2: ahci0: EM Caps: ALHD XMT SMB LED If you see NCQ in your Caps line, then queueing should be supported by the controller. Looking at the ahci.c source, there is a quirk "AHCI_Q_NONCQ" that disables NCQ, but it it only used for VIA VT8251 chips. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 22:33:13 2011 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 B21A5106566C for ; Wed, 23 Mar 2011 22:33:13 +0000 (UTC) (envelope-from devnullaccount@yahoo.se) Received: from nm6.bullet.mail.ird.yahoo.com (nm6.bullet.mail.ird.yahoo.com [77.238.189.63]) by mx1.freebsd.org (Postfix) with SMTP id 1CC448FC1B for ; Wed, 23 Mar 2011 22:33:12 +0000 (UTC) Received: from [77.238.189.54] by nm6.bullet.mail.ird.yahoo.com with NNFMP; 23 Mar 2011 22:20:06 -0000 Received: from [212.82.108.122] by tm7.bullet.mail.ird.yahoo.com with NNFMP; 23 Mar 2011 22:20:06 -0000 Received: from [127.0.0.1] by omp1031.mail.ird.yahoo.com with NNFMP; 23 Mar 2011 22:20:06 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 481523.95918.bm@omp1031.mail.ird.yahoo.com Received: (qmail 27030 invoked by uid 60001); 23 Mar 2011 22:20:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.se; s=s1024; t=1300918806; bh=XYxveT3Ib5XW/sG5gx0aMXCmXrUVlA29tfPCvtl/e5Y=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=UX5FuL8Xq7QiAzogngZTmVhHY1143xPJJhULz6xCcHGA2tuJhmZUTqvHAPqv18GB1I8Iev273k6BMwNP+MLGX+orqFllxZzzh7eolO7dbLOExtEFfE5ynKlKsJNtTisNNXQ9H63UC4BAUWfWiUugYv4btTng9KWYPxGTBTJiW4s= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.se; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=myc70uKNT2Kfrfb1hGuulZ1wsYWwhTnB7yI0nboCpLfHVdPr36ZW2GzCUIFKtd68MoaqGiEKEba0e7s0WGY+6ykVYkBuhpD8fwu9Tb9cgDzJNcmmgHkdZoOJT1Xk8Ok8mwyGtQ3eFRwPSMIw1eE6pEqRWS7KYcfJezx6k6ffrtc=; Message-ID: <246940.22392.qm@web29003.mail.ird.yahoo.com> X-YMail-OSG: Ci4A1D8VM1lDWdifL7oOqV6sCAdnPUaFufGNvYfqH_lb6QV qL_BbdIgz1k.939yJRpfVoINEKbgr5qaX3F1cMjZHAueYijDJs_ZHlOpQVTR _Ad4uAhAGlpYPXRO7LOO2UWoehI1cNGHy1OyoeaPYEvnrqC.XhKygVUk27QB hELlCnMWYWEfGnzUin57arfi_4dViOEQfmedjUrl0XGa5GiS.4IeDYIT0d4O b4EiPOQj4MVqfXRqgvdtvmObmNQ4nVk7urGED7g0WOSu2VTcv.2rphr1LqRs zypwycP5PceuQHvaNI_umpAl1Rna5QC9TJ6KxYZ5qTokT8NhBeis- Received: from [213.113.1.56] by web29003.mail.ird.yahoo.com via HTTP; Wed, 23 Mar 2011 22:20:06 GMT X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.109.295617 Date: Wed, 23 Mar 2011 22:20:06 +0000 (GMT) From: Chris To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Bridge, dpcpd, sshd 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, 23 Mar 2011 22:33:13 -0000 Hi all, I have a server machine that I use as DHCP server, sshd login etc, and since I have multiple Ethernet interfaces on it, I would like to use two of those for the internal network to avoid adding one more ethernet switch for just one extra machine. DHCP should configure hosts on both those interfaces and all the hosts should be on the same subnet. So, I set up a bridge interface as per the FreeBSD handbook (ch. 31.5), but now dhcpd is refusing to start during boot as it claim that the "bridge0" interface doesn't exist. If I manually start dhcpd with the same parameters after the machine has come up, it will start and it will also work as expected and assign addresses to users connecting from teh bridge interface. sshd seems to do something similar, it refuses to start, but can manually be re-started later on. Is this some kinf of expected behavior, or does it sound like I'm doing something badly wrong? Can I force bride0 to be configured earlier in the boot so it is always there when the daemons start waking up? Configuration info below. TIA, Chris ===== rc.conf extract ==== dhcpd_enable="YES" dhcpd_ifaces="bridge0" cloned_interfaces="bridge0" ifconfig_bridge0="addm dc0 addm dc1 up" ifconfig_bridge0="inet 172.16.0.100/24" ifconfig_dc0="up" ifconfig_dc1="up" ===== sshd.conf extract ===== ListenAddress 172.16.0.100 === the dhcpd.conf is quite standard and does not say anything about the interfaces, that info is in rc.conf above ==== === /var/log/messages extract ==== dhcpd: bridge0: not found From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 00:55:41 2011 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 1A1401065672 for ; Thu, 24 Mar 2011 00:55:41 +0000 (UTC) (envelope-from DStaal@usa.net) Received: from mail.magehandbook.com (173-8-4-45-WashingtonDC.hfc.comcastbusiness.net [173.8.4.45]) by mx1.freebsd.org (Postfix) with ESMTP id C43EB8FC16 for ; Thu, 24 Mar 2011 00:55:39 +0000 (UTC) Received: from [192.168.1.50] (Mac-Pro.magehandbook.com [192.168.1.50]) by mail.magehandbook.com (Postfix) with ESMTP id 989E72845B; Wed, 23 Mar 2011 20:55:31 -0400 (EDT) Date: Wed, 23 Mar 2011 20:55:31 -0400 From: Daniel Staal To: Eric Beukes , freebsd-questions Message-ID: In-Reply-To: References: X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: Bandwith Management X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2011 00:55:41 -0000 --As of March 23, 2011 3:49:37 PM +0200, Eric Beukes is alleged to have said: > As well as how do I now what is actually used for the management of the > bandwith like ipfw, ect? --As for the rest, it is mine. As far as I know, the two most likely bandwidth management systems on a FreeBSD box are the two possible firewalls, ipfw or pf. Check to see which, if either, is set up, and then start reading man pages and config files. ;) Daniel T. Staal --------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. --------------------------------------------------------------- From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 00:56:25 2011 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 0CDE1106566C for ; Thu, 24 Mar 2011 00:56:25 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id BC9388FC22 for ; Thu, 24 Mar 2011 00:56:24 +0000 (UTC) Received: by qyk27 with SMTP id 27so7471039qyk.13 for ; Wed, 23 Mar 2011 17:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=AUgKzC4H5LZlRD3DLQmnCvYI0nIwBI9WF9hQG8c9548=; b=o4FQMGO5u8SmuUqexyRqeAn2NuUYivzAWkf6u/XwERAhz+dIFPa3cLJTrWW5HjoSa1 vJ/lT6OJ7EA0vT8AeEPG4VPBTQxwotFO8RdgnnNRVdFdgdkUjmZmJ8CYFS2oZlXzc5YZ u/HGsb1p9EmYb3wDSRdk+xSQKpqskbr1QwEvc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=AcmDL7w/vMz8GfhxKLOYhHiXseYszYcCNQVAnyuEJiqgMNDjQmlk3fCfzbtbnLN71k YyVuZyzhWnXfbVXPDrGfzakd9qiKqz91MlacYxhC9Q7olDQefR0HI3NiI8uc/P0Bmuwo osC5/SIAXecE/hZprF4J/GQN8uC8566pXJVGI= MIME-Version: 1.0 Received: by 10.224.126.221 with SMTP id d29mr6530794qas.201.1300928183893; Wed, 23 Mar 2011 17:56:23 -0700 (PDT) Received: by 10.224.37.66 with HTTP; Wed, 23 Mar 2011 17:56:23 -0700 (PDT) In-Reply-To: <246940.22392.qm@web29003.mail.ird.yahoo.com> References: <246940.22392.qm@web29003.mail.ird.yahoo.com> Date: Wed, 23 Mar 2011 17:56:23 -0700 Message-ID: From: Nerius Landys To: Chris Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Bridge, dpcpd, sshd 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: Thu, 24 Mar 2011 00:56:25 -0000 > > I have a server machine that I use as DHCP server, sshd login etc, and si= nce I have multiple Ethernet interfaces on it, I would like to use two of t= hose for the internal network to avoid adding one more ethernet switch for = just one extra machine. DHCP should configure hosts on both those interface= s and all the hosts should be on the same subnet. > > So, I set up a bridge interface as per the FreeBSD handbook (ch. 31.5), b= ut now dhcpd is refusing to start during boot as it claim that the "bridge0= " interface doesn't exist. If I manually start dhcpd with the same paramete= rs after the machine has come up, it will start and it will also work as ex= pected and assign addresses to users connecting from teh bridge interface. > > sshd seems to do something similar, it refuses to start, but can manually= be re-started later on. > > Is this some kinf of expected behavior, or does it sound like I'm doing s= omething badly wrong? Can I force bride0 to be configured earlier in the bo= ot so it is always there when the daemons start waking up? > > Configuration info below. > > TIA, > =A0Chris > > =3D=3D=3D=3D=3D rc.conf extract =3D=3D=3D=3D > dhcpd_enable=3D"YES" > dhcpd_ifaces=3D"bridge0" > cloned_interfaces=3D"bridge0" > ifconfig_bridge0=3D"addm dc0 addm dc1 up" > ifconfig_bridge0=3D"inet 172.16.0.100/24" > ifconfig_dc0=3D"up" > ifconfig_dc1=3D"up" > > =3D=3D=3D=3D=3D sshd.conf extract =3D=3D=3D=3D=3D > ListenAddress 172.16.0.100 > > =3D=3D=3D the dhcpd.conf is quite standard and does not say anything abou= t the interfaces, that info is in rc.conf above =3D=3D=3D=3D > > =3D=3D=3D /var/log/messages extract =3D=3D=3D=3D > =A0dhcpd: bridge0: not found I am running a very similar setup. I learned from my own experience that sometimes little things like the order of statements or what's exactly inside the statement affects the outcome. In any case after much tweaking I got my router to work, and here is my complete rc.conf. People on this mailing list have helped me come up with my rc.conf (thank you all): gateway_enable=3D"YES" hostname=3D"speedy.i" ifconfig_fxp2=3D"DHCP" cloned_interfaces=3D"bridge0" ifconfig_bridge0=3D"addm fxp0 addm fxp1 addm re0 addm ath0 up" ifconfig_fxp0=3D"up" ifconfig_fxp1=3D"up" ifconfig_re0=3D"up" ifconfig_ath0=3D"ssid speedy.i mode 11g mediaopt hostap channel 2 -bgscan u= p" ipv4_addrs_bridge0=3D"192.168.0.254/24" ipnat_enable=3D"YES" hostapd_enable=3D"YES" sshd_enable=3D"YES" named_enable=3D"YES" ntpdate_enable=3D"YES" ntpd_enable=3D"YES" linux_enable=3D"YES" dhcpd_enable=3D"YES" dhcpd_ifaces=3D"bridge0" apache22_enable=3D"YES" The ath0 stuff is for a wireless access point and is not needed in your case. The rest you can probably understand. fxp2 is the external facing interface, it's what is connecting to AT&T UVerse via DHCP. The line "ipv4_addrs_bridge0" is important and from what I recall it needs to come after the interfaces are brought up, just like in the above rc.conf. Of course there is also some dhcpd config that is not present here. If you still can't get it to work, try disabling dhcpd to have a static IP network, try getting that to work first. Then add dhcpd once the static network is working. From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 04:25:55 2011 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 1BD36106566C for ; Thu, 24 Mar 2011 04:25:55 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 6A2698FC0C for ; Thu, 24 Mar 2011 04:25:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id p2O4Pp25058971; Thu, 24 Mar 2011 15:25:52 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 24 Mar 2011 15:25:51 +1100 (EST) From: Ian Smith To: Chris In-Reply-To: <20110323223324.F39131065753@hub.freebsd.org> Message-ID: <20110324142413.K33521@sola.nimnet.asn.au> References: <20110323223324.F39131065753@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org, nlandys@gmail.com Subject: Re: Bridge, dpcpd, sshd 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: Thu, 24 Mar 2011 04:25:55 -0000 In freebsd-questions Digest, Vol 355, Issue 4, Message: 33 On Wed 23 Mar 2011 22:20:06 +0000 (GMT) Chris wrote: > I have a server machine that I use as DHCP server, sshd login etc, > and since I have multiple Ethernet interfaces on it, I would like to > use two of those for the internal network to avoid adding one more > ethernet switch for just one extra machine. DHCP should configure > hosts on both those interfaces and all the hosts should be on the > same subnet. > > So, I set up a bridge interface as per the FreeBSD handbook (ch. > 31.5), but now dhcpd is refusing to start during boot as it claim > that the "bridge0" interface doesn't exist. If I manually start dhcpd > with the same parameters after the machine has come up, it will start > and it will also work as expected and assign addresses to users > connecting from teh bridge interface. > > sshd seems to do something similar, it refuses to start, but can > manually be re-started later on. > > Is this some kinf of expected behavior, or does it sound like I'm > doing something badly wrong? Can I force bride0 to be configured > earlier in the boot so it is always there when the daemons start > waking up? > > Configuration info below. > > TIA, > Chris > > ===== rc.conf extract ==== > dhcpd_enable="YES" > dhcpd_ifaces="bridge0" > cloned_interfaces="bridge0" > ifconfig_bridge0="addm dc0 addm dc1 up" > ifconfig_bridge0="inet 172.16.0.100/24" There's your problem, and the response by Nerius Landys (read in the archives, as it hasn't arrived here in a digest yet :) would seem to indicate correct config - except that it has nothing to do with the order of assignments in rc.conf, but that your first ifconfig_bridge0 assignment is replaced, not added to, by the second. It's important to know that /etc/rc.conf is a sh script that is sourced (that is, executed inline) at the end of /etc/defaults/rc.conf and so its statements are executed sequentially. These statements just assign values to variables, and have no bearing at all on the order in which the rc.d system will actually use them; that depends on rcorder(8). Nerius has indicated use of e.g: > ipv4_addrs_bridge0="192.168.0.254/24" to assign address(es) to the bridge, avoiding your problem above. > ifconfig_dc0="up" > ifconfig_dc1="up" > > ===== sshd.conf extract ===== > ListenAddress 172.16.0.100 > > === the dhcpd.conf is quite standard and does not say anything about > the interfaces, that info is in rc.conf above ==== > > === /var/log/messages extract ==== > dhcpd: bridge0: not found Yes; at that time your bridge hadn't been created, ie it had no members. cheers, Ian From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 06:13:47 2011 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 06B74106566B for ; Thu, 24 Mar 2011 06:13:47 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id D868C8FC08 for ; Thu, 24 Mar 2011 06:13:46 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q2dW3-0001oi-Ce for freebsd-questions@freebsd.org; Wed, 23 Mar 2011 22:55:27 -0700 Date: Wed, 23 Mar 2011 22:55:27 -0700 (PDT) From: timp To: freebsd-questions@freebsd.org Message-ID: <1300946127368-4261792.post@n5.nabble.com> In-Reply-To: <246940.22392.qm@web29003.mail.ird.yahoo.com> References: <246940.22392.qm@web29003.mail.ird.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Bridge, dpcpd, sshd 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: Thu, 24 Mar 2011 06:13:47 -0000 My similar config ..... cloned_interfaces="bridge0" ifconfig_bridge0="addm wlan0 addm sk0 up" ifconfig_bridge0_alias0="ether f6:3f:1f:48:4d:97" ifconfig_bridge0_alias1="inet 172.16.254.1 netmask 255.255.255.0" ifconfig_sk0="up" ifconfig_wlan0="up" ..... Use alias# for setting inet on bridge0 -- View this message in context: http://freebsd.1045724.n5.nabble.com/Bridge-dpcpd-sshd-tp4259717p4261792.html Sent from the freebsd-questions mailing list archive at Nabble.com. From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 07:05:09 2011 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 893871065672 for ; Thu, 24 Mar 2011 07:05:09 +0000 (UTC) (envelope-from devnullaccount@yahoo.se) Received: from nm13-vm0.bullet.mail.ird.yahoo.com (nm13-vm0.bullet.mail.ird.yahoo.com [77.238.189.195]) by mx1.freebsd.org (Postfix) with SMTP id EE1BD8FC13 for ; Thu, 24 Mar 2011 07:05:08 +0000 (UTC) Received: from [77.238.189.234] by nm13.bullet.mail.ird.yahoo.com with NNFMP; 24 Mar 2011 07:05:07 -0000 Received: from [212.82.108.253] by tm15.bullet.mail.ird.yahoo.com with NNFMP; 24 Mar 2011 07:05:07 -0000 Received: from [127.0.0.1] by omp1018.mail.ird.yahoo.com with NNFMP; 24 Mar 2011 07:05:07 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 973897.35666.bm@omp1018.mail.ird.yahoo.com Received: (qmail 2546 invoked by uid 60001); 24 Mar 2011 07:05:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.se; s=s1024; t=1300950307; bh=W4/ZZKOmo5ZFjmqAd0mz8XsDucaNhUHMMKzVlIdrXhE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gA0cE9UgZHwM4u6yWD8SE1Qs+6MYSGrGgxmb8VsrUxY+zGMCORrkjXFkNRABuWMM37J1dBiDS+Wy+5yCl2FPUhBsp/fawOhJTIyDJZuXxvBoOmZ8e/rq8+/DVwsiza34oIEradecTsVp6kgBjOD+ge/jq6eklokuq6TBvr8iC/M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.se; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=wjViQOmlOTJrlkqiWkCxlZ/crTTZ2Y5My02R3O49eguQ1XFfjC0MLyDte7TJgkLT9dB1D16D4GJsgtNjkfd8T1YCpEOpPRTBoNAE9CEV7d1bgXQz+VBOBvF5GC7ZxoIvxwNngb7WTvuq/IlEdNM66Gf/ToDQ8jrd/C3qjMQ319U=; Message-ID: <731656.82698.qm@web29002.mail.ird.yahoo.com> X-YMail-OSG: l5Wi4ugVM1lcRnjcc8W.Wx0LhpoumxZBTQAc1ojqLK3zp0P OM7_FmqB7DKtLdc0yeDDVo5MTqOAvCvI1VSOcuemWH9b4WtgGsSoVwMh9LbK mW2LF3F2vvvojYxaT_ADA3vnv3m0VVMFaI.QSHh.LdeUs5bXNIklH5IdoJE7 _Nm46jF9Vk2wsVVeB1X67a163D3sYZaRtlgtrAPVpbfpSptID6wlw5R.R8lW PA1Rb2JgxIQix7mfmkuLtiBNet7zMXhrcrK4XZ.BI4fxhwmUrgZ2FdfPzI00 kniTpKjwlrY9MREYKr8euwDz0fHBhXVvAhI4dkN1SyWmnvgMV9zQq9BW2DY_ h8G0RS2hu0dWi.3CXIdDb9ZXtuGI- Received: from [213.113.1.56] by web29002.mail.ird.yahoo.com via HTTP; Thu, 24 Mar 2011 07:05:07 GMT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.109.295617 Date: Thu, 24 Mar 2011 07:05:07 +0000 (GMT) From: Chris To: Nerius Landys In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Bridge, dpcpd, sshd 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: Thu, 24 Mar 2011 07:05:09 -0000 --- On Thu, 3/24/11, Nerius Landys wrote: > From: Nerius Landys > Subject: Re: Bridge, dpcpd, sshd > To: "Chris" > Cc: freebsd-questions@freebsd.org > Date: Thursday, March 24, 2011, 1:56 AM > > > > I have a server machine that I use as DHCP server, > sshd login etc, and since I have multiple Ethernet > interfaces on it, I would like to use two of those for the > internal network to avoid adding one more ethernet switch > for just one extra machine. DHCP should configure hosts on > both those interfaces and all the hosts should be on the > same subnet. > > > > So, I set up a bridge interface as per the FreeBSD > handbook (ch. 31.5), but now dhcpd is refusing to start > during boot as it claim that the "bridge0" interface doesn't > exist. If I manually start dhcpd with the same parameters > after the machine has come up, it will start and it will > also work as expected and assign addresses to users > connecting from teh bridge interface. > > > > sshd seems to do something similar, it refuses to > start, but can manually be re-started later on. > > > > Is this some kinf of expected behavior, or does it > sound like I'm doing something badly wrong? Can I force > bride0 to be configured earlier in the boot so it is always > there when the daemons start waking up? > > > > Configuration info below. > > > > TIA, > > =A0Chris > > > > =3D=3D=3D=3D=3D rc.conf extract =3D=3D=3D=3D > > dhcpd_enable=3D"YES" > > dhcpd_ifaces=3D"bridge0" > > cloned_interfaces=3D"bridge0" > > ifconfig_bridge0=3D"addm dc0 addm dc1 up" > > ifconfig_bridge0=3D"inet 172.16.0.100/24" > > ifconfig_dc0=3D"up" > > ifconfig_dc1=3D"up" > > > > =3D=3D=3D=3D=3D sshd.conf extract =3D=3D=3D=3D=3D > > ListenAddress 172.16.0.100 > > > > =3D=3D=3D the dhcpd.conf is quite standard and does not say > anything about the interfaces, that info is in rc.conf above > =3D=3D=3D=3D > > > > =3D=3D=3D /var/log/messages extract =3D=3D=3D=3D > > =A0dhcpd: bridge0: not found >=20 > I am running a very similar setup.=A0 I learned from my > own experience > that sometimes little things like the order of statements > or what's > exactly inside the statement affects the outcome.=A0 In > any case after > much tweaking I got my router to work, and here is my > complete > rc.conf.=A0 People on this mailing list have helped me > come up with my > rc.conf (thank you all): >=20 > gateway_enable=3D"YES" > hostname=3D"speedy.i" > ifconfig_fxp2=3D"DHCP" > cloned_interfaces=3D"bridge0" > ifconfig_bridge0=3D"addm fxp0 addm fxp1 addm re0 addm ath0 > up" > ifconfig_fxp0=3D"up" > ifconfig_fxp1=3D"up" > ifconfig_re0=3D"up" > ifconfig_ath0=3D"ssid speedy.i mode 11g mediaopt hostap > channel 2 -bgscan up" > ipv4_addrs_bridge0=3D"192.168.0.254/24" > ipnat_enable=3D"YES" > hostapd_enable=3D"YES" > sshd_enable=3D"YES" > named_enable=3D"YES" > ntpdate_enable=3D"YES" > ntpd_enable=3D"YES" > linux_enable=3D"YES" > dhcpd_enable=3D"YES" > dhcpd_ifaces=3D"bridge0" > apache22_enable=3D"YES" >=20 > The ath0 stuff is for a wireless access point and is not > needed in > your case.=A0 The rest you can probably understand. >=20 > fxp2 is the external facing interface, it's what is > connecting to AT&T > UVerse via DHCP. >=20 > The line "ipv4_addrs_bridge0" is important and from what I > recall it > needs to come after the interfaces are brought up, just > like in the > above rc.conf. >=20 > Of course there is also some dhcpd config that is not > present here. >=20 > If you still can't get it to work, try disabling dhcpd to > have a > static IP network, try getting that to work first.=A0 > Then add dhcpd > once the static network is working. >=20 Hi Nerius and thanks for your reply. I tried changing rc.conf as per your suggestion and added the ipv4_addrs_ c= ommand, but it did not manage to set any address on the bridge anyway, and = I'm still getting errors starting the daemons because the bridge isn't crea= ted yet. And then I realized how long it has been since I upgraded that machine, it'= s actually running FreeBSD-6.0 (I'm a bit ashamed here...), so I would gues= s that it is so far outdated that these things aren't supposed to work. I g= uess I'll have to bite the bullet and reinstall the machine this weekend an= d try again with the same config and see if that makes it any better. I'll = come back to the list if that doesn't solve it. Thanks for the help /Chris =0A=0A=0A From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 14:38:16 2011 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 5E99E106564A for ; Thu, 24 Mar 2011 14:38:16 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 1A6F78FC14 for ; Thu, 24 Mar 2011 14:38:15 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q2lfv-0007ow-Ll for freebsd-questions@freebsd.org; Thu, 24 Mar 2011 15:38:11 +0100 Received: from gw1.masterhost.ru ([87.242.97.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Mar 2011 15:38:11 +0100 Received: from citrin by gw1.masterhost.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Mar 2011 15:38:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Anton Yuzhaninov Date: Thu, 24 Mar 2011 14:38:00 +0000 (UTC) Organization: Vega Lines: 19 Sender: Anton Yuzhaninov Message-ID: References: <20110323213711.GH44561@dan.emsphone.com> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: gw1.masterhost.ru X-Comment-To: Dan Nelson User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/9.0-CURRENT (i386)) Subject: Re: how to enable NCQ on Intel ESB2 AHCI SATA?controller/ST31000340NS 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: Thu, 24 Mar 2011 14:38:16 -0000 On Wed, 23 Mar 2011 16:37:11 -0500, Dan Nelson wrote: DN> If you do a verbose boot, you should get a couple more lines printed: DN> DN> ahci0: Caps: 64bit NCQ SNTF AL CLO 3Gbps PM PMD SSC PSC 32cmd CCC EM 6ports DN> ahci0: Caps2: DN> ahci0: EM Caps: ALHD XMT SMB LED DN> DN> If you see NCQ in your Caps line, then queueing should be supported by the DN> controller. Looking at the ahci.c source, there is a quirk "AHCI_Q_NONCQ" DN> that disables NCQ, but it it only used for VIA VT8251 chips. It seems to be NCQ not supported by this controller: ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier supported ahci0: Caps: 64bit ALP AL 3Gbps PM SSC PSC 32cmd 6ports ahci0: Caps2: -- WBR, Anton Yuzhaninov From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 15:07:37 2011 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 A13C2106566B for ; Thu, 24 Mar 2011 15:07:37 +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 600EF8FC08 for ; Thu, 24 Mar 2011 15:07:37 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p2OF7WQU089320; Thu, 24 Mar 2011 09:07:32 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p2OF7WnK089317; Thu, 24 Mar 2011 09:07:32 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 24 Mar 2011 09:07:32 -0600 (MDT) From: Warren Block To: Steven Friedrich In-Reply-To: <201103231607.53579.FreeBSD@insightbb.com> Message-ID: References: <201103220226.22277.FreeBSD@insightbb.com> <4D88499D.2000408@herveybayaustralia.com.au> <201103231607.53579.FreeBSD@insightbb.com> 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.2.6 (wonkity.com [127.0.0.1]); Thu, 24 Mar 2011 09:07:32 -0600 (MDT) Cc: freebsd-questions@freebsd.org, Da Rock Subject: Re: Kodak C195 digital camera appears to affect WD on usb 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: Thu, 24 Mar 2011 15:07:37 -0000 On Wed, 23 Mar 2011, Steven Friedrich wrote: > I know I wasn't clear in my original mail, but after this AutoSense failed, I > get LOTS of g_vfs_done errors. I don't get them if I don't plu in the camera > >> Mar 22 01:12:21 laptop2 kernel: (da0:umass-sim0:0:0:0): AutoSense failed >> Mar 22 01:12:21 laptop2 kernel: g_vfs_done():da0s1f[WRITE(offset=5780930560, >> length=16384)]error = 5 > ^^^^^^^^^^^^^^ > Lot's and lot's of these. > >> Da Rock said: > It appears to be a routine attempt to determine a usb device by devd. > Assuming you are trying to access the camera, are you able to mount it? > > I just got the camera a week ago. When I first connected it, it would > automatically create da1-da3. Now it doesn't. > > It used to get detected with gphoto2 --auto-detect as a Generic PTP camera. > > I don't know if I changed a camera setting to cause any new behaviour, but I > looked at them. No setting for mode like PTP. Setup/Computer Connection menu in the camera. According to the really vague online manual, anyway. From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 15:56:36 2011 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 05782106566C for ; Thu, 24 Mar 2011 15:56:36 +0000 (UTC) (envelope-from mkearney@nvita.org) Received: from squirrelserver.nvita.org (nvita.org [173.13.234.121]) by mx1.freebsd.org (Postfix) with ESMTP id B97378FC13 for ; Thu, 24 Mar 2011 15:56:35 +0000 (UTC) Received: from SQUIRRELSERVER.nvita.org ([192.168.0.3]) by SQUIRRELSERVER.nvita.org ([192.168.0.3]) with mapi; Thu, 24 Mar 2011 12:07:01 -0400 From: "Michael J. Kearney" To: "freebsd-questions@freebsd.org" Date: Thu, 24 Mar 2011 12:07:00 -0400 Thread-Topic: Kodak C195 digital camera appears to affect WD on usb Thread-Index: AcvqNrRJBevPh1egSDu2Tbz8FNyzQgABs02e Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: Kodak C195 digital camera appears to affect WD on usb 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: Thu, 24 Mar 2011 15:56:36 -0000 Lol .gov i would guess the kernel will hang if a questionable usb device co= ntroler is present. .. i have a similar problem with a dell poweredge serve= r... so if like so many uptime concious users logon on to this machine, the= y would have the same problem. Bummer. Have you tried crtl-alt-backspace? I= would advise logging onto xwindows from another machine first thereby isol= ating the problem. Lol .mil Warren Block wrote: On Wed, 23 Mar 2011, Steven Friedrich wrote: > I know I wasn't clear in my original mail, but after this AutoSense faile= d, I > get LOTS of g_vfs_done errors. I don't get them if I don't plu in the ca= mera > >> Mar 22 01:12:21 laptop2 kernel: (da0:umass-sim0:0:0:0): AutoSense failed >> Mar 22 01:12:21 laptop2 kernel: g_vfs_done():da0s1f[WRITE(offset=3D57809= 30560, >> length=3D16384)]error =3D 5 > ^^^^^^^^^^^^^^ > Lot's and lot's of these. > >> Da Rock said: > It appears to be a routine attempt to determine a usb device by devd. > Assuming you are trying to access the camera, are you able to mount it? > > I just got the camera a week ago. When I first connected it, it would > automatically create da1-da3. Now it doesn't. > > It used to get detected with gphoto2 --auto-detect as a Generic PTP came= ra. > > I don't know if I changed a camera setting to cause any new behaviour, bu= t I > looked at them. No setting for mode like PTP. Setup/Computer Connection menu in the camera. According to the really vague online manual, anyway. _______________________________________________ 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 Thu Mar 24 15:59:02 2011 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 49FA3106566B for ; Thu, 24 Mar 2011 15:59:02 +0000 (UTC) (envelope-from edwinlculp@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 04EA98FC13 for ; Thu, 24 Mar 2011 15:59:01 +0000 (UTC) Received: by vxc34 with SMTP id 34so122068vxc.13 for ; Thu, 24 Mar 2011 08:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=GjqICa/Q6hNJJ2syBRFge/9Zf34S57p6uSv0irJntUc=; b=rFVgxtNJ+qD8pXEy2qD8OKOM7M9XIrsn2jC03sqe2uljCCQ0eeIPicU/O4DLMPdjL8 9kBGGKJSMsz7PC6/omt/L5cnQli6TOCIbcvrVsGCpSYArhypZV722ks+bQQtXy7NsDfu xXtY9cqlNbUEnS1gciJRPnPVAYn/9Zl90oROI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=DqeyaNtCai1DSuboDH5YIzz1sM1RK6AwtpQCJb+krB3U46im6Pk5HE1PDvxnipDonw frAmnkMHH75jOaInjIhnrvbvq9AtI8bAbAEyOedXWIY1TVzzwkgWLvcX6p8TIW/sV4a5 Teq0U7sx2Wzf5k8TW64o8SaWU4qI8c4jvMddU= MIME-Version: 1.0 Received: by 10.220.85.203 with SMTP id p11mr1824698vcl.274.1300982341220; Thu, 24 Mar 2011 08:59:01 -0700 (PDT) Received: by 10.220.186.5 with HTTP; Thu, 24 Mar 2011 08:59:01 -0700 (PDT) In-Reply-To: References: Date: Thu, 24 Mar 2011 09:59:01 -0600 Message-ID: From: "Edwin L. Culp W." To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Bandwith Management 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: Thu, 24 Mar 2011 15:59:02 -0000 2011/3/23 Daniel Staal : > --As of March 23, 2011 3:49:37 PM +0200, Eric Beukes is alleged to have > said: > >> As well as how do I now what is actually used for the management of the >> bandwith like ipfw, ect? > > --As for the rest, it is mine. > > As far as I know, the two most likely bandwidth management systems on a > FreeBSD box are the two possible firewalls, ipfw or pf. =A0Check to see w= hich, > if either, is set up, and then start reading man pages and config files. = =A0;) > > Daniel T. Staal > > --------------------------------------------------------------- > This email copyright the author. =A0Unless otherwise noted, you > are expressly allowed to retransmit, quote, or otherwise use > the contents for non-commercial purposes. =A0This copyright will > expire 5 years after the author's death, or in 30 years, > whichever is longer, unless such a period is in excess of > local copyright law. > --------------------------------------------------------------- > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > IIRC you can also use dummynet with PF for a third option. ed From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 16:28:04 2011 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 D67F21065672 for ; Thu, 24 Mar 2011 16:28:04 +0000 (UTC) (envelope-from four.harrisons@googlemail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 696C78FC21 for ; Thu, 24 Mar 2011 16:28:04 +0000 (UTC) Received: by eyg7 with SMTP id 7so104629eyg.13 for ; Thu, 24 Mar 2011 09:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:message-id:subject:from:to:cc:date:mime-version :content-type:content-transfer-encoding; bh=YfqnnHOtRnoasxh2w0GD089aeo1eKs4qHZZ6XQNwZrA=; b=SqT+MshDBEG5nS31ew3M0mfQQq9ay4LhOADWgeDB057+kir5F97Eh4R2Q8V6Mb2nhT 7Ewen3MBX4cRXH3FybH2uQE+KHLIfBtH0w64uU6MvC4Ff6cEjAHzXof+lsvk6PZVSsaV 8HBy2nrg/GQFzs09Wd7cEb2wORqldOGzYqzBg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:subject:from:to:cc:date:mime-version:content-type :content-transfer-encoding; b=EoiZ+c5e5ioa/9R9qvdOmvy+rUXDsLjgyUCix5Amf66aQ4KCUjZw3rPjFdPDAJ/D1n dj5YRJh0P6BK4RpswX9YfOewg62ITO1I8SUH8r7/mKwODUxXc7dOfYR7S5AnS3qdVUZU 6sDLnk3liS1AWI4gPC05ekEdGJUuLV/RF5cwM= Received: by 10.223.98.141 with SMTP id q13mr371298fan.96.1300984083348; Thu, 24 Mar 2011 09:28:03 -0700 (PDT) Received: from ecs ([213.8.162.222]) by mx.google.com with ESMTPS id o17sm35451fal.25.2011.03.24.09.28.01 (version=SSLv3 cipher=OTHER); Thu, 24 Mar 2011 09:28:02 -0700 (PDT) Message-ID: <4d8b7112.9155df0a.0c42.049b@mx.google.com> From: four.harrisons@googlemail.com To: editor@d3photography.com Date: Wed, 23 Mar 2011 19:48:49 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Automating mounting of ISO images 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: Thu, 24 Mar 2011 16:28:05 -0000 -----BEGIN PGP SIGNED MESSAGE-----=0D=0AHash: SHA1=0D=0A=0D=0AOn 3/23/11 = 2:49 PM, Ryan Coleman wrote:=0D=0A> I have a folder full of ISOs that we'= re sharing on the network instead of having the discs available (seems li= ke a good idea, right?)=0D=0A>=20=0D=0A> But I want to automate the proce= ss on boot instead of having to write a static script to do the work.=0D= =0A>=20=0D=0A> Disc images are located in /mount/disc_images/ (all are IS= Os)=0D=0A> They need to mount into /mount/office_files/images/FILENAME [w= ithout the .iso extension]=0D=0A>=20=0D=0A> How can I do this? I've alway= s been given these types of scripts in the past at an old job but I don't= have access to those examples anymore.=0D=0A=0D=0AHi Ryan,=0D=0A=0D=0AYo= u can put something like this in /etc/rc.conf to get the device files=0D=0A= created automatically:=0D=0A=0D=0Amdconfig_md0=3D"-t vnode -f /mount/disc= _images/Image1.iso"=0D=0Amdconfig_md1=3D"-t vnode -f /mount/disc_images/I= mage2.iso"=0D=0Amdconfig_md2=3D"-t vnode -f /mount/disc_images/Image3.iso= "=0D=0A=0D=0ABecause these devices (/dev/md0, /dev/md1, /dev/md2) will be= created=0D=0Abefore /etc/fstab is processed, you can then add the follow= ing entries=0D=0Ain that file:=0D=0A=0D=0A/dev/md0 /mount/office_files= /images/Image1 cd9660 ro 0 0=0D=0A/dev/md1 /mount/office_f= iles/images/Image2 cd9660 ro 0 0=0D=0A/dev/md2 /mount/offi= ce_files/images/Image3 cd9660 ro 0 0=0D=0A=0D=0ACheck out the= rc(8) man page (http://bit.ly/fuwn5n) for more information=0D=0Aabout ho= w the startup scripts work, as well as the one that processes=0D=0Athe de= vice creation directives above - /etc/rc.d/mdconfig=0D=0A=0D=0AFinally, y= ou can always add your own custom startup scripts to=0D=0A/usr/local/etc/= rc.d if you need to do something that the standard=0D=0Astartup scripts c= an't handle.=0D=0A=0D=0AHope that helps,=0D=0AGreg=0D=0A- --=20=0D=0AGreg= Larkin=0D=0A=0D=0Ahttp://www.FreeBSD.org/ - The Power To Serve= =0D=0Ahttp://www.sourcehosting.net/ - Ready. Set. Code.=0D=0Ahttp://t= witter.com/sourcehosting/ - Follow me, follow you=0D=0A-----BEGIN PGP SIG= NATURE-----=0D=0AVersion: GnuPG v1.4.11 (Darwin)=0D=0AComment: Using GnuP= G with Mozilla - http://enigmail.mozdev.org/=0D=0A=0D=0AiEYEARECAAYFAk2KT= n4ACgkQ0sRouByUApCAiwCfZzO8jnaKIFxuOoZotU8Ac49I=0D=0AMMIAni1KMFDqLe1YeMaS= /LZUsgrV1PfY=0D=0A=3DJUk3=0D=0A-----END PGP SIGNATURE-----=0D=0A_________= ______________________________________=0D=0Afreebsd-questions@freebsd.org= mailing list=0D=0Ahttp://lists.freebsd.org/mailman/listinfo/freebsd-ques= tions=0D=0ATo unsubscribe, send any mail to "freebsd-questions-unsubscrib= e@freebsd.org"=0D=0A From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 16:28:09 2011 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 4782B1065672 for ; Thu, 24 Mar 2011 16:28:09 +0000 (UTC) (envelope-from four.harrisons@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id D0FD38FC08 for ; Thu, 24 Mar 2011 16:28:08 +0000 (UTC) Received: by fxm11 with SMTP id 11so244688fxm.13 for ; Thu, 24 Mar 2011 09:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:message-id:subject:from:to:cc:date:mime-version :content-type:content-transfer-encoding; bh=Djs/jq4kSbcrhVa5chKgDLxXFNix2EfDuTYEazA7xNw=; b=BMB0nMiCTs/fLYTnQFK4P2VZnFtbKb4UGj734jwRjEBhTlirSCHOeb3OknQ7kzGf2Y 7lxfO+m95hNnmEPCTerVWk5LqtB4cll14MQsVZTFd2dxKetbRDXY0OS2KUj7N9tfgInp S0jEYa69R08ByLqGq8l1K/IrTGBzRImxTR8Ok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:subject:from:to:cc:date:mime-version:content-type :content-transfer-encoding; b=JDTFqjOwlR8Rkp194FLc+FB8b0SNTadY++F70Nu0JS8KkP3q5BaKjHU/RUsQLVtz+G I9XQHkAkbkLX205B0xNdp2wGzWqvQjjHPyOvlE1Rr+3gAnBuPAhs3MXZSypJLpI+gpsC J/7hrfAw4YHfH5FHj6pjwCAPPjvCGhS5nqDoM= Received: by 10.223.6.11 with SMTP id 11mr6589228fax.99.1300984079702; Thu, 24 Mar 2011 09:27:59 -0700 (PDT) Received: from ecs ([213.8.162.222]) by mx.google.com with ESMTPS id 17sm36346far.19.2011.03.24.09.27.57 (version=SSLv3 cipher=OTHER); Thu, 24 Mar 2011 09:27:58 -0700 (PDT) Message-ID: <4d8b710e.9104df0a.595e.04b7@mx.google.com> From: four.harrisons@googlemail.com To: editor@d3photography.com Date: Wed, 23 Mar 2011 19:21:32 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Automating mounting of ISO images 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: Thu, 24 Mar 2011 16:28:09 -0000 On Wed, 23 Mar 2011 13:49:46 -0500, Ryan Coleman wrote:=0D=0A> I have a folder full of ISOs that we're sharing on the=0D= =0A> network instead of having the discs available (seems=20=0D=0A> like = a good idea, right?)=0D=0A=0D=0APlease use the correct terminology: FreeB= SD (as any UNIX=0D=0Aoperating systems) calls them DIRECTORIES. "Folders"= is=0D=0Asomething else, it's not equivalent to a directory, so=0D=0A"fol= ders" is wrong.=0D=0A=0D=0A=0D=0A=0D=0A> But I want to automate the proce= ss on boot instead of=0D=0A> having to write a static script to do the w= ork.=0D=0A>=20=0D=0A> Disc images are located in /mount/disc_images/ (all= are ISOs)=0D=0A> They need to mount into /mount/office_files/images/FILE= NAME=0D=0A> [without the .iso extension]=0D=0A>=20=0D=0A> How can I do th= is? I've always been given these types of=0D=0A> scripts in the past at a= n old job but I don't have access=0D=0A> to those examples anymore.=0D=0A= =0D=0ASomething like this (not even tested, but quite verbose and=0D=0Aun= elegant) should work:=0D=0A=0D=0A#!/bin/sh=0D=0ANODE=3D0=0D=0Afor IMAGE i= n /mount/disc_images/*.iso; do=0D=0A=09mdconfig -a -t vnode -u $NODE -f $= IMAGE=0D=0A=09mount -t cd9660 -o ro /dev/md$NODE /mount/office_files/imag= es/`basename $IMAGE .iso`=0D=0A=09NODE=3D`expr $NODE + 1`=0D=0Adone=0D=0A= =0D=0AThis of course assumes that you have PROPER file names. In=0D=0Acas= e the ISO file names contain special characters, attention=0D=0Ahas to be= paid for quoting and escaping. Worth reading:=0D=0A=0D=0Ahttp://www.dwhe= eler.com/essays/filenames-in-shell.html=0D=0A=0D=0Ahttp://www.dwheeler.co= m/essays/fixing-unix-linux-filenames.html=0D=0A=0D=0AAfter reading it, yo= u'll easily recognize that I did it wrong=0D=0Ain the suggestive script. = :-)=0D=0A=0D=0A=0D=0A=0D=0AI'm not sure if you can mount from ISO files d= irectly, but=0D=0Amaybe you can try that too.=0D=0A=0D=0ARemember unmount= ing the files when not in use (scripted: umount=0D=0Aand mdconfig -d).=0D= =0A=0D=0A=0D=0A=0D=0A=0D=0A--=20=0D=0APolytropon=0D=0AMagdeburg, Germany=0D= =0AHappy FreeBSD user since 4.0=0D=0AAndra moi ennepe, Mousa, ...=0D=0A__= _____________________________________________=0D=0Afreebsd-questions@free= bsd.org mailing list=0D=0Ahttp://lists.freebsd.org/mailman/listinfo/freeb= sd-questions=0D=0ATo unsubscribe, send any mail to "freebsd-questions-uns= ubscribe@freebsd.org"=0D=0A From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 17:27:46 2011 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 F2FCA106566B for ; Thu, 24 Mar 2011 17:27:46 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from fileserver.home.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) by mx1.freebsd.org (Postfix) with ESMTP id 660F48FC08 for ; Thu, 24 Mar 2011 17:27:46 +0000 (UTC) Received: from fileserver.home.qeng-ho.org (localhost [127.0.0.1]) by fileserver.home.qeng-ho.org (8.14.4/8.14.4) with ESMTP id p2OHRh5a084117 for ; Thu, 24 Mar 2011 17:27:44 GMT (envelope-from freebsd@qeng-ho.org) Message-ID: <4D8B7F0F.2010000@qeng-ho.org> Date: Thu, 24 Mar 2011 17:27:43 +0000 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.14) Gecko/20110303 Thunderbird/3.1.8 MIME-Version: 1.0 To: FreeBSD-Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Recommendations for 3D modelling code for 3D printing? 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: Thu, 24 Mar 2011 17:27:47 -0000 I need to make some parts using 3D printing, and was wondering what software I should use to do the modelling. Does anyone have any experience and/or recommendations about this? If it matters, I'll probably be using shapeways.com to do the actual printing. From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 17:52:41 2011 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 DB39C1065672 for ; Thu, 24 Mar 2011 17:52:41 +0000 (UTC) (envelope-from freebsd.user@seibercom.net) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8BEAA8FC18 for ; Thu, 24 Mar 2011 17:52:41 +0000 (UTC) Received: by yxl31 with SMTP id 31so132474yxl.13 for ; Thu, 24 Mar 2011 10:52:40 -0700 (PDT) Received: by 10.90.9.34 with SMTP id 34mr7952616agi.153.1300989160641; Thu, 24 Mar 2011 10:52:40 -0700 (PDT) Received: from scorpio.seibercom.net (twdp-174-109-142-001.nc.res.rr.com [174.109.142.1]) by mx.google.com with ESMTPS id c4sm143344ana.23.2011.03.24.10.52.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Mar 2011 10:52:40 -0700 (PDT) Received: from scorpio (zeus [192.168.1.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: FreeBSD.user@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 39C0FE54809 for ; Thu, 24 Mar 2011 13:52:38 -0400 (EDT) Date: Thu, 24 Mar 2011 13:52:36 -0400 From: Jerry To: FreeBSD Message-ID: <20110324135236.77d5dc3a@scorpio> In-Reply-To: <4D8B7F0F.2010000@qeng-ho.org> References: <4D8B7F0F.2010000@qeng-ho.org> Organization: seibercom.net X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; amd64-portbld-freebsd8.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEUeH4oAAI3//v8LDHmw s8gyNZ/b3ej7+vn+/v////+PjIc8Plaj/TnQAAACNElEQVQ4jaXUvW/aQBQAcFtKGZLFT+YY 3D1SR9SKoRMncE3IggU4kicGi1JYOgQwyYrgnLlSzhsoNkTuVJEp+ef6ztiAoV3aJ+QPfufn s987S/5fQvoXYPjztmfc514Ks+5JfGUCfrzt4+VabF+jwEV4DGEXN8N4p16sPLxHX07/V3qX yfF5D2H6K4V8j9NkyAphvkjBembD5PDFk3zeTzP1jcksyaV9w+d4ELmUoOp8N2p8uQVyhTAT uawnKNH2mie5lJp48mscUcbJUvg0mR6APwAoye9AMyWozY4gAh0vcxa5FJ4TKCuODESWtfkB 8AEQSupUXNIYH8FSC2w8X3eMBNbbVJpJ7MgECO5yJ9DUEWCYkzNAlsRsgwLQ1GkWqELbkDOh 1bUzoHagYkNh9MXlK/MQoA42gTxz2bhPM2DJedm8MZx6cNfJgEZJ5cmwPp5FZ/Ye8O2qTrFV dgOrHkZRBoheJiGrRquwAhnQ6GeTePPerWVmQelAQ5lwNqtvQd2lcooAV74/zR1BIRS19fy5 ru+B/8ReW9pYKMPjt609zDaitHHTGOO+Zu7gHvsKE7XbeE1QVuJXomIFuZgUJdXQdhpqEELc /e8RLjfi+cQ01yMdWot8UcCVxEWHEkcUrsDGuhaIEoM9kfgAR6jxHcmEV7tNURAl8KTHN9iF McKGFHGO62O62UMpbmlVuogQ7ndL8zXCiLeBy3xpfrqaXS/+AHDG4o8AvhuPeezD/3xL/hy/ Adjlg2odglF2AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: Recommendations for 3D modelling code for 3D printing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2011 17:52:41 -0000 On Thu, 24 Mar 2011 17:27:43 +0000 Arthur Chance articulated: > I need to make some parts using 3D printing, and was wondering what > software I should use to do the modelling. Does anyone have any > experience and/or recommendations about this? If it matters, I'll > probably be using shapeways.com to do the actual printing. Perhaps this URL might prove useful: http://en.wikipedia.org/wiki/3D_computer_graphics_software For a comparison: http://en.wikipedia.org/wiki/Comparison_of_3D_computer_graphics_software -- Jerry ✌ FreeBSD.user@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 17:56:03 2011 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 B8F6D106566C for ; Thu, 24 Mar 2011 17:56:03 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 8612E8FC1A for ; Thu, 24 Mar 2011 17:56:03 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 94D9AE80473; Thu, 24 Mar 2011 10:56:02 -0700 (PDT) Date: Thu, 24 Mar 2011 10:56:02 -0700 From: Gary Kline To: Ryan Coleman Message-ID: <20110324175602.GC15209@thought.org> References: <20110323164504.GA25317@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24 years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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: Thu, 24 Mar 2011 17:56:03 -0000 On Wed, Mar 23, 2011 at 11:47:16AM -0500, Ryan Coleman wrote: > Do you have an error for it? > > If not... add after the first error_reporting(9); > > And see what it reports. There were no errors that should up when i launched this script on www.thought.org; it simply failed; no output. ...Another php script that output a random string on the same page did have errors. I thought i would try this simpler script first. will add the err line and retry, tx, gary > > -- > Ryan > PHP dev. > > > On Mar 23, 2011, at 11:45 AM, Gary Kline wrote: > > > > > Guys, > > > > Can any of you php hackers tell me why this simple self-hacked > > counter bomb? > > > > appended. > > > > tia. > > > > -- > > Gary Kline kline@thought.org http://www.thought.org Public Service Unix > > Journey Toward the Dawn, E-Book: http://www.thought.org > > The 7.98a release of Jottings: http://jottings.thought.org > > > > > > > > > > > $directory="./countdir/"; > > > > if (! (file_exists( ($directory.$file)) )) > > { > > if (! ($fp = fopen( ($directory.$file), "w")) ) > > { > > echo "Can't create file '$directory.$file'"; > > exit(1); > > } > > else > > { > > fseek($fp,0); > > fputs($fp, $count); > > fputs($fp, "\n"); > > fputs($fp, $file); > > fclose($fp); > > } > > } > > > > if (file_exists( ($directory.$file))) > > { > > $fp = fopen($directory.$file, "r+"); > > flock($fp, 1); > > $count = fgets($fp, 4096); > > $count += 1; > > fseek($fp,0); > > fputs($fp, $count); > > fputs($fp, "\n"); > > fputs($fp, $file); > > > > flock($fp, 3); > > fclose($fp); > > ?> > > > >
> > > > > > > > > print " there have been "; > > ?> > > > > > > > > > > > print $count; > > ?> > > > > > > > > > print "hits\n"; > > ?> > > > >
> > > > > > > } > > else > > { > > print "Can't find file, check '$directory.$file'\n"; > > } > > > > ?> > > > > _______________________________________________ > > 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 Journey Toward the Dawn, E-Book: http://www.thought.org The 7.98a release of Jottings: http://jottings.thought.org From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 17:58:37 2011 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 803B0106564A for ; Thu, 24 Mar 2011 17:58:37 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 309748FC16 for ; Thu, 24 Mar 2011 17:58:36 +0000 (UTC) Received: from mr16.lnh.mail.rcn.net ([207.172.157.36]) by smtp02.lnh.mail.rcn.net with ESMTP; 24 Mar 2011 13:58:37 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr16.lnh.mail.rcn.net (MOS 4.2.3-GA) with ESMTP id AZB46584; Thu, 24 Mar 2011 13:58:35 -0400 Received-SPF: None identity=pra; client-ip=209.6.91.204; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="roberthuff@rcn.com"; x-conformance=sidf_compatible Received-SPF: None identity=mailfrom; client-ip=209.6.91.204; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="roberthuff@rcn.com"; x-conformance=sidf_compatible Received-SPF: None identity=helo; client-ip=209.6.91.204; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="postmaster@jerusalem.litteratus.org.litteratus.org"; x-conformance=sidf_compatible Received: from 209-6-91-204.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.91.204]) by smtp01.lnh.mail.rcn.net with ESMTP; 24 Mar 2011 13:58:35 -0400 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19851.34378.429094.90642@jerusalem.litteratus.org> Date: Thu, 24 Mar 2011 13:58:34 -0400 To: Arthur Chance In-Reply-To: <4D8B7F0F.2010000@qeng-ho.org> References: <4D8B7F0F.2010000@qeng-ho.org> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr16.lnh.mail.rcn.net) Cc: FreeBSD-Questions Subject: Recommendations for 3D modelling code for 3D printing? 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: Thu, 24 Mar 2011 17:58:37 -0000 Arthur Chance writes: > I need to make some parts using 3D printing, and was wondering > what software I should use to do the modelling. Does anyone have > any experience and/or recommendations about this? If it matters, > I'll probably be using shapeways.com to do the actual printing. I was under the impression the 3D printers used proprietary software/formats. Am I mistaken? Robert Huff From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 18:18:36 2011 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 282221065675 for ; Thu, 24 Mar 2011 18:18:36 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from fileserver.home.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) by mx1.freebsd.org (Postfix) with ESMTP id A3C6E8FC13 for ; Thu, 24 Mar 2011 18:18:35 +0000 (UTC) Received: from fileserver.home.qeng-ho.org (localhost [127.0.0.1]) by fileserver.home.qeng-ho.org (8.14.4/8.14.4) with ESMTP id p2OIIXbU084932; Thu, 24 Mar 2011 18:18:34 GMT (envelope-from freebsd@qeng-ho.org) Message-ID: <4D8B8AF9.4010109@qeng-ho.org> Date: Thu, 24 Mar 2011 18:18:33 +0000 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.14) Gecko/20110303 Thunderbird/3.1.8 MIME-Version: 1.0 To: Robert Huff References: <4D8B7F0F.2010000@qeng-ho.org> <19851.34378.429094.90642@jerusalem.litteratus.org> In-Reply-To: <19851.34378.429094.90642@jerusalem.litteratus.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD-Questions Subject: Re: Recommendations for 3D modelling code for 3D printing? 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: Thu, 24 Mar 2011 18:18:36 -0000 On 03/24/11 17:58, Robert Huff wrote: > > Arthur Chance writes: > >> I need to make some parts using 3D printing, and was wondering >> what software I should use to do the modelling. Does anyone have >> any experience and/or recommendations about this? If it matters, >> I'll probably be using shapeways.com to do the actual printing. > > I was under the impression the 3D printers used proprietary > software/formats. > Am I mistaken? > As far as I can tell, STL is accepted by most (if by printers you mean 3D printing companies - if you mean printing machines, I have no idea but using a company to do the actual printing means it's not my problem). Shapeways accepts STL, Collada, VRML and X3D files. From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 18:18:52 2011 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 DE1BE1065670 for ; Thu, 24 Mar 2011 18:18:51 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 997728FC14 for ; Thu, 24 Mar 2011 18:18:51 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id E3D382639B5E; Thu, 24 Mar 2011 13:19:16 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3rjfgPotrM-W; Thu, 24 Mar 2011 13:19:04 -0500 (CDT) Received: from [192.168.46.76] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id EB1122639B59; Thu, 24 Mar 2011 13:19:03 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ryan Coleman In-Reply-To: <20110324175602.GC15209@thought.org> Date: Thu, 24 Mar 2011 13:18:36 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <3842AB1E-D93A-43C6-BFA5-8333BF10E4FD@d3photography.com> References: <20110323164504.GA25317@thought.org> <20110324175602.GC15209@thought.org> To: Gary Kline X-Mailer: Apple Mail (2.1082) Cc: FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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: Thu, 24 Mar 2011 18:18:52 -0000 Check your apache error_log, too. On Mar 24, 2011, at 12:56 PM, Gary Kline wrote: > On Wed, Mar 23, 2011 at 11:47:16AM -0500, Ryan Coleman wrote: >> Do you have an error for it? >>=20 >> If not... add after the first > error_reporting(9); >>=20 >> And see what it reports. >=20 >=20 > There were no errors that should up when i launched this script > on www.thought.org; it simply failed; no output. ...Another php > script that output a random string on the same page did have > errors. I thought i would try this simpler script first. will > add the err line and retry, tx, >=20 > gary >=20 >=20 >>=20 >> -- >> Ryan >> PHP dev. >>=20 >>=20 >> On Mar 23, 2011, at 11:45 AM, Gary Kline wrote: >>=20 >>>=20 >>> Guys, >>>=20 >>> Can any of you php hackers tell me why this simple self-hacked >>> counter bomb? >>>=20 >>> appended. >>>=20 >>> tia. >>>=20 >>> --=20 >>> Gary Kline kline@thought.org http://www.thought.org Public = Service Unix >>> Journey Toward the Dawn, E-Book: http://www.thought.org >>> The 7.98a release of Jottings: http://jottings.thought.org >>>=20 >>> >>>=20 >>> >>=20 >>> $directory=3D"./countdir/"; >>>=20 >>> if (! (file_exists( ($directory.$file)) )) >>> { >>> if (! ($fp =3D fopen( ($directory.$file), "w")) ) >>> { >>> echo "Can't create file '$directory.$file'"; >>> exit(1); >>> } >>> else >>> { >>> fseek($fp,0); >>> fputs($fp, $count); >>> fputs($fp, "\n"); >>> fputs($fp, $file); >>> fclose($fp); >>> } >>> } >>>=20 >>> if (file_exists( ($directory.$file))) >>> { >>> $fp =3D fopen($directory.$file, "r+"); >>> flock($fp, 1); >>> $count =3D fgets($fp, 4096); >>> $count +=3D 1; >>> fseek($fp,0); >>> fputs($fp, $count); >>> fputs($fp, "\n"); >>> fputs($fp, $file); >>>=20 >>> flock($fp, 3); >>> fclose($fp); >>> ?> >>>=20 >>>
>>> >>> >>>=20 >>> >> print " there have been "; >>> ?> >>>=20 >>> >>> >>>=20 >>> >> print $count; >>> ?> >>>=20 >>> >>> >>> >> print "hits\n"; >>> ?> >>>=20 >>>
>>>=20 >>> >>=20 >>> }=20 >>> else >>> { >>> print "Can't find file, check '$directory.$file'\n"; >>> } >>>=20 >>> ?> >>>=20 >>> _______________________________________________ >>> 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 > --=20 > Gary Kline kline@thought.org http://www.thought.org Public Service = Unix > Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.98a release of Jottings: http://jottings.thought.org >=20 > _______________________________________________ > 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 Thu Mar 24 18:32:26 2011 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 3782B1065672 for ; Thu, 24 Mar 2011 18:32:26 +0000 (UTC) (envelope-from "") Received: from rcsinet14.oracle.com (rcsinet14.oracle.com [148.87.113.126]) by mx1.freebsd.org (Postfix) with ESMTP id 06D778FC0C for ; Thu, 24 Mar 2011 18:32:25 +0000 (UTC) Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by rcsinet14.oracle.com (Sentrion-MP-4.0.0/Sentrion-MP-4.0.0) with ESMTP id p2OHsFrR029219 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 24 Mar 2011 17:54:15 GMT Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p2OHsCjn007748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 24 Mar 2011 17:54:14 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p2OHsBYS028042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 24 Mar 2011 17:54:11 GMT Received: from abhmt018.oracle.com (abhmt018.oracle.com [141.146.116.27]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p2OHsBCH021254 for ; Thu, 24 Mar 2011 12:54:11 -0500 MIME-Version: 1.0 Message-ID: <29d8b211-5ff3-4bc4-ac13-072c9dab4f71@default> Date: Thu, 24 Mar 2011 10:54:11 -0700 (PDT) From: dave.segleau@oracle.com To: FreeBSD Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: acsmt356.oracle.com [141.146.40.156] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4D8B8544.000C,ss=1,fgs=0 Subject: Auto Reply: Re: Recommendations for 3D modelling code for 3D printing? 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: Thu, 24 Mar 2011 18:32:26 -0000 I am out of the office on March 24th and 25th. I will be back in the offic= e on March 28th. I will only have intermittent access to email. I will read= and reply to your message when I get back to the office.=20 If you need assistance with a Berkeley DB or Product Management issue while= I am away, please contact eric.h.jensen@oracle.com or ashok.joshi@oracle.c= om.=20 From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 18:53:42 2011 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 68928106566C for ; Thu, 24 Mar 2011 18:53:42 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4F38FC13 for ; Thu, 24 Mar 2011 18:53:41 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 7A610E8040D; Thu, 24 Mar 2011 11:53:40 -0700 (PDT) Date: Thu, 24 Mar 2011 11:53:40 -0700 From: Gary Kline To: Ryan Coleman Message-ID: <20110324185340.GD15209@thought.org> References: <20110323164504.GA25317@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24 years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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: Thu, 24 Mar 2011 18:53:42 -0000 On Wed, Mar 23, 2011 at 11:47:16AM -0500, Ryan Coleman wrote: > Do you have an error for it? > > If not... add after the first error_reporting(9); > > And see what it reports. > > -- > Ryan > PHP dev. > save the bandwidth... Ok, i added the error_reporting line to both scripts. No change from the count.php, and the same output as prev from my script that tries to pick a random entry from some 70 quotes. here is what the randomquote.php scipt output onto the home page: Last updated: 17 February, 2011 echo "err-9 line below:\n"; $number-1){ // If ran out of quotes, start again! $num=0; } if (file_exists($directory.$quotecountfile)) { $nu = fopen ($directory.$quotecountfile, "w"); fputs($nu,$num); } else { die("Cant Find $quotecountfile"); } } ?> Note that i added the echo line just now. Having a quote isn't as meaningful as giving users the latest pagecount. That still fails without any errors. gary From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 19:06:36 2011 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 DF03A106566C for ; Thu, 24 Mar 2011 19:06:36 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 679058FC12 for ; Thu, 24 Mar 2011 19:06:36 +0000 (UTC) Received: by bwz12 with SMTP id 12so425358bwz.13 for ; Thu, 24 Mar 2011 12:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=VbVcPHeAdQKrXmDH4BZIWCwYhQdhx9O9P7DRr0Phxvo=; b=qQh/IcvBswIdQpbZEeVwVxQo8u3hWXzqMzbXUJ7m7hffbAEhg6V6L664cPPXyTG1ib KI0Yjx5ya/8YYu00elEpTxRmyKbhrsnUBh4Pc8VivMNeFpvsam1k6HCvL+tK2ob4gXFp GWXb2VbV9+BldGJs/mWQt1uaIvqPxcnnfwpz0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=X9X2/CcWxhHwpoDpPI14xlMdQps3UQm9LaHikScLQ6UtVYNW4NOvQVDNZHXgQkHy46 SWq0m/3jjE1Fx4fnghUIxJr9jy34EYthnZ1Tui29jyDj+KAcnZim90nNNyVEunariqwg AsrjiS7fre9QxomiEekAQUo06Fu4l0B0Bfbu0= Received: by 10.223.24.72 with SMTP id u8mr6399583fab.10.1300993595011; Thu, 24 Mar 2011 12:06:35 -0700 (PDT) Received: from localhost (gpftor2.privacyfoundation.de [87.118.101.175]) by mx.google.com with ESMTPS id 14sm96839fae.47.2011.03.24.12.06.30 (version=SSLv3 cipher=OTHER); Thu, 24 Mar 2011 12:06:31 -0700 (PDT) From: Pan Tsu To: David Demelier References: <4D85C107.9060704@gmail.com> <20110320121336.837fadc9.freebsd@edvax.de> <4D86F7C7.90008@gmail.com> <86tyewztrn.fsf@gmail.com> <4D872C32.6090300@gmail.com> Date: Thu, 24 Mar 2011 22:06:23 +0300 In-Reply-To: <4D872C32.6090300@gmail.com> (David Demelier's message of "Mon, 21 Mar 2011 11:45:06 +0100") Message-ID: <86k4foibio.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-questions@freebsd.org Subject: Re: devd started with single-user mode? 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: Thu, 24 Mar 2011 19:06:36 -0000 David Demelier writes: > On 21/03/2011 10:51, Pan Tsu wrote: >> David Demelier writes: >> >>> The problem when you're using directly kbdmux in the kernel config, >>> the ATKBD_DFLT_KEYMAP and UKBD_DFLT_KEYMAP are ineffective, you can't >>> set these both together ... >>> >>> For me I added these both to use uk.iso but in single user mode I >>> still have the standard us layout. >> >> Can you try the patch in kern/153459 ? It adds KBDMUX_DFLT_KEYMAP which >> allows using non-default layout in single user mode or ddb. > > By the way why is kbdmux needed for an usb keyboard? Should not be > managed by ukbd only? ukbd should work without kbdmux if you compile out atkbd. At least, it worked for me but not in ddb or newcons. > > I don't understand .. But thanks for the patch. Note, patches in GNATS can be for years not even looked at. From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 19:35:49 2011 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 81CCE106566B for ; Thu, 24 Mar 2011 19:35:49 +0000 (UTC) (envelope-from bmettee@pchotshots.com) Received: from mail.pchotshots.com (mail.pchotshots.com [12.172.123.237]) by mx1.freebsd.org (Postfix) with ESMTP id 194C78FC12 for ; Thu, 24 Mar 2011 19:35:48 +0000 (UTC) Received: (qmail 70221 invoked by uid 89); 24 Mar 2011 19:09:07 -0000 Received: from unknown (HELO ?12.172.123.228?) (bmettee@pchotshots.com@12.172.123.228) by mail.pchotshots.com with ESMTPA; 24 Mar 2011 19:09:07 -0000 Message-ID: <4D8B96D3.6060003@pchotshots.com> Date: Thu, 24 Mar 2011 15:09:07 -0400 From: Brad Mettee User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Gary Kline References: <20110323164504.GA25317@thought.org> <20110324185340.GD15209@thought.org> In-Reply-To: <20110324185340.GD15209@thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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: Thu, 24 Mar 2011 19:35:49 -0000 Gary Kline wrote: > On Wed, Mar 23, 2011 at 11:47:16AM -0500, Ryan Coleman wrote: > >> Do you have an error for it? >> >> If not... add after the first > error_reporting(9); >> >> And see what it reports. >> >> -- >> Ryan >> PHP dev. >> >> > > save the bandwidth... > > > Ok, i added the error_reporting line to both scripts. No change > from the count.php, and the same output as prev from my script that > tries to pick a random entry from some 70 quotes. here is what the > randomquote.php scipt output onto the home page: > > > > > Last updated: > 17 February, 2011 > > echo "err-9 line below:\n"; $number-1){ // If ran out of quotes, > start again! $num=0; } if (file_exists($directory.$quotecountfile)) > { $nu = fopen ($directory.$quotecountfile, "w"); fputs($nu,$num); } > else { die("Cant Find $quotecountfile"); } } ?> > > > Note that i added the echo line just now. > > Having a quote isn't as meaningful as giving users the latest > pagecount. That still fails without any errors. > > gary It looks like it's not interpreting the php code start somehow. Can you show the lines immediately above, going up to the "Last Modified" script? I can also see a "?>" further down the webpage. It might be a simple case of mis-matched start/stop tags. -- Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 -> Let us bring out the **Power** of your PCs. <- -> Custom Business Software Solutions since 1991 <- Visit us for information about our company. From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 20:28:30 2011 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 717B01065740 for ; Thu, 24 Mar 2011 20:28:30 +0000 (UTC) (envelope-from mailing@alokat.org) Received: from smtp.alokat.org (smtp.alokat.org [46.4.186.11]) by mx1.freebsd.org (Postfix) with ESMTP id 354C68FC1C for ; Thu, 24 Mar 2011 20:28:29 +0000 (UTC) Received: from smtp.alokat.org (localhost.localdomain [127.0.0.1]) by smtp.alokat.org (Postfix) with ESMTP id EDC50112500A0 for ; Thu, 24 Mar 2011 21:28:28 +0100 (CET) Received: from [192.168.24.23] (188-192-38-254-dynip.superkabel.de [188.192.38.254]) by smtp.alokat.org (Postfix) with ESMTPSA id CB98411250079 for ; Thu, 24 Mar 2011 21:28:23 +0100 (CET) Message-ID: <4D8BA955.3090506@alokat.org> Date: Thu, 24 Mar 2011 21:28:05 +0100 From: Alokat User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110313 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP Subject: Sound with FN Button 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: Thu, 24 Mar 2011 20:28:30 -0000 Hi, how can I use the FN Buttons to regular the sound? I'm using fluxbox. Regards, alokat From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 20:53:00 2011 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 8567D106566C for ; Thu, 24 Mar 2011 20:53:00 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id F24EC8FC14 for ; Thu, 24 Mar 2011 20:52:59 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id A8ADB1E031; Thu, 24 Mar 2011 21:52:58 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2OKqvUO001836; Thu, 24 Mar 2011 21:52:58 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 24 Mar 2011 21:52:57 +0100 From: Polytropon To: Alokat Message-Id: <20110324215257.4da534c4.freebsd@edvax.de> In-Reply-To: <4D8BA955.3090506@alokat.org> References: <4D8BA955.3090506@alokat.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Sound with FN Button X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2011 20:53:00 -0000 On Thu, 24 Mar 2011 21:28:05 +0100, Alokat wrote: > Hi, > > how can I use the FN Buttons to regular the sound? > I'm using fluxbox. Use the "xev" program to check which keysymbols (or at least codes) are output by those keys. For example, on my Sun keyboard I have those for audio: 141 142 143 Then write a file ~/.xmodmaprc to assign names to those keys, for example: ! Sound off keycode 141 = F24 ! Lower volume keycode 142 = F25 ! Raise volume keycode 143 = F26 You can also use SunAudioMute SunAudioLowerVolume SunAudioRaiseVolume or XF86AudioMute XF86AudioLowerVolume XF86AudioRaiseVolume I decided to continue the enumeration as function keys for all the extra keys on my keyboard. :-) Incorporate the settings upon X startup, using ~/.xinitrc or maybe ~/.xsession: xmodmap ~/.xmodmaprc Then use the keyboard action configuration of Fluxbox. As I don't use it anymore, I can't tell you where it is, but there should be a configuration file which selects which action to be taken when a specific key is pressed. I'm using WindowMaker's configuration utility for that. I did add menu entries and set a custom key for them. For example, I made the following settings: F24 -> mixer 0 F25 -> mixer vol -5 F26 -> mixer vol +5 You should be able to find a similar approach in FLuxbox. I'm sure you got the idea: You identify what the keys DO and then connect them to a keyname. This keyname is then connected to a specific program call, "mixer" with the intended parameters in case of volume control. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 21:14:27 2011 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 8CCF6106564A for ; Thu, 24 Mar 2011 21:14:27 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 61FBB8FC12 for ; Thu, 24 Mar 2011 21:14:26 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id F13CD2639C2F; Thu, 24 Mar 2011 16:14:52 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O7bC9fVAgWdo; Thu, 24 Mar 2011 16:14:40 -0500 (CDT) Received: from [192.168.46.85] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id CA5542639C56; Thu, 24 Mar 2011 15:30:38 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ryan Coleman In-Reply-To: <20110324185340.GD15209@thought.org> Date: Thu, 24 Mar 2011 15:30:08 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20110323164504.GA25317@thought.org> <20110324185340.GD15209@thought.org> To: Gary Kline X-Mailer: Apple Mail (2.1082) Cc: FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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: Thu, 24 Mar 2011 21:14:27 -0000 Here's a quick and dirty option... FIRST make sure your permissions on the folder you want to write the = countfile to is either at RWX to all or is owned by the Apache run user = (PHP by default runs under the Apache Service user). I ran this in file test.php on my server. Give it a whirl. On Mar 24, 2011, at 1:53 PM, Gary Kline wrote: > On Wed, Mar 23, 2011 at 11:47:16AM -0500, Ryan Coleman wrote: >> Do you have an error for it? >>=20 >> If not... add after the first > error_reporting(9); >>=20 >> And see what it reports. >>=20 >> -- >> Ryan >> PHP dev. >>=20 >=20 > save the bandwidth... >=20 >=20 > Ok, i added the error_reporting line to both scripts. No change > from the count.php, and the same output as prev from my script that > tries to pick a random entry from some 70 quotes. here is what the > randomquote.php scipt output onto the home page: >=20 >=20 >=20 >=20 > Last updated: > 17 February, 2011 >=20 > echo "err-9 line below:\n"; $number-1){ // If ran out of quotes, > start again! $num=3D0; } if (file_exists($directory.$quotecountfile)) > { $nu =3D fopen ($directory.$quotecountfile, "w"); fputs($nu,$num); } > else { die("Cant Find $quotecountfile"); } } ?> >=20 >=20 > Note that i added the echo line just now. =20 >=20 > Having a quote isn't as meaningful as giving users the latest > pagecount. That still fails without any errors. =20 >=20 > gary >=20 >=20 From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 21:22:39 2011 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 E36D4106566B for ; Thu, 24 Mar 2011 21:22:39 +0000 (UTC) (envelope-from atcs.matthew@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9E0E38FC15 for ; Thu, 24 Mar 2011 21:22:39 +0000 (UTC) Received: by yie12 with SMTP id 12so218779yie.13 for ; Thu, 24 Mar 2011 14:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=OoOmEhX6uDQfqo9WaX1wKaXjxgZTUuNcDS4nx5AR3HI=; b=JXx7pRKt8q6V8oJHO41vWbAOGPsWXPddLd0Igs0qiFimbbm1lATdIvsjxE7U/SYwR1 aA+ShgbLgqAfmjIA7K7gjpGehh7h0gvnkG7aM5CDfcF4l9bTPygo5UdlGzxD2/kxMbxr R6IfXfhzr2YFAOQIBaBDPg74QN1y8O/ZZKSMo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=eMQdA7rRucwQhb7DmsHyoe+812Jsml2qLQOwWhrzznvPOySlvs/4yIc4dcrTX/qhXj L1z86ilKhbbM+oslcc/Qq8B9IoK/yf2q60dIeQsRSprwHos5efmmcjbtowgGdFIbeo0K Wr0HUvXsZz/Li/l64aFlTuz6ol0hmeZ9HFk/I= Received: by 10.101.73.8 with SMTP id a8mr6084289anl.39.1301000439638; Thu, 24 Mar 2011 14:00:39 -0700 (PDT) Received: from [192.168.1.145] (97-82-152-60.dhcp.hckr.nc.charter.com [97.82.152.60]) by mx.google.com with ESMTPS id e24sm308050ana.2.2011.03.24.14.00.37 (version=SSLv3 cipher=OTHER); Thu, 24 Mar 2011 14:00:37 -0700 (PDT) Message-ID: <4D8BB0F9.4080601@gmail.com> Date: Thu, 24 Mar 2011 17:00:41 -0400 From: Matthew Morgan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: emacs backspace 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: Thu, 24 Mar 2011 21:22:40 -0000 I've read a lot on the internet regarding the use of the backspace key in emacs, but the proposed solutions don't seem to be working for me. I just installed FreeBSD 8.1 in Virtualbox and installed emacs 23.2.1 by means of the package installer. Everything in emacs works great except the backspace key, which deletes forward instead of back like it should. I've found a lot of different things on the internet about it: * switched to bash instead of csh - didn't fix it, but I like bash better * M-x normal-erase-is-backspace-mode -toggling it once makes my backspace bring up the "help" command; toggling it again changes it back * different keymaps - I started out using us.iso.kbd (which exhibits the backspace issue, but other keys are right) - I tried us.emacs.kbd - backspace works right, but many other keys are mapped wrong (even letters and numbers) - I tried us.unix.kbd - backspace doesn't work right and neither do my control keys I also just noticed that when on the command line itself (outside of emacs) backspace deletes backward as it should, but so does delete! Is this something weird with virtualbox, or am I doing something wrong? From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 21:52:23 2011 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 5103B106566B for ; Thu, 24 Mar 2011 21:52:23 +0000 (UTC) (envelope-from mailing@alokat.org) Received: from smtp.alokat.org (smtp.alokat.org [46.4.186.11]) by mx1.freebsd.org (Postfix) with ESMTP id D6AB68FC13 for ; Thu, 24 Mar 2011 21:52:22 +0000 (UTC) Received: from smtp.alokat.org (localhost.localdomain [127.0.0.1]) by smtp.alokat.org (Postfix) with ESMTP id F2359112500A0 for ; Thu, 24 Mar 2011 22:52:21 +0100 (CET) Received: from Mugin.fritz.box (188-192-38-254-dynip.superkabel.de [188.192.38.254]) by smtp.alokat.org (Postfix) with ESMTPSA id D0F8011250079 for ; Thu, 24 Mar 2011 22:52:21 +0100 (CET) Message-ID: <4D8BBD03.4010909@alokat.org> Date: Thu, 24 Mar 2011 22:52:03 +0100 From: Alokat User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110324 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4D8BA955.3090506@alokat.org> <20110324215257.4da534c4.freebsd@edvax.de> In-Reply-To: <20110324215257.4da534c4.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP Subject: Re: Sound with FN Button 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: Thu, 24 Mar 2011 21:52:23 -0000 On 03/24/11 21:52, Polytropon wrote: > On Thu, 24 Mar 2011 21:28:05 +0100, Alokat wrote: >> Hi, >> >> how can I use the FN Buttons to regular the sound? >> I'm using fluxbox. > Use the "xev" program to check which keysymbols (or at > least codes) are output by those keys. For example, on > my Sun keyboard I have those for audio: > > 141 > 142 > 143 > > Then write a file ~/.xmodmaprc to assign names to those > keys, for example: > > ! Sound off > keycode 141 = F24 > ! Lower volume > keycode 142 = F25 > ! Raise volume > keycode 143 = F26 > > You can also use > > SunAudioMute > SunAudioLowerVolume > SunAudioRaiseVolume > > or > > XF86AudioMute > XF86AudioLowerVolume > XF86AudioRaiseVolume > > I decided to continue the enumeration as function keys for > all the extra keys on my keyboard. :-) > > Incorporate the settings upon X startup, using ~/.xinitrc > or maybe ~/.xsession: > > xmodmap ~/.xmodmaprc > > Then use the keyboard action configuration of Fluxbox. As I > don't use it anymore, I can't tell you where it is, but there > should be a configuration file which selects which action to > be taken when a specific key is pressed. > > I'm using WindowMaker's configuration utility for that. I did > add menu entries and set a custom key for them. For example, > I made the following settings: > > F24 -> mixer 0 > F25 -> mixer vol -5 > F26 -> mixer vol +5 > > You should be able to find a similar approach in FLuxbox. > > I'm sure you got the idea: You identify what the keys DO and > then connect them to a keyname. This keyname is then connected > to a specific program call, "mixer" with the intended parameters > in case of volume control. > > > > I get an output like this: FocusOut event, serial 31, synthetic NO, window 0x1800001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 31, synthetic NO, window 0x1800001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 31, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 FocusOut event, serial 31, synthetic NO, window 0x1800001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 31, synthetic NO, window 0x1800001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 31, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 21:55:50 2011 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 C2F46106566B for ; Thu, 24 Mar 2011 21:55:50 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7AC478FC15 for ; Thu, 24 Mar 2011 21:55:50 +0000 (UTC) Received: by qwc9 with SMTP id 9so316696qwc.13 for ; Thu, 24 Mar 2011 14:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=slhLHe4Zs56qkvA4MZRb3/6CJMfzDouLB4hv72hjVqw=; b=nN8PvcS1SN+8N3NdSDhyBSQVkFwE+j8XZNA6m5oeKQ9lRm6h1ll9L3UqsRD/6ePXO3 VFfuznZw7qNaLEF+OGLQ28ufhLFSsTPM47fCHd556dGnmQmsntPRmY5Glvp/n6KAkyWy I/uKQh5NX5jjd6zjVgHQH/Ugsl5eztMbV150w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KoXbxNRlu1LseQvZmFq+9SOdGKb0RX/8vZAVSaXIJoG7O9XoIFfe3aNIupTyVSHSfV XLaUbGg2ZylLuh+OEHaWdpMTfd2eQweAVEDln0XpbB+TNadqtmzg8m3l0WHKVfkwQQ7O Epq/A1JCyXsvJkbNH0ffM6fhYDdOFoEe6UBE4= MIME-Version: 1.0 Received: by 10.224.126.221 with SMTP id d29mr9594qas.201.1301003749564; Thu, 24 Mar 2011 14:55:49 -0700 (PDT) Received: by 10.224.37.66 with HTTP; Thu, 24 Mar 2011 14:55:49 -0700 (PDT) In-Reply-To: <4D8BB0F9.4080601@gmail.com> References: <4D8BB0F9.4080601@gmail.com> Date: Thu, 24 Mar 2011 14:55:49 -0700 Message-ID: From: Nerius Landys To: Matthew Morgan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: emacs backspace 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: Thu, 24 Mar 2011 21:55:50 -0000 > I've read a lot on the internet regarding the use of the backspace key in > emacs, but the proposed solutions don't seem to be working for me. > > I just installed FreeBSD 8.1 in Virtualbox and installed emacs 23.2.1 by > means of the package installer. =A0Everything in emacs works great except= the > backspace key, which deletes forward instead of back like it should. =A0I= 've > found a lot of different things on the internet about it: > > * switched to bash instead of csh - didn't fix it, but I like bash better > * M-x normal-erase-is-backspace-mode -toggling it once makes my backspace > bring up the "help" command; toggling it again changes it back > * different keymaps > =A0 =A0- I started out using us.iso.kbd (which exhibits the backspace iss= ue, but > other keys are right) > =A0 =A0- I tried us.emacs.kbd - backspace works right, but many other key= s are > mapped wrong (even letters and numbers) > =A0 =A0- I tried us.unix.kbd - backspace doesn't work right and neither d= o my > control keys > > I also just noticed that when on the command line itself (outside of emac= s) > backspace deletes backward as it should, but so does delete! > > Is this something weird with virtualbox, or am I doing something wrong? You have just discovered what is in my opinion a can of worms with no clear solution. I have struggled with issues such as these before, and I've managed to solve them more or less. Are you using emacs in a terminal window? (As opposed to with an X server.) I'm assuming yes. Are you accessing your computer directly through the console or through an xterm and SSH, for example? Questions such as those are important to fully diagnose and fix the problem. You want to do an "echo $TERM" before you start diagnosing problems such as these. If you are using bash, you can do a "man bash" and look at the part that describes ~/.inputrc and/or READLINE. You may want to create an ~/.inputrc file and add stuff to it to resolve the backspace/delete issues that you are having. For example, I have the following in my ~/.inputrc because I do use bash occasionally: $if term=3Dcons25 "\x7f": delete-char $else $if term=3Dxterm "\x1b\x5b\x35\x43": forward-word "\x1b\x5b\x31\x3b\x35\x43": forward-word "\x1b\x5b\x35\x44": backward-word "\x1b\x5b\x31\x3b\x35\x44": backward-word $endif $endif "cons25" is the native FreeBSD console (like when you're physically at the computer console) and xterm is of course xterm. (Side note: Why in the heck on my 9.0-CURRENT system the system console says the TERM is xterm?) As far as how I came up with the strings such as "\x1b\x5b\x35\x43", you can use a command such as "xxd" which comes with the vim package/port to tell you what bytes are being sent when you press a certain key. If you want to fix your csh shell too, you may consider editing your ~/.cshrc file. Here is my complete ~/.cshrc, and note the stuff at the bottom with the key bindings: setenv EDITOR vi setenv PAGER less if ($?prompt) then # An interactive shell -- set some stuff up set prompt =3D "`whoami`@`/bin/hostname -s`> " set filec set history =3D 2000 set savehist =3D 2000 set mail =3D (/var/mail/$USER) if ( $?tcsh ) then bindkey "^W" backward-delete-word bindkey -k up history-search-backward bindkey -k down history-search-forward if ("$TERM" =3D=3D "cons25") then bindkey "^?" delete-char else if ("$TERM" =3D=3D "linux") then bindkey "^[[3~" delete-char else if ("$TERM" =3D=3D "xterm") then bindkey "^[[3~" delete-char bindkey "^[[5C" forward-word bindkey "^[[1;5C" forward-word bindkey "^[[5D" backward-word bindkey "^[[1;5D" backward-word bindkey "\303\277" backward-delete-word endif endif endif By the way I have a 9.0 CURRENT box here at my desk, and I've compiled emacs-nox11 port, and I'm at the system console (meaning I'm physically at the console). I am using /bin/tcsh as my shell. I have no modifications to any of my dotfiles, they are all stock. In emacs, I'm able to use Backspace and Delete just as expected. Maybe you should try setting your default shell to /bin/tcsh, if it isn't already. If you're on a mission critical system you want your default shell to be part of the base system (as opposed to being a port), and the only clear choice for that is /bin/tcsh. Besides it's the default root shell too. Also, if you are looking for a superior shell from ports you might try zsh. It's the best in my opinion. From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 22:05:02 2011 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 E9464106566B for ; Thu, 24 Mar 2011 22:05:01 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 8F4048FC12 for ; Thu, 24 Mar 2011 22:05:01 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id 693001E2A6; Thu, 24 Mar 2011 23:04:59 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2OM4x0t002071; Thu, 24 Mar 2011 23:04:59 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 24 Mar 2011 23:04:59 +0100 From: Polytropon To: Alokat Message-Id: <20110324230459.3f5f56c6.freebsd@edvax.de> In-Reply-To: <4D8BBD03.4010909@alokat.org> References: <4D8BA955.3090506@alokat.org> <20110324215257.4da534c4.freebsd@edvax.de> <4D8BBD03.4010909@alokat.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Sound with FN Button X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2011 22:05:02 -0000 On Thu, 24 Mar 2011 22:52:03 +0100, Alokat wrote: > On 03/24/11 21:52, Polytropon wrote: > > On Thu, 24 Mar 2011 21:28:05 +0100, Alokat wrote: > >> Hi, > >> > >> how can I use the FN Buttons to regular the sound? > >> I'm using fluxbox. > > Use the "xev" program to check which keysymbols (or at > > least codes) are output by those keys. For example, on > > my Sun keyboard I have those for audio: > > > > 141 > > 142 > > 143 > > > I get an output like this: > > FocusOut event, serial 31, synthetic NO, window 0x1800001, > mode NotifyGrab, detail NotifyAncestor > > FocusIn event, serial 31, synthetic NO, window 0x1800001, > mode NotifyUngrab, detail NotifyAncestor > > KeymapNotify event, serial 31, synthetic NO, window 0x0, > keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 > > FocusOut event, serial 31, synthetic NO, window 0x1800001, > mode NotifyGrab, detail NotifyAncestor > > FocusIn event, serial 31, synthetic NO, window 0x1800001, > mode NotifyUngrab, detail NotifyAncestor > > KeymapNotify event, serial 31, synthetic NO, window 0x0, > keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 You need to look for those events: KeyPress event, serial 27, synthetic NO, window 0x2000001, root 0x73, subw 0x0, time 3923776537, (162,2), root:(271,490), state 0x10, keycode 154 (keysym 0xffd4, F23), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0x2000001, root 0x73, subw 0x0, time 3923776635, (162,2), root:(271,490), state 0x10, keycode 154 (keysym 0xffd4, F23), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False The 2nd line, the information in the middle is important: "keycode 154 (keysym 0xffd4, F23)": It indicates that the keycode generated has been identified with the code 154, and this code is already mapped to the symbol F23. This is (just for completeness) the "Cut" key of the 2x5 field to the left. Erm... just a side question... you're refering to pressing the Fn key with a function key (e. g. Fn+F1) for volume control, or are there other special keys for volume? I'm asking this as in the past, volume control was managed by the BIOS (I think), but NOT by the operating system or application programs. This means it was possible to change the volume INDEPENDENTLY from any driver. I'm not sure if this is still the case. Maybe - just MAYBE - you need a hardware and software (!) specific driver to do those basic things... history teaches that all the "simple things" that worked in the past are a high mountain to climb today... thanks to YOU, hardware manufacturers! :-) Please understand the paragraph as follows: MAYBE (!!!) it's not even possible to do what you're intending. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 22:12:18 2011 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 9E346106564A for ; Thu, 24 Mar 2011 22:12:18 +0000 (UTC) (envelope-from mailing@alokat.org) Received: from smtp.alokat.org (smtp.alokat.org [46.4.186.11]) by mx1.freebsd.org (Postfix) with ESMTP id 3476A8FC18 for ; Thu, 24 Mar 2011 22:12:18 +0000 (UTC) Received: from smtp.alokat.org (localhost.localdomain [127.0.0.1]) by smtp.alokat.org (Postfix) with ESMTP id 4D78F112500A0 for ; Thu, 24 Mar 2011 23:12:17 +0100 (CET) Received: from Mugin.fritz.box (188-192-38-254-dynip.superkabel.de [188.192.38.254]) by smtp.alokat.org (Postfix) with ESMTPSA id 2CE5311250079 for ; Thu, 24 Mar 2011 23:12:16 +0100 (CET) Message-ID: <4D8BC1A8.8030509@alokat.org> Date: Thu, 24 Mar 2011 23:11:52 +0100 From: Alokat User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110324 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4D8BA955.3090506@alokat.org> <20110324215257.4da534c4.freebsd@edvax.de> <4D8BBD03.4010909@alokat.org> <20110324230459.3f5f56c6.freebsd@edvax.de> In-Reply-To: <20110324230459.3f5f56c6.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP Subject: Re: Sound with FN Button 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: Thu, 24 Mar 2011 22:12:18 -0000 On 03/24/11 23:04, Polytropon wrote: > On Thu, 24 Mar 2011 22:52:03 +0100, Alokat wrote: >> On 03/24/11 21:52, Polytropon wrote: >>> On Thu, 24 Mar 2011 21:28:05 +0100, Alokat wrote: >>>> Hi, >>>> >>>> how can I use the FN Buttons to regular the sound? >>>> I'm using fluxbox. >>> Use the "xev" program to check which keysymbols (or at >>> least codes) are output by those keys. For example, on >>> my Sun keyboard I have those for audio: >>> >>> 141 >>> 142 >>> 143 >>> >> I get an output like this: >> >> FocusOut event, serial 31, synthetic NO, window 0x1800001, >> mode NotifyGrab, detail NotifyAncestor >> >> FocusIn event, serial 31, synthetic NO, window 0x1800001, >> mode NotifyUngrab, detail NotifyAncestor >> >> KeymapNotify event, serial 31, synthetic NO, window 0x0, >> keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 >> >> FocusOut event, serial 31, synthetic NO, window 0x1800001, >> mode NotifyGrab, detail NotifyAncestor >> >> FocusIn event, serial 31, synthetic NO, window 0x1800001, >> mode NotifyUngrab, detail NotifyAncestor >> >> KeymapNotify event, serial 31, synthetic NO, window 0x0, >> keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > You need to look for those events: > > KeyPress event, serial 27, synthetic NO, window 0x2000001, > root 0x73, subw 0x0, time 3923776537, (162,2), root:(271,490), > state 0x10, keycode 154 (keysym 0xffd4, F23), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyRelease event, serial 27, synthetic NO, window 0x2000001, > root 0x73, subw 0x0, time 3923776635, (162,2), root:(271,490), > state 0x10, keycode 154 (keysym 0xffd4, F23), same_screen YES, > XLookupString gives 0 bytes: > XFilterEvent returns: False > > The 2nd line, the information in the middle is important: > "keycode 154 (keysym 0xffd4, F23)": It indicates that the > keycode generated has been identified with the code 154, > and this code is already mapped to the symbol F23. This > is (just for completeness) the "Cut" key of the 2x5 field > to the left. > > Erm... just a side question... you're refering to pressing > the Fn key with a function key (e. g. Fn+F1) for volume > control, or are there other special keys for volume? I'm > asking this as in the past, volume control was managed by > the BIOS (I think), but NOT by the operating system or > application programs. This means it was possible to change > the volume INDEPENDENTLY from any driver. I'm not sure if > this is still the case. Maybe - just MAYBE - you need a > hardware and software (!) specific driver to do those > basic things... history teaches that all the "simple things" > that worked in the past are a high mountain to climb today... > thanks to YOU, hardware manufacturers! :-) > > Please understand the paragraph as follows: MAYBE (!!!) it's > not even possible to do what you're intending. > > No I don't .. I thought it, but the volume buttons are extra buttons - without FN. From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 22:58:56 2011 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 1BE83106566B for ; Thu, 24 Mar 2011 22:58:56 +0000 (UTC) (envelope-from lcampbell@ironclad.mobi) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9229F8FC1B for ; Thu, 24 Mar 2011 22:58:55 +0000 (UTC) Received: by bwz12 with SMTP id 12so654059bwz.13 for ; Thu, 24 Mar 2011 15:58:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.22.9 with SMTP id l9mr34612bkb.66.1301005905399; Thu, 24 Mar 2011 15:31:45 -0700 (PDT) Received: by 10.204.82.88 with HTTP; Thu, 24 Mar 2011 15:31:45 -0700 (PDT) Date: Thu, 24 Mar 2011 16:31:45 -0600 Message-ID: From: Lawton Campbell To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ppp.conf for Verizon Mifi 2200? 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: Thu, 24 Mar 2011 22:58:56 -0000 Hey freebsd-questions! I've been trying to get a Verizon MiFi 2200 to work on my 8.2-RELEASE box for the past couple of days and can't seem to get the ppp.conf to work properly. I found a couple of recent threads about similar devices (apparently it's just novatel stuff that gets repackaged for different 3G providers) -- http://www.mail-archive.com/freebsd-net@freebsd.org/msg36160.html It doesn't look like they got the Virgin Mobile version of the device working, unfortunately. I'm stuck in a slightly different place, so making a new thread (dunno if freebsd-net or freebsd-questions is more appropriate, so erring to -questions). Anyway, let's get started! Going to walkthrough what I have so far, then finally get to where I'm stuck and detail some questions. # THUS FAR One quirk of the device is that you have to detach /dev/cd0 when it mounts to expose the modem interface for u3g to grab. Looking at usbconfig, the relevant identifiers for the device are idVendor = 0x1410 idProduct = 0x5041 AFAIK, u3gstub is supposed to take care of this automagically, but perhaps either I've misread the man page or it's missing the vendor/product IDs. In any case, it's probably easy enough to fix with a devd rule, so I'm not too worried about it. In any case, when the device is attached, `camcontrol eject cd0` (or whatever cd# is generated) has to be run -- root@ffffff> camcontrol eject cd0 Which gives us -- Mar 25 06:06:36 ffffff kernel: ugen1.2: at usbus1 Mar 25 06:06:36 ffffff kernel: u3g0: on usbus1 Mar 25 06:06:36 ffffff kernel: u3g0: Found 5 ports. root@ffffff> ls /dev/cuaU0.* /dev/cuaU0.0 /dev/cuaU0.1.init /dev/cuaU0.2.lock /dev/cuaU0.4 /dev/cuaU0.0.init /dev/cuaU0.1.lock /dev/cuaU0.3 /dev/cuaU0.4.init /dev/cuaU0.0.lock /dev/cuaU0.2 /dev/cuaU0.3.init /dev/cuaU0.4.lock /dev/cuaU0.1 /dev/cuaU0.2.init /dev/cuaU0.3.lock I just grabbed the stock ppp.conf from the handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html) with some bits removed (the login chat script, specifically -- we'll know if that's broken when we get there). root@ffffff> cat /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) set speed 115200 set device /dev/cuaU0.0 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 180 enable dns mifi: set phone "#777" set authname "XXXMYNUMBER@vzw3g.com" set authkey "vzw" set ifaddr 10.23.0.1 10.23.0.2 255.255.255.255 0.0.0.0 add default HISADDR However, when I run `ppp -ddial mifi`, I get -- Mar 25 06:17:43 ffffff ppp[10491]: tun0: Chat: Send: AT^M Mar 25 06:17:43 ffffff ppp[10491]: tun0: Chat: Expect(5): OK Mar 25 06:17:49 ffffff ppp[10491]: tun0: Chat: Expect timeout Mar 25 06:17:49 ffffff ppp[10491]: tun0: Warning: Chat script failed Which means we're not even communicating with the modem. Kinda weird -- I think it's a problem in the dial script. Let's just take out the non-default dial script and see what happens: root@ffffff> cat /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) set speed 115200 set device /dev/cuaU0.1 set timeout 180 enable dns mifi: set phone "#777" set authname "XXXMYNUMBER@vzw3g.com" set authkey "vzw" set ifaddr 10.23.0.1 10.23.0.2 255.255.255.255 0.0.0.0 add default HISADDR Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: closed -> opening Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: Connected! Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: opening -> dial Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: dial -> carrier Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: /dev/cuaU0.1 doesn't support CD Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: carrier -> login Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: login -> lcp Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: FSM: Using "deflink" as a transport Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: deflink: State change Initial --> Closed Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: deflink: State change Closed --> Stopped Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: LayerStart Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: ACFCOMP[2] Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: PROTOCOMP[2] Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: ACCMAP[6] 0x00000000 Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: MRU[4] 1500 Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: MAGICNUM[6] 0x72c1cbf0 Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: State change Stopped --> Req-Sent Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: ACFCOMP[2] Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: PROTOCOMP[2] Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: ACCMAP[6] 0x00000000 Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: MRU[4] 1500 Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: MAGICNUM[6] 0x72c1cbf0 Mar 25 06:20:21 ffffff ppp[10518]: tun0: Phase: Unknown protocol 0x0013 (reserved (transparency inefficient)) Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: deflink: SendProtocolRej(1) state = Req-Sent Aha! So we've got a connection to the provider at this point, but they're not responding properly to our LCP configuration requests. Not quite sure why, to be honest. A little bit of googling turns up this thread: http://lists.freebsd.org/pipermail/freebsd-usb/2009-August/007241.html Which suggests adding "disable pred1 deflate deflate24 protocomp acfcomp shortseq vj mppe" to the ppp.conf. After making this modification, I get the following response -- Mar 25 06:24:49 ffffff ppp[10593]: tun0: LCP: deflink: State change Closed --> Stopped Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: LayerStart Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: ACCMAP[6] 0x00000000 Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: MRU[4] 1500 Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: MAGICNUM[6] 0x09fbbcd0 Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: State change Stopped --> Req-Sent Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: ACCMAP[6] 0x00000000 Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: MRU[4] 1500 Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: MAGICNUM[6] 0x09fbbcd0 Mar 25 06:24:57 ffffff ppp[10593]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent So now we're not getting _anything_ back from the provider. It looks like `disable acfcomp` is what's squelching those errors, but frankly I have no idea what acfcomp is or does. I suspect that the modem isn't really speaking PPP, but I don't know how to try PPPoE or anything else. At this point I am completely confounded. Any ideas? (I'm off-list, so please CC me!) Thanks :) From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 23:00:51 2011 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 18FCF106564A for ; Thu, 24 Mar 2011 23:00:51 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id E1E0B8FC24 for ; Thu, 24 Mar 2011 23:00:50 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 0510DE806ED; Thu, 24 Mar 2011 16:00:49 -0700 (PDT) Date: Thu, 24 Mar 2011 16:00:49 -0700 From: Gary Kline To: Fr?d?ric Perrin Message-ID: <20110324230049.GB31958@thought.org> References: <20110323164504.GA25317@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24++ years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@freebsd.org Subject: Re: why does this simple counter fail? 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: Thu, 24 Mar 2011 23:00:51 -0000 On Wed, Mar 23, 2011 at 07:11:15PM +0100, Fr?d?ric Perrin wrote: > Gary Kline writes: > > Can any of you php hackers tell me why this simple self-hacked > > counter bomb? > > As others said, what does 'this simple counter bomb' means? > > > $fp = fopen($directory.$file, "r+"); > > flock($fp, 1); > > You want an exclusive lock (LOCK_EX, which is 2 is you use some ancient > PHP), not a shared lock. > > When updating the file: > > fputs($fp, $count); > > fputs($fp, "\n"); > > fputs($fp, $file); > > Why do you feel the need to store the filename inside the file itself? > You don't seem to need it after. $file is passed from the calling php file. index.php is by-hand set to $file='index'; and so on. Because of my shoulder/typing woes, it was great that I got clued in above by Brad's thought that perhaos there were mis-matched "" tags. A simply recursive grepping found out that it some places I had " instead of " . Adding the "php" fixed everything. Finally, you're right; this really, really is ancient php. Somthing i found pre-2004 and hacked until it worked. The counter is missings lots of features, but I'll fix that pretty soon. thanks to everybody , > > -- > Frédéric Perrin -- http://tar-jx.bz > > _______________________________________________ > 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 Journey Toward the Dawn, E-Book: http://www.thought.org The 7.98a release of Jottings: http://jottings.thought.org From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 23:25:14 2011 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 255001065676 for ; Thu, 24 Mar 2011 23:25:14 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id CD9F58FC0C for ; Thu, 24 Mar 2011 23:25:13 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 7C8E42639E78; Thu, 24 Mar 2011 18:25:39 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H6F0mYHnR0fh; Thu, 24 Mar 2011 18:25:24 -0500 (CDT) Received: from [10.0.1.198] (70-89-202-1-invergrove-mn.hfc.comcastbusiness.net [70.89.202.1]) by server.cwis.biz (Postfix) with ESMTPSA id 131482639A41; Thu, 24 Mar 2011 18:25:24 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ryan Coleman In-Reply-To: Date: Thu, 24 Mar 2011 18:24:56 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Lawton Campbell X-Mailer: Apple Mail (2.1082) Cc: freebsd-questions@freebsd.org Subject: Re: ppp.conf for Verizon Mifi 2200? 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: Thu, 24 Mar 2011 23:25:14 -0000 Sounds alot like my query for the Virgin Mobile one ... I got NOWHERE. :\ On Mar 24, 2011, at 5:31 PM, Lawton Campbell wrote: > Hey freebsd-questions! >=20 > I've been trying to get a Verizon MiFi 2200 to work on my 8.2-RELEASE > box for the past couple of days and can't seem to get the ppp.conf to > work properly. I found a couple of recent threads about similar > devices (apparently it's just novatel stuff that gets repackaged for > different 3G providers) -- >=20 > http://www.mail-archive.com/freebsd-net@freebsd.org/msg36160.html >=20 > It doesn't look like they got the Virgin Mobile version of the device > working, unfortunately. I'm stuck in a slightly different place, so > making a new thread (dunno if freebsd-net or freebsd-questions is more > appropriate, so erring to -questions). Anyway, let's get started! > Going to walkthrough what I have so far, then finally get to where I'm > stuck and detail some questions. >=20 > # THUS FAR >=20 > One quirk of the device is that you have to detach /dev/cd0 when it > mounts to expose the modem interface for u3g to grab. Looking at > usbconfig, the relevant identifiers for the device are >=20 > idVendor =3D 0x1410 > idProduct =3D 0x5041 >=20 > AFAIK, u3gstub is supposed to take care of this automagically, but > perhaps either I've misread the man page or it's missing the > vendor/product IDs. In any case, it's probably easy enough to fix with > a devd rule, so I'm not too worried about it. In any case, when the > device is attached, `camcontrol eject cd0` (or whatever cd# is > generated) has to be run -- >=20 > root@ffffff> camcontrol eject cd0 >=20 > Which gives us -- >=20 > Mar 25 06:06:36 ffffff kernel: ugen1.2: at = usbus1 > Mar 25 06:06:36 ffffff kernel: u3g0: on usbus1 > Mar 25 06:06:36 ffffff kernel: u3g0: Found 5 ports. >=20 > root@ffffff> ls /dev/cuaU0.* > /dev/cuaU0.0 /dev/cuaU0.1.init /dev/cuaU0.2.lock /dev/cuaU0.4 > /dev/cuaU0.0.init /dev/cuaU0.1.lock /dev/cuaU0.3 = /dev/cuaU0.4.init > /dev/cuaU0.0.lock /dev/cuaU0.2 /dev/cuaU0.3.init = /dev/cuaU0.4.lock > /dev/cuaU0.1 /dev/cuaU0.2.init /dev/cuaU0.3.lock >=20 > I just grabbed the stock ppp.conf from the handbook > = (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html) > with some bits removed (the login chat script, specifically -- we'll > know if that's broken when we get there). >=20 > root@ffffff> cat /etc/ppp/ppp.conf > default: > set log Phase Chat LCP IPCP CCP tun command > ident user-ppp VERSION (built COMPILATIONDATE) > set speed 115200 > set device /dev/cuaU0.0 > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ > \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" >=20 > set timeout 180 > enable dns >=20 > mifi: > set phone "#777" > set authname "XXXMYNUMBER@vzw3g.com" > set authkey "vzw" >=20 > set ifaddr 10.23.0.1 10.23.0.2 255.255.255.255 0.0.0.0 > add default HISADDR >=20 > However, when I run `ppp -ddial mifi`, I get -- >=20 > Mar 25 06:17:43 ffffff ppp[10491]: tun0: Chat: Send: AT^M > Mar 25 06:17:43 ffffff ppp[10491]: tun0: Chat: Expect(5): OK > Mar 25 06:17:49 ffffff ppp[10491]: tun0: Chat: Expect timeout > Mar 25 06:17:49 ffffff ppp[10491]: tun0: Warning: Chat script failed >=20 > Which means we're not even communicating with the modem. Kinda weird > -- I think it's a problem in the dial script. Let's just take out the > non-default dial script and see what happens: >=20 > root@ffffff> cat /etc/ppp/ppp.conf > default: > set log Phase Chat LCP IPCP CCP tun command > ident user-ppp VERSION (built COMPILATIONDATE) > set speed 115200 > set device /dev/cuaU0.1 >=20 > set timeout 180 > enable dns >=20 > mifi: > set phone "#777" > set authname "XXXMYNUMBER@vzw3g.com" > set authkey "vzw" >=20 > set ifaddr 10.23.0.1 10.23.0.2 255.255.255.255 0.0.0.0 > add default HISADDR >=20 > Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: closed -> = opening > Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: Connected! > Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: opening -> = dial > Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: dial -> = carrier > Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: /dev/cuaU0.1 > doesn't support CD > Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: carrier -> = login > Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: login -> lcp > Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: FSM: Using "deflink" as > a transport > Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: deflink: State change > Initial --> Closed > Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: deflink: State change > Closed --> Stopped > Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: LayerStart > Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: > SendConfigReq(1) state =3D Stopped > Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: ACFCOMP[2] > Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: PROTOCOMP[2] > Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: ACCMAP[6] 0x00000000 > Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: MRU[4] 1500 > Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: MAGICNUM[6] 0x72c1cbf0 > Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: State change > Stopped --> Req-Sent > Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: deflink: > SendConfigReq(1) state =3D Req-Sent > Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: ACFCOMP[2] > Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: PROTOCOMP[2] > Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: ACCMAP[6] 0x00000000 > Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: MRU[4] 1500 > Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: MAGICNUM[6] 0x72c1cbf0 > Mar 25 06:20:21 ffffff ppp[10518]: tun0: Phase: Unknown protocol > 0x0013 (reserved (transparency inefficient)) > Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: deflink: > SendProtocolRej(1) state =3D Req-Sent >=20 > Aha! So we've got a connection to the provider at this point, but > they're not responding properly to our LCP configuration requests. Not > quite sure why, to be honest. A little bit of googling turns up this > thread: >=20 > http://lists.freebsd.org/pipermail/freebsd-usb/2009-August/007241.html >=20 > Which suggests adding "disable pred1 deflate deflate24 protocomp > acfcomp shortseq vj mppe" to the ppp.conf. After making this > modification, I get the following response -- >=20 > Mar 25 06:24:49 ffffff ppp[10593]: tun0: LCP: deflink: State change > Closed --> Stopped > Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: LayerStart > Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: > SendConfigReq(1) state =3D Stopped > Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: ACCMAP[6] 0x00000000 > Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: MRU[4] 1500 > Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: MAGICNUM[6] 0x09fbbcd0 > Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: State change > Stopped --> Req-Sent > Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: deflink: > SendConfigReq(1) state =3D Req-Sent > Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: ACCMAP[6] 0x00000000 > Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: MRU[4] 1500 > Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: MAGICNUM[6] 0x09fbbcd0 > Mar 25 06:24:57 ffffff ppp[10593]: tun0: LCP: deflink: > SendConfigReq(1) state =3D Req-Sent >=20 > So now we're not getting _anything_ back from the provider. It looks > like `disable acfcomp` is what's squelching those errors, but frankly > I have no idea what acfcomp is or does. I suspect that the modem isn't > really speaking PPP, but I don't know how to try PPPoE or anything > else. At this point I am completely confounded. Any ideas? >=20 > (I'm off-list, so please CC me!) >=20 > Thanks :) > _______________________________________________ > 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 Thu Mar 24 23:25:53 2011 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 71F7D1065678 for ; Thu, 24 Mar 2011 23:25:53 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 34D718FC24 for ; Thu, 24 Mar 2011 23:25:53 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id A95F32639E78; Thu, 24 Mar 2011 18:26:19 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2n++HXMyLKN2; Thu, 24 Mar 2011 18:26:06 -0500 (CDT) Received: from [10.0.1.198] (70-89-202-1-invergrove-mn.hfc.comcastbusiness.net [70.89.202.1]) by server.cwis.biz (Postfix) with ESMTPSA id A26DF2639A41; Thu, 24 Mar 2011 18:26:06 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=iso-8859-1 From: Ryan Coleman In-Reply-To: <20110324230049.GB31958@thought.org> Date: Thu, 24 Mar 2011 18:25:39 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> References: <20110323164504.GA25317@thought.org> <20110324230049.GB31958@thought.org> To: Gary Kline X-Mailer: Apple Mail (2.1082) Cc: Fr?d?ric Perrin , freebsd-questions@freebsd.org Subject: Re: why does this simple counter fail? 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: Thu, 24 Mar 2011 23:25:53 -0000 Gary, you missed the put... fput($fp, $file); means you're dropping the = filename INTO the storage file. On Mar 24, 2011, at 6:00 PM, Gary Kline wrote: > On Wed, Mar 23, 2011 at 07:11:15PM +0100, Fr?d?ric Perrin wrote: >> Gary Kline writes: >>> Can any of you php hackers tell me why this simple self-hacked >>> counter bomb? >>=20 >> As others said, what does 'this simple counter bomb' means? >>=20 >>> $fp =3D fopen($directory.$file, "r+"); >>> flock($fp, 1); >>=20 >> You want an exclusive lock (LOCK_EX, which is 2 is you use some = ancient >> PHP), not a shared lock. >>=20 >> When updating the file: >> > fputs($fp, $count); >> > fputs($fp, "\n"); >>> fputs($fp, $file); >>=20 >> Why do you feel the need to store the filename inside the file = itself? >> You don't seem to need it after. >=20 >=20 > $file is passed from the calling php file. index.php is by-hand > set to >=20 > $file=3D'index';=20 >=20 > and so on. =20 >=20 > Because of my shoulder/typing woes, it was great that I got = clued in > above by Brad's thought that perhaos there were mis-matched " and "?>" tags. A simply recursive grepping found out that it = some=20 > places I had " instead of " . Adding the = "php"=20 > fixed everything. =20 >=20 > Finally, you're right; this really, really is ancient php. > Somthing i found pre-2004 and hacked until it worked. The > counter is missings lots of features, but I'll fix that pretty > soon. >=20 > thanks to everybody , >=20 >=20 >>=20 >> --=20 >> Fr=E9d=E9ric Perrin -- http://tar-jx.bz >>=20 >> _______________________________________________ >> 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 Service = Unix > Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.98a release of Jottings: http://jottings.thought.org >=20 > _______________________________________________ > 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 Fri Mar 25 02:03:38 2011 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 CD674106566C for ; Fri, 25 Mar 2011 02:03:38 +0000 (UTC) (envelope-from lcampbell@ironclad.mobi) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4F0958FC15 for ; Fri, 25 Mar 2011 02:03:37 +0000 (UTC) Received: by bwz12 with SMTP id 12so755105bwz.13 for ; Thu, 24 Mar 2011 19:03:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.74.11 with SMTP id s11mr187995bkj.43.1301018616863; Thu, 24 Mar 2011 19:03:36 -0700 (PDT) Received: by 10.204.175.2 with HTTP; Thu, 24 Mar 2011 19:03:36 -0700 (PDT) In-Reply-To: References: Date: Thu, 24 Mar 2011 20:03:36 -0600 Message-ID: From: Lawton Campbell To: Ryan Coleman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: ppp.conf for Verizon Mifi 2200? 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: Fri, 25 Mar 2011 02:03:38 -0000 On Thu, Mar 24, 2011 at 5:24 PM, Ryan Coleman wr= ote: > Sounds alot like my query for the Virgin Mobile one ... I got NOWHERE. > :\ Haha yeah, I was really excited when I originally found your thread. What does yours do if you give it my ppp.conf (with your phone/authname/authkey subbed in)? Does it also get stuck sending LCP requests for configuration and never receiving an intelligible reply? > On Mar 24, 2011, at 5:31 PM, Lawton Campbell wrote: > >> Hey freebsd-questions! >> >> I've been trying to get a Verizon MiFi 2200 to work on my 8.2-RELEASE >> box for the past couple of days and can't seem to get the ppp.conf to >> work properly. I found a couple of recent threads about similar >> devices (apparently it's just novatel stuff that gets repackaged for >> different 3G providers) -- >> >> http://www.mail-archive.com/freebsd-net@freebsd.org/msg36160.html >> >> It doesn't look like they got the Virgin Mobile version of the device >> working, unfortunately. I'm stuck in a slightly different place, so >> making a new thread (dunno if freebsd-net or freebsd-questions is more >> appropriate, so erring to -questions). Anyway, let's get started! >> Going to walkthrough what I have so far, then finally get to where I'm >> stuck and detail some questions. >> >> # THUS FAR >> >> One quirk of the device is that you have to detach /dev/cd0 when it >> mounts to expose the modem interface for u3g to grab. Looking at >> usbconfig, the relevant identifiers for the device are >> >> =A0idVendor =3D 0x1410 >> =A0idProduct =3D 0x5041 >> >> AFAIK, u3gstub is supposed to take care of this automagically, but >> perhaps either I've misread the man page or it's missing the >> vendor/product IDs. In any case, it's probably easy enough to fix with >> a devd rule, so I'm not too worried about it. In any case, when the >> device is attached, `camcontrol eject cd0` (or whatever cd# is >> generated) has to be run -- >> >> root@ffffff> camcontrol eject cd0 >> >> Which gives us -- >> >> Mar 25 06:06:36 ffffff kernel: ugen1.2: at usbus= 1 >> Mar 25 06:06:36 ffffff kernel: u3g0: on usbus1 >> Mar 25 06:06:36 ffffff kernel: u3g0: Found 5 ports. >> >> root@ffffff> ls /dev/cuaU0.* >> /dev/cuaU0.0 =A0 =A0 =A0/dev/cuaU0.1.init /dev/cuaU0.2.lock /dev/cuaU0.4 >> /dev/cuaU0.0.init /dev/cuaU0.1.lock /dev/cuaU0.3 =A0 =A0 =A0/dev/cuaU0.4= .init >> /dev/cuaU0.0.lock /dev/cuaU0.2 =A0 =A0 =A0/dev/cuaU0.3.init /dev/cuaU0.4= .lock >> /dev/cuaU0.1 =A0 =A0 =A0/dev/cuaU0.2.init /dev/cuaU0.3.lock >> >> I just grabbed the stock ppp.conf from the handbook >> (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html) >> with some bits removed (the login chat script, specifically -- we'll >> know if that's broken when we get there). >> >> root@ffffff> cat /etc/ppp/ppp.conf >> default: >> set log Phase Chat LCP IPCP CCP tun command >> ident user-ppp VERSION (built COMPILATIONDATE) >> set speed 115200 >> set device /dev/cuaU0.0 >> set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ >> =A0 =A0 =A0 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" >> >> set timeout 180 >> enable dns >> >> mifi: >> set phone "#777" >> set authname "XXXMYNUMBER@vzw3g.com" >> set authkey "vzw" >> >> set ifaddr 10.23.0.1 10.23.0.2 255.255.255.255 0.0.0.0 >> add default HISADDR >> >> However, when I run `ppp -ddial mifi`, I get -- >> >> Mar 25 06:17:43 ffffff ppp[10491]: tun0: Chat: Send: AT^M >> Mar 25 06:17:43 ffffff ppp[10491]: tun0: Chat: Expect(5): OK >> Mar 25 06:17:49 ffffff ppp[10491]: tun0: Chat: Expect timeout >> Mar 25 06:17:49 ffffff ppp[10491]: tun0: Warning: Chat script failed >> >> Which means we're not even communicating with the modem. Kinda weird >> -- I think it's a problem in the dial script. Let's just take out the >> non-default dial script and see what happens: >> >> root@ffffff> cat /etc/ppp/ppp.conf >> default: >> set log Phase Chat LCP IPCP CCP tun command >> ident user-ppp VERSION (built COMPILATIONDATE) >> set speed 115200 >> set device /dev/cuaU0.1 >> >> set timeout 180 >> enable dns >> >> mifi: >> set phone "#777" >> set authname "XXXMYNUMBER@vzw3g.com" >> set authkey "vzw" >> >> set ifaddr 10.23.0.1 10.23.0.2 255.255.255.255 0.0.0.0 >> add default HISADDR >> >> Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: closed -> openi= ng >> Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: Connected! >> Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: opening -> dial >> Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: dial -> carrier >> Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: /dev/cuaU0.1 >> doesn't support CD >> Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: carrier -> logi= n >> Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: login -> lcp >> Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: FSM: Using "deflink" as >> a transport >> Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: deflink: State change >> Initial --> Closed >> Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: deflink: State change >> Closed --> Stopped >> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: LayerStart >> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: >> SendConfigReq(1) state =3D Stopped >> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: =A0ACFCOMP[2] >> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: =A0PROTOCOMP[2] >> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: =A0ACCMAP[6] 0x00000000 >> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: =A0MRU[4] 1500 >> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: =A0MAGICNUM[6] 0x72c1cbf0 >> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: State change >> Stopped --> Req-Sent >> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: deflink: >> SendConfigReq(1) state =3D Req-Sent >> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: =A0ACFCOMP[2] >> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: =A0PROTOCOMP[2] >> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: =A0ACCMAP[6] 0x00000000 >> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: =A0MRU[4] 1500 >> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: =A0MAGICNUM[6] 0x72c1cbf0 >> Mar 25 06:20:21 ffffff ppp[10518]: tun0: Phase: Unknown protocol >> 0x0013 (reserved (transparency inefficient)) >> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: deflink: >> SendProtocolRej(1) state =3D Req-Sent >> >> Aha! So we've got a connection to the provider at this point, but >> they're not responding properly to our LCP configuration requests. Not >> quite sure why, to be honest. A little bit of googling turns up this >> thread: >> >> http://lists.freebsd.org/pipermail/freebsd-usb/2009-August/007241.html >> >> Which suggests adding "disable pred1 deflate deflate24 protocomp >> acfcomp shortseq vj mppe" to the ppp.conf. After making this >> modification, I get the following response -- >> >> Mar 25 06:24:49 ffffff ppp[10593]: tun0: LCP: deflink: State change >> Closed --> Stopped >> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: LayerStart >> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: >> SendConfigReq(1) state =3D Stopped >> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: =A0ACCMAP[6] 0x00000000 >> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: =A0MRU[4] 1500 >> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: =A0MAGICNUM[6] 0x09fbbcd0 >> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: State change >> Stopped --> Req-Sent >> Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: deflink: >> SendConfigReq(1) state =3D Req-Sent >> Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: =A0ACCMAP[6] 0x00000000 >> Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: =A0MRU[4] 1500 >> Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: =A0MAGICNUM[6] 0x09fbbcd0 >> Mar 25 06:24:57 ffffff ppp[10593]: tun0: LCP: deflink: >> SendConfigReq(1) state =3D Req-Sent >> >> So now we're not getting _anything_ back from the provider. It looks >> like `disable acfcomp` is what's squelching those errors, but frankly >> I have no idea what acfcomp is or does. I suspect that the modem isn't >> really speaking PPP, but I don't know how to try PPPoE or anything >> else. At this point I am completely confounded. Any ideas? >> >> (I'm off-list, so please CC me!) >> >> Thanks :) >> _______________________________________________ >> 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 Fri Mar 25 02:12:44 2011 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 EA2A91065670 for ; Fri, 25 Mar 2011 02:12:44 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id B26298FC08 for ; Fri, 25 Mar 2011 02:12:44 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id EE3862639E91; Thu, 24 Mar 2011 21:13:10 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LIBMhuQamOnm; Thu, 24 Mar 2011 21:12:55 -0500 (CDT) Received: from [10.0.1.198] (70-89-202-1-invergrove-mn.hfc.comcastbusiness.net [70.89.202.1]) by server.cwis.biz (Postfix) with ESMTPSA id EEA232639E8F; Thu, 24 Mar 2011 21:12:54 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ryan Coleman In-Reply-To: Date: Thu, 24 Mar 2011 21:12:27 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <34738714-6D99-46EF-8D40-55DB1B821287@d3photography.com> References: To: Lawton Campbell X-Mailer: Apple Mail (2.1082) Cc: freebsd-questions@freebsd.org Subject: Re: ppp.conf for Verizon Mifi 2200? 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: Fri, 25 Mar 2011 02:12:45 -0000 No clue, I haven't touched it in two weeks. I'll try again next week - = after I wrap another shoot where I wish I had it. -- Ryan On Mar 24, 2011, at 9:03 PM, Lawton Campbell wrote: > On Thu, Mar 24, 2011 at 5:24 PM, Ryan Coleman = wrote: >> Sounds alot like my query for the Virgin Mobile one ... I got = NOWHERE. >> :\ >=20 > Haha yeah, I was really excited when I originally found your thread. > What does yours do if you give it my ppp.conf (with your > phone/authname/authkey subbed in)? Does it also get stuck sending LCP > requests for configuration and never receiving an intelligible reply? >=20 >> On Mar 24, 2011, at 5:31 PM, Lawton Campbell wrote: >>=20 >>> Hey freebsd-questions! >>>=20 >>> I've been trying to get a Verizon MiFi 2200 to work on my = 8.2-RELEASE >>> box for the past couple of days and can't seem to get the ppp.conf = to >>> work properly. I found a couple of recent threads about similar >>> devices (apparently it's just novatel stuff that gets repackaged for >>> different 3G providers) -- >>>=20 >>> http://www.mail-archive.com/freebsd-net@freebsd.org/msg36160.html >>>=20 >>> It doesn't look like they got the Virgin Mobile version of the = device >>> working, unfortunately. I'm stuck in a slightly different place, so >>> making a new thread (dunno if freebsd-net or freebsd-questions is = more >>> appropriate, so erring to -questions). Anyway, let's get started! >>> Going to walkthrough what I have so far, then finally get to where = I'm >>> stuck and detail some questions. >>>=20 >>> # THUS FAR >>>=20 >>> One quirk of the device is that you have to detach /dev/cd0 when it >>> mounts to expose the modem interface for u3g to grab. Looking at >>> usbconfig, the relevant identifiers for the device are >>>=20 >>> idVendor =3D 0x1410 >>> idProduct =3D 0x5041 >>>=20 >>> AFAIK, u3gstub is supposed to take care of this automagically, but >>> perhaps either I've misread the man page or it's missing the >>> vendor/product IDs. In any case, it's probably easy enough to fix = with >>> a devd rule, so I'm not too worried about it. In any case, when the >>> device is attached, `camcontrol eject cd0` (or whatever cd# is >>> generated) has to be run -- >>>=20 >>> root@ffffff> camcontrol eject cd0 >>>=20 >>> Which gives us -- >>>=20 >>> Mar 25 06:06:36 ffffff kernel: ugen1.2: at = usbus1 >>> Mar 25 06:06:36 ffffff kernel: u3g0: on usbus1 >>> Mar 25 06:06:36 ffffff kernel: u3g0: Found 5 ports. >>>=20 >>> root@ffffff> ls /dev/cuaU0.* >>> /dev/cuaU0.0 /dev/cuaU0.1.init /dev/cuaU0.2.lock /dev/cuaU0.4 >>> /dev/cuaU0.0.init /dev/cuaU0.1.lock /dev/cuaU0.3 = /dev/cuaU0.4.init >>> /dev/cuaU0.0.lock /dev/cuaU0.2 /dev/cuaU0.3.init = /dev/cuaU0.4.lock >>> /dev/cuaU0.1 /dev/cuaU0.2.init /dev/cuaU0.3.lock >>>=20 >>> I just grabbed the stock ppp.conf from the handbook >>> = (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html) >>> with some bits removed (the login chat script, specifically -- we'll >>> know if that's broken when we get there). >>>=20 >>> root@ffffff> cat /etc/ppp/ppp.conf >>> default: >>> set log Phase Chat LCP IPCP CCP tun command >>> ident user-ppp VERSION (built COMPILATIONDATE) >>> set speed 115200 >>> set device /dev/cuaU0.0 >>> set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ >>> \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" >>>=20 >>> set timeout 180 >>> enable dns >>>=20 >>> mifi: >>> set phone "#777" >>> set authname "XXXMYNUMBER@vzw3g.com" >>> set authkey "vzw" >>>=20 >>> set ifaddr 10.23.0.1 10.23.0.2 255.255.255.255 0.0.0.0 >>> add default HISADDR >>>=20 >>> However, when I run `ppp -ddial mifi`, I get -- >>>=20 >>> Mar 25 06:17:43 ffffff ppp[10491]: tun0: Chat: Send: AT^M >>> Mar 25 06:17:43 ffffff ppp[10491]: tun0: Chat: Expect(5): OK >>> Mar 25 06:17:49 ffffff ppp[10491]: tun0: Chat: Expect timeout >>> Mar 25 06:17:49 ffffff ppp[10491]: tun0: Warning: Chat script failed >>>=20 >>> Which means we're not even communicating with the modem. Kinda weird >>> -- I think it's a problem in the dial script. Let's just take out = the >>> non-default dial script and see what happens: >>>=20 >>> root@ffffff> cat /etc/ppp/ppp.conf >>> default: >>> set log Phase Chat LCP IPCP CCP tun command >>> ident user-ppp VERSION (built COMPILATIONDATE) >>> set speed 115200 >>> set device /dev/cuaU0.1 >>>=20 >>> set timeout 180 >>> enable dns >>>=20 >>> mifi: >>> set phone "#777" >>> set authname "XXXMYNUMBER@vzw3g.com" >>> set authkey "vzw" >>>=20 >>> set ifaddr 10.23.0.1 10.23.0.2 255.255.255.255 0.0.0.0 >>> add default HISADDR >>>=20 >>> Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: closed -> = opening >>> Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: Connected! >>> Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: opening -> = dial >>> Mar 25 06:20:15 ffffff ppp[10518]: tun0: Phase: deflink: dial -> = carrier >>> Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: = /dev/cuaU0.1 >>> doesn't support CD >>> Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: carrier -> = login >>> Mar 25 06:20:16 ffffff ppp[10518]: tun0: Phase: deflink: login -> = lcp >>> Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: FSM: Using "deflink" = as >>> a transport >>> Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: deflink: State change >>> Initial --> Closed >>> Mar 25 06:20:16 ffffff ppp[10518]: tun0: LCP: deflink: State change >>> Closed --> Stopped >>> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: LayerStart >>> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: >>> SendConfigReq(1) state =3D Stopped >>> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: ACFCOMP[2] >>> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: PROTOCOMP[2] >>> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: ACCMAP[6] 0x00000000 >>> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: MRU[4] 1500 >>> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: MAGICNUM[6] = 0x72c1cbf0 >>> Mar 25 06:20:17 ffffff ppp[10518]: tun0: LCP: deflink: State change >>> Stopped --> Req-Sent >>> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: deflink: >>> SendConfigReq(1) state =3D Req-Sent >>> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: ACFCOMP[2] >>> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: PROTOCOMP[2] >>> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: ACCMAP[6] 0x00000000 >>> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: MRU[4] 1500 >>> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: MAGICNUM[6] = 0x72c1cbf0 >>> Mar 25 06:20:21 ffffff ppp[10518]: tun0: Phase: Unknown protocol >>> 0x0013 (reserved (transparency inefficient)) >>> Mar 25 06:20:21 ffffff ppp[10518]: tun0: LCP: deflink: >>> SendProtocolRej(1) state =3D Req-Sent >>>=20 >>> Aha! So we've got a connection to the provider at this point, but >>> they're not responding properly to our LCP configuration requests. = Not >>> quite sure why, to be honest. A little bit of googling turns up this >>> thread: >>>=20 >>> = http://lists.freebsd.org/pipermail/freebsd-usb/2009-August/007241.html >>>=20 >>> Which suggests adding "disable pred1 deflate deflate24 protocomp >>> acfcomp shortseq vj mppe" to the ppp.conf. After making this >>> modification, I get the following response -- >>>=20 >>> Mar 25 06:24:49 ffffff ppp[10593]: tun0: LCP: deflink: State change >>> Closed --> Stopped >>> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: LayerStart >>> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: >>> SendConfigReq(1) state =3D Stopped >>> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: ACCMAP[6] 0x00000000 >>> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: MRU[4] 1500 >>> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: MAGICNUM[6] = 0x09fbbcd0 >>> Mar 25 06:24:50 ffffff ppp[10593]: tun0: LCP: deflink: State change >>> Stopped --> Req-Sent >>> Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: deflink: >>> SendConfigReq(1) state =3D Req-Sent >>> Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: ACCMAP[6] 0x00000000 >>> Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: MRU[4] 1500 >>> Mar 25 06:24:54 ffffff ppp[10593]: tun0: LCP: MAGICNUM[6] = 0x09fbbcd0 >>> Mar 25 06:24:57 ffffff ppp[10593]: tun0: LCP: deflink: >>> SendConfigReq(1) state =3D Req-Sent >>>=20 >>> So now we're not getting _anything_ back from the provider. It looks >>> like `disable acfcomp` is what's squelching those errors, but = frankly >>> I have no idea what acfcomp is or does. I suspect that the modem = isn't >>> really speaking PPP, but I don't know how to try PPPoE or anything >>> else. At this point I am completely confounded. Any ideas? >>>=20 >>> (I'm off-list, so please CC me!) >>>=20 >>> Thanks :) >>> _______________________________________________ >>> 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 From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 05:36:32 2011 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 49B4F1065670 for ; Fri, 25 Mar 2011 05:36:32 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id F2B348FC0A for ; Fri, 25 Mar 2011 05:36:31 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id C46A0E80979; Thu, 24 Mar 2011 22:36:30 -0700 (PDT) Date: Thu, 24 Mar 2011 22:36:30 -0700 From: Gary Kline To: Ryan Coleman Message-ID: <20110325053630.GA6722@thought.org> References: <20110323164504.GA25317@thought.org> <20110324230049.GB31958@thought.org> <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24++ years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Fr?d?ric Perrin , freebsd-questions@freebsd.org Subject: Re: why does this simple counter fail? 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: Fri, 25 Mar 2011 05:36:32 -0000 On Thu, Mar 24, 2011 at 06:25:39PM -0500, Ryan Coleman wrote: > Gary, you missed the put... fput($fp, $file); means you're dropping the filename INTO the storage file. okay. [maybe]. i think what the script does is create ./countdir/$file ; in this case, ./countdir/index where i create the file named "index\n" and below it the integer count. e.g.: in directory countdir, in file index is: index 60311 to track the hits for my homepage. in defense of this crude hack with no error-checking is that i have used the same script in at least three other virtual thought.org websites. i was wrong is saying that the script bombed; it just failed; the reason was that the initial tag had been " > > On Mar 24, 2011, at 6:00 PM, Gary Kline wrote: > > > On Wed, Mar 23, 2011 at 07:11:15PM +0100, Fr?d?ric Perrin wrote: > >> Gary Kline writes: > >>> Can any of you php hackers tell me why this simple self-hacked > >>> counter bomb? > >> > >> As others said, what does 'this simple counter bomb' means? > >> > >>> $fp = fopen($directory.$file, "r+"); > >>> flock($fp, 1); > >> > >> You want an exclusive lock (LOCK_EX, which is 2 is you use some ancient > >> PHP), not a shared lock. > >> > >> When updating the file: > >> > fputs($fp, $count); > >> > fputs($fp, "\n"); > >>> fputs($fp, $file); > >> > >> Why do you feel the need to store the filename inside the file itself? > >> You don't seem to need it after. > > > > > > $file is passed from the calling php file. index.php is by-hand > > set to > > > > $file='index'; > > > > and so on. > > > > Because of my shoulder/typing woes, it was great that I got clued in > > above by Brad's thought that perhaos there were mis-matched " > and "?>" tags. A simply recursive grepping found out that it some > > places I had " instead of " . Adding the "php" > > fixed everything. > > > > Finally, you're right; this really, really is ancient php. > > Somthing i found pre-2004 and hacked until it worked. The > > counter is missings lots of features, but I'll fix that pretty > > soon. > > > > thanks to everybody , > > > > > >> > >> -- > >> Frédéric Perrin -- http://tar-jx.bz > >> > >> _______________________________________________ > >> 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 > > Journey Toward the Dawn, E-Book: http://www.thought.org > > The 7.98a release of Jottings: http://jottings.thought.org > > > > _______________________________________________ > > 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 Journey Toward the Dawn, E-Book: http://www.thought.org The 7.98a release of Jottings: http://jottings.thought.org From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 08:45:22 2011 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 B0E80106566B for ; Fri, 25 Mar 2011 08:45:22 +0000 (UTC) (envelope-from phpwolf@yahoo.com) Received: from web161202.mail.bf1.yahoo.com (web161202.mail.bf1.yahoo.com [98.139.210.129]) by mx1.freebsd.org (Postfix) with SMTP id 52AB18FC1B for ; Fri, 25 Mar 2011 08:45:22 +0000 (UTC) Received: (qmail 35357 invoked by uid 60001); 25 Mar 2011 08:18:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1301041120; bh=elAjUqvINcI9dg8mECg+vNkN28c9LlUp8QtK7igMjY0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=nUUglBeEq05uFR7HL3mandZRsOU+QSfpHwFjQ+1p4FpSOwdQy9HNsyLzDeyU3IIwyYf5+XMYXFU04L1AF9g2Wp8iwhC2JMGynlKPotNH9SE9rthjsAD43ML8mzjDbL2+EfuGl6FUufPyTm94p8VROZ2R2KmKVLaqG3LnHcm4tag= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=WVV0ClsHnmCw7Dpz82h1znNt8T8dPAn69uFr84XCY+6+xLi9ERfd2MyCMRjFmlRhD7Yh1yMq0TEI/d+ozYdDmwrYrWoZ30+FixAoDrVm4gVZvVRioGacrY8xYAjl3k3a6ymmBSptDdLhMIIz0OYV8ntw6fSEzrLz+tjDXpt1kn8=; Message-ID: <11035.34388.qm@web161202.mail.bf1.yahoo.com> X-YMail-OSG: xPSdVKcVM1lnq4ot1Suwgvo4qhIVUR1OOlgQwymlzczSnuS ZhL4I.6tPt_ekMfsxnS3iOedSaLK7kNAFQTdpzaXk81YWYOFrxQdAcS1R90T eni5OrQhjVBXqxVR8v4s0.z3_EXysfPCc1PwQUpfA.wpB9_seEQ_JJTTJT4R zm.iQGaGfvZ.R_ACy82cyh4PwXP6wPseI1_kNxABSeHzWGgYV2dcUA.nbDr7 sQ3lMcS0.c7j_3Ah145EHNL8UxuvWU0dMfcrvh6_5F7MWywqMOMFYF9qd1sn 5R22PnrkO Received: from [92.82.96.203] by web161202.mail.bf1.yahoo.com via HTTP; Fri, 25 Mar 2011 01:18:39 PDT X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.109.295617 Date: Fri, 25 Mar 2011 01:18:39 -0700 (PDT) From: Andi Anton To: freebsd-questions@FreeBSD.org MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 25 Mar 2011 11:13:27 +0000 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: BTX loader - cant find sources 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: Fri, 25 Mar 2011 08:45:22 -0000 Hi guys, Can you tell me, please, where can I found the sources for the freeBSD BTX bootloader? I have some BIOS SATA hdd detection problems (the BTX loader hangs just ater it founds the hdd) and I want to recompile and debug the BTX loader in order to fix my problem. Thanks in advance, phpwolf From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 11:33:38 2011 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 B8501106564A for ; Fri, 25 Mar 2011 11:33:38 +0000 (UTC) (envelope-from b.smeelen@ose.nl) Received: from mail.ose.nl (mail.ose.nl [212.178.134.164]) by mx1.freebsd.org (Postfix) with ESMTP id 59AF68FC0C for ; Fri, 25 Mar 2011 11:33:38 +0000 (UTC) Received: from localhost ([127.0.0.1]) by mail.ose.nl (using TLSv1/SSLv3 with cipher AES256-SHA (256 bits)) for freebsd-questions@freebsd.org; Fri, 25 Mar 2011 12:33:35 +0100 Message-ID: <4D8C7D8F.9000501@ose.nl> Date: Fri, 25 Mar 2011 12:33:35 +0100 From: Bas Smeelen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <11035.34388.qm@web161202.mail.bf1.yahoo.com> In-Reply-To: <11035.34388.qm@web161202.mail.bf1.yahoo.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: BTX loader - cant find sources 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: Fri, 25 Mar 2011 11:33:38 -0000 On 03/25/2011 09=3A18 AM=2C Andi Anton wrote=3A =3E Hi guys=2C =3E =3E Can you tell me=2C please=2C where can I found the sources for the free= BSD BTX bootloader=3F Hi If you have the sources installed=2C it=27s in /usr/src/sys/boot/i386/btx/btxldr/ I guess =3E I have some BIOS SATA hdd detection problems =28the BTX loader hangs ju= st ater it founds the hdd=29 and I want to recompile and debug the BTX load= er in order to fix my problem=2E =3E =3E Thanks in advance=2C =3E phpwolf DISCLAIMER=3A This e-mail is for the intended recipient=28s=29 only=2E Acce= ss=2C disclosure=2C copying=2C distribution or reliance on any of it by anyone else is prohibited=2E If yo= u have received it by mistake please let us know by reply and then delete it from your system= =2E From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 11:36:49 2011 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 94E08106589A for ; Fri, 25 Mar 2011 11:36:49 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 47F218FC17 for ; Fri, 25 Mar 2011 11:36:49 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 3EFD72639F21; Fri, 25 Mar 2011 06:37:17 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yvvqh6CMHjTk; Fri, 25 Mar 2011 06:37:04 -0500 (CDT) Received: from [10.0.1.198] (70-89-202-1-invergrove-mn.hfc.comcastbusiness.net [70.89.202.1]) by server.cwis.biz (Postfix) with ESMTPSA id 2395E2639F1F; Fri, 25 Mar 2011 06:37:04 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=iso-8859-1 From: Ryan Coleman In-Reply-To: <20110325053630.GA6722@thought.org> Date: Fri, 25 Mar 2011 06:36:34 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20110323164504.GA25317@thought.org> <20110324230049.GB31958@thought.org> <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> <20110325053630.GA6722@thought.org> To: Gary Kline X-Mailer: Apple Mail (2.1082) Cc: Fr?d?ric Perrin , freebsd-questions@freebsd.org Subject: Re: why does this simple counter fail? 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: Fri, 25 Mar 2011 11:36:49 -0000 You're using a completely stock php.ini file. Look for short tags. Turn that on. On Thu, Mar 24, 2011 at 06:25:39PM -0500, Ryan Coleman wrote: >> Gary, you missed the put... fput($fp, $file); means you're dropping = the filename INTO the storage file. >=20 >=20 > okay. [maybe]. i think what the script does is create > ./countdir/$file ; in this case, ./countdir/index where i create > the file named "index\n" and below it the integer count. e.g.: >=20 > in directory countdir, in file index is: >=20 > index > 60311 >=20 > to track the hits for my homepage. in defense of this crude > hack with no error-checking is that i have used the same script > in at least three other virtual thought.org websites. =20 >=20 > i was wrong is saying that the script bombed; it just failed; > the reason was that the initial tag had been " "=20 > gary >=20 >=20 >>=20 >>=20 >> On Mar 24, 2011, at 6:00 PM, Gary Kline wrote: >>=20 >>> On Wed, Mar 23, 2011 at 07:11:15PM +0100, Fr?d?ric Perrin wrote: >>>> Gary Kline writes: >>>>> Can any of you php hackers tell me why this simple self-hacked >>>>> counter bomb? >>>>=20 >>>> As others said, what does 'this simple counter bomb' means? >>>>=20 >>>>> $fp =3D fopen($directory.$file, "r+"); >>>>> flock($fp, 1); >>>>=20 >>>> You want an exclusive lock (LOCK_EX, which is 2 is you use some = ancient >>>> PHP), not a shared lock. >>>>=20 >>>> When updating the file: >>>> > fputs($fp, $count); >>>> > fputs($fp, "\n"); >>>>> fputs($fp, $file); >>>>=20 >>>> Why do you feel the need to store the filename inside the file = itself? >>>> You don't seem to need it after. >>>=20 >>>=20 >>> $file is passed from the calling php file. index.php is by-hand >>> set to >>>=20 >>> $file=3D'index';=20 >>>=20 >>> and so on. =20 >>>=20 >>> Because of my shoulder/typing woes, it was great that I got = clued in >>> above by Brad's thought that perhaos there were mis-matched ">> and "?>" tags. A simply recursive grepping found out that it = some=20 >>> places I had " instead of " . Adding the = "php"=20 >>> fixed everything. =20 >>>=20 >>> Finally, you're right; this really, really is ancient php. >>> Somthing i found pre-2004 and hacked until it worked. The >>> counter is missings lots of features, but I'll fix that pretty >>> soon. >>>=20 >>> thanks to everybody , >>>=20 >>>=20 >>>>=20 >>>> --=20 >>>> Fr=E9d=E9ric Perrin -- http://tar-jx.bz >>>>=20 >>>> _______________________________________________ >>>> 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 = Service Unix >>> Journey Toward the Dawn, E-Book: http://www.thought.org >>> The 7.98a release of Jottings: http://jottings.thought.org >>>=20 >>> _______________________________________________ >>> 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 >=20 > --=20 > Gary Kline kline@thought.org http://www.thought.org Public Service = Unix > Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.98a release of Jottings: http://jottings.thought.org >=20 > _______________________________________________ > 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 Fri Mar 25 12:12:16 2011 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 940EB106564A for ; Fri, 25 Mar 2011 12:12:16 +0000 (UTC) (envelope-from sent7240@respread.com) Received: from smtp6156.respread.com (smtp6156.respread.com [203.169.239.156]) by mx1.freebsd.org (Postfix) with ESMTP id 048F98FC15 for ; Fri, 25 Mar 2011 12:12:15 +0000 (UTC) Received: from reasonable6156 ([203.169.239.156]) by smtp6156.respread.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 25 Mar 2011 20:00:19 +0800 From: "PriceAngels.com" To: "questions@FreeBSD.org" Date: Fri, 25 Mar 2011 20:00:19 +0800 MIME-Version: 1.0 X-Mailer: aspNetEmail ver 3.6.0.99 X-Spread-CampaignId: 62759 X-Spread-SubscriberId: 37958957 X-Spread-SpreaderId: 7240 X-Powered-By: Reasonable Spread (http://ReasonableSpread.com/) X-Spread-Engine-Build: 4.0.4008.18622 Message-ID: X-OriginalArrivalTime: 25 Mar 2011 12:00:19.0502 (UTC) FILETIME=[3652A4E0:01CBEAE4] Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Happy Easter! Get one Sport Gadget to Enjoy Outdoor Activity, Many Gadgets as low as $1.64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chanvilive@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 12:12:16 -0000 =0D=0DIf you cannot view this mail please click here ( http://a=2Ers= -tk=2Ecom/7240-62759/priceangels=2Enewsletter/Happy_Easter=21_Get_one_Spo= rt_Gadget_to_Enjoy_Outdoor_Activity_Many_Gadgets_as_low_as_=241=2E64/web=2E= aspx ) =0D=0D=09 ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/camid/= 62759/www=2Epriceangels=2Ecom/index=2Ehtml?home=3Dtrue ) =09WorldWide Fre= e Shipping =0D=0D=09Deals of the Week ( http://t=2Ers-tk=2Ecom/t=2Easp= x/subid/37958957/camid/62759/www=2Epriceangels=2Ecom/Special-DealofWeek=2E= html ) =09New Arrivals ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/c= amid/62759/www=2Epriceangels=2Ecom/productlist=2Ehtml?newlog=3Dtrue ) =09= =240=2E99 Gadgets ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/camid/= 62759/www=2Epriceangels=2Ecom/productlist=2Ehtml?gadgets=3Dtrue ) =09My A= ccount ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/camid/62759/www=2E= priceangels=2Ecom/myAccount=2Eaction ) =09Support ( http://t=2Ers-tk=2Eco= m/t=2Easpx/subid/37958957/camid/62759/www=2Epriceangels=2Ecom/CSExpress=2E= action ) =0D=0D ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/camid= /62759/www=2Epriceangels=2Ecom/Life_Gadgets_Sports_Fan_t=2Ehtml?page=3D3c= hildtypeid=3D187orderby=3D1 ) =0D=0D=09Sport gadgets ( http://t=2Ers-tk=2E= com/t=2Easpx/subid/37958957/camid/62759/www=2Epriceangels=2Ecom/Life_Gadg= ets_Sports_Fan_t=2Ehtml?page=3D1childtypeid=3D187orderby=3D1 ) =0D=0D=09= ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/camid/62759/www=2Eprice= angels=2Ecom/Durable_Polyester_Anti-Slip_Outdoor_Full_Fingered_Gloves_Pai= r_Camouflage__p18438=2Ehtml ) =09 ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid= /37958957/camid/62759/www=2Epriceangels=2Ecom/Military_Octagon_Shaped_Woo= dland_Camouflage_Hat-Green_59cm_Girth__p18841=2Ehtml ) =09 ( http://t=2Er= s-tk=2Ecom/t=2Easpx/subid/37958957/camid/62759/www=2Epriceangels=2Ecom/En= vironmental-Friendly_Non-Toxic_Camouflage_Mask_with_a_Elastic_Strap_p1538= 5=2Ehtml ) =09 ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/camid/627= 59/www=2Epriceangels=2Ecom/Outdoor_Sports_Polyester_CS_Protective_Goggles= _with_Strap-Color_Lens_p19270=2Ehtml ) =0D=0D=09Durable Polyester Anti-S= lip Outdoor Full Fingered Gloves(Pair/Camouflage) ( http://t=2Ers-tk=2Eco= m/t=2Easpx/subid/37958957/camid/62759/www=2Epriceangels=2Ecom/Durable_Pol= yester_Anti-Slip_Outdoor_Full_Fingered_Gloves_Pair_Camouflage__p18438=2Eh= tml ) =09Military Octagon Shaped Woodland Camouflage Hat-Green(59cm Girth= ) ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/camid/62759/www=2Epric= eangels=2Ecom/Military_Octagon_Shaped_Woodland_Camouflage_Hat-Green_59cm_= Girth__p18841=2Ehtml ) =09Environmental-Friendly Non-Toxic Camouflage Mas= k with a Elastic Strap ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/c= amid/62759/www=2Epriceangels=2Ecom/Environmental-Friendly_Non-Toxic_Camou= flage_Mask_with_a_Elastic_Strap_p15385=2Ehtml ) =09Outdoor Sports Polyest= er CS Protective Goggles with Strap-Color Lens ( http://t=2Ers-tk=2Ecom/t= =2Easpx/subid/37958957/camid/62759/www=2Epriceangels=2Ecom/Outdoor_Sports= _Polyester_CS_Protective_Goggles_with_Strap-Color_Lens_p19270=2Ehtml ) =0D= =0D=09 =243=2E75 =09 =244=2E51 =09 =245=2E88 =09 =245=2E45 =0D=0D = ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/camid/62759/www=2Epricea= ngels=2Ecom/Happy-Easter=2Ehtml ) =0D=0D Get Free Gift Program =0D=0D=09= ( http://t=2Ers-tk=2Ecom/t=2Easpx/subid/37958957/camid/62759/www=2Eprice= angels=2Ecom/Get-Free-Gift=2Ehtml ) =0D=0DPlease note that product pric= es and availability are subject to change=2E Prices and availability were= accurate at the time this newsletter was sent; however, they may differ = from those you see when you visit PriceAngels=2Ecom ( http://t=2Ers-tk=2E= com/t=2Easpx/subid/37958957/camid/62759/www=2Ebenchmarkemail=2Ecom/c/l?u=3D= 142C83e=3DB0CDCc=3D1961Dt=3D0email=3DFYozfADIBnzrNRtBNYHO6HnlkRjLUbPe )=2E= Please do not reply to this email, as we are not able to respond to mess= ages sent to this address=2E Copyright 2011 PriceAngels=2Ecom=2E All rig= hts reserved=2E =0D=0D=09 Forward this email ( http://a=2Ers-tk=2Ecom= /7240-62759/priceangels=2Enewsletter/Happy_Easter=21_Get_one_Sport_Gadget= _to_Enjoy_Outdoor_Activity_Many_Gadgets_as_low_as_=241=2E64/forward=2Easp= x ) Update Email =26 Profile ( http://s=2Ers-tk=2Ecom/SubscribeFormDetail= =2Easpx?ens=3D/qFTgMxRD8qjOs2oR1+7nQ=3D=3D=26type=3Dprofile ) Unsubscribe= ( http://s=2Ers-tk=2Ecom/Unsubscribe=2Easpx?sub=3D37958957=26user=3D7240= =26campid=3D62759=26type=3Dh ) =09 ( http://w=2Ers-tk=2Ecom//about=2Easp= x?subid=3D37958957=26campid=3D62759 ) From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 12:47:50 2011 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 30DF7106566C for ; Fri, 25 Mar 2011 12:47:50 +0000 (UTC) (envelope-from atcs.matthew@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id D9D588FC08 for ; Fri, 25 Mar 2011 12:47:49 +0000 (UTC) Received: by yie12 with SMTP id 12so476957yie.13 for ; Fri, 25 Mar 2011 05:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=TxRXwoaUQwro/1gNgwTHuCBd98pQAkgvpxZoX/6xX4Y=; b=sJk/tSXzBjJkl6q7hV6mhF7QzvA/Dmb4rcDNE7fao1cm6tR/juqlSSXx2qVDOA6jfJ 8gmSYfqPD9QKXBtTiC0dlfnjH5WwwJ+TNe8xvkuylDLgnYhToTq8t9m7w3rI5z+/6DX4 mOkDpBSCi8JcjPY1aDEISPDIzDgGGeKFYPj20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=cF2YMzDDIlKIhv37uYIaBRvoBL58eGJIEgHvXYvC+MgZP788Gy6+PlV9p4zLkBW382 tPowbFtUyHwpcdnqLn5AZAA2PJEK0qKguUz1BvCnulmJLHRxy6XayD8UraaV9/hOKQvK 4kOyuJ1vSNmxQqVtO67Cu6gTGmzqxnfXjxRO4= Received: by 10.101.115.18 with SMTP id s18mr570038anm.103.1301057268931; Fri, 25 Mar 2011 05:47:48 -0700 (PDT) Received: from [192.168.1.145] (97-82-152-60.dhcp.hckr.nc.charter.com [97.82.152.60]) by mx.google.com with ESMTPS id t23sm1017167ano.51.2011.03.25.05.47.44 (version=SSLv3 cipher=OTHER); Fri, 25 Mar 2011 05:47:45 -0700 (PDT) Message-ID: <4D8C8EEF.6070706@gmail.com> Date: Fri, 25 Mar 2011 08:47:43 -0400 From: Matthew Morgan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4D8BB0F9.4080601@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: emacs backspace 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: Fri, 25 Mar 2011 12:47:50 -0000 On 03/24/2011 05:55 PM, Nerius Landys wrote: >> I've read a lot on the internet regarding the use of the backspace key in >> emacs, but the proposed solutions don't seem to be working for me. >> >> I just installed FreeBSD 8.1 in Virtualbox and installed emacs 23.2.1 by >> means of the package installer. Everything in emacs works great except the >> backspace key, which deletes forward instead of back like it should. I've >> found a lot of different things on the internet about it: >> >> * switched to bash instead of csh - didn't fix it, but I like bash better >> * M-x normal-erase-is-backspace-mode -toggling it once makes my backspace >> bring up the "help" command; toggling it again changes it back >> * different keymaps >> - I started out using us.iso.kbd (which exhibits the backspace issue, but >> other keys are right) >> - I tried us.emacs.kbd - backspace works right, but many other keys are >> mapped wrong (even letters and numbers) >> - I tried us.unix.kbd - backspace doesn't work right and neither do my >> control keys >> >> I also just noticed that when on the command line itself (outside of emacs) >> backspace deletes backward as it should, but so does delete! >> >> Is this something weird with virtualbox, or am I doing something wrong? > You have just discovered what is in my opinion a can of worms with no > clear solution. I have struggled with issues such as these before, > and I've managed to solve them more or less. > > Are you using emacs in a terminal window? (As opposed to with an X > server.) I'm assuming yes. In a terminal window, yes. I don't have X installed yet. > Are you accessing your computer directly through the console or > through an xterm and SSH, for example? Questions such as those are > important to fully diagnose and fix the problem. You want to do an > "echo $TERM" before you start diagnosing problems such as these. If I ssh in, I don't have a problem. The only time I have a problem is when I'm logging in directly; in that instance, my $TERM is "cons25". > If you are using bash, you can do a "man bash" and look at the part > that describes ~/.inputrc and/or READLINE. You may want to create an > ~/.inputrc file and add stuff to it to resolve the backspace/delete > issues that you are having. For example, I have the following in my > ~/.inputrc because I do use bash occasionally: > > $if term=cons25 > "\x7f": delete-char > $else > $if term=xterm > "\x1b\x5b\x35\x43": forward-word > "\x1b\x5b\x31\x3b\x35\x43": forward-word > "\x1b\x5b\x35\x44": backward-word > "\x1b\x5b\x31\x3b\x35\x44": backward-word > $endif > $endif I tried these values, but they didn't work for me. I'm installing vim as we speak so I can use xxd as you indicated below to check what my keys are putting out; I'll post back with my findings. > "cons25" is the native FreeBSD console (like when you're physically at > the computer console) and xterm is of course xterm. (Side note: Why > in the heck on my 9.0-CURRENT system the system console says the TERM > is xterm?) That is odd indeed! It must have come in the xterm-nox11 port. ;) > As far as how I came up with the strings such as "\x1b\x5b\x35\x43", > you can use a command such as "xxd" which comes with the vim > package/port to tell you what bytes are being sent when you press a > certain key. > > If you want to fix your csh shell too, you may consider editing your > ~/.cshrc file. Here is my complete ~/.cshrc, and note the stuff at > the bottom with the key bindings: > > setenv EDITOR vi > setenv PAGER less > if ($?prompt) then > # An interactive shell -- set some stuff up > set prompt = "`whoami`@`/bin/hostname -s`> " > set filec > set history = 2000 > set savehist = 2000 > set mail = (/var/mail/$USER) > if ( $?tcsh ) then > bindkey "^W" backward-delete-word > bindkey -k up history-search-backward > bindkey -k down history-search-forward > if ("$TERM" == "cons25") then > bindkey "^?" delete-char > else if ("$TERM" == "linux") then > bindkey "^[[3~" delete-char > else if ("$TERM" == "xterm") then > bindkey "^[[3~" delete-char > bindkey "^[[5C" forward-word > bindkey "^[[1;5C" forward-word > bindkey "^[[5D" backward-word > bindkey "^[[1;5D" backward-word > bindkey "\303\277" backward-delete-word > endif > endif > endif > > > By the way I have a 9.0 CURRENT box here at my desk, and I've compiled > emacs-nox11 port, and I'm at the system console (meaning I'm > physically at the console). I am using /bin/tcsh as my shell. I have > no modifications to any of my dotfiles, they are all stock. In emacs, > I'm able to use Backspace and Delete just as expected. > > Maybe you should try setting your default shell to /bin/tcsh, if it > isn't already. If you're on a mission critical system you want your > default shell to be part of the base system (as opposed to being a > port), and the only clear choice for that is /bin/tcsh. Besides it's > the default root shell too. I tried /bin/tcsh to no avail, sadly. > Also, if you are looking for a superior shell from ports you might try > zsh. It's the best in my opinion. I might give that a look! From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 12:56:34 2011 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 579231065674 for ; Fri, 25 Mar 2011 12:56:34 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from out2a.electric.net (smtp-out-31.electric.net [72.35.23.31]) by mx1.freebsd.org (Postfix) with ESMTP id 186308FC08 for ; Fri, 25 Mar 2011 12:56:33 +0000 (UTC) Received: from 1Q369A-0007uQ-Vn by out2a.electric.net with emc1-ok (Exim 4.72) (envelope-from ) id 1Q369B-0007vH-Ts for freebsd-questions@freebsd.org; Fri, 25 Mar 2011 05:29:45 -0700 Received: by emcmailer; Fri, 25 Mar 2011 05:29:45 -0700 Received: from [10.86.5.46] (helo=fuse246.electric.net) by out2a.electric.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Q369A-0007uQ-Vn for freebsd-questions@freebsd.org; Fri, 25 Mar 2011 05:29:44 -0700 Received: from mailanyone.net by fuse246.electric.net with esmtpa (MailAnyone extSMTP jalmberg@identry.com) id 1Q3699-0006o3-JC for freebsd-questions@freebsd.org; Fri, 25 Mar 2011 05:29:44 -0700 Message-ID: <4D8C8AC7.9020209@identry.com> Date: Fri, 25 Mar 2011 08:29:59 -0400 From: John Almberg User-Agent: Postbox 2.1.4 (Macintosh/20110308) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Outbound-IP: 10.86.5.46 X-Env-From: jalmberg@identry.com X-PolicySMART: 1184787 X-Virus-Status: Scanned by VirusSMART (c) Subject: IP Address not working? 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: Fri, 25 Mar 2011 12:56:34 -0000 I have a Freebsd box that has had just one IP address for a long time. I am trying to add another to run a website with it's own IP, ssl cert, etc. I've added IP addresses to boxes before without problem, but either this box has a problem, or I've forgotten something important (probably the latter.) on# uname -a FreeBSD on.identry.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 I have the new address (66.111.0.251) configured: on# ifconfig em0: flags=8843 metric 0 mtu 1500 options=19b ether 00:0e:0c:ea:af:c2 inet 66.111.0.250 netmask 0xffffffc0 broadcast 66.111.0.255 inet 66.111.0.251 netmask 0xffffffff broadcast 66.111.0.251 media: Ethernet autoselect (100baseTX ) status: active The interface responds to pings: $ ping 66.111.0.251 PING 66.111.0.251 (66.111.0.251): 56 data bytes 64 bytes from 66.111.0.251: icmp_seq=0 ttl=20 time=16.474 ms And IFF I am logged into the server I can access the website using lynx, or by using telnet to access the page: on# telnet test.gradedstamps.com 80 Trying 66.111.0.251... Connected to test.gradedstamps.com. Escape character is '^]'. GET /test.html HTTP/1.1 host: test.gradedstamps.com HTTP/1.1 200 OK Date: Fri, 25 Mar 2011 12:25:40 GMT Server: Apache/2.2.14 (FreeBSD) mod_ssl/2.2.14 OpenSSL/0.9.8e PHP/5.2.12 with Suhosin-Patch Last-Modified: Fri, 25 Mar 2011 12:17:16 GMT ETag: "439155-63-49f4d93188b00" Accept-Ranges: bytes Content-Length: 99 Content-Type: text/html Test Page Hello, world However, I cannot access the website from outside the box, even with PF turned off: ~ 510 $ telnet test.gradedstamps.com 80 Trying 66.111.0.251... telnet: connect to address 66.111.0.251: Connection refused telnet: Unable to connect to remote host ~ 511 $ I'm stumped. Can anyone give me a clue where to look next? Thanks: John From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 13:05:13 2011 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 0BDFD106566B for ; Fri, 25 Mar 2011 13:05:13 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from ifdnrg29.ifdnrg.com (outbound.ifdnrg.com [193.200.98.138]) by mx1.freebsd.org (Postfix) with ESMTP id A43F78FC0C for ; Fri, 25 Mar 2011 13:05:12 +0000 (UTC) Received: from [192.168.1.85] (93-97-172-73.zone5.bethere.co.uk [93.97.172.73]) (authenticated bits=0) by ifdnrg29.ifdnrg.com (8.14.4/8.14.4) with ESMTP id p2PD59oq060277 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 25 Mar 2011 13:05:10 GMT (envelope-from paul@ifdnrg.com) Message-ID: <4D8C9301.9030002@ifdnrg.com> Date: Fri, 25 Mar 2011 13:05:05 +0000 From: Paul Macdonald User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: John Almberg References: <4D8C8AC7.9020209@identry.com> In-Reply-To: <4D8C8AC7.9020209@identry.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: IP Address not working? 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: Fri, 25 Mar 2011 13:05:13 -0000 On 25/03/2011 12:29, John Almberg wrote: > I have a Freebsd box that has had just one IP address for a long time. > I am trying to add another to run a website with it's own IP, ssl > cert, etc. I've added IP addresses to boxes before without problem, > but either this box has a problem, or I've forgotten something > important (probably the latter.) > try restarting your routing deamon, /etc/rc.d/routing restart if changing the only ip on a system remotely you can combine.. /etc/rc.d/netif restart && /etc/rc.d/routing restart Paul. _______________________________________________ > 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" -- ------------------------- Paul Macdonald IFDNRG Ltd Web and video hosting ------------------------- t: 0131 5548070 m: 07534206249 e: paul@ifdnrg.com w: http://www.ifdnrg.com ------------------------- IFDNRG 40 Maritime Street Edinburgh EH6 6SA ------------------------- From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 13:27:47 2011 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 D9C671065672 for ; Fri, 25 Mar 2011 13:27:47 +0000 (UTC) (envelope-from atcs.matthew@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8E7C18FC18 for ; Fri, 25 Mar 2011 13:27:47 +0000 (UTC) Received: by yie12 with SMTP id 12so494323yie.13 for ; Fri, 25 Mar 2011 06:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=6Co2SSoEZQnfFqyh7cV47NwQaDEwQvweBU8QqJ92llc=; b=YwtIyGtsR3WCCSNF5ygF7Q14vGtETlL+i9OrIZjp0k14uk7OvP/tzjD5OTKAmG1Vc4 LEuZEyto9WsAWCG1EulMFHO08svq3263NxWK5l1pzCd2FOVDJnVM7dB8w3PkQVUa0EXQ +44VRWIChabJPRfzegJ8bmk+bXfN4ZcVt3CBg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=L7R7cZrOv2f4wFwo7JAOnkh4wlq16/5H7y1hYOiA1yiqRZaQHPK1wDuima/KGWeSaJ 6kj/Lt3d4cBFV+jCON0z7lywmfgV/JjVmVFSyLhc/SfCCN3NboY7d5vMYL4ONsTMxEAc 4fZq29+/C72uOfyhhm360JWtVEix+f3d2IOX8= Received: by 10.236.63.45 with SMTP id z33mr1068581yhc.192.1301059666525; Fri, 25 Mar 2011 06:27:46 -0700 (PDT) Received: from [192.168.1.145] (97-82-152-60.dhcp.hckr.nc.charter.com [97.82.152.60]) by mx.google.com with ESMTPS id l43sm486338yhn.36.2011.03.25.06.27.43 (version=SSLv3 cipher=OTHER); Fri, 25 Mar 2011 06:27:44 -0700 (PDT) Message-ID: <4D8C984F.107@gmail.com> Date: Fri, 25 Mar 2011 09:27:43 -0400 From: Matthew Morgan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4D8BB0F9.4080601@gmail.com> <4D8C8EEF.6070706@gmail.com> In-Reply-To: <4D8C8EEF.6070706@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: emacs backspace 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: Fri, 25 Mar 2011 13:27:47 -0000 On 03/25/2011 08:47 AM, Matthew Morgan wrote: > > > On 03/24/2011 05:55 PM, Nerius Landys wrote: >>> I've read a lot on the internet regarding the use of the backspace >>> key in >>> emacs, but the proposed solutions don't seem to be working for me. >>> >>> I just installed FreeBSD 8.1 in Virtualbox and installed emacs >>> 23.2.1 by >>> means of the package installer. Everything in emacs works great >>> except the >>> backspace key, which deletes forward instead of back like it >>> should. I've >>> found a lot of different things on the internet about it: >>> >>> * switched to bash instead of csh - didn't fix it, but I like bash >>> better >>> * M-x normal-erase-is-backspace-mode -toggling it once makes my >>> backspace >>> bring up the "help" command; toggling it again changes it back >>> * different keymaps >>> - I started out using us.iso.kbd (which exhibits the backspace >>> issue, but >>> other keys are right) >>> - I tried us.emacs.kbd - backspace works right, but many other >>> keys are >>> mapped wrong (even letters and numbers) >>> - I tried us.unix.kbd - backspace doesn't work right and neither >>> do my >>> control keys >>> >>> I also just noticed that when on the command line itself (outside of >>> emacs) >>> backspace deletes backward as it should, but so does delete! >>> >>> Is this something weird with virtualbox, or am I doing something wrong? >> You have just discovered what is in my opinion a can of worms with no >> clear solution. I have struggled with issues such as these before, >> and I've managed to solve them more or less. >> >> Are you using emacs in a terminal window? (As opposed to with an X >> server.) I'm assuming yes. > In a terminal window, yes. I don't have X installed yet. >> Are you accessing your computer directly through the console or >> through an xterm and SSH, for example? Questions such as those are >> important to fully diagnose and fix the problem. You want to do an >> "echo $TERM" before you start diagnosing problems such as these. > If I ssh in, I don't have a problem. The only time I have a problem > is when I'm logging in directly; in that instance, my $TERM is "cons25". >> If you are using bash, you can do a "man bash" and look at the part >> that describes ~/.inputrc and/or READLINE. You may want to create an >> ~/.inputrc file and add stuff to it to resolve the backspace/delete >> issues that you are having. For example, I have the following in my >> ~/.inputrc because I do use bash occasionally: >> >> $if term=cons25 >> "\x7f": delete-char >> $else >> $if term=xterm >> "\x1b\x5b\x35\x43": forward-word >> "\x1b\x5b\x31\x3b\x35\x43": forward-word >> "\x1b\x5b\x35\x44": backward-word >> "\x1b\x5b\x31\x3b\x35\x44": backward-word >> $endif >> $endif > I tried these values, but they didn't work for me. I'm installing vim > as we speak so I can use xxd as you indicated below to check what my > keys are putting out; I'll post back with my findings. Hmm...I can't figure out how to get xxd to report the keycodes, and google isn't really turning anything up. Can you tell me how it's done? >> "cons25" is the native FreeBSD console (like when you're physically at >> the computer console) and xterm is of course xterm. (Side note: Why >> in the heck on my 9.0-CURRENT system the system console says the TERM >> is xterm?) > That is odd indeed! It must have come in the xterm-nox11 port. ;) >> As far as how I came up with the strings such as "\x1b\x5b\x35\x43", >> you can use a command such as "xxd" which comes with the vim >> package/port to tell you what bytes are being sent when you press a >> certain key. >> >> If you want to fix your csh shell too, you may consider editing your >> ~/.cshrc file. Here is my complete ~/.cshrc, and note the stuff at >> the bottom with the key bindings: >> >> setenv EDITOR vi >> setenv PAGER less >> if ($?prompt) then >> # An interactive shell -- set some stuff up >> set prompt = "`whoami`@`/bin/hostname -s`> " >> set filec >> set history = 2000 >> set savehist = 2000 >> set mail = (/var/mail/$USER) >> if ( $?tcsh ) then >> bindkey "^W" backward-delete-word >> bindkey -k up history-search-backward >> bindkey -k down history-search-forward >> if ("$TERM" == "cons25") then >> bindkey "^?" delete-char >> else if ("$TERM" == "linux") then >> bindkey "^[[3~" delete-char >> else if ("$TERM" == "xterm") then >> bindkey "^[[3~" delete-char >> bindkey "^[[5C" forward-word >> bindkey "^[[1;5C" forward-word >> bindkey "^[[5D" backward-word >> bindkey "^[[1;5D" backward-word >> bindkey "\303\277" backward-delete-word >> endif >> endif >> endif >> >> >> By the way I have a 9.0 CURRENT box here at my desk, and I've compiled >> emacs-nox11 port, and I'm at the system console (meaning I'm >> physically at the console). I am using /bin/tcsh as my shell. I have >> no modifications to any of my dotfiles, they are all stock. In emacs, >> I'm able to use Backspace and Delete just as expected. >> >> Maybe you should try setting your default shell to /bin/tcsh, if it >> isn't already. If you're on a mission critical system you want your >> default shell to be part of the base system (as opposed to being a >> port), and the only clear choice for that is /bin/tcsh. Besides it's >> the default root shell too. > I tried /bin/tcsh to no avail, sadly. >> Also, if you are looking for a superior shell from ports you might try >> zsh. It's the best in my opinion. > I might give that a look! From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 14:54:56 2011 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 D74AE106566B for ; Fri, 25 Mar 2011 14:54:56 +0000 (UTC) (envelope-from arab@tangerine-army.co.uk) Received: from queueout04-winn.ispmail.ntl.com (queueout04-winn.ispmail.ntl.com [81.103.221.58]) by mx1.freebsd.org (Postfix) with ESMTP id B7F8A8FC12 for ; Fri, 25 Mar 2011 14:54:51 +0000 (UTC) Received: from know-smtpout-4.server.virginmedia.net ([62.254.123.3]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20110325141554.DZG13167.mtaout03-winn.ispmail.ntl.com@know-smtpout-4.server.virginmedia.net> for ; Fri, 25 Mar 2011 14:15:54 +0000 Received: from [94.168.170.153] (helo=mercury.universe.galaxy.lcl) by know-smtpout-4.server.virginmedia.net with esmtp (Exim 4.63) (envelope-from ) id 1Q37nt-0004n1-Sv for freebsd-questions@FreeBSD.org; Fri, 25 Mar 2011 14:15:53 +0000 Received: from mercury.universe.galaxy.lcl ([fe80::79f1:f3c8:3aed:806c]) by mercury.universe.galaxy.lcl ([fe80::79f1:f3c8:3aed:806c%10]) with mapi; Fri, 25 Mar 2011 14:12:35 +0000 From: Graeme Dargie To: "freebsd-questions@FreeBSD.org" Date: Fri, 25 Mar 2011 14:12:33 +0000 Thread-Topic: BTX loader - cant find sources Thread-Index: Acvq3Z4UVvogwrmARdq29QpABeeCtAAGMDow Message-ID: <0EE458C34045A44DBC2CA2DC5CEB42B501B930A7EB@mercury.universe.galaxy.lcl> References: <11035.34388.qm@web161202.mail.bf1.yahoo.com> In-Reply-To: <11035.34388.qm@web161202.mail.bf1.yahoo.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Cloudmark-Analysis: v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=lttQu0ijOrEA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=CjxXgO3LAAAA:8 a=6I5d2MoRAAAA:8 a=4gUt0eXcrv91as-YPhMA:9 a=B51pZUnuDonOSTb16y4A:7 a=IAKcQ49JWdh_GSAOiQzjrDnG2e0A:4 a=CjuIK1q_8ugA:10 a=rC2wZJ5BpNYA:10 a=SV7veod9ZcQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: Subject: RE: BTX loader - cant find sources 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: Fri, 25 Mar 2011 14:54:56 -0000 -----Original Message----- From: Andi Anton [mailto:phpwolf@yahoo.com]=20 Sent: 25 March 2011 08:19 To: freebsd-questions@FreeBSD.org Subject: BTX loader - cant find sources Hi guys, Can you tell me, please, where can I found the sources for the freeBSD BTX = bootloader? I have some BIOS SATA hdd detection problems (the BTX loader hangs just ate= r it founds the hdd) and I want to recompile and debug the BTX loader in or= der to fix my problem. Thanks in advance, phpwolf _______________________________________________ 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= " I had a similar issue with one machine when installing 8.2 release, I disco= nnected all of the drives except the one I was going to install the o/s on,= the btx loader worked fine, the install went fine. The machine worked fine= with all the drives connected once the o/s was installed. Regards Graeme From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 15:00:52 2011 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 5FB72106566B for ; Fri, 25 Mar 2011 15:00:52 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 264A48FC08 for ; Fri, 25 Mar 2011 15:00:52 +0000 (UTC) Received: by mail-iw0-f182.google.com with SMTP id 33so1422026iwn.13 for ; Fri, 25 Mar 2011 08:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ynfSCAZC7IwyRDFD2KDpG7rH7+NbrsZBXy5qFYJEBhk=; b=LoQ1ftr4T+jt6skZuaVQ9dxnbZk/M/FZgV7N/+1lCoi1k6BTWe/Y06WRlz4XDFhDzf AjGbgPfY9CUMMShRrwViL7ihpVHqApYSMQpFNxbH/ERID92wpBAx7bToKHkAjGIIczxd 2ZGI0MzOhUXJhbu3Dz9dtZ/APg8vJ48oKdiKU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ghge6c44m5onCSts8KUaxbdy3f1aP4G4eb+xnwfIYJrI0ndwXSMCz93b7POqiGAR1g p5PLwVIMRYhF1n/u7FqCLVXBOdn1dUgCrs98eN9gHnOFWgS2hCJecZ8oTHfCRQVH+GZ4 bvnwVh+4t5wbA0he/6fbVo2Fw/Ky69xnTiGq8= MIME-Version: 1.0 Received: by 10.42.246.72 with SMTP id lx8mr1409282icb.276.1301065251961; Fri, 25 Mar 2011 08:00:51 -0700 (PDT) Received: by 10.231.199.6 with HTTP; Fri, 25 Mar 2011 08:00:51 -0700 (PDT) In-Reply-To: <4D8C984F.107@gmail.com> References: <4D8BB0F9.4080601@gmail.com> <4D8C8EEF.6070706@gmail.com> <4D8C984F.107@gmail.com> Date: Fri, 25 Mar 2011 08:00:51 -0700 Message-ID: From: Nerius Landys To: Matthew Morgan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: emacs backspace 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: Fri, 25 Mar 2011 15:00:52 -0000 > Hmm...I can't figure out how to get xxd to report the keycodes, and googl= e > isn't really turning anything up. =A0Can you tell me how it's done? It's been a while since I've tinkered with xxd. Let's see: 1. Run xxd from command prompt. 2. Type Delete. 3. Type Enter. 4. Type Ctrl+D. You'll see some codes before the "0a" (because "0a" is newline). I can't remember what I did to get the Backspace codes. From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 15:08:18 2011 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 32046106566C for ; Fri, 25 Mar 2011 15:08:18 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from out2b.electric.net (smtp-out-37.electric.net [72.35.23.37]) by mx1.freebsd.org (Postfix) with ESMTP id 06BF38FC1E for ; Fri, 25 Mar 2011 15:08:17 +0000 (UTC) Received: from 1Q38ca-00053p-Vb by out2b.electric.net with emc1-ok (Exim 4.72) (envelope-from ) id 1Q38cb-00054l-T7 for freebsd-questions@freebsd.org; Fri, 25 Mar 2011 08:08:17 -0700 Received: by emcmailer; Fri, 25 Mar 2011 08:08:17 -0700 Received: from [10.86.5.47] (helo=fuse247.electric.net) by out2b.electric.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Q38ca-00053p-Vb for freebsd-questions@freebsd.org; Fri, 25 Mar 2011 08:08:16 -0700 Received: from mailanyone.net by fuse247.electric.net with esmtpa (MailAnyone extSMTP jalmberg@identry.com) id 1Q38cZ-0006pT-R2 for freebsd-questions@freebsd.org; Fri, 25 Mar 2011 08:08:16 -0700 Message-ID: <4D8CAFF1.4050008@identry.com> Date: Fri, 25 Mar 2011 11:08:33 -0400 From: John Almberg User-Agent: Postbox 2.1.4 (Macintosh/20110308) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20110325150242.60430.qmail@joyce.lan> In-Reply-To: <20110325150242.60430.qmail@joyce.lan> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Outbound-IP: 10.86.5.47 X-Env-From: jalmberg@identry.com X-PolicySMART: 1184787 X-Virus-Status: Scanned by VirusSMART (c) Subject: Re: IP Address not working? 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: Fri, 25 Mar 2011 15:08:18 -0000 Well, I figured it out. There was another machine configured with the same address. I was pinging another machine, in other words. The address is in my address range, but it isn't one of my two machines in the rack, so I'm working with the colo guys to figure out what is sitting on my address. A nice way to waste a morning! Thanks for your help, guys. -- John From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 15:29:46 2011 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 81E151065675 for ; Fri, 25 Mar 2011 15:29:46 +0000 (UTC) (envelope-from prvs=005861d705=johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [64.57.183.53]) by mx1.freebsd.org (Postfix) with ESMTP id 4CD5D8FC18 for ; Fri, 25 Mar 2011 15:29:45 +0000 (UTC) Received: (qmail 59847 invoked from network); 25 Mar 2011 15:03:05 -0000 Received: from mail1.iecc.com (64.57.183.56) by mail1.iecc.com with QMQP; 25 Mar 2011 15:03:05 -0000 Date: 25 Mar 2011 15:02:42 -0000 Message-ID: <20110325150242.60430.qmail@joyce.lan> From: "John Levine" To: freebsd-questions@freebsd.org In-Reply-To: <4D8C8AC7.9020209@identry.com> Organization: X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit Cc: jalmberg@identry.com Subject: Re: IP Address not working? 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: Fri, 25 Mar 2011 15:29:46 -0000 > inet 66.111.0.250 netmask 0xffffffc0 broadcast 66.111.0.255 > inet 66.111.0.251 netmask 0xffffffff broadcast 66.111.0.251 That netmask should probably be 0xffffffc0, same as for .250, but ... >However, I cannot access the website from outside the box, even with PF >turned off: As I recall, on 7.x you still need to to do arp -s so other hosts on the LAN can find it. R's, John From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 15:46:03 2011 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 E6AB31065677 for ; Fri, 25 Mar 2011 15:46:03 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 9EAFC8FC17 for ; Fri, 25 Mar 2011 15:46:03 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q39D8-0000IV-0d for freebsd-questions@freebsd.org; Fri, 25 Mar 2011 16:46:02 +0100 Received: from pool-116.enst-bretagne.fr ([192.108.117.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Mar 2011 16:46:02 +0100 Received: from fred by pool-116.enst-bretagne.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Mar 2011 16:46:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: =?utf-8?B?RnLDqWTDqXJpYw==?= Perrin Date: Fri, 25 Mar 2011 16:45:42 +0100 Lines: 10 Message-ID: References: <4D8BB0F9.4080601@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-116.enst-bretagne.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:TbpZtpNvjqtqFPSPPXtOLepWIFQ= Cc: Nerius Landys Subject: Re: emacs backspace 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: Fri, 25 Mar 2011 15:46:04 -0000 Nerius Landys writes: > "cons25" is the native FreeBSD console (like when you're physically at > the computer console) and xterm is of course xterm. (Side note: Why > in the heck on my 9.0-CURRENT system the system console says the TERM > is xterm?) http://svn.freebsd.org/viewvc/base?view=revision&revision=199243 -- Frédéric Perrin -- http://tar-jx.bz From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 16:27:53 2011 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 18D021065670 for ; Fri, 25 Mar 2011 16:27:53 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id C832A8FC08 for ; Fri, 25 Mar 2011 16:27:52 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q39rb-0001Jt-RQ for freebsd-questions@freebsd.org; Fri, 25 Mar 2011 17:27:51 +0100 Received: from pool-116.enst-bretagne.fr ([192.108.117.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Mar 2011 17:27:51 +0100 Received: from fred by pool-116.enst-bretagne.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Mar 2011 17:27:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: =?utf-8?B?RnLDqWTDqXJpYw==?= Perrin Date: Fri, 25 Mar 2011 17:27:35 +0100 Lines: 18 Message-ID: References: <4D8C8AC7.9020209@identry.com> <20110325150242.60430.qmail@joyce.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-116.enst-bretagne.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:B9Dbc1rCQkA2IjPHGAEd+cevn34= Cc: John Levine Subject: Re: IP Address not working? 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: Fri, 25 Mar 2011 16:27:53 -0000 "John Levine" writes: >> inet 66.111.0.250 netmask 0xffffffc0 broadcast 66.111.0.255 >> inet 66.111.0.251 netmask 0xffffffff broadcast 66.111.0.251 > > That netmask should probably be 0xffffffc0, same as for .250, but ... No. ,----[ man ifconfig ] | alias Establish an additional network address for this interface. | [...] If the address is on the same subnet as the first | network address for this interface, a non-conflicting | netmask must be given. Usually 0xffffffff is most | appropriate. `---- -- Frédéric Perrin -- http://tar-jx.bz From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 16:44:47 2011 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 6C3E51065680 for ; Fri, 25 Mar 2011 16:44:47 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 266F58FC1A for ; Fri, 25 Mar 2011 16:44:46 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 1B635E807EA; Fri, 25 Mar 2011 09:44:45 -0700 (PDT) Date: Fri, 25 Mar 2011 09:44:45 -0700 From: Gary Kline To: Ryan Coleman Message-ID: <20110325164445.GA16901@thought.org> References: <20110323164504.GA25317@thought.org> <20110324230049.GB31958@thought.org> <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> <20110325053630.GA6722@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24++ years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Fr?d?ric Perrin , freebsd-questions@freebsd.org Subject: Re: why does this simple counter fail? 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: Fri, 25 Mar 2011 16:44:47 -0000 On Fri, Mar 25, 2011 at 06:36:34AM -0500, Ryan Coleman wrote: > You're using a completely stock php.ini file. > > Look for short tags. Turn that on. > > > I don't see why you need the file name in the file itself... just have a number there. Much faster on the CPU. True enough. I could have everything in one file and simply print the filename and number. I didn't know that I had the option of using short flags or not. Where do I set that? (I'm sure there are more places where i have "" rather than ""; be nice to _not_ have this cause me grief again....) tx, gary > > -- > Ryan > > On Mar 25, 2011, at 12:36 AM, Gary Kline wrote: > > > On Thu, Mar 24, 2011 at 06:25:39PM -0500, Ryan Coleman wrote: > >> Gary, you missed the put... fput($fp, $file); means you're dropping the filename INTO the storage file. > > > > > > okay. [maybe]. i think what the script does is create > > ./countdir/$file ; in this case, ./countdir/index where i create > > the file named "index\n" and below it the integer count. e.g.: > > > > in directory countdir, in file index is: > > > > index > > 60311 > > > > to track the hits for my homepage. in defense of this crude > > hack with no error-checking is that i have used the same script > > in at least three other virtual thought.org websites. > > > > i was wrong is saying that the script bombed; it just failed; > > the reason was that the initial tag had been " > " > > > gary > > > > > >> > >> > >> On Mar 24, 2011, at 6:00 PM, Gary Kline wrote: > >> > >>> On Wed, Mar 23, 2011 at 07:11:15PM +0100, Fr?d?ric Perrin wrote: > >>>> Gary Kline writes: > >>>>> Can any of you php hackers tell me why this simple self-hacked > >>>>> counter bomb? > >>>> > >>>> As others said, what does 'this simple counter bomb' means? > >>>> > >>>>> $fp = fopen($directory.$file, "r+"); > >>>>> flock($fp, 1); > >>>> > >>>> You want an exclusive lock (LOCK_EX, which is 2 is you use some ancient > >>>> PHP), not a shared lock. > >>>> > >>>> When updating the file: > >>>> > fputs($fp, $count); > >>>> > fputs($fp, "\n"); > >>>>> fputs($fp, $file); > >>>> > >>>> Why do you feel the need to store the filename inside the file itself? > >>>> You don't seem to need it after. > >>> > >>> > >>> $file is passed from the calling php file. index.php is by-hand > >>> set to > >>> > >>> $file='index'; > >>> > >>> and so on. > >>> > >>> Because of my shoulder/typing woes, it was great that I got clued in > >>> above by Brad's thought that perhaos there were mis-matched " >>> and "?>" tags. A simply recursive grepping found out that it some > >>> places I had " instead of " . Adding the "php" > >>> fixed everything. > >>> > >>> Finally, you're right; this really, really is ancient php. > >>> Somthing i found pre-2004 and hacked until it worked. The > >>> counter is missings lots of features, but I'll fix that pretty > >>> soon. > >>> > >>> thanks to everybody , > >>> > >>> > >>>> > >>>> -- > >>>> Frédéric Perrin -- http://tar-jx.bz > >>>> > >>>> _______________________________________________ > >>>> 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 > >>> Journey Toward the Dawn, E-Book: http://www.thought.org > >>> The 7.98a release of Jottings: http://jottings.thought.org > >>> > >>> _______________________________________________ > >>> 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 > > Journey Toward the Dawn, E-Book: http://www.thought.org > > The 7.98a release of Jottings: http://jottings.thought.org > > > > _______________________________________________ > > 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 Journey Toward the Dawn, E-Book: http://www.thought.org The 7.98a release of Jottings: http://jottings.thought.org From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 16:47:21 2011 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 973781065672 for ; Fri, 25 Mar 2011 16:47:21 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 67D818FC15 for ; Fri, 25 Mar 2011 16:47:21 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 01FF82639F7E for ; Fri, 25 Mar 2011 11:47:50 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R580R1cTT5Jr for ; Fri, 25 Mar 2011 11:47:37 -0500 (CDT) Received: from [192.168.46.85] (unknown [64.122.64.171]) by server.cwis.biz (Postfix) with ESMTPSA id AB8642639F7C for ; Fri, 25 Mar 2011 11:47:36 -0500 (CDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1082) From: Ryan Coleman In-Reply-To: <20110325164445.GA16901@thought.org> Date: Fri, 25 Mar 2011 11:47:04 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <12F2AE40-58EE-455D-91B8-608A3925674F@d3photography.com> References: <20110323164504.GA25317@thought.org> <20110324230049.GB31958@thought.org> <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> <20110325053630.GA6722@thought.org> <20110325164445.GA16901@thought.org> To: FreeBSD Mailing List X-Mailer: Apple Mail (2.1082) Subject: Re: why does this simple counter fail? 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: Fri, 25 Mar 2011 16:47:21 -0000 That would cause a lot of file hanging, with locking, if you get any = decent amount of traffic...=20 I'd just stick to the simple TXT counter for the time being. If you did a mass file, your best bet would be to use arrays and = serialize the data... but that's a lesson for another day. On Mar 25, 2011, at 11:44 AM, Gary Kline wrote: > On Fri, Mar 25, 2011 at 06:36:34AM -0500, Ryan Coleman wrote: >> You're using a completely stock php.ini file. >>=20 >> Look for short tags. Turn that on. >>=20 >> >=20 >> I don't see why you need the file name in the file itself... just = have a number there. Much faster on the CPU. >=20 >=20 > True enough. I could have everything in one file and simply > print the filename and number. I didn't know that I had the=20 > option of using short flags or not. Where do I set that? (I'm=20= > sure there are more places where i have "" rather=20 > than ""; be nice to _not_ have this cause me grief=20= > again....) >=20 > tx, >=20 > gary >=20 >=20 >>=20 >> -- >> Ryan >>=20 >> On Mar 25, 2011, at 12:36 AM, Gary Kline wrote: >>=20 >>> On Thu, Mar 24, 2011 at 06:25:39PM -0500, Ryan Coleman wrote: >>>> Gary, you missed the put... fput($fp, $file); means you're dropping = the filename INTO the storage file. >>>=20 >>>=20 >>> okay. [maybe]. i think what the script does is create >>> ./countdir/$file ; in this case, ./countdir/index where i create >>> the file named "index\n" and below it the integer count. e.g.: >>>=20 >>> in directory countdir, in file index is: >>>=20 >>> index >>> 60311 >>>=20 >>> to track the hits for my homepage. in defense of this crude >>> hack with no error-checking is that i have used the same script >>> in at least three other virtual thought.org websites. =20 >>>=20 >>> i was wrong is saying that the script bombed; it just failed; >>> the reason was that the initial tag had been ">> ">>=20 >>> gary >>>=20 >>>=20 >>>>=20 >>>>=20 >>>> On Mar 24, 2011, at 6:00 PM, Gary Kline wrote: >>>>=20 >>>>> On Wed, Mar 23, 2011 at 07:11:15PM +0100, Fr?d?ric Perrin wrote: >>>>>> Gary Kline writes: >>>>>>> Can any of you php hackers tell me why this simple = self-hacked >>>>>>> counter bomb? >>>>>>=20 >>>>>> As others said, what does 'this simple counter bomb' means? >>>>>>=20 >>>>>>> $fp =3D fopen($directory.$file, "r+"); >>>>>>> flock($fp, 1); >>>>>>=20 >>>>>> You want an exclusive lock (LOCK_EX, which is 2 is you use some = ancient >>>>>> PHP), not a shared lock. >>>>>>=20 >>>>>> When updating the file: >>>>>> > fputs($fp, $count); >>>>>> > fputs($fp, "\n"); >>>>>>> fputs($fp, $file); >>>>>>=20 >>>>>> Why do you feel the need to store the filename inside the file = itself? >>>>>> You don't seem to need it after. >>>>>=20 >>>>>=20 >>>>> $file is passed from the calling php file. index.php is by-hand >>>>> set to >>>>>=20 >>>>> $file=3D'index';=20 >>>>>=20 >>>>> and so on. =20 >>>>>=20 >>>>> Because of my shoulder/typing woes, it was great that I got = clued in >>>>> above by Brad's thought that perhaos there were mis-matched ">>>> and "?>" tags. A simply recursive grepping found out that it = some=20 >>>>> places I had " instead of " . Adding the = "php"=20 >>>>> fixed everything. =20 >>>>>=20 >>>>> Finally, you're right; this really, really is ancient php. >>>>> Somthing i found pre-2004 and hacked until it worked. The >>>>> counter is missings lots of features, but I'll fix that pretty >>>>> soon. >>>>>=20 >>>>> thanks to everybody , >>>>>=20 >>>>>=20 >>>>>>=20 >>>>>> --=20 >>>>>> Fr=E9d=E9ric Perrin -- http://tar-jx.bz >>>>>>=20 >>>>>> _______________________________________________ >>>>>> 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 = Service Unix >>>>> Journey Toward the Dawn, E-Book: http://www.thought.org >>>>> The 7.98a release of Jottings: http://jottings.thought.org >>>>>=20 >>>>> _______________________________________________ >>>>> 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 >>>=20 >>> --=20 >>> Gary Kline kline@thought.org http://www.thought.org Public = Service Unix >>> Journey Toward the Dawn, E-Book: http://www.thought.org >>> The 7.98a release of Jottings: http://jottings.thought.org >>>=20 >>> _______________________________________________ >>> 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 >=20 > --=20 > Gary Kline kline@thought.org http://www.thought.org Public Service = Unix > Journey Toward the Dawn, E-Book: http://www.thought.org > The 7.98a release of Jottings: http://jottings.thought.org >=20 From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 16:53:32 2011 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 0AC35106564A for ; Fri, 25 Mar 2011 16:53:32 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id B5D098FC1C for ; Fri, 25 Mar 2011 16:53:31 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q3AGO-0008Le-GO for freebsd-questions@freebsd.org; Fri, 25 Mar 2011 17:53:28 +0100 Received: from pool-116.enst-bretagne.fr ([192.108.117.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Mar 2011 17:53:28 +0100 Received: from fred by pool-116.enst-bretagne.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Mar 2011 17:53:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: =?utf-8?B?RnLDqWTDqXJpYw==?= Perrin Date: Fri, 25 Mar 2011 17:53:11 +0100 Lines: 16 Message-ID: References: <20110323164504.GA25317@thought.org> <20110324230049.GB31958@thought.org> <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> <20110325053630.GA6722@thought.org> <20110325164445.GA16901@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-116.enst-bretagne.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:00yZ2oFsmoiXaiC6lYD5OaDnpFw= Subject: Re: why does this simple counter fail? 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: Fri, 25 Mar 2011 16:53:32 -0000 Gary Kline writes: > On Fri, Mar 25, 2011 at 06:36:34AM -0500, Ryan Coleman wrote: >> Look for short tags. Turn that on. >> >> > I didn't know that I had the option of using short flags or not. Where > do I set that? (I'm sure there are more places where i have " "?>" rather than ""; be nice to _not_ have this cause me > grief again....) In /usr/local/etc/php.ini, look for short_open_tag under the « Language Options » heading. -- Frédéric Perrin -- http://tar-jx.bz From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 19:16:36 2011 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 660621065672 for ; Fri, 25 Mar 2011 19:16:36 +0000 (UTC) (envelope-from noc@hdk5.net) Received: from moku60.aloha50.net (moku60.aloha50.net [66.180.132.237]) by mx1.freebsd.org (Postfix) with ESMTP id 3E4008FC13 for ; Fri, 25 Mar 2011 19:16:35 +0000 (UTC) Received: from mohawk7.intra.net (unknown [66.180.149.18]) by moku60.aloha50.net (Postfix) with ESMTP id 23DF61703E for ; Fri, 25 Mar 2011 08:59:20 -1000 (HST) Message-ID: <4D8CE607.9030505@hdk5.net> Date: Fri, 25 Mar 2011 08:59:19 -1000 From: Al Plant User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071128 FreeBSD/i386 SeaMonkey/1.1.7 MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: allBSD Japan servers ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noc@hdk5.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 19:16:36 -0000 Aloha, Anybody know what happened to the http; or ftp servers for allbsd.org japan? Did the Tsumnami put them down? ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 20:17:04 2011 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 C41831065771 for ; Fri, 25 Mar 2011 20:17:04 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 580D28FC1F for ; Fri, 25 Mar 2011 20:17:04 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 6D55CE7864; Fri, 25 Mar 2011 20:17:03 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cran.org.uk; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=mail; bh=+tsyTelcbvtF nhThPd1h2LLONWE=; b=JPzJZVC1MqF8GD2R2OHSBcvTRXe/HZKrKISchxnovFnC kTCxCQfTfWKT/MhFJ+jhwi6m7sBsC/RF3bnngBLtlj4oHQOTD0CIwQDINBPoh9SU CzmdBOxE3KVLDJ0517o8yjHSgyULrrUFD4dyqIDRaWWiFwI0bGD6fuFFfPCYsiA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cran.org.uk; h=date:from:to :cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=mail; b=BEHUwv kZ9m/b7liZ7YGuzBf7ij8CRqOzj/uhHiRZuaxfYA9nReHyGh7JcQY4CCVz+vzmE0 pTZmtRw6JRpxNTLsuzycsfVDhtoodx4Lo0SzBzrgfDGOF9/q6ZZHkevoA52esxMX 3m27/DR4NzDXd13C1s4q7mmNUua70eZiimfng= Received: from unknown (188-222-18-231.zone13.bethere.co.uk [188.222.18.231]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id 27158E77A5; Fri, 25 Mar 2011 20:17:03 +0000 (GMT) Date: Fri, 25 Mar 2011 20:16:45 +0000 From: Bruce Cran To: noc@hdk5.net Message-ID: <20110325201645.0000051d@unknown> In-Reply-To: <4D8CE607.9030505@hdk5.net> References: <4D8CE607.9030505@hdk5.net> X-Mailer: Claws Mail 3.7.8cvs9 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: allBSD Japan servers ? 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: Fri, 25 Mar 2011 20:17:04 -0000 On Fri, 25 Mar 2011 08:59:19 -1000 Al Plant wrote: > Anybody know what happened to the http; or ftp servers for allbsd.org > japan? Did the Tsumnami put them down? The machine's there but is refusing connections: > ping6 pub.allbsd.org PING6(56=40+8+8 bytes) 2a01:348:0:15:5d59:5c40:0:1 --> 2001:2f0:104:e001::34 16 bytes from 2001:2f0:104:e001::34, icmp_seq=0 hlim=48 time=269.213 ms 16 bytes from 2001:2f0:104:e001::34, icmp_seq=1 hlim=48 time=268.705 ms 16 bytes from 2001:2f0:104:e001::34, icmp_seq=2 -- Bruce Cran From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 20:43:32 2011 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 90FFF106566B for ; Fri, 25 Mar 2011 20:43:32 +0000 (UTC) (envelope-from noc@hdk5.net) Received: from moku60.aloha50.net (moku60.aloha50.net [66.180.132.237]) by mx1.freebsd.org (Postfix) with ESMTP id 663A88FC1D for ; Fri, 25 Mar 2011 20:43:32 +0000 (UTC) Received: from mohawk7.intra.net (unknown [66.180.149.18]) by moku60.aloha50.net (Postfix) with ESMTP id 3E7F91703E; Fri, 25 Mar 2011 10:43:31 -1000 (HST) Message-ID: <4D8CFE72.5030008@hdk5.net> Date: Fri, 25 Mar 2011 10:43:30 -1000 From: Al Plant User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071128 FreeBSD/i386 SeaMonkey/1.1.7 MIME-Version: 1.0 To: Bruce Cran References: <4D8CE607.9030505@hdk5.net> <20110325201645.0000051d@unknown> In-Reply-To: <20110325201645.0000051d@unknown> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: allBSD Japan servers ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noc@hdk5.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 20:43:32 -0000 Bruce Cran wrote: > On Fri, 25 Mar 2011 08:59:19 -1000 > Al Plant wrote: > >> Anybody know what happened to the http; or ftp servers for allbsd.org >> japan? Did the Tsumnami put them down? > > The machine's there but is refusing connections: > >> ping6 pub.allbsd.org > PING6(56=40+8+8 bytes) 2a01:348:0:15:5d59:5c40:0:1 --> > 2001:2f0:104:e001::34 16 bytes from 2001:2f0:104:e001::34, icmp_seq=0 > hlim=48 time=269.213 ms 16 bytes from 2001:2f0:104:e001::34, icmp_seq=1 > hlim=48 time=268.705 ms 16 bytes from 2001:2f0:104:e001::34, icmp_seq=2 > Aloha Bruce, OK. Thats what I got. I have relatives and friends living in Osaka and Tokyo and they tell me things are really a mess. Hope those guys are OK. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 21:12:53 2011 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 31DE21065676 for ; Fri, 25 Mar 2011 21:12:53 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from asmtp4.iomartmail.com (asmtp4.iomartmail.com [62.128.201.175]) by mx1.freebsd.org (Postfix) with ESMTP id B2C908FC1A for ; Fri, 25 Mar 2011 21:12:52 +0000 (UTC) Received: from asmtp4.iomartmail.com (localhost.localdomain [127.0.0.1]) by asmtp4.iomartmail.com (8.13.8/8.13.8) with ESMTP id p2PLBK2p019804 for ; Fri, 25 Mar 2011 21:11:20 GMT Received: from orange.esperance-linux.co.uk (80-45-152-196.static.dsl.as9105.com [80.45.152.196]) (authenticated bits=0) by asmtp4.iomartmail.com (8.13.8/8.13.8) with ESMTP id p2PLBJUg019795 for ; Fri, 25 Mar 2011 21:11:20 GMT Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id B70FF33C3D; Fri, 25 Mar 2011 21:12:49 +0000 (GMT) Date: Fri, 25 Mar 2011 21:12:49 +0000 From: Frank Shute To: FreeBSD Questions Message-ID: <20110325211249.GA33198@orange.esperance-linux.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc" Content-Disposition: inline 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 8.2-RC2 amd64 X-Organisation: 'shute.org.uk' Subject: firefox4 not starting 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: Fri, 25 Mar 2011 21:12:53 -0000 --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I upgraded from firefox3.6 to firefox4.0 and now it won't start even after doing a: rm -rf ~/.mozilla (I saved my profile). I set -x on the firefox shell script and this is the output: $ firefox =20 + moz_libdir=3D/usr/local/lib/firefox + found=3D0 + progname=3D/usr/local/bin/firefox + dirname /usr/local/bin/firefox + curdir=3D/usr/local/bin + basename /usr/local/bin/firefox + progbase=3Dfirefox + run_moz=3D/usr/local/bin/run-mozilla.sh + test -x /usr/local/bin/run-mozilla.sh + /bin/pwd + here=3D/usr/home/frank + [ -h /usr/local/bin/firefox ] + cd /usr/home/frank + [ 0 =3D 0 ] + [ -x /usr/local/lib/firefox/run-mozilla.sh ] + dist_bin=3D/usr/local/lib/firefox + run_moz=3D/usr/local/lib/firefox/run-mozilla.sh + script_args=3D'' + debugging=3D0 + MOZILLA_BIN=3Dfirefox-bin + [ '' =3D beos ] + pass_arg_count=3D0 + [ 0 -gt 0 ] + [ 0 =3D 1 ] + exec /usr/local/lib/firefox/run-mozilla.sh /usr/local/lib/firefox/firefox= -bin That all looks kosher to me. Anybody run into the same problem and fixed it? Regards, --=20 Frank Contact info: http://www.shute.org.uk/misc/contact.html --C7zPtVaVf+AK4Oqc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk2NBVAACgkQHduKvUAgeK56gACfVys/ouIzGMg7SXCNKnDYPAHR TacAoLYHbSNa34MX3H+jxnUkGjeQiFdT =n2du -----END PGP SIGNATURE----- --C7zPtVaVf+AK4Oqc-- From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 21:48:38 2011 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 5CEA0106564A for ; Fri, 25 Mar 2011 21:48:38 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id E69F48FC0A for ; Fri, 25 Mar 2011 21:48:37 +0000 (UTC) Received: by fxm11 with SMTP id 11so1845712fxm.13 for ; Fri, 25 Mar 2011 14:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=+OhLn78wXJ7m7yfXbb9v1xi4h8H3Q8VOfa/6Sq5XWh4=; b=jQ7qMvHJbe/mfvSEyh2THvZ9Kiw161OGB4s+13tZOEkrh6AJdP+pnWFSteZK2PoU69 kkCy71VrY7XkcS07IdWdgfbicFptx+xfrF69aXkjBDWzy9FnjU6rejOAxcjj2Uu9MVi+ tXH5mwqjJuC7LsqeU2kZHzrUQ998Nq76UoCRo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=NCsU1wmS70tnaJfCqJ+AFsO+3tiJWEgDN//b+p+ElWkEMMzkpiNdnK3DOCJx0rfGug S0NZDfvT6azbWVq1myyxcW3xuv6b+ElWcnZKbzsn1ylMotaDLMN1amkl5b8tUwSV4lsp x0RsqE7/fkcnQV6+gdrk8BK4b3BZl0/DFWF9E= MIME-Version: 1.0 Received: by 10.223.2.2 with SMTP id 2mr1454292fah.47.1301089716965; Fri, 25 Mar 2011 14:48:36 -0700 (PDT) Received: by 10.223.78.130 with HTTP; Fri, 25 Mar 2011 14:48:36 -0700 (PDT) In-Reply-To: <20110325211249.GA33198@orange.esperance-linux.co.uk> References: <20110325211249.GA33198@orange.esperance-linux.co.uk> Date: Fri, 25 Mar 2011 17:48:36 -0400 Message-ID: From: "illoai@gmail.com" To: Frank Shute Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Questions Subject: Re: firefox4 not starting 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: Fri, 25 Mar 2011 21:48:38 -0000 On 25 March 2011 17:12, Frank Shute wrote: > I upgraded from firefox3.6 to firefox4.0 and now it won't start even > after doing a: rm -rf ~/.mozilla (I saved my profile). > > I set -x on the firefox shell script and this is the output: > > $ firefox > + moz_libdir=/usr/local/lib/firefox > + found=0 > + progname=/usr/local/bin/firefox > + dirname /usr/local/bin/firefox > + curdir=/usr/local/bin > + basename /usr/local/bin/firefox > + progbase=firefox > + run_moz=/usr/local/bin/run-mozilla.sh > + test -x /usr/local/bin/run-mozilla.sh > + /bin/pwd > + here=/usr/home/frank > + [ -h /usr/local/bin/firefox ] > + cd /usr/home/frank > + [ 0 = 0 ] > + [ -x /usr/local/lib/firefox/run-mozilla.sh ] > + dist_bin=/usr/local/lib/firefox > + run_moz=/usr/local/lib/firefox/run-mozilla.sh > + script_args='' > + debugging=0 > + MOZILLA_BIN=firefox-bin > + [ '' = beos ] > + pass_arg_count=0 > + [ 0 -gt 0 ] > + [ 0 = 1 ] > + exec /usr/local/lib/firefox/run-mozilla.sh /usr/local/lib/firefox/firefox-bin > > That all looks kosher to me. Anybody run into the same problem and > fixed it? > Works fine here. The only difference I see is here: + MOZILLA_BIN=firefox-bin + [ FreeBSD = beos ] + pass_arg_count=0 Hrm, so would $OSTYPE being wrong/clobbered/missing prevent startup? -- -- From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 23:53:43 2011 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 84876106566B for ; Fri, 25 Mar 2011 23:53:43 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 5543E8FC0C for ; Fri, 25 Mar 2011 23:53:42 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 2E7B4E807EA; Fri, 25 Mar 2011 16:53:41 -0700 (PDT) Date: Fri, 25 Mar 2011 16:53:41 -0700 From: Gary Kline To: Fr?d?ric Perrin Message-ID: <20110325235341.GA26039@thought.org> References: <20110323164504.GA25317@thought.org> <20110324230049.GB31958@thought.org> <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> <20110325053630.GA6722@thought.org> <20110325164445.GA16901@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24++ years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@freebsd.org Subject: Re: why does this simple counter fail? 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: Fri, 25 Mar 2011 23:53:43 -0000 On Fri, Mar 25, 2011 at 05:53:11PM +0100, Fr?d?ric Perrin wrote: > Gary Kline writes: > > On Fri, Mar 25, 2011 at 06:36:34AM -0500, Ryan Coleman wrote: > >> Look for short tags. Turn that on. > >> > >> > > > I didn't know that I had the option of using short flags or not. Where > > do I set that? (I'm sure there are more places where i have " > "?>" rather than ""; be nice to _not_ have this cause me > > grief again....) > > In /usr/local/etc/php.ini, look for short_open_tag under the « Language > Options » heading. > > -- > Frédéric Perrin -- http://tar-jx.bz > Found it; thanks. It's been god-knows how many yrs ago that i used the short tags option .... it may have been the Last time my counter broke. Lost in the myst of times. Anyway, i've decided to leave the short form off as is advised in the ini file. I'M trying to decide whether to tatoo this on my forehead or just make a note in my ~/.notes file for the next time this breaks. if/when. Meanwhile, the best thingt to do would simply write a script to turn 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 7CB661065670 for ; Sat, 26 Mar 2011 00:02:47 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from imr-db02.mx.aol.com (imr-db02.mx.aol.com [205.188.91.96]) by mx1.freebsd.org (Postfix) with ESMTP id 3C53E8FC13 for ; Sat, 26 Mar 2011 00:02:47 +0000 (UTC) Received: from imo-da04.mx.aol.com (imo-da04.mx.aol.com [205.188.169.202]) by imr-db02.mx.aol.com (8.14.1/8.14.1) with ESMTP id p2Q02Pbw017740; Fri, 25 Mar 2011 20:02:25 -0400 Received: from dieterbsd@engineer.com by imo-da04.mx.aol.com (mail_out_v42.9.) id n.1036.2603f35 (34982); Fri, 25 Mar 2011 20:02:21 -0400 (EDT) Received: from smtprly-me03.mx.aol.com (smtprly-me03.mx.aol.com [64.12.95.104]) by cia-da08.mx.aol.com (v129.9) with ESMTP id MAILCIADA087-b30c4d8d2d0c1c6; Fri, 25 Mar 2011 20:02:21 -0400 Received: from web-mmc-d02 (web-mmc-d02.sim.aol.com [205.188.103.68]) by smtprly-me03.mx.aol.com (v129.9) with ESMTP id MAILSMTPRLYME034-b30c4d8d2d0c1c6; Fri, 25 Mar 2011 20:02:20 -0400 To: freebsd-hardware@freebsd.org, freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Date: Fri, 25 Mar 2011 20:02:19 -0400 X-MB-Message-Source: WebUI X-AOL-IP: 67.206.163.30 X-MB-Message-Type: User MIME-Version: 1.0 From: dieterbsd@engineer.com Content-Type: text/plain; charset="us-ascii" X-Mailer: Mail.com Webmail 33456-STANDARD Received: from 67.206.163.30 by web-mmc-d02.sysops.aol.com (205.188.103.68) with HTTP (WebMailUI); Fri, 25 Mar 2011 20:02:19 -0400 Message-Id: <8CDB96035A9CEA0-CD0-1378@web-mmc-d02.sysops.aol.com> X-Spam-Flag: NO X-AOL-SENDER: dieterbsd@engineer.com Cc: Subject: Does FreeBSD support SB16C1058PCI RS-232 cards? 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: Sat, 26 Mar 2011 00:02:47 -0000 I'm looking at the SYBA SD-PCI15029 8 port RS-232 PCI card http://www.sybausa.com/productInfo.php?iid=3D994 $32.99 from newegg: http://www.newegg.com/Product/Product.aspx?Item=3DN82E16815124099 Chipset: SB16C1058PCI Compatible with 16C550 But... grep doesn't find any reference to the SB16C1058PCI much less SD-PCI15029. I fear that 16C550 isn't enough? From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 01:12:09 2011 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 28D0F106564A for ; Sat, 26 Mar 2011 01:12:09 +0000 (UTC) (envelope-from bmettee@pchotshots.com) Received: from mail.pchotshots.com (mail.pchotshots.com [12.172.123.237]) by mx1.freebsd.org (Postfix) with ESMTP id B1FE28FC08 for ; Sat, 26 Mar 2011 01:12:08 +0000 (UTC) Received: (qmail 57035 invoked by uid 89); 26 Mar 2011 01:12:08 -0000 Received: from unknown (HELO ?12.172.123.228?) (bmettee@pchotshots.com@12.172.123.228) by mail.pchotshots.com with ESMTPA; 26 Mar 2011 01:12:08 -0000 Message-ID: <4D8D3D68.2010507@pchotshots.com> Date: Fri, 25 Mar 2011 21:12:08 -0400 From: Brad Mettee User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Gary Kline , FreeBSD Mailing List References: <20110323164504.GA25317@thought.org> <20110324230049.GB31958@thought.org> <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> <20110325053630.GA6722@thought.org> <20110325164445.GA16901@thought.org> <20110325235341.GA26039@thought.org> In-Reply-To: <20110325235341.GA26039@thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: why does this simple counter fail? 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: Sat, 26 Mar 2011 01:12:09 -0000 Gary Kline wrote: > I'M trying to decide whether to tatoo this on my forehead or > just make a note in my ~/.notes file for the next time this > breaks. if/when. Meanwhile, the best thingt to do would simply > write a script to turn get into things like If you do the 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 8EB88106566B for ; Sat, 26 Mar 2011 01:30:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 4B1DB8FC0C for ; Sat, 26 Mar 2011 01:30:13 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id C02031E44F; Sat, 26 Mar 2011 02:30:10 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2Q1U9S5003058; Sat, 26 Mar 2011 02:30:09 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 26 Mar 2011 02:30:09 +0100 From: Polytropon To: Brad Mettee Message-Id: <20110326023009.251596d4.freebsd@edvax.de> In-Reply-To: <4D8D3D68.2010507@pchotshots.com> References: <20110323164504.GA25317@thought.org> <20110324230049.GB31958@thought.org> <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> <20110325053630.GA6722@thought.org> <20110325164445.GA16901@thought.org> <20110325235341.GA26039@thought.org> <4D8D3D68.2010507@pchotshots.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Gary Kline , FreeBSD Mailing List Subject: Re: why does this simple counter fail? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2011 01:30:13 -0000 On Fri, 25 Mar 2011 21:12:08 -0400, Brad Mettee wrote: > Gary Kline wrote: > > I'M trying to decide whether to tatoo this on my forehead or > > just make a note in my ~/.notes file for the next time this > > breaks. if/when. Meanwhile, the best thingt to do would simply > > write a script to turn > get into things like > > If you do the Otherwise you'll likely corrupt already good tags. With 's/<\?$/<\?php/g' and sufficient quoting, maybe removing extra spaces, it should be fine. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 04:56:43 2011 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 A2EBE106566C for ; Sat, 26 Mar 2011 04:56:43 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 72C348FC16 for ; Sat, 26 Mar 2011 04:56:43 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id E90EAE807EA; Fri, 25 Mar 2011 21:56:41 -0700 (PDT) Date: Fri, 25 Mar 2011 21:56:41 -0700 From: Gary Kline To: Polytropon Message-ID: <20110326045641.GA31925@thought.org> References: <20110324230049.GB31958@thought.org> <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> <20110325053630.GA6722@thought.org> <20110325164445.GA16901@thought.org> <20110325235341.GA26039@thought.org> <4D8D3D68.2010507@pchotshots.com> <20110326023009.251596d4.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110326023009.251596d4.freebsd@edvax.de> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24++ years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Brad Mettee , FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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: Sat, 26 Mar 2011 04:56:43 -0000 On Sat, Mar 26, 2011 at 02:30:09AM +0100, Polytropon wrote: > On Fri, 25 Mar 2011 21:12:08 -0400, Brad Mettee wrote: > > Gary Kline wrote: > > > I'M trying to decide whether to tatoo this on my forehead or > > > just make a note in my ~/.notes file for the next time this > > > breaks. if/when. Meanwhile, the best thingt to do would simply > > > write a script to turn > > get into things like > > > > If you do the > Otherwise you'll likely corrupt already good tags. > well, i have a C skeleton that i could modify, but yours below looks vastly simpler. how would i use sed to run this against? > With 's/<\?$/<\?php/g' and sufficient quoting, > maybe removing extra spaces, it should be fine. :-) > ha! doubt if i hv any spaces after > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.98a release of Jottings: http://jottings.thought.org From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 09:10:23 2011 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 EADB4106564A; Sat, 26 Mar 2011 09:10:23 +0000 (UTC) (envelope-from ohartman@mail.zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id A76158FC08; Sat, 26 Mar 2011 09:10:23 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1Q3PVm-0003pI-Ng>; Sat, 26 Mar 2011 10:10:22 +0100 Received: from e178022151.adsl.alicedsl.de ([85.178.22.151] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1Q3PVm-0002aG-KY>; Sat, 26 Mar 2011 10:10:22 +0100 Message-ID: <4D8DAD7E.8090109@mail.zedat.fu-berlin.de> Date: Sat, 26 Mar 2011 10:10:22 +0100 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110319 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org, freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: 85.178.22.151 Cc: Subject: XIO: fatal IO error 35 (Resource temporarily unavailable) on X server ":0.0" 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: Sat, 26 Mar 2011 09:10:24 -0000 Updating ports and source of my FreeBSD 9.0-CURRENT/amd64 host, equipted with a AMD/ATi HD4830 graphics board driven by X11 xf86-video-ati driver (which has been recently update as far as I saw), resulted this morning in an 'un-login-able' box. I see the xdm-login requester, but after successfully login, I see for a second the desktop (windowmaker), but X11 immediately dies and resets to the xdm requester again. Login from another box and examining the ~/.xsession-errors shows only this entry: --- foo.bar.org being added to access control list XIO: fatal IO error 35 (Resource temporarily unavailable) on X server ":0.0" after 29 requests (29 known processed) with 0 events remaining. wmaker warning: got signal 15 - exiting... --- Recompiling xdm and xorg-server ( I did this desperately in the first place) didn't help very much. I do not dare to update all the other boxes in my lab, since I suspect a similar problem since they have all the same or similar hardware (AMD graphics hardware, running X11, running FreeBSD 9.0-CURRENT/amd64). What to do? What changed? Regards, Oliver From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 09:33:08 2011 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 B5E87106564A for ; Sat, 26 Mar 2011 09:33:08 +0000 (UTC) (envelope-from s.dave.jones@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 51BB48FC08 for ; Sat, 26 Mar 2011 09:33:07 +0000 (UTC) Received: by wwc33 with SMTP id 33so2137559wwc.31 for ; Sat, 26 Mar 2011 02:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=OV8nxTUSimacOTt2hi/qxDjYKEadAfr2f+sNec9Fq3w=; b=tq8h9WPTzqKwvBaW8fOqmyXv+3kNe+1DLeA7t9yffoGpNoourIh3YP1Fm+joV6U9bg k8jExlpxtDMh/rWRBkLnrgTTCpUD9E4mBdcJdS9WzTX+yvTmUsxTSwpVtH4VNeUsE6wk 8bkBkdOxQGl1Ar3+O3irLPxoTBUuQjqXQKrpo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=AGAI6kML+qiQNuEZPbwHR90guvoqMP8lgAm7OFdGoYODP1k7oAg34hNcL4ZNnvb5pW 8xoK8N70zoKERdO8Iw0UsJSiOjoXQ6Yng8Sik9BLJJa2RuMD+cFDJI3d7R6ZrnW8nJTW dEz52CeXWlAny1tI5ZpbyNoUjNMj2K8PMahaA= MIME-Version: 1.0 Received: by 10.216.48.197 with SMTP id v47mr623562web.82.1301130249969; Sat, 26 Mar 2011 02:04:09 -0700 (PDT) Received: by 10.216.161.204 with HTTP; Sat, 26 Mar 2011 02:04:09 -0700 (PDT) Date: Sat, 26 Mar 2011 17:04:09 +0800 Message-ID: From: dave jones To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Where to download latest FreeBSD snapshots 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: Sat, 26 Mar 2011 09:33:08 -0000 Hello, It seems that www.allbsd.org is down and ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/201102 is old. Anyone knows where I can get the FreeBSD snapshots? Thank you. From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 11:09:07 2011 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 9F0821065678 for ; Sat, 26 Mar 2011 11:09:07 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id DE97E8FC17 for ; Sat, 26 Mar 2011 11:09:06 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA27979; Sat, 26 Mar 2011 12:55:23 +0200 (EET) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Q3R9P-000PJ9-FC; Sat, 26 Mar 2011 12:55:23 +0200 Message-ID: <4D8DC619.9080503@freebsd.org> Date: Sat, 26 Mar 2011 12:55:21 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110308 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: "O. Hartmann" References: <4D8DAD7E.8090109@mail.zedat.fu-berlin.de> In-Reply-To: <4D8DAD7E.8090109@mail.zedat.fu-berlin.de> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-questions@freebsd.org Subject: Re: XIO: fatal IO error 35 (Resource temporarily unavailable) on X server ":0.0" 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: Sat, 26 Mar 2011 11:09:07 -0000 on 26/03/2011 11:10 O. Hartmann said the following: > Updating ports and source of my FreeBSD 9.0-CURRENT/amd64 host, equipted with a > AMD/ATi HD4830 graphics board driven by X11 xf86-video-ati driver (which has > been recently update as far as I saw), > resulted this morning in an 'un-login-able' box. > > I see the xdm-login requester, but after successfully login, I see for a second > the desktop (windowmaker), but X11 immediately dies and resets to the xdm > requester again. Are you subscribed to our x11 list? It's quite low volume. Please see recent messages in its archive, perhaps they could help you. -- Andriy Gapon From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 17:27:24 2011 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 91DDA1065673 for ; Sat, 26 Mar 2011 17:27:24 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from fep33.mx.upcmail.net (fep33.mx.upcmail.net [62.179.121.51]) by mx1.freebsd.org (Postfix) with ESMTP id CC9418FC08 for ; Sat, 26 Mar 2011 17:27:23 +0000 (UTC) Received: from edge01.upcmail.net ([192.168.13.236]) by viefep16-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110326171139.YKTJ9043.viefep16-int.chello.at@edge01.upcmail.net> for ; Sat, 26 Mar 2011 18:11:39 +0100 Received: from [192.168.0.100] ([89.134.255.51]) by edge01.upcmail.net with edge id PtBe1g00o17Joup01tBfeU; Sat, 26 Mar 2011 18:11:39 +0100 X-SourceIP: 89.134.255.51 Message-ID: <4D8E1E4A.5000609@shopzeus.com> Date: Sat, 26 Mar 2011 18:11:38 +0100 From: Laszlo Nagy User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=vUpxTctd+kpWCBtSXXIkt5ll4Z8E5Qu9nLREXC/hfIo= c=1 sm=0 a=dlutpJqdQxcA:10 a=8nJEP1OIZ-IA:10 a=hRT4fdJTGWvgVpSJqzwA:9 a=_ty-xQCrKfe5zaXkRfwyvX9QSakA:4 a=wPNLvfGTeEIA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: Subject: MySQL 3 needed but how? 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: Sat, 26 Mar 2011 17:27:24 -0000 Hi, I have an old backup from a MySQL data directory. It was created with MySQL version 3. If I install MySQL 4 then I get this message telling that the table was created with a different MySQL version. So I try to install mysql 3. Here is the problem: gw# pwd /usr/ports/databases/mysql323-server gw# make ===> mysql-server-3.23.59.n.20050301_3 obsolete and does not build with gcc4.2; use mysql 5 or later. *** Error code 1 Stop in /usr/ports/databases/mysql323-server. gw# But I really need mysql 3. I usually install everything from the ports tree, but in this case this won't work. I need a quick solution. Maybe I can install a different OS in a virtual machine. But do you know where can I download a BSD OS version that has a binary package of MySQL server 3? (I don't know how to search for a BSD OS that has binary packages for mysql3...) Thanks, Laszlo From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 18:08:03 2011 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 E1986106566B for ; Sat, 26 Mar 2011 18:08:03 +0000 (UTC) (envelope-from prvs=0059cc19d1=johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [64.57.183.53]) by mx1.freebsd.org (Postfix) with ESMTP id 62AD08FC12 for ; Sat, 26 Mar 2011 18:08:03 +0000 (UTC) Received: (qmail 67272 invoked from network); 26 Mar 2011 17:41:22 -0000 Received: from mail1.iecc.com (64.57.183.56) by mail1.iecc.com with QMQP; 26 Mar 2011 17:41:22 -0000 Date: 26 Mar 2011 17:41:00 -0000 Message-ID: <20110326174100.1617.qmail@joyce.lan> From: "John Levine" To: freebsd-questions@freebsd.org In-Reply-To: <4D8E1E4A.5000609@shopzeus.com> Organization: X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit Cc: gandalf@shopzeus.com Subject: Re: MySQL 3 needed but how? 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: Sat, 26 Mar 2011 18:08:04 -0000 In article <4D8E1E4A.5000609@shopzeus.com> you write: > >Hi, > >I have an old backup from a MySQL data directory. It was created with >MySQL version 3. If I install MySQL 4 then I get this message telling >that the table was created with a different MySQL version. You should be able to restore the individual database directories under mysql 4 and use ALTER TABLE to upgrade the file formats. You'll lose the user access stuff, but that's usually easy enough to reconstruct. In MySQL, each database is self-describing. That is, for database foo, the files in the foo/ directory are both the description of the tables and the data in them. http://dev.mysql.com/doc/refman/4.1/en/upgrading-from-3-23.html R's, John From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 18:24:00 2011 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 78DC9106566B for ; Sat, 26 Mar 2011 18:24:00 +0000 (UTC) (envelope-from kristaps.kulis@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2CC3D8FC14 for ; Sat, 26 Mar 2011 18:23:59 +0000 (UTC) Received: by qwc9 with SMTP id 9so1336512qwc.13 for ; Sat, 26 Mar 2011 11:23:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=JPdkmw6GGFzLxpZaTyanTiOWHlCIXeKplCKYJM8rU60=; b=fl1WcL9ATY+Q6ot8pVSNQQs3WmlEkJcStRSRobMtnUUnpbTRMHB38KlnvRmkMKOtN4 gkLmVNxZ24t5bJsa5pNEiYxRehpZs7Hku9U0Rxy31CK1pl3OcsF1FW/rQmhIVa2LQxDi DtAITWPeiUnAGeGV+wC9MxcWj16W0Te7DsD5I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=xk+jQy/SpV9UUgFX5mtl2W0yon8MmzcdrAGIJ1BGQMO5XJQqBe2waK8l0jZeQr/0Pw ALmtw7lGKf6/cFnGTQRDL04s2JaAnh8KydeVIstax229SLmf9oFT+TGhkg/aTuFNmOfh ofvREgYrAwwbSFtTwWzETD5ttzyXpq34oqlhA= Received: by 10.229.197.11 with SMTP id ei11mr1857347qcb.87.1301162329268; Sat, 26 Mar 2011 10:58:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.26.206 with HTTP; Sat, 26 Mar 2011 10:58:28 -0700 (PDT) In-Reply-To: <4D8E1E4A.5000609@shopzeus.com> References: <4D8E1E4A.5000609@shopzeus.com> From: =?UTF-8?Q?Kristaps_K=C5=ABlis_?= Date: Sat, 26 Mar 2011 19:58:28 +0200 Message-ID: To: Laszlo Nagy Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: questions@freebsd.org Subject: Re: MySQL 3 needed but how? 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: Sat, 26 Mar 2011 18:24:00 -0000 Quick glance .... /usr/ports/databases/mysql323-server/ 65 .if ${OSVERSION} >=3D 700000 66 IGNORE=3D obsolete and does not build with gcc4.2; use mysql 5 or la= ter 67 .endif Get FreeBSD-6x installed somewhere and mysql port SHOULD compile and run. On Sat, Mar 26, 2011 at 7:11 PM, Laszlo Nagy wrote: > > Hi, > > I have an old backup from a MySQL data directory. It was created with MyS= QL > version 3. If I install MySQL 4 then I get this message telling that the > table was created with a different MySQL version. > > So I try to install mysql 3. Here is the problem: > > gw# pwd > /usr/ports/databases/mysql323-server > gw# make > =3D=3D=3D> =A0mysql-server-3.23.59.n.20050301_3 obsolete and does not bui= ld with > gcc4.2; use mysql 5 or later. > *** Error code 1 > > Stop in /usr/ports/databases/mysql323-server. > gw# > > But I really need mysql 3. I usually install everything from the ports tr= ee, > but in this case this won't work. I need a quick solution. Maybe I can > install a different OS in a virtual machine. But do you know where can I > download a BSD OS version that has a binary package of MySQL server 3? (I > don't know how to search for a BSD OS that has binary packages for > mysql3...) > > Thanks, > > =A0 Laszlo > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 19:40:56 2011 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 75BDA1065673 for ; Sat, 26 Mar 2011 19:40:56 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from fep28.mx.upcmail.net (fep28.mx.upcmail.net [62.179.121.48]) by mx1.freebsd.org (Postfix) with ESMTP id AE4408FC14 for ; Sat, 26 Mar 2011 19:40:55 +0000 (UTC) Received: from edge04.upcmail.net ([192.168.13.239]) by viefep12-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110326192110.SACS18728.viefep12-int.chello.at@edge04.upcmail.net>; Sat, 26 Mar 2011 20:21:10 +0100 Received: from [192.168.0.100] ([89.134.255.51]) by edge04.upcmail.net with edge id PvM81g01W17Joup04vM9oF; Sat, 26 Mar 2011 20:21:10 +0100 X-SourceIP: 89.134.255.51 Message-ID: <4D8E3CA4.8040808@shopzeus.com> Date: Sat, 26 Mar 2011 20:21:08 +0100 From: Laszlo Nagy User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: John Levine References: <20110326174100.1617.qmail@joyce.lan> In-Reply-To: <20110326174100.1617.qmail@joyce.lan> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=tMVj8KYobzzX0EiRnC7vY2isLrCxFvdg4RrHWPZXwJ0= c=1 sm=0 a=dlutpJqdQxcA:10 a=MSV4LiBCzYEA:10 a=IkcTkHD0fZMA:10 a=QA7ub1_jAAAA:8 a=tekm_XskAAAA:8 a=xUm05R_ZplZEyiarvz8A:9 a=Eby65_X7je00ZyuwqTcA:7 a=j7uwzBEj0thsBsYU0cGurg_XicYA:4 a=QEXdDO2ut3YA:10 a=C2YwM-JBH08A:10 a=LII6xPS85XQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: freebsd-questions@freebsd.org Subject: Re: MySQL 3 needed but how? 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: Sat, 26 Mar 2011 19:40:56 -0000 On 2011-03-26 18:41, John Levine wrote: > In article<4D8E1E4A.5000609@shopzeus.com> you write: >> Hi, >> >> I have an old backup from a MySQL data directory. It was created with >> MySQL version 3. If I install MySQL 4 then I get this message telling >> that the table was created with a different MySQL version. > You should be able to restore the individual database directories > under mysql 4 and use ALTER TABLE to upgrade the file formats. You'll > lose the user access stuff, but that's usually easy enough to > reconstruct. > > In MySQL, each database is self-describing. That is, for database > foo, the files in the foo/ directory are both the description of > the tables and the data in them. > > http://dev.mysql.com/doc/refman/4.1/en/upgrading-from-3-23.html Okay, I tried to follow the instruction. So instead of installing 4.1, I have installed 4.0. After replacing /var/db/mysql with my archived directory: gw# /usr/local/etc/rc.d/mysql-server start Starting mysql. gw# /usr/local/etc/rc.d/mysql-server status mysql is not running. gw# There is nothing in /var/log/messages. It was working with 4.1 server, but I just uninstalled that (because the upgrading faq told me to install 4.0 instead.) So what now? L From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 20:50:55 2011 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 C62B4106566B for ; Sat, 26 Mar 2011 20:50:55 +0000 (UTC) (envelope-from prvs=0059cc19d1=johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [64.57.183.53]) by mx1.freebsd.org (Postfix) with ESMTP id 5BE718FC0A for ; Sat, 26 Mar 2011 20:50:55 +0000 (UTC) Received: (qmail 98206 invoked from network); 26 Mar 2011 20:50:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type:vbr-info:user-agent:cleverness; s=17f9d.4d8e51ad.k1103; i=johnl@submit.iecc.com; bh=veIp7K8NMuKJvopxc8hKT1NwE8byU36MTwkBuD526Gc=; b=KxUOG2BT3dWnjyYZ3/TKtaeCBtbwtaKPlVpBe0dfg/HlJFKlVL1F88gSBjmS/m7M6EdRI+UFl2rWFWqkeOwV+mcxalnSjaNuo/49eJbsxMKsHKuxaM/7dYww1zIM5cZ/y1vCqk9rbC5yh3xxvxNi/SQHzMgGJpywLgL7YsdDfbU= VBR-Info: md=iecc.com; mc=all; mv=dwl.spamhaus.org Received: (ofmipd johnl@64.57.183.62) with (DHE-RSA-AES256-SHA encrypted) SMTP; 26 Mar 2011 20:50:31 -0000 Date: 26 Mar 2011 16:50:53 -0400 Message-ID: From: "John R. Levine" To: "Laszlo Nagy" In-Reply-To: <4D8E3CA4.8040808@shopzeus.com> References: <20110326174100.1617.qmail@joyce.lan> <4D8E3CA4.8040808@shopzeus.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Cleverness: None detected MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: MySQL 3 needed but how? 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: Sat, 26 Mar 2011 20:50:55 -0000 > Starting mysql. > gw# /usr/local/etc/rc.d/mysql-server status > mysql is not running. > gw# > > > There is nothing in /var/log/messages. Sounds like you'll have to do some debugging. Try adding --verbose to mysql_args in /etc/rc.conf, and see the other advice in http://dev.mysql.com/doc/refman/4.1/en/starting-server.html It may be something really simple, like the mysql data directory not being where the server expects it to be. Regards, John Levine, johnl@iecc.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. http://jl.ly From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 20:56:33 2011 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 52E0D106566B for ; Sat, 26 Mar 2011 20:56:33 +0000 (UTC) (envelope-from freebsd.user@seibercom.net) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 076098FC18 for ; Sat, 26 Mar 2011 20:56:32 +0000 (UTC) Received: by gxk28 with SMTP id 28so930256gxk.13 for ; Sat, 26 Mar 2011 13:56:32 -0700 (PDT) Received: by 10.150.13.7 with SMTP id 7mr2325757ybm.201.1301172992190; Sat, 26 Mar 2011 13:56:32 -0700 (PDT) Received: from scorpio.seibercom.net (twdp-174-109-142-001.nc.res.rr.com [174.109.142.1]) by mx.google.com with ESMTPS id q29sm2128315yba.2.2011.03.26.13.56.31 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 Mar 2011 13:56:31 -0700 (PDT) Received: from scorpio (zeus [192.168.1.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: FreeBSD.user@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id A25C9E5480D for ; Sat, 26 Mar 2011 16:56:29 -0400 (EDT) Date: Sat, 26 Mar 2011 16:56:29 -0400 From: Jerry To: FreeBSD Message-ID: <20110326165629.738ce74e@scorpio> In-Reply-To: <4D8E3CA4.8040808@shopzeus.com> References: <20110326174100.1617.qmail@joyce.lan> <4D8E3CA4.8040808@shopzeus.com> Organization: seibercom.net X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; amd64-portbld-freebsd8.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEUeH4oAAI3//v8LDHmw s8gyNZ/b3ej7+vn+/v////+PjIc8Plaj/TnQAAACNElEQVQ4jaXUvW/aQBQAcFtKGZLFT+YY 3D1SR9SKoRMncE3IggU4kicGi1JYOgQwyYrgnLlSzhsoNkTuVJEp+ef6ztiAoV3aJ+QPfufn s987S/5fQvoXYPjztmfc514Ks+5JfGUCfrzt4+VabF+jwEV4DGEXN8N4p16sPLxHX07/V3qX yfF5D2H6K4V8j9NkyAphvkjBembD5PDFk3zeTzP1jcksyaV9w+d4ELmUoOp8N2p8uQVyhTAT uawnKNH2mie5lJp48mscUcbJUvg0mR6APwAoye9AMyWozY4gAh0vcxa5FJ4TKCuODESWtfkB 8AEQSupUXNIYH8FSC2w8X3eMBNbbVJpJ7MgECO5yJ9DUEWCYkzNAlsRsgwLQ1GkWqELbkDOh 1bUzoHagYkNh9MXlK/MQoA42gTxz2bhPM2DJedm8MZx6cNfJgEZJ5cmwPp5FZ/Ye8O2qTrFV dgOrHkZRBoheJiGrRquwAhnQ6GeTePPerWVmQelAQ5lwNqtvQd2lcooAV74/zR1BIRS19fy5 ru+B/8ReW9pYKMPjt609zDaitHHTGOO+Zu7gHvsKE7XbeE1QVuJXomIFuZgUJdXQdhpqEELc /e8RLjfi+cQ01yMdWot8UcCVxEWHEkcUrsDGuhaIEoM9kfgAR6jxHcmEV7tNURAl8KTHN9iF McKGFHGO62O62UMpbmlVuogQ7ndL8zXCiLeBy3xpfrqaXS/+AHDG4o8AvhuPeezD/3xL/hy/ Adjlg2odglF2AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: MySQL 3 needed but how? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2011 20:56:33 -0000 On Sat, 26 Mar 2011 20:21:08 +0100 Laszlo Nagy articulated: > On 2011-03-26 18:41, John Levine wrote: > > In article<4D8E1E4A.5000609@shopzeus.com> you write: > >> Hi, > >> > >> I have an old backup from a MySQL data directory. It was created > >> with MySQL version 3. If I install MySQL 4 then I get this message > >> telling that the table was created with a different MySQL version. > > You should be able to restore the individual database directories > > under mysql 4 and use ALTER TABLE to upgrade the file formats. > > You'll lose the user access stuff, but that's usually easy enough to > > reconstruct. > > > > In MySQL, each database is self-describing. That is, for database > > foo, the files in the foo/ directory are both the description of > > the tables and the data in them. > > > > http://dev.mysql.com/doc/refman/4.1/en/upgrading-from-3-23.html > Okay, I tried to follow the instruction. So instead of installing > 4.1, I have installed 4.0. After replacing /var/db/mysql with my > archived directory: > > gw# /usr/local/etc/rc.d/mysql-server start > Starting mysql. > gw# /usr/local/etc/rc.d/mysql-server status > mysql is not running. > gw# > > > There is nothing in /var/log/messages. > > It was working with 4.1 server, but I just uninstalled that (because > the upgrading faq told me to install 4.0 instead.) Do you have the following in your "/etc/rc.conf" file: mysql_enable="YES" -- Jerry ✌ FreeBSD.user@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ Microbiology Lab: Staph Only! From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 21:57:06 2011 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 EB2591065673 for ; Sat, 26 Mar 2011 21:57:06 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from shopzeus.com (135-shost.hostoffice.hu [195.228.74.135]) by mx1.freebsd.org (Postfix) with ESMTP id AC56C8FC0A for ; Sat, 26 Mar 2011 21:57:06 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by shopzeus.com (Postfix) with ESMTP id 6C705889739B for ; Sat, 26 Mar 2011 17:40:12 -0400 (EDT) Message-ID: <4D8E5D3C.2000409@shopzeus.com> Date: Sat, 26 Mar 2011 22:40:12 +0100 From: Laszlo Nagy User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20110326174100.1617.qmail@joyce.lan> <4D8E3CA4.8040808@shopzeus.com> <20110326165629.738ce74e@scorpio> In-Reply-To: <20110326165629.738ce74e@scorpio> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-shopzeus-MailScanner-Information: Please contact the ISP for more information X-shopzeus-MailScanner-ID: 6C705889739B.A0B6C X-shopzeus-MailScanner: Found to be clean X-shopzeus-MailScanner-From: gandalf@shopzeus.com X-Spam-Status: No Subject: Re: MySQL 3 needed but how? 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: Sat, 26 Mar 2011 21:57:07 -0000 >> There is nothing in /var/log/messages. >> >> It was working with 4.1 server, but I just uninstalled that (because >> the upgrading faq told me to install 4.0 instead.) > Do you have the following in your "/etc/rc.conf" file: > > mysql_enable="YES" Yes. I'm in the process of installing FreeBSD 6.4 in a virtual machine. Hopefully I'll be able to compile mysql 3.23 and make a backup from there. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 21:57:08 2011 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 25EA31065674 for ; Sat, 26 Mar 2011 21:57:07 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from shopzeus.com (135-shost.hostoffice.hu [195.228.74.135]) by mx1.freebsd.org (Postfix) with ESMTP id AC4DF8FC08 for ; Sat, 26 Mar 2011 21:57:06 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by shopzeus.com (Postfix) with ESMTP id 45905889739C; Sat, 26 Mar 2011 17:49:18 -0400 (EDT) Message-ID: <4D8E5F5E.9080104@shopzeus.com> Date: Sat, 26 Mar 2011 22:49:18 +0100 From: Laszlo Nagy User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: "John R. Levine" References: <20110326174100.1617.qmail@joyce.lan> <4D8E3CA4.8040808@shopzeus.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-shopzeus-MailScanner-Information: Please contact the ISP for more information X-shopzeus-MailScanner-ID: 45905889739C.A335B X-shopzeus-MailScanner: Found to be clean X-shopzeus-MailScanner-From: gandalf@shopzeus.com X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: MySQL 3 needed but how? 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: Sat, 26 Mar 2011 21:57:08 -0000 > Sounds like you'll have to do some debugging. Try adding --verbose to > mysql_args in /etc/rc.conf, and see the other advice in > http://dev.mysql.com/doc/refman/4.1/en/starting-server.html gw# /usr/local/bin/mysqld_safe --verbose Starting mysqld daemon with databases from /var/db/mysql STOPPING server from pid file /var/db/mysql/gw.sznet.pid 110326 16:44:14 mysqld ended The data directory is correct. I don't understand why it is stopping immediatelly after startup. Trying the other way around (FreeBSD 6.4 on a virtual machine) > > It may be something really simple, like the mysql data directory not > being where the server expects it to be. > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 22:56:03 2011 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 3F31A106566B for ; Sat, 26 Mar 2011 22:56:03 +0000 (UTC) (envelope-from fbsd8@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 24F2B8FC13 for ; Sat, 26 Mar 2011 22:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; q=dns/txt; s=DKIM-NAME-SERVICES; d=a1poweruser.com; h=From:To:Cc:Subject:Message-ID:X-Sender:X-Envelope-From; l=500; bh=GnSKbTwl6s4xmm9WFyrksW2IsGBNPgoICGIxASZou2s=; b=DQpmL5b0NDscxVLRgLN5YBfgsXwEiMrtYybjJ8b+JRUZns/7WTiPNjvIcaxqOZEi05+PdiHiL4v4ELelEnElzp/kQ6RGYJbktwY2Omdtrc/qXAEyNgHzU2dNODsW+2SbsGBuFU1GHQ83kHI0pvo8aM7RbGo5a/V0kFg7mqJJ+wY= Received: from [192.168.1.64] ([76.240.47.196]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 26 Mar 2011 15:56:03 -0700 Message-ID: <4D8E6F03.6060604@a1poweruser.com> Date: Sat, 26 Mar 2011 18:56:03 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Laszlo Nagy References: <20110326174100.1617.qmail@joyce.lan> <4D8E3CA4.8040808@shopzeus.com> <4D8E5F5E.9080104@shopzeus.com> In-Reply-To: <4D8E5F5E.9080104@shopzeus.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 26 Mar 2011 22:56:03.0156 (UTC) FILETIME=[FB619140:01CBEC08] X-Sender: fbsd8@a1poweruser.com X-Envelope-From: fbsd8*a1poweruser.com Cc: freebsd-questions@freebsd.org Subject: Re: MySQL 3 needed but how? 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: Sat, 26 Mar 2011 22:56:03 -0000 Laszlo Nagy wrote: > >> Sounds like you'll have to do some debugging. Try adding --verbose to >> mysql_args in /etc/rc.conf, and see the other advice in >> http://dev.mysql.com/doc/refman/4.1/en/starting-server.html > > gw# /usr/local/bin/mysqld_safe --verbose > Starting mysqld daemon with databases from /var/db/mysql > STOPPING server from pid file /var/db/mysql/gw.sznet.pid > 110326 16:44:14 mysqld ended > > The data directory is correct. I don't understand why it is stopping > immediatelly after startup. > > Trying the other way around (FreeBSD 6.4 on a virtual machine) >> >> It may be something really simple, like the mysql data directory not >> being where the server expects it to be. >> > > No matter which version of mysql you install, you have to run this command mysql_install_db --user=mysql on the command line to create mysql's control databases first. Then restart the mysql service. To verify mysql is operational issue this command. mysqladmin version Them run your restore DB job pointing at your old bkup file. That should recreate your db definition and populate the db with your data in sync with the version of mysql your running. From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 23:11:48 2011 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 AA3BA106564A for ; Sat, 26 Mar 2011 23:11:48 +0000 (UTC) (envelope-from freebsd.user@seibercom.net) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5C1A68FC0A for ; Sat, 26 Mar 2011 23:11:48 +0000 (UTC) Received: by gxk28 with SMTP id 28so950931gxk.13 for ; Sat, 26 Mar 2011 16:11:47 -0700 (PDT) Received: by 10.146.228.36 with SMTP id a36mr2356512yah.32.1301181107428; Sat, 26 Mar 2011 16:11:47 -0700 (PDT) Received: from scorpio.seibercom.net (twdp-174-109-142-001.nc.res.rr.com [174.109.142.1]) by mx.google.com with ESMTPS id p67sm1195306yhm.100.2011.03.26.16.11.46 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 Mar 2011 16:11:47 -0700 (PDT) Received: from scorpio (zeus [192.168.1.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: FreeBSD.user@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 3159BE5480D for ; Sat, 26 Mar 2011 19:11:45 -0400 (EDT) Date: Sat, 26 Mar 2011 19:11:44 -0400 From: Jerry To: FreeBSD Message-ID: <20110326191144.570932c0@scorpio> In-Reply-To: <4D8E6F03.6060604@a1poweruser.com> References: <20110326174100.1617.qmail@joyce.lan> <4D8E3CA4.8040808@shopzeus.com> <4D8E5F5E.9080104@shopzeus.com> <4D8E6F03.6060604@a1poweruser.com> Organization: seibercom.net X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; amd64-portbld-freebsd8.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEUeH4oAAI3//v8LDHmw s8gyNZ/b3ej7+vn+/v////+PjIc8Plaj/TnQAAACNElEQVQ4jaXUvW/aQBQAcFtKGZLFT+YY 3D1SR9SKoRMncE3IggU4kicGi1JYOgQwyYrgnLlSzhsoNkTuVJEp+ef6ztiAoV3aJ+QPfufn s987S/5fQvoXYPjztmfc514Ks+5JfGUCfrzt4+VabF+jwEV4DGEXN8N4p16sPLxHX07/V3qX yfF5D2H6K4V8j9NkyAphvkjBembD5PDFk3zeTzP1jcksyaV9w+d4ELmUoOp8N2p8uQVyhTAT uawnKNH2mie5lJp48mscUcbJUvg0mR6APwAoye9AMyWozY4gAh0vcxa5FJ4TKCuODESWtfkB 8AEQSupUXNIYH8FSC2w8X3eMBNbbVJpJ7MgECO5yJ9DUEWCYkzNAlsRsgwLQ1GkWqELbkDOh 1bUzoHagYkNh9MXlK/MQoA42gTxz2bhPM2DJedm8MZx6cNfJgEZJ5cmwPp5FZ/Ye8O2qTrFV dgOrHkZRBoheJiGrRquwAhnQ6GeTePPerWVmQelAQ5lwNqtvQd2lcooAV74/zR1BIRS19fy5 ru+B/8ReW9pYKMPjt609zDaitHHTGOO+Zu7gHvsKE7XbeE1QVuJXomIFuZgUJdXQdhpqEELc /e8RLjfi+cQ01yMdWot8UcCVxEWHEkcUrsDGuhaIEoM9kfgAR6jxHcmEV7tNURAl8KTHN9iF McKGFHGO62O62UMpbmlVuogQ7ndL8zXCiLeBy3xpfrqaXS/+AHDG4o8AvhuPeezD/3xL/hy/ Adjlg2odglF2AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: MySQL 3 needed but how? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2011 23:11:48 -0000 On Sat, 26 Mar 2011 18:56:03 -0400 Fbsd8 articulated: > Laszlo Nagy wrote: > > > >> Sounds like you'll have to do some debugging. Try adding > >> --verbose to mysql_args in /etc/rc.conf, and see the other advice > >> in http://dev.mysql.com/doc/refman/4.1/en/starting-server.html > > > > gw# /usr/local/bin/mysqld_safe --verbose > > Starting mysqld daemon with databases from /var/db/mysql > > STOPPING server from pid file /var/db/mysql/gw.sznet.pid > > 110326 16:44:14 mysqld ended > > > > The data directory is correct. I don't understand why it is > > stopping immediatelly after startup. > > > > Trying the other way around (FreeBSD 6.4 on a virtual machine) > >> > >> It may be something really simple, like the mysql data directory > >> not being where the server expects it to be. > >> > > > > > No matter which version of mysql you install, > you have to run this command > mysql_install_db --user=mysql > on the command line to create mysql's > control databases first. I believe that all of that is done by the mysql-server start-up file. -- Jerry ✌ FreeBSD.user@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 23:31:19 2011 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 873FF106566B for ; Sat, 26 Mar 2011 23:31:19 +0000 (UTC) (envelope-from gkeramidas@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 429458FC08 for ; Sat, 26 Mar 2011 23:31:18 +0000 (UTC) Received: by gxk28 with SMTP id 28so953630gxk.13 for ; Sat, 26 Mar 2011 16:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=a0ZRHcn6v2OmswbabknX/QgncOhfNGWE36bEyycYjg8=; b=jerPb1Ga2CvAn2/pScADnOU3Z7UXcHXHIxieCwlbX5+z8BeOhbyLDjreS/zr+No3Qw sQbjMpIVB0wnzwx100SIKJMBAh16sC8GdUBjRVXncoLovoNsEE1XzlmNSEbrFIF0/qSs CuU0KZDMsYRtTvxFCbgWT4kZp19XCn8N3s8zw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=an9lOP3kw1G/2riEG4e/UJJgIMM9ujc0po85+Dsqqt2One9/vhjd72T5pfKurOLA3G HLYnqudQ0uV5UTRp4dp0R21m8PxOKRVP0hQnFeP78cwk+c5EdEcnUWgVUmTvhSB4RFob 4aJGVLpQ31Ro7EwExZFCxwd4899o8Vl/zjUqo= MIME-Version: 1.0 Received: by 10.236.92.9 with SMTP id i9mr3249834yhf.268.1301182278462; Sat, 26 Mar 2011 16:31:18 -0700 (PDT) Sender: gkeramidas@gmail.com Received: by 10.147.181.12 with HTTP; Sat, 26 Mar 2011 16:31:18 -0700 (PDT) In-Reply-To: References: Date: Sun, 27 Mar 2011 00:31:18 +0100 X-Google-Sender-Auth: 5pMe5cNsvXh51VqC0C6oRMkJUs4 Message-ID: From: Giorgos Keramidas To: Jim Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: opening a shared object / failing with Undefined Symbol. 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: Sat, 26 Mar 2011 23:31:19 -0000 On Tue, Mar 22, 2011 at 2:28 PM, Jim wrote: > I have an application that opens two .so files with dlopen(3): > =C2=A0/usr/local/lib/libag_core.so > =C2=A0/usr/local/lib/libag_gui.so > > Both files exist > Running nm(1) against each produces a lot of output, showing all the > symbols I know to exist in each library. > > My application gets a null return from dlopen on the libag_gui.so. > > dlerror produces the following string: > =C2=A0"/usr/local/lib/libag_gui.so Undefined symbol "agTimingLock" > > $ nm /usr/local/lib/libag_gui.so | grep agTiming > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 U agTimingLock > > I'm guessing that means that agTimingLock is used in that library but > not defined? > > $ nm /usr/local/lib/libag_core.so | grep agTiming > 0000000000141c00 B agTimingLock > > And this would mean that it is defined in libag_core.so? Yes, but it's in the uninitialized data section: % man nm ... "B" "b" The symbol is in the uninitialized data section (known as BS= S). What is the "ag" library? Which version are you using? What sort of dlopen() call did you try to run?