From owner-freebsd-questions@freebsd.org Sun Jun 26 06:38:52 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD8D9B808F6 for ; Sun, 26 Jun 2016 06:38:52 +0000 (UTC) (envelope-from ws@au.dyndns.ws) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id 663B218D1 for ; Sun, 26 Jun 2016 06:38:51 +0000 (UTC) (envelope-from ws@au.dyndns.ws) Received: from ppp103-111.static.internode.on.net (HELO lillith-iv.ovirt.dyndns.ws) ([150.101.103.111]) by ipmail06.adl2.internode.on.net with ESMTP; 26 Jun 2016 16:03:42 +0930 X-Envelope-From: ws@au.dyndns.ws X-Envelope-To: freebsd-questions@freebsd.org Received: from predator-ii.buffyverse (predator-ii.buffyverse [172.17.17.136]) by lillith-iv.ovirt.dyndns.ws (8.14.9/8.14.9) with ESMTP id u5Q6XQoS047344; Sun, 26 Jun 2016 16:03:31 +0930 (ACST) (envelope-from ws@au.dyndns.ws) Message-ID: <1466922806.1888.12.camel@au.dyndns.ws> Subject: Re: Sendmail and mimedefang, help. From: Wayne Sierke To: Bernt Hansson , freebsd-questions@freebsd.org Date: Sun, 26 Jun 2016 16:03:26 +0930 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (lillith-iv.ovirt.dyndns.ws [172.17.17.142]); Sun, 26 Jun 2016 16:03:31 +0930 (ACST) X-Scanned-By: MIMEDefang 2.75 on 172.17.17.142 X-Scanned-By: SpamAssassin 3.004000(2014-02-07) X-Scanned-By: ClamAV X-Spam-Score: -2.9 () ALL_TRUSTED,BAYES_00 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 06:38:53 -0000 On Mon, 2016-06-20 at 13:32 +0200, Bernt Hansson wrote: > Hello list! > > I'm trying to setup mimedefang and sendmail on a replacement machine. > > This is how I start mimedefang > > mimedefang -c -k -p /var/spool/MIMEDefang/defang.pid -m  > /var/spool/MIMEDefang/multiplexor.sock -U mailnull > > The multiplexor > > mimedefang-multiplexor -U mailnull -s  > /var/spool/MIMEDefang/multiplexor.sock -l > > Getting this in /var/log/maillog > > mimedefang-multiplexor[13560]: started; minSlaves=1, maxSlaves=2,  > maxRequests=500, maxIdleTime=300, busyTimeout=120, clientTimeout=10 > mimedefang-multiplexor[13560]: Starting slave 0 (pid 13561) (1 > running):  > Bringing slaves up to minSlaves (1) > mimedefang[13564]: MIMEDefang alive. slavesReservedForLoopback=-1  > AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0  > doSenderCheck=0 doRecipientCheck=0 > mimedefang[13564]: Multiplexor alive - entering main loop > > I've tried differnt users like daemon, smmsp, operator, nobody and > even  > sane. > But no luck. > > Getting an e-mail, sendmail respond with this > > sm-mta[11617]: u5JM06Qf011617: Milter (mimedefang): local socket > name  > /var/spool/MIMEDefang/mimedefang.sock unsafe > > > Permissions on /var/spool/MIMEDefang/ > > drwx------  2 mailnull  mailnull    512 20 Jun 13:28 MIMEDefang > > So what can I do? > Hi Bernt, I recall running into this problem some years ago but I think the mimedefang port was improved quite a bit since then in providing better defaults and run-time configuration options. The only immediate difference I can find on my current mail system is: drwx--x---  28 mailnull  mailnull  1024 Jun 26 15:50 /var/spool/MIMEDefang/ It's possible that is a remnant of a "chmod g-r[w]" in order to address the "mimedefang.sock unsafe" issue, although I'm only guessing at that and it may not be related or relevant at all. If you have installed the mimedefang port you could try starting it using "system" methods e.g. "service mimedefang [one]start" or similar and see if there's any difference in behaviour? Wayne From owner-freebsd-questions@freebsd.org Sun Jun 26 13:10:48 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0075CB731DF for ; Sun, 26 Jun 2016 13:10:48 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 66F272F01 for ; Sun, 26 Jun 2016 13:10:45 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from testbox.news4all.se (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id u5QDAHo8023990; Sun, 26 Jun 2016 15:10:18 +0200 (CEST) (envelope-from bah@bananmonarki.se) Subject: Re: Sendmail and mimedefang, help. To: Wayne Sierke , freebsd-questions@freebsd.org References: <1466922806.1888.12.camel@au.dyndns.ws> From: Bernt Hansson Message-ID: <4c83122c-cc19-e938-4cde-43c1b48a36d9@bananmonarki.se> Date: Sun, 26 Jun 2016 15:10:20 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <1466922806.1888.12.camel@au.dyndns.ws> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 13:10:48 -0000 On 2016-06-26 08:33, Wayne Sierke wrote: > On Mon, 2016-06-20 at 13:32 +0200, Bernt Hansson wrote: >> Hello list! >> >> I'm trying to setup mimedefang and sendmail on a replacement machine. >> >> This is how I start mimedefang >> >> mimedefang -c -k -p /var/spool/MIMEDefang/defang.pid -m >> /var/spool/MIMEDefang/multiplexor.sock -U mailnull >> >> The multiplexor >> >> mimedefang-multiplexor -U mailnull -s >> /var/spool/MIMEDefang/multiplexor.sock -l >> >> Getting this in /var/log/maillog >> >> mimedefang-multiplexor[13560]: started; minSlaves=1, maxSlaves=2, >> maxRequests=500, maxIdleTime=300, busyTimeout=120, clientTimeout=10 >> mimedefang-multiplexor[13560]: Starting slave 0 (pid 13561) (1 >> running): >> Bringing slaves up to minSlaves (1) >> mimedefang[13564]: MIMEDefang alive. slavesReservedForLoopback=-1 >> AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 >> doSenderCheck=0 doRecipientCheck=0 >> mimedefang[13564]: Multiplexor alive - entering main loop >> >> I've tried differnt users like daemon, smmsp, operator, nobody and >> even >> sane. >> But no luck. >> >> Getting an e-mail, sendmail respond with this >> >> sm-mta[11617]: u5JM06Qf011617: Milter (mimedefang): local socket >> name >> /var/spool/MIMEDefang/mimedefang.sock unsafe >> >> >> Permissions on /var/spool/MIMEDefang/ >> >> drwx------ 2 mailnull mailnull 512 20 Jun 13:28 MIMEDefang >> >> So what can I do? >> > Hi Bernt, > > I recall running into this problem some years ago but I think the > mimedefang port was improved quite a bit since then in providing better > defaults and run-time configuration options. > > The only immediate difference I can find on my current mail system is: > > drwx--x--- 28 mailnull mailnull 1024 Jun 26 15:50 /var/spool/MIMEDefang/ > > It's possible that is a remnant of a "chmod g-r[w]" in order to address > the "mimedefang.sock unsafe" issue, although I'm only guessing at that > and it may not be related or relevant at all. > > If you have installed the mimedefang port you could try starting it > using "system" methods e.g. "service mimedefang [one]start" or similar > and see if there's any difference in behaviour? Hello Wayne, and thank you for your input. Using service to start defang worked! But there was some permission issues that needed some attention. This I changed from 0700 to 0710 drwx------ 2 mailnull mailnull 512 20 Jun 13:28 MIMEDefang Same as you have, so no more "unsafe" messages. Bernt From owner-freebsd-questions@freebsd.org Sun Jun 26 13:11:06 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ACC8FB7320A for ; Sun, 26 Jun 2016 13:11:06 +0000 (UTC) (envelope-from me@danieldk.eu) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8508F2FC8 for ; Sun, 26 Jun 2016 13:11:06 +0000 (UTC) (envelope-from me@danieldk.eu) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E26C6209D0; Sun, 26 Jun 2016 09:10:58 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Sun, 26 Jun 2016 09:10:58 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=danieldk.eu; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=kgD X1uhECWbxPotnECnsAMV57Bw=; b=MCYHLtT3/YTHmtFRBgG5xa4aJtPwAfBGoxM P3oEY58dZ3itxPIcZeLM1AccpEJZMQdiBXpcg7fpqNnqmi2IQauZLpF34P2lJgjN vUQCCOab/+BYWGy5DwyDDtuINz9a009RN2NO78Phtyi31sATSt6529ftKi7u32SQ GCjwgpLs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=kgDX1uhECWbxPotnECnsAMV57Bw=; b=ZzLWT EFR3+fzh4wFYVYfJqzXXW4dsczUwqDP6FcyKFeTuIUp6MNDKJ36PRl7yptiGds9U ajF+b9bUJNpzFcbCMWJkGxyqdkz7rrHnHKkvyVB5Pv5LjLRC4R99AVgAQAscZlOR PqvNU0J6O698dbvTH7gbypLCNGQKtU+Mctxhkg= X-Sasl-enc: vH1nXufrTubyfdClXWCeso0Djx/12mMBZ8wofN+dsVAk 1466946658 Received: from daniels-mini.fritz.box (hsi-kbw-046-005-018-048.hsi8.kabel-badenwuerttemberg.de [46.5.18.48]) by mail.messagingengine.com (Postfix) with ESMTPA id 6E58BF29FA for ; Sun, 26 Jun 2016 09:10:58 -0400 (EDT) From: =?utf-8?Q?Dani=C3=ABl_de_Kok?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: grep and anchoring Message-Id: <20232C89-B821-41EC-9188-C2A19C679BD8@danieldk.eu> Date: Sun, 26 Jun 2016 15:10:57 +0200 To: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 13:11:06 -0000 Dear all, After a BSD hiatus of many years, I am tinkering with FreeBSD again. = I=E2=80=99ve run into some strange issue with grep and beginning of line = (^) anchoring: =E2=80=94 % echo "1234 1234 1234" | egrep -o '^=E2=80=A6.' 1234 123 4 12 % echo "123412341234" | egrep -o '^....' 1234 1234 1234 =E2=80=94 Any idea what is going on here? (Recent GNU grep from ports gives the expected output.) With kind regards, Dani=C3=ABl de Kok Ps., grep on OS X, which seems to be the same version has similar = problems=E2=80=A6= From owner-freebsd-questions@freebsd.org Sun Jun 26 14:34:21 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66536B81707 for ; Sun, 26 Jun 2016 14:34:21 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 30778246A for ; Sun, 26 Jun 2016 14:34:20 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-173-141.dynamic.qsc.de [92.195.173.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 329AE3CE40; Sun, 26 Jun 2016 16:34:11 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u5QEYBRA002077; Sun, 26 Jun 2016 16:34:11 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 26 Jun 2016 16:34:11 +0200 From: Polytropon To: =?UTF-8?B?RGFuacOrbA==?= de Kok Cc: freebsd-questions@freebsd.org Subject: Re: grep and anchoring Message-Id: <20160626163411.d05f863e.freebsd@edvax.de> In-Reply-To: <20232C89-B821-41EC-9188-C2A19C679BD8@danieldk.eu> References: <20232C89-B821-41EC-9188-C2A19C679BD8@danieldk.eu> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 14:34:21 -0000 On Sun, 26 Jun 2016 15:10:57 +0200, Daniël de Kok wrote: > Dear all, > > After a BSD hiatus of many years, I am tinkering with FreeBSD again. > I’ve run into some strange issue with grep and beginning of line (^) > anchoring: > > — > % echo "1234 1234 1234" | egrep -o '^….' > 1234 > 123 > 4 12 > % echo "123412341234" | egrep -o '^....' > 1234 > 1234 > 1234 > — > > Any idea what is going on here? I think what you see here is a typical "UTF-8 fsck-up". The first search pattern contains a an ellipsis ("…", 2 bytes long, representing 3 characters), and a single dot (".", one byte long, 1 character); the second pattern contains four dots (4 x ".", 1 byte long, 1 character). Of course grep interprets "…" and "..." differently. In my mailer, I can see the difference clearly as the ellipsis … is displayed in monospace font as a _one_ character wide symbol on the screen. Or is this just an "enrichment" your MUA added? :-) I'm quite sure you run into similar problems when you include ligatures (like st, ft, ffi, ck or the like) or one of the many different hyphend and spaces in a search pattern. :-) Otherwise, your example seems to show the expected behaviour. % echo "1234 1234 1234" | egrep -o '^....' 1234 123 4 12 % echo "123412341234" | egrep -o '^....' 1234 1234 1234 First 4-character pattern is "1234", next is " 123", and last is "4 12" (each 4 characters wide, as the space character " " is also "any character" that matches the . pattern). In the second example, the groups match 4 characters each ("1234" x 3). What different results did you expect? Or am I misinterpreting your question? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Sun Jun 26 14:41:52 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ADA08B819AC for ; Sun, 26 Jun 2016 14:41:52 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DFA742847 for ; Sun, 26 Jun 2016 14:41:51 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: by mail-lf0-x231.google.com with SMTP id f6so141539986lfg.0 for ; Sun, 26 Jun 2016 07:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=CxmUUCCT68Jm5eugu9zYsS3syUDCWHjYcmPjlJ1bass=; b=jD1x14sOTUF8Gq8v7posi1sZTj81d6COYI+VkGq4rnOso5qHLq0hKBSdo/mc/6kigl XQnGL00D72mCsynMqqAyn/mar4Lo33ti6qDT+GymBWwtFMy650tTlciVaFhGn8peEb3e T85NV248uuZQM+9PhRvxJdygaQnGh2K9rFMlIPCk2hXJJHjvEPR4aIFxMD4dK+ecWC+M L1nTCuE69I0Qwyv+XzdfnvmV8KowEsvh30cmjU9VFOhb7h/CDCcDX7Lb5GUD4sZSUof3 FDIkKCjh5iNy53vqs8T5eboGoBmgaTn1Sj9wKjERYBlEyUlA6tzanfHkZu7mD7pXf/XQ hXXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=CxmUUCCT68Jm5eugu9zYsS3syUDCWHjYcmPjlJ1bass=; b=hejjfq4FJlkCZqMz5Q0qoYqbyh0nWaClEHeZSaTWoJlrmy9qxU/j/EOtZ4zY/ddZMl nTSrBM/nQGzouffByKyKOAF11H+nQVFE7ijraGVEzoCb0HlCF1AGZIcUtoza9qlcbFwG 8wssWIDnbvPSpsyxxu6qVDYIXxyA2die3/iBm+pQkjhM44F5BoRWocpupRdXR4u0j7cK LXmzurc8LWJeRsBYJ1BUWvjKEWpATWZ9NqhxqIs4m/1JtZUCChAlwpbWgO1ISTc27L2s XB5Ryh8HoOEyuTycAPunlP+XLusM3Geobe2zTSKs7nqGxMEoyXBzwRKLmk9TJBEeb5QO GCmg== X-Gm-Message-State: ALyK8tLaGFolnw3nY++ZWqvgLUw3bo0pMiMbd/Xky8RHx/ZVzEqyEnDgBXo3xYfiIDoXRQ== X-Received: by 10.25.39.78 with SMTP id n75mr4247563lfn.91.1466952110166; Sun, 26 Jun 2016 07:41:50 -0700 (PDT) Received: from [192.168.1.3] (gate.imsmultimedia.eu. [91.238.76.1]) by smtp.gmail.com with ESMTPSA id f41sm2488897lji.19.2016.06.26.07.41.48 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Jun 2016 07:41:49 -0700 (PDT) Subject: Re: grep and anchoring Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Eir Nym In-Reply-To: <20160626163411.d05f863e.freebsd@edvax.de> Date: Sun, 26 Jun 2016 16:41:47 +0200 Cc: =?utf-8?Q?Dani=C3=ABl_de_Kok?= , freebsd-questions@freebsd.org Message-Id: References: <20232C89-B821-41EC-9188-C2A19C679BD8@danieldk.eu> <20160626163411.d05f863e.freebsd@edvax.de> To: Polytropon X-Mailer: Apple Mail (2.3124) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 14:41:52 -0000 > On 26 Jun 2016, at 16:34, Polytropon wrote: >=20 > On Sun, 26 Jun 2016 15:10:57 +0200, Dani=C3=ABl de Kok wrote: >> Dear all, >>=20 >> After a BSD hiatus of many years, I am tinkering with FreeBSD again. >> I=E2=80=99ve run into some strange issue with grep and beginning of = line (^) >> anchoring: >>=20 >> =E2=80=94 >> % echo "1234 1234 1234" | egrep -o '^=E2=80=A6.' >> 1234 >> 123 >> 4 12 >> % echo "123412341234" | egrep -o '^....' >> 1234 >> 1234 >> 1234 >> =E2=80=94 >>=20 >> Any idea what is going on here? >=20 > I think what you see here is a typical "UTF-8 fsck-up". > The first search pattern contains a an ellipsis ("=E2=80=A6", > 2 bytes long, representing 3 characters), and a single > dot (".", one byte long, 1 character); the second pattern > contains four dots (4 x ".", 1 byte long, 1 character). > Of course grep interprets "=E2=80=A6" and "..." differently. > In my mailer, I can see the difference clearly as the > ellipsis =E2=80=A6 is displayed in monospace font as a _one_ > character wide symbol on the screen. >=20 I think this was automatic spell correction and he mentioned 4 dot = symbols (.), not a =E2=80=98=E2=80=A6' and =E2=80=98.=E2=80=99 > Or is this just an "enrichment" your MUA added? :-) >=20 > I'm quite sure you run into similar problems when you > include ligatures (like st, ft, ffi, ck or the like) > or one of the many different hyphend and spaces in a > search pattern. :-) >=20 > Otherwise, your example seems to show the expected > behaviour. >=20 > % echo "1234 1234 1234" | egrep -o '^....' > 1234 > 123 > 4 12 >=20 > % echo "123412341234" | egrep -o '^....' > 1234 > 1234 > 1234 >=20 > First 4-character pattern is "1234", next is " 123", > and last is "4 12" (each 4 characters wide, as the > space character " " is also "any character" that matches > the . pattern). In the second example, the groups match > 4 characters each ("1234" x 3). >=20 > What different results did you expect? Or am I misinterpreting > your question? >=20 >=20 > --=20 > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org = mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions = > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org = " From owner-freebsd-questions@freebsd.org Sun Jun 26 14:44:47 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66BF9B81C2A for ; Sun, 26 Jun 2016 14:44:47 +0000 (UTC) (envelope-from me@danieldk.eu) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3CDF12BB8 for ; Sun, 26 Jun 2016 14:44:46 +0000 (UTC) (envelope-from me@danieldk.eu) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B7EA020417; Sun, 26 Jun 2016 10:44:45 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sun, 26 Jun 2016 10:44:45 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=danieldk.eu; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=PLFKrlAUa9ijoZKC+EQW2n2U4Ok=; b=IYCOqI uqGFFwqd9vzM/ZhkL/4q+4gIm4W6WCC8toNb3e+/CR8icxClM0A2xl9AycqBwEi3 eI9P2BeAGu7bjutLvppJVKOSkjnGwHnMfg4AvYCQrtRWr6r7yK7ZD4ZpVjeX77xY zHc1oEKkfqwELp2Z5Zv34LCgg6qqwXZkt5VGA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=PLFKrlAUa9ijoZK C+EQW2n2U4Ok=; b=VX/Qp1bkjWi8I+1V0o9eSo2Pj5PgU3qK4hdvVJrcliMNIGu bHCCqmqWGZlh+gjavicHO3Eyq1GmM/DDgm9x+yDDjsd+yeo03bQ7M/zUh9hiCVXW NHRP3fB5raRQS6ulbKLvO9bG/GLA18WTBMUeLJ2ztvXdmfW5p9kectdvr5Vg= X-Sasl-enc: lu41RXQ1cMrDFPKrusYjeFEZmPjTT9Ov82X93h40sVDF 1466952285 Received: from daniels-macbook.fritz.box (hsi-kbw-046-005-018-048.hsi8.kabel-badenwuerttemberg.de [46.5.18.48]) by mail.messagingengine.com (Postfix) with ESMTPA id 29064CC01B; Sun, 26 Jun 2016 10:44:45 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: grep and anchoring From: =?utf-8?Q?Dani=C3=ABl_de_Kok?= In-Reply-To: <20160626163411.d05f863e.freebsd@edvax.de> Date: Sun, 26 Jun 2016 16:44:44 +0200 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <362EE01F-4B49-4ADB-A3A6-43F852FFF87F@danieldk.eu> References: <20232C89-B821-41EC-9188-C2A19C679BD8@danieldk.eu> <20160626163411.d05f863e.freebsd@edvax.de> To: Polytropon X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 14:44:47 -0000 On 26 Jun 2016, at 16:34, Polytropon wrote: > Or is this just an "enrichment" your MUA added? :-) Yes, Mac=E2=80=99s Mail.app likes to replace these. I didn=E2=80=99t use = an ellipsis in the actual expression ;), just four dots. > % echo "1234 1234 1234" | egrep -o '^....' > 1234 > 123 > 4 12 [...] > First 4-character pattern is "1234", next is " 123", > and last is "4 12" (each 4 characters wide, as the > space character " " is also "any character" that matches > the . pattern). In the second example, the groups match > 4 characters each ("1234" x 3). Note the anchoring (^), the pattern should only match any four = characters at the beginning of the line, so the expected output is = =E2=80=981234=E2=80=99 and nothing more. =E2=80=98 123' and '4 12' are = not at the beginning of the line and should consequently not be printed = to stdout. For comparison, the output of a recent GNU grep: =E2=80=94 % echo "1234 1234 1234" | grep -o '^....' 1234 =E2=80=94 With kind regards, Dani=C3=ABl de Kok= From owner-freebsd-questions@freebsd.org Sun Jun 26 15:31:43 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59E3BB81618 for ; Sun, 26 Jun 2016 15:31:43 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E1DE223F4 for ; Sun, 26 Jun 2016 15:31:42 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 97452289B for ; Sun, 26 Jun 2016 15:31:31 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/97452289B; dkim=none; dkim-atps=neutral Subject: Re: grep and anchoring To: freebsd-questions@freebsd.org References: <20232C89-B821-41EC-9188-C2A19C679BD8@danieldk.eu> <20160626163411.d05f863e.freebsd@edvax.de> <362EE01F-4B49-4ADB-A3A6-43F852FFF87F@danieldk.eu> From: Matthew Seaman Message-ID: <9fc6d5df-108b-5663-5a31-92ca915a9604@FreeBSD.org> Date: Sun, 26 Jun 2016 16:31:20 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <362EE01F-4B49-4ADB-A3A6-43F852FFF87F@danieldk.eu> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Mx7clcHsOgU5K57EMCdXS3BqKKPefVEU5" X-Virus-Scanned: clamav-milter 0.99.2 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 15:31:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Mx7clcHsOgU5K57EMCdXS3BqKKPefVEU5 Content-Type: multipart/mixed; boundary="sW8TwXFtt3AOEitUhmr2kcME38IwPGF7n" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <9fc6d5df-108b-5663-5a31-92ca915a9604@FreeBSD.org> Subject: Re: grep and anchoring References: <20232C89-B821-41EC-9188-C2A19C679BD8@danieldk.eu> <20160626163411.d05f863e.freebsd@edvax.de> <362EE01F-4B49-4ADB-A3A6-43F852FFF87F@danieldk.eu> In-Reply-To: <362EE01F-4B49-4ADB-A3A6-43F852FFF87F@danieldk.eu> --sW8TwXFtt3AOEitUhmr2kcME38IwPGF7n Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 26/06/2016 15:44, Dani=C3=ABl de Kok wrote: > Note the anchoring (^), the pattern should only match any four characte= rs at the beginning of the line, so the expected output is =E2=80=981234=E2= =80=99 and nothing more. =E2=80=98 123' and '4 12' are not at the beginni= ng of the line and should consequently not be printed to stdout. >=20 > For comparison, the output of a recent GNU grep: >=20 > =E2=80=94 > % echo "1234 1234 1234" | grep -o '^....' > 1234 > =E2=80=94 You are completely correct -- this is a bug in grep(1) on FreeBSD. In all current releases including the upcoming 11.0-RELEASE grep is actually GNU grep version 2.1.5. However, the same bug occurs in bsdgrep(1): % echo 1234 1234 1234 | bsdgrep -o '^....' 1234 123 4 12 There is already an open PR about a very similar issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D201650 Could you update that PR with your findings? Especially that bsdgrep(1) also shows the same problem. Cheers, Matthew --sW8TwXFtt3AOEitUhmr2kcME38IwPGF7n-- --Mx7clcHsOgU5K57EMCdXS3BqKKPefVEU5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJXb/VOXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT+2YQAIXTdNVD8eWikrPzJH+pTTU8 v6rjLcuTVA61pz6eZfyIBSMSik76lLxN2NHDSeIpvkjH4Ff0u8TAb2FRdEDj/XVL RR6BTr97+2A36UMEvEsnolUoQlJSI0P5SL4arMSqz0McjFDH6gS8bDyALh5e9AkT kh0Iw9SN//VJuLkXkLrTIUIXlKcfgxtKMHWdNIZo+33wWzkRvfvt8cUN+l4mmFG/ Er56q3fHlgXKwGdqS+9WuTCd922GBqLrWSx4i9buLxueKbsgAueRpU9nN7chpKvx QbrXVfgSbphKM+ZpuEd723gIWob4xObnWUjwjaE6qquX7R34QcAw1/1mDx0MsM1G cSliDVT3McYaAz/08avKQW0g5ZhwGqbJPL9q27LL27RduTHGZfjK1enBpm1Pep4Z wgx8oCh3RLz5VyuJvZKBzIv3z8ly+3WPy2BDYCCyaadUNMpRzJixK24XaVdpdd3O lbFfC76HT+xR066EEKnpQ1E8VJf17+Kusy3bJySeMj5m6OOGHQ4EMe4diIxNbj09 AE+tivkEK6kxWhu2OpYDpQYhl2H2H3WroZrZ6o2YzvcDdYlxuhb+wFVy1mQ0XDHr d3emtBmNjYnGGWg9ZeOjCYGbV9zLu65zuG1tiLdyYQzdKLEu6ijLhAfNbEvsfUgS +Z/HtEEN5ar/zmZM3Mac =1cHr -----END PGP SIGNATURE----- --Mx7clcHsOgU5K57EMCdXS3BqKKPefVEU5-- From owner-freebsd-questions@freebsd.org Sun Jun 26 15:59:16 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 978FAB81C31 for ; Sun, 26 Jun 2016 15:59:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5F9782F4A for ; Sun, 26 Jun 2016 15:59:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-55-81.dynamic.qsc.de [92.195.55.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id EFA212769B; Sun, 26 Jun 2016 17:49:39 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u5QFndcw002378; Sun, 26 Jun 2016 17:49:39 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 26 Jun 2016 17:49:39 +0200 From: Polytropon To: =?UTF-8?B?RGFuacOrbA==?= de Kok Cc: freebsd-questions@freebsd.org Subject: Re: grep and anchoring Message-Id: <20160626174939.e3cd3a45.freebsd@edvax.de> In-Reply-To: <362EE01F-4B49-4ADB-A3A6-43F852FFF87F@danieldk.eu> References: <20232C89-B821-41EC-9188-C2A19C679BD8@danieldk.eu> <20160626163411.d05f863e.freebsd@edvax.de> <362EE01F-4B49-4ADB-A3A6-43F852FFF87F@danieldk.eu> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 15:59:16 -0000 On Sun, 26 Jun 2016 16:44:44 +0200, Daniël de Kok wrote: > On 26 Jun 2016, at 16:34, Polytropon wrote: > > Or is this just an "enrichment" your MUA added? :-) > > Yes, Mac’s Mail.app likes to replace these. I didn’t use an ellipsis > in the actual expression ;), just four dots. And it also seems to turn the apostrophe ' into a single closing quote ’. :-) > > % echo "1234 1234 1234" | egrep -o '^....' > > 1234 > > 123 > > 4 12 > [...] > > First 4-character pattern is "1234", next is " 123", > > and last is "4 12" (each 4 characters wide, as the > > space character " " is also "any character" that matches > > the . pattern). In the second example, the groups match > > 4 characters each ("1234" x 3). > > Note the anchoring (^), the pattern should only match any four > characters at the beginning of the line, so the expected output > is ‘1234’ and nothing more. ‘ 123' and '4 12' are not at the > beginning of the line and should consequently not be printed > to stdout. You're right; according to "man grep": -o, --only-matching Show only the part of a matching line that matches PATTERN. the first pattern matching "^...." should be the first 4 digits, the output should then stop, which really looks like a bug. Instead the pattern matching is repeated over the rest of the input line (leading to two "additional results"). > For comparison, the output of a recent GNU grep: > > — > % echo "1234 1234 1234" | grep -o '^....' > 1234 > — That is what _should_ happen, correct. Thanks for clarifying. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Sun Jun 26 16:40:02 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 589E2B811D0 for ; Sun, 26 Jun 2016 16:40:02 +0000 (UTC) (envelope-from me@danieldk.eu) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2DF5B219D; Sun, 26 Jun 2016 16:40:01 +0000 (UTC) (envelope-from me@danieldk.eu) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A9566204EF; Sun, 26 Jun 2016 12:40:00 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sun, 26 Jun 2016 12:40:00 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=danieldk.eu; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=VnElpLDxSfVPqHykgMluKGs8CqY=; b=D+vkDt 4/ULFwicoO5OQEHwjiWKJinEU9aaUbMlECYtwvaKjorxxENqZWlcEgyRR6Wc/Ntp QQdxvW+483mVrURZLXMDmqRv8O9mrcHMdeLIvpXdKHoLf7Lm+pFFN6Xm32V6UUVm tELnH1souCXlHB0PN2oReH9Fhl2Xg5i1DuQ6I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=VnElpLDxSfVPqHy kgMluKGs8CqY=; b=o9fEROKeJcSoyeEP50hBbWIr5Of+G3muKrOJl7nbgAkkrfi v3oYnod5xDHqzRx9Mb+6WPFcNQdUW5xnxmLk3mfP9ARLH9ZgtgRx+vdTGx/aRp/U QwK4/Hp4phzkNSWIFP9CR/sAsqTj8QIAV3O7wbkwvGRcHVqm98OI4kYvPpAY= X-Sasl-enc: vFyyD2Oxa1f/x3vF0za4Xa7hBbk7D91N3Wj3X2Q0sZC6 1466959200 Received: from daniels-mini.fritz.box (hsi-kbw-046-005-018-048.hsi8.kabel-badenwuerttemberg.de [46.5.18.48]) by mail.messagingengine.com (Postfix) with ESMTPA id 08951CCDBB; Sun, 26 Jun 2016 12:39:59 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: grep and anchoring From: =?utf-8?Q?Dani=C3=ABl_de_Kok?= In-Reply-To: <9fc6d5df-108b-5663-5a31-92ca915a9604@FreeBSD.org> Date: Sun, 26 Jun 2016 18:39:58 +0200 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <12C696F7-DCB4-419D-90FE-CA7E877A7236@danieldk.eu> References: <20232C89-B821-41EC-9188-C2A19C679BD8@danieldk.eu> <20160626163411.d05f863e.freebsd@edvax.de> <362EE01F-4B49-4ADB-A3A6-43F852FFF87F@danieldk.eu> <9fc6d5df-108b-5663-5a31-92ca915a9604@FreeBSD.org> To: Matthew Seaman X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 16:40:02 -0000 On 26 Jun 2016, at 17:31, Matthew Seaman wrote: > There is already an open PR about a very similar issue: >=20 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D201650 >=20 > Could you update that PR with your findings? Especially that = bsdgrep(1) > also shows the same problem. Thanks for confirming and for pointing me to the PR. I have added a = comment. Thanks, Dani=C3=ABl de Kok= From owner-freebsd-questions@freebsd.org Sun Jun 26 18:44:50 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DEBBB818C5 for ; Sun, 26 Jun 2016 18:44:50 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D53F24E3; Sun, 26 Jun 2016 18:44:49 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u5QIim2m088303 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 26 Jun 2016 12:44:48 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u5QIimZC088300; Sun, 26 Jun 2016 12:44:48 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 26 Jun 2016 12:44:48 -0600 (MDT) From: Warren Block To: Matthew Seaman cc: freebsd-questions@freebsd.org Subject: Re: grep and anchoring In-Reply-To: <9fc6d5df-108b-5663-5a31-92ca915a9604@FreeBSD.org> Message-ID: References: <20232C89-B821-41EC-9188-C2A19C679BD8@danieldk.eu> <20160626163411.d05f863e.freebsd@edvax.de> <362EE01F-4B49-4ADB-A3A6-43F852FFF87F@danieldk.eu> <9fc6d5df-108b-5663-5a31-92ca915a9604@FreeBSD.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 26 Jun 2016 12:44:48 -0600 (MDT) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 18:44:50 -0000 On Sun, 26 Jun 2016, Matthew Seaman wrote: > On 26/06/2016 15:44, Daniël de Kok wrote: >> Note the anchoring (^), the pattern should only match any four characters at the beginning of the line, so the expected output is ‘1234’ and nothing more. ‘ 123' and '4 12' are not at the beginning of the line and should consequently not be printed to stdout. >> >> For comparison, the output of a recent GNU grep: >> >> — >> % echo "1234 1234 1234" | grep -o '^....' >> 1234 >> — > > You are completely correct -- this is a bug in grep(1) on FreeBSD. In > all current releases including the upcoming 11.0-RELEASE grep is > actually GNU grep version 2.1.5. However, the same bug occurs in > bsdgrep(1): > > % echo 1234 1234 1234 | bsdgrep -o '^....' > 1234 > 123 > 4 12 Yay for compatibility! :) From owner-freebsd-questions@freebsd.org Mon Jun 27 01:31:19 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB006A79C25 for ; Mon, 27 Jun 2016 01:31:19 +0000 (UTC) (envelope-from gregory.orange@calorieking.com) Received: from pandora.au.calorieking.net (mail.au.calorieking.net [115.70.179.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5AFF424C9 for ; Mon, 27 Jun 2016 01:31:18 +0000 (UTC) (envelope-from gregory.orange@calorieking.com) Received: from pandora.au.calorieking.net (localhost [127.0.0.1]) by pandora.au.calorieking.net (Postfix) with ESMTP id F212110C for ; Mon, 27 Jun 2016 09:24:30 +0800 (WST) X-Virus-Scanned: amavisd-new at calorieking.com Received: from pandora.au.calorieking.net ([127.0.0.1]) by pandora.au.calorieking.net (mail.au.calorieking.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kwVQ6_yPSF3f for ; Mon, 27 Jun 2016 09:24:26 +0800 (WST) Received: from [192.168.2.118] (freia.ne1.au.calorieking.net [192.168.2.118]) by pandora.au.calorieking.net (Postfix) with ESMTPSA id 9C4F5C8 for ; Mon, 27 Jun 2016 09:24:26 +0800 (WST) Subject: Re: freebsd-update && locally modified files To: freebsd-questions@freebsd.org References: <20160623151128.GA25400@ice.42.org> From: Gregory Orange Message-ID: <57708049.8040509@calorieking.com> Date: Mon, 27 Jun 2016 09:24:25 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <20160623151128.GA25400@ice.42.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 01:31:19 -0000 Hi Stefan, On 23/06/16 23:11, Stefan `Sec` Zehl wrote: > | The following files are affected by updates, but no changes have > | been downloaded because the files have been modified locally: > | /etc/mail/freebsd.cf > | /etc/mail/freebsd.submit.cf > | /etc/mail/sendmail.cf > | /etc/mail/submit.cf > | /var/db/mergemaster.mtree > > The obvious solution of deleting them and letting freebsd-update install > run did not restore those files. On the rare occasion that happens, I tend to grab the files from a pristine installation and put them in place, as well as copies (with a .dist suffix) in case it recurs. Greg. From owner-freebsd-questions@freebsd.org Mon Jun 27 05:56:57 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C815B84839 for ; Mon, 27 Jun 2016 05:56:57 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C46DE22D6 for ; Mon, 27 Jun 2016 05:56:56 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: by mail-lf0-x22b.google.com with SMTP id h129so149285108lfh.1 for ; Sun, 26 Jun 2016 22:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xd21YO3PySmLVN5PhsUJpqDx29mIVlBUzJpa7oNhQ/A=; b=OOZFIZxXe8Sxgz4fwtc8G+Lso2EtI897HTYJ2qxjs9s+/kot06hvn/mSnzjxRoD7bU p0NX0L2flZanZ4tUmcOd87qnI8n5TBkjlz37rk/igLy4rHVXQEYQVBG368Emyaf4hjON p81dtLywPcaQD30r9k40LwUMmp2WEeogaaupMr1PMb0qKQh/l/cTO+W+UIGgtGq+w6K1 H/ui118YcSAqCfMfT/YuYYnPpGhLHFgIbB+coxYUelB6z66qkgtsW8fz26ZiuA0yuU1r 3AFMGjKhR9FtUHhwixCDF/X7leARjXXpqI23uJPZlqxFMJTJeLmvxskaChCvTm8M66Yg A+cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=xd21YO3PySmLVN5PhsUJpqDx29mIVlBUzJpa7oNhQ/A=; b=ODnPN+9lAkQUW+EhiiyMbwioKRKRTQeaUoDJn0UZUbRI+Ba5XQpBF7h0YuDqwZITvH DHzZeaju6Nrm3zUizROan0mBkiKDMjx6PbeBsQgdPX0WcQSJXbJKE0CdPpbY57rivRpH gkyVBMgSYSyMDyB6bkSdHmkBxnSKoEpYvsN9BvZOFtqURA9gZBR/mIjxIFLOuQ7+cbzw KyOhi+dc3qVYrfjMOxWz0H0Ao1T463Z/4Fr2btoIvBsDuchTlG5XzciWFoCYoxn/NKD0 dwNS9D+SB/hB0xDQXRmkpWR7b4wl//QqvNXzC0CJUURZaIWywt3BEDQ4QeX5y1sVrhVe GUFA== X-Gm-Message-State: ALyK8tLZstDrdo1xfOUwZ6TpP7TftrZZXXoh0SEQC7ZTrJRqHRYxLX0Qh6dTEAmBxwQCICpq6V8kzrostFcX3Q== X-Received: by 10.46.0.159 with SMTP id e31mr4318987lji.54.1467007014885; Sun, 26 Jun 2016 22:56:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.76.7 with HTTP; Sun, 26 Jun 2016 22:56:54 -0700 (PDT) In-Reply-To: References: <1466717892.674545627.ai2dh1w6@frv35.fwdcdn.com> <1466725107.953028829.tc1fmx6e@frv35.fwdcdn.com> <1466728696.778596880.0qwmo21g@frv35.fwdcdn.com> <1466729245.746791331.emrr9dyu@frv35.fwdcdn.com> From: perikillo Date: Sun, 26 Jun 2016 22:56:54 -0700 Message-ID: Subject: Re: Re[2]: Re[2]: Re[2]: Copy bootcode to mirror disk? To: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 05:56:57 -0000 One issue here is that right I cannot sit and change this, will be good to do that but my time is on other projects now. Them in my case there is no way to fix this? On Fri, Jun 24, 2016 at 7:06 PM, Warren Block wrote: > On Fri, 24 Jun 2016, Vladislav Prodan wrote: > > >> >> https://www.freebsd.org/doc/handbook/geom-mirror.html >> >> Make the mirror bootable by installing bootcode in the MBR and bsdlabel >> and setting the active slice: >> >> # gpart bootcode -b /boot/mbr mirror/gm0 >> # gpart set -a active -i 1 mirror/gm0 >> # gpart bootcode -b /boot/boot mirror/gm0s1 >> > > That is only valid for a GPT disk. The problem is that the boot partition > is mirrored. The bootcode can probably be written to mirror/boot. > > However, as I said on the forums to this very same thread, the real error > here is having mirrored GPT partitions. > From owner-freebsd-questions@freebsd.org Mon Jun 27 08:24:26 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 522F4B84909 for ; Mon, 27 Jun 2016 08:24:26 +0000 (UTC) (envelope-from cad3ddesignautocad789@gmail.com) Received: from mail-yw0-x248.google.com (mail-yw0-x248.google.com [IPv6:2607:f8b0:4002:c05::248]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 146D52A5C for ; Mon, 27 Jun 2016 08:24:26 +0000 (UTC) (envelope-from cad3ddesignautocad789@gmail.com) Received: by mail-yw0-x248.google.com with SMTP id f75so288776882ywb.3 for ; Mon, 27 Jun 2016 01:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:message-id:date:subject:from:to; bh=fE0BCkV+9Hu8h4XGW8fYrhrnvIeamrux2H+giO1rkQs=; b=yYlmQiENUZ6E1HscA7t9kZwOa66pKHY3YoGAzoT01QeqGXr0Axws/B30e0q+DUve3G /DXvV/BSARGpeP8dDYycVfGA1ciqNzcP8FIfGFjzY2RgC4SWJQBBq/161ZAGKd7Svg+5 FXA8yihX8ADucLCveixzhNiYGsU9y1Wx9OfCszRCTM6Ppug54a5rZ1K1HTszEk02cDy0 wy8qcRlhHAMcqdWiH6h/HJSFnZJT/c+jqFDIv8VXLBB8vHD/5ozi+56KlXb4W7ZUBja1 OfdQwte5x/KkRld2lXnkE52owlKj25vY+CgWkb2swZ+Z8Cca4KL6Mb1L9z6/nORlVh9T zmeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:message-id:date:subject:from:to; bh=fE0BCkV+9Hu8h4XGW8fYrhrnvIeamrux2H+giO1rkQs=; b=fSu0E8mGouRutHgGcu23DV18BHNb9Rg7+7XZORsl94eUUJfzmUW9/5Fn9LML3PShMU aKsSWWk3cRXFKSzGymjGpwHFni05chNPNbYMfI6oNZyas9TJyS/jU2dwoShUeQJjw+Wn 0MTCzcnx/r/o7wKZz3OK6OtFBSydYFLswiXpBmWOvEH9lJjPF7zie4X/nlZtoHeivk4L GWsz4070zrk8vrEdxyJbrJvF/ONbAnI5KJt1zCKPd6O9OqlUi1hurvHHdXwbQdkuK54n 2PsP3jNtQpm5I2VN//V5i9z4AgsEhSK2AGRUaGypeX2cQL0u01LAa8gbWmTW1JwKvG7o lOcg== X-Gm-Message-State: ALyK8tJ0mIWNJyTbCdpGlwtDdO5k+gni28mzmr5V4ISFbEsTHWf7ZigweDpjOw5cePl3DlYBMBAKlgIWByx7KA== MIME-Version: 1.0 X-Received: by 10.13.202.134 with SMTP id m128mr15782500ywd.22.1467015865286; Mon, 27 Jun 2016 01:24:25 -0700 (PDT) Message-ID: <001a114f1c3887c5a005363e3f37@google.com> Date: Mon, 27 Jun 2016 08:24:25 +0000 Subject: Sub:Better-Scanning and Digitisation Services From: Sumathi Acharya To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 08:24:26 -0000 *Dear owner of freebsd.org,I am Sumathi Acharya -Digitisation Manger of the Back office company located in Bangalore,India.We are 5 year old company supporting Govt and Private companies across the country.We have full time staff working on Scanning&Digitisation of documents/Drawings/Photos/Bills etc on regular basis.We also do indexing of the documents for easy retrieval. We can scan at your office using our computers/scanner. We also do scanning from our office location. We complete bulk documents scanning with quick turnaround. We do data entry of records and indexing of file. We scan any size documents.Our price per page is = 0.89 Paise per page[A4 or below size]Capacity = Over 2 Lakh pages per Month.We can collect your document from your office and after scanning we will pack and resubmit at your location.We can support your organisation on regular basis!Please give us an opportunity so we will make your office Paperless!!!ThanksSumathi Acharya,Business Manager,Scanning and Digitisation,Bangalore,India.* From owner-freebsd-questions@freebsd.org Mon Jun 27 09:24:07 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2060EB84A99 for ; Mon, 27 Jun 2016 09:24:07 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-qk0-x22c.google.com (mail-qk0-x22c.google.com [IPv6:2607:f8b0:400d:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D302D29C1 for ; Mon, 27 Jun 2016 09:24:06 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by mail-qk0-x22c.google.com with SMTP id t127so199151839qkf.1 for ; Mon, 27 Jun 2016 02:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=EXz2L41yHT/drLtkkuT9SG6T8quk1txSZ+8WnHihPqs=; b=LN8yE5/aRQ0oMF7RTYL0jCSeOSLNmEk1O7G+dE28arzas6mFGXH/Yyoc8YRnABtrrE RkeQRqt+SiPIeFSHNkVWKI7BGcciplhLp08eVEaWqQRpmKyVNxh/g9MVEmH/Qhqw1Ku0 M29DMpKABNGOi/8nQ11NUiSmrnakTS1NftZao4pP45EJjDXFaDgWuabAGqFXAMhWyp38 rTjD14RnW07YouHhjFk+RCd3gLDL2CIF4nvQ87mnGJLIsFoJ85h1pQ6ERhWKL1Jm3KZA Ib9mbIEFpndG2vRqqB9f+ZathXZBDTcUErwqwk5ivbQTDWAsjl4EE3N/SyMfHtPPlJWd pBHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EXz2L41yHT/drLtkkuT9SG6T8quk1txSZ+8WnHihPqs=; b=FPt+8gFRmHjvxROhQIjnIZmN2Cq3L8tlyOUOH73VOgJXoQBulpTShq0jQqPu8c+iTC xai03J3xtGNr6vkrJBl0d4RG+y//AbphVpctLjfSkX5dZgryRiBpBOWhjQ8x/9jGIIxy B+ONvq2/x86RWl7WLeNsQJ92YcM1jg2/QDB0BuWSHEW4XnAZGEN7f4MWcI4heEDS2EFb dGhdflxoFS72n7gBY8BLwRKfvesXWZ0pS1Ofr4U4bzDEKeUczbwPstYizkOGb110nJM+ IgurSKqBQMbVa9O44qfugoU83DraByAzhuhgicmuSRNJtIpGi/0d+4U926Me9n/gcGzu gu3A== X-Gm-Message-State: ALyK8tIsXKy8Qmt/xYn1ycDRdZMYrFcNDG4UxcrZAIE+JlPLXUxQewbUlkJ0ZdEXM09/mOQrw6/tGUQ+9XYPTw== X-Received: by 10.55.90.135 with SMTP id o129mr22449598qkb.141.1467019446074; Mon, 27 Jun 2016 02:24:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.77.135 with HTTP; Mon, 27 Jun 2016 02:24:05 -0700 (PDT) From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Mon, 27 Jun 2016 11:24:05 +0200 Message-ID: Subject: Intel AC7265 driver To: User Questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 09:24:07 -0000 Hi there, Does FreeBSD provide drivers for the Intel AC7265 NIC? Cheers. From owner-freebsd-questions@freebsd.org Mon Jun 27 10:03:18 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89AFCB81B5E for ; Mon, 27 Jun 2016 10:03:18 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CDDF21BD for ; Mon, 27 Jun 2016 10:03:18 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) for freebsd-questions@freebsd.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1bHTNs-002FRA-5d>; Mon, 27 Jun 2016 12:03:16 +0200 Received: from p578a69f9.dip0.t-ipconnect.de ([87.138.105.249] helo=freyja.zeit4.iv.bundesimmobilien.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) for freebsd-questions@freebsd.org with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from ) id <1bHTNr-000QbS-Sv>; Mon, 27 Jun 2016 12:03:16 +0200 Date: Mon, 27 Jun 2016 12:03:15 +0200 From: "O. Hartmann" To: freebsd-questions Subject: sendmail: using sendmail as submitting MTA Message-ID: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> Organization: FU Berlin X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: 87.138.105.249 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 10:03:18 -0000 We use a monitoring server (icinga2) based on FreeBSD embedded in a closed network (no external access) with a M$ mailexchange server. I try to configure local sendmail in a way so that all email going to the localhost are delivered to the local machine itself, but email for an external email account is passed to the mail hub server. This mail hub server is accessible by any host in the closed network without authentication (this is given by a higher instance as a fact I can not change). I tried to figure out with the recent handbook but the explanation of how to configure sendmail is really poor. Since I'm not that familiar with sendmail itself anymore, I appreciate some startups here. As I understand the docs, the files hostname.localdomain.mc and hostname.localdomain.submit.mc are the only ones I need to touch, along with mailertable for the resolution of the target domain and the mail-hub server to contact. The target email domain would be foobar.bla, so I use an entry in mailertable like foobar.bla esmtp:[IP4] (no MX record usage) .foobar.bla esmtp:[IP4] There is no suitable access to a DNS for MX resolution (all Microsoft crap), so I have an /etc/host entry for the mailhub server - or mail relaying server. But nothing works so far. Checking the mail queue with mailq gives me always on all outbound emails host map: lookup (foobar.bka): deferred What is wrong? Please CC me, I' do not subscribe this specific list. Thank you in advance, Oliver P.S. I ggoled for that specific error and got lots of how-tos but it seems that none of them worked so far. I guess I miss something. I already did a make all install in /etc/mail after every change. From owner-freebsd-questions@freebsd.org Mon Jun 27 11:37:03 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4ADCB81A97 for ; Mon, 27 Jun 2016 11:37:03 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 64CF021A6 for ; Mon, 27 Jun 2016 11:37:03 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 32FEE2DE0 for ; Mon, 27 Jun 2016 11:36:58 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/32FEE2DE0; dkim=none; dkim-atps=neutral Subject: Re: sendmail: using sendmail as submitting MTA To: freebsd-questions@freebsd.org References: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> From: Matthew Seaman Message-ID: <148dd628-cae1-313c-8d6b-861e30a381e3@freebsd.org> Date: Mon, 27 Jun 2016 12:36:46 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kwxN5WNrsDxCFD9Gtc7bCsVIsQIHRP57k" X-Virus-Scanned: clamav-milter 0.99.2 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 11:37:03 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --kwxN5WNrsDxCFD9Gtc7bCsVIsQIHRP57k Content-Type: multipart/mixed; boundary="L9ifwH1GBv6KpEB0M7jFiBJ5RSuQ76SpL" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <148dd628-cae1-313c-8d6b-861e30a381e3@freebsd.org> Subject: Re: sendmail: using sendmail as submitting MTA References: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> In-Reply-To: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> --L9ifwH1GBv6KpEB0M7jFiBJ5RSuQ76SpL Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06/27/16 11:03, O. Hartmann wrote: > I try to configure local sendmail in a way so that all email going to t= he > localhost are delivered to the local machine itself, but email for an e= xternal > email account is passed to the mail hub server. This mail hub server is= > accessible by any host in the closed network without authentication (th= is is > given by a higher instance as a fact I can not change). >=20 > I tried to figure out with the recent handbook but the explanation of h= ow to > configure sendmail is really poor. Since I'm not that familiar with sen= dmail > itself anymore, I appreciate some startups here. Actually, you probably don't need to touch ${hostname}.submit.mc -- occasions where the default config there will need modification are few and far between. Yes, editing ${hostname}.mc is the correct thing to do here. sendmail config is a fairly dark art, and you will need to refer to the documentation. One good resource is /usr/share/sendmail/README which is a handy guide to all the things you might put into a .mc file. However, your best bet is to get hold of the O'Reilly sendmail book. It's a bit of a monster, but you don't need to read the whole thing front to back: most of the content is lists of config settings you can apply to various different bits of the config file. Your requirement for a system that delivers locally anything addressed to the local machine, but forwards everything else to a smart host is certainly one of the scenarios described in the book. Not sure about the lack of DNS around your network: that should work, but SMTP really needs DNS working to be able to function in general. Cheers, Matthew --L9ifwH1GBv6KpEB0M7jFiBJ5RSuQ76SpL-- --kwxN5WNrsDxCFD9Gtc7bCsVIsQIHRP57k Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXcQ/UAAoJEABRPxDgqeTnyWkQALDkTyWOkyQBtwbJ9sFhrpHw DyF7oJLwQhNF5KcUc4A+gibIqHuli/IDDIbyq4QZ+2PsrWwiUBZ2A6uBldGyeC3J mGOKzFJvbZz6aSxUs/JsIhxmgxSSV8YV+pJnZWdI0YeWVBMAhePVHspS+14XFk46 8cZtUQWZXrObV+b43eBULeqGXyOjtU8ZdVeLx3PhppaHS4R7bpQ4F34DdNlUhg7s E/WEbcQRRmjjVoxspBNsnkFX9AAJLLm64UqGOiE+KS7poPtTveN8hWdFHgclG7ii 5Qu74xFhTWfTck/rgepaVXoGxuDpKjIA81JowQamoSbeBiJKItrVquxzro4QCfkR 2oD52XECVnNbaTQhLpyhyXU9pgiaAwzqzwiCD4CpFH4WkD+l0bOlElA4O++RZ/fk i2i88+gRWIAoggKbUd1w4nC5DhzLBxkKIhZdA7rzC1/nUJ7Dp9n8ZbX+epkftA9p h+cZ85cpMcxm8ZhZRY0IWFP82CCETFvvR1x7vGOruCOd6jwhGnGIjB364oJMNzWs Ls/YYgIik/m+ke/rPXIm2/fQTLAxZFfEvXC/9VEmuXess0BekI1RwSozROJBfqMW fgbqwHuVJo576k4bW/zmmZdXjUneR1cyqW7BrC3qFI1CFdiRlpZu3t0HQvwmJI5P qz5L4IaCafqa8mHVSjkN =B3h2 -----END PGP SIGNATURE----- --kwxN5WNrsDxCFD9Gtc7bCsVIsQIHRP57k-- From owner-freebsd-questions@freebsd.org Mon Jun 27 11:56:55 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD1C9B84200 for ; Mon, 27 Jun 2016 11:56:55 +0000 (UTC) (envelope-from alphachi@mediaspirit.org) Received: from mail-vk0-x22e.google.com (mail-vk0-x22e.google.com [IPv6:2607:f8b0:400c:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F8A82ED2 for ; Mon, 27 Jun 2016 11:56:54 +0000 (UTC) (envelope-from alphachi@mediaspirit.org) Received: by mail-vk0-x22e.google.com with SMTP id c2so198180666vkg.1 for ; Mon, 27 Jun 2016 04:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediaspirit-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UsMZaIVwEINMoC2zcs6K57UronHpeN39FxpH8lKb+ok=; b=B3344xD86fJ589RJY+o3u4jMwHD+kkRtryEZ5alAHJTRGCFHSClmIedotAyPB2higv j85BqN0e+esVk71If5nyKVxSnC6uoe5Wi830QtixjVx7hEvSrllrYnQ4o24RX/yoYOHC WTVCbZ6QphNIK+ivOZCBJIoxoV5vBy9IVAUr0K5ThfYlC4S1BlxNMjibtoZRXtSVjX9P I8B2xLi7OvD1oEyWDqQnea6nYn8SN/OJOzJNfT6PiqLKOve6IsPPDix+D40dfYyJC14N TdMS7GTonBqqxxchfa0UdF+4Z/oul7ROwaJx52zQzkJpUrJiKLu3czc0GH5061K3MQ+/ ceDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UsMZaIVwEINMoC2zcs6K57UronHpeN39FxpH8lKb+ok=; b=DUeS6jTvn/sqjtR3losW7bIOQ86/dZJxlAZFY0t+7VqMnkD15HpCyybYUaOmMDk3SP FyHE9u/u26h6ny/ga57ww6UJ8wAeDgDAaNs5DB/RubCBntS+IQYF6dZOSt683KW21440 usBUEquU+fnvBzgZyvQOX8q4YZ5zXwBkS/tR3Kf8xo1TVVvsnFRqUEiryV6mMA4Ema49 9Q15RQRCCoCfBzzCI3hDZ8qk7di+dnlfniTmFwGSTwL+ptdV0YlaD3HwhHWZEav542DO qzZANQyOur1naxNztTnWEDgnjsT/vsS+xJ00yw245/QdWw5HvKHAkhPH3K7+CVAVMydf v49w== X-Gm-Message-State: ALyK8tLYXsedDyYmUMpryNFVQFIuViOYK81QKJYMNSiakIb1RoBcPLK+AsYlZPBltf1h+kXHYoNlz36kLUmsbw== X-Received: by 10.31.175.196 with SMTP id y187mr8199450vke.1.1467028613993; Mon, 27 Jun 2016 04:56:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.233.135 with HTTP; Mon, 27 Jun 2016 04:56:53 -0700 (PDT) In-Reply-To: References: From: alphachi Date: Mon, 27 Jun 2016 19:56:53 +0800 Message-ID: Subject: Re: Intel AC7265 driver To: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Cc: User Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 11:56:55 -0000 This device will be supported by iwm(4) on FreeBSD 11. If you want to use it now, you need to upgrade to the current branch from src. 2016-06-27 17:24 GMT+08:00 Fernando Apestegu=C3=ADa < fernando.apesteguia@gmail.com>: > Hi there, > > Does FreeBSD provide drivers for the Intel AC7265 NIC? > > Cheers. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > --=20 Paranoid in Sabbath ... From owner-freebsd-questions@freebsd.org Mon Jun 27 12:02:49 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 813B0B849C4 for ; Mon, 27 Jun 2016 12:02:49 +0000 (UTC) (envelope-from alphachi@mediaspirit.org) Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com [IPv6:2607:f8b0:400c:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A0D5254E for ; Mon, 27 Jun 2016 12:02:49 +0000 (UTC) (envelope-from alphachi@mediaspirit.org) Received: by mail-vk0-x233.google.com with SMTP id j2so228653655vkg.2 for ; Mon, 27 Jun 2016 05:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediaspirit-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Sztu2A/574pJwkAba8UYnUFqhFfR38nIfu6sVNPFrqw=; b=YWf7xjYWzOY+E4fdRTb4v6havoQIndsGWvspD+IZcQ15OwWZ/CW+eAt60JvmqmQ1LM j0G15DjagnfQwk95E3uyub2Wc147G1QZiq3X2DSQCTG1iMUA8cx5Jfpy87Ob6Ms/8L+2 PHGO76hqqd7b7mr1xVb2OTJZ56E5N79hydUeFsb0Vrsgo18ed8K540idwKBysQtxFzzg CZlIzkZfrrIS98ucxVCsfUEDkUN61MhTo9IyjJve6NkWFsEi4wqCMuQxNnM3ADQHA5ic eDFPxcCAvv+Acx/YiSPIrrUY8FgF8VRuqJ43Wtzh64hd7N++kp57Cz0DVqV6v7nQt22v kgow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Sztu2A/574pJwkAba8UYnUFqhFfR38nIfu6sVNPFrqw=; b=iyJk5TCOAUOsw7UR/1yHVBl9ul8vPie4+Wb2y76+dm1EM7EQk0CqmyEEAve5bsRyFN mX0f7dKMVGTU4xgOJPunn2Y/4k/tlISxRy7owkWYQCiUs/8vXhsfGuU0RsuBZ8BoE2Fw Xq7i2BJCT/+dqEGrggxu4iRo8BxRmrbPIs+3cSWPozZAdJoykttUef7dnfE25B/myJ9u QzbzBgGZn9Uuc0eAJfwlsVRKGbBlthPcYY65dY1/CH+l8wdASKZ2lfg+vvWKLrRpgKPy e7wDRTgM/hdNFO7CaQNGQ+zv47WyhY8X4AqE1MFXinJLm0oPB8/Fn12Xi4lgxLV+mwme sk0g== X-Gm-Message-State: ALyK8tIYpYD5geV70h+ySZeQWvA3SPldhHm6BuBQ1MR9V3294vaczy0SZT5UgCEW1Y4rPNbFnk0iF71YgLnG9Q== X-Received: by 10.176.65.36 with SMTP id j33mr7929467uad.2.1467028968315; Mon, 27 Jun 2016 05:02:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.233.135 with HTTP; Mon, 27 Jun 2016 05:02:47 -0700 (PDT) In-Reply-To: <20160624211629.cfeec2df.freebsd@edvax.de> References: <1466789057.3429597.647623793.146F091D@webmail.messagingengine.com> <20160624211629.cfeec2df.freebsd@edvax.de> From: alphachi Date: Mon, 27 Jun 2016 20:02:47 +0800 Message-ID: Subject: Re: Resolution on SCFB X11 Driver To: Polytropon Cc: "Charles W. Ross" , "list: freebsd" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 12:02:49 -0000 https://forums.freebsd.org/threads/55222/ 2016-06-25 3:16 GMT+08:00 Polytropon : > On Fri, 24 Jun 2016 13:24:17 -0400, Charles W. Ross wrote: > > Hi all, > > > > I'm running FreeBSD 10.3 on an Intel NUC with 4th generation graphics. > > This is not supported by the i915 driver yet, so I'm using the SCFB > > (frame buffer) driver. > > > > It works, but I can't seem to set an optimal resolution. My display (24" > > Dell) supports 1920*1200, but the system only permits X11 to operate at > > 1280*1024. > > > > I have tried the usual settings in xorg.conf to define the display's > > "Modes" at 1920*1200, but no luck. Running 'xrandr' presents only one > > option: 1280*1024. > > > > I know the SCFB driver is capable of operating at higher resolutions, > > does anyone have any tips on how to set this? > > Some years ago, I had a similar problem with the nvidia driver > not providing a screen size biiger than 1024x768 (which isn't > that great on an 21" 4:3 CRT), so I tested and collected some > tweaks for xorg.conf. Maybe those are driver-specific or even > outdated, but maybe they can be an inspiration for further > investigations. > > I did manually define the monitor's physical parameters to > allow X to calculate the required resolution and size: > > Section "Monitor" > Identifier "Monitor0" > VendorName "Eizo" > ModelName "FlexScan F980" > HorizSync 30.0 - 137.0 > VertRefresh 50.0 - 160.0 > Option "DPMS" "false" > DisplaySize 410 305 > # X*Y in mm for DPI calculation, cf. xinit -- -dpi 72/75/96/115 > EndSection > > In that section, if I set > > Option "PreferredMode" "1920x1200" > > the system locked up. No idea why. > > Later on, I tried to set the DPI size and disable EDID information > retrieval: > > Section "Device" > Identifier "Card0" > Driver "nvidia" > [...] > Option "UseEdid" "FALSE" > Option "UseEdidDpi" "FALSE" > Option "DPI" "96 x 96" > EndSection > > In the "most important section" of xorg.conf, I could successfully > set the screen sizes to switch manually (with Ctrl+Alt+[+]/[-] keys) > or via program (for example games that activated a full screen mode > that was not the "usual" mode). > > Section "Screen" > Identifier "Screen0" > Device "Card0" > Monitor "Monitor0" > DefaultDepth 24 > SubSection "Display" > Viewport 0 0 > Depth 24 > Visual "TrueColor" > Modes "1400x1050" "1152x864" "1024x768" > "800x600" "640x480" "320x240" > EndSubSection > EndSection > > In case of a flat panel, all size settings should be the same, and > in the "Screen" section, there should be only one entry of the > desired format. > > I always could manually switch to the desired mode: > > xrandr --fb 1400x1050 > xrandr --size 1400x1050 > > which I had temporarily put into ~/.xinitrc, but that looked wrong. > > With "xrandr" without parameter) you should then get a list of the > available modes, with the one selected at the top. > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- Paranoid in Sabbath ... From owner-freebsd-questions@freebsd.org Mon Jun 27 12:06:11 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91728B84AC4 for ; Mon, 27 Jun 2016 12:06:11 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com [IPv6:2607:f8b0:400d:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4AE2A26AC for ; Mon, 27 Jun 2016 12:06:11 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by mail-qk0-x22b.google.com with SMTP id q79so57669372qke.0 for ; Mon, 27 Jun 2016 05:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=EdmiU038N6TocHnikEfYZp8CpDcxru7EVsACHTEkyOI=; b=c5qb0Fg7qNws+oVfnAsDRwQxAtO6/a+fmx7CT9yq/DRwUZ8efpe2xpMOUUfW8vtJx0 a45LkuCLGL3kpYfp63AyhHlyOkW87UwzuTOwXasmMi7XcWrrpp7xIuMXF6VwgXHJ4ltC 9AzryD7nLJwkenP27Nm+7Tcf1irWEq9n4cPLtMWpwSLoEhmI13E5beIIn0a8o4EiLVOg h72HyvZuLrwDweVqtevs7tYLjWe50xaqLRZOV1S9JFbL6WrXbgMmdaDqlDJU1HUDnZNy IEpCLokrUi0fbaz4wbBpllmTjqyfYwdaSD4dRkpdAVV8tvnfJN47DQGUavuIVgaFYXT7 Fh6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=EdmiU038N6TocHnikEfYZp8CpDcxru7EVsACHTEkyOI=; b=RTsLb+x9nDX6zfM+i6BzzQphcJQ+ygc8Hh7guT7/+EvdhE1oyBMcylifedK5GiKdCv rKi9M6Yd2zHsahGe1dyEiUiJaFWEyDaRh3Oy1wtWkX1tVIAfWIsYVrWyDVJ+7s5b6Mkh UvDxTrYZPTHhTg0Ui5DXfrcn1ueXhGQteS+MKt+eHOH3RZ0vzPZI9Io80rfpOxnnGXwn sOPYxnhavgWOCvQKpC4/Hg3jiQEGw3EeuTe3RFLi39War4lOEWbp8zJ6Dn8yrrOkXLIP 5KugSc8ntuJKBf6hxHNXNrPmk7z0UYFYBG+FlHMercvh77DJeUpaoqJduDXw8tdX8wuQ v0FA== X-Gm-Message-State: ALyK8tKNQQK9HjKfrfVcXQHmFsrdHwIBxmrpjEvYFmkwiz/4xyqpAFJ8odIfNFXebDJILOalwce8X6Kf1ZhhDw== MIME-Version: 1.0 X-Received: by 10.55.155.18 with SMTP id d18mr23478194qke.103.1467029170410; Mon, 27 Jun 2016 05:06:10 -0700 (PDT) Received: by 10.55.77.135 with HTTP; Mon, 27 Jun 2016 05:06:09 -0700 (PDT) Received: by 10.55.77.135 with HTTP; Mon, 27 Jun 2016 05:06:09 -0700 (PDT) In-Reply-To: References: Date: Mon, 27 Jun 2016 14:06:09 +0200 Message-ID: Subject: Re: Intel AC7265 driver From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= To: alphachi Cc: User Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 12:06:11 -0000 El 27/6/2016 13:56, "alphachi" escribi=C3=B3: > > This device will be supported by iwm(4) on FreeBSD 11. If you want to use it now, you need to upgrade to the current branch from src. Terrific. Just evaluating a new laptop to buy that happens to have that nic= . Thanks! > > 2016-06-27 17:24 GMT+08:00 Fernando Apestegu=C3=ADa < fernando.apesteguia@gmail.com>: >> >> Hi there, >> >> Does FreeBSD provide drivers for the Intel AC7265 NIC? >> >> Cheers. >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to " freebsd-questions-unsubscribe@freebsd.org" > > > > > -- > Paranoid in Sabbath ... From owner-freebsd-questions@freebsd.org Mon Jun 27 12:07:07 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 090E1B84B5A for ; Mon, 27 Jun 2016 12:07:07 +0000 (UTC) (envelope-from bounces+3237981-d48e-freebsd-questions=freebsd.org@sg.buckget.com) Received: from o1.sg.buckget.com (o1.sg.buckget.com [167.89.52.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CC3FA2784 for ; Mon, 27 Jun 2016 12:07:06 +0000 (UTC) (envelope-from bounces+3237981-d48e-freebsd-questions=freebsd.org@sg.buckget.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=buckget.com; h=content-type:from:mime-version:subject:to; s=s1; bh=udG7ni5G6dVHF2odieckCaE2iIQ=; b=6ah4WZasl2gG575ljqFSk/nUzOQSp X3VjL40JYJKJWn53lX0/00SntSjyhQM9FPx6mj4ySMxZJu4CR/sV3IJgODDaDA+n 4hX40gKXJ5Vit5gLzKL18NBS8LWWYlPZB8r6YwA6bt+EwcDavDlllw+0w2AMIKYN L9yo6InQFvJKuo= Received: by filter0035p1las1.sendgrid.net with SMTP id filter0035p1las1.16430.577116EAB 2016-06-27 12:07:06.098938134 +0000 UTC Received: from MzIzNzk4MQ (p3nlhg761.shr.prod.phx3.secureserver.net [184.168.46.161]) by ismtpd0011p1las1.sendgrid.net (SG) with HTTP id 5aNXurskTQCZFaO2pfcI6w for ; Mon, 27 Jun 2016 12:07:08.086 +0000 (UTC) Date: Mon, 27 Jun 2016 12:07:08 +0000 From: "Google Friend Inviter" Mime-Version: 1.0 Subject: Invite your friends from google To: freebsd-questions@freebsd.org Message-ID: <5aNXurskTQCZFaO2pfcI6w@ismtpd0011p1las1.sendgrid.net> X-SG-EID: FFnPVu6lb0A5TuepcCdqxLOfczNEIxluOZzq9GOc07pN29Yu+YzapDn4k75HZKb1xHcWV4h5JdnIVt DI2q3JJrtrtX2MG9V4NypAJJ3A28wv4i3JLZNqDoeB+YMe2AfgIs2rnSGgHy16Dynfe6GbNV0hsgX3 BtgZQT5LpZZo3SIr6JmmIL8QtsbAjgxhE1pBQfogEPMuELPVnAVqUPCHwyBgJOv1OawGazX53UuSiL OqH0o/xOBME2Skws+pwiXN X-SG-ID: 8jXKzZkZOLw8fDcfQreIJqrM1Y7jV9V6APmE/W7b4l8LQdN1CsYcxNV15PWnDqpz Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 12:07:07 -0000 BuckGet.com =09=09 =09
= From owner-freebsd-questions@freebsd.org Mon Jun 27 12:23:06 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25A6AB72131 for ; Mon, 27 Jun 2016 12:23:06 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 97BC22296 for ; Mon, 27 Jun 2016 12:23:05 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 185ab732; Mon, 27 Jun 2016 14:22:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=/GuZBR/aWVj3NZhaYiDQysGXLD0=; b=b28KqXs5Hal/GJpF7R+SKw3cnQZG OspXDAdsM5af9RKA4TX4yeFV3hWeP0covwFU6y+k8xzqJY2juvRFramRNvjWK2oW TPN9HStASo47a/+NzuLtQnlGVHLp+qpJWYlOKZEq48K/3uKKc08jooB2kLbFBA/I 2hawaQc8986cqDw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=AWHgfTxhqLONZQisPsh6FHXZEqERG0qH+xagzRaFH5nqx275eL89g3I1 m/TA9L10UuJRJqfcp42vRz08N3ohsTTkZbtbqFGTnLycSJgmt/I7mmq6UHNARxOe sc1li4Nw3GbjFm0zH1mSDUlcLGwWiZZClAzX6Kl0UqUHoKladOg= Received: from knuckles.blih.net (ip-54.net-82-216-203.roubaix.rev.numericable.fr [82.216.203.54]) by mail.blih.net (OpenSMTPD) with ESMTPSA id cb41f768 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 27 Jun 2016 14:22:56 +0200 (CEST) Date: Mon, 27 Jun 2016 14:22:54 +0200 From: Emmanuel Vadot To: "Charles W. Ross" Cc: freebsd-questions@freebsd.org Subject: Re: Resolution on SCFB X11 Driver Message-Id: <20160627142254.01bf33f5e46a4932ec2ee5e4@bidouilliste.com> In-Reply-To: <1466789057.3429597.647623793.146F091D@webmail.messagingengine.com> References: <1466789057.3429597.647623793.146F091D@webmail.messagingengine.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 12:23:06 -0000 I'm guessing that you are using UEFI. SCFB uses the GOP mode set by loader (or the default one), on my last laptop (an HP840G3) if I leave the bios with the default config for video memory I cannot go higher than 1280x1024, I need to set it to an higher value and then the UEFI firmware provided multiple GOP mode. You can list/change the available mode in loader.efi with the 'gop' command (gop list, gop get etc ...) Cheers, On Fri, 24 Jun 2016 13:24:17 -0400 "Charles W. Ross" wrote: > Hi all, > > I'm running FreeBSD 10.3 on an Intel NUC with 4th generation graphics. > This is not supported by the i915 driver yet, so I'm using the SCFB > (frame buffer) driver. > > It works, but I can't seem to set an optimal resolution. My display (24" > Dell) supports 1920*1200, but the system only permits X11 to operate at > 1280*1024. > > I have tried the usual settings in xorg.conf to define the display's > "Modes" at 1920*1200, but no luck. Running 'xrandr' presents only one > option: 1280*1024. > > I know the SCFB driver is capable of operating at higher resolutions, > does anyone have any tips on how to set this? > > Thanks, > > Charlie > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Emmanuel Vadot From owner-freebsd-questions@freebsd.org Mon Jun 27 12:50:51 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66C41B72BE7 for ; Mon, 27 Jun 2016 12:50:51 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2F0D7246F for ; Mon, 27 Jun 2016 12:50:51 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x232.google.com with SMTP id a5so64531701ita.1 for ; Mon, 27 Jun 2016 05:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=hyMIhTzKS4/sSCOv1qVa5uHLRxYXcjpl/b97R9TplCw=; b=M/1uZMlnbR+Ii7c9H6yQLE54FxMv4d77cncSsG/c4Ci+wzJDD561PjcvuHweGMQ4JZ TuXNVOQbpi+7g7mPjzIPRFwJjklKfTy8nyWVvfRHDw62W/atD1Mv4clDJ0qmQ6bxGLGu XWCAvi9iNJecAu4qIihKnpmOr13YiDp7+8jIQMFCwuhNKvH75itGgzoOtq+/FKaFi7SD mvo1qluOuoAMacHHLuUyQRsf66M4kuA9ZxTddpRQjEBQkivQKm3Ng4lRI81WpnZlAM16 nZuaUwbJ5tVSynbRvTGZeUI8X1gTgBNvRrwZjJ5H3gmusf/HRwLWWdsKsrprwvmdZmCM /OFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=hyMIhTzKS4/sSCOv1qVa5uHLRxYXcjpl/b97R9TplCw=; b=j+g/TGj9ZsSYqsmnHNKcUy8lHeUICzThjgRQ1/+rCVuWefU/7ltpcpM73BjW8lkxF2 oTqye4csCTRg7DPuXZGwDIukPUP2a3uqQFntOvJeprkzL5z/Ciwd8/Ot3Nz6Savhu/Nu 40dioAPhhBgeJpAicINGK8bj+4SYs9mknGvk+ru3ZkdeyVj+Q48I7GMBhtiwbR3tO3Je uaM8WTKwRJhUYYEgmoBh+z+CY/nRH5SOv9UpvM/63iCZd7BYhmtMHcZbzJmuhlFINCll fP9w5ZA954Il9MxL5ApovcIMY93sPzlmo37SYu7DO1fEYU6YCob9IdLEzIth8YFwZC1p O7MA== X-Gm-Message-State: ALyK8tJu5Acygt87/fH2U6lN0Lu79wfZ5Jm+EriAgeS/iDal3qPyHaySQ0cFY181u+ryLQ== X-Received: by 10.36.44.136 with SMTP id i130mr1737794iti.99.1467031850234; Mon, 27 Jun 2016 05:50:50 -0700 (PDT) Received: from [10.0.10.3] (cpe-184-56-210-236.neo.res.rr.com. [184.56.210.236]) by smtp.googlemail.com with ESMTPSA id h128sm4565495ita.19.2016.06.27.05.50.49 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jun 2016 05:50:49 -0700 (PDT) Message-ID: <57712130.2050603@gmail.com> Date: Mon, 27 Jun 2016 08:50:56 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Janos Dohanics CC: FreeBSD Questions Subject: Re: LAN slow or dead, intermittently References: <20160624112659.a9fd454b8d05166befb5876d@3dresearch.com> In-Reply-To: <20160624112659.a9fd454b8d05166befb5876d@3dresearch.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 12:50:51 -0000 Janos Dohanics wrote: > Hello List, > > Please help me figure out what makes my LAN intermittently slow or just > about dead. > > The LAN consists of a pfSense router (m1n1wall), a Netgear GS724T > switch, a recently installed FreeBSD 10.3 machine, several Windows 7 Pro > machines, androids and iPhones, and a Brother printer, altogether > between a dozen and 2 dozen networked devices. > > There are no local servers on the network, so as far as I can tell, > most traffic to and from the local nodes is with the internet > > Desktops have wired connections (100 MB or 1 GB NICs), but the phones > and most laptops are connected by WiFi. > > WiFi is provided by a Linksys E1500 configured to work only as a WiFi > AP. > > There is also a Linksys RE4000W WiFi extender on the network. > > The FreeBSD machine, the printer, the switch, the E1500 and RE4000W > WiFis have static IP addresses. Most of the Windows machines have > reserved DHCP addresses, the rest are unreserved DHCP. pfSense is > providing the DHCP server. > > I started to investigate the problem using mtr(8) which runs every 10 > minutes. Several times in my testing, the average RTT between the > FreeBSD machine (10.10.11.252) and the router's LAN interface > (10.10.11.1) was hundreds of milliseconds. Also, several times, 1 out > of the 10 packets is lost, but whenever this packet loss occurs, RTTs > are mostly 0.1 or 0.2 ms, but always less than 1 ms. > > Pinging various hosts on the LAN at times is in the 10s of milliseconds > or higher. > > Using my FreeBSD laptop and the FreeBSD machine, I tested the LAN with > netperf(1) which showed over 80 Mbit/s in good times but also less than > 1 Mbit/s at other times. > > During off-hours, I have disconnected and then reconnected computers > one by one, but could not identify any as the culprit. Replaced the > switch and patch cables - the problem is still there... intermittently. > > None of the Windows computers seems to have any malware which might > flood the network. I looked at pftop, and traffic seems to be legit - > but how could I see all LAN traffic and possibly correlate it with the > slowdown? Could this be caused by a broken networking hardware? How > would I identify that? > > What is the intelligent way to track down this problem? Please advise. > I also had performance problems with 10.3 that did not happen with 10.2 and older releases. When the lan went dead I had to reboot the host system to get things working again because users were on my back. I never let this condition exist to see if it would resolve it self. My first solution was to go back to using 10.2 and everything was fine. One evening I swapped the hosts 10.2 hard drive with the 10.3 hard drive so I could test some more. Just by luck I checked the date & time by issuing the "date" command. The date was correct but the time was -2 hours off. I manually set the correct time using the "date" command and let 10.3 run as production. With in 5 days the lan network was having performance problems again. I checked the host time and it was off by -30 minutes. I replaced the host motherboard battery with a new one and manually set the correct time again. Things ran ok for about 2 weeks when it happened again. This time the time was off by -2 minutes. This time I enabled the base ntpd time daemon by adding this to rc.conf ntpd_enable="YES" ntpd_sync_on_start="YES" Since then 10.3 has been running ok [2 months now]. I think some thing in the network stack code changed between 10.2 and 10.3 that made the time sync between lan nodes and the host, time range dependent. I would say that checking the time on your host and all the machines on the lan would be a good place to start looking for your problem. Good luck From owner-freebsd-questions@freebsd.org Mon Jun 27 13:06:52 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7A69B72FB8 for ; Mon, 27 Jun 2016 13:06:52 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: from mail-yw0-x235.google.com (mail-yw0-x235.google.com [IPv6:2607:f8b0:4002:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A42282BFD for ; Mon, 27 Jun 2016 13:06:52 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: by mail-yw0-x235.google.com with SMTP id l125so153536494ywb.2 for ; Mon, 27 Jun 2016 06:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=AXsWEdgHOB/6WVjRztJHsAJ/32Z0EAKRww5j44ImkMY=; b=PMZJ23ZwsKXmz0NA9iEdQVIPZctYCadJNcoiVGhXlQkctpjK0WW7IdNjyGJvaELIOH Ept2V2LIGci1NSCgq/qhIhqj51rIaSIjD2qJ9SN6wXNfk7l1hF7+I7tWR5KyYLe8Qjc+ mgH9VuG7H9Gj77WpWx44HVuXQuhYmXRXBQYE7ZEU74gvZNCoJ5po02D152/J+OlqDW62 FJSu4ZxKLwx/8TSRZ6gJw1zkqOmTsbkCzKmagFUVhNyfKNDL/02TPSVO3CHoCnbFiWEi PR9765/7hzxdTv1mFJcqKdlp1sUXM59pYkECUhoON5qXxRzmQiimkTQomc7/TDNAZ7hD Fs2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=AXsWEdgHOB/6WVjRztJHsAJ/32Z0EAKRww5j44ImkMY=; b=OWtMLCduegW3NxpbOlTK9aFY/zfBvIykm67ZEPnFB0fcaWcmj0mbpXwKYaOnqVOe56 6LsnEJ3vQbflHLHMDKuCcPfOZcHxpUkJVlmm1emrTUSrJ/IomSSoXEghaMZ4a1someF+ gdrOtraH/HVvN9QECAh3RfRkJ+7i21iLvD/ZyclOqKYDECEQIkBkP2+WyBUoRZwLfyTt hHzCPANvqVgwFjR5pk9YC5bRHuih9v2y70St/brsxHiUjkb7Chea6VO5BZCKByJT14NM WlT3r2tiZT7Fd5brpQfasR/gLyfdrFMLBlxJHxiQyg76oeOA6QGzmS5AvWEptGt4jPCy bUYg== X-Gm-Message-State: ALyK8tIFNUAY22YBV93nvG1dSXxT8UbYdaGh5yvLXt3GdrfNgzdd+ff5qpSx5IQlspX/0sS4c+mrEhXkAjUSAg== MIME-Version: 1.0 X-Received: by 10.129.38.138 with SMTP id m132mr11135864ywm.309.1467032811826; Mon, 27 Jun 2016 06:06:51 -0700 (PDT) Received: by 10.37.231.68 with HTTP; Mon, 27 Jun 2016 06:06:51 -0700 (PDT) Received: by 10.37.231.68 with HTTP; Mon, 27 Jun 2016 06:06:51 -0700 (PDT) In-Reply-To: References: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> Date: Mon, 27 Jun 2016 14:06:51 +0100 Message-ID: Subject: Re: sendmail: using sendmail as submitting MTA From: Shamim Shahriar To: "O. Hartmann" Cc: "freebsd-questions@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 13:06:53 -0000 On 27 Jun 2016 11:03 am, "O. Hartmann" wrote: > > We use a monitoring server (icinga2) based on FreeBSD embedded in a closed > network (no external access) with a M$ mailexchange server. > > I try to configure local sendmail in a way so that all email going to the > localhost are delivered to the local machine itself, but email for an external > email account is passed to the mail hub server. This mail hub server is > accessible by any host in the closed network without authentication (this is > given by a higher instance as a fact I can not change). > > I tried to figure out with the recent handbook but the explanation of how to > configure sendmail is really poor. Since I'm not that familiar with sendmail > itself anymore, I appreciate some startups here. > > As I understand the docs, the files > > hostname.localdomain.mc > > and > > hostname.localdomain.submit.mc > > are the only ones I need to touch, along with > > mailertable > > for the resolution of the target domain and the mail-hub server to contact. > > The target email domain would be foobar.bla, so I use an entry in mailertable > like > > foobar.bla esmtp:[IP4] (no MX record usage) > .foobar.bla esmtp:[IP4] > > There is no suitable access to a DNS for MX resolution (all Microsoft crap), so > I have an /etc/host entry for the mailhub server - or mail relaying server. But > nothing works so far. Checking the mail queue with mailq gives me always on all > outbound emails > > host map: lookup (foobar.bka): deferred > > What is wrong? > > Please CC me, I' do not subscribe this specific list. > > Thank you in advance, > > Oliver > > P.S. I ggoled for that specific error and got lots of how-tos but it seems that > none of them worked so far. I guess I miss something. I already did a > > make all install > > in /etc/mail after every change. > Hello Two possible things to try if you have not already First, in /etc/mail, please run make all install restart The restart bit forces sendmail to reread the config and also mailertable. If that doesn't work, in your /etc/hosts add an entry for foobar.bla Then restart sendmail. Please keep us posted on how it goes. Regards From owner-freebsd-questions@freebsd.org Mon Jun 27 13:33:24 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B731B73628 for ; Mon, 27 Jun 2016 13:33:24 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2A45A2927 for ; Mon, 27 Jun 2016 13:33:22 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from testbox.news4all.se (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id u5RDXB28049145; Mon, 27 Jun 2016 15:33:11 +0200 (CEST) (envelope-from bah@bananmonarki.se) Subject: Re: sendmail: using sendmail as submitting MTA To: "O. Hartmann" , freebsd-questions References: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> From: Bernt Hansson Message-ID: Date: Mon, 27 Jun 2016 15:33:12 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160627120315.36072692@freyja.zeit4.iv.bundesimmobilien.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 13:33:24 -0000 On 2016-06-27 12:03, O. Hartmann wrote: > We use a monitoring server (icinga2) based on FreeBSD embedded in a closed > network (no external access) with a M$ mailexchange server. > > I try to configure local sendmail in a way so that all email going to the > localhost are delivered to the local machine itself, but email for an external > email account is passed to the mail hub server. This mail hub server is > accessible by any host in the closed network without authentication (this is > given by a higher instance as a fact I can not change). > > I tried to figure out with the recent handbook but the explanation of how to > configure sendmail is really poor. Since I'm not that familiar with sendmail > itself anymore, I appreciate some startups here. > We have that setup here. You need to edit hostname.mc and find the line dnl define(`SMART_HOST', `your.isp.mail.server') Our's look like this define(`SMART_HOST', `[10.0.0.1]') The IP must be like that verbatim. Then in /etc/mail make all install restart Just tested on a few machines and they work like you wanted. Local mail delivered locally and external goes externally. From owner-freebsd-questions@freebsd.org Mon Jun 27 14:29:07 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ADFE8B81DBF for ; Mon, 27 Jun 2016 14:29:07 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 78A942810 for ; Mon, 27 Jun 2016 14:29:07 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u5RESxru028723 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 27 Jun 2016 08:28:59 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u5RESxMH028720; Mon, 27 Jun 2016 08:28:59 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 27 Jun 2016 08:28:59 -0600 (MDT) From: Warren Block To: perikillo cc: FreeBSD Mailing List Subject: Re: Re[2]: Re[2]: Re[2]: Copy bootcode to mirror disk? In-Reply-To: Message-ID: References: <1466717892.674545627.ai2dh1w6@frv35.fwdcdn.com> <1466725107.953028829.tc1fmx6e@frv35.fwdcdn.com> <1466728696.778596880.0qwmo21g@frv35.fwdcdn.com> <1466729245.746791331.emrr9dyu@frv35.fwdcdn.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 27 Jun 2016 08:28:59 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 14:29:07 -0000 On Sun, 26 Jun 2016, perikillo wrote: > On Fri, Jun 24, 2016 at 7:06 PM, Warren Block wrote: > >> On Fri, 24 Jun 2016, Vladislav Prodan wrote: >> >> >>> >>> https://www.freebsd.org/doc/handbook/geom-mirror.html >>> >>> Make the mirror bootable by installing bootcode in the MBR and bsdlabel >>> and setting the active slice: >>> >>> # gpart bootcode -b /boot/mbr mirror/gm0 >>> # gpart set -a active -i 1 mirror/gm0 >>> # gpart bootcode -b /boot/boot mirror/gm0s1 >>> >> >> That is only valid for a GPT disk. The problem is that the boot partition >> is mirrored. The bootcode can probably be written to mirror/boot. >> >> However, as I said on the forums to this very same thread, the real error >> here is having mirrored GPT partitions. > One issue here is that right I cannot sit and change this, will be good to > do that but my time is on other projects now. > Them in my case there is no way to fix this? (Please don't top-post, it makes replying more difficult.) First, make a full backup. Seriously. The temporary way to fix it is to write the bootcode to the boot partition mirror. gpart might refuse to do that. If it refuses, the boot partition mirror can be destroyed. The only purpose to have it is to make sure that bootcode is mirrored, and if it is preventing that, it is not useful. After destroying that boot partition mirror, write the bootcode individually to both drives. Since bootcode rarely changes, this should be adequate. Of course, the computer must still be able to boot from either drive, or having bootcode on both does not help much. From owner-freebsd-questions@freebsd.org Mon Jun 27 14:57:09 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B7F1B84361 for ; Mon, 27 Jun 2016 14:57:09 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA HLL ISSUER 01" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D751528F4 for ; Mon, 27 Jun 2016 14:57:08 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id DA74560918 for ; Mon, 27 Jun 2016 10:57:00 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HCAgZWv9Yb4I for ; Mon, 27 Jun 2016 10:56:59 -0400 (EDT) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id D9F0960B54 for ; Mon, 27 Jun 2016 10:56:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1467039418; bh=HZmdradLMCJQlKlOEQFpcBzvOudpvKL79PqxLs65QMU=; h=Date:Subject:From:To:Reply-To; b=SqWIwZsOmDE66yX/BrjFBReHlsOce3Ukcder8MXyhv48HFVmg1ZNLrCF6OEMirGHD MRaAcK78TMvDw04h2ZJl1n0Roi8ILSQMAGmuWuIPeNruKXbTsU9Ah4KLcl7krK3d+s WzwHqOAd31/o4LzRlcCvjjA0F3u5pCKIvcZUpHY2jM6s6XYnvDb87ce9/O/dJcn/0W ntJB3xc9ej4Bd1YoebgoWVTlWcLuC2wd2Nkieoj0sHh71R26XL50AF/xWPeer2WPww 15NDExyL5//iMgwdVh7gqO9MmM8wViawPwP7yW4/8h6flx69pr8vKB8tHdoQbhQxN2 /q5bsWv1X/VuA== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Mon, 27 Jun 2016 10:56:58 -0400 Message-ID: <86377352ead329a8ef13a0146cc02eff.squirrel@webmail.harte-lyne.ca> Date: Mon, 27 Jun 2016 10:56:58 -0400 Subject: BHyve guest locked From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 14:57:09 -0000 We had a power outage over the weekend that lasted long enough to exhaust our UPS. After I restarted the BHyve host I now see this when I run 'vm list': # vm list NAME GUEST CPU MEMORY AUTOSTART STATE samba-02 freebsd 2 4G No Locked (vhost03.hamilton.harte-lyne.ca) I have googled for info on what this means and for what the recommended recovery process is and I have come up empty. I have also asked on the FreeNode #bhyve chat and received, as yet, no replies. What is the recommended practice in this case? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Mon Jun 27 15:49:52 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B433B84EE5 for ; Mon, 27 Jun 2016 15:49:52 +0000 (UTC) (envelope-from tzachi.g@velismedia.com) Received: from mail-qk0-x22c.google.com (mail-qk0-x22c.google.com [IPv6:2607:f8b0:400d:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E5933246E for ; Mon, 27 Jun 2016 15:49:51 +0000 (UTC) (envelope-from tzachi.g@velismedia.com) Received: by mail-qk0-x22c.google.com with SMTP id p10so212171191qke.3 for ; Mon, 27 Jun 2016 08:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=velismedia-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=YwRTPYRK0nel7/xDTxD4Xh7cRvmgn8NcnrfUCDpG2Os=; b=x8A8rWdqmgT3U4CWJ8KQ3Sfav6qkB+sYnD2dRBehzQOIjndf8w1XdWhY8Tw20DZ/QN QhmBObRGQFNUp7n+txkw2hx7N9lQa1yaHfH2TOyT8hTU+mamyE9aLjZvG0fszS3jFGrQ wfwZLbLG5wPxsBWRLcMd41OuRPZuN80kThK/abJbWIIpPD8YfO3EmHZapvi3Bp29E13f UOpNynyC4sKXHvmSs+8KfymegQ/66sYjsw69gXHgJhfFV5EWk3fTlYef131pRL4/bJ/V Jblf7uo4MH0EaMO0mcxpz7ws/UMe1wtOllFJzvsHK3kHPmMqswuE5Q1CPGUV09vaVbmR deFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YwRTPYRK0nel7/xDTxD4Xh7cRvmgn8NcnrfUCDpG2Os=; b=cOUUroBrqjliHEbh6bOCCYw/gX+7lefOdFc8JhI4xLEymIKYCwJSoSaV6Dl93PrapP Mb5IPENuPmUAUvVGPd4bomDis5A81PP+TQLK2wjgUKIRlHQr3UQ6eBSy7qBx425SzzVv 1evvm83rXAhAOftBQ9iOQzthrBimYyw9GsghsKUtK6J+rd3MFnqTmjgH2cu+vMvZkFUj 47Px1xxJlZWOEzMib9bBBDlrX5O1KULrhwKlO9PyrJg7wINq7PNOlagWBiyrXeyarRKb D0VO/PUWvl5GaK6ydxG/VRAL9q2k44Rp+H5C29CuvssqzRvW+MkwPDZK6/PECG/ZRE2H 4jIQ== X-Gm-Message-State: ALyK8tJIjSAq3jk1wxaGtsDn5QSdoaRU0hPHRTDy2AN5S8zNR4kyHcpyOgJqnTDWF8vVQ4km9oGVxqcw9Dj33g== X-Received: by 10.13.204.11 with SMTP id o11mr1098734ywd.7.1467042590889; Mon, 27 Jun 2016 08:49:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.193.131 with HTTP; Mon, 27 Jun 2016 08:49:50 -0700 (PDT) From: Tzachi Gujski Date: Mon, 27 Jun 2016 18:49:50 +0300 Message-ID: Subject: Advertising Inquiry partnership To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 15:49:52 -0000 How are you? I have yet to get reply about our last E-mail. We truly see the potential of us working together, especially since I have similar publishers to you that make outstanding profits. As mentioned before, we are writing to you from Velis Media, an international media group that specializes in monetizing ad-space inventory for publishers. Thanks to our great results with performance based campaigns, we have a large budget to allocate new websites/networks. We are looking to buy remnant and regular inventory (for display or video). Could this be interesting for you? Best, Tj =E2=80=8B --=20 *Tj* *|* *Media Manager* *Skype: * *Tzachi.g.velis* *Web:* www.velismedia.com *Linkedin:* Tzachi gujski From owner-freebsd-questions@freebsd.org Mon Jun 27 18:10:30 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4002EB842C3 for ; Mon, 27 Jun 2016 18:10:30 +0000 (UTC) (envelope-from 01000155930e2e49-ea8b6ac2-18e3-429a-b916-fa868f316f1d-000000@amazonses.com) Received: from a8-84.smtp-out.amazonses.com (a8-84.smtp-out.amazonses.com [54.240.8.84]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F33B72440 for ; Mon, 27 Jun 2016 18:10:29 +0000 (UTC) (envelope-from 01000155930e2e49-ea8b6ac2-18e3-429a-b916-fa868f316f1d-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=3usoph356k752izu4rgqvzdvefrhpsyd; d=ansenled.com; t=1467051028; h=Message-ID:Date:Subject:From:Reply-To:To:MIME-Version:Content-Type:List-Id:List-Unsubscribe; bh=SA+bY2V9LBbkSVXtmLl/LJ9dZpJbZAn8p8NDZLswIgU=; b=CqYjb5DEmOxfq58hcPJh/0K7d6E6e3MQh4g5LESD5I6FJNNj8xda59C46QSlGXAw nW0yt+GUNVqXLUPwEZiTjHJont63gLEiNbSvaO4PUiweBzpE8I1pW+/iq0ob99VqyVR 7qasPfXJTL6qJqUd8OeJtz/W1e5a4RXIO+1MwaKQ= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1467051028; h=Message-ID:Date:Subject:From:Reply-To:To:MIME-Version:Content-Type:List-Id:List-Unsubscribe:Feedback-ID:Feedback-ID; bh=SA+bY2V9LBbkSVXtmLl/LJ9dZpJbZAn8p8NDZLswIgU=; b=heLXm22qTIkXZ68bYRoWjsFPFgrz0E7fTUpc6P//gg/tdYK5Y8PxVxsAx4D33tg0 2gwSsjk1sX2Qu+xenXhDklK+ku3hooitsH89Fx83yxSpdUI9IxmomxBLHpSEXlusZGL eJzjR4xckAPZxPNvncfkic22gmhRxhp+IfCeYNi4= Message-ID: <01000155930e2e49-ea8b6ac2-18e3-429a-b916-fa868f316f1d-000000@email.amazonses.com> Date: Mon, 27 Jun 2016 18:10:28 +0000 Subject: HID retrofit designed and engineered for demanding commercial applications. From: Ansen Lighting Reply-To: Ansen Lighting To: "freebsd-questions@freebsd.org" MIME-Version: 1.0 X-Receiver: freebsd-questions@freebsd.org X-Mw-Campaign-Uid: xm525xw3zm1dc X-Report-Abuse: Please report abuse for this campaign here: http://www.vmarks.com.cn/index.php/campaigns/xm525xw3zm1dc/report-abuse/ys185xq73waa5/py5926e7rnbfe X-Mw-Tracking-Did: 0 Feedback-ID: 1.us-east-1.kne4p+S1P9+MEsa0yDTa0q0+eJBUrcrhWOCj0M/YIyQ=:AmazonSES X-Mw-Subscriber-Uid: py5926e7rnbfe X-Mw-Customer-Uid: dh630lphfg0f7 X-Mw-Customer-Gid: 2 X-Sender: market@ansenled.com X-Mw-Delivery-Sid: 5 X-Mw-Mailer: SwiftMailer X-SES-Outgoing: 2016.06.27-54.240.8.84 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 18:10:30 -0000 =20 > http://www.AnsenLighting.com http://www.AnsenLighting.com >=20 >= One lamp, many fixtures=20 >=20 > Designed for One to One change=20 >=20 >= Energy + Replacement lamps=20 >=20 > Smart Lamp thermal management=20 > = > Hi , my name is Yang, 5 Years in LED Lighting field. Excellent skill= > on Dialux, Manufacturing costs analysis, OEM/ODM/SKD/CKD Parts > Tra= ding. Let me know if there is anything I could help.=20 >=20 > Yang | Senio= r Sales=20 >=20 > =E2=80=8BANSEN LIGHTING TECHNOLOGY CO., LTD=20 >=20 > www= .AnsenLighting.com=20 >=20 > Ansen Lighting Co., Limited > Building A, Gu= anghui Industrial Park, Baoan District=20 > Shenzhen 518000 > China > h= ttp://www.ansenlighting.com=20 >=20 > Unsubscribe > http://www.vmarks.c= om.cn/index.php/lists/ys185xq73waa5/unsubscribe/py5926e7rnbfe/xm525xw3zm1dc= =20 From owner-freebsd-questions@freebsd.org Mon Jun 27 23:13:31 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63CD6B85FAF for ; Mon, 27 Jun 2016 23:13:31 +0000 (UTC) (envelope-from george@vagner.com) Received: from mailrelay2.pub.mailoutpod1-wdc1.one.com (mailrelay2.pub.mailoutpod1-wdc1.one.com [104.37.35.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 014CD217E for ; Mon, 27 Jun 2016 23:13:30 +0000 (UTC) (envelope-from george@vagner.com) X-HalOne-Cookie: ef6b13e29a9cfa2b7cf3d1a0354c346b1f533e7c X-HalOne-ID: 99635dff-3cbc-11e6-9a7c-549f35fe4221 Received: from [192.168.0.15] (unknown [172.243.191.175]) by mailrelay1.pub.mailoutpod1-wdc1.one.com (Halon Mail Gateway) with ESMTPSA for ; Mon, 27 Jun 2016 23:12:17 +0000 (UTC) Subject: wierd issue with ue0 To: freebsd-questions@freebsd.org References: <20160623153756.GA1296@hephaistos.local> <20160623154614.GB1296@hephaistos.local> <20160623155143.GC1296@hephaistos.local> From: laszlo Message-ID: <65c2e4a6-1e8b-0a65-7469-ede990443f6d@vagner.com> Date: Mon, 27 Jun 2016 19:12:11 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160623155143.GC1296@hephaistos.local> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 23:13:31 -0000 my 11.0 ALPHA3 PI system is connected as a gateway with ue0 being on the internet side and ue1 on the intranet side, all is fine after reboot but i am on satellite and my internet connection is on a timer so i dont use too much bandwidth. when the internet side comes on my system don't seem to get its new IP address or old ip address even though i have dhclient running and it lists -dynamic in my process list. when looking at my ifconfig the interface shows an IP address of 0.0.0.0 and in order to make the system work i have to do an ifconfig ue0 down and then up. anyone have an idea where to check why its not getting a new ip address. i have read about dhclient and i didn't see anything obvious. thanks. george From owner-freebsd-questions@freebsd.org Tue Jun 28 00:41:53 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27F00AC5455 for ; Tue, 28 Jun 2016 00:41:53 +0000 (UTC) (envelope-from cwr@core.cwross.com) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F2EB229DA for ; Tue, 28 Jun 2016 00:41:52 +0000 (UTC) (envelope-from cwr@core.cwross.com) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 7431B2046E for ; Mon, 27 Jun 2016 20:41:51 -0400 (EDT) Received: from web1 ([10.202.2.211]) by compute7.internal (MEProxy); Mon, 27 Jun 2016 20:41:51 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=cwross.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=pa0aTRV75VB98BoioQuIB8l35ZQ=; b=EG1hJa eHU7CNiFOFNjf5PHJcRL4j5wqcIDLZlg692vnw199rAsDDBkHciYnfjW89j5R4E4 Xb8AYronC52r0csq/Wd+Tg0C1JAbbzm5zN9eSdf83uoCHcAw4jZHc4qz+S5PlCj1 ZIciIWKZzv71+miqfwUW6FCg497QO1VHMUdko= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=pa0aTRV75VB98Bo ioQuIB8l35ZQ=; b=e7sOMyCWeuzX+YqYtag1lB4seKbX/d/uzEyvyZ43P+1VSSo RvpD2uBWeANCV6uxZp2KSrpcUFvwyyhDzMtJkPiYfQUTtkUHed9Tkrk0GvWf7vdK 8LA3z5xRYCelDR+00SVKC/R0nF8p2e4V9oIwgHskTZBbg/rAzKK/o8ZVm5Ww= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 3AD126A539; Mon, 27 Jun 2016 20:41:51 -0400 (EDT) Message-Id: <1467074511.2354479.650282057.23E43CD7@webmail.messagingengine.com> X-Sasl-Enc: clDAxtO2JMrgslNXlaZpNZwWnHxOsDUstsOs13JepPiW 1467074511 From: "Charles W. Ross" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-92c7b58a In-Reply-To: References: <1466789057.3429597.647623793.146F091D@webmail.messagingengine.com> <20160624211629.cfeec2df.freebsd@edvax.de> Subject: Re: Resolution on SCFB X11 Driver Date: Mon, 27 Jun 2016 20:41:51 -0400 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 00:41:53 -0000 On Mon, Jun 27, 2016, at 08:02, alphachi wrote: > https://forums.freebsd.org/threads/55222/ Thank you to all who responded! I now have my display set to the proper resolution under the scfb driver! I can how happily use my Intel NUC in a reasonable fashion until FreeBSD 11 comes along. The link above was most helpful. Here are the steps I had to take to get the proper resolution: 1) Boot into loader prompt. 2) Type "mode" to get a list of available modes. 3) Choose a mode and set it. 4) Back at the loader prompt, type 'gop get' to see what resolution that mode permitted. 5) Eventually, I discovered that setting to mode '0' would result in a 1920*1200 option when the 'gop get' command was executed. 6) Boot the system and all is good! Charlie > 2016-06-25 3:16 GMT+08:00 Polytropon : > > > On Fri, 24 Jun 2016 13:24:17 -0400, Charles W. Ross wrote: > > > Hi all, > > > > > > I'm running FreeBSD 10.3 on an Intel NUC with 4th generation graphics. > > > This is not supported by the i915 driver yet, so I'm using the SCFB > > > (frame buffer) driver. > > > > > > It works, but I can't seem to set an optimal resolution. My display (24" > > > Dell) supports 1920*1200, but the system only permits X11 to operate at > > > 1280*1024. > > > > > > I have tried the usual settings in xorg.conf to define the display's > > > "Modes" at 1920*1200, but no luck. Running 'xrandr' presents only one > > > option: 1280*1024. > > > > > > I know the SCFB driver is capable of operating at higher resolutions, > > > does anyone have any tips on how to set this? > > > > Some years ago, I had a similar problem with the nvidia driver > > not providing a screen size biiger than 1024x768 (which isn't > > that great on an 21" 4:3 CRT), so I tested and collected some > > tweaks for xorg.conf. Maybe those are driver-specific or even > > outdated, but maybe they can be an inspiration for further > > investigations. > > > > I did manually define the monitor's physical parameters to > > allow X to calculate the required resolution and size: > > > > Section "Monitor" > > Identifier "Monitor0" > > VendorName "Eizo" > > ModelName "FlexScan F980" > > HorizSync 30.0 - 137.0 > > VertRefresh 50.0 - 160.0 > > Option "DPMS" "false" > > DisplaySize 410 305 > > # X*Y in mm for DPI calculation, cf. xinit -- -dpi 72/75/96/115 > > EndSection > > > > In that section, if I set > > > > Option "PreferredMode" "1920x1200" > > > > the system locked up. No idea why. > > > > Later on, I tried to set the DPI size and disable EDID information > > retrieval: > > > > Section "Device" > > Identifier "Card0" > > Driver "nvidia" > > [...] > > Option "UseEdid" "FALSE" > > Option "UseEdidDpi" "FALSE" > > Option "DPI" "96 x 96" > > EndSection > > > > In the "most important section" of xorg.conf, I could successfully > > set the screen sizes to switch manually (with Ctrl+Alt+[+]/[-] keys) > > or via program (for example games that activated a full screen mode > > that was not the "usual" mode). > > > > Section "Screen" > > Identifier "Screen0" > > Device "Card0" > > Monitor "Monitor0" > > DefaultDepth 24 > > SubSection "Display" > > Viewport 0 0 > > Depth 24 > > Visual "TrueColor" > > Modes "1400x1050" "1152x864" "1024x768" > > "800x600" "640x480" "320x240" > > EndSubSection > > EndSection > > > > In case of a flat panel, all size settings should be the same, and > > in the "Screen" section, there should be only one entry of the > > desired format. > > > > I always could manually switch to the desired mode: > > > > xrandr --fb 1400x1050 > > xrandr --size 1400x1050 > > > > which I had temporarily put into ~/.xinitrc, but that looked wrong. > > > > With "xrandr" without parameter) you should then get a list of the > > available modes, with the one selected at the top. > > > > > > > > -- > > Polytropon > > Magdeburg, Germany > > Happy FreeBSD user since 4.0 > > Andra moi ennepe, Mousa, ... > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > > freebsd-questions-unsubscribe@freebsd.org" > > > > > > -- > Paranoid in Sabbath ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jun 28 08:06:20 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0C00B85413 for ; Tue, 28 Jun 2016 08:06:20 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D5162C2C for ; Tue, 28 Jun 2016 08:06:19 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mail-wm0-x229.google.com with SMTP id 187so25617296wmz.1 for ; Tue, 28 Jun 2016 01:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bris-ac-uk.20150623.gappssmtp.com; s=20150623; h=date:from:message-id:to:subject:reply-to; bh=cnNj3GeAVoR5YjnwwvnnCRCLIpzAGfiTf+Eqv9xz4Yw=; b=1A1y41CH+QO/B7ft6ODOfw7S646sqv9/QpFq/ba+6GX4uw3irnkC9EDWOkFY86Y+26 2JYBJvXguEXh9YFgCws+3tQT1G949MokD18/fvixg5yx9p3HE1JxVoGu3YdDsHXuf9F2 20RJPhTJNrqM/Z+vlCJWzsQx1mNBlw2TTd1KrDBQG0zbkawM1AydLQtp4BHfXVbdQ/So Vf4bCU0HqGy48a7tV9xvWk6/dUK+NNenKFYYtgjoYI/Gnh9X1//dM3PCrV3JJu7ief0b zNXuvu7U6sZuEX8zoe6PMGBejb+550c2hY2mNEQO+41HAAPHyF+rYyl+del0WxsSHdUz FLQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to; bh=cnNj3GeAVoR5YjnwwvnnCRCLIpzAGfiTf+Eqv9xz4Yw=; b=eY9Nh3CviVdHhur4hiZJxzwCLNBN8GqrS0g2132nobfbvlFEEuHzXi1psNcnQjq+XZ XtwQz+S6bHr3QE+3rdmM51S7DYgxsL8rl/ZK9dphJ7BvfEpcn+Zuj/F78sH8pdTg4Yd9 pzGgqo0aucwFpHfhGs0cL0zwR1g9oLlaCgZmfm5goMHoFsfpsE2rrPd68CaR7nfYCszl xYfn9uwh60TyOn82sCGZTDiAjxCSienk3ytkkWI0RNA2eW84DlkRyz0PSz0oLTeqte4P fICZyS75KRkJrioG+94T0owE4M0wpA9BjbwvpmpWYoXDGm3wwLjsC10SaU+ZcmAb5YS7 ldUQ== X-Gm-Message-State: ALyK8tI0yXhPm/0VdtI3o6GMMQmd22IFRKmRJt2KG/XCCWitB4RvMsv9K2SuOMJ4SvcX2ASj X-Received: by 10.28.39.69 with SMTP id n66mr2146670wmn.3.1467101178139; Tue, 28 Jun 2016 01:06:18 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id b187sm15623581wmg.15.2016.06.28.01.06.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 01:06:17 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id u5S86GDj095302 for ; Tue, 28 Jun 2016 09:06:16 +0100 (BST) (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id u5S86G3D095301 for freebsd-questions@freebsd.org; Tue, 28 Jun 2016 09:06:16 +0100 (BST) (envelope-from mexas) Date: Tue, 28 Jun 2016 09:06:16 +0100 (BST) From: Anton Shterenlikht Message-Id: <201606280806.u5S86G3D095301@mech-as222.men.bris.ac.uk> To: freebsd-questions@freebsd.org Subject: firefox-47.0_1,1 - built-in PDF viewer does not work Reply-To: mexas@bris.ac.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 08:06:20 -0000 Since upgrading to firefox-47.0_1,1 via pkg on amd64 11-current laptop, the built-in PDF plugin does not seem to work anymore. I still have under Preferences -> Applications: PDF - Preview in Firefox. Have I missed some change in the firefox setup? Anybody else is seeing this? Perhaps some other package is now needed to make this work? Thanks Anton From owner-freebsd-questions@freebsd.org Tue Jun 28 11:09:05 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24C52B85A65 for ; Tue, 28 Jun 2016 11:09:05 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B59BB2EA2 for ; Tue, 28 Jun 2016 11:09:04 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mail-wm0-x22f.google.com with SMTP id 187so26634598wmz.1 for ; Tue, 28 Jun 2016 04:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bris-ac-uk.20150623.gappssmtp.com; s=20150623; h=date:from:message-id:to:subject:reply-to; bh=9MQkrBqqBhW1O+RQVlVk2bkZlRxLTao/ckupBjDIMxQ=; b=OP7Odgrv1E7CaN8jnSWEATAUzzduPQ+Nh4cVZb+ZSK89b0BJdyxfZqiYVPa3zEcUp3 NfU3KsDPNNKoPxVKaOxKev5KMUP0iIKLX+GTZwmLT7rxldEbo0OhcZNLIB3ScEO2pNoi rks4CSWE5oNJQ7KktdB+rIgkKNs7BFEtTFobyvUqpdrx46uQd09M4wk38KCu2MQzMoxJ BLFdqeXXDKtElbDMP4vFs/tHOXZTItL0YX7evfSve2t/C5y3DynWeLFusb/y/960NwuY 6J2BulsqlE/QwPbvrIM1SRIGdU+/2j0X3/zBKxAE0b9S2voJKAQyqWWx7j5JMuPCzEzq ySTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to; bh=9MQkrBqqBhW1O+RQVlVk2bkZlRxLTao/ckupBjDIMxQ=; b=j2U6zu9EJjvQtGmtCzWy0GM0yxHnKOX5RbisO1uqqWLmdy/ul6S71c5kHUlPfkUowL G0JwVZm/acZqePxnRq9+wxHNliYwrPtw/Ln/riZzrIYQpmdyWcOtpUNS2EjAgv/BWtZi vjb0O/y6WIG24I+Otsajh6ew4YfBqLE1/8IzN098Y8RcXdFXG86SyHrAKQ731mHL/J7Z bgQlQx+sP2t4L7z2iunx87PzYkTn0S4K/7ghgPxMEP+PSsFNdHkIqEEuwtVGyxweOrOc /ZnHWqmIMWH6kmkpjRVYU2HKcBHAAxM+KziR9jnUx1wb7avjyw0rHbgHQB6/x2hx8CQu ycZQ== X-Gm-Message-State: ALyK8tKYMlTVzc6N25f1em6e+l6nJr7WOjGjSn4JugRIdwt/sOM74t1p3l94CT6fZDv8Kt4n X-Received: by 10.194.2.44 with SMTP id 12mr2470522wjr.61.1467112142069; Tue, 28 Jun 2016 04:09:02 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id e5sm2501044wjj.10.2016.06.28.04.09.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 04:09:01 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id u5SB90Th095975 for ; Tue, 28 Jun 2016 12:09:00 +0100 (BST) (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id u5SB90dZ095974 for freebsd-questions@freebsd.org; Tue, 28 Jun 2016 12:09:00 +0100 (BST) (envelope-from mexas) Date: Tue, 28 Jun 2016 12:09:00 +0100 (BST) From: Anton Shterenlikht Message-Id: <201606281109.u5SB90dZ095974@mech-as222.men.bris.ac.uk> To: freebsd-questions@freebsd.org Subject: SOLVED, was Re: firefox-47.0_1,1 - built-in PDF viewer does not work Reply-To: mexas@bris.ac.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 11:09:05 -0000 >From mexas Tue Jun 28 09:06:16 2016 >To: freebsd-questions@freebsd.org >Subject: firefox-47.0_1,1 - built-in PDF viewer does not work >Reply-To: mexas@bris.ac.uk > >Since upgrading to firefox-47.0_1,1 via pkg on amd64 11-current laptop, >the built-in PDF plugin does not seem to work anymore. > >I still have under Preferences -> Applications: > > PDF - Preview in Firefox. > >Have I missed some change in the firefox setup? >Anybody else is seeing this? >Perhaps some other package is now needed to make this work? Now works. Not sure what was wrong. Anton From owner-freebsd-questions@freebsd.org Tue Jun 28 11:34:18 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FC79B843B1 for ; Tue, 28 Jun 2016 11:34:18 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from shopzeus.com (shopzeus.com [87.229.70.149]) by mx1.freebsd.org (Postfix) with ESMTP id 0821A2DA5 for ; Tue, 28 Jun 2016 11:34:17 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from [127.127.127.127] (localhost [127.127.127.127]) (Authenticated sender: gandalf) by shopzeus.com (Postfix) with ESMTPSA id D5D04889CCDB for ; Tue, 28 Jun 2016 07:28:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopzeus.com; s=shopzeus_com; t=1467113282; bh=DXWtqMEJ2g5HAHWkH816LyqmEPyFlMOj/MVrQQWsOnA=; h=To:From:Subject:Date:From; b=C9FT8P366jl/taW1scvsyy1G2JJHNHLd0Ph7Rv5gELJt0Ti8w2hwAOeN6KKpb881T +FEvs6XUA/kB5DVQ+5Wa1f3bNxBIaOQcQcnCi4q9s47qB4pZHFz5jk/7V/WJ2SZB0F 9Ek+qEw1uiHxmV7gxdVNF939xkQVypj4c09WTPj1+9+YaPOLR1NIJBgecqkHXDw4ye +5adKWyNExZE5EtVng6EZ9933XzFUJodLVDvGTAIWrwd7Zdw2S0rUwDUbmtSwenBnJ 6SmT81ZoP+5BB58v8n6B6528X31/tcbZJHhAilHxFqNB2iNyiyX6JMcXZDOfYul5F3 3mu7KiCwZKt6g== To: freebsd-questions@freebsd.org From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Subject: fail2ban + ipfw howto? Message-ID: <55e0f2c5-4b1e-03dd-c548-ad00df0648c4@shopzeus.com> Date: Tue, 28 Jun 2016 13:28:02 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 11:34:18 -0000 Hello, Does anyone know a howto for freebsd 10 + ipfw? The py-fail2ban package does not contain default configurations for ipfw, only for pf. I have seen some posts on various forums, and it appears that there are admins using fail2ban with ipfw. However, they all write their own actions for ipfw. So can somebody suggest a good place to start with fail2ban + ipfw? Thanks, Laszlo From owner-freebsd-questions@freebsd.org Tue Jun 28 13:08:09 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7CD1AB8518A for ; Tue, 28 Jun 2016 13:08:09 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 13693201A for ; Tue, 28 Jun 2016 13:08:09 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id f126so139422444wma.1 for ; Tue, 28 Jun 2016 06:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=sGS2955wNMPSuQGIsjNWOdeUHiN9iI/5fMraYIRBfTU=; b=r9uIsApxAWOODxKdjJwVR52b3JLPslYQzEuxQZuY7wQZuvk8lWtleQvRkZrQVrTLYZ ZBgzHwGdwRWPYqfnBJqsYcylfv3r/IG9sE64LhXAdSVq8JWAKoFXlCpEoWHJ36l8chz+ LfLS/sMg88IGEvaAOrw71wSH9+nz5F6HK6+hYrdLAHDKiRNFYxtk8d2DhKKZcB8a/JK3 MxMkARt4zGkOQKRhKdXiGiB0BU29S8OtayUOUGZmRsO3n02BObK5+ujG6He2vkDbEgCV H8qrcfg5nVmeDgRqw5zPLlpaLmaM8AqYV/mVzZZgUiKZWdS2mi6084w+TxnvskH9Bbah gMKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=sGS2955wNMPSuQGIsjNWOdeUHiN9iI/5fMraYIRBfTU=; b=DPRBjtnXVWkAtYC4KsSVVfHnPlDwYnPUEA9jH/VZrKK+bIOj8+SgfPGbhUV3gsszlR 78p2QDxkD4cEgJNnEwYD1wfJaPuoyYk8rVEQqBxGCol8MiE1Uz2HhvKnT7e8ti4thIvy PlpdVOmdnyaONvmTGEQnwr4mBcb3l47pvribApDzTHCXyuAu86ihA4RyTOi5tzWUziPk U6VJIIN+gb/tqv1+b/dWF1kBuPR9XTT6EljFDKyACeIrVhRPnGlkMXE3IG2Ie2NtrIHu tC4tNuJhrkIMoDXO0bCutu7+iVGKZLzJX0wfxlVdg+WKiuvkDK4fo6w6PUSkTnwROT1P 10pw== X-Gm-Message-State: ALyK8tJYKFBrkzlqPyruMJlqCFhKJfGARqwPVTEnWuBvQ/cTGlb8FELGl00PEqLzOJEqrA== X-Received: by 10.28.93.65 with SMTP id r62mr8906105wmb.51.1467119287206; Tue, 28 Jun 2016 06:08:07 -0700 (PDT) Received: from beagle.bcn.sia.es (132.red-79-154-242.dynamicip.rima-tde.net. [79.154.242.132]) by smtp.gmail.com with ESMTPSA id bh7sm344472wjb.22.2016.06.28.06.08.05 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jun 2016 06:08:06 -0700 (PDT) Date: Tue, 28 Jun 2016 13:07:59 +0000 From: "C. L. Martinez" To: freebsd-questions@freebsd.org Subject: Problems with pf rules for intercept squid proxy Message-ID: <20160628130759.GA13226@beagle.bcn.sia.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 13:08:09 -0000 Hi all, I have some problems with my pf rules on a FreeBSD 10.3 host that acts as a squid intercept proxy. My actual pf rules are: rdr pass on $vpnif proto tcp from $int_network to any port http -> lo0 port 5144 rdr pass on $vpnif proto tcp from $int_network to any port https -> lo0 port 5145 At first stage it seems that these rules works, but don't. Traffic is redirected to squid, but squid denies all connections: 1467111934.502 1 172.22.55.1 TCP_DENIED/403 4221 GET http://www.osnews.com/ - HIER_NONE/- text/html Using same squid.conf's file under an OpenBSD test machine, squid works without problems. For this reason, I don't think there is some problem with my squid's config. The only difference between this OpenBSD host and FreeBSD are the pf rules. In OpenBSD host, pf rules are: pass in inet proto tcp from $int_network to any port http divert-to 127.0.0.1 port 5144 pass in inet proto tcp from $int_network to any port https divert-to 127.0.0.1 port 5145 .. and all works ok. Any idea why squid denies connections using FreeBSD's pf rules?? Thanks. -- Greetings, C. L. Martinez From owner-freebsd-questions@freebsd.org Tue Jun 28 13:32:33 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18D6BB857FE for ; Tue, 28 Jun 2016 13:32:33 +0000 (UTC) (envelope-from web@3dresearch.com) Received: from smtpb.telissant.net (smtpb.telissant.net [199.233.230.156]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E500E2E3F for ; Tue, 28 Jun 2016 13:32:32 +0000 (UTC) (envelope-from web@3dresearch.com) Received: from barrida.3dresearch.com (localhost [127.0.0.1]) by smtpb.telissant.net (Postfix) with ESMTP id 7B6903AECB for ; Tue, 28 Jun 2016 09:32:25 -0400 (EDT) X-Virus-Scanned: amavisd-new at telissant.net Received: from smtpb.telissant.net ([127.0.0.1]) by barrida.3dresearch.com (barrida.3dresearch.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zsA_Yc-Ic41p for ; Tue, 28 Jun 2016 09:32:05 -0400 (EDT) Received: from almavivazfs.3dresearch.com (unknown [71.112.241.83]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtpb.telissant.net (Postfix) with ESMTPSA id 7A4E63ACDF for ; Tue, 28 Jun 2016 09:32:05 -0400 (EDT) Received: from almavivazfs.3dresearch.com (localhost [127.0.0.1]) by almavivazfs.3dresearch.com (Postfix) with SMTP id C967FAA25AF for ; Tue, 28 Jun 2016 09:32:04 -0400 (EDT) Date: Tue, 28 Jun 2016 09:31:56 -0400 From: Janos Dohanics To: FreeBSD Questions Subject: Re: LAN slow or dead, intermittently Message-Id: <20160628093156.f46f1d912f797ff75dd6f016@3dresearch.com> In-Reply-To: <57712130.2050603@gmail.com> References: <20160624112659.a9fd454b8d05166befb5876d@3dresearch.com> <57712130.2050603@gmail.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 13:32:33 -0000 On Mon, 27 Jun 2016 08:50:56 -0400 Ernie Luzar wrote: > Janos Dohanics wrote: > > Hello List, > > > > Please help me figure out what makes my LAN intermittently slow or > > just about dead. > > > > [...] > > I also had performance problems with 10.3 that did not happen with > 10.2 and older releases. When the lan went dead I had to reboot the > host system to get things working again because users were on my > back. I never let this condition exist to see if it would resolve it > self. > > My first solution was to go back to using 10.2 and everything was > fine. One evening I swapped the hosts 10.2 hard drive with the 10.3 > hard drive so I could test some more. Just by luck I checked the date > & time by issuing the "date" command. The date was correct but the > time was -2 hours off. I manually set the correct time using the > "date" command and let 10.3 run as production. With in 5 days the lan > network was having performance problems again. I checked the host > time and it was off by -30 minutes. I replaced the host motherboard > battery with a new one and manually set the correct time again. > Things ran ok for about 2 weeks when it happened again. This time the > time was off by -2 minutes. > > This time I enabled the base ntpd time daemon by adding this to > rc.conf ntpd_enable="YES" > ntpd_sync_on_start="YES" > > Since then 10.3 has been running ok [2 months now]. I think some > thing in the network stack code changed between 10.2 and 10.3 that > made the time sync between lan nodes and the host, time range > dependent. > > I would say that checking the time on your host and all the machines > on the lan would be a good place to start looking for your problem. > > Good luck Well, date(1) shows a time which seems reasonably correct... it didn't occur to me that an inaccurate clock could also be the cause of the kind of problem I described. Thanks anyway... -- Janos Dohanics From owner-freebsd-questions@freebsd.org Tue Jun 28 16:24:40 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C99FAB85427 for ; Tue, 28 Jun 2016 16:24:40 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9056B2E60 for ; Tue, 28 Jun 2016 16:24:40 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x229.google.com with SMTP id g13so21400487ioj.1 for ; Tue, 28 Jun 2016 09:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-transfer-encoding; bh=iGPudFUngKN4aS9FViHB9Y3+UZfyL4s61tvsPQHGI5Y=; b=wwaWJ9vIAskPBPqTZUIUceC+VFLO6LyIhDMV/mV1rBGizR39kJTg7xEfdXN7ZEDNUw pB+RtI8asKfMFLvBL2TqKH/DH15xLGBa6c03qm8pMk4882EDL1ebAn6LjYemYW/kGsGP PZ1cCiRG9yeltqKzqGU9ij/tXK5W5QzEnqR6BVMdyUvqjlYCQjcX/ZIuU6R7X+/ilDdc +WMAMSwbbvvqSESbQLfCNQF9Q0zFH2pHSyZFIX9pZvN5+RMV4FkUd5DuE8xR2AbK1SN9 T8powN/InE7vyZYUbnztae2Mggb6g6deR1+q6ZWVc+ata83z+Q4JFGQ0p36z95lRlHK/ oSQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-transfer-encoding; bh=iGPudFUngKN4aS9FViHB9Y3+UZfyL4s61tvsPQHGI5Y=; b=NmGVDl8YGtCksuDVwUnR0hKWbk/8ddd5i8EU667XOlOXETf4FFBtXt510zOlNywODR ZGH9o9daiUIsXfyRHV4v4ow6lP8cIZaGBhGfQL20oq+pxs5gdI5lXLCEB9dG4Yk1rbfN +vFI5MY06+fDmoYSmMfKxsUF+axGsc7ki3bb+v13wzjfOYlgP0tntH/WKLz/ZTPij4ov +oL5PhA04dlHm4ghv5loQ+HkeaVHwb+t67c2CUrjev3a72RIW3/ZcRzm16V4T9iz10Me y5jmy1uGIaqW4g3KgKd42ha0tmal/xx7OjVJSwPOjaWMLDWzKJbxkUECMnlc0nL1Dg/n QCVw== X-Gm-Message-State: ALyK8tIETY/vvnwAU52f7N1Yv0PETYhNbrnPah0T2mMYCvdd+Z3h+EiA8ED/S6pkNX6rbw== X-Received: by 10.107.21.66 with SMTP id 63mr4285984iov.59.1467131079884; Tue, 28 Jun 2016 09:24:39 -0700 (PDT) Received: from [10.0.10.3] (cpe-184-56-210-236.neo.res.rr.com. [184.56.210.236]) by smtp.googlemail.com with ESMTPSA id y73sm11803542iof.32.2016.06.28.09.24.39 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 09:24:39 -0700 (PDT) Message-ID: <5772A4D6.50301@gmail.com> Date: Tue, 28 Jun 2016 12:24:54 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: FreeBSD Questions Subject: Re: LAN slow or dead, intermittently References: <20160624112659.a9fd454b8d05166befb5876d@3dresearch.com> <57712130.2050603@gmail.com> <20160628093156.f46f1d912f797ff75dd6f016@3dresearch.com> In-Reply-To: <20160628093156.f46f1d912f797ff75dd6f016@3dresearch.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 16:24:40 -0000 Janos Dohanics wrote: > On Mon, 27 Jun 2016 08:50:56 -0400 > Ernie Luzar wrote: > >> Janos Dohanics wrote: >>> Hello List, >>> >>> Please help me figure out what makes my LAN intermittently slow or >>> just about dead. >>> >>> [...] >> I also had performance problems with 10.3 that did not happen with >> 10.2 and older releases. When the lan went dead I had to reboot the >> host system to get things working again because users were on my >> back. I never let this condition exist to see if it would resolve it >> self. >> >> My first solution was to go back to using 10.2 and everything was >> fine. One evening I swapped the hosts 10.2 hard drive with the 10.3 >> hard drive so I could test some more. Just by luck I checked the date >> & time by issuing the "date" command. The date was correct but the >> time was -2 hours off. I manually set the correct time using the >> "date" command and let 10.3 run as production. With in 5 days the lan >> network was having performance problems again. I checked the host >> time and it was off by -30 minutes. I replaced the host motherboard >> battery with a new one and manually set the correct time again. >> Things ran ok for about 2 weeks when it happened again. This time the >> time was off by -2 minutes. >> >> This time I enabled the base ntpd time daemon by adding this to >> rc.conf ntpd_enable="YES" >> ntpd_sync_on_start="YES" >> >> Since then 10.3 has been running ok [2 months now]. I think some >> thing in the network stack code changed between 10.2 and 10.3 that >> made the time sync between lan nodes and the host, time range >> dependent. >> >> I would say that checking the time on your host and all the machines >> on the lan would be a good place to start looking for your problem. >> >> Good luck > > Well, date(1) shows a time which seems reasonably correct... it didn't > occur to me that an inaccurate clock could also be the cause of the > kind of problem I described. Thanks anyway... > When I posted the above reply I also included your email address Janos Dohanics It got bounced and some spam harvesting dns message came back. With the reply you just posted shows me your reading the questions list and posting BS just to drive traffic to your email address harvesting web site. To all who read this thread, beware, ignore all posts from this domain 3dresearch.com From owner-freebsd-questions@freebsd.org Tue Jun 28 17:37:42 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 346CBB859A0 for ; Tue, 28 Jun 2016 17:37:42 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D71512A1F for ; Tue, 28 Jun 2016 17:37:41 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [192.168.228.1] (unknown [IPv6:2a02:1811:2419:4e02:4099:dad7:6b5b:f8d5]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 7BA3A23B5A; Tue, 28 Jun 2016 19:37:37 +0200 (CEST) From: "Kristof Provost" To: "C. L. Martinez" Cc: freebsd-questions@freebsd.org Subject: Re: Problems with pf rules for intercept squid proxy Date: Tue, 28 Jun 2016 19:37:37 +0200 Message-ID: <2822287D-FE6F-4A4B-995A-639B696911DF@FreeBSD.org> In-Reply-To: <20160628130759.GA13226@beagle.bcn.sia.es> References: <20160628130759.GA13226@beagle.bcn.sia.es> MIME-Version: 1.0 X-Mailer: MailMate (2.0BETAr6038) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 17:37:42 -0000 On 28 Jun 2016, at 15:07, C. L. Martinez wrote: > I have some problems with my pf rules on a FreeBSD 10.3 host that > acts as a squid intercept proxy. My actual pf rules are: > > rdr pass on $vpnif proto tcp from $int_network to any port http -> lo0 > port 5144 > rdr pass on $vpnif proto tcp from $int_network to any port https -> > lo0 port 5145 > > At first stage it seems that these rules works, but don't. Traffic is > redirected to squid, but squid denies all connections: > > 1467111934.502 1 172.22.55.1 TCP_DENIED/403 4221 GET > http://www.osnews.com/ - HIER_NONE/- text/html > > Using same squid.conf's file under an OpenBSD test machine, squid > works without problems. For this reason, I don't think there is some > problem with my squid's config. The only difference between this > OpenBSD host and FreeBSD are the pf rules. > You may have a different squid version, or they may be patched differently. Your redirect rules are working, as demonstrated by the fact that squid gets a request, and replies to it. Note that pf does not change your HTTP payload, it only affects TCP. In other words: if Squid sees the connection (and it does) it’s a Squid problem. Also note that you’re redirecting on FreeBSD, but using divert-to on OpenBSD. This may be triggering different behaviour from Squid. The man page says that with divert-to: The packets will not be modified, so getsockname(2) on the socket will return the original destination address of the packet. That might be affecting an ACL in Squid. Regards, Kristof From owner-freebsd-questions@freebsd.org Tue Jun 28 19:57:51 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03B72B86312 for ; Tue, 28 Jun 2016 19:57:51 +0000 (UTC) (envelope-from btv1==9876ed82408==noc@hdk5.net) Received: from spamfilter.netenterprise.net (relay1.netenterprise.net [64.29.90.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "spamfilter.netenterprise.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D52EA2095 for ; Tue, 28 Jun 2016 19:57:50 +0000 (UTC) (envelope-from btv1==9876ed82408==noc@hdk5.net) X-ASG-Debug-ID: 1467143111-0a94c50eab81ad0001-nG3My6 Received: from IMAIL5.netenterprise.net (imail5.netenterprise.net [64.29.90.135]) by spamfilter.netenterprise.net with ESMTP id c7KZKO1db8Nk0mLF (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 28 Jun 2016 09:45:11 -1000 (HST) X-Barracuda-Envelope-From: noc@hdk5.net X-Barracuda-RBL-Trusted-Forwarder: 64.29.90.135 X-ASG-Whitelist: Client Received: from ponolei.intra.net [72.235.61.32] by IMAIL5.netenterprise.net with ESMTP (SMTPD-12.5.3.93) id 32a4000353111cfa; Tue, 28 Jun 2016 09:45:12 -1000 Message-ID: <5772D3C8.1050902@hdk5.net> X-Barracuda-Effective-Source-IP: udp017597uds.hawaiiantel.net[72.235.61.32] X-Barracuda-Apparent-Source-IP: 72.235.61.32 X-Barracuda-RBL-IP: 72.235.61.32 Date: Tue, 28 Jun 2016 09:45:12 -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" Subject: network hook up for Win 10 laptop on Freebsd Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-ASG-Orig-Subj: network hook up for Win 10 laptop on Freebsd Content-Transfer-Encoding: 7bit X-Barracuda-Connect: imail5.netenterprise.net[64.29.90.135] X-Barracuda-Start-Time: 1467143111 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA X-Barracuda-URL: https://spamfilter.netenterprise.net:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 936 X-Virus-Scanned: by bsmtpd at netenterprise.net X-Barracuda-BRTS-Status: 1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 19:57:51 -0000 Aloha List, I have aquired a Dell Laptop Inspiron 14 -3452 Windows 10 O/S. Box has Hdmi, USB and media card reader ports . Also Wireless network hookup. The network is FreeBSD 8 and has an old HP Laser jet printer and several desktops with FreeBSD that work with the printer. We want to print email received on the Dell on the network. The FreeBSD network is hardwired with cables and connectors. The Telcom link to internet is wireless and cable mixed. Any ideas how I can do this with the new Dell? Can I use converter connectors to the cable and connect the Dell to the switch that the other working units connect to now. Thanks for any ideas. ~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~ Supporting FreeBSD - UNIX Computer O/S email: noc@hdk5.net email: alplant.att.net ."All that's really worth doing is what we do for others" - Lewis Carrol From owner-freebsd-questions@freebsd.org Tue Jun 28 20:57:36 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7CE9BB85188 for ; Tue, 28 Jun 2016 20:57:36 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4EB6C20A1 for ; Tue, 28 Jun 2016 20:57:36 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u5SKvSpi031782 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 28 Jun 2016 14:57:28 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u5SKvSLw031779; Tue, 28 Jun 2016 14:57:28 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 28 Jun 2016 14:57:28 -0600 (MDT) From: Warren Block To: al plant cc: "freebsd-questions@FreeBSD.org" Subject: Re: network hook up for Win 10 laptop on Freebsd In-Reply-To: <5772D3C8.1050902@hdk5.net> Message-ID: References: <5772D3C8.1050902@hdk5.net> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Tue, 28 Jun 2016 14:57:29 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 20:57:36 -0000 On Tue, 28 Jun 2016, al plant wrote: > Aloha List, > > I have aquired a Dell Laptop Inspiron 14 -3452 Windows 10 O/S. > > Box has Hdmi, USB and media card reader ports . Also Wireless network hookup. > > The network is FreeBSD 8 and has an old HP Laser jet printer and several > desktops with FreeBSD that work with the printer. > > We want to print email received on the Dell on the network. The FreeBSD > network is hardwired with cables and connectors. The Telcom link to internet > is wireless and cable mixed. > Any ideas how I can do this with the new Dell? Can I use converter connectors > to the cable and connect the Dell to the switch that the other working units > connect to now. Is the "FreeBSD network" connected to the wired port of the cable box? The wireless portion is probably shared with the wired. From the notebook, ping the laser printer. Odds are good that will work. The step after that is adding a printer on the Windows system. The trick there used to be telling it to use a "local port", then creating a port for the IP address of the printer. I don't know if or how much Microsoft might have changed that in later versions of Windows. Which version do you have? From owner-freebsd-questions@freebsd.org Tue Jun 28 21:26:37 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AEE0EB85A34 for ; Tue, 28 Jun 2016 21:26:37 +0000 (UTC) (envelope-from btv1==9876ed82408==noc@hdk5.net) Received: from spamfilter.netenterprise.net (spamfilter.netenterprise.net [64.29.90.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "spamfilter.netenterprise.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8AA5D2FD0 for ; Tue, 28 Jun 2016 21:26:37 +0000 (UTC) (envelope-from btv1==9876ed82408==noc@hdk5.net) X-ASG-Debug-ID: 1467149194-0a94c50ea886960001-nG3My6 Received: from IMAIL5.netenterprise.net (imail5.netenterprise.net [64.29.90.135]) by spamfilter.netenterprise.net with ESMTP id uSgBhgg0vGZ4LoVB (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Jun 2016 11:26:35 -1000 (HST) X-Barracuda-Envelope-From: noc@hdk5.net X-Barracuda-RBL-Trusted-Forwarder: 64.29.90.135 X-ASG-Whitelist: Client Received: from ponolei.intra.net [72.235.61.32] by IMAIL5.netenterprise.net with ESMTP (SMTPD-12.5.3.93) id 7e4000035cc62af2; Tue, 28 Jun 2016 11:26:35 -1000 Message-ID: <5772EB8A.5090908@hdk5.net> X-Barracuda-Effective-Source-IP: udp017597uds.hawaiiantel.net[72.235.61.32] X-Barracuda-Apparent-Source-IP: 72.235.61.32 X-Barracuda-RBL-IP: 72.235.61.32 Date: Tue, 28 Jun 2016 11:26:34 -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: Warren Block CC: "freebsd-questions@FreeBSD.org" Subject: Re: network hook up for Win 10 laptop on Freebsd References: <5772D3C8.1050902@hdk5.net> X-ASG-Orig-Subj: Re: network hook up for Win 10 laptop on Freebsd In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: imail5.netenterprise.net[64.29.90.135] X-Barracuda-Start-Time: 1467149195 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA X-Barracuda-URL: https://spamfilter.netenterprise.net:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1970 X-Virus-Scanned: by bsmtpd at netenterprise.net X-Barracuda-BRTS-Status: 1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 21:26:37 -0000 Warren Block wrote: > On Tue, 28 Jun 2016, al plant wrote: > >> Aloha List, >> >> I have aquired a Dell Laptop Inspiron 14 -3452 Windows 10 O/S. >> >> Box has Hdmi, USB and media card reader ports . Also Wireless network >> hookup. >> >> The network is FreeBSD 8 and has an old HP Laser jet printer and >> several desktops with FreeBSD that work with the printer. >> >> We want to print email received on the Dell on the network. The >> FreeBSD network is hardwired with cables and connectors. The Telcom >> link to internet is wireless and cable mixed. Any ideas how I can do >> this with the new Dell? Can I use converter connectors to the cable >> and connect the Dell to the switch that the other working units >> connect to now. > > Is the "FreeBSD network" connected to the wired port of the cable box? > The wireless portion is probably shared with the wired. From the > notebook, ping the laser printer. Odds are good that will work. > > The step after that is adding a printer on the Windows system. The > trick there used to be telling it to use a "local port", then creating > a port for the IP address of the printer. I don't know if or how much > Microsoft might have changed that in later versions of Windows. Which > version do you have? > > Thanks Warren, I will look at this. Windows 10 My wife works with a mix of mac, windows at her job and her It guy has had a couple of issues that never were reserved mostly to do with age of printers. This we hoped to side step by the network. I cant figure out how you get the network hooked to the windows. I am looking to info on what ports could work on the box. Thanks ~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~ Supporting FreeBSD - UNIX Computer O/S email: noc@hdk5.net email: alplant.att.net ."All that's really worth doing is what we do for others" - Lewis Carrol From owner-freebsd-questions@freebsd.org Tue Jun 28 21:45:07 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E34FB85FE6 for ; Tue, 28 Jun 2016 21:45:07 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.70.90]) by mx1.freebsd.org (Postfix) with ESMTP id 5DE41294B for ; Tue, 28 Jun 2016 21:45:06 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id C5010CB8CA3; Tue, 28 Jun 2016 16:44:59 -0500 (CDT) Received: from 128.135.52.6 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Tue, 28 Jun 2016 16:44:59 -0500 (CDT) Message-ID: <19599.128.135.52.6.1467150299.squirrel@cosmo.uchicago.edu> In-Reply-To: <5772EB8A.5090908@hdk5.net> References: <5772D3C8.1050902@hdk5.net> <5772EB8A.5090908@hdk5.net> Date: Tue, 28 Jun 2016 16:44:59 -0500 (CDT) Subject: Re: network hook up for Win 10 laptop on Freebsd From: "Valeri Galtsev" To: "al plant" Cc: "Warren Block" , "freebsd-questions@FreeBSD.org" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 21:45:07 -0000 On Tue, June 28, 2016 4:26 pm, al plant wrote: > Warren Block wrote: >> On Tue, 28 Jun 2016, al plant wrote: >> >>> Aloha List, >>> >>> I have aquired a Dell Laptop Inspiron 14 -3452 Windows 10 O/S. >>> >>> Box has Hdmi, USB and media card reader ports . Also Wireless network >>> hookup. >>> >>> The network is FreeBSD 8 and has an old HP Laser jet printer and >>> several desktops with FreeBSD that work with the printer. >>> >>> We want to print email received on the Dell on the network. The >>> FreeBSD network is hardwired with cables and connectors. The Telcom >>> link to internet is wireless and cable mixed. Any ideas how I can do >>> this with the new Dell? Can I use converter connectors to the cable >>> and connect the Dell to the switch that the other working units >>> connect to now. >> >> Is the "FreeBSD network" connected to the wired port of the cable box? >> The wireless portion is probably shared with the wired. From the >> notebook, ping the laser printer. Odds are good that will work. >> >> The step after that is adding a printer on the Windows system. The >> trick there used to be telling it to use a "local port", then creating >> a port for the IP address of the printer. I don't know if or how much >> Microsoft might have changed that in later versions of Windows. Which >> version do you have? They didn't change anything. You can create two kind of ports (at least two). Namely: you can create "raw" port, and give there IP address of the printer. This printer has to listen to "jetdirect" port (9100) for this to work. The other way is if printer listens to LPD ("spooler") port (port number 515) (or better: print server, - I usually set up all printer to only accept print jobs from print server - easier to manage especially if something is wrong with some client). In this case, you need to enable two services on Windows side (through "turning on features"): UNIX printing related: "LPD Print Service" and "LPR Port Monitr". This teaches Windows talk UNIX printing language, you then create local port of type LPD (and put remote LPD server's IP there). I found this to be the most robust way of having Windows printing to UNIX print queues. I hope, this helps. Valeri >> >> > Thanks Warren, I will look at this. > > Windows 10 > > My wife works with a mix of mac, windows at her job and her It guy has > had a couple of issues that never were reserved mostly to do with age of > printers. This we hoped to side step by the network. I cant figure out > how you get the network hooked to the windows. I am looking to info on > what ports could work on the box. > > Thanks > > > ~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~ > Supporting FreeBSD - UNIX Computer O/S > email: noc@hdk5.net email: alplant.att.net > ."All that's really worth doing is what we do for others" - Lewis Carrol > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++ From owner-freebsd-questions@freebsd.org Tue Jun 28 22:12:43 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E66B3B86571 for ; Tue, 28 Jun 2016 22:12:43 +0000 (UTC) (envelope-from btv1==9876ed82408==noc@hdk5.net) Received: from spamfilter.netenterprise.net (spamfilter.netenterprise.net [64.29.90.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "spamfilter.netenterprise.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C140B2669 for ; Tue, 28 Jun 2016 22:12:43 +0000 (UTC) (envelope-from btv1==9876ed82408==noc@hdk5.net) X-ASG-Debug-ID: 1467151961-0a94c50ea888cf0001-jLrpzn Received: from IMAIL5.netenterprise.net (imail5.netenterprise.net [64.29.90.135]) by spamfilter.netenterprise.net with ESMTP id j4DfP4PW1CNOBNiW (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Jun 2016 12:12:41 -1000 (HST) X-Barracuda-Envelope-From: noc@hdk5.net X-Barracuda-RBL-Trusted-Forwarder: 64.29.90.135 X-ASG-Whitelist: Client Received: from ponolei.intra.net [72.235.61.32] by IMAIL5.netenterprise.net with ESMTP (SMTPD-12.5.3.93) id 0c520003606e3078; Tue, 28 Jun 2016 12:12:42 -1000 Message-ID: <5772F659.1030408@hdk5.net> X-Barracuda-Effective-Source-IP: udp017597uds.hawaiiantel.net[72.235.61.32] X-Barracuda-Apparent-Source-IP: 72.235.61.32 X-Barracuda-RBL-IP: 72.235.61.32 Date: Tue, 28 Jun 2016 12:12:41 -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: galtsev@kicp.uchicago.edu CC: "freebsd-questions@FreeBSD.org" Subject: Re: network hook up for Win 10 laptop on Freebsd References: <5772D3C8.1050902@hdk5.net> <5772EB8A.5090908@hdk5.net> <19599.128.135.52.6.1467150299.squirrel@cosmo.uchicago.edu> X-ASG-Orig-Subj: Re: network hook up for Win 10 laptop on Freebsd In-Reply-To: <19599.128.135.52.6.1467150299.squirrel@cosmo.uchicago.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: imail5.netenterprise.net[64.29.90.135] X-Barracuda-Start-Time: 1467151961 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA X-Barracuda-URL: https://spamfilter.netenterprise.net:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 4190 X-Virus-Scanned: by bsmtpd at netenterprise.net X-Barracuda-BRTS-Status: 1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 22:12:44 -0000 Valeri Galtsev wrote: > On Tue, June 28, 2016 4:26 pm, al plant wrote: > >> Warren Block wrote: >> >>> On Tue, 28 Jun 2016, al plant wrote: >>> >>> >>>> Aloha List, >>>> >>>> I have aquired a Dell Laptop Inspiron 14 -3452 Windows 10 O/S. >>>> >>>> Box has Hdmi, USB and media card reader ports . Also Wireless network >>>> hookup. >>>> >>>> The network is FreeBSD 8 and has an old HP Laser jet printer and >>>> several desktops with FreeBSD that work with the printer. >>>> >>>> We want to print email received on the Dell on the network. The >>>> FreeBSD network is hardwired with cables and connectors. The Telcom >>>> link to internet is wireless and cable mixed. Any ideas how I can do >>>> this with the new Dell? Can I use converter connectors to the cable >>>> and connect the Dell to the switch that the other working units >>>> connect to now. >>>> >>> Is the "FreeBSD network" connected to the wired port of the cable box? >>> The wireless portion is probably shared with the wired. From the >>> notebook, ping the laser printer. Odds are good that will work. >>> >>> The step after that is adding a printer on the Windows system. The >>> trick there used to be telling it to use a "local port", then creating >>> a port for the IP address of the printer. I don't know if or how much >>> Microsoft might have changed that in later versions of Windows. Which >>> version do you have? >>> > > They didn't change anything. You can create two kind of ports (at least > two). Namely: you can create "raw" port, and give there IP address of the > printer. This printer has to listen to "jetdirect" port (9100) for this to > work. The other way is if printer listens to LPD ("spooler") port (port > number 515) (or better: print server, - I usually set up all printer to > only accept print jobs from print server - easier to manage especially if > something is wrong with some client). In this case, you need to enable two > services on Windows side (through "turning on features"): UNIX printing > related: "LPD Print Service" and "LPR Port Monitr". This teaches Windows > talk UNIX printing language, you then create local port of type LPD (and > put remote LPD server's IP there). I found this to be the most robust way > of having Windows printing to UNIX print queues. > > I hope, this helps. > > Valeri > > >>> >> Thanks Warren, I will look at this. >> >> Windows 10 >> >> My wife works with a mix of mac, windows at her job and her It guy has >> had a couple of issues that never were reserved mostly to do with age of >> printers. This we hoped to side step by the network. I cant figure out >> how you get the network hooked to the windows. I am looking to info on >> what ports could work on the box. >> >> Thanks >> >> >> ~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~ >> Supporting FreeBSD - UNIX Computer O/S >> email: noc@hdk5.net email: alplant.att.net >> ."All that's really worth doing is what we do for others" - Lewis Carrol >> >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> >> > > > ++++++++++++++++++++++++++++++++++++++++ > Valeri Galtsev > Sr System Administrator > Department of Astronomy and Astrophysics > Kavli Institute for Cosmological Physics > University of Chicago > Phone: 773-702-4247 > ++++++++++++++++++++++++++++++++++++++++ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > Thanks Valeri, ~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~ Supporting FreeBSD - UNIX Computer O/S email: noc@hdk5.net email: alplant.att.net ."All that's really worth doing is what we do for others" - Lewis Carrol From owner-freebsd-questions@freebsd.org Wed Jun 29 03:05:12 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D547BB86BF1 for ; Wed, 29 Jun 2016 03:05:12 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9979A219E for ; Wed, 29 Jun 2016 03:05:12 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u5T35A6S026178 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 28 Jun 2016 21:05:10 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u5T359Si026175; Tue, 28 Jun 2016 21:05:10 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 28 Jun 2016 21:05:09 -0600 (MDT) From: Warren Block To: Valeri Galtsev cc: al plant , "freebsd-questions@FreeBSD.org" Subject: Re: network hook up for Win 10 laptop on Freebsd In-Reply-To: <19599.128.135.52.6.1467150299.squirrel@cosmo.uchicago.edu> Message-ID: References: <5772D3C8.1050902@hdk5.net> <5772EB8A.5090908@hdk5.net> <19599.128.135.52.6.1467150299.squirrel@cosmo.uchicago.edu> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Tue, 28 Jun 2016 21:05:10 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 03:05:12 -0000 On Tue, 28 Jun 2016, Valeri Galtsev wrote: > They didn't change anything. You can create two kind of ports (at least > two). Namely: you can create "raw" port, and give there IP address of the > printer. This printer has to listen to "jetdirect" port (9100) for this to > work. The other way is if printer listens to LPD ("spooler") port (port > number 515) (or better: print server, - I usually set up all printer to > only accept print jobs from print server - easier to manage especially if > something is wrong with some client). In this case, you need to enable two > services on Windows side (through "turning on features"): UNIX printing > related: "LPD Print Service" and "LPR Port Monitr". This teaches Windows > talk UNIX printing language, you then create local port of type LPD (and > put remote LPD server's IP there). I found this to be the most robust way > of having Windows printing to UNIX print queues. I've used raw port 9100 printing to HP JetDirects many times. It's nice because it has no other dependencies. From owner-freebsd-questions@freebsd.org Wed Jun 29 04:26:39 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D989AB85BBC for ; Wed, 29 Jun 2016 04:26:39 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.70.90]) by mx1.freebsd.org (Postfix) with ESMTP id AC5EF2F76 for ; Wed, 29 Jun 2016 04:26:39 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 6D75FCB8CAA; Tue, 28 Jun 2016 23:26:38 -0500 (CDT) Received: from 76.193.17.2 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Tue, 28 Jun 2016 23:26:38 -0500 (CDT) Message-ID: <61537.76.193.17.2.1467174398.squirrel@cosmo.uchicago.edu> In-Reply-To: References: <5772D3C8.1050902@hdk5.net> <5772EB8A.5090908@hdk5.net> <19599.128.135.52.6.1467150299.squirrel@cosmo.uchicago.edu> Date: Tue, 28 Jun 2016 23:26:38 -0500 (CDT) Subject: Re: network hook up for Win 10 laptop on Freebsd From: "Valeri Galtsev" To: "Warren Block" Cc: "Valeri Galtsev" , "al plant" , "freebsd-questions@FreeBSD.org" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 04:26:39 -0000 On Tue, June 28, 2016 10:05 pm, Warren Block wrote: > On Tue, 28 Jun 2016, Valeri Galtsev wrote: > >> They didn't change anything. You can create two kind of ports (at least >> two). Namely: you can create "raw" port, and give there IP address of >> the >> printer. This printer has to listen to "jetdirect" port (9100) for this >> to >> work. The other way is if printer listens to LPD ("spooler") port (port >> number 515) (or better: print server, - I usually set up all printer to >> only accept print jobs from print server - easier to manage especially >> if >> something is wrong with some client). In this case, you need to enable >> two >> services on Windows side (through "turning on features"): UNIX printing >> related: "LPD Print Service" and "LPR Port Monitr". This teaches Windows >> talk UNIX printing language, you then create local port of type LPD (and >> put remote LPD server's IP there). I found this to be the most robust >> way >> of having Windows printing to UNIX print queues. > > I've used raw port 9100 printing to HP JetDirects many times. It's nice > because it has no other dependencies. > I agree if you have one to 5 or so clients. If you have 100+ clients, you better don't let them print directly to the printer, and instead make them print through print server. One client acts up (say, hits consistently bug in postscript implementation of the printer that knocks printer out; and keeps re-sending print job every time you power cycle printer) - you will see the world of difference. You can pinpoint what comes from which client if all goes through print server. UNIX machine as print server will provide you with much more than brainless embedded system printers have inside. But for few clients, as you said, the effort is not worth it. Valeri ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++ From owner-freebsd-questions@freebsd.org Wed Jun 29 04:51:32 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5EF5CB85FF9 for ; Wed, 29 Jun 2016 04:51:32 +0000 (UTC) (envelope-from cary@SDF.org) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.226]) by mx1.freebsd.org (Postfix) with ESMTP id 22FD228F0 for ; Wed, 29 Jun 2016 04:51:31 +0000 (UTC) (envelope-from cary@SDF.org) Received: from [67.49.10.59] ([67.49.10.59:26783] helo=bsdfull.Belkin) by cdptpa-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id D0/FC-28291-CC353775; Wed, 29 Jun 2016 04:51:24 +0000 Subject: Re: fail2ban + ipfw howto? To: freebsd-questions@freebsd.org References: <55e0f2c5-4b1e-03dd-c548-ad00df0648c4@shopzeus.com> From: Cary Message-ID: <577353B8.1000703@SDF.org> Date: Tue, 28 Jun 2016 21:51:04 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <55e0f2c5-4b1e-03dd-c548-ad00df0648c4@shopzeus.com> Content-Type: multipart/mixed; boundary="------------030309080405060302040706" X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 04:51:32 -0000 This is a multi-part message in MIME format. --------------030309080405060302040706 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nagy László Zsolt wrote: > Hello, > So can somebody suggest a good place to start with fail2ban + ipfw? > > Thanks, > > Laszlo > > Hi, Have you tried changing the value of "banaction" to "ipfw" ? -- cary@sdf.org SDF Public Access UNIX System - http://sdf.org ------------------------------ --------------030309080405060302040706 Content-Type: text/plain; charset=UTF-8; name="f2b-conf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="f2b-conf" KioqIC91c3IvbG9jYWwvZXRjL2ZhaWwyYmFuL2phaWwuY29uZglNb24gSnVuIDI3IDIwOjU1 OjIyIDIwMTYKLS0tIC91c3IvbG9jYWwvZXRjL2ZhaWwyYmFuL2phaWwubG9jYWwJVHVlIEp1 biAyOCAyMToyNTozNiAyMDE2CioqKioqKioqKioqKioqKgoqKiogMTU0LDE2NCAqKioqCiAg CiAgIyBEZWZhdWx0IGJhbm5pbmcgYWN0aW9uIChlLmcuIGlwdGFibGVzLCBpcHRhYmxlcy1u ZXcsCiAgIyBpcHRhYmxlcy1tdWx0aXBvcnQsIHNob3Jld2FsbCwgZXRjKSBJdCBpcyB1c2Vk IHRvIGRlZmluZQogICMgYWN0aW9uXyogdmFyaWFibGVzLiBDYW4gYmUgb3ZlcnJpZGRlbiBn bG9iYWxseSBvciBwZXIKICAjIHNlY3Rpb24gd2l0aGluIGphaWwubG9jYWwgZmlsZQohIGJh bmFjdGlvbiA9IGlwdGFibGVzLW11bHRpcG9ydAogIGJhbmFjdGlvbl9hbGxwb3J0cyA9IGlw dGFibGVzLWFsbHBvcnRzCiAgCiAgIyBUaGUgc2ltcGxlc3QgYWN0aW9uIHRvIHRha2U6IGJh biBvbmx5CiAgYWN0aW9uXyA9ICUoYmFuYWN0aW9uKXNbbmFtZT0lKF9fbmFtZV9fKXMsIGJh bnRpbWU9IiUoYmFudGltZSlzIiwgcG9ydD0iJShwb3J0KXMiLCBwcm90b2NvbD0iJShwcm90 b2NvbClzIiwgY2hhaW49IiUoY2hhaW4pcyJdCiAgCi0tLSAxNTQsMTY1IC0tLS0KICAKICAj IERlZmF1bHQgYmFubmluZyBhY3Rpb24gKGUuZy4gaXB0YWJsZXMsIGlwdGFibGVzLW5ldywK ICAjIGlwdGFibGVzLW11bHRpcG9ydCwgc2hvcmV3YWxsLCBldGMpIEl0IGlzIHVzZWQgdG8g ZGVmaW5lCiAgIyBhY3Rpb25fKiB2YXJpYWJsZXMuIENhbiBiZSBvdmVycmlkZGVuIGdsb2Jh bGx5IG9yIHBlcgogICMgc2VjdGlvbiB3aXRoaW4gamFpbC5sb2NhbCBmaWxlCiEgI2JhbmFj dGlvbiA9IGlwdGFibGVzLW11bHRpcG9ydAohIGJhbmFjdGlvbiA9IGlwZncKICBiYW5hY3Rp b25fYWxscG9ydHMgPSBpcHRhYmxlcy1hbGxwb3J0cwogIAogICMgVGhlIHNpbXBsZXN0IGFj dGlvbiB0byB0YWtlOiBiYW4gb25seQogIGFjdGlvbl8gPSAlKGJhbmFjdGlvbilzW25hbWU9 JShfX25hbWVfXylzLCBiYW50aW1lPSIlKGJhbnRpbWUpcyIsIHBvcnQ9IiUocG9ydClzIiwg cHJvdG9jb2w9IiUocHJvdG9jb2wpcyIsIGNoYWluPSIlKGNoYWluKXMiXQogIAoqKioqKioq KioqKioqKioKKioqIDIyMywyMzMgKioqKgogIFtzc2hkXQogIAogIHBvcnQgICAgPSBzc2gK ICBsb2dwYXRoID0gJShzc2hkX2xvZylzCiAgYmFja2VuZCA9ICUoc3NoZF9iYWNrZW5kKXMK ISAKICAKICBbc3NoZC1kZG9zXQogICMgVGhpcyBqYWlsIGNvcnJlc3BvbmRzIHRvIHRoZSBz dGFuZGFyZCBjb25maWd1cmF0aW9uIGluIEZhaWwyYmFuLgogICMgVGhlIG1haWwtd2hvaXMg YWN0aW9uIHNlbmQgYSBub3RpZmljYXRpb24gZS1tYWlsIHdpdGggYSB3aG9pcyByZXF1ZXN0 CiAgIyBpbiB0aGUgYm9keS4KLS0tIDIyNCwyMzQgLS0tLQogIFtzc2hkXQogIAogIHBvcnQg ICAgPSBzc2gKICBsb2dwYXRoID0gJShzc2hkX2xvZylzCiAgYmFja2VuZCA9ICUoc3NoZF9i YWNrZW5kKXMKISBlbmFibGVkID0geWVzCiAgCiAgW3NzaGQtZGRvc10KICAjIFRoaXMgamFp bCBjb3JyZXNwb25kcyB0byB0aGUgc3RhbmRhcmQgY29uZmlndXJhdGlvbiBpbiBGYWlsMmJh bi4KICAjIFRoZSBtYWlsLXdob2lzIGFjdGlvbiBzZW5kIGEgbm90aWZpY2F0aW9uIGUtbWFp bCB3aXRoIGEgd2hvaXMgcmVxdWVzdAogICMgaW4gdGhlIGJvZHkuCg== --------------030309080405060302040706-- From owner-freebsd-questions@freebsd.org Wed Jun 29 04:52:44 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9446B8414D for ; Wed, 29 Jun 2016 04:52:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 86F942A7A for ; Wed, 29 Jun 2016 04:52:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-197-174.dynamic.qsc.de [92.195.197.174]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id A5B113D241 for ; Wed, 29 Jun 2016 06:44:11 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u5T4iAeR003525 for ; Wed, 29 Jun 2016 06:44:10 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 29 Jun 2016 06:44:10 +0200 From: Polytropon To: "freebsd-questions@FreeBSD.org" Subject: Re: network hook up for Win 10 laptop on Freebsd Message-Id: <20160629064410.dcd5b8ef.freebsd@edvax.de> In-Reply-To: <61537.76.193.17.2.1467174398.squirrel@cosmo.uchicago.edu> References: <5772D3C8.1050902@hdk5.net> <5772EB8A.5090908@hdk5.net> <19599.128.135.52.6.1467150299.squirrel@cosmo.uchicago.edu> <61537.76.193.17.2.1467174398.squirrel@cosmo.uchicago.edu> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 04:52:45 -0000 On Tue, 28 Jun 2016 23:26:38 -0500 (CDT), Valeri Galtsev wrote: > > On Tue, June 28, 2016 10:05 pm, Warren Block wrote: > > On Tue, 28 Jun 2016, Valeri Galtsev wrote: > > > >> They didn't change anything. You can create two kind of ports (at least > >> two). Namely: you can create "raw" port, and give there IP address of > >> the > >> printer. This printer has to listen to "jetdirect" port (9100) for this > >> to > >> work. The other way is if printer listens to LPD ("spooler") port (port > >> number 515) (or better: print server, - I usually set up all printer to > >> only accept print jobs from print server - easier to manage especially > >> if > >> something is wrong with some client). In this case, you need to enable > >> two > >> services on Windows side (through "turning on features"): UNIX printing > >> related: "LPD Print Service" and "LPR Port Monitr". This teaches Windows > >> talk UNIX printing language, you then create local port of type LPD (and > >> put remote LPD server's IP there). I found this to be the most robust > >> way > >> of having Windows printing to UNIX print queues. > > > > I've used raw port 9100 printing to HP JetDirects many times. It's nice > > because it has no other dependencies. > > > > I agree if you have one to 5 or so clients. If you have 100+ clients, you > better don't let them print directly to the printer, and instead make them > print through print server. One client acts up (say, hits consistently bug > in postscript implementation of the printer that knocks printer out; and > keeps re-sending print job every time you power cycle printer) - you will > see the world of difference. You can pinpoint what comes from which client > if all goes through print server. UNIX machine as print server will > provide you with much more than brainless embedded system printers have > inside. But for few clients, as you said, the effort is not worth it. There is another advantage, in case it should matter: You can have all your clients submit PS (using a generic Postscript driver) and let the UNIX machine postprocess it into whatever format is needed for the printer. Most normal printers speak PS, PCL and PDF (or at least one of those), but if you're unlucky and your printer doesn't, and maybe even worse, MICROS~1 decided your printer became "too old" and there is no driver support anymore, this might be an extendable solution: You got a new printer? No client-side change is needed, just a different postprocessing filter on the server, which is O(1) instead of O(n). ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Wed Jun 29 09:46:17 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF5C3B869D8 for ; Wed, 29 Jun 2016 09:46:17 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from shopzeus.com (shopzeus.com [87.229.70.149]) by mx1.freebsd.org (Postfix) with ESMTP id B3AD82B6B for ; Wed, 29 Jun 2016 09:46:17 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from [127.127.127.127] (localhost [127.127.127.127]) (Authenticated sender: gandalf) by shopzeus.com (Postfix) with ESMTPSA id 9A031889C847 for ; Wed, 29 Jun 2016 05:46:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopzeus.com; s=shopzeus_com; t=1467193574; bh=IWFAeCRnSRUtP8EnFq+u302kYD+X2HlJ66A+W/DeEtQ=; h=Subject:To:References:From:Date:In-Reply-To:From; b=YVg2ZIFMcAoLb/cticfZmZqcZr7h7zD2eFQZe8t5mHrBA62REnurg/fR4X6CXsxJs 3rh1iAtZH75uozWUuHxCr/LEYpe7wCoUV0MI1nhmpm62q9mHjyHquU0qNlFzy5l4be tZM0qSV/QdSTG9wB+0Hr694Y0rbm0eC6+nzkzjUU1Irwta2oK4A/PU5GSn2kH2amo5 lWkcAsTzPSUY7+zIrc6qym7hBDS/2HqtUPpVIGmWj9/QNlNQFSXl6TW46L+ZOI3Ooo GyNHv3xBEzexacEjmmc2HgcZtBl7ol6GjbJ9c0HMGqcPjitxtI0UfyN4weLSddYU8c KoKk5f86KXo7g== Subject: Re: fail2ban + ipfw howto? To: freebsd-questions@freebsd.org References: <55e0f2c5-4b1e-03dd-c548-ad00df0648c4@shopzeus.com> <577353B8.1000703@SDF.org> From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Message-ID: <2b83e6ae-9fa9-ff9c-9efd-e9584c171a57@shopzeus.com> Date: Wed, 29 Jun 2016 11:46:14 +0200 MIME-Version: 1.0 In-Reply-To: <577353B8.1000703@SDF.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 09:46:18 -0000 > Have you tried changing the value of "banaction" to "ipfw" ? Not until now. :-) Thanks! From owner-freebsd-questions@freebsd.org Wed Jun 29 10:06:32 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2BC5DB86ED1 for ; Wed, 29 Jun 2016 10:06:32 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from shopzeus.com (shopzeus.com [87.229.70.149]) by mx1.freebsd.org (Postfix) with ESMTP id E62952622 for ; Wed, 29 Jun 2016 10:06:31 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from [127.127.127.127] (localhost [127.127.127.127]) (Authenticated sender: gandalf) by shopzeus.com (Postfix) with ESMTPSA id 867C0889CCEC for ; Wed, 29 Jun 2016 06:06:29 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopzeus.com; s=shopzeus_com; t=1467194789; bh=H3QB2ymlnJB38q79/ukjFRIiDO0YGWsr4lSbbntwzNM=; h=To:From:Subject:Date:From; b=TbRfF6DgvJv+EXHGImhk501CSyqKHfplfahESMnJ54G1RCPmOdY9/jmozeJv7HsR6 SVvnTfYwibuZJvBuKRtoLH/wiA/JvsZcJWQD+P3F+QsqFplZrXVTtHADAg3OENIF96 tflZD3vPeHtMARkTkWYeG/qYmaBNBQ8bmHuSIsZQnQqnZR1pc05kqApXEKXrxn/efl /eQ2mIdo6+Rclzq7X2uMOBRRnKLh92NGazrIy29fPTJUKETuiIGJSfRqNEVI9K3bzM gkEEYXuIbLwV4vNVH1+3bowJFmHuQqMclLG+n49Ny4fEEn20qrm6hPwdQLoXCUWEwL T3eUwagN0CWhg== To: freebsd-questions@freebsd.org From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Subject: local unbound SERVFAIL without visible reason Message-ID: <20f8f670-5e19-bad0-c59e-c06daa1b799a@shopzeus.com> Date: Wed, 29 Jun 2016 12:06:29 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 10:06:32 -0000 System: FreeBSD 10.2-RELEASE /etc/rc.conf contains: local_unbound_enable=3D"yes" My forwarders are: 80.249.168.18 and 87.229.108.201 Unbound seems to be running and listening: # sockstat -l4 | grep :53 unbound unbound 69063 5 udp4 127.0.0.1:53 *:* unbound unbound 69063 6 tcp4 127.0.0.1:53 *:* Ports are open to the world (but they should not be): # ipfw show | grep 2025 02025 12 750 allow udp from any to me dst-port 53 02025 0 0 allow tcp from any to me dst-port 53 Forwarder was setup correctly: # cat /var/unbound/forward.conf forward-zone: name: . forward-addr: 80.249.168.18 forward-addr: 87.229.108.201 But it is not working! # host google.com 127.0.0.1 Using domain server: Name: 127.0.0.1 Address: 127.0.0.1#53 Aliases: Host google.com not found: 2(SERVFAIL) It DOES work with any of the forwarders: # host google.com 80.249.168.18 Using domain server: Name: 80.249.168.18 Address: 80.249.168.18#53 Aliases: google.com has address 216.58.209.206 google.com has IPv6 address 2a00:1450:4001:810::200e google.com mail is handled by 30 alt2.aspmx.l.google.com. google.com mail is handled by 20 alt1.aspmx.l.google.com. google.com mail is handled by 40 alt3.aspmx.l.google.com. google.com mail is handled by 50 alt4.aspmx.l.google.com. google.com mail is handled by 10 aspmx.l.google.com. There is no error message in log/messages. How should I find the problem? From owner-freebsd-questions@freebsd.org Wed Jun 29 10:29:53 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD912B8451F for ; Wed, 29 Jun 2016 10:29:53 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: from box-hlm-03.niklaas.eu (box-hlm-03.niklaas.eu [IPv6:2a02:2770:15:0:21a:4aff:feaa:e902]) by mx1.freebsd.org (Postfix) with ESMTP id AC7782485 for ; Wed, 29 Jun 2016 10:29:53 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: by box-hlm-03.niklaas.eu (Postfix, from userid 1001) id 1834A385519; Wed, 29 Jun 2016 12:29:45 +0200 (CEST) Date: Wed, 29 Jun 2016 12:29:45 +0200 From: Niklaas Baudet von Gersdorff To: freebsd-questions@freebsd.org Subject: Reading PDFs on the command line (with misc/lesspipe) Message-ID: <20160629102945.GA24197@box-hlm-03.niklaas.eu> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 10:29:54 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Since I use mutt to read emails on my server, I would like to read PDFs on the command line. How can I do that? I installed misc/lesspipe and -- as far as I can judge -- configured it properly. $ echo $LESSOPEN |/usr/local/bin/lesspipe.sh %s However, if I run $ less some.pdf I still get an unreadable output of fancy symbols. Has anybody got lesspipe running properly? Or are there even better approaches for reading PDF on the command line? Niklaas --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXc6MTAAoJEG2fODeJrIU/q84P/2FNlGNN+PMyPYKLsMy3p6f/ f3k6AEiKhDrv+mKiHt3Jq1Cib2YSAlkMz81vxIHqQM6CAq5ZD3NXfbxSqnaj5q4M OYHLJj6aCS78kTZyTpFxaKR1PJYq8IzX9teBlSiGCssjlh+N4cA35WwhSem1t1k/ GEc27dWU+AW0hiFFmjN0fWnpW4Wms9QBQOhJK75MQGme8EXpqsAEouzhadksU5tg muf5SsnYOlAlfOdumjPaOcRvqlI+dA0b8yZ9ixkHzfoKVkhk+F4Y5EDveAr72HTP chsAYnWcW7ho3ZP0eJNMz914WYCsyOyK1E5BTsM+sHkURdjj0b8yf4hWAtXOfsOc 98rjmx8RBG6niY5YX/LRRArl4Y0DgDLs+GMT8ZIMM+gikGiCDj7Cclf+dUMPNGZE yHJqww76dtgq3HER+nLDG7XZo7od5O7iBYWqwsT06lYbJfdBZSbyEfeZiYw7Ebka DjHBcsILy20vSQGQDdynYVzwcQtKEWpn8SbZokZylxISR/WdhOWtACFlF1+tVLaN rVnpysoSemGijWnP8LH9dqvRJWb95Cq9zC2x6it3otuIRJw+mQPij88KOrVFw3fh dRx922zr24z4pgdUoQ9MXsKh6KeuabQ/9SNw4YWwnN2vLghRH6ogmFlvN88tdGo9 VYIN0u4RdgrZTjzk+wOp =+J9K -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT-- From owner-freebsd-questions@freebsd.org Wed Jun 29 11:29:04 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2299B85831 for ; Wed, 29 Jun 2016 11:29:04 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm7-vm8.bullet.mail.ir2.yahoo.com (nm7-vm8.bullet.mail.ir2.yahoo.com [212.82.96.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 16E632898 for ; Wed, 29 Jun 2016 11:29:03 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1467199598; bh=fO7tUE3FxS560Z2KEpx4S/RFS4Po+cwahlhMa7WBbKE=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject; b=aN0YoBj8hY2qcz4JwyuPYcE7SzZsti8ZCGWgRy1A+54rpb2rEycNUhg6I2jCiN7qMuUwCjv0cujQmHhLGLW6KdZr3FL/6Va8oJwsmx/mAI2NYeehfm23VcGD0kWFqSXLPt0m3IxCVQS3X1SQewaCaVLci6rG5MZoos3cKepcetxiyn3+aWVEAzyL3kcAwVRY/aiZbBQBG4hLXQVnkz9VfJexUsUnuhADRQMGNoZTInGRrDmbTCBc++4XYKn9yBEebqtCDsl1yc0vxmZJqnevbyRmz85SLO36ruiGe9vj8LsoLA8bAAfAhWRJkmrF5mzPhf/vtyznmt4odKygbnonAQ== Received: from [212.82.98.50] by nm7.bullet.mail.ir2.yahoo.com with NNFMP; 29 Jun 2016 11:26:38 -0000 Received: from [46.228.39.109] by tm3.bullet.mail.ir2.yahoo.com with NNFMP; 29 Jun 2016 11:26:38 -0000 Received: from [127.0.0.1] by smtp146.mail.ir2.yahoo.com with NNFMP; 29 Jun 2016 11:26:38 -0000 X-Yahoo-Newman-Id: 827290.13780.bm@smtp146.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: xVoadooVM1n5F0y35.HOxqa4ZNqI.m_AgJjlnwiQpjL3.qr 6gWI5F5TbUh_p1y9CU1YgLtj4LLADPAxx_m2lNzKfZcti4sBhfXeMMzrk816 r1XXoQcdt0FVu7MPMEFDLSEJSkYPJLP7Vh9vB6rNWD1d655XfMx2.a2bpTR_ ViKHE9jbaADvI0amICBE736FQuaYiCFB9RiQkgnAFpeEbV7BwZLDpJb3KZ9a mzU6NKRlRofhPhKQPsWgSi12HvM7GD34jtGtD8Fvxc4i.yJCrAIL.Ry1dWK3 96U3sj08WbKbu3MdhlW7UZZlP.hqGXajP0F1MB09ue2_Iz0yCI77EWen2Z0I yq5hLEFTNgWxhciqn1rVbWJ91Cuv5dyGnEAr3d4Ynwys5Lx_glr8C8R9rn5n oJQQkk_fZtSYdtN73N.a.WKn_zcaKh1wt1wncT_u51s.SR6WTOf6cSEGQKPi TrbWtcXkNKNDhQY4i4AgHi8WGkr01hjd6o8ygl8blzhOGwBoSVLwplX5aLAB A26dI46ULoLY7NpQhaKDPXqayAmYonnY0lU9JB.55kqKXfLRiYWQA5A-- X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- Date: Wed, 29 Jun 2016 13:26:33 +0200 From: Ralf Mardorf To: freebsd-questions@freebsd.org Subject: Re: Reading PDFs on the command line (with misc/lesspipe) Message-ID: <20160629132633.106636d7@archlinux.localdomain> In-Reply-To: <20160629102945.GA24197@box-hlm-03.niklaas.eu> References: <20160629102945.GA24197@box-hlm-03.niklaas.eu> X-Mailer: Claws Mail 3.13.2-1-geb08800 (GTK+ 2.24.30; x86_64-arch-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 11:29:04 -0000 On Wed, 29 Jun 2016 12:29:45 +0200, Niklaas Baudet von Gersdorff wrote: > $ less some.pdf http://www.manualpages.de/FreeBSD/FreeBSD-ports-9.0-RELEASE/man1/pdftotext.1.html http://unix.stackexchange.com/questions/41362/view-pdf-file-in-terminal I wonder how it is handled assumed "some.pdf" is just a scanned picture of text converted to pdf ;). From owner-freebsd-questions@freebsd.org Wed Jun 29 11:33:35 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E55F8B85AF6 for ; Wed, 29 Jun 2016 11:33:35 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 721142CFE for ; Wed, 29 Jun 2016 11:33:35 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id f126so177162748wma.1 for ; Wed, 29 Jun 2016 04:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=LnhULU4VGEnifHBEnKiolwK3+revompn+XXFz+548hU=; b=MCNe9i8Qcskb3AedDQL2MTMJQDg+ogJxixX0UtFSTZ7CDCqQUc1e7DGwpID7MGBazk +6a/Tzo4PzsIf57NJzCVrBMsxqTXX3ajMxDfbum6Wifbega2bRhpwtkULc/gH6s9kPxT Fm66QYRQtP0s8H9LCqHGLDvM+n6bPfxbOSpKoefiEVkoUsAUjpsifC4vhZKwvrAXS3Ie Q6CluBVLW6ZkmKBz8ZnoZM4eujErA8A2fNfZcqabjCFPuvjbIokl+0ogR0kVcVAPjelY pA5IAaYmBX4/GB8xdPqyqOpDJuurXxqFL497IHlRw2REPccMwTJxvKOS/33dNzudGGyq EH3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=LnhULU4VGEnifHBEnKiolwK3+revompn+XXFz+548hU=; b=V+GjK1eWdMInBao3b1P/Tv/NYwAawpD+Awi/vKj+pISVUc5fNrrHDpGnxiCJ0O+R9L ogligrH3/J1GJep418t7qD4WLfQIseaQPXS3NhfbiS5Ymp1YFbvInXVgOHHzlRYKNIui MEgLbN91EOf1Qnft4wlWHlMxnz6ztSlqKl74wrpP+IFg9AU4aWwinrieBNXMIrOwi1aI iU8CZpUxW5JfrSE4E0oyB1Z3nUBpZlCzCBlIntKTaELb5B/0eyc+w4a+BPLLF1BUEvoH tPTsQWguWP8va2giikWQ4mAKcw6n5rBearptTbaaoHNzPKtz4rsoC7A8KkbbRQYM8+zb LO5w== X-Gm-Message-State: ALyK8tLaL4Zg4MavCCw0ydV9NNun25gfW10shIkrxNMm/q5JTI/YfMZQC8FEDXS8/cQ3ZQ== X-Received: by 10.28.134.199 with SMTP id i190mr21973917wmd.26.1467200013321; Wed, 29 Jun 2016 04:33:33 -0700 (PDT) Received: from beagle.bcn.sia.es (132.red-79-154-242.dynamicip.rima-tde.net. [79.154.242.132]) by smtp.gmail.com with ESMTPSA id f196sm5210667wmg.15.2016.06.29.04.33.32 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Jun 2016 04:33:32 -0700 (PDT) Date: Wed, 29 Jun 2016 11:33:24 +0000 From: "C. L. Martinez" To: freebsd-questions@freebsd.org Subject: Re: Problems with pf rules for intercept squid proxy Message-ID: <20160629113324.GA10436@beagle.bcn.sia.es> References: <20160628130759.GA13226@beagle.bcn.sia.es> <2822287D-FE6F-4A4B-995A-639B696911DF@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <2822287D-FE6F-4A4B-995A-639B696911DF@FreeBSD.org> User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 11:33:36 -0000 On Tue 28.Jun'16 at 19:37:37 +0200, Kristof Provost wrote: >=20 >=20 > On 28 Jun 2016, at 15:07, C. L. Martinez wrote: > > I have some problems with my pf rules on a FreeBSD 10.3 host that acts > > as a squid intercept proxy. My actual pf rules are: > >=20 > > rdr pass on $vpnif proto tcp from $int_network to any port http -> lo0 > > port 5144 > > rdr pass on $vpnif proto tcp from $int_network to any port https -> lo0 > > port 5145 > >=20 > > At first stage it seems that these rules works, but don't. Traffic is > > redirected to squid, but squid denies all connections: > >=20 > > 1467111934.502 1 172.22.55.1 TCP_DENIED/403 4221 GET > > http://www.osnews.com/ - HIER_NONE/- text/html > >=20 > > Using same squid.conf's file under an OpenBSD test machine, squid works > > without problems. For this reason, I don't think there is some problem > > with my squid's config. The only difference between this OpenBSD host > > and FreeBSD are the pf rules. > >=20 > You may have a different squid version, or they may be patched differentl= y. > Your redirect rules are working, as demonstrated by the fact that squid g= ets > a request, and replies to it. >=20 > Note that pf does not change your HTTP payload, it only affects TCP. In > other words: if Squid sees the connection (and it does) it=E2=80=99s a Sq= uid > problem. >=20 > Also note that you=E2=80=99re redirecting on FreeBSD, but using divert-to= on > OpenBSD. > This may be triggering different behaviour from Squid. The man page says > that with divert-to: >=20 > The packets will not be modified, so getsockname(2) on the socket will > return > the original destination address of the packet. >=20 > That might be affecting an ACL in Squid. >=20 > Regards, > Kristof Thanks Kristof. I am using squid installed from pkg under a FreeBSD 10.3, f= ully updated: Squid Cache: Version 3.5.19 Service Name: squid configure options: '--with-default-user=3Dsquid' '--bindir=3D/usr/local/sb= in' '--sbindir=3D/usr/local/sbin' '--datadir=3D/usr/local/etc/squid' '--lib= execdir=3D/usr/local/libexec/squid' '--localstatedir=3D/var' '--sysconfdir= =3D/usr/local/etc/squid' '--with-logdir=3D/var/log/squid' '--with-pidfile= =3D/var/run/squid/squid.pid' '--with-swapdir=3D/var/squid/cache' '--without= -gnutls' '--enable-auth' '--enable-build-info' '--enable-loadable-modules' = '--enable-removal-policies=3Dlru heap' '--disable-epoll' '--disable-linux-n= etfilter' '--disable-linux-tproxy' '--disable-translation' '--disable-arch-= native' '--enable-eui' '--enable-cache-digests' '--enable-delay-pools' '--d= isable-ecap' '--disable-esi' '--enable-follow-x-forwarded-for' '--enable-ht= cp' '--enable-icap-client' '--enable-icmp' '--enable-ident-lookups' '--enab= le-ipv6' '--enable-kqueue' '--with-large-files' '--enable-http-violations' = '--without-nettle' '--enable-snmp' '--enable-ssl' '--with-openssl=3D/usr' '= LIBOPENSSL_CFLAGS=3D-I/usr/include' 'LIBOPENSSL_LIBS=3D-lcrypto -lssl' '--e= nable-ssl-crtd' '--disable-stacktraces' '--enable-ipf-transparent' '--enabl= e-ipfw-transparent' '--enable-pf-transparent' '--with-nat-devpf' '--enable-= forw-via-db' '--enable-wccp' '--enable-wccpv2' '--with-heimdal-krb5=3D/usr'= 'CFLAGS=3D-I/usr/include -O2 -pipe -fstack-protector -fno-strict-aliasing= ' 'LDFLAGS=3D-L/usr/lib -pthread -fstack-protector' 'LIBS=3D-lkrb5 -lgssa= pi -lgssapi_krb5 ' 'KRB5CONFIG=3D/usr/bin/krb5-config' '--enable-auth-basic= =3DDB SMB_LM MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam NIS' '--e= nable-auth-digest=3Dfile' '--enable-external-acl-helpers=3Dfile_userip time= _quota unix_group' '--enable-auth-negotiate=3Dkerberos wrapper' '--enable-a= uth-ntlm=3Dfake smb_lm' '--enable-storeio=3Daufs diskd rock ufs' '--enable-= disk-io=3DDiskThreads DiskDaemon AIO Blocking IpcIo Mmapped' '--enable-log-= daemon-helpers=3Dfile' '--enable-url-rewrite-helpers=3Dfake' '--enable-stor= eid-rewrite-helpers=3Dfile' '--prefix=3D/usr/local' '--mandir=3D/usr/local/= man' '--infodir=3D/usr/local/info/' '--build=3Damd64-portbld-freebsd10.1' '= build_alias=3Damd64-portbld-freebsd10.1' 'CC=3Dcc' 'CPPFLAGS=3D' 'CXX=3Dc++= ' 'CXXFLAGS=3D-O2 -pipe -fstack-protector -fno-strict-aliasing ' 'CPP=3Dcpp= ' --enable-ltdl-convenience According to this options, intercept is enabled ... Then, I don't understa= nd why it doesn't works ... --=20 Greetings, C. L. Martinez From owner-freebsd-questions@freebsd.org Wed Jun 29 11:36:58 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40FE3B85DF7 for ; Wed, 29 Jun 2016 11:36:58 +0000 (UTC) (envelope-from Ephaeton@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 973782004 for ; Wed, 29 Jun 2016 11:36:56 +0000 (UTC) (envelope-from Ephaeton@gmx.net) Received: from hephaistos.local ([93.135.200.150]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lzc5y-1bLwqt4Bj0-014jcL; Wed, 29 Jun 2016 13:36:46 +0200 Received: by hephaistos.local (Postfix, from userid 1000) id 120DF297CDF6; Wed, 29 Jun 2016 13:36:45 +0200 (CEST) Date: Wed, 29 Jun 2016 13:36:45 +0200 From: "Martin S. Weber" To: Ralf Mardorf Cc: freebsd-questions@freebsd.org Subject: Re: Reading PDFs on the command line (with misc/lesspipe) Message-ID: <20160629113644.GA2144@hephaistos.local> Mail-Followup-To: Ralf Mardorf , freebsd-questions@freebsd.org References: <20160629102945.GA24197@box-hlm-03.niklaas.eu> <20160629132633.106636d7@archlinux.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160629132633.106636d7@archlinux.localdomain> User-Agent: Mutt/1.6.1 (2016-04-27) X-Provags-ID: V03:K0:0GjBELjGGp9jVMvMXRqrA98Agbd+pSL0T2oI9z3m4K5bEa27vLn 14E2aOGgQfFXpPATIWJsuHgFxR8a19E+hPZAwCSnbZtCbx9iQsRxhTnwlVhEWJikiSfg1nm wpwrLOgBgif7PGp4pg0TkAGkHs5OBdYF1SgJVDsNe3r6K+YGiyGU6ZY3d/xGRKeZHqrtzqZ zfjovo7pJ3kNUyPSWhLXg== X-UI-Out-Filterresults: notjunk:1;V01:K0:D/zpIhF2sfQ=:ythh8cHhT0uV75Y96RsgWi plX4xC4xvffARWqghBumKov+0IvYGotQ2CE655WkevjRok/gLxgTuXnbKIA9v3pVcPBY6cPv8 A9EmKLhDXPRV7c9BRRuwdejGnftRYrD01gWZWS3I5QThHwR/NwZfMaq0lblg4Um9mq5rkCQHB cNHFL6yntgw6ZVT49p9xuKUzg2tmGBaZ9uWUifD+0RRKIGXtBC142DwCTT6FYMg6FxE0t1rQE cFXcuFFYpAmwdI+MtzvM31ROmPXSRckrO0OlQkuu5WgFqaedGHgyHWcnn0sQX/+0R/kCY9Ei3 B5S6pebUr77XTLcUtVEJH1RjEKFs1X0x2lxF1FyiqZ3u6AgsFp1sNa1qqSTRGML93jDKa5gBd rydJV52SHD+4CXxZ/eoWa3Smi0nBGAvLJ7xc0aTWDLPP5HMVV8533AbabUzg5t32xQtcgIwSJ fk4g+6treoecryAR+eKWqfkOSavffo0+p/x0+5kV6nfJY8POyHqnLJCFi0MhVEJC/yyvmp+5t Hyh3yZDuiAv6PXxDI9PIX+pNil/wne9lJEM/sDasLYCGQj7kxQ2cZMPuCSamNbPjK3aOB3M5w C0s09LoAu4oMLNcw3N1937FEUgQni67vcq8pE+D8s0oHL+biz4MWZf4TnNuNxEBPuLswZ0HhJ l7BNCps5OtUpn0oQqyiFfu2p4dGVsbEaO6u6+nDHyq9tyEH1s33GWOhLnKTMSMWsyh/dkH83t dCrTXHgrkLYkBv+UsKoY7tQfTFalYkOENqccI/l+kYvIBQ+6B5ttDq1AfzE= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 11:36:58 -0000 On 2016-06-29 13:26:33, Ralf Mardorf via freebsd-questions wrote: > On Wed, 29 Jun 2016 12:29:45 +0200, Niklaas Baudet von Gersdorff wrote: > > $ less some.pdf > > http://www.manualpages.de/FreeBSD/FreeBSD-ports-9.0-RELEASE/man1/pdftotext.1.html > http://unix.stackexchange.com/questions/41362/view-pdf-file-in-terminal > > I wonder how it is handled assumed "some.pdf" is just a scanned picture > of text converted to pdf ;). It (pdftotext in.pdf -) just outputs a blank line for image based PDFs. Regards, -Martin From owner-freebsd-questions@freebsd.org Wed Jun 29 11:40:41 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC550B85FE2 for ; Wed, 29 Jun 2016 11:40:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7577C22D3 for ; Wed, 29 Jun 2016 11:40:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-113-71.dynamic.qsc.de [92.195.113.71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 0884B27A1B; Wed, 29 Jun 2016 13:40:32 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u5TBeVqG002939; Wed, 29 Jun 2016 13:40:31 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 29 Jun 2016 13:40:31 +0200 From: Polytropon To: Niklaas Baudet von Gersdorff Cc: freebsd-questions@freebsd.org Subject: Re: Reading PDFs on the command line (with misc/lesspipe) Message-Id: <20160629134031.e8b13544.freebsd@edvax.de> In-Reply-To: <20160629102945.GA24197@box-hlm-03.niklaas.eu> References: <20160629102945.GA24197@box-hlm-03.niklaas.eu> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 11:40:41 -0000 On Wed, 29 Jun 2016 12:29:45 +0200, Niklaas Baudet von Gersdorff wrote: > Since I use mutt to read emails on my server, I would like to > read PDFs on the command line. How can I do that? I'm using the pdftotext command, part of the xpdf package. Its output can be redirected. > I installed misc/lesspipe and -- as far as I can judge -- > configured it properly. > > $ echo $LESSOPEN > |/usr/local/bin/lesspipe.sh %s > > However, if I run > > $ less some.pdf > > I still get an unreadable output of fancy symbols. Probably there is no processing step included? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Wed Jun 29 11:50:11 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D78B6B8640F for ; Wed, 29 Jun 2016 11:50:11 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8C7362B38 for ; Wed, 29 Jun 2016 11:50:11 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 47DA4D7888; Wed, 29 Jun 2016 18:41:14 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:received:received :received; s=selector1; t=1467200473; x=1469014874; bh=agoM1b72n WaLYpQDvj2OHyCiquIvGHynAoDETWlDox8=; b=JpA44DZrjXtdohZfiWlGVtALg T01tskpHM+qL5UWd/HdG1ik6L1Zzfx696StXehIfe8wrAU+ioIzaHm1qGcysg+5E CLdMlXgZrG9J5P51MkQ8s3ceW0J57BHLkmGqKMIrgR3ZDrj5iymOobULIaeD2nrk p5fI2Hq9+ODwv+tMLA= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YRf3L6Pp3bFr; Wed, 29 Jun 2016 18:41:13 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id ED6A2D7887; Wed, 29 Jun 2016 18:41:08 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id u5TBf8pA056701; Wed, 29 Jun 2016 18:41:08 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: Ralf Mardorf Cc: freebsd-questions@freebsd.org Subject: Re: Reading PDFs on the command line (with misc/lesspipe) In-Reply-To: <20160629132633.106636d7@archlinux.localdomain> (message from Ralf Mardorf via freebsd-questions on Wed, 29 Jun 2016 13:26:33 +0200) Date: Wed, 29 Jun 2016 18:41:08 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 11:50:11 -0000 Ralf Mardorf via freebsd-questions writes: > On Wed, 29 Jun 2016 12:29:45 +0200, Niklaas Baudet von Gersdorff wrote: >> $ less some.pdf > > http://www.manualpages.de/FreeBSD/FreeBSD-ports-9.0-RELEASE/man1/pdftotext.1.html > http://unix.stackexchange.com/questions/41362/view-pdf-file-in-terminal > > I wonder how it is handled assumed "some.pdf" is just a scanned picture > of text converted to pdf ;). /usr/local/libexec/xpdf/pdfimages is installed by default by package xpdf. Olivier > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jun 29 12:03:20 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 856D3B86FF6 for ; Wed, 29 Jun 2016 12:03:20 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E5282929 for ; Wed, 29 Jun 2016 12:03:20 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-113-71.dynamic.qsc.de [92.195.113.71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 6D6BB27A32; Wed, 29 Jun 2016 14:03:16 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u5TC3GdW003019; Wed, 29 Jun 2016 14:03:16 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 29 Jun 2016 14:03:16 +0200 From: Polytropon To: Olivier Cc: freebsd-questions@freebsd.org Subject: Re: Reading PDFs on the command line (with misc/lesspipe) Message-Id: <20160629140316.6b0e9b4a.freebsd@edvax.de> In-Reply-To: References: <20160629132633.106636d7@archlinux.localdomain> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 12:03:20 -0000 On Wed, 29 Jun 2016 18:41:08 +0700, Olivier wrote: > Ralf Mardorf via freebsd-questions > writes: > > > On Wed, 29 Jun 2016 12:29:45 +0200, Niklaas Baudet von Gersdorff wrote: > >> $ less some.pdf > > > > http://www.manualpages.de/FreeBSD/FreeBSD-ports-9.0-RELEASE/man1/pdftotext.1.html > > http://unix.stackexchange.com/questions/41362/view-pdf-file-in-terminal > > > > I wonder how it is handled assumed "some.pdf" is just a scanned picture > > of text converted to pdf ;). > > /usr/local/libexec/xpdf/pdfimages is installed by default by package > xpdf. And then use ImageMagick to convert it to ASCII art. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Wed Jun 29 12:16:10 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13303AC5429 for ; Wed, 29 Jun 2016 12:16:10 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 650B22ED6 for ; Wed, 29 Jun 2016 12:16:09 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.5.12]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0M73gb-1bWAQm0nfZ-00wq7p for ; Wed, 29 Jun 2016 14:16:01 +0200 Received: from bsch by becker.bs.l with local (Exim 4.87 (FreeBSD)) (envelope-from ) id 1bIEPQ-000C9T-9g for freebsd-questions@freebsd.org; Wed, 29 Jun 2016 14:16:00 +0200 Date: Wed, 29 Jun 2016 14:16:00 +0200 From: Bertram Scharpf To: freebsd-questions@freebsd.org Subject: Re: Reading PDFs on the command line (with misc/lesspipe) Message-ID: <20160629121600.GA46483@becker.bs.l> Mail-Followup-To: freebsd-questions@freebsd.org References: <20160629102945.GA24197@box-hlm-03.niklaas.eu> <20160629132633.106636d7@archlinux.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160629132633.106636d7@archlinux.localdomain> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: Bertram Scharpf X-Provags-ID: V03:K0:+KjdmcTRjro5oBS9RsoZTuesl5Wj7zkwcztjCIhdhaqlufBMfY2 suUpMMtlk1v5tHy1oT3No7vdTheLZ0kxHTJK0lvxilToTwjZxxn/yMoJlkI9Eii48YeB7Yl Nw5Zzzm5N1Rv2onxo93eGwI2oQMuJNNpy5PYVvfNsgCd3n0aFykx1NKbZdMeXVv8aKP1ZLZ sWQ0RySCsWVFN2Vish7cg== X-UI-Out-Filterresults: notjunk:1;V01:K0:LskeAsLuLk8=:Qqc7qOrXxtUFI4sQ1OZ4TJ 5syaYaHG2tUcqYxvBBc36vYZMY7VJyQJMgigWLWfyeSF2N4p25Q1I1dg4BKBptlkhRBIxKS7E UV4wqGJsahxsXanbezjK0HK/sx3rpSE4YR0b/HAf6/Nt/s/KjoVsuyYm+rrDx+oIHHAVfhJkE 4cYgqzHk6lqOPqFV606V9hNXae5/AffFaNNHzwNWGTgT76/DhE8NPR2xOWjtvMmayVAZR7nJv UNRfwer/MK6wW88T8//vhLm93+enWj+86nwHqVySo24GLZojGaWMbLFsxNryS1ajm/aR7qiOT /c19B3jQX12BWc+23YScgnCNry8ZsfCkTcPECoDmKXhEFqKlbUH1ZfDeagO3cz6bDj0TQ4Oy0 Hbh+Zf608cSbqSsjN0DiQkdgaXfXwea5lX0+mzJ4XD5vEo4EyI7MxjavcNOBtB1iOdx2nfkrm OBvIYsjjBF+7olAmXYjXe4m865HbSNnT8BcSwLud7tIpCaT4DxLFH5mYaUrwijsQYUJQJaDrc VWftrBtpyGITMr70wh91a3yzVuyHIsGuT9sKsceA0P9oD21eoC8wl5eZ139DNMhimV9fHCM3n 6HYmJAa6PjpbOUZoZDm0MMVfY+oAFzT5YdZXxMYqMdnY+N8TSRDFCNl7V4P+cvPp+q7+yeyox Qf5850hN96zeS9djsgd8XQaM5mt2cVDl96MCzsgvad2V2h5c/i+KL97VtogjVw/zsj1Y= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 12:16:10 -0000 On Wednesday, 29. Jun 2016, 13:26:33 +0200, Ralf Mardorf via freebsd-questions wrote: > > Since I use mutt to read emails on my server, I would like to > > read PDFs on the command line. How can I do that? > On Wed, 29 Jun 2016 12:29:45 +0200, Niklaas Baudet von Gersdorff wrote: > > $ less some.pdf > > I wonder how it is handled assumed "some.pdf" is just a scanned picture > of text converted to pdf ;). I do the following (from the shell, not yet from mutt): - Forward X to the desktop machine: xto() { local h l d h=${1:-desktop} l=`hostname -f` d=":0" ssh $h " export DISPLAY=$d xhost $l 1>&2 xauth extract - $d " | xauth -f ~/.Xauthority merge - export DISPLAY=$h$d } - Run xpdf. Of course, this requires xpdf and a lot of X client stuff to be installed on the (anything but X) server. You could also try to scp the PDF to the desktop and run xpdf there via ssh. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From owner-freebsd-questions@freebsd.org Wed Jun 29 12:27:40 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD471AC5D4D for ; Wed, 29 Jun 2016 12:27:40 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm33-vm3.bullet.mail.ir2.yahoo.com (nm33-vm3.bullet.mail.ir2.yahoo.com [212.82.97.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 333142C9C for ; Wed, 29 Jun 2016 12:27:39 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1467203050; bh=Dm5fezClS/y51FEPgZMjA3ES+lBsL5+Qct9Hj+HTVuE=; h=Subject:From:To:Date:In-Reply-To:References:From:Subject; b=PjMi5EQGZee3t5LFyD7xT6G+7Hl5u5lunhq2gQWCWwCFw9rz5D2VMuPNGsBr6s8R+72ZLOEpQL/S+1YOb2KpxD7+6e9C/mXGRVZ/B93qdwwBWEyHdaLuptWICYk0bT4MXd8ESk+apjbZKJy3/9919xyT7aURSaUVcWlOgK0PWEcO+fWHnOX4/trZGqFaWgxVzapeyeFmHYIoMW5ef3FEakZ1Vybro6VUYg92vDkL566aI1ki6vX8tUV9QKk2mN2GiQ9CCgvmeXETcqiUivwDijXUzopvib47szQ0Od2z1ancHEZBpyf7pWvaKapeUA37aStNPzuXSE7WYMYMqBUk7Q== Received: from [212.82.98.61] by nm33.bullet.mail.ir2.yahoo.com with NNFMP; 29 Jun 2016 12:24:10 -0000 Received: from [46.228.39.76] by tm14.bullet.mail.ir2.yahoo.com with NNFMP; 29 Jun 2016 12:24:10 -0000 Received: from [127.0.0.1] by smtp113.mail.ir2.yahoo.com with NNFMP; 29 Jun 2016 12:24:10 -0000 X-Yahoo-Newman-Id: 334975.32829.bm@smtp113.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: gYKZkJgVM1lLlsvZ1tNyDJV8G5Pmr_47ZSONLmC0_qBbufI Z8tZMXKpp9zf9QxVv.AllVFz.ZLyBntUSbldPtmHEES6Oc2s1KZA3nY4_qZC 2658ANxOCSS3qX6Xld8kxKXMqKsLWqZSW3MfAT1WKBSHOERR.hyhNFmYJ7lZ g0Z7XvWG_uoCTp8qGEHAcqn3mhnLZzgz.ktc5tJM3nK_mawdB.qIDJ8hGyf1 btFLFkbWTP_RdXU6XZULtt8gNgFwhDb36rLl6L92Ieq.CMNn5nd4Aujcv.Y2 YPavVkGgRhQV5qU1x_DVZ6UiGLCI58cx25L5EfJlX6d4LOtUZRiyxnQ5chfg A4uawlKXb5uAMmzexRDesXBTyoaFc0t_z0VM0QK_qEFs_XQ6QjtPHCoxdLqa dqmuhF5ltxe9qrJHGhmCNv2uMzgrn9HuuUGP1kZxmquL4reguvCahKQtrwZJ B2ldiXQhR4mVq94XGBXqlbH1oHOoFsDVnRCU3rfpEupcJi6gJhLOD3rQlTHJ vgZPsCPpTX92ZF7Y_fWahyVnbnMZfLwPM3oN46ZNmHuRUzQlwB6C2I.E- X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- Message-ID: <1467203049.832.7.camel@rocketmail.com> Subject: Re: Reading PDFs on the command line (with misc/lesspipe) From: Ralf Mardorf To: freebsd-questions@freebsd.org Date: Wed, 29 Jun 2016 14:24:09 +0200 In-Reply-To: <20160629140316.6b0e9b4a.freebsd@edvax.de> References: <20160629132633.106636d7@archlinux.localdomain> <20160629140316.6b0e9b4a.freebsd@edvax.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.4 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 12:27:40 -0000 On Wed, 2016-06-29 at 14:03 +0200, Polytropon wrote: > On Wed, 29 Jun 2016 18:41:08 +0700, Olivier wrote: > > Ralf Mardorf via freebsd-questions writes: > > > I wonder how it is handled assumed "some.pdf" is just a scanned > > > picture of text converted to pdf ;). > > > > /usr/local/libexec/xpdf/pdfimages is installed by default by package > > xpdf. > > And then use ImageMagick to convert it to ASCII art. :-) :D From owner-freebsd-questions@freebsd.org Wed Jun 29 12:39:49 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 29482B73255 for ; Wed, 29 Jun 2016 12:39:49 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A376124B5 for ; Wed, 29 Jun 2016 12:39:48 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id r190so33172229wmr.0 for ; Wed, 29 Jun 2016 05:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4uLxKWDE5PIqLazu1B/dB5rNvyc67opki9D4JIxTRvA=; b=DxevvjkN/iFaeu7b2Omm5wc7A50sa9pFdGxBw1MORGsSQFR+gMzMiTH7ptc1QdCsbY fT/YBYNcZcv3pyPRc7+n4bkPvEVim/swRhwQrkSLXf8Am4P9LQGKBkzVgskLoSUHsVjz L/fFbX68h0Ft87cf/AGy/qHA8x27ZAiIm/jF0dxA8X2rQNnVSr8QhmZMvEVdWRuaX9wd HTP2fUG4Z76/w21ur/HbFJPFQP/9sOQ2L43WLfMO77nfwI0cFLZHwk2Abfrk5AIoOPBV srFYqa+wl3psJ0RU1yEo58/lyBEJvo1jSQj2qNH1cbEyTsRDii3lgaiLQqi/ekfwDjTe zP5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4uLxKWDE5PIqLazu1B/dB5rNvyc67opki9D4JIxTRvA=; b=MW5hsHIrN24K64GCUe/fYWMJCNnByyNXygvM5zA/rk9/uJAaCCxlkhasgYTP9gPYdi SJkGVvLVUTvxaIonVLneJxIIJX2dmyaCSM/1efw2VF6USIvrKE96PY21uUsYvwmXreTk q6huix2VmTd9pR71MlcRoPEmbQoeZC2HHp1K07Xn6tR7vUN0gnKB0GiYzhXC0t3eoCq2 eHL1luJy0QgCh+OwgaSNRP+Bx/OVurcaRYBliNnJDnJlQX/dLgPpTDUuUCE+GP8HjHXj 15yzp8tsKGnUt2BVAqDYDJfqAAOjw2Tw5o5dSCYlHNbSpS8fJLC58FKhiXJ9xmfmCogc Dszg== X-Gm-Message-State: ALyK8tJeDrOapCQwcdsJWdfupislgGaU0UN3fRUlthGicwUG2NOczGlxe8oCGbH8MB3VPOhRSpfNqBkB/3Iziw== X-Received: by 10.28.27.212 with SMTP id b203mr8780821wmb.19.1467203986662; Wed, 29 Jun 2016 05:39:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.88.206 with HTTP; Wed, 29 Jun 2016 05:39:46 -0700 (PDT) In-Reply-To: <20160629113324.GA10436@beagle.bcn.sia.es> References: <20160628130759.GA13226@beagle.bcn.sia.es> <2822287D-FE6F-4A4B-995A-639B696911DF@FreeBSD.org> <20160629113324.GA10436@beagle.bcn.sia.es> From: krad Date: Wed, 29 Jun 2016 13:39:46 +0100 Message-ID: Subject: Re: Problems with pf rules for intercept squid proxy To: "C. L. Martinez" Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 12:39:49 -0000 have you got these lines in your /etc/devfs.conf file own pf root:squid perm pf 0770 you also need lines like this in the squid.conf http_port 192.168.1.1:3128 intercept On 29 June 2016 at 12:33, C. L. Martinez wrote: > On Tue 28.Jun'16 at 19:37:37 +0200, Kristof Provost wrote: > > > > > > On 28 Jun 2016, at 15:07, C. L. Martinez wrote: > > > I have some problems with my pf rules on a FreeBSD 10.3 host that ac= ts > > > as a squid intercept proxy. My actual pf rules are: > > > > > > rdr pass on $vpnif proto tcp from $int_network to any port http -> lo= 0 > > > port 5144 > > > rdr pass on $vpnif proto tcp from $int_network to any port https -> l= o0 > > > port 5145 > > > > > > At first stage it seems that these rules works, but don't. Traffic i= s > > > redirected to squid, but squid denies all connections: > > > > > > 1467111934.502 1 172.22.55.1 TCP_DENIED/403 4221 GET > > > http://www.osnews.com/ - HIER_NONE/- text/html > > > > > > Using same squid.conf's file under an OpenBSD test machine, squid > works > > > without problems. For this reason, I don't think there is some proble= m > > > with my squid's config. The only difference between this OpenBSD host > > > and FreeBSD are the pf rules. > > > > > You may have a different squid version, or they may be patched > differently. > > Your redirect rules are working, as demonstrated by the fact that squid > gets > > a request, and replies to it. > > > > Note that pf does not change your HTTP payload, it only affects TCP. In > > other words: if Squid sees the connection (and it does) it=E2=80=99s a = Squid > > problem. > > > > Also note that you=E2=80=99re redirecting on FreeBSD, but using divert-= to on > > OpenBSD. > > This may be triggering different behaviour from Squid. The man page say= s > > that with divert-to: > > > > The packets will not be modified, so getsockname(2) on the socket > will > > return > > the original destination address of the packet. > > > > That might be affecting an ACL in Squid. > > > > Regards, > > Kristof > > Thanks Kristof. I am using squid installed from pkg under a FreeBSD 10.3, > fully updated: > > Squid Cache: Version 3.5.19 > Service Name: squid > configure options: '--with-default-user=3Dsquid' '--bindir=3D/usr/local/= sbin' > '--sbindir=3D/usr/local/sbin' '--datadir=3D/usr/local/etc/squid' > '--libexecdir=3D/usr/local/libexec/squid' '--localstatedir=3D/var' > '--sysconfdir=3D/usr/local/etc/squid' '--with-logdir=3D/var/log/squid' > '--with-pidfile=3D/var/run/squid/squid.pid' '--with-swapdir=3D/var/squid/= cache' > '--without-gnutls' '--enable-auth' '--enable-build-info' > '--enable-loadable-modules' '--enable-removal-policies=3Dlru heap' > '--disable-epoll' '--disable-linux-netfilter' '--disable-linux-tproxy' > '--disable-translation' '--disable-arch-native' '--enable-eui' > '--enable-cache-digests' '--enable-delay-pools' '--disable-ecap' > '--disable-esi' '--enable-follow-x-forwarded-for' '--enable-htcp' > '--enable-icap-client' '--enable-icmp' '--enable-ident-lookups' > '--enable-ipv6' '--enable-kqueue' '--with-large-files' > '--enable-http-violations' '--without-nettle' '--enable-snmp' > '--enable-ssl' '--with-openssl=3D/usr' 'LIBOPENSSL_CFLAGS=3D-I/usr/includ= e' > 'LIBOPENSSL_LIBS=3D-lcrypto -lssl' '--enable-ssl-crtd' > '--disable-stacktraces' '--enable-ipf-transparent' > '--enable-ipfw-transparent' '--enable-pf-transparent' '--with-nat-devpf' > '--enable-forw-via-db' '--enable-wccp' '--enable-wccpv2' > '--with-heimdal-krb5=3D/usr' 'CFLAGS=3D-I/usr/include -O2 -pipe > -fstack-protector -fno-strict-aliasing' 'LDFLAGS=3D-L/usr/lib -pthread > -fstack-protector' 'LIBS=3D-lkrb5 -lgssapi -lgssapi_krb5 ' > 'KRB5CONFIG=3D/usr/bin/krb5-config' '--enable-auth-basic=3DDB SMB_LM > MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam NIS' > '--enable-auth-digest=3Dfile' '--enable-external-acl-helpers=3Dfile_useri= p > time_quota unix_group' '--enable-auth-negotiate=3Dkerberos wrapper' > '--enable-auth-ntlm=3Dfake smb_lm' '--enable-storeio=3Daufs diskd rock uf= s' > '--enable-disk-io=3DDiskThreads DiskDaemon AIO Blocking IpcIo Mmapped' > '--enable-log-daemon-helpers=3Dfile' '--enable-url-rewrite-helpers=3Dfake= ' > '--enable-storeid-rewrite-helpers=3Dfile' '--prefix=3D/usr/local' > '--mandir=3D/usr/local/man' '--infodir=3D/usr/local/info/' > '--build=3Damd64-portbld-freebsd10.1' 'build_alias=3Damd64-portbld-freebs= d10.1' > 'CC=3Dcc' 'CPPFLAGS=3D' 'CXX=3Dc++' 'CXXFLAGS=3D-O2 -pipe -fstack-protect= or > -fno-strict-aliasing ' 'CPP=3Dcpp' --enable-ltdl-convenience > > According to this options, intercept is enabled ... Then, I don't > understand why it doesn't works ... > > -- > Greetings, > C. L. Martinez > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jun 29 13:21:09 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E23FB81470 for ; Wed, 29 Jun 2016 13:21:09 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFF922CB5 for ; Wed, 29 Jun 2016 13:21:08 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id r190so33402716wmr.0 for ; Wed, 29 Jun 2016 06:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=hATZfiBMGnHNc6nzjtPTPCQaDkaz/bKK8JkOEfNRfS4=; b=ILc8I9KrTRKBFMWNRMy87A8epOyWuMH/FNOSUJSt2a7vAzC9EsFBAX+bqJoD7Dacqy N9MByXXUe/xm82QfiAlJCg6nqmeqXFkClL6IP4EVCFkRYtGKs+3CcFas+PwvHELizKw/ lch2DRKWGz0EsgyFlieqEY5CFBl0lp6ugRufbXOttfJmSx7lKuQ+YzGuecerqPlb6n1r zeXxIgRxt/KleiUsfFGVuQs+A1bR06VXErmNbGqDDo8Wc4N7lxV9G65+xXgcQWY+OcaB dZtaIh4gEE9Hs/IKokLAPDYWb16Z6BjEHkDdektp5EV50IQZvTM4DNVqZTO89CeQacrF WpQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=hATZfiBMGnHNc6nzjtPTPCQaDkaz/bKK8JkOEfNRfS4=; b=IJUv7A4A99u1GMQHQY3gZT1STsgI8CK9zWI1cGS23d+ETtdwlSjjkvniTGjmvF0B2Z SvQHDfwcvlOYJOSIBw59Pib9I71rSE3wmh7zJbcaWgCKpgE8OuYk23ycF04o2sqa/CPp pFqP2yvutvXfm+T3IbwUj1EatAqGY9i/514cBKvWzlpDIQdsfSe9gBWakQfHVpSl1Och bdT9ZPJ8X19JubFziiZpJypt+RvECHC6BHxhUGju+AE9pXnAJQ5spl9i0fb62yFN7J5U ZRMrsjQx0EucIAW36LYAiOjMcSPA0ZgKoS9VlJwQ5y469fNAIpdkCN3b8A1I+YjGBIiR dfoQ== X-Gm-Message-State: ALyK8tLUxQ6qdf6vSJxY/2rInt9SeQX9Z8oghWC1pKVZMDnl4tKSnFTpiNMharI/8pfsIQ== X-Received: by 10.194.54.102 with SMTP id i6mr8002812wjp.91.1467206467334; Wed, 29 Jun 2016 06:21:07 -0700 (PDT) Received: from beagle.bcn.sia.es (132.red-79-154-242.dynamicip.rima-tde.net. [79.154.242.132]) by smtp.gmail.com with ESMTPSA id zb9sm3706273wjc.34.2016.06.29.06.21.05 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Jun 2016 06:21:06 -0700 (PDT) Date: Wed, 29 Jun 2016 13:20:58 +0000 From: "C. L. Martinez" To: freebsd-questions@freebsd.org Subject: Re: Problems with pf rules for intercept squid proxy Message-ID: <20160629131951.GA12552@beagle.bcn.sia.es> References: <20160628130759.GA13226@beagle.bcn.sia.es> <2822287D-FE6F-4A4B-995A-639B696911DF@FreeBSD.org> <20160629113324.GA10436@beagle.bcn.sia.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 13:21:09 -0000 Yep, is it not too dangerous to assign 0770 to /dev/pf?? Anyway, I have tried, but with same error: traffic is denied by squid ... On Wed 29.Jun'16 at 13:39:46 +0100, krad wrote: > have you got these lines in your /etc/devfs.conf file > > > own pf root:squid > perm pf 0770 > > you also need lines like this in the squid.conf > > http_port 192.168.1.1:3128 intercept > > > > On 29 June 2016 at 12:33, C. L. Martinez wrote: > > > On Tue 28.Jun'16 at 19:37:37 +0200, Kristof Provost wrote: > > > > > > > > > On 28 Jun 2016, at 15:07, C. L. Martinez wrote: > > > > I have some problems with my pf rules on a FreeBSD 10.3 host that acts > > > > as a squid intercept proxy. My actual pf rules are: > > > > > > > > rdr pass on $vpnif proto tcp from $int_network to any port http -> lo0 > > > > port 5144 > > > > rdr pass on $vpnif proto tcp from $int_network to any port https -> lo0 > > > > port 5145 > > > > > > > > At first stage it seems that these rules works, but don't. Traffic is > > > > redirected to squid, but squid denies all connections: > > > > > > > > 1467111934.502 1 172.22.55.1 TCP_DENIED/403 4221 GET > > > > http://www.osnews.com/ - HIER_NONE/- text/html > > > > > > > > Using same squid.conf's file under an OpenBSD test machine, squid > > works > > > > without problems. For this reason, I don't think there is some problem > > > > with my squid's config. The only difference between this OpenBSD host > > > > and FreeBSD are the pf rules. > > > > > > > You may have a different squid version, or they may be patched > > differently. > > > Your redirect rules are working, as demonstrated by the fact that squid > > gets > > > a request, and replies to it. > > > > > > Note that pf does not change your HTTP payload, it only affects TCP. In > > > other words: if Squid sees the connection (and it does) it’s a Squid > > > problem. > > > > > > Also note that you’re redirecting on FreeBSD, but using divert-to on > > > OpenBSD. > > > This may be triggering different behaviour from Squid. The man page says > > > that with divert-to: > > > > > > The packets will not be modified, so getsockname(2) on the socket > > will > > > return > > > the original destination address of the packet. > > > > > > That might be affecting an ACL in Squid. > > > > > > Regards, > > > Kristof > > > > Thanks Kristof. I am using squid installed from pkg under a FreeBSD 10.3, > > fully updated: > > > > Squid Cache: Version 3.5.19 > > Service Name: squid > > configure options: '--with-default-user=squid' '--bindir=/usr/local/sbin' > > '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' > > '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/var' > > '--sysconfdir=/usr/local/etc/squid' '--with-logdir=/var/log/squid' > > '--with-pidfile=/var/run/squid/squid.pid' '--with-swapdir=/var/squid/cache' > > '--without-gnutls' '--enable-auth' '--enable-build-info' > > '--enable-loadable-modules' '--enable-removal-policies=lru heap' > > '--disable-epoll' '--disable-linux-netfilter' '--disable-linux-tproxy' > > '--disable-translation' '--disable-arch-native' '--enable-eui' > > '--enable-cache-digests' '--enable-delay-pools' '--disable-ecap' > > '--disable-esi' '--enable-follow-x-forwarded-for' '--enable-htcp' > > '--enable-icap-client' '--enable-icmp' '--enable-ident-lookups' > > '--enable-ipv6' '--enable-kqueue' '--with-large-files' > > '--enable-http-violations' '--without-nettle' '--enable-snmp' > > '--enable-ssl' '--with-openssl=/usr' 'LIBOPENSSL_CFLAGS=-I/usr/include' > > 'LIBOPENSSL_LIBS=-lcrypto -lssl' '--enable-ssl-crtd' > > '--disable-stacktraces' '--enable-ipf-transparent' > > '--enable-ipfw-transparent' '--enable-pf-transparent' '--with-nat-devpf' > > '--enable-forw-via-db' '--enable-wccp' '--enable-wccpv2' > > '--with-heimdal-krb5=/usr' 'CFLAGS=-I/usr/include -O2 -pipe > > -fstack-protector -fno-strict-aliasing' 'LDFLAGS=-L/usr/lib -pthread > > -fstack-protector' 'LIBS=-lkrb5 -lgssapi -lgssapi_krb5 ' > > 'KRB5CONFIG=/usr/bin/krb5-config' '--enable-auth-basic=DB SMB_LM > > MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam NIS' > > '--enable-auth-digest=file' '--enable-external-acl-helpers=file_userip > > time_quota unix_group' '--enable-auth-negotiate=kerberos wrapper' > > '--enable-auth-ntlm=fake smb_lm' '--enable-storeio=aufs diskd rock ufs' > > '--enable-disk-io=DiskThreads DiskDaemon AIO Blocking IpcIo Mmapped' > > '--enable-log-daemon-helpers=file' '--enable-url-rewrite-helpers=fake' > > '--enable-storeid-rewrite-helpers=file' '--prefix=/usr/local' > > '--mandir=/usr/local/man' '--infodir=/usr/local/info/' > > '--build=amd64-portbld-freebsd10.1' 'build_alias=amd64-portbld-freebsd10.1' > > 'CC=cc' 'CPPFLAGS=' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -fstack-protector > > -fno-strict-aliasing ' 'CPP=cpp' --enable-ltdl-convenience > > > > According to this options, intercept is enabled ... Then, I don't > > understand why it doesn't works ... > > > > -- > > Greetings, > > C. L. Martinez > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > > freebsd-questions-unsubscribe@freebsd.org" > > -- Greetings, C. L. Martinez From owner-freebsd-questions@freebsd.org Wed Jun 29 13:32:11 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E69FB817BC for ; Wed, 29 Jun 2016 13:32:11 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B95BB250E for ; Wed, 29 Jun 2016 13:32:10 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id f126so181637633wma.1 for ; Wed, 29 Jun 2016 06:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/QtmdP3tUKVxS77nbSCirT4uTMzpirj0TWMggm+ndWM=; b=iRvlZo/h5UQ2nchJEPQT/haOZ4YcA7g9ECaiBt+n4fBpegokBVp84ZwH8VCZacm8q0 ML9SFA5n/XRNe244a4nVDvRijDQTasmnCWq+kY19PyssfkD//0W4y87E6bL+Y+T1aVUz XUgNmI8uRwlmTBVkwds6wkddvlrTWm5DnUalttJ2K6+lzh6NyoFS66Prbykcm3jgwHiX 6H27cksBTHHYPXD03nccNYJ1bNz9scnJqkCk3OrOOVIPe602UwGAg6DCiY///L9CKoFu aNFg2LJya1pY7CUpLc+xuLPSnOhi2oS3C5/05R7vaAek4fZSi/r8zjOWLKBaPtEOiPJ6 oIJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/QtmdP3tUKVxS77nbSCirT4uTMzpirj0TWMggm+ndWM=; b=Mf52zW4Ry+pE8GrH1xjmY7gkfxgZ1tq6fZbpK0TRuhylVObD+TSNgUZtstfjT8fRkP 7TtZtvgvYx/k6/Q1FHx3BSirjBdyvB/0R7+AnnHFwt8NSno/OQjGhVXZmbXqqlKomP4X UvbIG4J6mnoIWl7At3HrpJijJX89B6ccLyhE/Fv/7R2vDKrxKV8SFf+uiM2+hXtG0RH4 lGJIiFmxnnMWIahtVmopHGgwasv8dCZp9BE8Fo3fil1TFpsN8M7YwEf1OQsX7e8XotBT gPZmegU3JvXVfwx/lzvDIPFpBYN2VtcBja1301u3X+jHjXaGDJ3SehWfGCtw0ck8QF1q /pSQ== X-Gm-Message-State: ALyK8tLte+JdzgPPW5WiGgECGyEo9+EM0mdzY3R40N2i3Od/IuRapUOw/ssGsusry+XtA86c3jZhO/3UUNra0g== X-Received: by 10.28.130.15 with SMTP id e15mr16128645wmd.19.1467207129190; Wed, 29 Jun 2016 06:32:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.88.206 with HTTP; Wed, 29 Jun 2016 06:32:08 -0700 (PDT) In-Reply-To: <20160629131951.GA12552@beagle.bcn.sia.es> References: <20160628130759.GA13226@beagle.bcn.sia.es> <2822287D-FE6F-4A4B-995A-639B696911DF@FreeBSD.org> <20160629113324.GA10436@beagle.bcn.sia.es> <20160629131951.GA12552@beagle.bcn.sia.es> From: krad Date: Wed, 29 Jun 2016 14:32:08 +0100 Message-ID: Subject: Re: Problems with pf rules for intercept squid proxy To: "C. L. Martinez" Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 13:32:11 -0000 you need to as squid needs read write access to the /dev/pf to work in intercept mode. As long as you dont have any other users in the squid group you are good. Did you restart devfs or reboot? On 29 June 2016 at 14:20, C. L. Martinez wrote: > Yep, is it not too dangerous to assign 0770 to /dev/pf?? > > Anyway, I have tried, but with same error: traffic is denied by squid ... > > > On Wed 29.Jun'16 at 13:39:46 +0100, krad wrote: > > have you got these lines in your /etc/devfs.conf file > > > > > > own pf root:squid > > perm pf 0770 > > > > you also need lines like this in the squid.conf > > > > http_port 192.168.1.1:3128 intercept > > > > > > > > On 29 June 2016 at 12:33, C. L. Martinez wrote: > > > > > On Tue 28.Jun'16 at 19:37:37 +0200, Kristof Provost wrote: > > > > > > > > > > > > On 28 Jun 2016, at 15:07, C. L. Martinez wrote: > > > > > I have some problems with my pf rules on a FreeBSD 10.3 host tha= t > acts > > > > > as a squid intercept proxy. My actual pf rules are: > > > > > > > > > > rdr pass on $vpnif proto tcp from $int_network to any port http -= > > lo0 > > > > > port 5144 > > > > > rdr pass on $vpnif proto tcp from $int_network to any port https > -> lo0 > > > > > port 5145 > > > > > > > > > > At first stage it seems that these rules works, but don't. > Traffic is > > > > > redirected to squid, but squid denies all connections: > > > > > > > > > > 1467111934.502 1 172.22.55.1 TCP_DENIED/403 4221 GET > > > > > http://www.osnews.com/ - HIER_NONE/- text/html > > > > > > > > > > Using same squid.conf's file under an OpenBSD test machine, squi= d > > > works > > > > > without problems. For this reason, I don't think there is some > problem > > > > > with my squid's config. The only difference between this OpenBSD > host > > > > > and FreeBSD are the pf rules. > > > > > > > > > You may have a different squid version, or they may be patched > > > differently. > > > > Your redirect rules are working, as demonstrated by the fact that > squid > > > gets > > > > a request, and replies to it. > > > > > > > > Note that pf does not change your HTTP payload, it only affects TCP= . > In > > > > other words: if Squid sees the connection (and it does) it=E2=80=99= s a Squid > > > > problem. > > > > > > > > Also note that you=E2=80=99re redirecting on FreeBSD, but using div= ert-to on > > > > OpenBSD. > > > > This may be triggering different behaviour from Squid. The man page > says > > > > that with divert-to: > > > > > > > > The packets will not be modified, so getsockname(2) on the > socket > > > will > > > > return > > > > the original destination address of the packet. > > > > > > > > That might be affecting an ACL in Squid. > > > > > > > > Regards, > > > > Kristof > > > > > > Thanks Kristof. I am using squid installed from pkg under a FreeBSD > 10.3, > > > fully updated: > > > > > > Squid Cache: Version 3.5.19 > > > Service Name: squid > > > configure options: '--with-default-user=3Dsquid' > '--bindir=3D/usr/local/sbin' > > > '--sbindir=3D/usr/local/sbin' '--datadir=3D/usr/local/etc/squid' > > > '--libexecdir=3D/usr/local/libexec/squid' '--localstatedir=3D/var' > > > '--sysconfdir=3D/usr/local/etc/squid' '--with-logdir=3D/var/log/squid= ' > > > '--with-pidfile=3D/var/run/squid/squid.pid' > '--with-swapdir=3D/var/squid/cache' > > > '--without-gnutls' '--enable-auth' '--enable-build-info' > > > '--enable-loadable-modules' '--enable-removal-policies=3Dlru heap' > > > '--disable-epoll' '--disable-linux-netfilter' '--disable-linux-tproxy= ' > > > '--disable-translation' '--disable-arch-native' '--enable-eui' > > > '--enable-cache-digests' '--enable-delay-pools' '--disable-ecap' > > > '--disable-esi' '--enable-follow-x-forwarded-for' '--enable-htcp' > > > '--enable-icap-client' '--enable-icmp' '--enable-ident-lookups' > > > '--enable-ipv6' '--enable-kqueue' '--with-large-files' > > > '--enable-http-violations' '--without-nettle' '--enable-snmp' > > > '--enable-ssl' '--with-openssl=3D/usr' 'LIBOPENSSL_CFLAGS=3D-I/usr/in= clude' > > > 'LIBOPENSSL_LIBS=3D-lcrypto -lssl' '--enable-ssl-crtd' > > > '--disable-stacktraces' '--enable-ipf-transparent' > > > '--enable-ipfw-transparent' '--enable-pf-transparent' > '--with-nat-devpf' > > > '--enable-forw-via-db' '--enable-wccp' '--enable-wccpv2' > > > '--with-heimdal-krb5=3D/usr' 'CFLAGS=3D-I/usr/include -O2 -pipe > > > -fstack-protector -fno-strict-aliasing' 'LDFLAGS=3D-L/usr/lib -pthre= ad > > > -fstack-protector' 'LIBS=3D-lkrb5 -lgssapi -lgssapi_krb5 ' > > > 'KRB5CONFIG=3D/usr/bin/krb5-config' '--enable-auth-basic=3DDB SMB_LM > > > MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam NIS' > > > '--enable-auth-digest=3Dfile' '--enable-external-acl-helpers=3Dfile_u= serip > > > time_quota unix_group' '--enable-auth-negotiate=3Dkerberos wrapper' > > > '--enable-auth-ntlm=3Dfake smb_lm' '--enable-storeio=3Daufs diskd roc= k ufs' > > > '--enable-disk-io=3DDiskThreads DiskDaemon AIO Blocking IpcIo Mmapped= ' > > > '--enable-log-daemon-helpers=3Dfile' '--enable-url-rewrite-helpers=3D= fake' > > > '--enable-storeid-rewrite-helpers=3Dfile' '--prefix=3D/usr/local' > > > '--mandir=3D/usr/local/man' '--infodir=3D/usr/local/info/' > > > '--build=3Damd64-portbld-freebsd10.1' > 'build_alias=3Damd64-portbld-freebsd10.1' > > > 'CC=3Dcc' 'CPPFLAGS=3D' 'CXX=3Dc++' 'CXXFLAGS=3D-O2 -pipe -fstack-pro= tector > > > -fno-strict-aliasing ' 'CPP=3Dcpp' --enable-ltdl-convenience > > > > > > According to this options, intercept is enabled ... Then, I don't > > > understand why it doesn't works ... > > > > > > -- > > > Greetings, > > > C. L. Martinez > > > _______________________________________________ > > > freebsd-questions@freebsd.org mailing list > > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > To unsubscribe, send any mail to " > > > freebsd-questions-unsubscribe@freebsd.org" > > > > > -- > Greetings, > C. L. Martinez > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jun 29 13:33:56 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 537AEB818B2 for ; Wed, 29 Jun 2016 13:33:56 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE9F12658 for ; Wed, 29 Jun 2016 13:33:55 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id f126so181707209wma.1 for ; Wed, 29 Jun 2016 06:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=70nu30eJ0W22JyAP5PxeiasSSZ8ZFzo7DstObCoIpdE=; b=vU4YphOKVOTXo9tf/QCD13OrvOTo89M2NqJUAcXF0gq+FpIN/mhXGHOMjD702BmnYx IkCGKggVE7rKeu+0ac1VUHmxXFWZSXPiqYLWD8ze7hncWJmPzGHB0V6EW/BAunlQbplJ b5WGWDMGExpNZB51yoFAC3WAeabjphLLauErBNr9GtdrSipmqauZt6nu+s3cvH+ZThof brdIfXTMUauSVv2R3XKzVwu4i6u3B2ap0S0UefgJi4NW7Q8WFJ8/SKADE5gkO/gjFpI5 dIgazsnlObjXJWUSZX5/k8Pl0p0IfkYSFSMbcGyt7w/lhZi4WBiC4yjSmLktFG4zeI4E idDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=70nu30eJ0W22JyAP5PxeiasSSZ8ZFzo7DstObCoIpdE=; b=YgZbTKqQquFnd+RpmW5WjQyOJudke/S11POhalokqfofDKIH0UuDXHDVgLLKxvljuj uyprAF7eWK90D5wrMdZKZ0ROnYeh4TlFJwzztbvGsxi1IS//NHz1NMbuCjW3uaEJEGW/ s46FaFahIseAslwoNRaTF6mte9ya1UWcdSrgj4RTvau/HtOJ/VRx+jTuEj2qJqlQX+LU 1XDvhHpkT5YNL3EidSLDCrbJ6kk7juaNx1yuSLG+xQXtkokDkOLbcSSCU5oyRwmUxWcP l4JAI0ABgfOB2amMEyzvubEeoDn/+/E2IERrDli5QitSbkyvN9togrr0rZCYKm/yJDsS +GOg== X-Gm-Message-State: ALyK8tJEqdB/jU+fOgqpIIVPQLittjViHcZlj5vdOc3BrzusJOUvQ1DFC41/E3MBNBswSiiRDqsb6Ht5eKhJhQ== X-Received: by 10.28.218.71 with SMTP id r68mr22848435wmg.48.1467207234410; Wed, 29 Jun 2016 06:33:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.88.206 with HTTP; Wed, 29 Jun 2016 06:33:53 -0700 (PDT) In-Reply-To: References: <20160628130759.GA13226@beagle.bcn.sia.es> <2822287D-FE6F-4A4B-995A-639B696911DF@FreeBSD.org> <20160629113324.GA10436@beagle.bcn.sia.es> <20160629131951.GA12552@beagle.bcn.sia.es> From: krad Date: Wed, 29 Jun 2016 14:33:53 +0100 Message-ID: Subject: Re: Problems with pf rules for intercept squid proxy To: "C. L. Martinez" Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 13:33:56 -0000 oh also if you are redirecting https you will need to setup squid to do ssl bump and install certs on all your clients. As you havent supplied your squid.conf its difficult to know if thats correct. On 29 June 2016 at 14:32, krad wrote: > you need to as squid needs read write access to the /dev/pf to work in > intercept mode. As long as you dont have any other users in the squid gro= up > you are good. Did you restart devfs or reboot? > > > On 29 June 2016 at 14:20, C. L. Martinez wrote: > >> Yep, is it not too dangerous to assign 0770 to /dev/pf?? >> >> Anyway, I have tried, but with same error: traffic is denied by squid ..= . >> >> >> On Wed 29.Jun'16 at 13:39:46 +0100, krad wrote: >> > have you got these lines in your /etc/devfs.conf file >> > >> > >> > own pf root:squid >> > perm pf 0770 >> > >> > you also need lines like this in the squid.conf >> > >> > http_port 192.168.1.1:3128 intercept >> > >> > >> > >> > On 29 June 2016 at 12:33, C. L. Martinez wrote: >> > >> > > On Tue 28.Jun'16 at 19:37:37 +0200, Kristof Provost wrote: >> > > > >> > > > >> > > > On 28 Jun 2016, at 15:07, C. L. Martinez wrote: >> > > > > I have some problems with my pf rules on a FreeBSD 10.3 host >> that acts >> > > > > as a squid intercept proxy. My actual pf rules are: >> > > > > >> > > > > rdr pass on $vpnif proto tcp from $int_network to any port http >> -> lo0 >> > > > > port 5144 >> > > > > rdr pass on $vpnif proto tcp from $int_network to any port https >> -> lo0 >> > > > > port 5145 >> > > > > >> > > > > At first stage it seems that these rules works, but don't. >> Traffic is >> > > > > redirected to squid, but squid denies all connections: >> > > > > >> > > > > 1467111934.502 1 172.22.55.1 TCP_DENIED/403 4221 GET >> > > > > http://www.osnews.com/ - HIER_NONE/- text/html >> > > > > >> > > > > Using same squid.conf's file under an OpenBSD test machine, squ= id >> > > works >> > > > > without problems. For this reason, I don't think there is some >> problem >> > > > > with my squid's config. The only difference between this OpenBSD >> host >> > > > > and FreeBSD are the pf rules. >> > > > > >> > > > You may have a different squid version, or they may be patched >> > > differently. >> > > > Your redirect rules are working, as demonstrated by the fact that >> squid >> > > gets >> > > > a request, and replies to it. >> > > > >> > > > Note that pf does not change your HTTP payload, it only affects >> TCP. In >> > > > other words: if Squid sees the connection (and it does) it=E2=80= =99s a Squid >> > > > problem. >> > > > >> > > > Also note that you=E2=80=99re redirecting on FreeBSD, but using di= vert-to on >> > > > OpenBSD. >> > > > This may be triggering different behaviour from Squid. The man pag= e >> says >> > > > that with divert-to: >> > > > >> > > > The packets will not be modified, so getsockname(2) on the >> socket >> > > will >> > > > return >> > > > the original destination address of the packet. >> > > > >> > > > That might be affecting an ACL in Squid. >> > > > >> > > > Regards, >> > > > Kristof >> > > >> > > Thanks Kristof. I am using squid installed from pkg under a FreeBSD >> 10.3, >> > > fully updated: >> > > >> > > Squid Cache: Version 3.5.19 >> > > Service Name: squid >> > > configure options: '--with-default-user=3Dsquid' >> '--bindir=3D/usr/local/sbin' >> > > '--sbindir=3D/usr/local/sbin' '--datadir=3D/usr/local/etc/squid' >> > > '--libexecdir=3D/usr/local/libexec/squid' '--localstatedir=3D/var' >> > > '--sysconfdir=3D/usr/local/etc/squid' '--with-logdir=3D/var/log/squi= d' >> > > '--with-pidfile=3D/var/run/squid/squid.pid' >> '--with-swapdir=3D/var/squid/cache' >> > > '--without-gnutls' '--enable-auth' '--enable-build-info' >> > > '--enable-loadable-modules' '--enable-removal-policies=3Dlru heap' >> > > '--disable-epoll' '--disable-linux-netfilter' '--disable-linux-tprox= y' >> > > '--disable-translation' '--disable-arch-native' '--enable-eui' >> > > '--enable-cache-digests' '--enable-delay-pools' '--disable-ecap' >> > > '--disable-esi' '--enable-follow-x-forwarded-for' '--enable-htcp' >> > > '--enable-icap-client' '--enable-icmp' '--enable-ident-lookups' >> > > '--enable-ipv6' '--enable-kqueue' '--with-large-files' >> > > '--enable-http-violations' '--without-nettle' '--enable-snmp' >> > > '--enable-ssl' '--with-openssl=3D/usr' >> 'LIBOPENSSL_CFLAGS=3D-I/usr/include' >> > > 'LIBOPENSSL_LIBS=3D-lcrypto -lssl' '--enable-ssl-crtd' >> > > '--disable-stacktraces' '--enable-ipf-transparent' >> > > '--enable-ipfw-transparent' '--enable-pf-transparent' >> '--with-nat-devpf' >> > > '--enable-forw-via-db' '--enable-wccp' '--enable-wccpv2' >> > > '--with-heimdal-krb5=3D/usr' 'CFLAGS=3D-I/usr/include -O2 -pipe >> > > -fstack-protector -fno-strict-aliasing' 'LDFLAGS=3D-L/usr/lib -pthr= ead >> > > -fstack-protector' 'LIBS=3D-lkrb5 -lgssapi -lgssapi_krb5 ' >> > > 'KRB5CONFIG=3D/usr/bin/krb5-config' '--enable-auth-basic=3DDB SMB_LM >> > > MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam NIS' >> > > '--enable-auth-digest=3Dfile' '--enable-external-acl-helpers=3Dfile_= userip >> > > time_quota unix_group' '--enable-auth-negotiate=3Dkerberos wrapper' >> > > '--enable-auth-ntlm=3Dfake smb_lm' '--enable-storeio=3Daufs diskd ro= ck >> ufs' >> > > '--enable-disk-io=3DDiskThreads DiskDaemon AIO Blocking IpcIo Mmappe= d' >> > > '--enable-log-daemon-helpers=3Dfile' '--enable-url-rewrite-helpers= =3Dfake' >> > > '--enable-storeid-rewrite-helpers=3Dfile' '--prefix=3D/usr/local' >> > > '--mandir=3D/usr/local/man' '--infodir=3D/usr/local/info/' >> > > '--build=3Damd64-portbld-freebsd10.1' >> 'build_alias=3Damd64-portbld-freebsd10.1' >> > > 'CC=3Dcc' 'CPPFLAGS=3D' 'CXX=3Dc++' 'CXXFLAGS=3D-O2 -pipe -fstack-pr= otector >> > > -fno-strict-aliasing ' 'CPP=3Dcpp' --enable-ltdl-convenience >> > > >> > > According to this options, intercept is enabled ... Then, I don't >> > > understand why it doesn't works ... >> > > >> > > -- >> > > Greetings, >> > > C. L. Martinez >> > > _______________________________________________ >> > > freebsd-questions@freebsd.org mailing list >> > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> > > To unsubscribe, send any mail to " >> > > freebsd-questions-unsubscribe@freebsd.org" >> > > >> >> -- >> Greetings, >> C. L. Martinez >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://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 Jun 29 13:35:05 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 938D0B81967 for ; Wed, 29 Jun 2016 13:35:05 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 16902274D for ; Wed, 29 Jun 2016 13:35:05 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id r190so33481151wmr.0 for ; Wed, 29 Jun 2016 06:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ntXACrDZ9nNkgaNlSScytXr1s9ZmWgd/eCH1RnLQLhE=; b=dGlyJ4hTGRKyT1LqukF2ZlZapDHEUgZR/T6fSWLKh2ucQHvBzTyHKwCY6SMFxf6ova ZL1Mf0eOFKFNLsWU3rNf6798mQrXRYTAsbJ+2J3dGZsqeLkX1DJb0iL3G/Qbp8AzShE5 UVIsGg95m147VLBKUI0MezD4skBEXMnyHqAOnpuQ8qBiS3zQxTBHqPrfjYnqZZx4ixXb jzSUaN+Zp+9vO5Epj08fymUdXpSiR3AnUaigwM49HwZp/N21k+6vyzqrNe92RTJmQrfR kdT9cc76w16wcQlfus7dMkzyTLzS7mFptv2g4cpPaYav3owc/YT5q/lCm3ZwxI6esC+b rjgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ntXACrDZ9nNkgaNlSScytXr1s9ZmWgd/eCH1RnLQLhE=; b=j51WmV+mLvoT6xXrS/tayfdSe/rnGVirWrgdLpLdxeWT2M5rwMxdAa/qi+0wBfV08G NBPgFYtkKz9Xt59VpgqS6SLO8NHg9N/i9alGAaduB8EgR1+II2tbSu8BlkeEKayrlBGS KqBYuoohgeXcuXMv3INWYFgLiBhntGLqIvbMiW8IMspCaePm1NZeepv9MxIfmYiA3iBs 8XzW5qnrRv3i5W7lVGrdX6PEQIWVjFMq1A+ZAegTct4BAGQH4xrG9qgYt3h+iNO3ZJPQ UQFPfMDszx1gXqXutfsq5Z1MJZq6OxKIfqS24gsJD0x3Kb9KWgDHuVVxx1RKlgidUjWU M9rQ== X-Gm-Message-State: ALyK8tJzw6NBOBjjdQX/t+jj+WNosttqvAypkpuTXb0BCNwI5CQMIDq3FYJqIsOjuzEZCJzYM06YYGWoM8/TAg== X-Received: by 10.194.38.4 with SMTP id c4mr8611346wjk.20.1467207303556; Wed, 29 Jun 2016 06:35:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.88.206 with HTTP; Wed, 29 Jun 2016 06:35:02 -0700 (PDT) In-Reply-To: References: <20160628130759.GA13226@beagle.bcn.sia.es> <2822287D-FE6F-4A4B-995A-639B696911DF@FreeBSD.org> <20160629113324.GA10436@beagle.bcn.sia.es> <20160629131951.GA12552@beagle.bcn.sia.es> From: krad Date: Wed, 29 Jun 2016 14:35:02 +0100 Message-ID: Subject: Re: Problems with pf rules for intercept squid proxy To: "C. L. Martinez" Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 13:35:05 -0000 Also make sure you have opened the squid acl to you local network On 29 June 2016 at 14:33, krad wrote: > oh also if you are redirecting https you will need to setup squid to do > ssl bump and install certs on all your clients. As you havent supplied yo= ur > squid.conf its difficult to know if thats correct. > > On 29 June 2016 at 14:32, krad wrote: > >> you need to as squid needs read write access to the /dev/pf to work in >> intercept mode. As long as you dont have any other users in the squid gr= oup >> you are good. Did you restart devfs or reboot? >> >> >> On 29 June 2016 at 14:20, C. L. Martinez wrote: >> >>> Yep, is it not too dangerous to assign 0770 to /dev/pf?? >>> >>> Anyway, I have tried, but with same error: traffic is denied by squid .= .. >>> >>> >>> On Wed 29.Jun'16 at 13:39:46 +0100, krad wrote: >>> > have you got these lines in your /etc/devfs.conf file >>> > >>> > >>> > own pf root:squid >>> > perm pf 0770 >>> > >>> > you also need lines like this in the squid.conf >>> > >>> > http_port 192.168.1.1:3128 intercept >>> > >>> > >>> > >>> > On 29 June 2016 at 12:33, C. L. Martinez wrote= : >>> > >>> > > On Tue 28.Jun'16 at 19:37:37 +0200, Kristof Provost wrote: >>> > > > >>> > > > >>> > > > On 28 Jun 2016, at 15:07, C. L. Martinez wrote: >>> > > > > I have some problems with my pf rules on a FreeBSD 10.3 host >>> that acts >>> > > > > as a squid intercept proxy. My actual pf rules are: >>> > > > > >>> > > > > rdr pass on $vpnif proto tcp from $int_network to any port http >>> -> lo0 >>> > > > > port 5144 >>> > > > > rdr pass on $vpnif proto tcp from $int_network to any port http= s >>> -> lo0 >>> > > > > port 5145 >>> > > > > >>> > > > > At first stage it seems that these rules works, but don't. >>> Traffic is >>> > > > > redirected to squid, but squid denies all connections: >>> > > > > >>> > > > > 1467111934.502 1 172.22.55.1 TCP_DENIED/403 4221 GET >>> > > > > http://www.osnews.com/ - HIER_NONE/- text/html >>> > > > > >>> > > > > Using same squid.conf's file under an OpenBSD test machine, >>> squid >>> > > works >>> > > > > without problems. For this reason, I don't think there is some >>> problem >>> > > > > with my squid's config. The only difference between this OpenBS= D >>> host >>> > > > > and FreeBSD are the pf rules. >>> > > > > >>> > > > You may have a different squid version, or they may be patched >>> > > differently. >>> > > > Your redirect rules are working, as demonstrated by the fact that >>> squid >>> > > gets >>> > > > a request, and replies to it. >>> > > > >>> > > > Note that pf does not change your HTTP payload, it only affects >>> TCP. In >>> > > > other words: if Squid sees the connection (and it does) it=E2=80= =99s a >>> Squid >>> > > > problem. >>> > > > >>> > > > Also note that you=E2=80=99re redirecting on FreeBSD, but using d= ivert-to >>> on >>> > > > OpenBSD. >>> > > > This may be triggering different behaviour from Squid. The man >>> page says >>> > > > that with divert-to: >>> > > > >>> > > > The packets will not be modified, so getsockname(2) on the >>> socket >>> > > will >>> > > > return >>> > > > the original destination address of the packet. >>> > > > >>> > > > That might be affecting an ACL in Squid. >>> > > > >>> > > > Regards, >>> > > > Kristof >>> > > >>> > > Thanks Kristof. I am using squid installed from pkg under a FreeBSD >>> 10.3, >>> > > fully updated: >>> > > >>> > > Squid Cache: Version 3.5.19 >>> > > Service Name: squid >>> > > configure options: '--with-default-user=3Dsquid' >>> '--bindir=3D/usr/local/sbin' >>> > > '--sbindir=3D/usr/local/sbin' '--datadir=3D/usr/local/etc/squid' >>> > > '--libexecdir=3D/usr/local/libexec/squid' '--localstatedir=3D/var' >>> > > '--sysconfdir=3D/usr/local/etc/squid' '--with-logdir=3D/var/log/squ= id' >>> > > '--with-pidfile=3D/var/run/squid/squid.pid' >>> '--with-swapdir=3D/var/squid/cache' >>> > > '--without-gnutls' '--enable-auth' '--enable-build-info' >>> > > '--enable-loadable-modules' '--enable-removal-policies=3Dlru heap' >>> > > '--disable-epoll' '--disable-linux-netfilter' >>> '--disable-linux-tproxy' >>> > > '--disable-translation' '--disable-arch-native' '--enable-eui' >>> > > '--enable-cache-digests' '--enable-delay-pools' '--disable-ecap' >>> > > '--disable-esi' '--enable-follow-x-forwarded-for' '--enable-htcp' >>> > > '--enable-icap-client' '--enable-icmp' '--enable-ident-lookups' >>> > > '--enable-ipv6' '--enable-kqueue' '--with-large-files' >>> > > '--enable-http-violations' '--without-nettle' '--enable-snmp' >>> > > '--enable-ssl' '--with-openssl=3D/usr' >>> 'LIBOPENSSL_CFLAGS=3D-I/usr/include' >>> > > 'LIBOPENSSL_LIBS=3D-lcrypto -lssl' '--enable-ssl-crtd' >>> > > '--disable-stacktraces' '--enable-ipf-transparent' >>> > > '--enable-ipfw-transparent' '--enable-pf-transparent' >>> '--with-nat-devpf' >>> > > '--enable-forw-via-db' '--enable-wccp' '--enable-wccpv2' >>> > > '--with-heimdal-krb5=3D/usr' 'CFLAGS=3D-I/usr/include -O2 -pipe >>> > > -fstack-protector -fno-strict-aliasing' 'LDFLAGS=3D-L/usr/lib -pth= read >>> > > -fstack-protector' 'LIBS=3D-lkrb5 -lgssapi -lgssapi_krb5 ' >>> > > 'KRB5CONFIG=3D/usr/bin/krb5-config' '--enable-auth-basic=3DDB SMB_L= M >>> > > MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam NIS' >>> > > '--enable-auth-digest=3Dfile' >>> '--enable-external-acl-helpers=3Dfile_userip >>> > > time_quota unix_group' '--enable-auth-negotiate=3Dkerberos wrapper' >>> > > '--enable-auth-ntlm=3Dfake smb_lm' '--enable-storeio=3Daufs diskd r= ock >>> ufs' >>> > > '--enable-disk-io=3DDiskThreads DiskDaemon AIO Blocking IpcIo Mmapp= ed' >>> > > '--enable-log-daemon-helpers=3Dfile' >>> '--enable-url-rewrite-helpers=3Dfake' >>> > > '--enable-storeid-rewrite-helpers=3Dfile' '--prefix=3D/usr/local' >>> > > '--mandir=3D/usr/local/man' '--infodir=3D/usr/local/info/' >>> > > '--build=3Damd64-portbld-freebsd10.1' >>> 'build_alias=3Damd64-portbld-freebsd10.1' >>> > > 'CC=3Dcc' 'CPPFLAGS=3D' 'CXX=3Dc++' 'CXXFLAGS=3D-O2 -pipe -fstack-p= rotector >>> > > -fno-strict-aliasing ' 'CPP=3Dcpp' --enable-ltdl-convenience >>> > > >>> > > According to this options, intercept is enabled ... Then, I don't >>> > > understand why it doesn't works ... >>> > > >>> > > -- >>> > > Greetings, >>> > > C. L. Martinez >>> > > _______________________________________________ >>> > > freebsd-questions@freebsd.org mailing list >>> > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> > > To unsubscribe, send any mail to " >>> > > freebsd-questions-unsubscribe@freebsd.org" >>> > > >>> >>> -- >>> Greetings, >>> C. L. Martinez >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> https://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 Jun 29 13:55:42 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38CAEB81E97 for ; Wed, 29 Jun 2016 13:55:42 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF9DE20EC for ; Wed, 29 Jun 2016 13:55:41 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id f126so182583842wma.1 for ; Wed, 29 Jun 2016 06:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=SUeNhn7EcA/YyANZWHnVDQEPXcs1FbGbLP6sC8ZSd9Q=; b=Xu9Zz1BtTpawf3DUouDZQiwHtj2xZXs+vVYzTqF/sgDj52yY74mRj+wDHc+rsGl7wa Z+SQMOPKQqPniXPog8WT9r4tgLhJUcdz8iSOcckAsMUlFFcWhcc/B9yIizo9tj41nRNB M359U2jkj75mnUbzN5HTpt4QZEl4bD686Etc/El8zz+XV1vG303pNDgXX0dtHJ8FW8lG WYa608k34+H/q3q/A7FCIRIJ34S1ahU5Rd9uGp+FLSITddDKuCpW4p19UlUXG/1rkmBt tUcNtrCY3kfxp6Ks6MPjqU0oFc3lMfH6yNgRRFDn2HbWYndh4mXXpoP0O4zNJXcQZnzx 2NHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=SUeNhn7EcA/YyANZWHnVDQEPXcs1FbGbLP6sC8ZSd9Q=; b=czCgTqslRnBEByfXl2Dw0tpn/89TANN8UoaPV96MYniic1+UXnkjtzfYx2x0l0LhcV 2m20UHTi2wsJp8SVqgohHoiHfkRX6uW7/RN6vFcdl+MUgyZNPAxHtk0o3qvaJI81y/3M U1x0gAI/unsagUgrAUYO9eYOb5514ehZsXd6Jq8ncLX5LHVhtV8pe+ovo4VmkaY3jV8N YxjRn7NghHbkki7MBWz+uJSS+qVrzd+Wmhv/QY5dv5C6niBWyH4nBdIuJFW/EtyYn8VP KjQboz4h/h6SO+f1S6Z0BrAYdLaUo6hcDzqwKaOP+oapVRBmPVsaeZubkyvgswz2yesM +SxQ== X-Gm-Message-State: ALyK8tJDT9p+o31HW2mAVV/RPTluy0HtnSTRcCFgYkyCd6YpckSCMndIAyopfN2b36flQg== X-Received: by 10.194.96.177 with SMTP id dt17mr8369677wjb.90.1467208539961; Wed, 29 Jun 2016 06:55:39 -0700 (PDT) Received: from beagle.bcn.sia.es (132.red-79-154-242.dynamicip.rima-tde.net. [79.154.242.132]) by smtp.gmail.com with ESMTPSA id x83sm4118541wmx.9.2016.06.29.06.55.38 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Jun 2016 06:55:38 -0700 (PDT) Date: Wed, 29 Jun 2016 13:55:30 +0000 From: "C. L. Martinez" To: freebsd-questions@freebsd.org Subject: Re: Problems with pf rules for intercept squid proxy Message-ID: <20160629135530.GA14559@beagle.bcn.sia.es> References: <20160628130759.GA13226@beagle.bcn.sia.es> <2822287D-FE6F-4A4B-995A-639B696911DF@FreeBSD.org> <20160629113324.GA10436@beagle.bcn.sia.es> <20160629131951.GA12552@beagle.bcn.sia.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 13:55:42 -0000 Thanks Krad. And the answer for your questions is: yes. I have restarted FreeBSD hosts after devfs change, my squid's config uses sslbump (it is the same squid.conf file that I use in other OpenBSD host that works as intercept proxy without problems)... My laptop has squid's cert installed and acls are configured ... But nothing: it doesn't works. On Wed 29.Jun'16 at 14:35:02 +0100, krad wrote: > Also make sure you have opened the squid acl to you local network > > On 29 June 2016 at 14:33, krad wrote: > > > oh also if you are redirecting https you will need to setup squid to do > > ssl bump and install certs on all your clients. As you havent supplied your > > squid.conf its difficult to know if thats correct. > > > > On 29 June 2016 at 14:32, krad wrote: > > > >> you need to as squid needs read write access to the /dev/pf to work in > >> intercept mode. As long as you dont have any other users in the squid group > >> you are good. Did you restart devfs or reboot? > >> > >> > >> On 29 June 2016 at 14:20, C. L. Martinez wrote: > >> > >>> Yep, is it not too dangerous to assign 0770 to /dev/pf?? > >>> > >>> Anyway, I have tried, but with same error: traffic is denied by squid ... > >>> > >>> > >>> On Wed 29.Jun'16 at 13:39:46 +0100, krad wrote: > >>> > have you got these lines in your /etc/devfs.conf file > >>> > > >>> > > >>> > own pf root:squid > >>> > perm pf 0770 > >>> > > >>> > you also need lines like this in the squid.conf > >>> > > >>> > http_port 192.168.1.1:3128 intercept > >>> > > >>> > > >>> > > >>> > On 29 June 2016 at 12:33, C. L. Martinez wrote: > >>> > > >>> > > On Tue 28.Jun'16 at 19:37:37 +0200, Kristof Provost wrote: > >>> > > > > >>> > > > > >>> > > > On 28 Jun 2016, at 15:07, C. L. Martinez wrote: > >>> > > > > I have some problems with my pf rules on a FreeBSD 10.3 host > >>> that acts > >>> > > > > as a squid intercept proxy. My actual pf rules are: > >>> > > > > > >>> > > > > rdr pass on $vpnif proto tcp from $int_network to any port http > >>> -> lo0 > >>> > > > > port 5144 > >>> > > > > rdr pass on $vpnif proto tcp from $int_network to any port https > >>> -> lo0 > >>> > > > > port 5145 > >>> > > > > > >>> > > > > At first stage it seems that these rules works, but don't. > >>> Traffic is > >>> > > > > redirected to squid, but squid denies all connections: > >>> > > > > > >>> > > > > 1467111934.502 1 172.22.55.1 TCP_DENIED/403 4221 GET > >>> > > > > http://www.osnews.com/ - HIER_NONE/- text/html > >>> > > > > > >>> > > > > Using same squid.conf's file under an OpenBSD test machine, > >>> squid > >>> > > works > >>> > > > > without problems. For this reason, I don't think there is some > >>> problem > >>> > > > > with my squid's config. The only difference between this OpenBSD > >>> host > >>> > > > > and FreeBSD are the pf rules. > >>> > > > > > >>> > > > You may have a different squid version, or they may be patched > >>> > > differently. > >>> > > > Your redirect rules are working, as demonstrated by the fact that > >>> squid > >>> > > gets > >>> > > > a request, and replies to it. > >>> > > > > >>> > > > Note that pf does not change your HTTP payload, it only affects > >>> TCP. In > >>> > > > other words: if Squid sees the connection (and it does) it’s a > >>> Squid > >>> > > > problem. > >>> > > > > >>> > > > Also note that you’re redirecting on FreeBSD, but using divert-to > >>> on > >>> > > > OpenBSD. > >>> > > > This may be triggering different behaviour from Squid. The man > >>> page says > >>> > > > that with divert-to: > >>> > > > > >>> > > > The packets will not be modified, so getsockname(2) on the > >>> socket > >>> > > will > >>> > > > return > >>> > > > the original destination address of the packet. > >>> > > > > >>> > > > That might be affecting an ACL in Squid. > >>> > > > > >>> > > > Regards, > >>> > > > Kristof > >>> > > > >>> > > Thanks Kristof. I am using squid installed from pkg under a FreeBSD > >>> 10.3, > >>> > > fully updated: > >>> > > > >>> > > Squid Cache: Version 3.5.19 > >>> > > Service Name: squid > >>> > > configure options: '--with-default-user=squid' > >>> '--bindir=/usr/local/sbin' > >>> > > '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' > >>> > > '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/var' > >>> > > '--sysconfdir=/usr/local/etc/squid' '--with-logdir=/var/log/squid' > >>> > > '--with-pidfile=/var/run/squid/squid.pid' > >>> '--with-swapdir=/var/squid/cache' > >>> > > '--without-gnutls' '--enable-auth' '--enable-build-info' > >>> > > '--enable-loadable-modules' '--enable-removal-policies=lru heap' > >>> > > '--disable-epoll' '--disable-linux-netfilter' > >>> '--disable-linux-tproxy' > >>> > > '--disable-translation' '--disable-arch-native' '--enable-eui' > >>> > > '--enable-cache-digests' '--enable-delay-pools' '--disable-ecap' > >>> > > '--disable-esi' '--enable-follow-x-forwarded-for' '--enable-htcp' > >>> > > '--enable-icap-client' '--enable-icmp' '--enable-ident-lookups' > >>> > > '--enable-ipv6' '--enable-kqueue' '--with-large-files' > >>> > > '--enable-http-violations' '--without-nettle' '--enable-snmp' > >>> > > '--enable-ssl' '--with-openssl=/usr' > >>> 'LIBOPENSSL_CFLAGS=-I/usr/include' > >>> > > 'LIBOPENSSL_LIBS=-lcrypto -lssl' '--enable-ssl-crtd' > >>> > > '--disable-stacktraces' '--enable-ipf-transparent' > >>> > > '--enable-ipfw-transparent' '--enable-pf-transparent' > >>> '--with-nat-devpf' > >>> > > '--enable-forw-via-db' '--enable-wccp' '--enable-wccpv2' > >>> > > '--with-heimdal-krb5=/usr' 'CFLAGS=-I/usr/include -O2 -pipe > >>> > > -fstack-protector -fno-strict-aliasing' 'LDFLAGS=-L/usr/lib -pthread > >>> > > -fstack-protector' 'LIBS=-lkrb5 -lgssapi -lgssapi_krb5 ' > >>> > > 'KRB5CONFIG=/usr/bin/krb5-config' '--enable-auth-basic=DB SMB_LM > >>> > > MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam NIS' > >>> > > '--enable-auth-digest=file' > >>> '--enable-external-acl-helpers=file_userip > >>> > > time_quota unix_group' '--enable-auth-negotiate=kerberos wrapper' > >>> > > '--enable-auth-ntlm=fake smb_lm' '--enable-storeio=aufs diskd rock > >>> ufs' > >>> > > '--enable-disk-io=DiskThreads DiskDaemon AIO Blocking IpcIo Mmapped' > >>> > > '--enable-log-daemon-helpers=file' > >>> '--enable-url-rewrite-helpers=fake' > >>> > > '--enable-storeid-rewrite-helpers=file' '--prefix=/usr/local' > >>> > > '--mandir=/usr/local/man' '--infodir=/usr/local/info/' > >>> > > '--build=amd64-portbld-freebsd10.1' > >>> 'build_alias=amd64-portbld-freebsd10.1' > >>> > > 'CC=cc' 'CPPFLAGS=' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -fstack-protector > >>> > > -fno-strict-aliasing ' 'CPP=cpp' --enable-ltdl-convenience > >>> > > > >>> > > According to this options, intercept is enabled ... Then, I don't > >>> > > understand why it doesn't works ... > >>> > > > >>> > > -- > >>> > > Greetings, > >>> > > C. L. Martinez > >>> > > _______________________________________________ > >>> > > freebsd-questions@freebsd.org mailing list > >>> > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > >>> > > To unsubscribe, send any mail to " > >>> > > freebsd-questions-unsubscribe@freebsd.org" > >>> > > > >>> > >>> -- > >>> Greetings, > >>> C. L. Martinez > >>> _______________________________________________ > >>> freebsd-questions@freebsd.org mailing list > >>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions > >>> To unsubscribe, send any mail to " > >>> freebsd-questions-unsubscribe@freebsd.org" > >>> > >> > >> > > -- Greetings, C. L. Martinez From owner-freebsd-questions@freebsd.org Wed Jun 29 14:00:42 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3AFDB82D88 for ; Wed, 29 Jun 2016 14:00:42 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A0FE254F for ; Wed, 29 Jun 2016 14:00:42 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id f126so182792601wma.1 for ; Wed, 29 Jun 2016 07:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uoU0GZWXiywBV/IZ6Np2zWSBJcEr+aQOSCk11Niqqik=; b=tf76WE7YoKG9LFFrkYiwZfYUMfLg8zjHoZNE/C4vlpTmoBzSsGektzakpAJSjLy5OH xYQpxYgYrXB331XV+GQS9K14afsu5buCQUnSv6QUySuht0PyfOnxJKIO9q3Uhdz5YHYz +7+R/qzH0ACeHJXSRdn7j4rNiHWLBCn8E8Ai2COfsfrihLqN6Q+xFxoKV6JUV2WG6vom gLSuX9GF7ATEkToFFBi8K630TBrwmBIEkvfd9ZvnWNTVQom8KMobrphP9ETMSmI2rXRv l8q+2VyJMUupg8p2n4Nh5RGvCUCCRCs4hNbBASc4jkeaZ3LB3NpjBw1qoe7sBfudtJFb ClLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uoU0GZWXiywBV/IZ6Np2zWSBJcEr+aQOSCk11Niqqik=; b=U54acFT6vdqEjGTXPATehwVicym8yZkrIi90kjsgK7Nt2j1xFOXelJIz2NMVVjgvwS JgsXLmDCDWYr5yLu1/NoW3wxQZX0eTLX3D4270upjvXDRPOl5acUFlDiw6yC7mpZtZoo wPFD0xNrUi7xrFhrpkyOYSiONhMQu9VQxBW/MTL0HGZAyW8TJqgKRjee4o05Gi6fUcuk pY7KI9xtB7Q6Hx+SCjq9vfr2xYyg9h1gCII8Yxju3XdO7A8mVrCCPgE/8lO4AOlQK26u xEiMVFGvV6fkFEZA/iSnYOTUVunGX8O9yLMwpXWLU9IIkH2z0z/JRkhYrfl16kipB/Ma AXZQ== X-Gm-Message-State: ALyK8tKeBLjCj8TSVydtZHhbMVt/SnLaCqWcXN/kRg+9YU7SAuH/Cra/aNr3/9r2tG+NYAmctVivySRNK6TGIA== X-Received: by 10.194.38.4 with SMTP id c4mr8725717wjk.20.1467208840603; Wed, 29 Jun 2016 07:00:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.88.206 with HTTP; Wed, 29 Jun 2016 07:00:39 -0700 (PDT) In-Reply-To: <20160629135530.GA14559@beagle.bcn.sia.es> References: <20160628130759.GA13226@beagle.bcn.sia.es> <2822287D-FE6F-4A4B-995A-639B696911DF@FreeBSD.org> <20160629113324.GA10436@beagle.bcn.sia.es> <20160629131951.GA12552@beagle.bcn.sia.es> <20160629135530.GA14559@beagle.bcn.sia.es> From: krad Date: Wed, 29 Jun 2016 15:00:39 +0100 Message-ID: Subject: Re: Problems with pf rules for intercept squid proxy To: "C. L. Martinez" Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 14:00:42 -0000 the setup does fundamentally work as i'm using it, so you must be missing something, probably in your squid config. On 29 June 2016 at 14:55, C. L. Martinez wrote: > Thanks Krad. And the answer for your questions is: yes. I have restarted > FreeBSD hosts after devfs change, my squid's config uses sslbump (it is t= he > same squid.conf file that I use in other OpenBSD host that works as > intercept proxy without problems)... My laptop has squid's cert installed > and acls are configured ... > > But nothing: it doesn't works. > > > On Wed 29.Jun'16 at 14:35:02 +0100, krad wrote: > > Also make sure you have opened the squid acl to you local network > > > > On 29 June 2016 at 14:33, krad wrote: > > > > > oh also if you are redirecting https you will need to setup squid to = do > > > ssl bump and install certs on all your clients. As you havent supplie= d > your > > > squid.conf its difficult to know if thats correct. > > > > > > On 29 June 2016 at 14:32, krad wrote: > > > > > >> you need to as squid needs read write access to the /dev/pf to work = in > > >> intercept mode. As long as you dont have any other users in the squi= d > group > > >> you are good. Did you restart devfs or reboot? > > >> > > >> > > >> On 29 June 2016 at 14:20, C. L. Martinez > wrote: > > >> > > >>> Yep, is it not too dangerous to assign 0770 to /dev/pf?? > > >>> > > >>> Anyway, I have tried, but with same error: traffic is denied by > squid ... > > >>> > > >>> > > >>> On Wed 29.Jun'16 at 13:39:46 +0100, krad wrote: > > >>> > have you got these lines in your /etc/devfs.conf file > > >>> > > > >>> > > > >>> > own pf root:squid > > >>> > perm pf 0770 > > >>> > > > >>> > you also need lines like this in the squid.conf > > >>> > > > >>> > http_port 192.168.1.1:3128 intercept > > >>> > > > >>> > > > >>> > > > >>> > On 29 June 2016 at 12:33, C. L. Martinez > wrote: > > >>> > > > >>> > > On Tue 28.Jun'16 at 19:37:37 +0200, Kristof Provost wrote: > > >>> > > > > > >>> > > > > > >>> > > > On 28 Jun 2016, at 15:07, C. L. Martinez wrote: > > >>> > > > > I have some problems with my pf rules on a FreeBSD 10.3 ho= st > > >>> that acts > > >>> > > > > as a squid intercept proxy. My actual pf rules are: > > >>> > > > > > > >>> > > > > rdr pass on $vpnif proto tcp from $int_network to any port > http > > >>> -> lo0 > > >>> > > > > port 5144 > > >>> > > > > rdr pass on $vpnif proto tcp from $int_network to any port > https > > >>> -> lo0 > > >>> > > > > port 5145 > > >>> > > > > > > >>> > > > > At first stage it seems that these rules works, but don't. > > >>> Traffic is > > >>> > > > > redirected to squid, but squid denies all connections: > > >>> > > > > > > >>> > > > > 1467111934.502 1 172.22.55.1 TCP_DENIED/403 4221 GET > > >>> > > > > http://www.osnews.com/ - HIER_NONE/- text/html > > >>> > > > > > > >>> > > > > Using same squid.conf's file under an OpenBSD test machine= , > > >>> squid > > >>> > > works > > >>> > > > > without problems. For this reason, I don't think there is > some > > >>> problem > > >>> > > > > with my squid's config. The only difference between this > OpenBSD > > >>> host > > >>> > > > > and FreeBSD are the pf rules. > > >>> > > > > > > >>> > > > You may have a different squid version, or they may be patche= d > > >>> > > differently. > > >>> > > > Your redirect rules are working, as demonstrated by the fact > that > > >>> squid > > >>> > > gets > > >>> > > > a request, and replies to it. > > >>> > > > > > >>> > > > Note that pf does not change your HTTP payload, it only affec= ts > > >>> TCP. In > > >>> > > > other words: if Squid sees the connection (and it does) it=E2= =80=99s a > > >>> Squid > > >>> > > > problem. > > >>> > > > > > >>> > > > Also note that you=E2=80=99re redirecting on FreeBSD, but usi= ng > divert-to > > >>> on > > >>> > > > OpenBSD. > > >>> > > > This may be triggering different behaviour from Squid. The ma= n > > >>> page says > > >>> > > > that with divert-to: > > >>> > > > > > >>> > > > The packets will not be modified, so getsockname(2) on > the > > >>> socket > > >>> > > will > > >>> > > > return > > >>> > > > the original destination address of the packet. > > >>> > > > > > >>> > > > That might be affecting an ACL in Squid. > > >>> > > > > > >>> > > > Regards, > > >>> > > > Kristof > > >>> > > > > >>> > > Thanks Kristof. I am using squid installed from pkg under a > FreeBSD > > >>> 10.3, > > >>> > > fully updated: > > >>> > > > > >>> > > Squid Cache: Version 3.5.19 > > >>> > > Service Name: squid > > >>> > > configure options: '--with-default-user=3Dsquid' > > >>> '--bindir=3D/usr/local/sbin' > > >>> > > '--sbindir=3D/usr/local/sbin' '--datadir=3D/usr/local/etc/squid= ' > > >>> > > '--libexecdir=3D/usr/local/libexec/squid' '--localstatedir=3D/v= ar' > > >>> > > '--sysconfdir=3D/usr/local/etc/squid' > '--with-logdir=3D/var/log/squid' > > >>> > > '--with-pidfile=3D/var/run/squid/squid.pid' > > >>> '--with-swapdir=3D/var/squid/cache' > > >>> > > '--without-gnutls' '--enable-auth' '--enable-build-info' > > >>> > > '--enable-loadable-modules' '--enable-removal-policies=3Dlru he= ap' > > >>> > > '--disable-epoll' '--disable-linux-netfilter' > > >>> '--disable-linux-tproxy' > > >>> > > '--disable-translation' '--disable-arch-native' '--enable-eui' > > >>> > > '--enable-cache-digests' '--enable-delay-pools' '--disable-ecap= ' > > >>> > > '--disable-esi' '--enable-follow-x-forwarded-for' '--enable-htc= p' > > >>> > > '--enable-icap-client' '--enable-icmp' '--enable-ident-lookups' > > >>> > > '--enable-ipv6' '--enable-kqueue' '--with-large-files' > > >>> > > '--enable-http-violations' '--without-nettle' '--enable-snmp' > > >>> > > '--enable-ssl' '--with-openssl=3D/usr' > > >>> 'LIBOPENSSL_CFLAGS=3D-I/usr/include' > > >>> > > 'LIBOPENSSL_LIBS=3D-lcrypto -lssl' '--enable-ssl-crtd' > > >>> > > '--disable-stacktraces' '--enable-ipf-transparent' > > >>> > > '--enable-ipfw-transparent' '--enable-pf-transparent' > > >>> '--with-nat-devpf' > > >>> > > '--enable-forw-via-db' '--enable-wccp' '--enable-wccpv2' > > >>> > > '--with-heimdal-krb5=3D/usr' 'CFLAGS=3D-I/usr/include -O2 -pipe > > >>> > > -fstack-protector -fno-strict-aliasing' 'LDFLAGS=3D-L/usr/lib > -pthread > > >>> > > -fstack-protector' 'LIBS=3D-lkrb5 -lgssapi -lgssapi_krb5 ' > > >>> > > 'KRB5CONFIG=3D/usr/bin/krb5-config' '--enable-auth-basic=3DDB S= MB_LM > > >>> > > MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam NIS' > > >>> > > '--enable-auth-digest=3Dfile' > > >>> '--enable-external-acl-helpers=3Dfile_userip > > >>> > > time_quota unix_group' '--enable-auth-negotiate=3Dkerberos wrap= per' > > >>> > > '--enable-auth-ntlm=3Dfake smb_lm' '--enable-storeio=3Daufs dis= kd > rock > > >>> ufs' > > >>> > > '--enable-disk-io=3DDiskThreads DiskDaemon AIO Blocking IpcIo > Mmapped' > > >>> > > '--enable-log-daemon-helpers=3Dfile' > > >>> '--enable-url-rewrite-helpers=3Dfake' > > >>> > > '--enable-storeid-rewrite-helpers=3Dfile' '--prefix=3D/usr/loca= l' > > >>> > > '--mandir=3D/usr/local/man' '--infodir=3D/usr/local/info/' > > >>> > > '--build=3Damd64-portbld-freebsd10.1' > > >>> 'build_alias=3Damd64-portbld-freebsd10.1' > > >>> > > 'CC=3Dcc' 'CPPFLAGS=3D' 'CXX=3Dc++' 'CXXFLAGS=3D-O2 -pipe > -fstack-protector > > >>> > > -fno-strict-aliasing ' 'CPP=3Dcpp' --enable-ltdl-convenience > > >>> > > > > >>> > > According to this options, intercept is enabled ... Then, I > don't > > >>> > > understand why it doesn't works ... > > >>> > > > > >>> > > -- > > >>> > > Greetings, > > >>> > > C. L. Martinez > > >>> > > _______________________________________________ > > >>> > > freebsd-questions@freebsd.org mailing list > > >>> > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > > >>> > > To unsubscribe, send any mail to " > > >>> > > freebsd-questions-unsubscribe@freebsd.org" > > >>> > > > > >>> > > >>> -- > > >>> Greetings, > > >>> C. L. Martinez > > >>> _______________________________________________ > > >>> freebsd-questions@freebsd.org mailing list > > >>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions > > >>> To unsubscribe, send any mail to " > > >>> freebsd-questions-unsubscribe@freebsd.org" > > >>> > > >> > > >> > > > > > -- > Greetings, > C. L. Martinez > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jun 29 17:27:43 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B44BB86E98 for ; Wed, 29 Jun 2016 17:27:43 +0000 (UTC) (envelope-from emailblastingservice@tk41.elegantemailmarketing.com) Received: from tk41.elegantemailmarketing.com (tk41.elegantemailmarketing.com [185.119.81.41]) by mx1.freebsd.org (Postfix) with ESMTP id 5DC5826A1 for ; Wed, 29 Jun 2016 17:27:42 +0000 (UTC) (envelope-from emailblastingservice@tk41.elegantemailmarketing.com) Received: from tk41.elegantemailmarketing.com (unknown [118.184.25.50]) by tk41.elegantemailmarketing.com (Postfix) with ESMTPA id 3B52D1BED1 for ; Wed, 29 Jun 2016 13:27:12 -0400 (EDT) DMARC-Filter: OpenDMARC Filter v1.3.1 tk41.elegantemailmarketing.com 3B52D1BED1 Authentication-Results: tk41.elegantemailmarketing.com; dmarc=none header.from=tk41.elegantemailmarketing.com Authentication-Results: tk41.elegantemailmarketing.com; spf=pass smtp.mailfrom=emailblastingservice@tk41.elegantemailmarketing.com DKIM-Filter: OpenDKIM Filter v2.10.3 tk41.elegantemailmarketing.com 3B52D1BED1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tk41.elegantemailmarketing.com; s=tk41; t=1467221235; bh=lU2YpwYdLKcHM1O/s+/AwLxImwCNkVefefXBvLZijfo=; h=Reply-To:From:To:Subject:Date:From; b=p1T/5QSLzf7k9JGBfLSoBVLX0bJse5Hw3xtqk11CUT6UnqRknfBTizRPLOz4l0Z86 TLa8gGbZ8SKwKypGDok8xAlTfGUzqFxkCCIOKBpdvXRB/6jnUVnsCgXviSKmQ9/iMA KvwiN7FnZgg4fhBQEaV+4YXqTxsxmQeQx0iMoFwg= Reply-To: Message-ID: <43CD5E8DC79B47DF70E26BB25AA4AAF7@tk41.elegantemailmarketing.com> From: "SMTP service" To: Subject: Re:SMTP for unlimited emails/discount offer arrival Date: Thu, 30 Jun 2016 01:27:09 +0800 MIME-Version: 1.0 X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 17:27:43 -0000 SGVsbG8NCk5vdyB3ZSBhcmUgZG9pbmcgcHJvbW90aW9uIGZvciBiZWxvdzogYnVsayBtYWlsaW5n IHNlcnZlcg0KUGFja2FnZSBvbmU6DQpTTVRQIHNlcnZlciBhY2NvdW50ICg5OVVTRC9Nb250aCkN CjEtZGVkaWNhdGVkIHNlcnZlciBhbmQgZGVkaWNhdGVkIElQOw0KMi1SRE5TLCBTUEYsIERLSU0s IERNQVJDIGltcGxlbWVudGVkOw0KMy11bmxpbWl0ZWQgZW1haWwgdm9sdW1lDQozLXVubGltaXRl ZCBlbWFpbCB2b2x1bWUNClRoaXMgcGFja2FnZSBvbmx5IHByb3ZpZGUgc210cCBhY2NvdW50IChp bmNsdWRlIGVtYWlsIGFkZHJlc3MsIHVzZXJuYW1lLCBwYXNzd29yZCBhbmQgc210cCBhY2NvdW50 KSwgY3VzdG9tZXIgc2hvdWxkIHVzZSBSRFAgc3VjaCBhcyB0dXJibyBtYWlsZXIvYW1zL3NlbmRi bGFzdGVyIGluIHRoZWlyIG93biBjb21wdXRlcg0KDQogDQpQYWNrYWdlIHR3bzoNClNNVFAgc2Vy dmVyIGluc3RhbGxlZCB3ZWItYmFzZWQgbWFpbGluZyBzb2Z0d2FyZSAoMTU1VVNEL01vbnRoKQ0K MS1kZWRpY2F0ZWQgc2VydmVyIGFuZCBkZWRpY2F0ZWQgSVA7DQoyLVJETlMsIFNQRiwgREtJTSwg RE1BUkMgaW1wbGVtZW50ZWQ7DQozLXVubGltaXRlZCBlbWFpbCB2b2x1bWUNCjMtdW5saW1pdGVk IGVtYWlsIHZvbHVtZQ0KNC1JbnRlcnNwaXJlIEVtYWlsIE1hcmtldGVyIGxhdGVzdCB2ZXJzaW9u IGluc3RhbGxlZA0KVGhpcyBwYWNrYWdlIHByb3ZpZGUgd2ViLWJhc2VkIGVtYWlsIHNlbmRpbmcg c29mdHdhcmUsIHlvdSBjYW4gZmluaXNoIGFsbCBvcGVyYXRpb24gb24gd2Vic2l0ZSwgbm90IG5l ZWQgUkRQLg0KDQogDQogDQpXZWxjb21lIGFkZCBteSBTa3lwZSBJRDogbGpzYW5pdGFyeTE5OTgg Zm9yIGRldGFpbHMgYW5kIGRlbW8gdHJpYWwgdXNlLg0KIA0KIA0KQmVzdCByZWdhcmRzLCANClNt YXJ0IFdvbmcNCk1hbmFnaW5nIERpcmVjdG9yDQpTTUFSVCBPTkxJTkUgTUFSS0VUSU5HIElOQy4N CkVtYWlsOiBwbGVhc2UgcmVwbHkgdG8gdGhpcyBlbWFpbCBkaXJlY3RseSBvciBzZW5kIGFueSBp bnF1aXJ5IHRvIHNhbGVzQGxqc2FuaXRhcnkuY29tDQpTS1lQRTogTEpTQU5JVEFSWTE5OTgNCiAN CiA= From owner-freebsd-questions@freebsd.org Wed Jun 29 19:29:17 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 217ABB86A7F for ; Wed, 29 Jun 2016 19:29:17 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA HLL ISSUER 01" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E7334282A for ; Wed, 29 Jun 2016 19:29:16 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id F309160FB4 for ; Wed, 29 Jun 2016 15:29:08 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bMk2FGcQOYQV for ; Wed, 29 Jun 2016 15:29:07 -0400 (EDT) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id D639A6121F for ; Wed, 29 Jun 2016 15:29:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1467228546; bh=6XGx9RSGXQXDJ0e/ysY/myTLQNOdjmCoJvKO6HSwmaU=; h=Date:Subject:From:To:Reply-To; b=vUkSkSC0fsDVkv85L7opbCmWJkNX6QuM6XuwUnv7htdSlIGStGtfB+9qM6yXH6yu/ lMww5ixF2vzZW9bLiEuN+KBV47EQR9G+pBdwxuDQDVXR01z0kiZKEANd611fx5W54h eUqHST8dVRysqbDZJkk1Eq675Y3yELISVoBiYqEkTv0WVDnbszwcYeFiDNWyhpLaGa ebBG7JBZx5AgaiUdS5yrN3cdxPo60Zy1A2QUp5Is+t3BNxxB2L5Kp4l+dFSYu7vTQL ut8/Fx68XPkUaJj1uhU70XpoQBU/1X/CoHU/CAbht7lSA7ENpPgHTyO/AfLcXPn3nW Lnw7N5BhENEbA== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Wed, 29 Jun 2016 15:29:06 -0400 Message-ID: <507faaa143f44914123ceea16521bc03.squirrel@webmail.harte-lyne.ca> Date: Wed, 29 Jun 2016 15:29:06 -0400 Subject: Samba43 on FreeBSD-10.3 From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 19:29:17 -0000 All the information that I have found respecting configuring a Samba43 AD-DC is to install the Microsoft Remote Administration Server Tools and use them. However when I try to connect to the samba domain I have set up then I get this error message: Cannot find an available server in the DOMAIN-NAME that is running the Active directory Web Service (ADWS). I have checked and both the DOMAIN.harte-lyne.ca and host.DOMAIN.harte-lyne.ca resolve correctly using DNS from the work station running RAST. How is this problem dealt with? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Wed Jun 29 20:32:47 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E777FB860DF for ; Wed, 29 Jun 2016 20:32:47 +0000 (UTC) (envelope-from btv1==988d1ff825d==noc@hdk5.net) Received: from spamfilter.netenterprise.net (relay1.netenterprise.net [64.29.90.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "spamfilter.netenterprise.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF5E020A3 for ; Wed, 29 Jun 2016 20:32:46 +0000 (UTC) (envelope-from btv1==988d1ff825d==noc@hdk5.net) X-ASG-Debug-ID: 1467232360-0a94c50eaab8dd0001-jLrpzn Received: from IMAIL5.netenterprise.net (imail5.netenterprise.net [64.29.90.135]) by spamfilter.netenterprise.net with ESMTP id gFthWcHuuXU8dIXu (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Jun 2016 10:32:40 -1000 (HST) X-Barracuda-Envelope-From: noc@hdk5.net X-Barracuda-RBL-Trusted-Forwarder: 64.29.90.135 X-ASG-Whitelist: Client Received: from ponolei.intra.net [72.235.61.32] by IMAIL5.netenterprise.net with ESMTP (SMTPD-12.5.3.93) id b24f0003c1ed9209; Wed, 29 Jun 2016 10:32:40 -1000 Message-ID: <57743068.6010502@hdk5.net> X-Barracuda-Effective-Source-IP: udp017597uds.hawaiiantel.net[72.235.61.32] X-Barracuda-Apparent-Source-IP: 72.235.61.32 X-Barracuda-RBL-IP: 72.235.61.32 Date: Wed, 29 Jun 2016 10:32:40 -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: Polytropon CC: "freebsd-questions@FreeBSD.org" Subject: Re: network hook up for Win 10 laptop on Freebsd References: <5772D3C8.1050902@hdk5.net> <5772EB8A.5090908@hdk5.net> <19599.128.135.52.6.1467150299.squirrel@cosmo.uchicago.edu> <61537.76.193.17.2.1467174398.squirrel@cosmo.uchicago.edu> <20160629064410.dcd5b8ef.freebsd@edvax.de> X-ASG-Orig-Subj: Re: network hook up for Win 10 laptop on Freebsd In-Reply-To: <20160629064410.dcd5b8ef.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: imail5.netenterprise.net[64.29.90.135] X-Barracuda-Start-Time: 1467232360 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA X-Barracuda-URL: https://spamfilter.netenterprise.net:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 3159 X-Virus-Scanned: by bsmtpd at netenterprise.net X-Barracuda-BRTS-Status: 1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 20:32:48 -0000 Polytropon wrote: > On Tue, 28 Jun 2016 23:26:38 -0500 (CDT), Valeri Galtsev wrote: > >> On Tue, June 28, 2016 10:05 pm, Warren Block wrote: >> >>> On Tue, 28 Jun 2016, Valeri Galtsev wrote: >>> >>> >>>> They didn't change anything. You can create two kind of ports (at least >>>> two). Namely: you can create "raw" port, and give there IP address of >>>> the >>>> printer. This printer has to listen to "jetdirect" port (9100) for this >>>> to >>>> work. The other way is if printer listens to LPD ("spooler") port (port >>>> number 515) (or better: print server, - I usually set up all printer to >>>> only accept print jobs from print server - easier to manage especially >>>> if >>>> something is wrong with some client). In this case, you need to enable >>>> two >>>> services on Windows side (through "turning on features"): UNIX printing >>>> related: "LPD Print Service" and "LPR Port Monitr". This teaches Windows >>>> talk UNIX printing language, you then create local port of type LPD (and >>>> put remote LPD server's IP there). I found this to be the most robust >>>> way >>>> of having Windows printing to UNIX print queues. >>>> >>> I've used raw port 9100 printing to HP JetDirects many times. It's nice >>> because it has no other dependencies. >>> >>> >> I agree if you have one to 5 or so clients. If you have 100+ clients, you >> better don't let them print directly to the printer, and instead make them >> print through print server. One client acts up (say, hits consistently bug >> in postscript implementation of the printer that knocks printer out; and >> keeps re-sending print job every time you power cycle printer) - you will >> see the world of difference. You can pinpoint what comes from which client >> if all goes through print server. UNIX machine as print server will >> provide you with much more than brainless embedded system printers have >> inside. But for few clients, as you said, the effort is not worth it. >> > > There is another advantage, in case it should matter: > > You can have all your clients submit PS (using a generic Postscript > driver) and let the UNIX machine postprocess it into whatever format > is needed for the printer. Most normal printers speak PS, PCL and PDF > (or at least one of those), but if you're unlucky and your printer > doesn't, and maybe even worse, MICROS~1 decided your printer became > "too old" and there is no driver support anymore, this might be an > extendable solution: You got a new printer? No client-side change is > needed, just a different postprocessing filter on the server, which > is O(1) instead of O(n). ;-) > > > > many thanks for all the ideas put forward. We have an old b&w hp printer on the Freebsd server and have a wireless link to another color at least a few ways to go on this now. ~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~ Supporting FreeBSD - UNIX Computer O/S email: noc@hdk5.net email: alplant.att.net ."All that's really worth doing is what we do for others" - Lewis Carrol From owner-freebsd-questions@freebsd.org Thu Jun 30 04:01:29 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5501B8764E for ; Thu, 30 Jun 2016 04:01:29 +0000 (UTC) (envelope-from emailblastingservice@us98.emailblastingonline.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CBD242B20 for ; Thu, 30 Jun 2016 04:01:29 +0000 (UTC) (envelope-from emailblastingservice@us98.emailblastingonline.com) Received: by mailman.ysv.freebsd.org (Postfix) id CB237B8764D; Thu, 30 Jun 2016 04:01:29 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CAC44B8764C for ; Thu, 30 Jun 2016 04:01:29 +0000 (UTC) (envelope-from emailblastingservice@us98.emailblastingonline.com) Received: from us98.emailblastingonline.com (us98.emailblastingonline.com [47.88.24.98]) by mx1.freebsd.org (Postfix) with ESMTP id 976692B1F for ; Thu, 30 Jun 2016 04:01:29 +0000 (UTC) (envelope-from emailblastingservice@us98.emailblastingonline.com) Received: from us98.emailblastingonline.com (unknown [118.184.25.50]) by us98.emailblastingonline.com (Postfix) with ESMTPA id 665541C348F for ; Thu, 30 Jun 2016 12:00:29 +0800 (CST) DMARC-Filter: OpenDMARC Filter v1.3.1 us98.emailblastingonline.com 665541C348F Authentication-Results: us98.emailblastingonline.com; dmarc=none header.from=us98.emailblastingonline.com Authentication-Results: us98.emailblastingonline.com; spf=pass smtp.mailfrom=emailblastingservice@us98.emailblastingonline.com DKIM-Filter: OpenDKIM Filter v2.10.3 us98.emailblastingonline.com 665541C348F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=us98.emailblastingonline.com; s=us98; t=1467259234; bh=qEV+6o5wvDWjTefCW07/blbxWWKAtQy87s6yoya2yso=; h=Reply-To:From:To:Subject:Date:From; b=VSjh+wm9Jd0i/bUIQlYMo9BB1lwujUHgjDJMx3fKDjboZAJl/WAwZKriy8oXhurim 6nhlrHwLZpoGPdvLHKnXssLoPdT8n6TWflmNf1m3s1EvAVzMfJjSGWUnwe+7WNSeB/ 28HfeC6KcyVkl/QPhp9rZy16W0V9r/bKylU/lL1M= Reply-To: Message-ID: From: "SMTP service" To: Subject: Re:SMTP server for email marketing/special offer now! Date: Thu, 30 Jun 2016 12:00:21 +0800 MIME-Version: 1.0 X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 04:01:30 -0000 SGVsbG8NCk5vdyB3ZSBhcmUgZG9pbmcgcHJvbW90aW9uIGZvciBiZWxvdzogYnVsayBtYWlsaW5n IHNlcnZlcg0KUGFja2FnZSBvbmU6DQpTTVRQIHNlcnZlciBhY2NvdW50ICg5OVVTRC9Nb250aCkN CjEtZGVkaWNhdGVkIHNlcnZlciBhbmQgZGVkaWNhdGVkIElQOw0KMi1SRE5TLCBTUEYsIERLSU0s IERNQVJDIGltcGxlbWVudGVkOw0KMy11bmxpbWl0ZWQgZW1haWwgdm9sdW1lDQozLXVubGltaXRl ZCBlbWFpbCB2b2x1bWUNClRoaXMgcGFja2FnZSBvbmx5IHByb3ZpZGUgc210cCBhY2NvdW50IChp bmNsdWRlIGVtYWlsIGFkZHJlc3MsIHVzZXJuYW1lLCBwYXNzd29yZCBhbmQgc210cCBhY2NvdW50 KSwgY3VzdG9tZXIgc2hvdWxkIHVzZSBSRFAgc3VjaCBhcyB0dXJibyBtYWlsZXIvYW1zL3NlbmRi bGFzdGVyIGluIHRoZWlyIG93biBjb21wdXRlcg0KDQogDQpQYWNrYWdlIHR3bzoNClNNVFAgc2Vy dmVyIGluc3RhbGxlZCB3ZWItYmFzZWQgbWFpbGluZyBzb2Z0d2FyZSAoMTU1VVNEL01vbnRoKQ0K MS1kZWRpY2F0ZWQgc2VydmVyIGFuZCBkZWRpY2F0ZWQgSVA7DQoyLVJETlMsIFNQRiwgREtJTSwg RE1BUkMgaW1wbGVtZW50ZWQ7DQozLXVubGltaXRlZCBlbWFpbCB2b2x1bWUNCjMtdW5saW1pdGVk IGVtYWlsIHZvbHVtZQ0KNC1JbnRlcnNwaXJlIEVtYWlsIE1hcmtldGVyIGxhdGVzdCB2ZXJzaW9u IGluc3RhbGxlZA0KVGhpcyBwYWNrYWdlIHByb3ZpZGUgd2ViLWJhc2VkIGVtYWlsIHNlbmRpbmcg c29mdHdhcmUsIHlvdSBjYW4gZmluaXNoIGFsbCBvcGVyYXRpb24gb24gd2Vic2l0ZSwgbm90IG5l ZWQgUkRQLg0KDQogDQogDQpXZWxjb21lIGFkZCBteSBTa3lwZSBJRDogbGpzYW5pdGFyeTE5OTgg Zm9yIGRldGFpbHMgYW5kIGRlbW8gdHJpYWwgdXNlLg0KIA0KIA0KQmVzdCByZWdhcmRzLCANClNt YXJ0IFdvbmcNCk1hbmFnaW5nIERpcmVjdG9yDQpTTUFSVCBPTkxJTkUgTUFSS0VUSU5HIElOQy4N CkVtYWlsOiBwbGVhc2UgcmVwbHkgdG8gdGhpcyBlbWFpbCBkaXJlY3RseSBvciBzZW5kIGFueSBp bnF1aXJ5IHRvIHNhbGVzQGxqc2FuaXRhcnkuY29tDQpTS1lQRTogTEpTQU5JVEFSWTE5OTgNCiAN CiA= From owner-freebsd-questions@freebsd.org Thu Jun 30 07:18:02 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD4BDB86667 for ; Thu, 30 Jun 2016 07:18:02 +0000 (UTC) (envelope-from bounce-mc.us13_56657121.317381-freebsd-questions=FreeBSD.org@mail67.atl11.rsgsv.net) Received: from mail67.atl11.rsgsv.net (mail67.atl11.rsgsv.net [205.201.133.67]) by mx1.freebsd.org (Postfix) with ESMTP id A523B2FFC for ; Thu, 30 Jun 2016 07:18:02 +0000 (UTC) (envelope-from bounce-mc.us13_56657121.317381-freebsd-questions=FreeBSD.org@mail67.atl11.rsgsv.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=k1; d=mail67.atl11.rsgsv.net; h=Subject:From:Reply-To:To:Date:Message-ID:List-ID:List-Unsubscribe:Sender:Content-Type:MIME-Version; i=abbywen1=3D126.com@mail67.atl11.rsgsv.net; bh=7aTI8hObLh0cONeMMUmLijW4WrA=; b=LntpP/xe0bDMRgBgc9N6Dd6d+LBolAA3xWiWYUp0lQC14AsL9z3UVGKPCcx8bCRuS+AVyPaosdcb 3ctKLiuAMJnkoAHE+c3DtlC7gH59IPV7Tzd8t2j8cynPnzWTxrbvBhHG5E4zfT85mV92iyy1l10o pmw2wz6c6vsP2RwOa8g= Received: from (127.0.0.1) by mail67.atl11.rsgsv.net id hej3qk1lgi0n for ; Thu, 30 Jun 2016 07:18:00 +0000 (envelope-from ) Subject: =?utf-8?Q?Save=20your=20cost=20with=20Kingfast=20SSD?= From: =?utf-8?Q?Abby=20|=20Kingfast=20SSD?= Reply-To: =?utf-8?Q?Abby=20|=20Kingfast=20SSD?= To: Date: Thu, 30 Jun 2016 07:18:00 +0000 Message-ID: X-Mailer: MailChimp Mailer - **CID5b0bf11266deb4a19cf7** X-Campaign: mailchimpff6f7e858a570f49a56fed270.5b0bf11266 X-campaignid: mailchimpff6f7e858a570f49a56fed270.5b0bf11266 X-Report-Abuse: Please report abuse for this campaign here: http://www.mailchimp.com/abuse/abuse.phtml?u=ff6f7e858a570f49a56fed270&id=5b0bf11266&e=deb4a19cf7 X-MC-User: ff6f7e858a570f49a56fed270 X-Feedback-ID: 56657121:56657121.317381:us13:mc X-Accounttype: ff Sender: "Abby | Kingfast SSD" x-mcda: FALSE MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="fixed" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 07:18:03 -0000 View this email in your browser (http://us13.campaign-archive1.com/?u=3Dff= 6f7e858a570f49a56fed270&id=3D5b0bf11266&e=3Ddeb4a19cf7) ** A Letter From The Sales Manager ------------------------------------------------------------ Dear Friend=2C Good Day. This is Abby from Kingfast SSD=2C we are one of the leading and profession= al manufacturer of High-Tech SSD(Solid State Drive) products in China. We= provide a wide range of SSD products with different interfaces/capacities= to Consumer=2C enterprise and industrial customers. Our Advantage: KingFast provide 3 year warranty for ALL SSDs. KingFast built a longterm business with customers around the world. KingFast would like to join you to get win win. Please contact us if any interest for more information about product=2C da= ta sheet and prices. Thank and Regards=2C Sincerely=2C Abby Wen Sales Manager=2C Kingfast SSD Manufacturer =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=3D=3D=3D=3D=3D=3D Copyright =C2=A9 2016=2C Kingfast SSD Manufacturer=2C All rights reserved. Our mailing address is: abby@kfast.com.cn | abbyw@kfast.com.cn This email was sent to freebsd-questions@FreeBSD.org (mailto:freebsd-questions@FreeBSD.org) why did I get this? (http://kfast.us13.list-manage.com/about?u=3Dff6f7e858= a570f49a56fed270&id=3Ddbd878d97a&e=3Ddeb4a19cf7&c=3D5b0bf11266) unsubscr= ibe from this list (http://kfast.us13.list-manage.com/unsubscribe?u=3Dff6f= 7e858a570f49a56fed270&id=3Ddbd878d97a&e=3Ddeb4a19cf7&c=3D5b0bf11266) upd= ate subscription preferences (http://kfast.us13.list-manage.com/profile?u= =3Dff6f7e858a570f49a56fed270&id=3Ddbd878d97a&e=3Ddeb4a19cf7) Shenzhen New KingFast Storage Technology CO.=2CLtd . #601=2C2rd building= =2CBlock A=2C Bao'an Internet industry park=2CBao'An District . Shenzhen= =2C 44 518000 . China Email Marketing Powered by MailChimp http://www.mailchimp.com/monkey-rewards/?utm_source=3Dfreemium_newsletter&= utm_medium=3Demail&utm_campaign=3Dmonkey_rewards&aid=3Dff6f7e858a570f49a56= fed270&afl=3D1 From owner-freebsd-questions@freebsd.org Thu Jun 30 08:58:31 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6A65B87E4D for ; Thu, 30 Jun 2016 08:58:31 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: from box-hlm-03.niklaas.eu (box-hlm-03.niklaas.eu [IPv6:2a02:2770:15:0:21a:4aff:feaa:e902]) by mx1.freebsd.org (Postfix) with ESMTP id 91DBC2D03 for ; Thu, 30 Jun 2016 08:58:31 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: by box-hlm-03.niklaas.eu (Postfix, from userid 1001) id 8A583385519; Thu, 30 Jun 2016 10:58:29 +0200 (CEST) Date: Thu, 30 Jun 2016 10:58:29 +0200 From: Niklaas Baudet von Gersdorff To: freebsd-questions@freebsd.org Cc: Ralf Mardorf Subject: Re: Reading PDFs on the command line (with misc/lesspipe) Message-ID: <20160630085829.GK24197@box-hlm-03.niklaas.eu> Mail-Followup-To: freebsd-questions@freebsd.org, Ralf Mardorf MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tKtFalx5NIx0HZ72" Content-Disposition: inline In-Reply-To: <20160629134031.e8b13544.freebsd@edvax.de> <20160629113644.GA2144@hephaistos.local> <20160629121600.GA46483@becker.bs.l> <1467203049.832.7.camel@rocketmail.com> <20160629140316.6b0e9b4a.freebsd@edvax.de> <20160629132633.106636d7@archlinux.localdomain> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 08:58:31 -0000 --tKtFalx5NIx0HZ72 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Polytropon [2016-06-29 14:03 +0200] : [...] > > > http://www.manualpages.de/FreeBSD/FreeBSD-ports-9.0-RELEASE/man1/pdft= otext.1.html > > > http://unix.stackexchange.com/questions/41362/view-pdf-file-in-termin= al > > > > > > I wonder how it is handled assumed "some.pdf" is just a scanned pictu= re > > > of text converted to pdf ;). > >=20 > > /usr/local/libexec/xpdf/pdfimages is installed by default by package > > xpdf. Thanks for the second link. That made me realise that misc/lesspipe uses xpdf's pdftotext to view the PDF. I thought that I wouldn't need xpdf's utils if I had lesspipe installed. > And then use ImageMagick to convert it to ASCII art. :-) Haha. Great idea. However, I simply want to get a glimpse of what is written in the PDF before I start downloading it with scp. Bertram Scharpf [2016-06-29 14:16 +0200] : > I do the following (from the shell, not yet from mutt): >=20 > - Forward X to the desktop machine: >=20 > xto() { > local h l d > h=3D${1:-desktop} > l=3D`hostname -f` > d=3D":0" > ssh $h " > export DISPLAY=3D$d > xhost $l 1>&2 > xauth extract - $d > " | xauth -f ~/.Xauthority merge - > export DISPLAY=3D$h$d > } >=20 > - Run xpdf. >=20 > Of course, this requires xpdf and a lot of X client stuff to > be installed on the (anything but X) server. This looks very interesting. Thanks for sharing! Niklaas --tKtFalx5NIx0HZ72 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXdN8vAAoJEG2fODeJrIU/BgcP/jI/JTtlyOZAv+3mh4G96H6G aXR2Z/i3XHAxzBgS0XytbvEALG7LFKs/oZSr1EasR/Cw+owfsYRRfkGOGpn9m+1W 1+hZ0S/l4iHExViXDHq42omkIhnhKmKPvVEBPgOoO2FC2zq3vGxpvM1IhDfIDPXX 6dck3aHSoK9UxBGk/mYIOpZI1T8RztR4Xa+fARJ7+pLJkDXjTqJjOUeaUkq3oAlG ZL00MQl2FQ5JVwEKD/2U3iFhvqcqmZi866SPkjb3eKUeLFIdb6Z7n1MKZwTr/nvB ulsQ7sh4Ca1mM8rI1E1GLKjBCTTg4fiAi+Kj71gEhBHbIMOG71ZPKeS3BDYXZUdT IxFRCkqyJWrnZwj6WAgaDiS6hWFQ1cnApDiUUsxOyx0CQyBv4Gdp8U3+b4MImzDO Q4A95+i6bLm3eVdWfR58I1T8u95nBvsigxSaWb49a/B9vY7vYmAzLyyBKUz1+sc0 Ei2/j3kDhD5srXelMSnbbbGz7exEeSbZONCyXsdzSCqP2zGLZdThet2TEIjomzPU EIFGLAUyYhqUKhVqCO/ZpPAdqWJQdLAB77cDUIoyHcT+mqAlehq/ektqSk9VnVaR uRVXngIq4r19yMEKz6U0bob1F0nb1svVGAV60gV70qLBkCBiIHuVRvUnv/dKtSuQ Cy0zYPJTlpx3MBW/Hf/C =OkQk -----END PGP SIGNATURE----- --tKtFalx5NIx0HZ72-- From owner-freebsd-questions@freebsd.org Thu Jun 30 14:26:44 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8B3C7B86B21 for ; Thu, 30 Jun 2016 14:26:44 +0000 (UTC) (envelope-from rnmtw70@yandex.com) Received: from forward12h.cmail.yandex.net (forward12h.cmail.yandex.net [IPv6:2a02:6b8:0:f35::9d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 469762E46 for ; Thu, 30 Jun 2016 14:26:44 +0000 (UTC) (envelope-from rnmtw70@yandex.com) Received: from smtp4h.mail.yandex.net (smtp4h.mail.yandex.net [IPv6:2a02:6b8:0:f05::118]) by forward12h.cmail.yandex.net (Yandex) with ESMTP id 10DCA21598 for ; Thu, 30 Jun 2016 17:26:32 +0300 (MSK) Received: from smtp4h.mail.yandex.net (localhost [127.0.0.1]) by smtp4h.mail.yandex.net (Yandex) with ESMTP id D0F9D2C3400 for ; Thu, 30 Jun 2016 17:26:32 +0300 (MSK) Received: by smtp4h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id cYCVxjJRgc-QWC4vxHO; Thu, 30 Jun 2016 17:26:32 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1467296792; bh=C97N6GMrsUtw208SMm5nmRrt9knqZ5yQe1Xx4YNdsN4=; h=To:From:Subject:Message-ID:Date:User-Agent:MIME-Version: Content-Type:Content-Transfer-Encoding; b=Q6smy5x3sjDRxVZZq5FlpzMkR+FL43mJtBVw85/GpjNeMXojSut++SBCB5Ous4IS+ v4Fi/CTFs+SsukhPeXNWeqmIrkMzDU7T+K6BmenjBPbAh6TxlUOEEX3hwQrE8hKJ6H CRrxd4EshnNtD80luCVEG+agWOeFrfK2G9YhfaAg= Authentication-Results: smtp4h.mail.yandex.net; dkim=pass header.i=@yandex.com X-Yandex-Suid-Status: 1 0 To: freebsd-questions@freebsd.org From: Rolf Nielsen Subject: Firewall setup for high security for OpenVPN client Message-ID: <16f62435-ad9c-9da4-b7ca-5aade5d00ec4@yandex.com> Date: Thu, 30 Jun 2016 16:26:31 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 14:26:44 -0000 Hello everyone, I've been using OpenVPN for some time, and now I'm looking to strengthen the security a bit more. I have disabled WebRTC in Firefox, and I'm using the VPN service's DNS servers, rather than the ones of my ISP, and now it's time for the firewall. I will of course need to communicate with the VPN server, and I'm assuming that goes on the physical interface. Inbound, outbound or both? TCP, UDP or both? I get my IP from my ISP through DHCP. Need I open anything up for that? Inbound, outbound or both? I'm guessing ports 67 and possibly 68, UDP. Anything other than that on the physical interface? Apart from any servers I may be running, what should I open up on the tun interface? And last, but not least, what should I absolutely close? In case it matters here, I'm currently using ipfw. Since most people tend to recommend pf, I believe I will move to that one, but I'll do that later. Since I'm used to ipfw, it's more likely that I understand what I'm doing, and once I understand that, I'll consider learning how to do it in pf instead. -- Vänligen / Sincerely, Rolf Nielsen From owner-freebsd-questions@freebsd.org Thu Jun 30 15:32:44 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 43B7DB860AD for ; Thu, 30 Jun 2016 15:32:44 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0DF3C2A35 for ; Thu, 30 Jun 2016 15:32:43 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-209-65.knology.net [216.186.209.65] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id u5UFIOWk019711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 30 Jun 2016 10:18:25 -0500 To: FreeBSD Questions !!!! From: "William A. Mahaffey III" Subject: ipfw question Message-ID: <4328ba01-de71-65c1-24d6-2931d3e7f6d9@hiwaay.net> Date: Thu, 30 Jun 2016 10:23:54 -0453.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 15:32:44 -0000 I had an oddball occurence this A.M. I sat down to check E-mails & surf & found that I couldn't recover any E-mails. I poked around a bit & found some entries in /var/log/security indicating that traffic from my DNS server was being dropped by the firewall: [root@kabini1, ~, 10:04:03am] 587 % tail -20 /var/log/security ; date May 31 09:18:41 kabini1 last message repeated 6 times Jun 19 13:23:53 kabini1 kernel: ipfw: 65500 Deny TCP 163.172.131.88:993 192.168.0.27:47277 in via re0 Jun 19 13:23:57 kabini1 last message repeated 4 times Jun 26 08:34:13 kabini1 kernel: ipfw: 65500 Deny TCP 212.47.233.86:9001 192.168.0.27:28210 in via re0 Jun 26 08:34:17 kabini1 last message repeated 4 times Jun 26 09:23:39 kabini1 kernel: ipfw: 65500 Deny TCP 193.0.6.135:43 192.168.0.27:60843 in via re0 Jun 26 09:23:42 kabini1 last message repeated 3 times Jun 27 09:47:14 kabini1 kernel: ipfw: 65500 Deny TCP 212.47.233.86:9001 192.168.0.27:54688 in via re0 Jun 27 09:47:18 kabini1 last message repeated 4 times Jun 27 11:55:17 kabini1 kernel: ipfw: 65500 Deny TCP 212.47.233.86:9001 192.168.0.27:45670 in via re0 Jun 27 11:55:21 kabini1 last message repeated 4 times Jun 30 08:24:04 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:46927 in via re0 Jun 30 08:25:30 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:44681 in via re0 Jun 30 08:25:32 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:29687 in via re0 Jun 30 08:27:20 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:51623 in via re0 Jun 30 08:34:56 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:46764 in via re0 Jun 30 08:34:57 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:24172 in via re0 Jun 30 08:48:04 kabini1 kernel: ipfw: 65500 Deny TCP 163.172.131.88:993 192.168.0.27:42869 in via re0 Jun 30 08:48:46 kabini1 last message repeated 17 times Jun 30 08:50:41 kabini1 last message repeated 5 times Thu Jun 30 10:04:07 MCDT 2016 [root@kabini1, ~, 10:04:07am] 588 % I haven't made any changes to my firewall setup in months, maybe a year or more (so long that I found I had forgotten what to do initially :-/ ). I eventually recalled where to tweak & added a line to my rc.fiewwall file & restarted ipfw. It spit out all rules, including my new one, which implied that I hadn't botched the syntax. E-mail went back to working & all is well. However, I want to make sure I didn't open up more than I think I am. My rule list as echoed out from the restart is below: [root@kabini1, /etc, 8:52:59am] 467 % service ipfw restart net.inet.ip.fw.enable: 1 -> 0 net.inet6.ip6.fw.enable: 1 -> 0 Flushed all rules. 00100 allow ip from any to any via lo0 00200 deny ip from any to 127.0.0.0/8 00300 deny ip from 127.0.0.0/8 to any 00400 deny ip from any to ::1 00500 deny ip from ::1 to any 00600 allow ipv6-icmp from :: to ff02::/16 00700 allow ipv6-icmp from fe80::/10 to fe80::/10 00800 allow ipv6-icmp from fe80::/10 to ff02::/16 00900 allow ipv6-icmp from any to any ip6 icmp6types 1 01000 allow ipv6-icmp from any to any ip6 icmp6types 2,135,136 01100 check-state 01200 allow tcp from me to any established 01300 allow tcp from me to any setup keep-state 01400 allow udp from me to any keep-state 01500 allow icmp from me to any keep-state 01600 allow ipv6-icmp from me to any keep-state 01700 allow udp from 0.0.0.0 68 to 255.255.255.255 dst-port 67 out 01800 allow udp from any 67 to me dst-port 68 in 01900 allow udp from any 67 to 255.255.255.255 dst-port 68 in 02000 allow udp from fe80::/10 to me dst-port 546 in 02100 allow udp from any 53 to me in # <-------- my new rule !!!! 02200 allow icmp from any to me icmptypes 8 02300 allow ipv6-icmp from any to any ip6 icmp6types 128,129 02400 allow icmp from any to me icmptypes 3,4,11,13 02500 allow ipv6-icmp from any to any ip6 icmp6types 3 02600 allow tcp from 192.168.0.0/24 to me 02700 allow udp from 192.168.0.0/24 to me 02800 allow udp from 192.168.0.0/24 513 to 192.168.0.0/24 dst-port 513 02900 allow udp from 192.168.0.0/24 525 to 192.168.0.0/24 dst-port 525 65000 count ip from any to any 65100 deny { tcp or udp } from any to any dst-port 111,137,138 in 65200 deny { tcp or udp } from 192.168.0.0/24 to me 65300 deny ip from any to 255.255.255.255 65400 deny ip from any to 224.0.0.0/24 in 65500 deny udp from any to any dst-port 520 in 65500 deny tcp from any 80,443 to any dst-port 1024-65535 in 65500 deny log logamount 50000 ip from any to any Firewall rules loaded. [root@kabini1, /etc, 8:53:11am] 468 % with my new rule marked. I noticed that the dropped DNS packets were destined for oddball ports on my box, so I have no port specification in my rule. Am I just allowing DNS replies back in, or (humorously/tragically) more :-) ? This box is my daily driver workstation desktop, *NOT* a public server, so I want it locked down as much as possible. [root@kabini1, /etc, 8:53:11am] 468 % uname -a FreeBSD kabini1.local 9.3-RELEASE-p33 FreeBSD 9.3-RELEASE-p33 #0: Wed Jan 13 17:55:39 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [root@kabini1, /etc, 10:22:42am] 469 % TIA & have a good one. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@freebsd.org Thu Jun 30 16:29:35 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5037CB871CC for ; Thu, 30 Jun 2016 16:29:35 +0000 (UTC) (envelope-from frank@woodcruft.co.uk) Received: from b.painless.aa.net.uk (b.painless.aa.net.uk [81.187.30.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1DF4525AA for ; Thu, 30 Jun 2016 16:29:34 +0000 (UTC) (envelope-from frank@woodcruft.co.uk) Received: from woodcruft.co.uk ([81.187.49.114] helo=lime.woodcruft.co.uk) by b.painless.aa.net.uk with esmtp (Exim 4.77) (envelope-from ) id 1bIeDv-00071f-Gg; Thu, 30 Jun 2016 16:49:51 +0100 Received: by lime.woodcruft.co.uk (Postfix, from userid 1001) id 2CCA049FDD; Thu, 30 Jun 2016 16:49:51 +0100 (BST) Date: Thu, 30 Jun 2016 16:49:51 +0100 From: Frank Shute To: Nagy =?iso-8859-1?B?TOFzemzz?= Zsolt Cc: freebsd-questions@freebsd.org Subject: Re: local unbound SERVFAIL without visible reason Message-ID: <20160630154950.GB51480@lime.woodcruft.co.uk> Reply-To: Frank Shute Mail-Followup-To: Nagy =?iso-8859-1?B?TOFzemzz?= Zsolt , freebsd-questions@freebsd.org References: <20f8f670-5e19-bad0-c59e-c06daa1b799a@shopzeus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20f8f670-5e19-bad0-c59e-c06daa1b799a@shopzeus.com> 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 10.3-RELEASE-p4 amd64 X-Organisation: 'woodcruft.co.uk' User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 16:29:35 -0000 On Wed, Jun 29, 2016 at 12:06:29PM +0200, Nagy Lszl Zsolt wrote: > > System: FreeBSD 10.2-RELEASE > > /etc/rc.conf contains: > > local_unbound_enable="yes" > > My forwarders are: 80.249.168.18 and 87.229.108.201 > > Unbound seems to be running and listening: > > # sockstat -l4 | grep :53 > unbound unbound 69063 5 udp4 127.0.0.1:53 *:* > unbound unbound 69063 6 tcp4 127.0.0.1:53 *:* > > Ports are open to the world (but they should not be): > > # ipfw show | grep 2025 > 02025 12 750 allow udp from any to me dst-port 53 > 02025 0 0 allow tcp from any to me dst-port 53 > > Forwarder was setup correctly: > > # cat /var/unbound/forward.conf > forward-zone: > name: . > forward-addr: 80.249.168.18 > forward-addr: 87.229.108.201 I've got this in unbound.conf: forward-zone: name: "." forward-addr: 8.8.4.4 # Google forward-addr: 8.8.8.8 # Google Note that the period is quoted; maybe that's the problem. > > But it is not working! > > # host google.com 127.0.0.1 > Using domain server: > Name: 127.0.0.1 > Address: 127.0.0.1#53 > Aliases: > > Host google.com not found: 2(SERVFAIL) > > It DOES work with any of the forwarders: > > # host google.com 80.249.168.18 > Using domain server: > Name: 80.249.168.18 > Address: 80.249.168.18#53 > Aliases: > > google.com has address 216.58.209.206 > google.com has IPv6 address 2a00:1450:4001:810::200e > google.com mail is handled by 30 alt2.aspmx.l.google.com. > google.com mail is handled by 20 alt1.aspmx.l.google.com. > google.com mail is handled by 40 alt3.aspmx.l.google.com. > google.com mail is handled by 50 alt4.aspmx.l.google.com. > google.com mail is handled by 10 aspmx.l.google.com. > > There is no error message in log/messages. By default, unbound uses syslog. In the server section of unbound.conf(5), I set: verbosity: 1 which spits out any errors to: /var/log/debug.log You can crank verbosity up to 4 but it shouldn't be necessary. > > How should I find the problem? > HTH. Regards, -- Frank https://woodcruft.co.uk/ From owner-freebsd-questions@freebsd.org Thu Jun 30 21:53:11 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD5FEB8753E for ; Thu, 30 Jun 2016 21:53:11 +0000 (UTC) (envelope-from bsd_atog@comcast.net) Received: from resqmta-ch2-03v.sys.comcast.net (resqmta-ch2-03v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "resqmta-po-01v.sys.comcast.net", Issuer "COMODO RSA Organization Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B28AE279E for ; Thu, 30 Jun 2016 21:53:11 +0000 (UTC) (envelope-from bsd_atog@comcast.net) Received: from resomta-ch2-12v.sys.comcast.net ([69.252.207.108]) by resqmta-ch2-03v.sys.comcast.net with SMTP id IjtSbYkyaSVL4IjtWb7pb4; Thu, 30 Jun 2016 21:53:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1467323590; bh=krDA/BU3FLWmpVKmGzHvwR8FXbYsl3fWm5MXuy50DXo=; h=Received:Received:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type; b=nSIYmAYMcQNtRcl1rNd6UmY4irAx2tie3HZ84OWZa28WCXJAg5Eqe58ZkwSA4W+DP NMOdvOxnP3QXVJKr4lfzUw1DdrpXN8Ek2T9zCIWev2NigIrqpuj3lYSrltypwkf+5H 1BbV/T86f80oCr4VvWGc2BTc8ZDrkBQAt22HD19ZU4SHKHGpnHyD6djNFHMfZkdj18 F9QdAA4MatIozaw8xSUNyh4qzdN8YeK/eIz7gFuzeC+uJeNO2eFmyrKWwv8r6jz/z8 vcEgJG/KZe26SMXMG5zLVmYmQlXY+PICE96Iuw8oRhOShCd59XoZD/D8CKJCuDmp5X 5RgNrWEch4DXg== Received: from KoggyBSD.org ([68.60.93.182]) by resomta-ch2-12v.sys.comcast.net with comcast id D9t91t0083w4emU019tAvi; Thu, 30 Jun 2016 21:53:10 +0000 Date: Thu, 30 Jun 2016 17:52:43 -0400 From: Allen To: freebsd-questions@freebsd.org Subject: "Simple" Languages in FreeBSD Message-ID: <20160630175243.063e07a7@KoggyBSD.org> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; i386-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 21:53:12 -0000 Hi, I've been using FreeBSD on and off since 4.0-CURRENT, which seems like almost a lifetime ago now, heh. I'm currently using FreeBSD 10.0-RELEASE and even though I've gotten my latest order from the FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch of other stuff for myself and my Wife) I'm not ready to upgrade yet since I've gotten my system working how I like (Got WindowMaker set up, and FVWM2, and some other stuff set up) so I'm using it for now. Anyway, in all these years that have passed using FreeBSD and a bunch of Linux distros, I never had time or patience enough to learn Programming Languages, and I'm getting more and more to the part where I'm thinking it's a good idea more so now than before. I have the book "Learning Perl" that I bought a while back, and I've also downloaded a bunch of stuff for Perl, Python, Ruby, and others, so I'm just curious on basically what Languages anyone here would recommend. Literally anyone who responds with an opinion, I'm interested. Being easy to learn for someone who isn't great with Math but does understand Unix is a plus but not a requirement. I was starting to teach myself Ruby on a Linux box I was using for a while and Ruby did seem to be going OK, but a lot of the FreeBSD Books I've bought recommend Perl, and I've also had just as many reasons from people saying to try Python, so basically any Language and what reasons would be great. -Allen From owner-freebsd-questions@freebsd.org Thu Jun 30 22:00:24 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0728CB87671 for ; Thu, 30 Jun 2016 22:00:24 +0000 (UTC) (envelope-from felixphew0@gmail.com) Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com [IPv6:2607:f8b0:400e:c03::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C8B3428DD for ; Thu, 30 Jun 2016 22:00:23 +0000 (UTC) (envelope-from felixphew0@gmail.com) Received: by mail-pa0-x230.google.com with SMTP id bz2so32044171pad.1 for ; Thu, 30 Jun 2016 15:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=Dgzhf6B1iStIEP9jUhWthgy8AUk8mILeNDQicyZU5Cw=; b=MjDH5EiUBYkUwPxBwjHwWQC1EMouGm+rUY+nJqwmjFSbmirQBDx1SH83oJRPB/PB2J s3dN52XUj01+gAa1OR9t2ZPrqqSuOeNlgpZ9hY2ORevRSP98ODzE5NzG0e/bTTSwtuqj K8zkpBgyNxj6FbiM7AVwiPUWxyYUF0G2jg5dQUzcb433BZYnaQ7cKgQrH6EG7DF1j1zu GObGdJf+hgQw9OUY3TBSk2DHFo306SXPCWDCzOoSBY+XC9XjvJtkYgZmfKaii4QmZ2KJ yOEfmleaiiyJTyi2TZf0QL4z1W4jgskfoKDPIDUKE/3813zLsyJebJfYDNyYBolSa/5U B5mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=Dgzhf6B1iStIEP9jUhWthgy8AUk8mILeNDQicyZU5Cw=; b=AkSnAJvyaC7BVpAkLi8TsB7XwP74l23AZmWH2dxhX2ChBqvPUKiQ2EBBK0UkWXbhBY TDFm0M3plcMG9vP402bbwNXf33BzYkFYIYY/u7Ue0qv7IAnXG3LSq+DrGgIGO6y0053C Yxsd42JTK9C/FBWnpeh4RjjOOXPnpkT0a/GiuBj167HJfYyTjGW6iLBtizTqHjwBzUUm 0AMAXBdqVdZQNyHICsv2rUPKgtRebeXCuq8MyJPAYmiTvp7EgX9Orsdf2kk2/10vkX8E mZjU+0qxHAErzT2WnEuVlUamy5CBC5Us3fTXL9/DxP66IYAn4sH1EjLK7DDZen9RSjwZ 0eLw== X-Gm-Message-State: ALyK8tLM67lLp9AmSUG+s7r2F1liv+sBonOy+eW93/5+QM0Ssw9rzoJ+seWueX8rYwQcmA== X-Received: by 10.66.253.38 with SMTP id zx6mr25264060pac.19.1467324023032; Thu, 30 Jun 2016 15:00:23 -0700 (PDT) Received: from [192.168.0.33] (c49-177-162-140.frank4.vic.optusnet.com.au. [49.177.162.140]) by smtp.gmail.com with ESMTPSA id s12sm12818pfj.57.2016.06.30.15.00.20 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jun 2016 15:00:22 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_2BC9644A-4E4A-4807-82ED-A3F1A50CC065"; protocol="application/pkcs7-signature"; micalg=sha1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: "Simple" Languages in FreeBSD From: Felix Friedlander In-Reply-To: <20160630175243.063e07a7@KoggyBSD.org> Date: Fri, 1 Jul 2016 08:00:19 +1000 Cc: freebsd-questions@FreeBSD.org Message-Id: References: <20160630175243.063e07a7@KoggyBSD.org> To: Allen X-Mailer: Apple Mail (2.3124) X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 22:00:24 -0000 --Apple-Mail=_2BC9644A-4E4A-4807-82ED-A3F1A50CC065 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 1 Jul 2016, at 07:52, Allen wrote: >=20 > Hi, >=20 > I've been using FreeBSD on and off since 4.0-CURRENT, which seems like > almost a lifetime ago now, heh. I'm currently using FreeBSD > 10.0-RELEASE and even though I've gotten my latest order from the > FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch of > other stuff for myself and my Wife) I'm not ready to upgrade yet since > I've gotten my system working how I like (Got WindowMaker set up, and > FVWM2, and some other stuff set up) so I'm using it for now. >=20 > Anyway, in all these years that have passed using FreeBSD and a bunch > of Linux distros, I never had time or patience enough to learn > Programming Languages, and I'm getting more and more to the part where > I'm thinking it's a good idea more so now than before. >=20 > I have the book "Learning Perl" that I bought a while back, and I've > also downloaded a bunch of stuff for Perl, Python, Ruby, and others, = so > I'm just curious on basically what Languages anyone here would > recommend. >=20 > Literally anyone who responds with an opinion, I'm interested. Being > easy to learn for someone who isn't great with Math but does = understand > Unix is a plus but not a requirement. I was starting to teach myself > Ruby on a Linux box I was using for a while and Ruby did seem to be > going OK, but a lot of the FreeBSD Books I've bought recommend Perl, > and I've also had just as many reasons from people saying to try > Python, so basically any Language and what reasons would be great. >=20 > -Allen Hi Allen, Perl may have been the language of choice 10 or even 5 years ago, but = unless you have a specific reason I would wholeheartedly recommend = Python as a first language. It=E2=80=99s incredibly easy, very powerful, = the standard library is amazing (you can implement a full SMTP server or = web server in about 10 lines of Python) and it=E2=80=99s available on a = huge number of platforms, including FreeBSD. I find perl to be ugly, and ruby like a slightly worse, more complex = Python, but that=E2=80=99s just my opinion, and if you learn any of = these 3 languages you will not go too far wrong. Of course, this is coming from the guy who decided to teach himself C++ = as his first programming language, so make of that what you will. --=20 Felix Friedlander > --Apple-Mail=_2BC9644A-4E4A-4807-82ED-A3F1A50CC065 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIVRTCCBHUw ggNdoAMCAQICEEOXQUtz9dNAT9/4o8H24nQwDQYJKoZIhvcNAQELBQAwdTELMAkGA1UEBhMCSUwx FjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24g QXV0aG9yaXR5MSMwIQYDVQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQTAeFw0xNjA2MDEy MTI0MDFaFw0xOTA5MDEyMTI0MDFaMEQxHTAbBgNVBAMMFGZlbGl4cGhldzBAZ21haWwuY29tMSMw IQYJKoZIhvcNAQkBFhRmZWxpeHBoZXcwQGdtYWlsLmNvbTCBmzAQBgcqhkjOPQIBBgUrgQQAIwOB hgAEAd9iFZSiKobJSFRViu+9sLMgg5zUq9CfxF3DZwJ+iH8xzgBlhUPOxe91JdDWvOkglLgyFClD Cm44k80Ix0nct4NZAQRJF/4HNHj/e1CWgVdX1cmaMUVUNJzOmUkDMS5UIUuivc3nDahDMRRetpb6 X9FcS5JruyQYuL6OATo3n2S7B1fYo4IBuDCCAbQwDgYDVR0PAQH/BAQDAgSQMB0GA1UdJQQWMBQG CCsGAQUFBwMCBggrBgEFBQcDBDAJBgNVHRMEAjAAMB0GA1UdDgQWBBQlrXF+Akg4ge5ewzRibZIS h6oFUTAfBgNVHSMEGDAWgBQkgWw5Yb5JD4+3G0YrySi1J0htaDBvBggrBgEFBQcBAQRjMGEwJAYI KwYBBQUHMAGGGGh0dHA6Ly9vY3NwLnN0YXJ0c3NsLmNvbTA5BggrBgEFBQcwAoYtaHR0cDovL2Fp YS5zdGFydHNzbC5jb20vY2VydHMvc2NhLmNsaWVudDEuY3J0MDgGA1UdHwQxMC8wLaAroCmGJ2h0 dHA6Ly9jcmwuc3RhcnRzc2wuY29tL3NjYS1jbGllbnQxLmNybDAfBgNVHREEGDAWgRRmZWxpeHBo ZXcwQGdtYWlsLmNvbTAjBgNVHRIEHDAahhhodHRwOi8vd3d3LnN0YXJ0c3NsLmNvbS8wRwYDVR0g BEAwPjA8BgsrBgEEAYG1NwECBTAtMCsGCCsGAQUFBwIBFh9odHRwczovL3d3dy5zdGFydHNzbC5j b20vcG9saWN5MA0GCSqGSIb3DQEBCwUAA4IBAQB4L+dIT8i+Z7dpqzqzNGWd469m52XU56bvI+4G Rq0znM47YXB4xfYb+KxM7gjlz4E0TiYCjyJrrujh0rCdwvGujMe/m1m1aEk3KIDYEYKFJHf96h8O QFVDV97+JfNvk+CeATx7gCehsuy5t78FevRaOxRgjM1rf5wtZ7XSYjVchlrm/yP+07Mc556hP9Lg cnIxWw8D5WgmEeqvRS+m6xpfSE3Qj/QogHLg/4R9WFYcxFBBZ+2kWSAcUe9p2juMFf+WiKQDrI42 YbQ064/NXG/pblDazWZSCD5a6uuKty3Tz6+I5oxQFbhCJ9RZEBNoj5UFapCCW7nlPrOYkbCadcYe MIIE/DCCA+SgAwIBAgIQULUWCtYOYNqlthC1T1qZwjANBgkqhkiG9w0BAQsFADB1MQswCQYDVQQG EwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3RhcnRDb20gQ2VydGlmaWNh dGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEgQ2xpZW50IENBMB4XDTE2 MDIxOTA4NTMyMFoXDTE3MDIxOTA4NTMyMFowRDEdMBsGA1UEAwwUZmVsaXhwaGV3MEBnbWFpbC5j b20xIzAhBgkqhkiG9w0BCQEWFGZlbGl4cGhldzBAZ21haWwuY29tMIIBIjANBgkqhkiG9w0BAQEF AAOCAQ8AMIIBCgKCAQEAqSwmql2ZNm263z8qWGBCuHdZh9f6yXDVYyWzsVMTxq8Ul+V7gihLSpX9 RsPXp1cgAxXFgkcS/lXxUIRyHynkGfAxu7BSDWY8wCc0ziI8k+3uOimBbaO7AaMCVuEjugZod6f2 pD7c2vHJkZLpd992FJG+Ix7JdjYZmKymFycF0CAmDRbOT2hkK4vY4kfweUWSL2KHQBGp67Dozy6k 5/0EU6V/WbtH6b62s49jfcTG+2M2u0F6sNxNwy2JO4b+Gh1TxEczWpbW3S6h/XID1yX7iCEz2d3G 89KaM3koJ5C/aM7Gs8OSrm9NRipXs8Tb6NBOIjJOTQAsZc4HfvM8nxkq3QIDAQABo4IBtzCCAbMw DgYDVR0PAQH/BAQDAgSwMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDBDAJBgNVHRMEAjAA MB0GA1UdDgQWBBT4Ct+cb4CwfLIocP5Bp3byyG+GRzAfBgNVHSMEGDAWgBQkgWw5Yb5JD4+3G0Yr ySi1J0htaDBvBggrBgEFBQcBAQRjMGEwJAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLnN0YXJ0c3Ns LmNvbTA5BggrBgEFBQcwAoYtaHR0cDovL2FpYS5zdGFydHNzbC5jb20vY2VydHMvc2NhLmNsaWVu dDEuY3J0MDgGA1UdHwQxMC8wLaAroCmGJ2h0dHA6Ly9jcmwuc3RhcnRzc2wuY29tL3NjYS1jbGll bnQxLmNybDAfBgNVHREEGDAWgRRmZWxpeHBoZXcwQGdtYWlsLmNvbTAjBgNVHRIEHDAahhhodHRw Oi8vd3d3LnN0YXJ0c3NsLmNvbS8wRgYDVR0gBD8wPTA7BgsrBgEEAYG1NwECBDAsMCoGCCsGAQUF BwIBFh5odHRwOi8vd3d3LnN0YXJ0c3NsLmNvbS9wb2xpY3kwDQYJKoZIhvcNAQELBQADggEBAHra VwI+T0mG9dvL7k9q/URkfiQzK6UVodRHhi1JNOfOVWdSNjVgLc964SVsm92DsZR1WS2mlkinjJZE 16+x2tmAskYFe8imtKk55OM1AT/9f5mGju+pNj+wYxGJHEmZOLj/MMbrcCxLMoVXzFxWL3Jpy3zk n4IwpEmK/7H8AeLnhEOJoYuhSQ6leIxnY6/yFF1CX4/32WC8MaFXCyQYy2dxl+a+ZxJ/JFqLiBGm xcTwQqiqPPNQ+vdpOEGJUFVj72KoSheXe3bKSr7TS/u6olvQk6bwAfOTsGT+1FjD/vluzZ0G7Cas ky7ZQFUv/Z9zZy4sOOcxig1XydXzGsqbhgkwggXiMIIDyqADAgECAhBrp4p9CteI1lEK+Vnk57Th MA0GCSqGSIb3DQEBCwUAMH0xCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSsw KQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWduaW5nMSkwJwYDVQQDEyBTdGFy dENvbSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0xNTEyMTYwMTAwMDVaFw0zMDEyMTYwMTAw MDVaMHUxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSkwJwYDVQQLEyBTdGFy dENvbSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEjMCEGA1UEAxMaU3RhcnRDb20gQ2xhc3MgMSBD bGllbnQgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9fdr3w6J9g/Zbgv3bW1+u Hht1wLUZr5gkrLtXedg17AkefMyUGwrQdvwObhajcVmnKVxhrUwkZPXRAwZZosRHfEIi5FH7x6SV /8Sp5lZEuiMnvMFG2MzLA84J6Ws5T4NfXZ0qn4TPgnr3X2vPVS51M7Ua9nIJgn8jvTra4eyyQzxv uA/GZwKg7VQfDCmCS+kICslYYWgXOMt2xlsSslxLce0CGWRsT8EpMyt1iDflSjXZIsE7m1uTyHaK ZspMLyIyz6mySu8j8BWWHpChNNeTrFuhVfrOAyDPFJVUvKZCLKBhibTLloyy+LatoWELrjdI4a8S tZY8+dIR9t4APXGzAgMBAAGjggFkMIIBYDAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0lBBYwFAYIKwYB BQUHAwIGCCsGAQUFBwMEMBIGA1UdEwEB/wQIMAYBAf8CAQAwMgYDVR0fBCswKTAnoCWgI4YhaHR0 cDovL2NybC5zdGFydHNzbC5jb20vc2ZzY2EuY3JsMGYGCCsGAQUFBwEBBFowWDAkBggrBgEFBQcw AYYYaHR0cDovL29jc3Auc3RhcnRzc2wuY29tMDAGCCsGAQUFBzAChiRodHRwOi8vYWlhLnN0YXJ0 c3NsLmNvbS9jZXJ0cy9jYS5jcnQwHQYDVR0OBBYEFCSBbDlhvkkPj7cbRivJKLUnSG1oMB8GA1Ud IwQYMBaAFE4L7xqkQFulF2mHMMo0aEPQQa7yMD8GA1UdIAQ4MDYwNAYEVR0gADAsMCoGCCsGAQUF BwIBFh5odHRwOi8vd3d3LnN0YXJ0c3NsLmNvbS9wb2xpY3kwDQYJKoZIhvcNAQELBQADggIBAIvj 94fsAYuErQ8BAluc4SMnIwS9NPBwAm5SH9uh2NCXTq7im61g7F1LIiNI/+wq37fUuaMbz4g7VarK QTgf8ubs0p7NZWcIe7Bvem2AWaXBsxsaRTYw5kG3DN8pd1hSEUuFoTa7DmNeFe8tiK1BrL3rbA/m 48jp4AiFXgvxprJrW7izsyetOrRHPbkW4Y07v29MdhaPv3u1JELyszXqOzjIYo4sWlC8iDQXwgSW /ntvWy2n4LuiaozlCfXl149tKeqvwlvrla2Yklue/quWp9j9ou4T/OY0CXMuY+B8wNK0ohd2D4Sh gFlMSjzAFRoHGKF81snTr2d1A7Ew02oF6UQyCkC2aNNsK5cWOojBar5c7HplX9aHYUCZouxIeU28 SONJAxnATgR4cJ2jrpmYSz/kliUJ46S6UpVDo/ebn9c6PaM/XtDYCCaM/7XX6wc3s++sbQ7CtCn1 Ax7df6ufQbwyO0V+oFa9H0KAsjHMzcwk3EV2B2NLatidKE/m7G+rB9m+FlVgIiSp0mGlg43QO9Kh 1+JqvTCIzv2bJJkmPMLQJNuKKwHNL8F4GGp6jbAV+WL+LDeGfVcq8DHS3LrD+xyYEXQBiqZEdiPV OMxLDSUCXsDO0uCWpaNQ8j6y6S9p0xE/Ga0peVLadVHhqf9nXqKaxnr358VgfrxzUIrvOaOjMIIF 4jCCA8qgAwIBAgIQa6eKfQrXiNZRCvlZ5Oe04TANBgkqhkiG9w0BAQsFADB9MQswCQYDVQQGEwJJ TDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlm aWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkw HhcNMTUxMjE2MDEwMDA1WhcNMzAxMjE2MDEwMDA1WjB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMN U3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkx IzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEgQ2xpZW50IENBMIIBIjANBgkqhkiG9w0BAQEFAAOC AQ8AMIIBCgKCAQEAvX3a98OifYP2W4L921tfrh4bdcC1Ga+YJKy7V3nYNewJHnzMlBsK0Hb8Dm4W o3FZpylcYa1MJGT10QMGWaLER3xCIuRR+8eklf/EqeZWRLojJ7zBRtjMywPOCelrOU+DX12dKp+E z4J6919rz1UudTO1GvZyCYJ/I7062uHsskM8b7gPxmcCoO1UHwwpgkvpCArJWGFoFzjLdsZbErJc S3HtAhlkbE/BKTMrdYg35Uo12SLBO5tbk8h2imbKTC8iMs+pskrvI/AVlh6QoTTXk6xboVX6zgMg zxSVVLymQiygYYm0y5aMsvi2raFhC643SOGvErWWPPnSEfbeAD1xswIDAQABo4IBZDCCAWAwDgYD VR0PAQH/BAQDAgEGMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDBDASBgNVHRMBAf8ECDAG AQH/AgEAMDIGA1UdHwQrMCkwJ6AloCOGIWh0dHA6Ly9jcmwuc3RhcnRzc2wuY29tL3Nmc2NhLmNy bDBmBggrBgEFBQcBAQRaMFgwJAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLnN0YXJ0c3NsLmNvbTAw BggrBgEFBQcwAoYkaHR0cDovL2FpYS5zdGFydHNzbC5jb20vY2VydHMvY2EuY3J0MB0GA1UdDgQW BBQkgWw5Yb5JD4+3G0YrySi1J0htaDAfBgNVHSMEGDAWgBROC+8apEBbpRdphzDKNGhD0EGu8jA/ BgNVHSAEODA2MDQGBFUdIAAwLDAqBggrBgEFBQcCARYeaHR0cDovL3d3dy5zdGFydHNzbC5jb20v cG9saWN5MA0GCSqGSIb3DQEBCwUAA4ICAQCL4/eH7AGLhK0PAQJbnOEjJyMEvTTwcAJuUh/bodjQ l06u4putYOxdSyIjSP/sKt+31LmjG8+IO1WqykE4H/Lm7NKezWVnCHuwb3ptgFmlwbMbGkU2MOZB twzfKXdYUhFLhaE2uw5jXhXvLYitQay962wP5uPI6eAIhV4L8aaya1u4s7MnrTq0Rz25FuGNO79v THYWj797tSRC8rM16js4yGKOLFpQvIg0F8IElv57b1stp+C7omqM5Qn15dePbSnqr8Jb65WtmJJb nv6rlqfY/aLuE/zmNAlzLmPgfMDStKIXdg+EoYBZTEo8wBUaBxihfNbJ069ndQOxMNNqBelEMgpA tmjTbCuXFjqIwWq+XOx6ZV/Wh2FAmaLsSHlNvEjjSQMZwE4EeHCdo66ZmEs/5JYlCeOkulKVQ6P3 m5/XOj2jP17Q2AgmjP+11+sHN7PvrG0OwrQp9QMe3X+rn0G8MjtFfqBWvR9CgLIxzM3MJNxFdgdj S2rYnShP5uxvqwfZvhZVYCIkqdJhpYON0DvSodfiar0wiM79mySZJjzC0CTbiisBzS/BeBhqeo2w Ffli/iw3hn1XKvAx0ty6w/scmBF0AYqmRHYj1TjMSw0lAl7AztLglqWjUPI+sukvadMRPxmtKXlS 2nVR4an/Z16imsZ69+fFYH68c1CK7zmjozGCAtQwggLQAgEBMIGJMHUxCzAJBgNVBAYTAklMMRYw FAYDVQQKEw1TdGFydENvbSBMdGQuMSkwJwYDVQQLEyBTdGFydENvbSBDZXJ0aWZpY2F0aW9uIEF1 dGhvcml0eTEjMCEGA1UEAxMaU3RhcnRDb20gQ2xhc3MgMSBDbGllbnQgQ0ECEEOXQUtz9dNAT9/4 o8H24nQwCQYFKw4DAhoFAKCCAZkwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0B CQUxDxcNMTYwNjMwMjIwMDE5WjAjBgkqhkiG9w0BCQQxFgQUwhIuK67yI9odPiUbK5zHEzURlFAw gZoGCSsGAQQBgjcQBDGBjDCBiTB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRk LjEpMCcGA1UECxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0 YXJ0Q29tIENsYXNzIDEgQ2xpZW50IENBAhBQtRYK1g5g2qW2ELVPWpnCMIGcBgsqhkiG9w0BCRAC CzGBjKCBiTB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMg U3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNz IDEgQ2xpZW50IENBAhBQtRYK1g5g2qW2ELVPWpnCMAkGByqGSM49AgEEgYswgYgCQgCStM3PkpD1 umzEOgdZpUrrVYT66q49YqOBKc7ywOqMuRvUXBE/J51C2yYo6NvmTuAYDkLWKBIzjy+fnMljHMyg EAJCAX5Z0YYQLR5PaCVAuMTasJ2YZtm83LqsAJiGnS6dDlWyiWUgqUFuA0ZRMP/JRPYG0uTkzwqm vT2vAECyOJaZ1LvJAAAAAAAA --Apple-Mail=_2BC9644A-4E4A-4807-82ED-A3F1A50CC065-- From owner-freebsd-questions@freebsd.org Fri Jul 1 00:36:15 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB2E4B87F92 for ; Fri, 1 Jul 2016 00:36:15 +0000 (UTC) (envelope-from mike.jeays@rogers.com) Received: from nm10-vm8.access.bullet.mail.gq1.yahoo.com (nm10-vm8.access.bullet.mail.gq1.yahoo.com [216.39.63.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C1D952C78 for ; Fri, 1 Jul 2016 00:36:15 +0000 (UTC) (envelope-from mike.jeays@rogers.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1467333212; bh=eeYyH9Ci31ao/8OHtUaTcUHeEwbuJgj0437JP25r9+E=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From:Subject; b=a5GfXWIvOh3BkIU8KfSbiLuqljSo0l06XYLyk5I4YpG4L7EPwWHE6xc4LYk9OzG3gLTucEyTsuH4x16pa8hfUXH7mlUtS0djIiWW4N4iUgwBRqkUHKHrlH7UTPngcib09ij8SzNYVzu2NA3LUwAohiMQKr4gwzs98r5+4GYHBGNxrRG1qhgUeY0EI7alZSf6CvOKDn9IAoaOknVywHFSVCp5RByIm68W9T8nvUYg3tYJ1ilXNDTBLFeqMJl0mdL0CSjj3nC24QjhSnBxip+oEEobys7p/ciwxkDlID8Nt5ZAlmKT+cm/CZELAMKJfAv4g7fd/vM77N0iE/GbywFMVw== Received: from [216.39.60.173] by nm10.access.bullet.mail.gq1.yahoo.com with NNFMP; 01 Jul 2016 00:33:32 -0000 Received: from [67.195.22.117] by tm9.access.bullet.mail.gq1.yahoo.com with NNFMP; 01 Jul 2016 00:33:32 -0000 Received: from [127.0.0.1] by smtp112.sbc.mail.gq1.yahoo.com with NNFMP; 01 Jul 2016 00:33:32 -0000 X-Yahoo-Newman-Id: 583749.52798.bm@smtp112.sbc.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: tQxVJVgVM1kmKKWsy7.p51_ei5mFgBc3OJ6SHpWgjqZ0HcG MCFsX0q0pnhUNjfnWOcrt2dR8H0RcY52mlUARoBHRnvP0IXT7TyCvs9OZ7Ft 7wR.eNx4rQ2RGXHh5EZU3ZyNfmgen4d5jMHlr_5BHDDr2Ettv8bX5ArH32VQ JuVuitS22ro6wgJ5e1eqG8qbI2WhPoJYh6oQNk9FtGxNTOPHDpG99.rLkbvn nxa9SoEcawukSDEWTt67jmgH_gTXFjTxYdCs.aMwdanilmoBbmB6ojqLepli MYdbWptOLHv6sZmQuhStApNhDrp6fydCxZGf5wA4nmCHtqbo.MOpdd5UaE0q YQH4cEeTrUU1yyAofCVgR3.rrXez_cPnifTio3nolPHOqT4rbN9TedondW2C XTpOpTJFOvflNnaDvI1rYjEWvsBUd7j8Sxq3TdlLWa4.PvPi_u2uq1uHHGR3 XhYPAVCJWbDtrjWsD1Yjra0kIfQFZAv_5dwZOf5LeJnojHZ3bs5azum28GeI QV6dgGQfdrj1uiED.AXOhP5m8saenEmcrqJAxQePn9QS42i6BcmKmgPJjWac Stn5_AA-- X-Yahoo-SMTP: N82WFx6swBBjwcHWPFR2CGt6udzA8RPrA.xm0enFFXaK2g-- Message-ID: <1467333210.19603.5.camel@europa> Subject: Re: "Simple" Languages in FreeBSD From: Mike Jeays To: Allen Cc: freebsd-questions@freebsd.org Date: Thu, 30 Jun 2016 20:33:30 -0400 In-Reply-To: <20160630175243.063e07a7@KoggyBSD.org> References: <20160630175243.063e07a7@KoggyBSD.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 00:36:16 -0000 I completely agree with Felix Friedlander. Unless you have strong reasons for picking Perl or Ruby (and it doesn't sound as if you do), Python is easily the best choice these days. It is very easy to get started and the language syntax is very clean, but it is extremely powerful. Don't be put off by the unusual syntax of using alignment to denote structure. It seems like a mickey mouse idea at first sight to those who come from other languages, but it works well and leads to more readable code. It is a strength, not a weakness. On Thu, 2016-06-30 at 17:52 -0400, Allen wrote: > Hi, > > I've been using FreeBSD on and off since 4.0-CURRENT, which seems like > almost a lifetime ago now, heh. I'm currently using FreeBSD > 10.0-RELEASE and even though I've gotten my latest order from the > FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch of > other stuff for myself and my Wife) I'm not ready to upgrade yet since > I've gotten my system working how I like (Got WindowMaker set up, and > FVWM2, and some other stuff set up) so I'm using it for now. > > Anyway, in all these years that have passed using FreeBSD and a bunch > of Linux distros, I never had time or patience enough to learn > Programming Languages, and I'm getting more and more to the part where > I'm thinking it's a good idea more so now than before. > > I have the book "Learning Perl" that I bought a while back, and I've > also downloaded a bunch of stuff for Perl, Python, Ruby, and others, so > I'm just curious on basically what Languages anyone here would > recommend. > > Literally anyone who responds with an opinion, I'm interested. Being > easy to learn for someone who isn't great with Math but does understand > Unix is a plus but not a requirement. I was starting to teach myself > Ruby on a Linux box I was using for a while and Ruby did seem to be > going OK, but a lot of the FreeBSD Books I've bought recommend Perl, > and I've also had just as many reasons from people saying to try > Python, so basically any Language and what reasons would be great. > > -Allen > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jul 1 00:44:56 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0AAFB881F2 for ; Fri, 1 Jul 2016 00:44:56 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from mail.monochrome.org (host-209-190-254-14.client.atlantech.net [209.190.254.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail", Issuer "mail" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 63ABD2FF0 for ; Fri, 1 Jul 2016 00:44:55 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from [192.168.1.11] (tripel [192.168.1.11]) by mail.monochrome.org (8.14.9/8.14.9) with ESMTP id u610Yqoa075621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 30 Jun 2016 20:34:52 -0400 (EDT) (envelope-from chris@monochrome.org) Date: Thu, 30 Jun 2016 20:34:44 -0400 (EDT) From: Chris Hill To: Felix Friedlander cc: Allen , freebsd-questions@FreeBSD.org Subject: Re: "Simple" Languages in FreeBSD In-Reply-To: Message-ID: References: <20160630175243.063e07a7@KoggyBSD.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 00:44:57 -0000 On Fri, 1 Jul 2016, Felix Friedlander wrote: >> On 1 Jul 2016, at 07:52, Allen wrote: >> [ snip ] >> Anyway, in all these years that have passed using FreeBSD and a bunch >> of Linux distros, I never had time or patience enough to learn >> Programming Languages, and I'm getting more and more to the part where >> I'm thinking it's a good idea more so now than before. >> >> I have the book "Learning Perl" that I bought a while back, and I've >> also downloaded a bunch of stuff for Perl, Python, Ruby, and others, so >> I'm just curious on basically what Languages anyone here would >> recommend. >> >> Literally anyone who responds with an opinion, I'm interested. Being >> easy to learn for someone who isn't great with Math but does understand >> Unix is a plus but not a requirement. I was starting to teach myself >> Ruby on a Linux box I was using for a while and Ruby did seem to be >> going OK, but a lot of the FreeBSD Books I've bought recommend Perl, >> and I've also had just as many reasons from people saying to try >> Python, so basically any Language and what reasons would be great. >> >> -Allen > > Hi Allen, > > Perl may have been the language of choice 10 or even 5 years ago, but > unless you have a specific reason I would wholeheartedly recommend > Python as a first language. It?s incredibly easy, very powerful, the > standard library is amazing (you can implement a full SMTP server or > web server in about 10 lines of Python) and it?s available on a huge > number of platforms, including FreeBSD. [ snip ] I'll second Felix's recommendation of Python. I'm only now learning it myself, although I've been doing various kinds of programming "since 'Nam." Python feels extremely flexible and powerful, but I'm sure it has its problems as with any other language. For a book, I've been using 'Introducing Python' by Bill Lubanovic (O'Reilly, ISBN 978-1-449-35936-2). -- Chris Hill chris@monochrome.org ** [ Busy Expunging ] From owner-freebsd-questions@freebsd.org Fri Jul 1 01:13:14 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A369B8870E for ; Fri, 1 Jul 2016 01:13:14 +0000 (UTC) (envelope-from vazquez@g.unicamp.br) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 949E82AD3 for ; Fri, 1 Jul 2016 01:13:13 +0000 (UTC) (envelope-from vazquez@g.unicamp.br) Received: by mail-wm0-x22a.google.com with SMTP id a66so8604471wme.0 for ; Thu, 30 Jun 2016 18:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=g-unicamp-br.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9sD7/F0cuYrAa3ArVwJZKwx6TZ5zCG61ogUp4rv6nkY=; b=fOkrI2hfbM9F5RLIYgaEGkGhosICOxFcgeaypQfrBlxYrLZz4cBK6+kRCpEsDi82eA 0X2j6Fgqetqh0JOlvHdxvpBkDV0ghU8lZTmh4/dAJT8LTHw+383XCom2Rq9BiYMlbURa NVxNE2d61H9r04Ykzb419mTjU57aZyi8Qd2SWMt/STU3hf/GROkIdnedCFxxzgl9EvlR W0thuIqo8Za9hVZe+m2NhX08/JIakroMG8Lak9TVz0749FHImj1MGX+eqVAH/weH6vqi Qeoe081Ji6I9AR7GwgiOD5Vgpj+fjSuUvOo2Wa+M9vT0NwX7c//f3F6koWauwsNPszZk kknA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9sD7/F0cuYrAa3ArVwJZKwx6TZ5zCG61ogUp4rv6nkY=; b=UT4vw8eHofTkWofyaMuOLpb+w8PNsJjI5l+/627CboQBKQ+28CVE3EQFuD86j4IxQe Z5zpcQkattyrGjVgRJUH0c+/SOE3nyqpY/0+2mmj1crf3IW3yJQyK18owLcNhNGaabBP +2xrub8n1UJ9vDlfEts4VW5RhbpN9l0OX8ewy0sBG3WkVkciLjQjrpUBtC68RLT6IaAg 7hSL4hgBelJ1bCxG3tr4CWTomi0BxtniZKfHDqYPL7LUAr2UscsKth2+lFetajzL9754 vUohMCCks3kV8xKIxWuUIl5HhtsssO+dsVLALDTgjHnvaAqpavczJjIRO3K7ezi+QWKI ZVZg== X-Gm-Message-State: ALyK8tKQNUueGaH2ZVb5/m/+X6PCbC3G3lYxIKfellBdz8CyTMzbRE4aQ2Ioq3+5qa6kLzMg2/MqqDcoFZxvbg== X-Received: by 10.28.176.7 with SMTP id z7mr16407072wme.17.1467335591364; Thu, 30 Jun 2016 18:13:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.152.229 with HTTP; Thu, 30 Jun 2016 18:13:10 -0700 (PDT) In-Reply-To: References: <20160630175243.063e07a7@KoggyBSD.org> From: "Pedro A. M. Vazquez" Date: Thu, 30 Jun 2016 22:13:10 -0300 Message-ID: Subject: Re: "Simple" Languages in FreeBSD To: Chris Hill Cc: Felix Friedlander , Allen , freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 01:13:14 -0000 Does FreeBSD needs an 'official' small language? Perl is a mature language I use a lot, Python is very good, Lua is smaller than both and very good too, I'm learning Lua now. *Uma na=C3=A7=C3=A3o "que queria ser moderna" recua no tempo e se coloca ao= lado de Honduras e Paraguai como pa=C3=ADses onde "presidentes eleitos foram afasta= dos de forma question=C3=A1vel", afirmam an=C3=A1lises sobre o impeachment de D= ilma* *na DW Brasil * 2016-06-30 21:34 GMT-03:00 Chris Hill : > On Fri, 1 Jul 2016, Felix Friedlander wrote: > > On 1 Jul 2016, at 07:52, Allen wrote: >>> >>> > [ snip ] > > Anyway, in all these years that have passed using FreeBSD and a bunch >>> of Linux distros, I never had time or patience enough to learn >>> Programming Languages, and I'm getting more and more to the part where >>> I'm thinking it's a good idea more so now than before. >>> >>> I have the book "Learning Perl" that I bought a while back, and I've >>> also downloaded a bunch of stuff for Perl, Python, Ruby, and others, so >>> I'm just curious on basically what Languages anyone here would >>> recommend. >>> >>> Literally anyone who responds with an opinion, I'm interested. Being >>> easy to learn for someone who isn't great with Math but does understand >>> Unix is a plus but not a requirement. I was starting to teach myself >>> Ruby on a Linux box I was using for a while and Ruby did seem to be >>> going OK, but a lot of the FreeBSD Books I've bought recommend Perl, >>> and I've also had just as many reasons from people saying to try >>> Python, so basically any Language and what reasons would be great. >>> >>> -Allen >>> >> >> Hi Allen, >> >> Perl may have been the language of choice 10 or even 5 years ago, but >> unless you have a specific reason I would wholeheartedly recommend Pytho= n >> as a first language. It?s incredibly easy, very powerful, the standard >> library is amazing (you can implement a full SMTP server or web server i= n >> about 10 lines of Python) and it?s available on a huge number of platfor= ms, >> including FreeBSD. >> > > [ snip ] > > I'll second Felix's recommendation of Python. I'm only now learning it > myself, although I've been doing various kinds of programming "since 'Nam= ." > Python feels extremely flexible and powerful, but I'm sure it > has its problems as with any other language. For a book, I've been using > 'Introducing Python' by Bill Lubanovic (O'Reilly, ISBN 978-1-449-35936-2)= . > > -- > Chris Hill chris@monochrome.org > ** [ Busy Expunging ] > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jul 1 01:50:45 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3C75FB88F65 for ; Fri, 1 Jul 2016 01:50:45 +0000 (UTC) (envelope-from jon@radel.com) Received: from radel.com (fly.radel.com [70.184.242.170]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.radel.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E08E228D5 for ; Fri, 1 Jul 2016 01:50:44 +0000 (UTC) (envelope-from jon@radel.com) X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.18.7 (ClamAV engine v0.98.7) Received: from [2001:470:880a:4389:8d89:b7b1:a481:7c97] (account jon@radel.com HELO gravenstein.local) by radel.com (CommuniGate Pro SMTP 6.1.10 _community_) with ESMTPSA id 1102912 for freebsd-questions@freebsd.org; Fri, 01 Jul 2016 00:50:33 +0000 Subject: Re: "Simple" Languages in FreeBSD To: freebsd-questions@freebsd.org References: <20160630175243.063e07a7@KoggyBSD.org> <1467333210.19603.5.camel@europa> From: Jon Radel Message-ID: <6631e951-6191-b07a-1fa0-a35d20142c9b@radel.com> Date: Thu, 30 Jun 2016 20:50:33 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <1467333210.19603.5.camel@europa> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms030500090103040307060806" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 01:50:45 -0000 This is a cryptographically signed message in MIME format. --------------ms030500090103040307060806 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 6/30/16 8:33 PM, Mike Jeays wrote: > I completely agree with Felix Friedlander. Unless you have strong > reasons for picking Perl or Ruby (and it doesn't sound as if you do), > Python is easily the best choice these days. It is very easy to get > started and the language syntax is very clean, but it is extremely > powerful. Don't be put off by the unusual syntax of using alignment to > denote structure. It seems like a mickey mouse idea at first sight to > those who come from other languages, but it works well and leads to mor= e > readable code. It is a strength, not a weakness. I pretty much agree with everyone, but will throw out a few more thoughts= : 1) Don't forget /bin/sh Depending on your problem domain, it really does have its uses. And limitations if you want to do other things. But not to be overlooked if you want to do very basic automation of tasks on a FreeBSD machine. 2) Did I mention that there are trade offs depending on what you want to do? There is no single perfect language for everything. IMHO. (If somebody has the perfect language for everything, please do share.) 3) Personal preference plays a huge role.... Personally I still whip off a perl script now and then, as I learned perl long, long ago, but I find the bolt-on aspect of the object-oriented features make me rather queasy, so when I to deal with something deserving of that formalism, I tend to reach for ruby. I've never really gotten into using python, but that's just the way things worked out for me, rather than due to any distaste for it. But I'll third the notion that if you're starting with no personal baggage and want a general purpose scripting language to do a bit of this and a bit of that, python is a great place to start. Even if ruby is kind of cool. :-) --=20 --Jon Radel jon@radel.com --------------ms030500090103040307060806 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC Cq8wggSvMIIDl6ADAgECAhEA4CPLFRKDU4mtYW56VGdrITANBgkqhkiG9w0BAQsFADBvMQsw CQYDVQQGEwJTRTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4 dGVybmFsIFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290 MB4XDTE0MTIyMjAwMDAwMFoXDTIwMDUzMDEwNDgzOFowgZsxCzAJBgNVBAYTAkdCMRswGQYD VQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoTEUNP TU9ETyBDQSBMaW1pdGVkMUEwPwYDVQQDEzhDT01PRE8gU0hBLTI1NiBDbGllbnQgQXV0aGVu dGljYXRpb24gYW5kIFNlY3VyZSBFbWFpbCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC AQoCggEBAImxDdp6UxlOcFIdvFamBia3uEngludRq/HwWhNJFaO0jBtgvHpRQqd5jKQi3xdh TpHVdiMKFNNKAn+2HQmAbqUEPdm6uxb+oYepLkNSQxZ8rzJQyKZPWukI2M+TJZx7iOgwZOak +FaA/SokFDMXmaxE5WmLo0YGS8Iz1OlAnwawsayTQLm1CJM6nCpToxDbPSBhPFUDjtlOdiUC ISn6o3xxdk/u4V+B6ftUgNvDezVSt4TeIj0sMC0xf1m9UjewM2ktQ+v61qXxl3dnUYzZ7ifr vKUHOHaMpKk4/9+M9QOsSb7K93OZOg8yq5yVOhM9DkY6V3RhUL7GQD/L5OKfoiECAwEAAaOC ARcwggETMB8GA1UdIwQYMBaAFK29mHo0tCb3+sQmVO8DveAky1QaMB0GA1UdDgQWBBSSYWuC 4aKgqk/sZ/HCo/e0gADB7DAOBgNVHQ8BAf8EBAMCAYYwEgYDVR0TAQH/BAgwBgEB/wIBADAd BgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwEQYDVR0gBAowCDAGBgRVHSAAMEQGA1Ud HwQ9MDswOaA3oDWGM2h0dHA6Ly9jcmwudXNlcnRydXN0LmNvbS9BZGRUcnVzdEV4dGVybmFs Q0FSb290LmNybDA1BggrBgEFBQcBAQQpMCcwJQYIKwYBBQUHMAGGGWh0dHA6Ly9vY3NwLnVz ZXJ0cnVzdC5jb20wDQYJKoZIhvcNAQELBQADggEBABsqbqxVwTqriMXY7c1V86prYSvACRAj mQ/FZmpvsfW0tXdeDwJhAN99Bf4Ss6SAgAD8+x1banICCkG8BbrBWNUmwurVTYT7/oKYz1gb 4yJjnFL4uwU2q31Ypd6rO2Pl2tVz7+zg+3vio//wQiOcyraNTT7kSxgDsqgt1Ni7QkuQaYUQ 26Y3NOh74AEQpZzKOsefT4g0bopl0BqKu6ncyso20fT8wmQpNa/WsadxEdIDQ7GPPprsnjJT 9HaSyoY0B7ksyuYcStiZDcGG4pCS+1pCaiMhEOllx/XVu37qjIUgAmLq0ToHLFnFmTPyOInl tukWeh95FPZKEBom+nyK+5swggX4MIIE4KADAgECAhBzVOU8fWu0zQ1gaQ38zgEbMA0GCSqG SIb3DQEBCwUAMIGbMQswCQYDVQQGEwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVy MRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFDT01PRE8gQ0EgTGltaXRlZDFBMD8GA1UE AxM4Q09NT0RPIFNIQS0yNTYgQ2xpZW50IEF1dGhlbnRpY2F0aW9uIGFuZCBTZWN1cmUgRW1h aWwgQ0EwHhcNMTUwMzMwMDAwMDAwWhcNMTgwMzI5MjM1OTU5WjCB+jELMAkGA1UEBhMCVVMx DjAMBgNVBBETBTIyMTUwMQswCQYDVQQIEwJWQTEUMBIGA1UEBxMLU3ByaW5nZmllbGQxGjAY BgNVBAkTETY5MTcgUmlkZ2V3YXkgRHIuMRUwEwYDVQQKEwxKb24gVC4gUmFkZWwxMjAwBgNV BAsTKUlzc3VlZCB0aHJvdWdoIEpvbiBULiBSYWRlbCBFLVBLSSBNYW5hZ2VyMR8wHQYDVQQL ExZDb3Jwb3JhdGUgU2VjdXJlIEVtYWlsMRIwEAYDVQQDEwlKb24gUmFkZWwxHDAaBgkqhkiG 9w0BCQEWDWpvbkByYWRlbC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDe 1Rth9hbQqaODn++C5dVAQH9nM2VH3oPazZufOwmIG2SXI/v3PuemcQQ3JkhmpQ06gYszyXbk TCLsqvEfalYj81jdt/K5lT4aVdj0LfJIWyTcU95V2rsCuHsSvn/PnIcsEtXg53rCtqS4EOtJ 9u3rY2hP8YCiyz1yY3mn4nKJs93MHG4AkXYuVpzfaIADETcVrA+razvXEfnDJXXDZZ9ZuuV1 06yIovOvhYWSlaVu8nrSHJjXFZI2IXwgIeVBoMih3yu6LLj14I/YdZ0rIA8K+UNB+NW6Ri3u wHXBbr4jh3ZqkrqIVUrf1VeybhdrJcdqXdMNHjKDSlCoaxYRbLy1AgMBAAGjggHVMIIB0TAf BgNVHSMEGDAWgBSSYWuC4aKgqk/sZ/HCo/e0gADB7DAdBgNVHQ4EFgQUz9YB10WEfBNHskRw o/0vh8qaQuwwDgYDVR0PAQH/BAQDAgWgMAwGA1UdEwEB/wQCMAAwHQYDVR0lBBYwFAYIKwYB BQUHAwQGCCsGAQUFBwMCMEYGA1UdIAQ/MD0wOwYMKwYBBAGyMQECAQMFMCswKQYIKwYBBQUH AgEWHWh0dHBzOi8vc2VjdXJlLmNvbW9kby5uZXQvQ1BTMF0GA1UdHwRWMFQwUqBQoE6GTGh0 dHA6Ly9jcmwuY29tb2RvY2EuY29tL0NPTU9ET1NIQTI1NkNsaWVudEF1dGhlbnRpY2F0aW9u YW5kU2VjdXJlRW1haWxDQS5jcmwwgZAGCCsGAQUFBwEBBIGDMIGAMFgGCCsGAQUFBzAChkxo dHRwOi8vY3J0LmNvbW9kb2NhLmNvbS9DT01PRE9TSEEyNTZDbGllbnRBdXRoZW50aWNhdGlv bmFuZFNlY3VyZUVtYWlsQ0EuY3J0MCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5jb21vZG9j YS5jb20wGAYDVR0RBBEwD4ENam9uQHJhZGVsLmNvbTANBgkqhkiG9w0BAQsFAAOCAQEAS1Pe +gBgP+SQ/a5I5e7zX0Rg0DhH378LHlZixJgS6LfCPL2edKMUQi3Th9GXfLjdeyeWuMWoz925 ZzBHcPwkBeH+iM/AEhu0Dhi0kop/p66g9tEPJUZ/KDsqxddNDrD0Typn3/33pHTjJEDqydzA gwB0Nn8blpMbqSwT+j8wuPakfLsj1cSDzXrTLLsmIQB7auAyaYXdWyW8Yqw336rLUCvjOUfn qOOyjVsieTw/0PLoOHJaGyez+VtV4eyi6p1SNiX32A+fvxBMzKQLCokE43cXItc9Okzq//f2 fuvGp17r8mpm4OjjM5E2kwsg9bBPUBMR4/sxosKVLn0o9rxlozGCBEEwggQ9AgEBMIGwMIGb MQswCQYDVQQGEwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdT YWxmb3JkMRowGAYDVQQKExFDT01PRE8gQ0EgTGltaXRlZDFBMD8GA1UEAxM4Q09NT0RPIFNI QS0yNTYgQ2xpZW50IEF1dGhlbnRpY2F0aW9uIGFuZCBTZWN1cmUgRW1haWwgQ0ECEHNU5Tx9 a7TNDWBpDfzOARswDQYJYIZIAWUDBAIBBQCgggJhMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0B BwEwHAYJKoZIhvcNAQkFMQ8XDTE2MDcwMTAwNTAzM1owLwYJKoZIhvcNAQkEMSIEICMjA/bz vEduKjjbfOGVKqaghMeWo/yoatsGavSfWQ4wMGwGCSqGSIb3DQEJDzFfMF0wCwYJYIZIAWUD BAEqMAsGCWCGSAFlAwQBAjAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAwDQYIKoZIhvcN AwICAUAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwgcEGCSsGAQQBgjcQBDGBszCBsDCBmzEL MAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2Fs Zm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxQTA/BgNVBAMTOENPTU9ETyBTSEEt MjU2IENsaWVudCBBdXRoZW50aWNhdGlvbiBhbmQgU2VjdXJlIEVtYWlsIENBAhBzVOU8fWu0 zQ1gaQ38zgEbMIHDBgsqhkiG9w0BCRACCzGBs6CBsDCBmzELMAkGA1UEBhMCR0IxGzAZBgNV BAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09N T0RPIENBIExpbWl0ZWQxQTA/BgNVBAMTOENPTU9ETyBTSEEtMjU2IENsaWVudCBBdXRoZW50 aWNhdGlvbiBhbmQgU2VjdXJlIEVtYWlsIENBAhBzVOU8fWu0zQ1gaQ38zgEbMA0GCSqGSIb3 DQEBAQUABIIBAHjVTGBHPy7osRk2Cl4xAP7TdB2zwIojw5Zp0zEYw4GqmeFKAd+abEC5D11p 57wULnZki6eQgAI9oACl7x/0QH+pPRcU/c69cyPyOFTpXJtE4kpB7OCNeTExLnsHQbLrf5VR 0AANOvOm7cA1fnTOPK8nnFpIio8POzpbzSwegTs9Ihrw/tlLHMDWWBFsSRaxDzGwATN3ODFE +RtWYJ87Nd7P+tGAeapKk9gehaM3IUdaSua95yw1b6O9MPAUmfd1aPzxu6mfHK+Iy3NIILcE IqZR+yCOhxShFvbEB7DfjrPtBLIm4RTOkjQdYY3UFrwlT31pu8H10Pk62mw5tq5tyjQAAAAA AAA= --------------ms030500090103040307060806-- From owner-freebsd-questions@freebsd.org Fri Jul 1 06:36:33 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A01C2B8A65C for ; Fri, 1 Jul 2016 06:36:33 +0000 (UTC) (envelope-from andrewlylegould@gmail.com) Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 666252CF1 for ; Fri, 1 Jul 2016 06:36:33 +0000 (UTC) (envelope-from andrewlylegould@gmail.com) Received: by mail-oi0-x22a.google.com with SMTP id s66so98351737oif.1 for ; Thu, 30 Jun 2016 23:36:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=S9/Chdx7g9aIHgFlr9ooEPKhLNTppJLZOSYox5kn/Pw=; b=uaKkV6y8ZIpxuRYPhM8Kdp5GOnpS7FpJP1D8wFvMjWJSUOlSnw5w97XPTOESLrGBlq 6sKZD2ZFtMXv6oRrpU3GyoUZ1Pn0qbtFqGlrNcFJrf5qK/IWEkhO0Q2uXj59FzXcpNOg 6Nw5NqvlmboVg9creNenAanE0IEwEQnmdepmUX8+2B+4J+ZW2/uk0XJDXiUBkAJieXuL xJbcznvkXthSAhteZCu0n4ya/7OpGr7L3Nyllh6RBPJibOpoOKuGihrNmn24CTQSINks aMhArC5+MThvWY34GJWWVpx1GSXFXCQ3s4K1RVUqs/+6xJri9cJ8LzQuCcL37ugqd7P0 agsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=S9/Chdx7g9aIHgFlr9ooEPKhLNTppJLZOSYox5kn/Pw=; b=madQ7z/Fm/xsG5Tl+YZk0fiDhiOfBKVGWUKWIcVB+ILAB0tLvf/wJkNSpzo0F9sd9i SZdhTp4ckvewBvEZji9AeHSPxVWVXWO6ZprzA9vuO96S7BDtQBIQlxNhs31r1HDw0aYs q/2BanE+7VwlviBVt7Vewf9EmZ4dkcvLS225PkYCYHr3xreBFpBsTFd/TmIjBscZlcrn ObEv6N531K78kC/Bz/30PrPeDcXT1Wht7+MTS3o6ELBCjO2Ioq8tmmPJDncYz3/8zvPs emKXLL2bcbefUvaE6ZHFNXMdT+XOj0wn+CeW3tZGMOXi1HUIpKc3a3vvuk3A+dCf3Ndn TBRQ== X-Gm-Message-State: ALyK8tLN32JC8B/+sjpz5xp3EaqWG/3hVqN8tKa43RWN2WVuPt9I22lN9A2qLljTMM4SMLdWe6yNFg5bIzzrSg== X-Received: by 10.202.63.86 with SMTP id m83mr11094667oia.139.1467354992587; Thu, 30 Jun 2016 23:36:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.75.140 with HTTP; Thu, 30 Jun 2016 23:36:32 -0700 (PDT) In-Reply-To: <20160630175243.063e07a7@KoggyBSD.org> References: <20160630175243.063e07a7@KoggyBSD.org> From: Andrew Gould Date: Fri, 1 Jul 2016 01:36:32 -0500 Message-ID: Subject: Re: "Simple" Languages in FreeBSD To: Allen Cc: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 06:36:33 -0000 I have made great use of very little Python for over a decade. I use it for: 1. extracting data from text files 2. managing some SQL scripts that make use of ODBC connections 3. managing a series of ImageMagick commands. 4. detecting the external address of my internet gateway and updating my EasyDNS account when my dynamic address changes. All of my scripts (except the last one) run in FreeBSD and Windows without modification. I am but a CPA who strayed too far from the ledger. I can vouch for the ease of learning Python. Best of luck, Andrew On Thu, Jun 30, 2016 at 4:52 PM, Allen wrote: > Hi, > > I've been using FreeBSD on and off since 4.0-CURRENT, which seems like > almost a lifetime ago now, heh. I'm currently using FreeBSD > 10.0-RELEASE and even though I've gotten my latest order from the > FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch of > other stuff for myself and my Wife) I'm not ready to upgrade yet since > I've gotten my system working how I like (Got WindowMaker set up, and > FVWM2, and some other stuff set up) so I'm using it for now. > > Anyway, in all these years that have passed using FreeBSD and a bunch > of Linux distros, I never had time or patience enough to learn > Programming Languages, and I'm getting more and more to the part where > I'm thinking it's a good idea more so now than before. > > I have the book "Learning Perl" that I bought a while back, and I've > also downloaded a bunch of stuff for Perl, Python, Ruby, and others, so > I'm just curious on basically what Languages anyone here would > recommend. > > Literally anyone who responds with an opinion, I'm interested. Being > easy to learn for someone who isn't great with Math but does understand > Unix is a plus but not a requirement. I was starting to teach myself > Ruby on a Linux box I was using for a while and Ruby did seem to be > going OK, but a lot of the FreeBSD Books I've bought recommend Perl, > and I've also had just as many reasons from people saying to try > Python, so basically any Language and what reasons would be great. > > -Allen > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jul 1 07:57:15 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2383BB8ECD6 for ; Fri, 1 Jul 2016 07:57:15 +0000 (UTC) (envelope-from minaev@gmail.com) Received: from mail-lf0-x233.google.com (mail-lf0-x233.google.com [IPv6:2a00:1450:4010:c07::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8DFDC2148 for ; Fri, 1 Jul 2016 07:57:14 +0000 (UTC) (envelope-from minaev@gmail.com) Received: by mail-lf0-x233.google.com with SMTP id l188so71743693lfe.2 for ; Fri, 01 Jul 2016 00:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=3VYTnccSY3Z/5UKKrbpUGuGFj5IzhM3hVYiQcCtSZSU=; b=xUZzXu2sWCu08O3FpB22Qy8FFStQj1yxx8HsXuTByZ1AMJ7vc1MD4g7ecukrGhiK61 ntNRMRhcnOZAuijXGlNSpOEwhMCWKUf6/jipLfHSnT+YNEdmdIS/NIZBj+4ZyawjRnQR 16byr1aDntpMov1NwaXBQDSnE7AxuMMbgxKMm1g0edkoroe3vG2VBCmRiVVtguEvuF0Q 6W/Dl+vvgBsMlh9UWHkD2d68VbEmPAuXsl+znNsfpZ307ZHu3j21Aib/o5It4y/G5FCR KvVBcvB+6evaAE6rX+T1oypeg+gqUZeeRJxf0wLCYwRaDoaYZxqKvuiwHK3D9o/ZvAJ0 4kaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=3VYTnccSY3Z/5UKKrbpUGuGFj5IzhM3hVYiQcCtSZSU=; b=flBWs8N1/gtD/GuL4ZRbGyaknayXAMvF1iN2eC/OPUXMA6sEJ2VO3wE0kz39KhDHks mSKkQmwfkIn4vpzfJL6q55vpoYBKdyxBdta81nvFR1g33lPue2gJVgb9jCFsbxZmOd1F VeEG0uJp6mhFZEUYd9hoIxFNiJ/712CCLphrAHM6eC1QEeWrq8J4O/NIDgeyixoohNlx IglDDo3e0UpqIdXms5CP1RzE+44Au453mrhSJBcs7hfJcKLO/saRvK3ezZ010XEhsbtM 3cO4EG8dizFejT9oyhyEBObhm6KIc20hUvLsfsuWT6FRDIy9fUDgYaTfkXLG3A8iLHtV 6ouA== X-Gm-Message-State: ALyK8tJAxB1q02nrMszTlL/YZ0wBWtSv4DP6XeeK25yKXaqvrY1AJbZrS/qBaS8/ymUzDw== X-Received: by 10.25.39.78 with SMTP id n75mr6621768lfn.91.1467359832690; Fri, 01 Jul 2016 00:57:12 -0700 (PDT) Received: from [10.18.11.113] ([188.128.94.254]) by smtp.gmail.com with ESMTPSA id e64sm2159397lfe.3.2016.07.01.00.57.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jul 2016 00:57:11 -0700 (PDT) Subject: Re: "Simple" Languages in FreeBSD To: Allen , freebsd-questions@freebsd.org References: <20160630175243.063e07a7@KoggyBSD.org> From: Dimitri Minaev Message-ID: <57762256.7070106@gmail.com> Date: Fri, 1 Jul 2016 11:57:10 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <20160630175243.063e07a7@KoggyBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 07:57:15 -0000 On 07/01/2016 01:52 AM, Allen wrote: > Literally anyone who responds with an opinion, I'm interested. Being > easy to learn for someone who isn't great with Math but does understand > Unix is a plus but not a requirement. I was starting to teach myself > Ruby on a Linux box I was using for a while and Ruby did seem to be > going OK, but a lot of the FreeBSD Books I've bought recommend Perl, > and I've also had just as many reasons from people saying to try > Python, so basically any Language and what reasons would be great. A huge part of my job is automation in UNIX and 99% of it is done in Bash. IMHO, shell is a must for anyone working with UNIX, even though it's not really a programming language in the common sense. About 15 years ago I used Perl often and I remember it as a very natural language very similar to shell, but better. The syntax may sometimes look strange, but most of the time Perl by default does exactly what you want it to do. The Python is in fashion these days. They say it's easy to learn and has a clean syntax. Perhaps, I'm getting too old to learn new languages, but I found Python verbose and awkward. The trend introduced by the object-oriented languages of the last decades makes the programmer use various helpers, wrappers, proxy objects, singletons and other doubtlessly useful but clumsy contraptions. For example, let's write a simple script that runs a program, reads its output and feeds it to the stdin of another program. In Perl, it's as straightforward as this: open(P1, "ls -la |"); open(P2, "|grep ^d"); while (my $l = ) { print P2 $l; } Quite natural, eh? Now, Python: import subprocess a = subprocess.Popen(["ls", "-la"], stdout=subprocess.PIPE) b = subprocess.Popen(["grep", "^d"], stdin=subprocess.PIPE, stdout=subprocess.PIPE) ls = a.communicate()[0] r = b.communicate(input=ls)[0] print(r.decode()) I'm sure there are other ways to do the same in a more concise way using external Python modules like 'sh', but the idiomatic way, AFAIK, is the one used above. Besides, Python, however logical it is, may be unpredictable. For example: In [1]: a=99 In [2]: b=999 In [3]: a is 99 Out[3]: True In [4]: b is 999 Out[4]: False I found Ruby to be more like Perl. Even though it is an object-oriented language, it has many shortcuts that make things simpler, like using $_ variable to store the last read string. But I never liked OOP and put Ruby away. So, from the practical point of view I would vote for Perl. Some would say it's too old, but hey, it's still more popular than Ruby, according to TIOBE index: http://www.tiobe.com/tiobe_index But the popularity shouldn't be crucial in the language choice. If you're going to learn programming languages for fun, have a look at some less popular alternatives. One of them is my favorite Tcl. It's a language with very simple syntax, underestimated but powerful. Many utilities used in other languages, were born in Tcl: Sqlite, Expect and Tk GUI, to name a few. It's still very popular as a built-in language in network hardware. It may lack some libraries supporting modern protocols (AMQP, for example), but programming in Tcl just feels great. Another interesting language is Scheme. There are many dialects of this uncommon but beautiful language. Racket has one of the largest libraries, but it's rather a language for students and teachers than for the real world applications. Chicken Scheme and Guile are way more practical and just as rich. Other options include Erlang and Haskell. Go language is also interesting, but it is IMHO a language for real programmers. From owner-freebsd-questions@freebsd.org Fri Jul 1 08:10:51 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70B84B87104 for ; Fri, 1 Jul 2016 08:10:51 +0000 (UTC) (envelope-from bsd@bontempi.net) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 415C12674 for ; Fri, 1 Jul 2016 08:10:50 +0000 (UTC) (envelope-from bsd@bontempi.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E3F7820290; Fri, 1 Jul 2016 04:10:49 -0400 (EDT) Received: from web2 ([10.202.2.212]) by compute4.internal (MEProxy); Fri, 01 Jul 2016 04:10:49 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=bontempi.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=szQKDGKWqu7fon0OJFcorQA4rAk=; b=0MAupi TBtoZ9PdearvCBSQ0fo+uqyVyiIBlxXMNt8/1ACPjd+Uvhlu8DX+UsFQkLRWKUGE lvR864RQmcgCZthkQ9zeBmRUNrMIVglP6JKARTu23OyrXv5w21xE7Is4grBe1FzY gqhOd5GMmiscnmU1nGWtQG4QN1wW4HiCZpLhI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=szQKDGKWqu7fon0 OJFcorQA4rAk=; b=NGHnUaTLDBpu60chgGn8r04m6Ypu44j+M2ImVuPX2PgO2Jp OvQq5kdse7UjkKUf1IeYAepUioDgFn3bOECbyIdlb8J8yEgYMER0Ypx+gAkbmvSA 7Z3z44v2ryJTk2U3vPLR9BK0EP/WPp3BemF36GVru/olFdhjHn1DJPg9j+E4= Received: by mailuser.nyi.internal (Postfix, from userid 99) id A4E04D033E; Fri, 1 Jul 2016 04:10:49 -0400 (EDT) Message-Id: <1467360649.3751988.653960161.06009D74@webmail.messagingengine.com> X-Sasl-Enc: U03OJDu1GGN8WrPeJ2V49n+m344tpL8jotrL2cIdmmMn 1467360649 From: Priyadarshan To: Dimitri Minaev , Allen , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-15e5213e In-Reply-To: <57762256.7070106@gmail.com> References: <20160630175243.063e07a7@KoggyBSD.org> <57762256.7070106@gmail.com> Subject: Re: "Simple" Languages in FreeBSD Date: Fri, 01 Jul 2016 08:10:49 +0000 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 08:10:51 -0000 On Fri, 1 Jul 2016, at 07:57, Dimitri Minaev wrote: > On 07/01/2016 01:52 AM, Allen wrote: >=20 > > Literally anyone who responds with an opinion, I'm interested. Being > > easy to learn for someone who isn't great with Math but does understand > > Unix is a plus but not a requirement. I was starting to teach myself > > Ruby on a Linux box I was using for a while and Ruby did seem to be > > going OK, but a lot of the FreeBSD Books I've bought recommend Perl, > > and I've also had just as many reasons from people saying to try > > Python, so basically any Language and what reasons would be great. >=20 > A huge part of my job is automation in UNIX and 99% of it is done in=20 > Bash. IMHO, shell is a must for anyone working with UNIX, even though=20 > it's not really a programming language in the common sense. About 15=20 > years ago I used Perl often and I remember it as a very natural language= =20 > very similar to shell, but better. The syntax may sometimes look=20 > strange, but most of the time Perl by default does exactly what you want= =20 > it to do. >=20 > The Python is in fashion these days. They say it's easy to learn and has= =20 > a clean syntax. Perhaps, I'm getting too old to learn new languages, but= =20 > I found Python verbose and awkward. The trend introduced by the=20 > object-oriented languages of the last decades makes the programmer use=20 > various helpers, wrappers, proxy objects, singletons and other=20 > doubtlessly useful but clumsy contraptions. For example, let's write a=20 > simple script that runs a program, reads its output and feeds it to the=20 > stdin of another program. In Perl, it's as straightforward as this: >=20 > open(P1, "ls -la |"); > open(P2, "|grep ^d"); > while (my $l =3D ) { > print P2 $l; > } >=20 > Quite natural, eh? Now, Python: >=20 > import subprocess > a =3D subprocess.Popen(["ls", "-la"], stdout=3Dsubprocess.PIPE) > b =3D subprocess.Popen(["grep", "^d"], stdin=3Dsubprocess.PIPE,=20 > stdout=3Dsubprocess.PIPE) > ls =3D a.communicate()[0] > r =3D b.communicate(input=3Dls)[0] > print(r.decode()) >=20 > I'm sure there are other ways to do the same in a more concise way using= =20 > external Python modules like 'sh', but the idiomatic way, AFAIK, is the=20 > one used above. >=20 > Besides, Python, however logical it is, may be unpredictable. For > example: >=20 > In [1]: a=3D99 > In [2]: b=3D999 > In [3]: a is 99 > Out[3]: True > In [4]: b is 999 > Out[4]: False >=20 > I found Ruby to be more like Perl. Even though it is an object-oriented=20 > language, it has many shortcuts that make things simpler, like using $_=20 > variable to store the last read string. But I never liked OOP and put=20 > Ruby away. >=20 > So, from the practical point of view I would vote for Perl. Some would=20 > say it's too old, but hey, it's still more popular than Ruby, according=20 > to TIOBE index: http://www.tiobe.com/tiobe_index >=20 > But the popularity shouldn't be crucial in the language choice. If=20 > you're going to learn programming languages for fun, have a look at some= =20 > less popular alternatives. One of them is my favorite Tcl. It's a=20 > language with very simple syntax, underestimated but powerful. Many=20 > utilities used in other languages, were born in Tcl: Sqlite, Expect and=20 > Tk GUI, to name a few. It's still very popular as a built-in language in= =20 > network hardware. It may lack some libraries supporting modern protocols= =20 > (AMQP, for example), but programming in Tcl just feels great. >=20 > Another interesting language is Scheme. There are many dialects of this=20 > uncommon but beautiful language. Racket has one of the largest=20 > libraries, but it's rather a language for students and teachers than for= =20 > the real world applications. Chicken Scheme and Guile are way more=20 > practical and just as rich. >=20 > Other options include Erlang and Haskell. Go language is also=20 > interesting, but it is IMHO a language for real programmers. Thanks for this. Python, Ruby, Haskell, Julia, even PHP, they have all something to offer. One should really try to feel what is closer to one=E2=80=99s way of thinking about problems, since the language can really help, or really be a hindrance. Our company uses mainly Common Lisp, but we are also a Perl shop. It is interesting to see new employees using so-called =C2=ABnew=C2=BB languages, slowly but surely getting interested in the =C2=ABold=C2=BB Perl 5 (aka Perl Raptor), and ultimately adopting it as main language to =C2=ABthink=C2=BB about problems. From owner-freebsd-questions@freebsd.org Fri Jul 1 08:27:08 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B3E2B874E5 for ; Fri, 1 Jul 2016 08:27:08 +0000 (UTC) (envelope-from minaev@gmail.com) Received: from mail-lf0-x236.google.com (mail-lf0-x236.google.com [IPv6:2a00:1450:4010:c07::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C0A542C2C for ; Fri, 1 Jul 2016 08:27:07 +0000 (UTC) (envelope-from minaev@gmail.com) Received: by mail-lf0-x236.google.com with SMTP id f6so72199222lfg.0 for ; Fri, 01 Jul 2016 01:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=kIbWA/3qioU0ACqij6rf1DquCVc8IU22RL74Mz517iQ=; b=U5nsTPrsb6u14LMRdLnMdP5NpzRkhX3naPbhkHSwQVBBeYbvtUZVrBqOutUpp8hk2K KjdJ/n9U3kBgGSFBzs6SLerWxvT6PSB9fintu2RgVhChzmMUC947EIucycbItAncKGbF E0CrMq+54suWOjwPWhFLdGKdvq2pHYaDz1pDl5YJv0tw44gDRp9/TB6xgGh6EhL7hG2h dmgtg7k7DPb4u+byk2eIMVoIIp2PcXzh6yF4HFgFEtPONWkwUXYrTglpisfyOtJkC+rO 5uBlCbC62lY66Oq1ZeFiUA7u0XWI8vK6Tx/7PTkpmQOA+VWaOZlZrjdLUuO/tkLp//Lu BFaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=kIbWA/3qioU0ACqij6rf1DquCVc8IU22RL74Mz517iQ=; b=BkN+DNXYpU9KVULlQVN1V+oQzzDK1mPB4ksz/0ZNhX6I9+59IDM4tjR5BdCNn735xY AmLK7qOoiD1bzCzKcVn5mtqfH63AW9+nlpo4WXj1HgMvOf/yIXTAjSXQ424n7HzzhNUX xYs+HuxHEcqgVDFf125ZHZh7szDbrYUvbZdA9qtKxjp9HQ1hNQ1Q5aE/OQlYHKw0u7LF aUWishpQWzROBFowPWzGBDj/7iU1cNi8UEsiHTwS4PvSuElZFPRxKnnEo9mbFzjwBv34 loQcegekrb4ta6F5fl+mLSRk+1X/uF/s9lTLhuAf+PrwMy2lxehg8yiPyKjA9Ygm2iwl yJKg== X-Gm-Message-State: ALyK8tImMU7NznWqr7arlioU5Z3rUBLj9KX7Nl+2OsrEeZQXsM3eTN2Uv6jJc2cEsYGl4Q== X-Received: by 10.25.85.200 with SMTP id j191mr5316940lfb.39.1467361625099; Fri, 01 Jul 2016 01:27:05 -0700 (PDT) Received: from [10.18.11.113] ([188.128.94.254]) by smtp.gmail.com with ESMTPSA id h33sm787852lji.21.2016.07.01.01.27.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jul 2016 01:27:04 -0700 (PDT) Subject: Re: "Simple" Languages in FreeBSD To: Priyadarshan , Allen , freebsd-questions@freebsd.org References: <20160630175243.063e07a7@KoggyBSD.org> <57762256.7070106@gmail.com> <1467360649.3751988.653960161.06009D74@webmail.messagingengine.com> From: Dimitri Minaev Message-ID: <57762957.1030100@gmail.com> Date: Fri, 1 Jul 2016 12:27:03 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <1467360649.3751988.653960161.06009D74@webmail.messagingengine.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 08:27:08 -0000 On 07/01/2016 12:10 PM, Priyadarshan wrote: > > Our company uses mainly Common Lisp, but we are also a Perl shop. Ah, I wanted to mention CL, too, but I didn't know any examples of its use in modern practice. I love it, but it's only real application for me is hacking my favorite window manager, Stumpwm :) CL is wonderfully multi-faceted. Its object system is the only object system that feels right and doesn't get in my way of thinking. Macros can turn CL in a completely different language. Thanks for bringing Lisp into the thread :) From owner-freebsd-questions@freebsd.org Fri Jul 1 09:15:15 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4F8FB885E2 for ; Fri, 1 Jul 2016 09:15:15 +0000 (UTC) (envelope-from steve@sohara.org) Received: from smtp3.irishbroadband.ie (smtp3.irishbroadband.ie [62.231.32.5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7259A25EF for ; Fri, 1 Jul 2016 09:15:15 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [89.127.62.20] (helo=smtp.lan.sohara.org) by smtp3.irishbroadband.ie with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1bIuFo-0006XL-Kn for freebsd-questions@freebsd.org; Fri, 01 Jul 2016 09:56:52 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.86_2 (FreeBSD)) (envelope-from ) id 1bIuG1-0009dz-T8 for freebsd-questions@freebsd.org; Fri, 01 Jul 2016 08:57:05 +0000 Date: Fri, 1 Jul 2016 09:56:52 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD Message-Id: <20160701095652.17036e6fe1e467ee64adc9f7@sohara.org> In-Reply-To: <20160630175243.063e07a7@KoggyBSD.org> References: <20160630175243.063e07a7@KoggyBSD.org> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 09:15:15 -0000 On Thu, 30 Jun 2016 17:52:43 -0400 Allen wrote: > Anyway, in all these years that have passed using FreeBSD and a bunch > of Linux distros, I never had time or patience enough to learn > Programming Languages, and I'm getting more and more to the part where > I'm thinking it's a good idea more so now than before. First off FreeBSD supports most programming languages from BASIC to Prolog by way of C, Smalltalk, LISP, Haskell and Forth among many others. Here's the thing - each of the languages I've listed is an example of a particular programming paradigm (there are many other examples of each paradigm). If your aim is to learn about programming in general then I would advise learning as many different paradigms as possible. If your aim is to do a bit of programming then pick a language - any language - and learn to write something useful. Python and Perl are both easy to learn OO/structured languages, python attempts to force good style, perl is more of an anything goes approach. Learn one and the other is easy to learn. -- Steve O'Hara-Smith From owner-freebsd-questions@freebsd.org Fri Jul 1 10:22:57 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7408DB89C48 for ; Fri, 1 Jul 2016 10:22:57 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B3D223E6 for ; Fri, 1 Jul 2016 10:22:57 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id r201so22682368wme.1 for ; Fri, 01 Jul 2016 03:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=G3RxhAIx4ARYz/tKmvMOnxr+eLUQDC1oku6+lu4Rftc=; b=0251PT8yFBaPfRxTxCOSrM+LEmHVSsHvmlinolSx3Uw/AbTUaW3uLZXdBn+yF2Q0// BodaupXdzWMWuM4Gk8PBTTqJ0MbH6spS+sw8joz42qkOUulJaD0PWLJUnWhB2AqANF3E 4jJcc0fv9i2LvB8AJCf0q0SSRnHIuVbxWcL5MB32j/lHXSoTCDlU/gRG0i556dJ2Y09M OWjeTIx1NPsa72TyZrDY2RxHYTtwSGzK8b+rYxoAZQPEE4EsdMOgBNi+JAsuNstArrPO Z9vgJiFFwB4zORjguP9xHKxI3hJlG7zJF3yHCsGl5MQxJ4IWPJNAB5cj0fggsyJDtx7E 5mPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=G3RxhAIx4ARYz/tKmvMOnxr+eLUQDC1oku6+lu4Rftc=; b=K+CnUjx4a/Qn1dDqpxRjRe9KHUEG6gBB3p8Rlg6DRa6cFs4Qg9R+hIy0CCWfnaPQg8 F4RKUYmqR/Rkl2B3A/J3yRAfVvjJKMmUQUwT7p4kIaCIkFL9NF01rNosLqwvqOL1+30z l3vYySiPPddAwwDrqRqdb15k9m/DIUZZJOilD5X3A52qyTCfIZFvUmRFHb81yKzGYWJI emu/8MZxh0L/J+GOVSO/aM05+vm+6GRt0BNbjyMR+ooQve+lXv3KLTzvQbA2g4j5A8gu McZoVORSlF3pJVwOHsRWfQI34SmHl+bVp9Qddm1alFX6+F26wk9k6gWyi5nG4lkRqbdq POlw== X-Gm-Message-State: ALyK8tKkNRXZZNnkcVH7YBH98AGayMXcbfRiCYSxrALL9cpNGYIvJELBmsnDIj8+lGpKfLyh4kEiyuonjI9BZQ== X-Received: by 10.194.5.40 with SMTP id p8mr2885040wjp.56.1467368574716; Fri, 01 Jul 2016 03:22:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.88.206 with HTTP; Fri, 1 Jul 2016 03:22:53 -0700 (PDT) In-Reply-To: <20160701095652.17036e6fe1e467ee64adc9f7@sohara.org> References: <20160630175243.063e07a7@KoggyBSD.org> <20160701095652.17036e6fe1e467ee64adc9f7@sohara.org> From: krad Date: Fri, 1 Jul 2016 11:22:53 +0100 Message-ID: Subject: Re: "Simple" Languages in FreeBSD To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 10:22:57 -0000 Depending on the problems you are tackling it may also be worth thinking about things at a higher level as well. eg if you are doing systems maintenance/automation look at something like ansible. It's not programming in an traditional sense, but it can make things a lot easier to do, especially if you are doing things at scale. There are other config management tools out there (chef, puppet, salt, fabric etc) but ansible is relatively easy to setup and get going, and will utilise anything you learn in python very well. Don't be put off by the fact you may only have a small number of machines, it still makes life easier. On 1 July 2016 at 09:56, Steve O'Hara-Smith wrote: > On Thu, 30 Jun 2016 17:52:43 -0400 > Allen wrote: > > > Anyway, in all these years that have passed using FreeBSD and a bunch > > of Linux distros, I never had time or patience enough to learn > > Programming Languages, and I'm getting more and more to the part where > > I'm thinking it's a good idea more so now than before. > > First off FreeBSD supports most programming languages from BASIC to > Prolog by way of C, Smalltalk, LISP, Haskell and Forth among many others. > > Here's the thing - each of the languages I've listed is an example > of a particular programming paradigm (there are many other examples of each > paradigm). If your aim is to learn about programming in general then I > would advise learning as many different paradigms as possible. If your aim > is to do a bit of programming then pick a language - any language - and > learn to write something useful. > > Python and Perl are both easy to learn OO/structured languages, > python attempts to force good style, perl is more of an anything goes > approach. Learn one and the other is easy to learn. > > -- > Steve O'Hara-Smith > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jul 1 11:50:20 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89E30B8E294 for ; Fri, 1 Jul 2016 11:50:20 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com [IPv6:2607:f8b0:400d:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B63824D3 for ; Fri, 1 Jul 2016 11:50:20 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: by mail-qk0-x230.google.com with SMTP id t127so196814041qkf.1 for ; Fri, 01 Jul 2016 04:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=xqR1Wjeq8TPMgMbcJcj/CeuDLGgnDCO0WH8euCwZ+1I=; b=RN1T/nUXRn+Qato8qhzrTfGmzx1xqSO+INVBTXYNWXH2QbTjL5TATlcEj0ZsuggASO p4yBybzxJJ1287SzkCV2Ey1ItyG7a4Kp1AdYHaiF6Zrnkhu0Tt19kf8D7Sqgyi1UXGB7 2KVLKtFL0PgNIdqZDBzyNfFLJGW2sArcnsRLTT0VHwvdKDlg7Ef4HHMnXZuxw2ScZJkY pTcuwMw9VEU685XW87qmCxMciembYh+1P3Up6TiIsUeTe3GVw9/n0XzFz5756D9M9CXp naHNj2hN01HuogLJ0/jJLC4g8kUDvWv7QPq2kdu7t0DltKowRXag//6TcEC9lQRDYxGI Z2bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=xqR1Wjeq8TPMgMbcJcj/CeuDLGgnDCO0WH8euCwZ+1I=; b=c0/Yv8K1HvVMZgK9vsua47jPmgrCzBOMAw0UErMCdTSBDGImvDJLCBBdFW9v1/zmKi TUoXCde4fSwDwTMGQOYRVTf+XRWgRVYqooZgnUFO3Hhkjajk1brCAvxeVicA0j1KncF1 wbzWqCU3YzCe/W8H4BSuzRmDsYdokBDaqlYaxWbBnAUjZj+HSD/ZwVVUt/X5fEsV9XfO KBHdnkdNrxHHEHVrKvRNGnUTx+zcu2mRAwEsUH+REyz+254wad+umWRQNU/36Rj7Uv99 9PixzcDUBlCBuU4sINt7tQvu9M0VDyi0xbw0R/7ZDEyJY9MkXZotehYqkXMI9zKiNDmp Gkmg== X-Gm-Message-State: ALyK8tJQFA4tFLysjHtZFt0plrt+Uh8B+VJdUwjfYGpaEpvnRmQ7CvLeTuMQ/twldY0cWDqJSzu5HlH5qCxrfg== X-Received: by 10.129.90.7 with SMTP id o7mr9057801ywb.313.1467373819375; Fri, 01 Jul 2016 04:50:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.5.216 with HTTP; Fri, 1 Jul 2016 04:50:18 -0700 (PDT) In-Reply-To: References: <20160630175243.063e07a7@KoggyBSD.org> <20160701095652.17036e6fe1e467ee64adc9f7@sohara.org> From: Ultima Date: Fri, 1 Jul 2016 07:50:18 -0400 Message-ID: Subject: Re: "Simple" Languages in FreeBSD Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 11:50:20 -0000 If perl has been decided, I suggest learning rperl instead of regular perl. They more or less the same, except in that rperl has a stricter syntax usage (correct me if I'm wrong, not an expert). It will compile it into a c blob and be much faster than regular perl. One of the compile settings was 400ish times faster? Yeah... if I were to learn perl, it would definitely be rperl. On Fri, Jul 1, 2016 at 6:22 AM, krad wrote: > Depending on the problems you are tackling it may also be worth thinking > about things at a higher level as well. eg if you are doing systems > maintenance/automation look at something like ansible. It's not programming > in an traditional sense, but it can make things a lot easier to do, > especially if you are doing things at scale. There are other config > management tools out there (chef, puppet, salt, fabric etc) but ansible is > relatively easy to setup and get going, and will utilise anything you learn > in python very well. Don't be put off by the fact you may only have a small > number of machines, it still makes life easier. > > On 1 July 2016 at 09:56, Steve O'Hara-Smith wrote: > > > On Thu, 30 Jun 2016 17:52:43 -0400 > > Allen wrote: > > > > > Anyway, in all these years that have passed using FreeBSD and a bunch > > > of Linux distros, I never had time or patience enough to learn > > > Programming Languages, and I'm getting more and more to the part where > > > I'm thinking it's a good idea more so now than before. > > > > First off FreeBSD supports most programming languages from BASIC > to > > Prolog by way of C, Smalltalk, LISP, Haskell and Forth among many others. > > > > Here's the thing - each of the languages I've listed is an > example > > of a particular programming paradigm (there are many other examples of > each > > paradigm). If your aim is to learn about programming in general then I > > would advise learning as many different paradigms as possible. If your > aim > > is to do a bit of programming then pick a language - any language - and > > learn to write something useful. > > > > Python and Perl are both easy to learn OO/structured languages, > > python attempts to force good style, perl is more of an anything goes > > approach. Learn one and the other is easy to learn. > > > > -- > > Steve O'Hara-Smith > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > > freebsd-questions-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jul 1 12:02:15 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B763EB864A6 for ; Fri, 1 Jul 2016 12:02:15 +0000 (UTC) (envelope-from mail@bontempi.net) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 786322E2D for ; Fri, 1 Jul 2016 12:02:15 +0000 (UTC) (envelope-from mail@bontempi.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 89BF6201DD; Fri, 1 Jul 2016 08:02:13 -0400 (EDT) Received: from web2 ([10.202.2.212]) by compute4.internal (MEProxy); Fri, 01 Jul 2016 08:02:13 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=bontempi.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=qRQmPuMmDoehY6JmVQf3xWEvyww=; b=AcO+y8 1rNsxmGqntsmeurKCczRKy6ulj6Ab70HW1sK36ReQMp8Etj/ASNMnkHtCFQA5qQZ 6ZqhHecRf7pV9RO4w2KrYYlhvWeroHOahUZy6mim4ORUsGe2nt89j69qx6r/rgIs 2HWoqH3a/AePMFFDMW2IR3j82FfXSlSgcxPZ0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=qRQmPuMmDoehY6J mVQf3xWEvyww=; b=gzCYDn8Yvs2KVZ4u9ljrBWRU3PBXXDNyiG5usQast+IuILt EVyOFMEc2ttxueTigYZTah9V2CyQUePBBDpzWKNNMTvmECveUjaDDl65LbrfpXMA UqUNo841YiZw/pUd74yz/c8V5B6parYIIyipmuAD+iu6kJzogk4gfs9nFh7s= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 5076AD033E; Fri, 1 Jul 2016 08:02:13 -0400 (EDT) Message-Id: <1467374533.491877.654118113.1C2C9642@webmail.messagingengine.com> X-Sasl-Enc: zzsfYl10dSqIPnaKhwPTQdDSyRqiPOzK8UCc37zEFEyA 1467374533 From: mail@bontempi.net To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-15e5213e Subject: Re: "Simple" Languages in FreeBSD Date: Fri, 01 Jul 2016 12:02:13 +0000 In-Reply-To: References: <20160630175243.063e07a7@KoggyBSD.org> <20160701095652.17036e6fe1e467ee64adc9f7@sohara.org> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 12:02:15 -0000 On Fri, 1 Jul 2016, at 11:50, Ultima wrote: > If perl has been decided, I suggest learning rperl instead of regular > perl. They more or less the same, except in that rperl has a stricter > syntax usage (correct me if I'm wrong, not an expert). It will compile it > into a c blob and be much faster than regular perl. One of the compile > settings was 400ish times faster? Yeah... if I were to learn perl, it > would > definitely be rperl. >=20 > On Fri, Jul 1, 2016 at 6:22 AM, krad wrote: >=20 > > Depending on the problems you are tackling it may also be worth thinking > > about things at a higher level as well. eg if you are doing systems > > maintenance/automation look at something like ansible. It's not program= ming > > in an traditional sense, but it can make things a lot easier to do, > > especially if you are doing things at scale. There are other config > > management tools out there (chef, puppet, salt, fabric etc) but ansible= is > > relatively easy to setup and get going, and will utilise anything you l= earn > > in python very well. Don't be put off by the fact you may only have a s= mall > > number of machines, it still makes life easier. > > > > On 1 July 2016 at 09:56, Steve O'Hara-Smith wrote: > > > > > On Thu, 30 Jun 2016 17:52:43 -0400 > > > Allen wrote: > > > > > > > Anyway, in all these years that have passed using FreeBSD and a bun= ch > > > > of Linux distros, I never had time or patience enough to learn > > > > Programming Languages, and I'm getting more and more to the part wh= ere > > > > I'm thinking it's a good idea more so now than before. > > > > > > First off FreeBSD supports most programming languages from BA= SIC > > to > > > Prolog by way of C, Smalltalk, LISP, Haskell and Forth among many oth= ers. > > > > > > Here's the thing - each of the languages I've listed is an > > example > > > of a particular programming paradigm (there are many other examples of > > each > > > paradigm). If your aim is to learn about programming in general then I > > > would advise learning as many different paradigms as possible. If your > > aim > > > is to do a bit of programming then pick a language - any language - a= nd > > > learn to write something useful. > > > > > > Python and Perl are both easy to learn OO/structured language= s, > > > python attempts to force good style, perl is more of an anything goes > > > approach. Learn one and the other is easy to learn. > > > > > > -- Thanks for that reference. Although rperl is a pretty young project, it is quite promising. Some benchmarks here: http://rperl.org/performance_benchmarks.html As far as I understand, Perl can be used with rperl, since the latter is a string compiler of the former. Perl is a lot of fun to learn. If one likes Perl's =C2=ABweltanschauung=C2= =BB as programming language, it can easily become addictive. Priyadarshan From owner-freebsd-questions@freebsd.org Fri Jul 1 12:03:51 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 916C0B8664F for ; Fri, 1 Jul 2016 12:03:51 +0000 (UTC) (envelope-from bsd@bontempi.net) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 53AE02F7D for ; Fri, 1 Jul 2016 12:03:51 +0000 (UTC) (envelope-from bsd@bontempi.net) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6C342201CB for ; Fri, 1 Jul 2016 08:03:50 -0400 (EDT) Received: from web2 ([10.202.2.212]) by compute3.internal (MEProxy); Fri, 01 Jul 2016 08:03:50 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=bontempi.net; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=gdl bphe7GkWPHgQwaKjJhYcCYKc=; b=NrnJ8BcSWkp2ZZTvDSKM1dUK+2HfvwVmBrO 0ZjF8Iwb8rq2dBMYY6/XFSCgZrxLrmQH+uGWI/qh0sr0OuXJ122UlX9A6FIMJTEr yUdfcxXiKihsKlkWzTQlq+qlKoETVTmuQtP1Z4QOb0f4ZB9I7nvTu8nwM7nA/bKl d18zRzYk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=gdlbphe7GkWPHgQwaKjJhYcCYKc=; b=r/5Mf 3PxRe93R4DqZonshzHYPCpB/y7FIlpkAIfgPvzlH7TYYQHaBD5eJWiroQmXQ51wN sDPZMJ0eGcbmyE1e2Hv37uFbZf6zJmOiJOE/+fDvFyh+4+5g78jfBLvCld2hh03j 3TAuNbcEQWCFqkQXRmSgShqSHOWrm1ClDm5Sr0= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 36A16D033E; Fri, 1 Jul 2016 08:03:50 -0400 (EDT) Message-Id: <1467374630.492024.654123513.7B7754E4@webmail.messagingengine.com> X-Sasl-Enc: fO30ztNDOz3uW6etnZE1fEX7AyZpkaiNx6LS1XLIbuCl 1467374630 From: Priyadarshan To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-15e5213e Subject: Re: "Simple" Languages in FreeBSD Date: Fri, 01 Jul 2016 12:03:50 +0000 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 12:03:51 -0000 On Fri, 1 Jul 2016, at 11:50, Ultima wrote: > If perl has been decided, I suggest learning rperl instead of regular > perl. They more or less the same, except in that rperl has a stricter > syntax usage (correct me if I'm wrong, not an expert). It will compile it > into a c blob and be much faster than regular perl. One of the compile > settings was 400ish times faster? Yeah... if I were to learn perl, it > would > definitely be rperl. >=20 > On Fri, Jul 1, 2016 at 6:22 AM, krad wrote: >=20 > > Depending on the problems you are tackling it may also be worth thinking > > about things at a higher level as well. eg if you are doing systems > > maintenance/automation look at something like ansible. It's not program= ming > > in an traditional sense, but it can make things a lot easier to do, > > especially if you are doing things at scale. There are other config > > management tools out there (chef, puppet, salt, fabric etc) but ansible= is > > relatively easy to setup and get going, and will utilise anything you l= earn > > in python very well. Don't be put off by the fact you may only have a s= mall > > number of machines, it still makes life easier. > > > > On 1 July 2016 at 09:56, Steve O'Hara-Smith wrote: > > > > > On Thu, 30 Jun 2016 17:52:43 -0400 > > > Allen wrote: > > > > > > > Anyway, in all these years that have passed using FreeBSD and a bun= ch > > > > of Linux distros, I never had time or patience enough to learn > > > > Programming Languages, and I'm getting more and more to the part wh= ere > > > > I'm thinking it's a good idea more so now than before. > > > > > > First off FreeBSD supports most programming languages from BA= SIC > > to > > > Prolog by way of C, Smalltalk, LISP, Haskell and Forth among many oth= ers. > > > > > > Here's the thing - each of the languages I've listed is an > > example > > > of a particular programming paradigm (there are many other examples of > > each > > > paradigm). If your aim is to learn about programming in general then I > > > would advise learning as many different paradigms as possible. If your > > aim > > > is to do a bit of programming then pick a language - any language - a= nd > > > learn to write something useful. > > > > > > Python and Perl are both easy to learn OO/structured language= s, > > > python attempts to force good style, perl is more of an anything goes > > > approach. Learn one and the other is easy to learn. > > > > > > -- Thanks for that reference. Although rperl is a pretty young project, it is quite promising. Some benchmarks here: http://rperl.org/performance_benchmarks.html As far as I understand, Perl can be used with rperl, since the latter is a =C2=ABstrict=C2=BB compiler of the former. Perl is a lot of fun to learn. If one likes Perl's =C2=ABweltanschauung=C2= =BB as programming language, it can easily become addictive. Priyadarshan From owner-freebsd-questions@freebsd.org Fri Jul 1 13:24:30 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A235AB87D43 for ; Fri, 1 Jul 2016 13:24:30 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E519827AF for ; Fri, 1 Jul 2016 13:24:29 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id u61DOOVk008348; Fri, 1 Jul 2016 23:24:24 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Fri, 1 Jul 2016 23:24:24 +1000 (EST) From: Ian Smith To: "William A. Mahaffey III" cc: freebsd-questions@freebsd.org Subject: Re: ipfw question In-Reply-To: Message-ID: <20160701223303.S324@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 13:24:30 -0000 In freebsd-questions Digest, Vol 630, Issue 5, Message: 2 On Thu, 30 Jun 2016 10:23:54 -0453.75 "William A. Mahaffey III" wrote: > I had an oddball occurence this A.M. I sat down to check E-mails & surf > & found that I couldn't recover any E-mails. I poked around a bit & > found some entries in /var/log/security indicating that traffic from my > DNS server was being dropped by the firewall: > > > [root@kabini1, ~, 10:04:03am] 587 % tail -20 /var/log/security ; date [.. omitting unrelated entries ..] > Jun 30 08:24:04 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:46927 in via re0 > Jun 30 08:25:30 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:44681 in via re0 > Jun 30 08:25:32 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:29687 in via re0 > Jun 30 08:27:20 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:51623 in via re0 > Jun 30 08:34:56 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:46764 in via re0 > Jun 30 08:34:57 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:24172 in via re0 This usually indicates that responses from an upstream DNS server are arriving after the keep-state rule that allowed your DNS request packet out has since timed out, which usually indicates some perhaps temporary problem with the link, the upstream server, or the phase of the moon. > 01400 allow udp from me to any keep-state Consult ipfw(8) about increasing dynamic rule timeouts, if it's a regular occurrence. Usually your {mail,web,whatever} client will just try again .. UDP is not expected to be reliable, by definition. > I haven't made any changes to my firewall setup in months, maybe a year > or more (so long that I found I had forgotten what to do initially :-/ I see that it's based on rc.firewall 'workstation' rules, as reference. Does rc.conf specify firewall_type="workstation" or have you copied that to custom rules? At first glance it looks stock, but I'm not up for a line by line comparison :) > ). I eventually recalled where to tweak & added a line to my rc.fiewwall > file & restarted ipfw. It spit out all rules, including my new one, > which implied that I hadn't botched the syntax. E-mail went back to > working & all is well. However, I want to make sure I didn't open up > more than I think I am. My rule list as echoed out from the restart is > below: You may have opened up a lot more than you bargained for .. > [root@kabini1, /etc, 8:52:59am] 467 % service ipfw restart > net.inet.ip.fw.enable: 1 -> 0 > net.inet6.ip6.fw.enable: 1 -> 0 > Flushed all rules. > 00100 allow ip from any to any via lo0 > 00200 deny ip from any to 127.0.0.0/8 > 00300 deny ip from 127.0.0.0/8 to any > 00400 deny ip from any to ::1 > 00500 deny ip from ::1 to any > 00600 allow ipv6-icmp from :: to ff02::/16 > 00700 allow ipv6-icmp from fe80::/10 to fe80::/10 > 00800 allow ipv6-icmp from fe80::/10 to ff02::/16 > 00900 allow ipv6-icmp from any to any ip6 icmp6types 1 > 01000 allow ipv6-icmp from any to any ip6 icmp6types 2,135,136 > 01100 check-state > 01200 allow tcp from me to any established > 01300 allow tcp from me to any setup keep-state > 01400 allow udp from me to any keep-state > 01500 allow icmp from me to any keep-state > 01600 allow ipv6-icmp from me to any keep-state > 01700 allow udp from 0.0.0.0 68 to 255.255.255.255 dst-port 67 out > 01800 allow udp from any 67 to me dst-port 68 in > 01900 allow udp from any 67 to 255.255.255.255 dst-port 68 in > 02000 allow udp from fe80::/10 to me dst-port 546 in > 02100 allow udp from any 53 to me in # <-------- my new rule !!!! Don't do this! Anyone and his dog can send UDP packets to any UDP port or service they like on your machine, by (trivially) forging the source port as 53. Now you've outed this hole publically, best fix it soon .. Given you're using dynamic rules, the way it was is the correct way to use external UDP services. > 02200 allow icmp from any to me icmptypes 8 > 02300 allow ipv6-icmp from any to any ip6 icmp6types 128,129 > 02400 allow icmp from any to me icmptypes 3,4,11,13 > 02500 allow ipv6-icmp from any to any ip6 icmp6types 3 > 02600 allow tcp from 192.168.0.0/24 to me > 02700 allow udp from 192.168.0.0/24 to me > 02800 allow udp from 192.168.0.0/24 513 to 192.168.0.0/24 dst-port 513 > 02900 allow udp from 192.168.0.0/24 525 to 192.168.0.0/24 dst-port 525 > 65000 count ip from any to any > 65100 deny { tcp or udp } from any to any dst-port 111,137,138 in > 65200 deny { tcp or udp } from 192.168.0.0/24 to me > 65300 deny ip from any to 255.255.255.255 > 65400 deny ip from any to 224.0.0.0/24 in > 65500 deny udp from any to any dst-port 520 in > 65500 deny tcp from any 80,443 to any dst-port 1024-65535 in > 65500 deny log logamount 50000 ip from any to any > Firewall rules loaded. > [root@kabini1, /etc, 8:53:11am] 468 % > > > with my new rule marked. I noticed that the dropped DNS packets were > destined for oddball ports on my box, so I have no port specification in > my rule. Am I just allowing DNS replies back in, or > (humorously/tragically) more :-) ? This box is my daily driver > workstation desktop, *NOT* a public server, so I want it locked down as > much as possible. After removing that bogus rule, if you see more of this and increasing timeouts somewhat doesn't help, try running tcpdump on port 53 to watch what's happening .. you will see DNS requests from mail pickup, browsing etc do use 'oddball' high ports; watch 'em go and responses come back .. > [root@kabini1, /etc, 8:53:11am] 468 % uname -a > FreeBSD kabini1.local 9.3-RELEASE-p33 FreeBSD 9.3-RELEASE-p33 #0: Wed > Jan 13 17:55:39 UTC 2016 I'm still running 9.3 too. 6 months to go! cheers, Ian From owner-freebsd-questions@freebsd.org Fri Jul 1 13:44:06 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DAD5B884C0 for ; Fri, 1 Jul 2016 13:44:06 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5F27B203D for ; Fri, 1 Jul 2016 13:44:06 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-209-65.knology.net [216.186.209.65] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id u61Di36B024180 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 1 Jul 2016 08:44:04 -0500 Subject: Re: ipfw question References: <20160701223303.S324@sola.nimnet.asn.au> Cc: freebsd-questions@freebsd.org From: "William A. Mahaffey III" Message-ID: <92b4920c-eafa-1677-ff5a-ccf7e28bcce5@hiwaay.net> Date: Fri, 1 Jul 2016 08:49:33 -0453.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20160701223303.S324@sola.nimnet.asn.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 13:44:06 -0000 On 07/01/16 08:30, Ian Smith wrote: > In freebsd-questions Digest, Vol 630, Issue 5, Message: 2 > On Thu, 30 Jun 2016 10:23:54 -0453.75 "William A. Mahaffey III" wrote: > > > I had an oddball occurence this A.M. I sat down to check E-mails & surf > > & found that I couldn't recover any E-mails. I poked around a bit & > > found some entries in /var/log/security indicating that traffic from my > > DNS server was being dropped by the firewall: > > > > > > [root@kabini1, ~, 10:04:03am] 587 % tail -20 /var/log/security ; date > [.. omitting unrelated entries ..] > > Jun 30 08:24:04 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:46927 in via re0 > > Jun 30 08:25:30 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:44681 in via re0 > > Jun 30 08:25:32 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:29687 in via re0 > > Jun 30 08:27:20 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:51623 in via re0 > > Jun 30 08:34:56 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:46764 in via re0 > > Jun 30 08:34:57 kabini1 kernel: ipfw: 65500 Deny UDP 209.244.0.3:53 192.168.0.27:24172 in via re0 > > This usually indicates that responses from an upstream DNS server are > arriving after the keep-state rule that allowed your DNS request packet > out has since timed out, which usually indicates some perhaps temporary > problem with the link, the upstream server, or the phase of the moon. > > > 01400 allow udp from me to any keep-state > > Consult ipfw(8) about increasing dynamic rule timeouts, if it's a > regular occurrence. Usually your {mail,web,whatever} client will just > try again .. UDP is not expected to be reliable, by definition. > > > I haven't made any changes to my firewall setup in months, maybe a year > > or more (so long that I found I had forgotten what to do initially :-/ > > I see that it's based on rc.firewall 'workstation' rules, as reference. > Does rc.conf specify firewall_type="workstation" or have you copied that > to custom rules? At first glance it looks stock, but I'm not up for a > line by line comparison :) Absolutely correct, modified from box-stock workstation rules. From my rc.conf: [root@kabini1, /etc, 8:43:43am] 471 % grep -i firewall rc.conf firewall_enable="YES" firewall_type="workstation" firewall_quiet="NO" firewall_logdeny="YES" # firewall_nologports="111,137,138,513" firewall_nologports="111,137,138" firewall_allowservices="192.168.0.0/24" firewall_myservices="any" # firewall_myservices="nfs,111,513,550,lockd,quotad,ssh,ntp,timed,new-rwho" # firewall_myservices="nfs,lock,quota,ssh,ntp,timed,new-rwho" # firewall_myservices="nfsd,lockd,quota,ssh,ntp,timed,new-rwho" [root@kabini1, /etc, 8:46:53am] 472 % > > > ). I eventually recalled where to tweak & added a line to my rc.fiewwall > > file & restarted ipfw. It spit out all rules, including my new one, > > which implied that I hadn't botched the syntax. E-mail went back to > > working & all is well. However, I want to make sure I didn't open up > > more than I think I am. My rule list as echoed out from the restart is > > below: > > You may have opened up a lot more than you bargained for .. > > > [root@kabini1, /etc, 8:52:59am] 467 % service ipfw restart > > net.inet.ip.fw.enable: 1 -> 0 > > net.inet6.ip6.fw.enable: 1 -> 0 > > Flushed all rules. > > 00100 allow ip from any to any via lo0 > > 00200 deny ip from any to 127.0.0.0/8 > > 00300 deny ip from 127.0.0.0/8 to any > > 00400 deny ip from any to ::1 > > 00500 deny ip from ::1 to any > > 00600 allow ipv6-icmp from :: to ff02::/16 > > 00700 allow ipv6-icmp from fe80::/10 to fe80::/10 > > 00800 allow ipv6-icmp from fe80::/10 to ff02::/16 > > 00900 allow ipv6-icmp from any to any ip6 icmp6types 1 > > 01000 allow ipv6-icmp from any to any ip6 icmp6types 2,135,136 > > 01100 check-state > > 01200 allow tcp from me to any established > > 01300 allow tcp from me to any setup keep-state > > 01400 allow udp from me to any keep-state > > 01500 allow icmp from me to any keep-state > > 01600 allow ipv6-icmp from me to any keep-state > > 01700 allow udp from 0.0.0.0 68 to 255.255.255.255 dst-port 67 out > > 01800 allow udp from any 67 to me dst-port 68 in > > 01900 allow udp from any 67 to 255.255.255.255 dst-port 68 in > > 02000 allow udp from fe80::/10 to me dst-port 546 in > > > 02100 allow udp from any 53 to me in # <-------- my new rule !!!! > > Don't do this! Anyone and his dog can send UDP packets to any UDP port > or service they like on your machine, by (trivially) forging the source > port as 53. Now you've outed this hole publically, best fix it soon .. Hmmmm .... OK, glad I asked :-/ .... > > Given you're using dynamic rules, the way it was is the correct way to > use external UDP services. > > > 02200 allow icmp from any to me icmptypes 8 > > 02300 allow ipv6-icmp from any to any ip6 icmp6types 128,129 > > 02400 allow icmp from any to me icmptypes 3,4,11,13 > > 02500 allow ipv6-icmp from any to any ip6 icmp6types 3 > > 02600 allow tcp from 192.168.0.0/24 to me > > 02700 allow udp from 192.168.0.0/24 to me > > 02800 allow udp from 192.168.0.0/24 513 to 192.168.0.0/24 dst-port 513 > > 02900 allow udp from 192.168.0.0/24 525 to 192.168.0.0/24 dst-port 525 > > 65000 count ip from any to any > > 65100 deny { tcp or udp } from any to any dst-port 111,137,138 in > > 65200 deny { tcp or udp } from 192.168.0.0/24 to me > > 65300 deny ip from any to 255.255.255.255 > > 65400 deny ip from any to 224.0.0.0/24 in > > 65500 deny udp from any to any dst-port 520 in > > 65500 deny tcp from any 80,443 to any dst-port 1024-65535 in > > 65500 deny log logamount 50000 ip from any to any > > Firewall rules loaded. > > [root@kabini1, /etc, 8:53:11am] 468 % > > > > > > with my new rule marked. I noticed that the dropped DNS packets were > > destined for oddball ports on my box, so I have no port specification in > > my rule. Am I just allowing DNS replies back in, or > > (humorously/tragically) more :-) ? This box is my daily driver > > workstation desktop, *NOT* a public server, so I want it locked down as > > much as possible. > > After removing that bogus rule, if you see more of this and increasing > timeouts somewhat doesn't help, try running tcpdump on port 53 to watch > what's happening .. you will see DNS requests from mail pickup, browsing > etc do use 'oddball' high ports; watch 'em go and responses come back .. 10-4, wilco. > > > [root@kabini1, /etc, 8:53:11am] 468 % uname -a > > FreeBSD kabini1.local 9.3-RELEASE-p33 FreeBSD 9.3-RELEASE-p33 #0: Wed > > Jan 13 17:55:39 UTC 2016 > > I'm still running 9.3 too. 6 months to go! > > cheers, Ian Yeah, too bad, I do like 9.3, feelin' like old leather by now :-/ .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@freebsd.org Fri Jul 1 15:07:48 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4259B8EF0B for ; Fri, 1 Jul 2016 15:07:48 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 88F842F53 for ; Fri, 1 Jul 2016 15:07:48 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u61F7Zmj072652 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 1 Jul 2016 09:07:35 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u61F7ZFE072649; Fri, 1 Jul 2016 09:07:35 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 1 Jul 2016 09:07:35 -0600 (MDT) From: Warren Block To: Allen cc: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD In-Reply-To: <20160630175243.063e07a7@KoggyBSD.org> Message-ID: References: <20160630175243.063e07a7@KoggyBSD.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 01 Jul 2016 09:07:35 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 15:07:48 -0000 On Thu, 30 Jun 2016, Allen wrote: > Hi, > > I've been using FreeBSD on and off since 4.0-CURRENT, which seems like > almost a lifetime ago now, heh. I'm currently using FreeBSD > 10.0-RELEASE and even though I've gotten my latest order from the > FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch of > other stuff for myself and my Wife) I'm not ready to upgrade yet since > I've gotten my system working how I like (Got WindowMaker set up, and > FVWM2, and some other stuff set up) so I'm using it for now. > > Anyway, in all these years that have passed using FreeBSD and a bunch > of Linux distros, I never had time or patience enough to learn > Programming Languages, and I'm getting more and more to the part where > I'm thinking it's a good idea more so now than before. > > I have the book "Learning Perl" that I bought a while back, and I've > also downloaded a bunch of stuff for Perl, Python, Ruby, and others, so > I'm just curious on basically what Languages anyone here would > recommend. Practically speaking, it's worth knowing the basics of all three. Perl is a mishmash of a lot of different things, so it's not particularly consistent. But it is very expressive. Ruby is kind of like a nicer, cleaner Perl. They got rid of the sigils at the start of variable names, which to me is the ugliest part of Perl. Ruby has other interesting features, like nearly everything being an object. However, it has seemed to stagnate a little over the last few years. Python is the mainstream "scripting" language of choice. It has good features and is widely used. It leans toward the strict side of languages ("there should be only one way to do things") and that appeals to a lot of traditional programmers. As a background, it is worth knowing sh. However, sh is extremely weak compared to any of these. Doing anything nontrivial (that is, anything) takes a lot of code. Still, a lot of constructs in other languages descend from it or at least make a little more sense in light of it. From owner-freebsd-questions@freebsd.org Fri Jul 1 16:18:57 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08FE0B8F291 for ; Fri, 1 Jul 2016 16:18:57 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: from mail-io0-f193.google.com (mail-io0-f193.google.com [209.85.223.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D59E522B3 for ; Fri, 1 Jul 2016 16:18:56 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: by mail-io0-f193.google.com with SMTP id 100so12028567ioh.1 for ; Fri, 01 Jul 2016 09:18:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=gmIAtTBD1KZuVaujhpVyRJa1tkaSNxOvMeS/VIdBTa0=; b=W8NNA6XD8aV35XOgGleCpFc11RfumDhqoNnpO70hd1GrrR40eWc/i2RUr7Yc+hWGl+ Ix2XIBPUpvlzlf2nhL4wAj9mHYvqfCJ11oL/PMoVR/6I2NVGtYeQJh9//k+RbCf1Uljx 8/REfWJuWloDt06qBQdbLlKQ+u1vld9cXTBWrdLhbHGugcGNxEVR8jPwOJvWkRApcBx/ +5wYGkJ8uSCZZnUqYvOqW3AXAqYc2FAfkRRm91cPe5Q1uEN/nUUQEgI0mR547TG1USAX 82P6m6Fuy2RYXid3HFWtq5zlsqXCDWzp453wak4OzLCl2IkEGBPlfwbFQNjbOhOW0e3a vY/w== X-Gm-Message-State: ALyK8tI8MCXBNerVQMC2oOTSkEMTUl/2dsAsUHFsQu3/BT1R0sAVt83amgL/d60mS5OBMw== X-Received: by 10.107.55.214 with SMTP id e205mr20044568ioa.166.1467380931029; Fri, 01 Jul 2016 06:48:51 -0700 (PDT) Received: from WorkBox.Home.gmail.com (97-116-27-223.mpls.qwest.net. [97.116.27.223]) by smtp.gmail.com with ESMTPSA id w78sm2100372ita.3.2016.07.01.06.48.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Jul 2016 06:48:49 -0700 (PDT) References: <20160630175243.063e07a7@KoggyBSD.org> User-agent: mu4e 0.9.16; emacs 24.5.1 From: Brandon J. Wandersee To: Allen Cc: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD In-reply-to: <20160630175243.063e07a7@KoggyBSD.org> Date: Fri, 01 Jul 2016 08:48:50 -0500 Message-ID: <86poqx31vh.fsf@WorkBox.Home> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 16:18:57 -0000 Allen writes: > I have the book "Learning Perl" that I bought a while back, and I've > also downloaded a bunch of stuff for Perl, Python, Ruby, and others, so > I'm just curious on basically what Languages anyone here would > recommend. I'll echo what some others have said, and recommend that before you learn any language you should learn about the fundamentals and different paradigms of programming itself: variables, loops, branches, and all that. Most programming language tutorials I've seen assume the reader already has a general understanding of how to string logic together when writing a program. Since *nix is your platform, and you're looking for something "simple," I'd have to recommend starting with Bourne shell scripting.[1] Every Unix/Linux implementation uses shell scripts for common tasks, and shell scripting will both teach you more about how Unix-like operating systems work, and save you from being buried in the low-level, highly abstracted, get-your-hands-really-dirty sorts of tasks other programming languages are suited for. The Bourne shell (/bin/sh) is found on all *nix platforms, and anything written in good old Bourne syntax can be interpreted by any other shell (Bash, ZSH, (T)CSH, Kourne...), so it serves as a good starting point for learning how to write scripts for your shell of choice, and your scripts will work anywhere a Unix shell is available. And since many things in FreeBSD---including all the rc(8) and periodic(8) scripts---are written in Bourne shell, learning that will give you insight into how FreeBSD does some things under the hood, and possibly let you change some of your system's behavior with relative ease and without having to hack the operating system itself. The tutorials at Codecademy can also be a fun way to learn a bit while passing the time.[2] I'm a perpetual novice myself when it comes to programming, so that sort of thing appeals to me. [1]: http://www.grymoire.com/Unix/Sh.html [2]: https://www.codecademy.com/ -- :: Brandon J. Wandersee :: brandon.wandersee@gmail.com :: -------------------------------------------------- :: 'The best design is as little design as possible.' :: --- Dieter Rams ---------------------------------- From owner-freebsd-questions@freebsd.org Fri Jul 1 16:42:00 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38C44B8F90C for ; Fri, 1 Jul 2016 16:42:00 +0000 (UTC) (envelope-from rjhjr0@gmail.com) Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E8F942232 for ; Fri, 1 Jul 2016 16:41:59 +0000 (UTC) (envelope-from rjhjr0@gmail.com) Received: by mail-vk0-x230.google.com with SMTP id k68so73592776vkb.0 for ; Fri, 01 Jul 2016 09:41:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Mme1bl34JOGLvv9tuDvUNQAgm7Y7q7/B9pmbJdgQs5M=; b=gyOJTBu6vN+dTj/CsBvcav61hgNXGbsdwfP+RZpDf+6vYn93YgpeXvm2jfhCY6ChSo +yR27RLvmtr45mclhZv1tswtCBDHTTG374+gwavXegnpJ66m6k6KGb27lpVk8r0jBJgK lzEpJ/k7I0pOMWAUpE1HfXuWRidI7SaNxuCGZpWC0ymijkkDKeoDVh0OntQPdGh8LtVo oJycV2nBLoaApRRJkkJJC/M4H/Azzc+Qs1YGprMO2JAuJ2sDrLMeQSkj1wod7xEVdwTZ 4L00r+QvWPsDCKEEaXOy0/rY6lN53LmIOFMiWVMkzpFS8WoeE/wZLGXAY7BhNaqO+zeb 4dvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Mme1bl34JOGLvv9tuDvUNQAgm7Y7q7/B9pmbJdgQs5M=; b=LzPWLRUZVyDlVvfRvlpQ5LZK9U74TzswVdKcnGzwS2CmFtRPsgezjQeNMRkJVpergo 1/4WTHVROZl5E+eMypgAAPp+Yk/BpPFG+blQrijGTJE4byds0WBg9FyIyAj09AcUJ5LU sL/WwfEOy0U9bWptAVJdhQwodTnLtbBN2cWNGLTkKL1O/gpOW8J2zsB0Vsm9XApNGBuY 8WOrb7ZDvDuaOBiqFF5nt+aCe9qDvqrcSVIYw+S5t3X0q9I+yfhnHLuup0DmgVn3Nv0M zy7d7Obk4HRkTtcwY7jAn9kg3+NoPXJb+mG08OztrDNvo3TYNSQ2rWljjOAJPFSR6kgk SXrQ== X-Gm-Message-State: ALyK8tI1/Xg/K00FhS/9WrkRedcvMdKQLoRZARMWb+u67V80HpFpAt7dY2fY727eZ3A+cobVLdR0e+WNrxmwYA== X-Received: by 10.31.50.150 with SMTP id y144mr10013598vky.94.1467391318867; Fri, 01 Jul 2016 09:41:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.40.163 with HTTP; Fri, 1 Jul 2016 09:41:58 -0700 (PDT) In-Reply-To: <20160630175243.063e07a7@KoggyBSD.org> References: <20160630175243.063e07a7@KoggyBSD.org> From: Robert Hall Date: Fri, 1 Jul 2016 12:41:58 -0400 Message-ID: Subject: Re: "Simple" Languages in FreeBSD To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 16:42:00 -0000 On 6/30/16, Allen wrote: > I've been using FreeBSD on and off since 4.0-CURRENT, which seems like > almost a lifetime ago now, heh. I'm currently using FreeBSD > 10.0-RELEASE and even though I've gotten my latest order from the > FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch of > other stuff for myself and my Wife) I'm not ready to upgrade yet since > I've gotten my system working how I like (Got WindowMaker set up, and > FVWM2, and some other stuff set up) so I'm using it for now. > > Anyway, in all these years that have passed using FreeBSD and a bunch > of Linux distros, I never had time or patience enough to learn > Programming Languages, and I'm getting more and more to the part where > I'm thinking it's a good idea more so now than before. Why is it a good idea now? If you just want to automate things on a few computers, sh will run on any *nix box without installing additional software. If you want to create GUIs in X, you'll need something more complicated. Pick something that you're likely to use a lot. Any language that you know well will be more powerful than a language you don't know well. From owner-freebsd-questions@freebsd.org Fri Jul 1 18:23:24 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF2C1B8F4A2 for ; Fri, 1 Jul 2016 18:23:24 +0000 (UTC) (envelope-from bsd_atog@comcast.net) Received: from resqmta-ch2-08v.sys.comcast.net (resqmta-ch2-08v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "resqmta-po-01v.sys.comcast.net", Issuer "COMODO RSA Organization Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B478C2839 for ; Fri, 1 Jul 2016 18:23:24 +0000 (UTC) (envelope-from bsd_atog@comcast.net) Received: from resomta-ch2-08v.sys.comcast.net ([69.252.207.104]) by resqmta-ch2-08v.sys.comcast.net with SMTP id J35hbuhNolVqIJ362bNaxn; Fri, 01 Jul 2016 18:23:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1467397402; bh=wncqyKtO1KgPu2OqREQffyINrVYmOJ9qHqiNax3CXO0=; h=Received:Received:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type; b=IEjioXrPporT/T9JAZ5QLYBc+nA3LkZxrwUO/GdCxr9ywheh3D6raAgmIpud6aB/C /QKM5Tk5z+VzUElIUaHytH0cJdfFKRps2VM13NvYhlSdxx4t3xxa7cv69CIK+3IeTW k2u0P6Py6h/p/7/fJliV3f4Wq6GmQBrVeZpG7T+dgJE2tEdWo6A1K6iQMlHCXlNc+a 4v7DSHfUdlnd2IbC/qtxJ3jWRboehVlaq2U6aBN8uj7Rewr2miLrUGcn/a7zqFEPdv JuvqG7IjvAx0QLpiCkba48ScDWFX/B8itHqn/fKP8zQoCF3r7VMTiJAr6uy3CMGsHZ 0qYuJA8r7eWWg== Received: from KoggyBSD.org ([68.60.93.182]) by resomta-ch2-08v.sys.comcast.net with comcast id DWPM1t00E3w4emU01WPNqT; Fri, 01 Jul 2016 18:23:22 +0000 Date: Fri, 1 Jul 2016 14:22:50 -0400 From: Allen To: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD Message-ID: <20160701142250.2588c637@KoggyBSD.org> In-Reply-To: References: <20160630175243.063e07a7@KoggyBSD.org> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; i386-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 18:23:25 -0000 On Fri, 1 Jul 2016 12:41:58 -0400 Robert Hall wrote: > On 6/30/16, Allen wrote: > > I've been using FreeBSD on and off since 4.0-CURRENT, which seems > > like almost a lifetime ago now, heh. I'm currently using FreeBSD > > 10.0-RELEASE and even though I've gotten my latest order from the > > FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch > > of other stuff for myself and my Wife) I'm not ready to upgrade yet > > since I've gotten my system working how I like (Got WindowMaker set > > up, and FVWM2, and some other stuff set up) so I'm using it for now. > > > > Anyway, in all these years that have passed using FreeBSD and a > > bunch of Linux distros, I never had time or patience enough to learn > > Programming Languages, and I'm getting more and more to the part > > where I'm thinking it's a good idea more so now than before. =20 >=20 > Why is it a good idea now? If you just want to automate things on a > few computers, sh will run on any *nix box without installing > additional software. If you want to create GUIs in X, you'll need > something more complicated. Before I respond too much, I wanted to say thanks to everyone that took the time to reply, again, thank you. Any input is appreciated.=20 OK, the reason I'm thinking now is a better time, quite simply, I'm 33 years old now, and I've wanted to learn Coding in some way for a very long time, and before recently, I really Honestly think that a part of the reason I never learned, is that all through school, I always did terrible in Math. I mean REALLY bad. I failed Math all the time and I made the mistake of falling into thinking that "Well some people aren't good at Math, and I'm one of them, and so I suck at Math" and so on. The mistake being that I Believed that after a while, fully ignoring the fact that I never stuck with anything long enough to really learn it. I bought myself "Teach yourself C++ in 24 hours" and at the recommendation of a friend, bought myself "Teach yourself Visual Basic in 24 Hours" and later on in life, after getting into Linux, BSD, and Unix in general, I wanted to learn C, and bought myself a C book, and then Perl, and as I mentioned I downloaded a bunch of different Books about everything from Unix books, BSD Books, Linux Books, Unix Security which I'm very much into, and basically anything to do with Unix or BSD in general I grabbed it.=20 My problem seemed to be that when I'd get lost in a Coding Book, I'd eventually give up. That, looking back, was a major mistake. I did eventually go to College after getting a GED (Got kicked out of High school for poor grades right after 10th Grade and so I had to go to an Adult Learning Center, and I tested out of everything eventually) when I started College I knew I wanted to do something in Computer Science, and the two classes I took that I did the best in were Operating Systems, and Security + (The Security + Class was a course designed to help you take that Certification and so on) and I also took a C++ Class thinking that maybe if I had an instructor that could help answer my questions I'd do better.=20 I eventually had to drop that course, and, I gave up again. So I've got hundreds of books on everything you could imagine, and my goal is one day to be able to work on BSD. I'm good with Security and I've always been interested in how that works, and I even wrote the Password Policy that's in use at my old College. It was a Mid Term Paper I did and the Systems Admin happened to be in my class.=20 The Operating Systems Course was my other area of Enjoyment, and I've always liked messing with Operating Systems, I collect them as well and I've installed and ran everything from PC-DOS (Mind you, I didn't even have a Computer until September of 1999, and I know that because of an account I made online WAYYY back in the first week of getting my first PC) and I even used BeOS heh. Which I did love by the way ;) ) Sorry about the length of this but I'm trying to make sure I give enough info as to how and why I asked my question and what's lead up to it. I'm thinking Shell Scripting may be a good place to start as you said, and you're right, I do NOT have the whole string of Logic thing down really. And you're also right in saying that every book or text on Coding seems to assume you already know this.=20 One of the reasons I had thought about Perl, Python, and Ruby, for Perl, I wanted to learn that because I'd read that it was easier to start with, but mainly, I have a book called "FreeBSD Unleashed, 2nd Editon" and in that book, which is terrific by the way, it has a chapter for Shell Scripting, and then, theres a Chapter dedicated to Perl. That book said that if you want to really get into FreeBSD that you should have at the very least, a basic understanding of Perl Scripting because it says some of the FreeBSD Configuration stuff was actually Perl. Mind you this book covers 4.0 and 5.0, but again, if FreeBSD uses Perl for anything, then I'd like to at least learn enough Perl that I could be a FreeBSD System Admin.=20 My Goals as far as Coding / Programming goes, personally one day I'd like to eventually be able to to Kernel Programming, or at least know how to. Which I think is possible, but will take a long time and hard work, and I'm OK with that, because it's something I really want. =46rom what I've seen so far, Shell Scripting is the first step, and would teach me Logic Stringing and so on, and of course, that book "FreeBSD Unleashed 2nd Edition" does say that for Shell Scripting, it's a good starting point because I'd be using Commands that I'm already familiar with, so it's not as big of a learning Curve. So I have thought about that as well.=20 I really like Zsh. I have that installed on every machine I use. I started out like most people do, with Bash on Linux, and Csh / TCsh on BSD, and from what I've read, Csh based Shells are not ideal for Scripting, and that Bourne based Shells are the way to go for that. =20 > Pick something that you're likely to use a lot. Any language that you > know well will be more powerful than a language you don't know well. For that, I know that Shell Scripting would serve purposes in that respect no matter which Unix based OS I use, and Perl works on everything as well. I've been told by a lot of people to go for Perl, and the same number have said to use Python, and myself, I liked what I was able to learn in Ruby, in the amount of time. I was reading a book about Ruby, and it started out by telling me to load IRB, and that way I could type things and make things happen as I went along, which is good because I was at least understanding what was going on.=20 Eventually I want to learn C, and some day, if possible, I'd like to learn Assembler just to get an idea of how the differences between i386, i486, i586, i686, and MIPS, and basically learn the ins and outs of old Sun hardware and Apple Hardware and SGI stuff. But really the main goal I'd like to get to, is knowing C, but I've also learned that before I learn C, I need to learn something simpler in terms of how it works, like Perl, Python, Ruby, Shell Scripting, and so on, and once I've gotten decent at one or two of those, I figured that would teach me the Logical parts required for higher end things like C. I have read a lot about Perl, and Ruby, and Python, and so I do know that any of those three would be usable for more than just simple little Scripts, and once I've learned maybe two of those, I figure it'll make learning C easier. Sorry again for the length of this, it's not meant to irritate anyone, but I thought the question as to why now all of a sudden did I want to start learning this stuff was a valid question, and without going into a bit of History I didn't know of any other way to answer that question, so again, sorry about the length and chunk of my life story I typed out, but I thought if I gave some history it would make the reasons a bit more clear. Thank you everyone who replied, I value the opinions, -Allen From owner-freebsd-questions@freebsd.org Fri Jul 1 18:36:27 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 038F3B8F6DF for ; Fri, 1 Jul 2016 18:36:27 +0000 (UTC) (envelope-from bsd_atog@comcast.net) Received: from resqmta-ch2-11v.sys.comcast.net (resqmta-ch2-11v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "resqmta-po-01v.sys.comcast.net", Issuer "COMODO RSA Organization Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BEB312CE9 for ; Fri, 1 Jul 2016 18:36:26 +0000 (UTC) (envelope-from bsd_atog@comcast.net) Received: from resomta-ch2-18v.sys.comcast.net ([69.252.207.114]) by resqmta-ch2-11v.sys.comcast.net with SMTP id J3HvbL0xaTKbsJ3IfbJB5r; Fri, 01 Jul 2016 18:36:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1467398185; bh=Q+BpwO3lsk79DJ68z9pv+bxAd5t5DbTTAX/L3PfL3fA=; h=Received:Received:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type; b=oZcGNm+wJ+KuwYP6psS3XZQ7OsXB7zz4yd0nTYMsIpXULnGSz1wjbITmc5NslD3UC mXwQFc+No0ZV0hLB1ok0vgZ3CUjG9WzvAfGxBebsFaD7CZKpXXp0xf2aEeWz27KNGL ql840gsehN+HISmwMuq4063v4RBAgpErUd/nDEocZwXhYK8z0mGHnpTNkKMHL/elbN JThlPrMzxdKzqIsi77+5ixm9BpyXhrNrfOueEo93wSCg0MfQaCQAyT6p01fkNflcMp Fi2pVQqiDZFxATg/UksyZR/tyvXrlmi1MuPsR1hOTo4GbB3osg19t6KJxBKQJamazs xNjFP8VcguMGA== Received: from KoggyBSD.org ([68.60.93.182]) by resomta-ch2-18v.sys.comcast.net with comcast id DWcQ1t00D3w4emU01WcRY6; Fri, 01 Jul 2016 18:36:25 +0000 Date: Fri, 1 Jul 2016 14:35:53 -0400 From: Allen To: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD Message-ID: <20160701143553.159d8c72@KoggyBSD.org> In-Reply-To: <86poqx31vh.fsf@WorkBox.Home> References: <20160630175243.063e07a7@KoggyBSD.org> <86poqx31vh.fsf@WorkBox.Home> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; i386-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 18:36:27 -0000 On Fri, 01 Jul 2016 08:48:50 -0500 Brandon J. Wandersee wrote: <*SNIP*> > I'll echo what some others have said, and recommend that before you > learn any language you should learn about the fundamentals and > different paradigms of programming itself: variables, loops, > branches, and all that. Most programming language tutorials I've seen > assume the reader already has a general understanding of how to > string logic together when writing a program. Given the length of my last Mail, I've snipped my portion out to keep this a little smaller for everyone reading it :) I agree with you; Every book or how to that I seem to see, assumes from the get go that you already have an understanding of this, and I don't really. > Since *nix is your platform, and you're looking for something > "simple," I'd have to recommend starting with Bourne shell > scripting.[1] Every Unix/Linux implementation uses shell scripts for > common tasks, and shell scripting will both teach you more about how > Unix-like operating systems work, and save you from being buried in > the low-level, highly abstracted, get-your-hands-really-dirty sorts > of tasks other programming languages are suited for. The Bourne shell > (/bin/sh) is found on all *nix platforms, and anything written in > good old Bourne syntax can be interpreted by any other shell (Bash, > ZSH, (T)CSH, Kourne...), so it serves as a good starting point for > learning how to write scripts for your shell of choice, and your > scripts will work anywhere a Unix shell is available. And since many > things in FreeBSD---including all the rc(8) and periodic(8) > scripts---are written in Bourne shell, learning that will give you > insight into how FreeBSD does some things under the hood, and > possibly let you change some of your system's behavior with relative > ease and without having to hack the operating system itself. OK, this is what I'm aiming for as one of my short term Goals. I want to be able to customize System Start Up and all that, but also be able to write things I can use as well, and that seems like it's exactly what I should do. Although I do eventually want to be able to Hack on the Kernel, that's going to take me some time. It's one of my Long Term Goals. It's one of the reasons that I asked my question here, because BSD is one of my main OSs of Choice. I've supported it in every way I have been able to for a long time (I still have the box and book and CDs that my FreeBSD PowerPak came in which came with FreeBSD 4.0-RELEASE, heh, and I have purchased just about everything from the FreeBSD Mall, and helped whenever I could with Money, but to be able to help with Code, would be nice). By the way, slightly OT; If anyone reading this is new to FreeBSD, or Unix in general, the books and Magazines available on the FreeBSD Mall are WONDERFUL! I've got like 5 Pairs of the BSD Boxers, Hundreds of Stickers, Bumper Stickers, the CD-Case, every Book sold there, and a bunch of the Tee Shirts and I did have a FreeBSD Hoodie but a guy I used to be friends with stole that, so I'll have to buy another since the quality and overall feel of those is great. /*End Shameless Plug for the FreeBSD Mall, which also sells things for Patrick Volkerding at the Slackware Store*/ > The tutorials at Codecademy can also be a fun way to learn a bit while > passing the time.[2] I'm a perpetual novice myself when it comes to > programming, so that sort of thing appeals to me. > > [1]: http://www.grymoire.com/Unix/Sh.html > [2]: https://www.codecademy.com/ > Thank you :) I'll look into these as well. I think I should have renamed the thread a little, because "Simple" Was probably not the best word to use for this, but again, thanks for replying. -Allen From owner-freebsd-questions@freebsd.org Fri Jul 1 18:50:16 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F417CB8F943 for ; Fri, 1 Jul 2016 18:50:15 +0000 (UTC) (envelope-from bsd_atog@comcast.net) Received: from resqmta-ch2-12v.sys.comcast.net (resqmta-ch2-12v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "resqmta-po-01v.sys.comcast.net", Issuer "COMODO RSA Organization Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C644B21B4 for ; Fri, 1 Jul 2016 18:50:15 +0000 (UTC) (envelope-from bsd_atog@comcast.net) Received: from resomta-ch2-19v.sys.comcast.net ([69.252.207.115]) by resqmta-ch2-12v.sys.comcast.net with SMTP id J3VVbpA67TD5UJ3W2bbagN; Fri, 01 Jul 2016 18:50:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1467399014; bh=2WBB+ZDWFszcFBJEKOmMC9Vq2NsUziUJw0PM83an6Y8=; h=Received:Received:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type; b=FVl0nmSAnf+J7H8vJCqr3eS+YSOowONB/vpSqzRDxnUMeiQmAaNlc5TR+KtesOdrL +vP/F0IBayvacFSjutBDZDebKIir9W7aq/wZZ0/itAMAZCcTlUnK88JiUukjTKmlA7 hjzT3eYGtGWcTA9Jkn+qPfoWkfiHAMrUNaxS75qmk1u7i7rHBqQnj5RsoqJ/D6tO2T uyv6HN8PaDe2EL8VbIDkuzFJRZqHGDFLyb9ChcUJQarRFZAAF8ozEoDMCYqZfF9LzV KaVMChIxrBo3j6cyYan5oBIm/cdgCBWz4T9gI69skAIQWXn1X3A2uLwawcw7M5XV05 ee8PR106oW3hQ== Received: from KoggyBSD.org ([68.60.93.182]) by resomta-ch2-19v.sys.comcast.net with comcast id DWqD1t00Y3w4emU01WqExw; Fri, 01 Jul 2016 18:50:14 +0000 Date: Fri, 1 Jul 2016 14:49:42 -0400 From: Allen To: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD Message-ID: <20160701144942.703931a4@KoggyBSD.org> In-Reply-To: References: <20160630175243.063e07a7@KoggyBSD.org> <20160701095652.17036e6fe1e467ee64adc9f7@sohara.org> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; i386-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 18:50:16 -0000 On Fri, 1 Jul 2016 07:50:18 -0400 Ultima wrote: > If perl has been decided, I suggest learning rperl instead of regular > perl. They more or less the same, except in that rperl has a stricter > syntax usage (correct me if I'm wrong, not an expert). It will > compile it into a c blob and be much faster than regular perl. One of > the compile settings was 400ish times faster? Yeah... if I were to > learn perl, it would definitely be rperl. Honestly I've never even heard of RPerl. I'll look into that for sure. Thank you for the reply, and Honestly I'd never heard of it. I do have the Learning Perl Book, and I've also got a bunch of Books I've downloaded for Perl, and I have a decent amount of books on each of the three (Python, Perl, Ruby) so I could do that. But I'm going to look into RPerl, as that sounds very interesting to say the least. Thanks again! > On Fri, Jul 1, 2016 at 6:22 AM, krad wrote: > > > Depending on the problems you are tackling it may also be worth > > thinking about things at a higher level as well. eg if you are > > doing systems maintenance/automation look at something like > > ansible. It's not programming in an traditional sense, but it can > > make things a lot easier to do, especially if you are doing things > > at scale. There are other config management tools out there (chef, > > puppet, salt, fabric etc) but ansible is relatively easy to setup > > and get going, and will utilise anything you learn in python very > > well. Don't be put off by the fact you may only have a small number > > of machines, it still makes life easier. Yea I'm not in charge of any machines other than the ones I have in my home, and I used to have 11 Computers I used for various tasks, like one machine was a Linux box that I used mainly for making Music with LMMS, and I do enjoy making Music; I play Instruments, and I also use Computers to make music as well. Most of it ends up being Industrial sounding, and I've gotten a lot of compliments for how I use Samples and things from other people. I also make Punk, and some weird mixes of Rock-A-Billy / Psychobilly, and Metal, and then I've also made some weird stuff that sounds sort of like "Heavy techno" lol. Then I have the very first Computer I ever bought, which is still kicking lol. I use that as my FTP Server so that my Wife and I can back up stuff to one machine, and then from there, back up to USB Drives and CDs and so on. I do a lot of back ups because I've destroyed my file systems a few times, unlinked a File System or two, and even had physical damage to machines, so I try to stay up on back ups and things. Thanks again everyone, I really appreciate any opinions, and I'm looking into a lot of stuff now. I really was surprised about RPerl, I'd never heard of that before, and so it's nice to see something new from a question. Thanks very much everyone, -Allen From owner-freebsd-questions@freebsd.org Fri Jul 1 19:16:00 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6F12B8FDE2 for ; Fri, 1 Jul 2016 19:16:00 +0000 (UTC) (envelope-from karly@kipshouse.net) Received: from mgmt.ironboy.kipshouse.net (ironboy.kipshouse.net [IPv6:2001:470:835a:4242::42]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mx.kipshouse.net", Issuer "Starfield Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7826F2C6D for ; Fri, 1 Jul 2016 19:16:00 +0000 (UTC) (envelope-from karly@kipshouse.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kipshouse.org; i=@kipshouse.org; q=dns/txt; s=kh-ss; t=1467400561; x=1498936561; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; z=Date:=20Fri,=201=20Jul=202016=2011:57:19=20-0700|From: =20Karl=20Young=20|To:=20Allen=20|Cc:=20freebsd-questions@freebsd.org |Subject:=20Re:=20"Simple"=20Languages=20in=20FreeBSD |Message-ID:=20<20160701185719.GC28010@mailboy.kipshouse. net>|References:=20<20160630175243.063e07a7@KoggyBSD.org> =0D=0A=20=0D=0A=20<20160701142250.2588c637@Kog gyBSD.org>|MIME-Version:=201.0|In-Reply-To:=20<2016070114 2250.2588c637@KoggyBSD.org>; bh=VHSG82Nl8mlGHWZjJGRyYies6EL6T+c/4qDbV89dsMs=; b=a1bNbMIkl8Lt8aS8vaalJkiNThj8JrqHVTnswH7zb4xGF3QUaRKHhyl1 nizRPCxPpq5GvIFA0/q2qK+SDCRiq3fjuBrUX9iC0lm8rlcEzLZQTs4K5 rfewpHDXN+LU61Q+ieaccvoaHWh8gnV10lMhXQO7PQIZC8BJaRSiCq/wB thLv1uDcwyDwHAiCqEIezNIYdypLogxmZmkNimBKmVbpPp84pqV7UdZGF pe3Lq6adPablG5d5eIf2LKikgka+QB5I0+eaX1kSqIpANRxIJtkGLuV/n SYTkpmTdTgqGWM24tYwQ8MbecBxqAeQuhoGYHfxurw3JX381pwcsSXPys Q==; Authentication-Results: d2.ironport.kipshouse.net; dkim=neutral (message not signed) header.i=none Received-SPF: None (d2.ironport.kipshouse.net: no sender authenticity information available from domain of karly@kipshouse.org) identity=pra; client-ip=2001:470:835a:1010::26; receiver=d2.ironport.kipshouse.net; envelope-from="karly@kipshouse.net"; x-sender="karly@kipshouse.org"; x-conformance=sidf_compatible Received-SPF: None (d2.ironport.kipshouse.net: no sender authenticity information available from domain of karly@kipshouse.net) identity=mailfrom; client-ip=2001:470:835a:1010::26; receiver=d2.ironport.kipshouse.net; envelope-from="karly@kipshouse.net"; x-sender="karly@kipshouse.net"; x-conformance=sidf_compatible Received-SPF: None (d2.ironport.kipshouse.net: no sender authenticity information available from domain of postmaster@mailboy.kipshouse.net) identity=helo; client-ip=2001:470:835a:1010::26; receiver=d2.ironport.kipshouse.net; envelope-from="karly@kipshouse.net"; x-sender="postmaster@mailboy.kipshouse.net"; x-conformance=sidf_compatible X-SBRS: None X-MID: 207181 X-RemoteIP: 2001:470:835a:1010::26 X-RemoteHost: 2001:470:835a:1010::26, mailboypriv.kipshouse.net X-IronPort-AV: E=McAfee;i="5700,7163,8213"; a="207181" Received: from mailboypriv.kipshouse.net (HELO mailboy.kipshouse.net) ([IPv6:2001:470:835a:1010::26]) by d2.ironport.kipshouse.net with ESMTP; 01 Jul 2016 12:16:00 -0700 Received: by mailboy.kipshouse.net (Postfix, from userid 500) id B1CDE43C5E; Fri, 1 Jul 2016 11:57:19 -0700 (PDT) Date: Fri, 1 Jul 2016 11:57:19 -0700 From: Karl Young To: Allen Cc: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD Message-ID: <20160701185719.GC28010@mailboy.kipshouse.net> References: <20160630175243.063e07a7@KoggyBSD.org> <20160701142250.2588c637@KoggyBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160701142250.2588c637@KoggyBSD.org> X-Arbitrary-Number-Of-The-Day: 42 X-URL: http://www.kipshouse.org/karly X-Work-URL: http://www.cisco.com/ X-Disclaimer: My opinions do not necessarily represent those of my employer. User-Agent: Mutt/1.5.20 (2009-12-10) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 19:16:00 -0000 Allen(bsd_atog@comcast.net)@2016.07.01 14:22:50 -0400: > On Fri, 1 Jul 2016 12:41:58 -0400 > Eventually I want to learn C, I'm going to be the contrarian here. If you want to learn C, start with C, (C, *not* C++), just start with something simple, and keep building on it. Any book that say you can learn a programming language in 24 hours (or 21 days: ), is probably not going to be helpful. If you already have hundreds of books, you probably have a copy of "The C Programmiing Language by Kernighan and Ritchie (The White Book)". Take as long as it takes to do all the exercises in the book. When you get stuck, get help, and stick with it. One Day at a Time. Good Luck -karl > and some day, if possible, I'd like to > learn Assembler just to get an idea of how the differences between > i386, i486, i586, i686, and MIPS, and basically learn the ins and outs > of old Sun hardware and Apple Hardware and SGI stuff. But really the > main goal I'd like to get to, is knowing C, but I've also learned that > before I learn C, I need to learn something simpler in terms of how it > works, like Perl, Python, Ruby, Shell Scripting, and so on, and once > I've gotten decent at one or two of those, I figured that would teach > me the Logical parts required for higher end things like C. I have read > a lot about Perl, and Ruby, and Python, and so I do know that any of > those three would be usable for more than just simple little Scripts, > and once I've learned maybe two of those, I figure it'll make learning > C easier. > > Sorry again for the length of this, it's not meant to irritate anyone, > but I thought the question as to why now all of a sudden did I want to > start learning this stuff was a valid question, and without going into > a bit of History I didn't know of any other way to answer that > question, so again, sorry about the length and chunk of my life story I > typed out, but I thought if I gave some history it would make the > reasons a bit more clear. > > Thank you everyone who replied, I value the opinions, > > -Allen > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Jul 1 19:26:50 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D4FAB8FFDD for ; Fri, 1 Jul 2016 19:26:50 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0028E2016 for ; Fri, 1 Jul 2016 19:26:49 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: by mail-oi0-x235.google.com with SMTP id s66so123723462oif.1 for ; Fri, 01 Jul 2016 12:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7RU2RAvDyT/2C6tBajqiEB8tJr8Gyg7fzEacc322ZEI=; b=oTXiJxr5bDGgENE0UZLI9ONCohhBmOVdbqPpaZu+9cA1SoJVB8aDPsbO/n6bhSLe+m obQ95BkgUA7Qvp0zXDnQKSrzoqMOBWw0h63IGzpUashw4pPwC8iIvIHDSxvW9zelaDBK KsvQh+bgLSbc1ncLQxymTZHOSVg5OQcBTSRJlsOX9zw7qmOLKxw9fv5mvFvKdceWyJFj kWhQwCh5zufvkdvtC19vxrcriktErLbBYmr44P4GKGsD6SyTbg/Od7PPwPUEh+5ZPYFK aMHsnn4jnZI/Zgi5ABSZndH1eLYlJvadEFC3LxW3rX52MOrxWSn2zLRPxL39bls/PdZK vhwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7RU2RAvDyT/2C6tBajqiEB8tJr8Gyg7fzEacc322ZEI=; b=kKGD/K1fcQGhHBD2dcK4Bu6o/Rnu5GHRuQ3GpCKiT0kkuH+wGd0918Sy+NDW+O7mxA a+QcivjQfp0LtF7DfW2vXFwxfx3go2XYEW6STVkfV1/SQGm00LeNzWT1HowElmfefDBn Kc9zqvpA425n2XT7/wM89+pTClH+GQQSf06CkY44QBJaM2Ztgz2dSDyXvJO6DFVx66FQ wit6VNBJiMzXva7xeC5hitvDkvLZUtO3eFRPfR9vYDkhNTjA6CfMIJL9nWZTMTUf+Yms VNwqIOsKMdjObpdYcSojuAyKZft1ejv85kI6xY+aEjgYaNhEu97OTQHE6bd/mcjrWom6 yFdg== X-Gm-Message-State: ALyK8tIcvEag+ZouUuue8LEFO3sbpnNQHF/OUPEs+SrJWrujLbhqpW3xfBgLvOl0OoVP+9UbA6uDOS1V1MzSBA== X-Received: by 10.157.63.234 with SMTP id i39mr15166742ote.170.1467401208994; Fri, 01 Jul 2016 12:26:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.42.225 with HTTP; Fri, 1 Jul 2016 12:26:48 -0700 (PDT) In-Reply-To: <20160701142250.2588c637@KoggyBSD.org> References: <20160630175243.063e07a7@KoggyBSD.org> <20160701142250.2588c637@KoggyBSD.org> From: Mehmet Erol Sanliturk Date: Fri, 1 Jul 2016 12:26:48 -0700 Message-ID: Subject: Re: "Simple" Languages in FreeBSD To: Allen Cc: FreeBSD Questions Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 19:26:50 -0000 On Fri, Jul 1, 2016 at 11:22 AM, Allen wrote: > On Fri, 1 Jul 2016 12:41:58 -0400 > Robert Hall wrote: > > > On 6/30/16, Allen wrote: > > > I've been using FreeBSD on and off since 4.0-CURRENT, which seems > > > like almost a lifetime ago now, heh. I'm currently using FreeBSD > > > 10.0-RELEASE and even though I've gotten my latest order from the > > > FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch > > > of other stuff for myself and my Wife) I'm not ready to upgrade yet > > > since I've gotten my system working how I like (Got WindowMaker set > > > up, and FVWM2, and some other stuff set up) so I'm using it for now. > > > > > > Anyway, in all these years that have passed using FreeBSD and a > > > bunch of Linux distros, I never had time or patience enough to learn > > > Programming Languages, and I'm getting more and more to the part > > > where I'm thinking it's a good idea more so now than before. > > > > Why is it a good idea now? If you just want to automate things on a > > few computers, sh will run on any *nix box without installing > > additional software. If you want to create GUIs in X, you'll need > > something more complicated. > > Before I respond too much, I wanted to say thanks to everyone that took > the time to reply, again, thank you. Any input is appreciated. > > OK, the reason I'm thinking now is a better time, quite simply, I'm 33 > years old now, and I've wanted to learn Coding in some way for a very > long time, and before recently, I really Honestly think that a part of > the reason I never learned, is that all through school, I always did > terrible in Math. I mean REALLY bad. I failed Math all the time and I > made the mistake of falling into thinking that "Well some people > aren't good at Math, and I'm one of them, and so I suck at Math" and > so on. The mistake being that I Believed that after a while, fully > ignoring the fact that I never stuck with anything long enough to > really learn it. > > I read all of the messages in that thread up to now . All of the messages were very helpful . At the beginning , I could not understand your question very well because of lack of sufficient information for me . Now , I think , everything is clear . Please do not consider my opinion against your thoughts or in any way to blame your approach . I am just trying to mention other possible points . My profession at the beginning was "Elementary School Teacher" , and then become an Instructor about Computer Programming in a University . My University graduate subject was Mathematics , and then Computer Sciences . Let's start from Mathematics . If you are able to learn a second language , you are able to learn Mathematics because "Mathematics is language of Sciences" . Assume your mother language is English , and you are learning French . Mathematics learning is very similar to this process with a different language like German . The method is that Mathematics should be thought and learned like "Second Language Teaching or Learning" . When this method is not followed , teaching and learning Mathematics is very difficult , otherwise very easy with sufficient study . > I bought myself "Teach yourself C++ in 24 hours" and at the > recommendation of a friend, bought myself "Teach yourself Visual Basic > in 24 Hours" and later on in life, after getting into Linux, BSD, and > Unix in general, I wanted to learn C, and bought myself a C book, and > then Perl, and as I mentioned I downloaded a bunch of different Books > about everything from Unix books, BSD Books, Linux Books, Unix > Security which I'm very much into, and basically anything to do with > Unix or BSD in general I grabbed it. > > My problem seemed to be that when I'd get lost in a Coding Book, I'd > eventually give up. That, looking back, was a major mistake. I did > eventually go to College after getting a GED (Got kicked out of High > school for poor grades right after 10th Grade and so I had to go to an > Adult Learning Center, and I tested out of everything eventually) when > I started College I knew I wanted to do something in Computer Science, > and the two classes I took that I did the best in were Operating > Systems, and Security + (The Security + Class was a course designed to > help you take that Certification and so on) and I also took a C++ > Class thinking that maybe if I had an instructor that could help > answer my questions I'd do better. > Here the problem is that learning a programming language requires a sufficiently long amount of time . In a University , in a Programming Language course , additional to course lecture hours , it is necessary to work at least fifteen more hours as external study with program writing exercises . Without writing programs about problems ( carefully designed for the course ) it is not possible to learn any programming language in sufficient expertise to use it . This will teach how to use the programming language . Then , it is necessary to learn theoretical subjects where the programming language will be used . For example , if you want to write data processing programs , it is necessary to learn data structures , file structures , etc. With the above explanations , I can say that I hate books such as "Learning ... in a few Hours or Days ". There is no such a possibility . > > I eventually had to drop that course, and, I gave up again. So I've > got hundreds of books on everything you could imagine, and my goal is > one day to be able to work on BSD. I'm good with Security and I've > always been interested in how that works, and I even wrote the > Password Policy that's in use at my old College. It was a Mid Term > Paper I did and the Systems Admin happened to be in my class. > > The Operating Systems Course was my other area of Enjoyment, and I've > always liked messing with Operating Systems, I collect them as well > and I've installed and ran everything from PC-DOS (Mind you, I didn't > even have a Computer until September of 1999, and I know that because > of an account I made online WAYYY back in the first week of getting my > first PC) and I even used BeOS heh. Which I did love by the way ;) ) > > Sorry about the length of this but I'm trying to make sure I give > enough info as to how and why I asked my question and what's lead up > to it. > > I'm thinking Shell Scripting may be a good place to start as you said, > and you're right, I do NOT have the whole string of Logic thing down > really. And you're also right in saying that every book or text on > Coding seems to assume you already know this. > > One of the reasons I had thought about Perl, Python, and Ruby, for > Perl, I wanted to learn that because I'd read that it was easier to > start with, but mainly, I have a book called "FreeBSD Unleashed, 2nd > Editon" and in that book, which is terrific by the way, it has a > chapter for Shell Scripting, and then, theres a Chapter dedicated to > Perl. > > That book said that if you want to really get into FreeBSD that you > should have at the very least, a basic understanding of Perl Scripting > because it says some of the FreeBSD Configuration stuff was actually > Perl. Mind you this book covers 4.0 and 5.0, but again, if FreeBSD > uses Perl for anything, then I'd like to at least learn enough Perl > that I could be a FreeBSD System Admin. > > My Goals as far as Coding / Programming goes, personally one day I'd > like to eventually be able to to Kernel Programming, or at least know > how to. Which I think is possible, but will take a long time and hard > work, and I'm OK with that, because it's something I really want. > > From what I've seen so far, Shell Scripting is the first step, and > would teach me Logic Stringing and so on, and of course, that book > "FreeBSD Unleashed 2nd Edition" does say that for Shell Scripting, > it's a good starting point because I'd be using Commands that I'm > already familiar with, so it's not as big of a learning Curve. So I > have thought about that as well. > > I really like Zsh. I have that installed on every machine I use. I > started out like most people do, with Bash on Linux, and Csh / TCsh on > BSD, and from what I've read, Csh based Shells are not ideal for > Scripting, and that Bourne based Shells are the way to go for that. > > > Pick something that you're likely to use a lot. Any language that you > > know well will be more powerful than a language you don't know well. > > For that, I know that Shell Scripting would serve purposes in that > respect no matter which Unix based OS I use, and Perl works on > everything as well. I've been told by a lot of people to go for Perl, > and the same number have said to use Python, and myself, I liked what I > was able to learn in Ruby, in the amount of time. I was reading a book > about Ruby, and it started out by telling me to load IRB, and that way > I could type things and make things happen as I went along, which is > good because I was at least understanding what was going on. > > Eventually I want to learn C, and some day, if possible, I'd like to > learn Assembler just to get an idea of how the differences between > i386, i486, i586, i686, and MIPS, and basically learn the ins and outs > of old Sun hardware and Apple Hardware and SGI stuff. But really the > main goal I'd like to get to, is knowing C, but I've also learned that > before I learn C, I need to learn something simpler in terms of how it > works, like Perl, Python, Ruby, Shell Scripting, and so on, and once > I've gotten decent at one or two of those, I figured that would teach > me the Logical parts required for higher end things like C. I have read > a lot about Perl, and Ruby, and Python, and so I do know that any of > those three would be usable for more than just simple little Scripts, > and once I've learned maybe two of those, I figure it'll make learning > C easier. > > Sorry again for the length of this, it's not meant to irritate anyone, > but I thought the question as to why now all of a sudden did I want to > start learning this stuff was a valid question, and without going into > a bit of History I didn't know of any other way to answer that > question, so again, sorry about the length and chunk of my life story I > typed out, but I thought if I gave some history it would make the > reasons a bit more clear. > > Thank you everyone who replied, I value the opinions, > > -Allen > _______________________________________________ > > >From your last explanations , my understanding is that , your PRIMARY goal is to use FreeBSD in a professional way . My opinion is that you can learn a shell language by yourself by using books . This will allow you to use operating system facilities easily especially by using scripts . After that , please select your main application area such as data processing , numerical analysis , statistical analysis , data base applications , graphics , text processing , etc . This selection will be useful for selecting the programming language to use . For example , if your main goal is to analyze data statistically , choice of R programming language will be more appropriate . If you want to perform data base application a language suitable may be SQL . For text processing Perl will be more suitable . If my understanding is correct , and your desire to learning C , you may follow a serious course about C programming language . Some universities are allowing "Special Student" application for University graduates . Such facilities may be used . Or , some Universities have online courses open to public . You may follow such courses . Another important point is the following : If two programming languages are "Turing Complete" and "Resource Complete" , these two languages are theoretically equivalent . Differences are in only how they are used . Therefore , important point is to select the programming language as suitable your tasks to be programmed . You are young and I think your future will be good if you do not lose your interest and consistently you try to achieve your goals . With my best wishes , Mehmet Erol Sanliturk From owner-freebsd-questions@freebsd.org Fri Jul 1 19:39:01 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB3E3B8F395 for ; Fri, 1 Jul 2016 19:39:01 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp10.server.rpi.edu (smtp10.server.rpi.edu [128.113.2.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "canit.localdomain", Issuer "canit.localdomain" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B1A322654 for ; Fri, 1 Jul 2016 19:39:00 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp-auth3.server.rpi.edu (route.canit.rpi.edu [128.113.2.233]) by smtp10.server.rpi.edu (8.14.4/8.14.4/Debian-8) with ESMTP id u61JTKFl030680 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Jul 2016 15:29:20 -0400 Received: from smtp-auth3.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth3.server.rpi.edu (Postfix) with ESMTP id 7CF5158119; Fri, 1 Jul 2016 15:29:20 -0400 (EDT) Received: from [128.113.24.47] (gilead-qc124.netel.rpi.edu [128.113.124.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drosih) by smtp-auth3.server.rpi.edu (Postfix) with ESMTPSA id 64C2258115; Fri, 1 Jul 2016 15:29:20 -0400 (EDT) From: "Garance A Drosehn" To: Allen Cc: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD Date: Fri, 01 Jul 2016 15:29:20 -0400 Message-ID: In-Reply-To: <20160701142250.2588c637@KoggyBSD.org> References: <20160630175243.063e07a7@KoggyBSD.org> <20160701142250.2588c637@KoggyBSD.org> MIME-Version: 1.0 X-Mailer: MailMate (1.9.4r5234) X-Virus-Scanned: ClamAV using ClamSMTP X-Bayes-Prob: 0.0001 (Score 0, tokens from: outgoing, @@RPTN) X-Spam-Score: 0.00 () [Hold at 10.10] X-CanIt-Incident-Id: 03Rdvtk3k X-CanIt-Geo: ip=128.113.124.17; country=US; region=New York; city=Troy; latitude=42.7495; longitude=-73.5951; http://maps.google.com/maps?q=42.7495,-73.5951&z=6 X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.230 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 19:39:01 -0000 On 1 Jul 2016, at 14:22, Allen wrote: > > Before I respond too much, I wanted to say thanks to everyone that took > the time to reply, again, thank you. Any input is appreciated. > > OK, the reason I'm thinking now is a better time, quite simply, I'm 33 > years old now, and I've wanted to learn Coding in some way for a very > long time, and before recently, I really Honestly think that a part of > the reason I never learned, is that all through school, I always did > terrible in Math. I've programmed in many languages over the years. I think any one of Perl, Python or Ruby would be fine. The main issue would be your introduction to whatever language you pick. In the case of Ruby, this book might be of interest: https://pragprog.com/book/ltp2/learn-to-program I'm sure there are similarly good introduction books which are based on the other two languages. I work more with Ruby (and Crystal) than the other two, so I tend to know more about Ruby-related options. Another nice thing is to get used to typing in short code snippets to figure out some detail in the language. In the case of ruby, you'd use the unix command 'irb' (for "interactive Ruby"), and then you can just type in a few lines of ruby to see what the language does with them. With python you can do almost the same thing by simply typing 'python' without any input files, and then typing in commands. (and I expect there are better options that than). AFAIK, perl does not come with one of these interactive coding tools, but certainly they're easy enough to come across, such as this one: http://www.sukria.net/perlconsole.html The generic term for these convenient interactive interfaces is a "REPL", which stays for "Read-Execute-Print-Loop". They can be very helpful when learning a new language. Personally I'm also interested in the new language of Swift, but Swift is still evolving pretty rapidly, so it's probably not a good language to jump into right now. (or at least, not if you're learning to program on FreeBSD. Swift and Swift "playgrounds" would be much more interesting if you were learning to program on macOS!). Others have mentioned 'sh' and 'bash', and certainly I do a lot with both of those. If you do want to write scripts in these shells, you might get some benefit out of: https://www.shellcheck.net This is not a full-fledged REPL, because it doesn't execute any of your shell code. But it does analyze the code to look for comment causes of errors. You can also install the shellcheck command on your own computer if you don't want to go to the web site. It looks like there are web-based REPL's for several languages available at: https://repl.it/languages but I just came across that while googling right now, and have never used any of the REPL's which are there. -- Garance Alistair Drosehn = drosih@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA From owner-freebsd-questions@freebsd.org Fri Jul 1 20:05:44 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B0ADB8F8E0 for ; Fri, 1 Jul 2016 20:05:44 +0000 (UTC) (envelope-from btv1==990aa94ce29==noc@hdk5.net) Received: from spamfilter.netenterprise.net (relay1.netenterprise.net [64.29.90.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "spamfilter.netenterprise.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 371922498 for ; Fri, 1 Jul 2016 20:05:42 +0000 (UTC) (envelope-from btv1==990aa94ce29==noc@hdk5.net) X-ASG-Debug-ID: 1467403534-0a94c50eaa105410001-jLrpzn Received: from IMAIL5.netenterprise.net (imail5.netenterprise.net [64.29.90.135]) by spamfilter.netenterprise.net with ESMTP id bEUALTw4PtRsUiN8 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 01 Jul 2016 10:05:34 -1000 (HST) X-Barracuda-Envelope-From: noc@hdk5.net X-Barracuda-RBL-Trusted-Forwarder: 64.29.90.135 X-ASG-Whitelist: Client Received: from ponolei.intra.net [72.235.61.32] by IMAIL5.netenterprise.net with ESMTP (SMTPD-12.5.3.93) id 6e0500047f114cb0; Fri, 1 Jul 2016 10:05:35 -1000 Message-ID: <5776CD0E.60003@hdk5.net> X-Barracuda-Effective-Source-IP: udp017597uds.hawaiiantel.net[72.235.61.32] X-Barracuda-Apparent-Source-IP: 72.235.61.32 X-Barracuda-RBL-IP: 72.235.61.32 Date: Fri, 01 Jul 2016 10:05:34 -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: Allen CC: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD References: <20160630175243.063e07a7@KoggyBSD.org> <20160701142250.2588c637@KoggyBSD.org> X-ASG-Orig-Subj: Re: "Simple" Languages in FreeBSD In-Reply-To: <20160701142250.2588c637@KoggyBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: imail5.netenterprise.net[64.29.90.135] X-Barracuda-Start-Time: 1467403534 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA X-Barracuda-URL: https://spamfilter.netenterprise.net:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 9522 X-Virus-Scanned: by bsmtpd at netenterprise.net X-Barracuda-BRTS-Status: 1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 20:05:44 -0000 Allen wrote: > On Fri, 1 Jul 2016 12:41:58 -0400 > Robert Hall wrote: > > >> On 6/30/16, Allen wrote: >> >>> I've been using FreeBSD on and off since 4.0-CURRENT, which seems >>> like almost a lifetime ago now, heh. I'm currently using FreeBSD >>> 10.0-RELEASE and even though I've gotten my latest order from the >>> FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch >>> of other stuff for myself and my Wife) I'm not ready to upgrade yet >>> since I've gotten my system working how I like (Got WindowMaker set >>> up, and FVWM2, and some other stuff set up) so I'm using it for now. >>> >>> Anyway, in all these years that have passed using FreeBSD and a >>> bunch of Linux distros, I never had time or patience enough to learn >>> Programming Languages, and I'm getting more and more to the part >>> where I'm thinking it's a good idea more so now than before. >>> >> Why is it a good idea now? If you just want to automate things on a >> few computers, sh will run on any *nix box without installing >> additional software. If you want to create GUIs in X, you'll need >> something more complicated. >> > > Before I respond too much, I wanted to say thanks to everyone that took > the time to reply, again, thank you. Any input is appreciated. > > OK, the reason I'm thinking now is a better time, quite simply, I'm 33 > years old now, and I've wanted to learn Coding in some way for a very > long time, and before recently, I really Honestly think that a part of > the reason I never learned, is that all through school, I always did > terrible in Math. I mean REALLY bad. I failed Math all the time and I > made the mistake of falling into thinking that "Well some people > aren't good at Math, and I'm one of them, and so I suck at Math" and > so on. The mistake being that I Believed that after a while, fully > ignoring the fact that I never stuck with anything long enough to > really learn it. > > I bought myself "Teach yourself C++ in 24 hours" and at the > recommendation of a friend, bought myself "Teach yourself Visual Basic > in 24 Hours" and later on in life, after getting into Linux, BSD, and > Unix in general, I wanted to learn C, and bought myself a C book, and > then Perl, and as I mentioned I downloaded a bunch of different Books > about everything from Unix books, BSD Books, Linux Books, Unix > Security which I'm very much into, and basically anything to do with > Unix or BSD in general I grabbed it. > > My problem seemed to be that when I'd get lost in a Coding Book, I'd > eventually give up. That, looking back, was a major mistake. I did > eventually go to College after getting a GED (Got kicked out of High > school for poor grades right after 10th Grade and so I had to go to an > Adult Learning Center, and I tested out of everything eventually) when > I started College I knew I wanted to do something in Computer Science, > and the two classes I took that I did the best in were Operating > Systems, and Security + (The Security + Class was a course designed to > help you take that Certification and so on) and I also took a C++ > Class thinking that maybe if I had an instructor that could help > answer my questions I'd do better. > > I eventually had to drop that course, and, I gave up again. So I've > got hundreds of books on everything you could imagine, and my goal is > one day to be able to work on BSD. I'm good with Security and I've > always been interested in how that works, and I even wrote the > Password Policy that's in use at my old College. It was a Mid Term > Paper I did and the Systems Admin happened to be in my class. > > The Operating Systems Course was my other area of Enjoyment, and I've > always liked messing with Operating Systems, I collect them as well > and I've installed and ran everything from PC-DOS (Mind you, I didn't > even have a Computer until September of 1999, and I know that because > of an account I made online WAYYY back in the first week of getting my > first PC) and I even used BeOS heh. Which I did love by the way ;) ) > > Sorry about the length of this but I'm trying to make sure I give > enough info as to how and why I asked my question and what's lead up > to it. > > I'm thinking Shell Scripting may be a good place to start as you said, > and you're right, I do NOT have the whole string of Logic thing down > really. And you're also right in saying that every book or text on > Coding seems to assume you already know this. > > One of the reasons I had thought about Perl, Python, and Ruby, for > Perl, I wanted to learn that because I'd read that it was easier to > start with, but mainly, I have a book called "FreeBSD Unleashed, 2nd > Editon" and in that book, which is terrific by the way, it has a > chapter for Shell Scripting, and then, theres a Chapter dedicated to > Perl. > > That book said that if you want to really get into FreeBSD that you > should have at the very least, a basic understanding of Perl Scripting > because it says some of the FreeBSD Configuration stuff was actually > Perl. Mind you this book covers 4.0 and 5.0, but again, if FreeBSD > uses Perl for anything, then I'd like to at least learn enough Perl > that I could be a FreeBSD System Admin. > > My Goals as far as Coding / Programming goes, personally one day I'd > like to eventually be able to to Kernel Programming, or at least know > how to. Which I think is possible, but will take a long time and hard > work, and I'm OK with that, because it's something I really want. > > >From what I've seen so far, Shell Scripting is the first step, and > would teach me Logic Stringing and so on, and of course, that book > "FreeBSD Unleashed 2nd Edition" does say that for Shell Scripting, > it's a good starting point because I'd be using Commands that I'm > already familiar with, so it's not as big of a learning Curve. So I > have thought about that as well. > > I really like Zsh. I have that installed on every machine I use. I > started out like most people do, with Bash on Linux, and Csh / TCsh on > BSD, and from what I've read, Csh based Shells are not ideal for > Scripting, and that Bourne based Shells are the way to go for that. > > >> Pick something that you're likely to use a lot. Any language that you >> know well will be more powerful than a language you don't know well. >> > > For that, I know that Shell Scripting would serve purposes in that > respect no matter which Unix based OS I use, and Perl works on > everything as well. I've been told by a lot of people to go for Perl, > and the same number have said to use Python, and myself, I liked what I > was able to learn in Ruby, in the amount of time. I was reading a book > about Ruby, and it started out by telling me to load IRB, and that way > I could type things and make things happen as I went along, which is > good because I was at least understanding what was going on. > > Eventually I want to learn C, and some day, if possible, I'd like to > learn Assembler just to get an idea of how the differences between > i386, i486, i586, i686, and MIPS, and basically learn the ins and outs > of old Sun hardware and Apple Hardware and SGI stuff. But really the > main goal I'd like to get to, is knowing C, but I've also learned that > before I learn C, I need to learn something simpler in terms of how it > works, like Perl, Python, Ruby, Shell Scripting, and so on, and once > I've gotten decent at one or two of those, I figured that would teach > me the Logical parts required for higher end things like C. I have read > a lot about Perl, and Ruby, and Python, and so I do know that any of > those three would be usable for more than just simple little Scripts, > and once I've learned maybe two of those, I figure it'll make learning > C easier. > > Sorry again for the length of this, it's not meant to irritate anyone, > but I thought the question as to why now all of a sudden did I want to > start learning this stuff was a valid question, and without going into > a bit of History I didn't know of any other way to answer that > question, so again, sorry about the length and chunk of my life story I > typed out, but I thought if I gave some history it would make the > reasons a bit more clear. > > Thank you everyone who replied, I value the opinions, > > -Allen > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > Allen, The FreeBSD question list is your friend in learning. I have been learning FreeBSD since 2.8 I think it was, I was born in 1941 and continue to learn. I am still employed as well. Most people on the list are more knowlegable than you'll find anywhere else and willing to share.I took time to visit a computer group on the Greek Island of Crete a few years ago and found that to be true face to face as well. You will do fine with suggestions and help from the List. ~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~ Supporting FreeBSD - UNIX Computer O/S email: noc@hdk5.net email: alplant.att.net ."All that's really worth doing is what we do for others" - Lewis Carrol From owner-freebsd-questions@freebsd.org Fri Jul 1 20:12:34 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0BF3B8FAA2 for ; Fri, 1 Jul 2016 20:12:34 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A183F2935 for ; Fri, 1 Jul 2016 20:12:34 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-209-65.knology.net [216.186.209.65] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id u61KCPK1013607 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 1 Jul 2016 15:12:26 -0500 Subject: Re: "Simple" Languages in FreeBSD To: freebsd-questions@freebsd.org References: <20160630175243.063e07a7@KoggyBSD.org> <20160701142250.2588c637@KoggyBSD.org> From: "William A. Mahaffey III" Message-ID: <2363f6ed-3953-1105-dca7-a9c559db2149@hiwaay.net> Date: Fri, 1 Jul 2016 15:17:55 -0453.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20160701142250.2588c637@KoggyBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 20:12:35 -0000 On 07/01/16 13:29, Allen wrote: > On Fri, 1 Jul 2016 12:41:58 -0400 > Robert Hall wrote: > >> On 6/30/16, Allen wrote: >>> I've been using FreeBSD on and off since 4.0-CURRENT, which seems >>> like almost a lifetime ago now, heh. I'm currently using FreeBSD >>> 10.0-RELEASE and even though I've gotten my latest order from the >>> FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch >>> of other stuff for myself and my Wife) I'm not ready to upgrade yet >>> since I've gotten my system working how I like (Got WindowMaker set >>> up, and FVWM2, and some other stuff set up) so I'm using it for now. >>> >>> Anyway, in all these years that have passed using FreeBSD and a >>> bunch of Linux distros, I never had time or patience enough to learn >>> Programming Languages, and I'm getting more and more to the part >>> where I'm thinking it's a good idea more so now than before. >> Why is it a good idea now? If you just want to automate things on a >> few computers, sh will run on any *nix box without installing >> additional software. If you want to create GUIs in X, you'll need >> something more complicated. > Before I respond too much, I wanted to say thanks to everyone that took > the time to reply, again, thank you. Any input is appreciated. > > OK, the reason I'm thinking now is a better time, quite simply, I'm 33 > years old now, and I've wanted to learn Coding in some way for a very > long time, and before recently, I really Honestly think that a part of > the reason I never learned, is that all through school, I always did > terrible in Math. I mean REALLY bad. I failed Math all the time and I > made the mistake of falling into thinking that "Well some people > aren't good at Math, and I'm one of them, and so I suck at Math" and > so on. The mistake being that I Believed that after a while, fully > ignoring the fact that I never stuck with anything long enough to > really learn it. > > I bought myself "Teach yourself C++ in 24 hours" and at the > recommendation of a friend, bought myself "Teach yourself Visual Basic > in 24 Hours" and later on in life, after getting into Linux, BSD, and > Unix in general, I wanted to learn C, and bought myself a C book, and > then Perl, and as I mentioned I downloaded a bunch of different Books > about everything from Unix books, BSD Books, Linux Books, Unix > Security which I'm very much into, and basically anything to do with > Unix or BSD in general I grabbed it. > > My problem seemed to be that when I'd get lost in a Coding Book, I'd > eventually give up. That, looking back, was a major mistake. I did > eventually go to College after getting a GED (Got kicked out of High > school for poor grades right after 10th Grade and so I had to go to an > Adult Learning Center, and I tested out of everything eventually) when > I started College I knew I wanted to do something in Computer Science, > and the two classes I took that I did the best in were Operating > Systems, and Security + (The Security + Class was a course designed to > help you take that Certification and so on) and I also took a C++ > Class thinking that maybe if I had an instructor that could help > answer my questions I'd do better. > > I eventually had to drop that course, and, I gave up again. So I've > got hundreds of books on everything you could imagine, and my goal is > one day to be able to work on BSD. I'm good with Security and I've > always been interested in how that works, and I even wrote the > Password Policy that's in use at my old College. It was a Mid Term > Paper I did and the Systems Admin happened to be in my class. > > The Operating Systems Course was my other area of Enjoyment, and I've > always liked messing with Operating Systems, I collect them as well > and I've installed and ran everything from PC-DOS (Mind you, I didn't > even have a Computer until September of 1999, and I know that because > of an account I made online WAYYY back in the first week of getting my > first PC) and I even used BeOS heh. Which I did love by the way ;) ) > > Sorry about the length of this but I'm trying to make sure I give > enough info as to how and why I asked my question and what's lead up > to it. > > I'm thinking Shell Scripting may be a good place to start as you said, > and you're right, I do NOT have the whole string of Logic thing down > really. And you're also right in saying that every book or text on > Coding seems to assume you already know this. > > One of the reasons I had thought about Perl, Python, and Ruby, for > Perl, I wanted to learn that because I'd read that it was easier to > start with, but mainly, I have a book called "FreeBSD Unleashed, 2nd > Editon" and in that book, which is terrific by the way, it has a > chapter for Shell Scripting, and then, theres a Chapter dedicated to > Perl. > > That book said that if you want to really get into FreeBSD that you > should have at the very least, a basic understanding of Perl Scripting > because it says some of the FreeBSD Configuration stuff was actually > Perl. Mind you this book covers 4.0 and 5.0, but again, if FreeBSD > uses Perl for anything, then I'd like to at least learn enough Perl > that I could be a FreeBSD System Admin. > > My Goals as far as Coding / Programming goes, personally one day I'd > like to eventually be able to to Kernel Programming, or at least know > how to. Which I think is possible, but will take a long time and hard > work, and I'm OK with that, because it's something I really want. > > >From what I've seen so far, Shell Scripting is the first step, and > would teach me Logic Stringing and so on, and of course, that book > "FreeBSD Unleashed 2nd Edition" does say that for Shell Scripting, > it's a good starting point because I'd be using Commands that I'm > already familiar with, so it's not as big of a learning Curve. So I > have thought about that as well. > > I really like Zsh. I have that installed on every machine I use. I > started out like most people do, with Bash on Linux, and Csh / TCsh on > BSD, and from what I've read, Csh based Shells are not ideal for > Scripting, and that Bourne based Shells are the way to go for that. > >> Pick something that you're likely to use a lot. Any language that you >> know well will be more powerful than a language you don't know well. > For that, I know that Shell Scripting would serve purposes in that > respect no matter which Unix based OS I use, and Perl works on > everything as well. I've been told by a lot of people to go for Perl, > and the same number have said to use Python, and myself, I liked what I > was able to learn in Ruby, in the amount of time. I was reading a book > about Ruby, and it started out by telling me to load IRB, and that way > I could type things and make things happen as I went along, which is > good because I was at least understanding what was going on. > > Eventually I want to learn C, and some day, if possible, I'd like to > learn Assembler just to get an idea of how the differences between > i386, i486, i586, i686, and MIPS, and basically learn the ins and outs > of old Sun hardware and Apple Hardware and SGI stuff. But really the > main goal I'd like to get to, is knowing C, but I've also learned that > before I learn C, I need to learn something simpler in terms of how it > works, like Perl, Python, Ruby, Shell Scripting, and so on, and once > I've gotten decent at one or two of those, I figured that would teach > me the Logical parts required for higher end things like C. I have read > a lot about Perl, and Ruby, and Python, and so I do know that any of > those three would be usable for more than just simple little Scripts, > and once I've learned maybe two of those, I figure it'll make learning > C easier. > > Sorry again for the length of this, it's not meant to irritate anyone, > but I thought the question as to why now all of a sudden did I want to > start learning this stuff was a valid question, and without going into > a bit of History I didn't know of any other way to answer that > question, so again, sorry about the length and chunk of my life story I > typed out, but I thought if I gave some history it would make the > reasons a bit more clear. > > Thank you everyone who replied, I value the opinions, > > -Allen > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" I held my tongue once I saw the kinds of replies coming in, but here goes: The C programming language, Kernighan & Ritchie. Teaches programming paradigms & language in 1 svelt(sp?) swoop. Also a small tome, around 260 pgs, including appendices. Mine is 2nd edition, 1988, I don't know if there are newer editions, but that one works for me to this day. If you understand (*REALLY* understand) this book, anything else will be an easy add on & you will be able to at least get into very credible trouble kernel hacking, since all of the OS/kernel stuff is (still, I believe) written in C. You can also write very good OO code in C (see X11, at least early versions were written in C & were *VERY* object oriented). My $0.02, no more, no less .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr. From owner-freebsd-questions@freebsd.org Fri Jul 1 20:21:31 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 41DEEB8FCD4 for ; Fri, 1 Jul 2016 20:21:31 +0000 (UTC) (envelope-from Ephaeton@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 92B7D2E84 for ; Fri, 1 Jul 2016 20:21:30 +0000 (UTC) (envelope-from Ephaeton@gmx.net) Received: from hephaistos.local ([93.135.212.73]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MNZVG-1bGK2e3rtC-007C6B; Fri, 01 Jul 2016 22:21:19 +0200 Received: by hephaistos.local (Postfix, from userid 1000) id BE63A297CDF6; Fri, 1 Jul 2016 22:21:17 +0200 (CEST) Date: Fri, 1 Jul 2016 22:21:17 +0200 From: "Martin S. Weber" To: Allen Cc: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD Message-ID: <20160701202117.GA1441@hephaistos.local> Mail-Followup-To: Allen , freebsd-questions@freebsd.org References: <20160630175243.063e07a7@KoggyBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160630175243.063e07a7@KoggyBSD.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-Provags-ID: V03:K0:KAhXkCX1fZNVvrieweTLNrG0NezPmGO9qo4lwFuKJaZzPkII8YT ANshCIdr4P9/VdJmx//HsugfqMrQ9TPBWl4Y3g4aAiNxRi3FWlQE+ByCgfspWXbIwdIfx0n I7mrUr2d3hkq/MeVVrExUTFU674CCJPBe2w7MrzXrfI/Ee3vrzMOzt9oZ6JKDzWDolvgtBB YaK5y1oomeMHrx7P1u/9Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:0Cqf279w6ck=:10WujPvu6RkrEfcaeXUlVD kNcd7SxdQnTL+B7de680lAItuJhju21kVZaPeW5fqN3wXgqEpw3F1xOjMvlCnm80YViLY8d+a mMNIsOHlPwVSEkCthL4i3u4Zp6Db0Zl8nktqETWhfQlzwYgS5o+1dlnm9DXZcWSJsAP2fwdO2 6QNP56BO+mj2aKYV3L+53p2/aqHzZri+ySmYY4FKSwk88bqImlkFrbhiLeOms8jk4JuGVAu3o vkjDY4xvEEcDw5eFcBEvzQNuqlQGfijOj9MiecAol/TptaXomWijwAjMzn3tgzf0hVaUtFrDq l8LBQpbl5JzQdJT315kFE/Jolu3BlM6tDTcqNwQLcLjS7jDZbEdDpWh9RkBa3/imrOseQ4XHO ybGZetUpZJQdt8usc3nUw7jBOx1qBUKm3HthI1inR1EjMclRUQykfIecfD8aQD5EiOl2Nmr/e ibMleKTQldEgd+P/WG8IOq//0LuoTA8I27yHs82SYNBIBcrZQ46939uVVhDQs13f+yq0YauB8 SJaw5j+G9U3axpKANNP29J3jccRB7flfmWZP6uDsrS2QgBxsL+oorK59rt8NODpemmkWdemQd 1K+SEmi7C2YYNXK43AXj0M1iFuvpLZTUF8mFtqrDKM4uruqJaMnd6nI9luhUjLH5ceasy/6KS TUO+vWTaeJtUVcV70Y6meDCeIKfT5YOBsUW+KUskAI5Fvf3bD65hvDpVCtVB1l4qpFI689XHT UsQ9y+Upkp2nfoE7gt3DwkAYqYFC8S9QEhHYPvI/QbmuPYsRQ46Gl+gTHJw= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 20:21:31 -0000 Get yourself a "Structure and Interpretation of Computer Programs" (SICP), it's free and teaches scheme (a lisp). Once you've mastered that, you may happily delve into several "low-level" schemes, bells-and-whistles common lisps (e.g., clisp, sbcl), or "modern" lisps like e.g., clojure/clojurescript. If you take that route, you'll only have tired smiles for all the great ideas that these "modern" scripting languages come up with. If you add a bit of spice with e.g. Doug Hoyte's "Let Over Lambda", you might enlighten yourself how a high-level language like a lisp may get you hand-crafted assembler like performance. Do yourself a favor and stay away from the modern scripting languages that try to quirkily reimplement half-a-century old lisp (or smalltalk) ideas. Do it proper. Go Lisp. Enjoy. From owner-freebsd-questions@freebsd.org Fri Jul 1 20:35:27 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A1DEB8FF50 for ; Fri, 1 Jul 2016 20:35:27 +0000 (UTC) (envelope-from bsd@bontempi.net) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 20F5825C4 for ; Fri, 1 Jul 2016 20:35:26 +0000 (UTC) (envelope-from bsd@bontempi.net) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0691720225 for ; Fri, 1 Jul 2016 16:35:25 -0400 (EDT) Received: from web2 ([10.202.2.212]) by compute1.internal (MEProxy); Fri, 01 Jul 2016 16:35:26 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=bontempi.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=L32UllbqFujz7ToXJDhqgZOl5Jg=; b=w4WmzI AxQ7/1SBC0mxwvIs7HQgFs9qBO0q1BarWfD6HBpxtgnOzh175JbPVHPps7WluZZs PghigJpUUHhR1d9AHAP9Y26c4HZDCfJpvxPdyr6yjBN79S/WLoeoXHWbRIbB9U+6 fJP/qcDJFse4WJxe8BblxEPffIZsiajyvNZFE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=L32UllbqFujz7To XJDhqgZOl5Jg=; b=JcsAnxka7jI5sa2/OlBYGcPYQ3AunFzNhXraGU6ceQVQBwS o2TIDmjNmvSDlmgcqUnAJATlugJkQ0o9dUVljbDt3r/jiqWqKfxShlegqGthLFP3 Y1ZIBARXXLdYYf4MElUvm1zGxxODmgq3xG0P7aeJAC4u5u+TCkpNmhMp9OOM= Received: by mailuser.nyi.internal (Postfix, from userid 99) id BE2CED04E2; Fri, 1 Jul 2016 16:35:25 -0400 (EDT) Message-Id: <1467405325.1605258.654553905.17C82102@webmail.messagingengine.com> X-Sasl-Enc: CT3AcOoAtxl8kwRuR9SUQMrZU7sC1/FZQ5rTWhgdEhGo 1467405325 From: Priyadarshan To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-15e5213e In-Reply-To: <20160701202117.GA1441@hephaistos.local> References: <20160630175243.063e07a7@KoggyBSD.org> <20160701202117.GA1441@hephaistos.local> Subject: Re: "Simple" Languages in FreeBSD Date: Fri, 01 Jul 2016 20:35:25 +0000 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 20:35:27 -0000 On Fri, 1 Jul 2016, at 20:21, Martin S. Weber wrote: >=20 > Get yourself a "Structure and Interpretation of Computer Programs" > (SICP), it's free and teaches scheme (a lisp). Once you've mastered > that, you may happily delve into several "low-level" schemes, > bells-and-whistles common lisps (e.g., clisp, sbcl), or "modern" > lisps like e.g., clojure/clojurescript. >=20 > If you take that route, you'll only have tired smiles for all the > great ideas that these "modern" scripting languages come up with. > If you add a bit of spice with e.g. Doug Hoyte's "Let Over Lambda", > you might enlighten yourself how a high-level language like a lisp > may get you hand-crafted assembler like performance. >=20 > Do yourself a favor and stay away from the modern scripting languages > that try to quirkily reimplement half-a-century old lisp (or > smalltalk) ideas. > Do it proper. Go Lisp. Enjoy. Yes, I did not dare to say that, but that is exactly what I should have said. If one really cares about programming, not just as coding per se , but as craft, aesthetics, even lore, then personally the Lisp Way is a very good way to learn. Thanks for bringing up Doug Hoyte's =C2=ABLet Over Lambda=C2=BB (http://letoverlambda.com) too, although that is considered an advanced book, even for the more experienced programmers at our shop. Priyadarshan From owner-freebsd-questions@freebsd.org Fri Jul 1 20:46:46 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67A09B8F211 for ; Fri, 1 Jul 2016 20:46:46 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: from quine.pinyon.org (quine.pinyon.org [65.101.5.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 430D42A70 for ; Fri, 1 Jul 2016 20:46:46 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: by quine.pinyon.org (Postfix, from userid 122) id DDED51601AA; Fri, 1 Jul 2016 13:37:24 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on quine.pinyon.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Received: from feyerabend.n1.pinyon.org (h5.esturion.net [65.101.5.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by quine.pinyon.org (Postfix) with ESMTPSA id D02E61601AA for ; Fri, 1 Jul 2016 13:37:21 -0700 (MST) Subject: Re: "Simple" Languages in FreeBSD To: freebsd-questions@freebsd.org References: <20160630175243.063e07a7@KoggyBSD.org> <20160701142250.2588c637@KoggyBSD.org> From: "Russell L. Carter" Message-ID: <57a79c7b-7acb-cb6f-0d14-5a8b6197307e@pinyon.org> Date: Fri, 1 Jul 2016 13:37:21 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 20:46:46 -0000 Hooray, a bike shed for a rainy day. Enough theory. Here's all you need: http://programming-motherfucker.com/become.html Pick one, start at the beginning, work your way through. (You can read those three books online for free, if you need to. And use the linux advice, it's basically the same as FreeBSD.) Profit. I have learned perl to expert level 3 times in 20 years. (there's a clue in there about how much I like perl) I spent 10 years writing all my scripts in ruby. I made quite a bit of money writing c, c++ and fortran. I can write bash expertly too. But any reasonably sophisticated bash program ends up looking as transparent as a medium level perl program. I.e., inscrutable. I taught myself go, and it's very cool, for a kid's language. I wrote a "configure" type front end to cmake in bash, perl, and go as an exercise, and the go version is by far the most transparent, while needing 25% less code. But the size of the binaries, egads. OTOH, given the whole container religion is being built with it, you can probably get a job easy. While the buzz lasts. The docs are very high quality. Nowadays I just write in c++14. Everything. It is bliss. But I've been c++ templating since 1991. Having witnessed the insane variety of f*cked up c++ projects though, I can't recommend it to a beginner. Cheers, Russell On 07/01/16 12:29, Garance A Drosehn wrote: > On 1 Jul 2016, at 14:22, Allen wrote: >> >> Before I respond too much, I wanted to say thanks to everyone that took >> the time to reply, again, thank you. Any input is appreciated. >> >> OK, the reason I'm thinking now is a better time, quite simply, I'm 33 >> years old now, and I've wanted to learn Coding in some way for a very >> long time, and before recently, I really Honestly think that a part of >> the reason I never learned, is that all through school, I always did >> terrible in Math. > > I've programmed in many languages over the years. I think any one of > Perl, Python or Ruby would be fine. The main issue would be your > introduction to whatever language you pick. > > In the case of Ruby, this book might be of interest: > > https://pragprog.com/book/ltp2/learn-to-program > > I'm sure there are similarly good introduction books which are based > on the other two languages. I work more with Ruby (and Crystal) than > the other two, so I tend to know more about Ruby-related options. > > Another nice thing is to get used to typing in short code snippets > to figure out some detail in the language. In the case of ruby, > you'd use the unix command 'irb' (for "interactive Ruby"), and then > you can just type in a few lines of ruby to see what the language > does with them. With python you can do almost the same thing by simply > typing 'python' without any input files, and then typing in commands. > (and I expect there are better options that than). AFAIK, perl does > not come with one of these interactive coding tools, but certainly > they're easy enough to come across, such as this one: > > http://www.sukria.net/perlconsole.html > > The generic term for these convenient interactive interfaces is a > "REPL", which stays for "Read-Execute-Print-Loop". They can be > very helpful when learning a new language. > > Personally I'm also interested in the new language of Swift, but > Swift is still evolving pretty rapidly, so it's probably not a good > language to jump into right now. (or at least, not if you're learning > to program on FreeBSD. Swift and Swift "playgrounds" would be much > more interesting if you were learning to program on macOS!). > > Others have mentioned 'sh' and 'bash', and certainly I do a lot with > both of those. If you do want to write scripts in these shells, you > might get some benefit out of: > > https://www.shellcheck.net > > This is not a full-fledged REPL, because it doesn't execute any of > your shell code. But it does analyze the code to look for comment > causes of errors. You can also install the shellcheck command on > your own computer if you don't want to go to the web site. > > It looks like there are web-based REPL's for several languages available > at: > > https://repl.it/languages > > but I just came across that while googling right now, and have never > used any of the REPL's which are there. > From owner-freebsd-questions@freebsd.org Fri Jul 1 20:48:53 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55198B8F2BC for ; Fri, 1 Jul 2016 20:48:53 +0000 (UTC) (envelope-from Ephaeton@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A72392B92 for ; Fri, 1 Jul 2016 20:48:52 +0000 (UTC) (envelope-from Ephaeton@gmx.net) Received: from hephaistos.local ([93.135.212.73]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MSuYT-1arox9085F-00Rrf8; Fri, 01 Jul 2016 22:43:34 +0200 Received: by hephaistos.local (Postfix, from userid 1000) id 5FCED297CDF6; Fri, 1 Jul 2016 22:43:33 +0200 (CEST) Date: Fri, 1 Jul 2016 22:43:33 +0200 From: "Martin S. Weber" To: Priyadarshan Cc: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD Message-ID: <20160701204333.GB1441@hephaistos.local> Mail-Followup-To: Priyadarshan , freebsd-questions@freebsd.org References: <20160630175243.063e07a7@KoggyBSD.org> <20160701202117.GA1441@hephaistos.local> <1467405325.1605258.654553905.17C82102@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1467405325.1605258.654553905.17C82102@webmail.messagingengine.com> User-Agent: Mutt/1.6.1 (2016-04-27) Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:3eXOVF7dvs96ZOqEnE0tjo5u19YcZEvhKtUTqQxSrDPzJfe8l9z eKFYf0GGKj/5dOziaFAuRPJ5BcrTuZcwrYZFIE6r8M+g6/FI01hSTMknMxivbKBtKsW544S gzICZYmvhnLiCegIgAQqKjyRAylKK7pEdOxX6F+OewGORY2v9Ka3lgpSRnMU7OCcsnkkvbD /vn0qgMolxuG7Kh10AMEA== X-UI-Out-Filterresults: notjunk:1;V01:K0:VGxnguFSqkk=:NBEA9u+Zc9/o0HIt7Knw+k 51E0XZxNumUebsp9sA2ABGPLnun2KEWhMIoc480PeRVD+CpQwD1WHWK710TlUckDuVO0Axmyv TE3D6kB9jjO0g3/htCVByGxOJq1A4aBGuUSl8Q1QVZCfwj5SGYuwMIwxDKl+vrzngQ13LCebY sLFGpuFrvkQL/bka83ItT7PCsrR++FDbl+83oXDBkVGTJ3RsDRobwdg2IDBX6FshaJ8PJ7iH9 jtK/bp1rDJ3vLHzyBQ7dEo2MPaihj/bX9vlz/cVW0nRJ91VKdR0I/GNIaw7j3XKi3HCIZWIto muvxxKxLlt5Nl5F/RYTevc3uUFgY0LAQlR/zonu+5hAAT1QBGadKN69omU8rChL1Mm7B9gGpM ucaZuH27IOcHU4I+ZsBgLJag16t1Hwu3aJ20P1jU2GtKOMVYOrM4e0XMduO3Lt9F9WR9whH6g ol9my2BrueSdMyjALiotZVsyi5xwi50AxkM1tV2ldNCyXKYlXhZd2KCItgvBKRx46WLJYHyK+ inh0XeBWdJVNhjifgJIoT5T1tiWiJW2PaALVnd5c81BSxzrXgDa+HSRg8gD4szPU/LnbEyx8/ 8387SP3LzNefetaHAZ+nE5GcWZr4WZnP1onVbaMHE78SU0zLgXhN5kN8Dz34F4ZlujqMc9Umw WwMl6lDzPztaXkGxz0hA0GzKRVI3H3uiRE/aH6AqYtaUBFY9Tum1ygQ9IWAbDuTQ1qeyh0jlI l1uEvRqGXLBFQeGgReIgCM/6f4+p2h8JKaH7pv0SZZRnBSOGcHYZEVw493Y= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 20:48:53 -0000 On 2016-07-01 20:35:25, Priyadarshan wrote: > (...) > Thanks for bringing up Doug Hoyte's =ABLet Over Lambda=BB > (http://letoverlambda.com) too, although that is considered an advanced > book, even for the more experienced programmers at our shop. If LoL is too much for you, just read appendix D, it'll save your wrists = and sanity ;-) Oh and it should resonate with a BSD afficionado... Regards, -Martin From owner-freebsd-questions@freebsd.org Fri Jul 1 21:37:12 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0CDD6B8FA17 for ; Fri, 1 Jul 2016 21:37:12 +0000 (UTC) (envelope-from doug@safeport.com) Received: from bucksport.safeport.com (bucksport.safeport.com [198.74.231.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D02DC2E42 for ; Fri, 1 Jul 2016 21:37:11 +0000 (UTC) (envelope-from doug@safeport.com) Received: from bucksport.safeport.com (bucksport.safeport.com [198.74.231.101]) by bucksport.safeport.com (8.14.5/8.14.5) with ESMTP id u61L9025053055 for ; Fri, 1 Jul 2016 17:09:00 -0400 (EDT) (envelope-from doug@safeport.com) Date: Fri, 1 Jul 2016 17:09:00 -0400 (EDT) From: doug@safeport.com To: freebsd-questions@FreeBSD.ORG Subject: Re: "Simple" Languages in FreeBSD Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (bucksport.safeport.com [198.74.231.101]); Fri, 01 Jul 2016 17:09:00 -0400 (EDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 21:37:12 -0000 I am only responding to a very small part of this thread. Back in the day I used machine language, basic, fortran, algol (forced as I maintained a compiler), snobol, and lisp (which I never really got the hang of). In my unix life I use sh, perl, and python. Perl is kind of like snobol, both had/have contests where the goal is either: I can do it with less statements, or bet you can't figure out what this does. At the end of the day if you like trying stuff and want/need an object oriented language ruby and python seem good, I bypassed ruby for no good reason. My problem with perl is when I go back to look at a script I wrote 2+ months ago my ability to figure it out is inversely proportional to how far I have strayed from having it look like C. So far in python I can go back and extend or modify things. This is clearly just me but it is is line with the general nature of the languages. The one python thing I will comment on is the construction: > Besides, Python, however logical it is, may be unpredictable. For example: > > In [1]: a=99 > In [2]: b=999 > In [3]: a is 99 > Out[3]: True > In [4]: b is 999 > Out[4]: False I have never used 'is' but '==' is used for numerical comparasons and 'b == 999' does the logical thing. Unless there is some symantic reason to the contrary, I think 'b is 999' could be submitted as a bug. With my first/second generation language experience I have a hard time with object stuff. I am current starting to implement a billing system in python. I have not picked a GUI but am leaning toward gtk3. I guess I will see how I feel about python in a bit. Since all my programming is FreeBSD based, I like perl and python as first choices because both are just there if you have built a workstation. That probably also changes as the GUI gets tossed into the mix. _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-217-9220 Fax: 301-217-9277 From owner-freebsd-questions@freebsd.org Fri Jul 1 22:12:05 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F28AFB8F014 for ; Fri, 1 Jul 2016 22:12:05 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E4E622BCC for ; Fri, 1 Jul 2016 22:12:05 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com ([184.105.128.2]) by holgerdanske.com for ; Fri, 1 Jul 2016 13:11:58 -0700 Received: from 194.255.20.11 (SquirrelMail authenticated user dpchrist@holgerdanske.com) by holgerdanske.com with HTTP; Fri, 1 Jul 2016 13:11:58 -0700 (PDT) Message-ID: <2485.194.255.20.11.1467403918.squirrel@holgerdanske.com> In-Reply-To: <20160630175243.063e07a7@KoggyBSD.org> References: <20160630175243.063e07a7@KoggyBSD.org> Date: Fri, 1 Jul 2016 13:11:58 -0700 (PDT) Subject: Re: 'Simple' Languages in FreeBSD From: dpchrist@holgerdanske.com To: "Allen" Cc: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 22:12:06 -0000 On Thu, June 30, 2016 2:52 pm, Allen wrote: > Hi, > > > I've been using FreeBSD on and off since 4.0-CURRENT, which seems like > almost a lifetime ago now, heh. I'm currently using FreeBSD 10.0-RELEASE > and even though I've gotten my latest order from the FreeBSD Mall (Which I > bought 10.3-RELEASE on DVD along with a bunch of other stuff for myself > and my Wife) I'm not ready to upgrade yet since I've gotten my system > working how I like (Got WindowMaker set up, and FVWM2, and some other > stuff set up) so I'm using it for now. > > Anyway, in all these years that have passed using FreeBSD and a bunch > of Linux distros, I never had time or patience enough to learn Programming > Languages, and I'm getting more and more to the part where > I'm thinking it's a good idea more so now than before. > > > I have the book "Learning Perl" that I bought a while back, and I've > also downloaded a bunch of stuff for Perl, Python, Ruby, and others, so I'm > just curious on basically what Languages anyone here would recommend. > > Literally anyone who responds with an opinion, I'm interested. Being > easy to learn for someone who isn't great with Math but does understand > Unix is a plus but not a requirement. I was starting to teach myself > Ruby on a Linux box I was using for a while and Ruby did seem to be > going OK, but a lot of the FreeBSD Books I've bought recommend Perl, and > I've also had just as many reasons from people saying to try > Python, so basically any Language and what reasons would be great. > > > -Allen If you wish to climb the Perl learning curve, the three canonical books to begin the journey are: 1. Learning Perl -- the best introductory tutorial and exercise book. 2. Perl Cookbook -- a book of short, idiomatic Perl programs with explanations and commentary that demonstrate how to solve common programming tasks using Perl. This, plus the above, will give you the ideas and confidence to solve basic to intermediate problems. 3. Programming Perl -- the definitive language reference. Use it to look up the gory details. If you go far enough into Perl, eventually you will want to read it cover to cover. For Bourne shell, I have Learning the Bash Shell and Classic Shell Scripting. To be blunt, neither is a very good for learning how to program. For C, the canonical book is The C Programming Language. For computer science concepts, the canonical book is Structure and Interpretation of Computer Programs. This was/is the killer brain melt freshmen engineering weeder text at MIT and Cal. Of the bunch, I would suggest starting with C and shell, and then add Make (the Gnu Make book is canonical). These are the tools used to build BSD, Linux, user land, language processors, servers, clients, etc.. Add Perl when you start bumping your head on the limits of Bourne shell scripts and/or when you want to write prototypes quickly. Do SICP when you dare. David From owner-freebsd-questions@freebsd.org Sat Jul 2 01:21:52 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8869B8FD9D for ; Sat, 2 Jul 2016 01:21:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 489142A39 for ; Sat, 2 Jul 2016 01:21:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-58-209.dynamic.qsc.de [92.195.58.209]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id C514527724; Sat, 2 Jul 2016 03:21:42 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u621Lfa8003019; Sat, 2 Jul 2016 03:21:42 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 2 Jul 2016 03:21:41 +0200 From: Polytropon To: Allen Cc: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD Message-Id: <20160702032141.98feaf30.freebsd@edvax.de> In-Reply-To: <20160701143553.159d8c72@KoggyBSD.org> References: <20160630175243.063e07a7@KoggyBSD.org> <86poqx31vh.fsf@WorkBox.Home> <20160701143553.159d8c72@KoggyBSD.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2016 01:21:52 -0000 On Fri, 1 Jul 2016 14:35:53 -0400, Allen wrote: > On Fri, 01 Jul 2016 08:48:50 -0500 > Brandon J. Wandersee wrote: > <*SNIP*> > [...] > > Since *nix is your platform, and you're looking for something > > "simple," I'd have to recommend starting with Bourne shell > > scripting.[1] Every Unix/Linux implementation uses shell scripts for > > common tasks, and shell scripting will both teach you more about how > > Unix-like operating systems work, and save you from being buried in > > the low-level, highly abstracted, get-your-hands-really-dirty sorts > > of tasks other programming languages are suited for. The Bourne shell > > (/bin/sh) is found on all *nix platforms, and anything written in > > good old Bourne syntax can be interpreted by any other shell (Bash, > > ZSH, (T)CSH, Kourne...), so it serves as a good starting point for > > learning how to write scripts for your shell of choice, and your > > scripts will work anywhere a Unix shell is available. And since many > > things in FreeBSD---including all the rc(8) and periodic(8) > > scripts---are written in Bourne shell, learning that will give you > > insight into how FreeBSD does some things under the hood, and > > possibly let you change some of your system's behavior with relative > > ease and without having to hack the operating system itself. > > OK, this is what I'm aiming for as one of my short term Goals. I want > to be able to customize System Start Up and all that, but also be able > to write things I can use as well, and that seems like it's exactly > what I should do. This is where basic shell skills are important (and handy) to have. As the system's scripting shell is a common means of automating things, you personally can benefit from those skills, as well as gain a better understanding of what's happening at system boot time. > Although I do eventually want to be able to Hack on the Kernel, that's > going to take me some time. It's one of my Long Term Goals. It's one of > the reasons that I asked my question here, because BSD is one of my > main OSs of Choice. For this special field of programming, you should gain understanding of C, the preprocessor, and Makefiles. Luckily, the FreeBSD sources are a good learning resource as soon as you've understood the basics. Just by reading and patching those sources you can have a great educational "playground". :-) Many prople will now say: "But C is hard!" Yes, C might be hard to actually write productive and secure code in, but it's worth trying to do so. Allow me to explain: In the past, computers were more simple than today, and it was much easier to understand what they're doing ...says the guy who had an U880 assembler in his head when he was young. ;-) Today's systems are so complicated that understanding lower-level things is not that easy anymore. Sure, you can use languages like Python, Ruby, PHP, but you will quickly understand thtat you're operating on a quite high level. The more low-level stuff you want to do, the more you get into the domain of C and assembly language. When you arrive there, the "building blocks" you're dealing with are much less complex, but require _your_ understanding of things to become meaningful. Furthermore, it's not a bad idea to at least have a look at many different programming language paradigms: imprerative, functional, object-oriented... "Obscure" languages like Forth or APL have a lot to offer, even if you decide not to use them actively, but knowing them and their concepts will enable you a much broader view of what does exist and what's possible than a narrow-minded view on just one programming language. And openness to thoughts is a fundamental skill to programming. (Again, note that programming != coding.) Programming in general is not just about reading, thinking, learning and understanding, it's also about experimenting. Be curious on where it will lead you. More or less, the journey is the goal when you start programming, and if there is a useful tool as a result - even better! > Thank you :) I'll look into these as well. I think I should have > renamed the thread a little, because "Simple" Was probably not the best > word to use for this, but again, thanks for replying. "Simple" depends on what you want to do. As most things in life, programming starts with a decision, a dream, a thought or a guess. "What do I want to achieve?" is the question that leads you on your way to find the (better: "your") proper tool for this job. The more you already know, the better your choice can be. Of course there can be a lot of "trial & error", but as long as you learn from it, it's not a problem. Even if you say (like I often do): "My choice of tools was bad, I should have been using Perl instead of awk for this task. But I'm too lazy to recode the whole thing..." :-) And don't let people tell you that you're "too old" to enter the interesting field of programming, or you're "not qualified" because you don't have a CS degree, or "doing it wrong" just because you're not using their favorite language or OS. "Programming is hard" might be discouraging, but it's definitely worth it, because as with many things in life: Reality depends. The "hard" is as individual as "the best tool" or "the best result". The things you don't understand you'll not be able to control. The things you don't control will control you. The things that control you will eventually make you stop thinking. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Sat Jul 2 12:37:19 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22869B8FE48 for ; Sat, 2 Jul 2016 12:37:19 +0000 (UTC) (envelope-from alwanbi@live.com) Received: from BLU004-OMC3S28.hotmail.com (blu004-omc3s28.hotmail.com [65.55.116.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D80172E11 for ; Sat, 2 Jul 2016 12:37:18 +0000 (UTC) (envelope-from alwanbi@live.com) Received: from BLU180-W83 ([65.55.116.73]) by BLU004-OMC3S28.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sat, 2 Jul 2016 05:36:11 -0700 X-TMN: [SinTN5NUF7evj0yE3/+pU4LKzuRqdRCX] X-Originating-Email: [alwanbi@live.com] Message-ID: From: Orville Jones To: "dpchrist@holgerdanske.com" CC: "freebsd-questions@freebsd.org" Subject: What does user land mean? Date: Sat, 2 Jul 2016 08:36:10 -0400 Importance: Normal In-Reply-To: <2485.194.255.20.11.1467403918.squirrel@holgerdanske.com> References: <20160630175243.063e07a7@KoggyBSD.org>, <2485.194.255.20.11.1467403918.squirrel@holgerdanske.com> MIME-Version: 1.0 X-OriginalArrivalTime: 02 Jul 2016 12:36:11.0378 (UTC) FILETIME=[508B5D20:01D1D45E] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2016 12:37:19 -0000 I started using FreeBSD in March 2016 just to see what it was about. I am slowly getting up to speed on learning to do things the FreeBSD way. What do people mean when they refer to "user land" ? Kind Regards=2C Orville =20 = From owner-freebsd-questions@freebsd.org Sat Jul 2 12:50:17 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88BC7B8E0C3 for ; Sat, 2 Jul 2016 12:50:17 +0000 (UTC) (envelope-from jim@ohlste.in) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3827D2265 for ; Sat, 2 Jul 2016 12:50:16 +0000 (UTC) (envelope-from jim@ohlste.in) Received: by mail-qk0-x22d.google.com with SMTP id e3so33130515qkd.0 for ; Sat, 02 Jul 2016 05:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ohlste-in.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=q6Y68FdS2ZJUA8Vr15Yz1zwTRi9MLrmiDJ3dUfY0NgY=; b=vg6PXmE5kGWqsQfclO3ZFxHBohw8ieRqidiiSycGi9YG7oVxU8SoRl9IuZf5ydZIjb TLa/LUpZRCqxVnFGl5DdtRCMzE/Bn/2ASwSDDfnaH59hgjkKeY6q6svBpJ5rCxO2P9NG cqG6i3mx7NAO0SXIxzGc9csWKF8gSmyD1E0eiEvcFHD3cOeD36zeSaFBMXEMlPEumb7N pFAgZqFvLleFMwG9/RsLQP4WAjxTxNfcar+SzTsGTqj4efrVFQtZD/EGruxoTNQHKtby ywXkTlDYlLyePKMfBJxVClekLatRprmUME7JGsJ5R6hyX4EHa25AKnjhUMeZp1p9e/ew +HHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=q6Y68FdS2ZJUA8Vr15Yz1zwTRi9MLrmiDJ3dUfY0NgY=; b=dpk791Wi4s3i2HB6zz5onyS1i5igWLRnnjOVloVHAAIP/i8QB6w9ip+ga8pUovy1kH RRsDy9aSNdA89f6Yt2RIcPBuzbTHwzuJLtOM+XJNLFmhm+hwQxTQYWvG3eslyw73bFZN LIoXVsVl3gcWr7PzntBk6wc7O7wqtLkhSRQQPJ8KcuQyRBtcFQv6Scpx4UiBvsOqlBUT zYRIG4S8LKf4j2Te6YRlH0g4qnc0BPNdXEhJ3jcUL2xwpsDf9lchmuK1SM0173Uxi56L DFrcU7KM7+rUp/Vy0commQ2Me+uo2HzQOMD6piMReCIeF+Bx6VQl6P8JpoFB4HOhr6n2 0I/g== X-Gm-Message-State: ALyK8tKGvzyt+2eQaCE1A8vO8wZYhhNBCg4s5Uw5gQ55mRdtfcFYbT5ntbggydYRyqTzyQ== X-Received: by 10.55.204.213 with SMTP id n82mr4558112qkl.40.1467463816112; Sat, 02 Jul 2016 05:50:16 -0700 (PDT) Received: from [192.168.1.4] (pool-96-249-243-37.nrflva.fios.verizon.net. [96.249.243.37]) by smtp.gmail.com with ESMTPSA id o52sm399662qta.8.2016.07.02.05.50.15 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Jul 2016 05:50:15 -0700 (PDT) Mime-Version: 1.0 (1.0) Subject: Re: What does user land mean? From: Jim Ohlstein X-Mailer: iPhone Mail (13F69) In-Reply-To: Date: Sat, 2 Jul 2016 08:50:14 -0400 Cc: "dpchrist@holgerdanske.com" , "freebsd-questions@freebsd.org" Message-Id: References: <20160630175243.063e07a7@KoggyBSD.org> <2485.194.255.20.11.1467403918.squirrel@holgerdanske.com> To: Orville Jones Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2016 12:50:17 -0000 https://en.m.wikipedia.org/wiki/User_space#USERLAND Jim Ohlstein > On Jul 2, 2016, at 8:36 AM, Orville Jones wrote: >=20 > I started using FreeBSD in March 2016 just to see what it was about. > I am slowly getting up to speed on learning to do things the FreeBSD way. > What do people mean when they refer to "user land" ? >=20 > Kind Regards, > Orville >=20 > =20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://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 Sat Jul 2 13:53:07 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C91E0B8ECA4 for ; Sat, 2 Jul 2016 13:53:07 +0000 (UTC) (envelope-from lars@noos.larseighner.com) Received: from emailserver2.asdf456.com (emailserver2.asdf456.com [72.18.207.139]) by mx1.freebsd.org (Postfix) with SMTP id A13DC2720 for ; Sat, 2 Jul 2016 13:53:07 +0000 (UTC) (envelope-from lars@noos.larseighner.com) Received: (qmail 3479 invoked by uid 0); 2 Jul 2016 13:46:25 -0000 Received: by simscan 1.4.0 ppid: 3462, pid: 3477, t: 0.1158s scanners:none Received: from unknown (HELO noos.larseighner.com) (70.115.135.184) by emailserver2.asdf456.com with SMTP; Sat, 02 Jul 2016 13:46:25 +0000 Received: by noos.larseighner.com (nbSMTP-1.00) for uid 1001 lars@noos.larseighner.com; Sat, 2 Jul 2016 08:43:50 -0500 (CDT) Date: Sat, 2 Jul 2016 08:43:49 -0500 (CDT) From: Lars Eighner X-X-Sender: lars@noos.larseighnerhome.com To: Orville Jones cc: "dpchrist@holgerdanske.com" , "freebsd-questions@freebsd.org" Subject: Re: What does user land mean? In-Reply-To: Message-ID: References: <20160630175243.063e07a7@KoggyBSD.org>, <2485.194.255.20.11.1467403918.squirrel@holgerdanske.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2016 13:53:07 -0000 In modern talk, user land would be apps -- things that are not part of the system, but are programs that you want on a particular system. They tend to exist in the /usr directory. Some of them are things that you will want in every sane system. These tend to be in /usr/bin and /usr/sbin and some of them are installed with a minimal installation -- but you could have a system without them (you just wouldn't want to). Then there are the addons which are more or less optional depending upon what you are tasking the machine to do. Most of these are installed as ports and generally go in /usr/local with its bin, etc, lib, sbin, and so forth. You probably don't want a web server in a machine dedicated to mail, and so forth. This is not all perfectly logical and strict because there are many artifacts of various legacy organization schemes, but in a general way it gives you an idea where to look for stuff. On Sat, 2 Jul 2016, Orville Jones wrote: > I started using FreeBSD in March 2016 just to see what it was about. > I am slowly getting up to speed on learning to do things the FreeBSD way. > What do people mean when they refer to "user land" ? > > Kind Regards, > Orville > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 From owner-freebsd-questions@freebsd.org Sat Jul 2 14:53:08 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A738BB8FB6E for ; Sat, 2 Jul 2016 14:53:08 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C1952FD7 for ; Sat, 2 Jul 2016 14:53:08 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 6A1FF94E2 for ; Sat, 2 Jul 2016 14:53:04 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/6A1FF94E2; dkim=none; dkim-atps=neutral Subject: Re: "Simple" Languages in FreeBSD To: freebsd-questions@freebsd.org References: <20160630175243.063e07a7@KoggyBSD.org> <86poqx31vh.fsf@WorkBox.Home> <20160701143553.159d8c72@KoggyBSD.org> From: Matthew Seaman Message-ID: Date: Sat, 2 Jul 2016 15:52:56 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160701143553.159d8c72@KoggyBSD.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8fbjsMsvMmELBnoUE1b1RdQrqkwVBvBOM" X-Virus-Scanned: clamav-milter 0.99.2 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2016 14:53:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --8fbjsMsvMmELBnoUE1b1RdQrqkwVBvBOM Content-Type: multipart/mixed; boundary="upJGitNtsPtfV03Qe9tnMLW3bm1GwLg6I" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: Subject: Re: "Simple" Languages in FreeBSD References: <20160630175243.063e07a7@KoggyBSD.org> <86poqx31vh.fsf@WorkBox.Home> <20160701143553.159d8c72@KoggyBSD.org> In-Reply-To: <20160701143553.159d8c72@KoggyBSD.org> --upJGitNtsPtfV03Qe9tnMLW3bm1GwLg6I Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Brandon J. Wandersee wrote: >> I'll echo what some others have said, and recommend that before you >> learn any language you should learn about the fundamentals and >> different paradigms of programming itself: variables, loops, >> branches, and all that. Most programming language tutorials I've seen >> assume the reader already has a general understanding of how to >> string logic together when writing a program. On 01/07/2016 19:35, Allen wrote: > I agree with you; Every book or how to that I seem to see, assumes from= > the get go that you already have an understanding of this, and I don't > really.=20 Yeah. There are whole underlying sets of concepts that are common to pretty much all programming techniques. These are something you tend to pick up as you go along rather than learning about specifically. You can't really understand these things separately to the experience of programming, but to the sort of people that write programming languages or that write textbooks about programming they're so basic and so familiar that they just seem self evident and not really worth talking about. The best approach is simply to jump in there and have a go. Learn by making and fixing your own mistakes. It seems really hard at first, but that's mostly unfamiliarity. You'll quickly get over that, and once you've taken a few steps, the following ones come easier. It doesn't really matter what language you choose for this, although some will highlight particular areas more than others. That's why it's good to learn many different languages -- as many as possible really -- since each new language will extend and build upon concepts from the last one. You'll find they get easier as you go along. Not only that, but the lessons learned with new languages will add to your understanding of previous languages. Try and find good examples to copy -- stress over the 'good' part though, and think about why certain things are done the way they are. Like any intellectual exercise, this is where you are going to have to engage your critical faculties. The Internet is full of the results of people blindly copying each other's bad examples, and sometimes it's hard for the voice of reason to make itself heard over the thundering herd galloping in the wrong direction. Cheers, Matthew --upJGitNtsPtfV03Qe9tnMLW3bm1GwLg6I-- --8fbjsMsvMmELBnoUE1b1RdQrqkwVBvBOM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJXd9VQXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATRHkP/Ayd4RbTVSNjXpLfGPfTbx/b AUhceDARC/wPIKjHbk3wBqhNsBZBp7IeWcny6M3kFPyFdDK5A7LGsyS0nVo5Sb9r rcFIwkRKCbvf6RiuyuWi46qevyo/Zu+0i6OAXGWZ15WzsR7J1WHAJwPL/1uxe7by rJ5aB0aupxyMeSWpejvJeN550xVqpRLeYBKzr7FegRjFTsd7SaDGODi9i2MRR+g9 VRS/bFejquzTHvONNP3HBtw5XQCMcM5qntu5ZHJzvJJnzNnTbfH0F6aXvdFGGMQ6 rW17zeJhPpXNVb0MJou8KaZ8XKZ0d295aQxCAj8ZM+wfHLjnAgDVJIoYuLhMMkg5 UNgo94FjvzMNXGxB9KzpYGcsy8GWFq26Tn6cG5p3hVZOuLUioQstKo+8Wc2C8PW3 zlf3wQL3vZkzsF4EdP1kohoD5gDYdMgJvx4I06HrT/qbPRCWr9ks62JfbAIOZ+pO 8v0+Db33RiKDySFrhzSMZ9CbD2y1s2ZZpmyfCrfQz2IdGlMrtO+llDY30+Xg5KJY 7u/Mdql/7T07M2g4c6Js/G7P2V7ABwLLiXq+mM1O6nE63BDaQQw1+pdfwNJ7IsQP QGE74rBzfHRzSu5H02+FmcNgUbZyhAayuuRu0lN7PIZ6iAIjcXUaPguxo1xvaC40 ZWPpZRU2aIHm6IaEP5L3 =nHcD -----END PGP SIGNATURE----- --8fbjsMsvMmELBnoUE1b1RdQrqkwVBvBOM-- From owner-freebsd-questions@freebsd.org Sat Jul 2 15:11:03 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75AFEB8FEDC for ; Sat, 2 Jul 2016 15:11:03 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2E90327F7 for ; Sat, 2 Jul 2016 15:11:02 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 98A5794FB for ; Sat, 2 Jul 2016 15:10:59 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/98A5794FB; dkim=none; dkim-atps=neutral Subject: Re: What does user land mean? To: freebsd-questions@freebsd.org References: <20160630175243.063e07a7@KoggyBSD.org> <2485.194.255.20.11.1467403918.squirrel@holgerdanske.com> From: Matthew Seaman Message-ID: <24b2a445-7dbb-cf7d-1507-b34996e92b60@FreeBSD.org> Date: Sat, 2 Jul 2016 16:10:59 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XwQRDMcoLvxXUV2bEKGPf7GsdMWP8hF5X" X-Virus-Scanned: clamav-milter 0.99.2 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2016 15:11:03 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --XwQRDMcoLvxXUV2bEKGPf7GsdMWP8hF5X Content-Type: multipart/mixed; boundary="5rVvcriaXfsUWh9BQdULKMBLllcIScrmm" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <24b2a445-7dbb-cf7d-1507-b34996e92b60@FreeBSD.org> Subject: Re: What does user land mean? References: <20160630175243.063e07a7@KoggyBSD.org> <2485.194.255.20.11.1467403918.squirrel@holgerdanske.com> In-Reply-To: --5rVvcriaXfsUWh9BQdULKMBLllcIScrmm Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 02/07/2016 13:36, Orville Jones wrote: > I started using FreeBSD in March 2016 just to see what it was about. > I am slowly getting up to speed on learning to do things the FreeBSD wa= y. > What do people mean when they refer to "user land" ? It means specifically things that are not the kernel, or things that are not executed in the kernel context. Anything useful you can do with a computer will be done in user-land -- interacting directly with the kernel is a pretty rare thing. Cheers, Matthew --5rVvcriaXfsUWh9BQdULKMBLllcIScrmm-- --XwQRDMcoLvxXUV2bEKGPf7GsdMWP8hF5X Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJXd9mDXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATvroQAJOW4S36Ax78ZHRNlnh9+Q34 3aJuyh9Rixnaz06uCWbIlbsXevpoI9kcv71KOeEfiv9wh9nH21j97BhaSQ2LbbqR Ue+5dIn18HUBkr6YSh/zEQWdQM0Khy3DVsK9GieQFSQ3T4ShtysnPgraE/n4Y8dc sDfgo5Y7SyZE9t+cn6QETyW26B3kvTrvuOwcv1P+O1ot3n0bEmkYQP2EBDoASi8G Cjigx6YARTP/XN/RW7CRfoAu6Q+3eRgAPWtzUkqJ2Uc4idlM5j0C72m9fBcL1vnF 584SgByAGVBsLvo3u79MrdzxGReZ9MSPSiajcDEb5Y9QziQPmlv5uS+KpsKLaR1O u22DiMQSPACZroQWgVFA0AhZ/bmMpFLFTNu27o7NqmVAZowOVOsgOa5N2RiXWinx cnZIbGLTYFSqtl242seu3wH0TTyjCSYjf+FIwiHKj5JGx5YVr4Udtqxwqqsvwx4o baL4w94QCZWaTHMh/hyR5znHuqHorgRZhxIzqcDcqfyqDv4b32gW+RM5v7V1cIbI pioGVbAuVlxdMvd8BazD2OcYumEF6sZOD5ECDnmQaDmSFdb6NzLY8IwU5V2g3WbU CjC3aln4DLGG5nqi/nXMQe1+liSQG59GBeixolWlngD8q9tzdJyhp2HK0Eype/CT inUE3pWDWTkzkRB9BR5M =DAAV -----END PGP SIGNATURE----- --XwQRDMcoLvxXUV2bEKGPf7GsdMWP8hF5X-- From owner-freebsd-questions@freebsd.org Sat Jul 2 15:45:17 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B634B8F77E; Sat, 2 Jul 2016 15:45:17 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.net (24-240-198-188.static.stls.mo.charter.com [24.240.198.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E5FC0280D; Sat, 2 Jul 2016 15:45:16 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.local (localhost [10.9.5.2]) by webmail.dweimer.net (8.15.2/8.15.2) with ESMTPS id u62FiHb8075255 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 2 Jul 2016 10:44:17 -0500 (CDT) (envelope-from dweimer@dweimer.net) Received: (from www@localhost) by webmail.dweimer.local (8.15.2/8.15.2/Submit) id u62FiG79075254; Sat, 2 Jul 2016 10:44:16 -0500 (CDT) (envelope-from dweimer@dweimer.net) X-Authentication-Warning: webmail.dweimer.local: www set sender to dweimer@dweimer.net using -f To: doug@safeport.com Subject: Re: "Simple" Languages in FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 02 Jul 2016 10:44:16 -0500 From: "Dean E. Weimer" Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net In-Reply-To: References: Message-ID: X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.2.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2016 15:45:17 -0000 On 2016-07-01 4:09 pm, doug@safeport.com wrote: > I am only responding to a very small part of this thread. Back in the > day I used machine language, basic, fortran, algol (forced as I > maintained a compiler), snobol, and lisp (which I never really got the > hang of). > > In my unix life I use sh, perl, and python. Perl is kind of like > snobol, both had/have contests where the goal is either: I can do it > with less statements, or bet you can't figure out what this does. > > At the end of the day if you like trying stuff and want/need an object > oriented language ruby and python seem good, I bypassed ruby for no > good reason. My problem with perl is when I go back to look at a > script I wrote 2+ months ago my ability to figure it out is inversely > proportional to how far I have strayed from having it look like C. So > far in python I can go back and extend or modify things. This is > clearly just me but it is is line with the general nature of the > languages. > > The one python thing I will comment on is the construction: > >> Besides, Python, however logical it is, may be unpredictable. For >> example: >> >> In [1]: a=99 >> In [2]: b=999 >> In [3]: a is 99 >> Out[3]: True >> In [4]: b is 999 >> Out[4]: False > > I have never used 'is' but '==' is used for numerical comparasons and > 'b == 999' does the logical thing. Unless there is some symantic > reason to the contrary, I think 'b is 999' could be submitted as a > bug. > > With my first/second generation language experience I have a hard time > with object stuff. I am current starting to implement a billing system > in python. I have not picked a GUI but am leaning toward gtk3. I guess > I will see how I feel about python in a bit. You might want to look into Qt, I started with Python using Tkinter as it was included without needed additional libraries. Then somewhere along the way I stumbled upon Eric IDE, and found its integration with the Qt Designer a nice rapid way of implementing a GUI within Python. But then again I am a system admin who dabbles a bit in programming, so there may be some programmers out there that might not think my 2 cents is worth the copper the pennies were struck from. It does have the advantage/drawback of allowing you to drag and drop GUI elements into your layout, and not have to learn all the GUI syntax, then you simply write the Python code respond to the triggers sent from the GUI. Its a plus and a minus all in one and a lot depends on your perspective and what your target audience is for the end result/program. -- Thanks, Dean E. Weimer http://www.dweimer.net/ From owner-freebsd-questions@freebsd.org Sat Jul 2 16:27:08 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6EC9DB8FFA7 for ; Sat, 2 Jul 2016 16:27:08 +0000 (UTC) (envelope-from jakub_lach@mailplus.pl) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1.freebsd.org (Postfix) with ESMTP id 5F29F2666 for ; Sat, 2 Jul 2016 16:27:07 +0000 (UTC) (envelope-from jakub_lach@mailplus.pl) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 7D4422B9D237 for ; Sat, 2 Jul 2016 09:05:30 -0700 (PDT) Date: Sat, 2 Jul 2016 09:26:58 -0700 (MST) From: Jakub Lach To: freebsd-questions@freebsd.org Message-ID: <1467476818889-6111099.post@n5.nabble.com> In-Reply-To: <201606280806.u5S86G3D095301@mech-as222.men.bris.ac.uk> References: <201606280806.u5S86G3D095301@mech-as222.men.bris.ac.uk> Subject: Re: firefox-47.0_1,1 - built-in PDF viewer does not work MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2016 16:27:08 -0000 I don't use the package, the preview does work here though (nothing changed). Have you tried clean profile? -- View this message in context: http://freebsd.1045724.n5.nabble.com/firefox-47-0-1-1-built-in-PDF-viewer-does-not-work-tp6109961p6111099.html Sent from the freebsd-questions mailing list archive at Nabble.com.