From owner-freebsd-questions@FreeBSD.ORG Tue Jul 24 16:02:18 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C5C1F1065670 for ; Tue, 24 Jul 2012 16:02:18 +0000 (UTC) (envelope-from carlj@peak.org) Received: from redcondor1.peak.org (redcondor1.peak.org [69.59.192.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8FD728FC0A for ; Tue, 24 Jul 2012 16:02:18 +0000 (UTC) Received: from zmail-mta01.peak.org ([207.55.16.111]) by redcondor1.peak.org ({e03e86cd-14ae-47ce-9578-3c080ce9c462}) via TCP (outbound) with ESMTP id 20120724155835604 for ; Tue, 24 Jul 2012 15:58:35 +0000 X-RC-FROM: X-RC-RCPT: Received: from birch.localnet (unknown [207.55.106.48]) by zmail-mta01.peak.org (Postfix) with ESMTPSA id 457E94915D4 for ; Tue, 24 Jul 2012 08:58:35 -0700 (PDT) Received: from oak.localnet (oak.localnet [192.168.193.34]) by birch.localnet (Postfix) with ESMTP id E16BC55E22 for ; Tue, 24 Jul 2012 08:58:33 -0700 (PDT) Received: from oak.localnet (localhost.localnet [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id 862FFC841 for ; Tue, 24 Jul 2012 08:58:33 -0700 (PDT) Received: (from carlj@localhost) by oak.localnet (8.14.4/8.14.4/Submit) id q6OFwXUj093709; Tue, 24 Jul 2012 08:58:33 -0700 (PDT) (envelope-from carlj@peak.org) X-Authentication-Warning: oak.localnet: carlj set sender to carlj@peak.org using -f From: Carl Johnson To: freebsd-questions@freebsd.org References: <20120722182545.39d6b96c.freebsd@edvax.de> <87a9yq79cx.fsf@oak.localnet> Mail-Followup-To: freebsd-questions@freebsd.org Date: Tue, 24 Jul 2012 08:58:33 -0700 In-Reply-To: (lei yang's message of "Tue, 24 Jul 2012 19:19:44 +0800") Message-ID: <87629d6thy.fsf@oak.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: help about free bsp version netcat to work it on ubuntu X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2012 16:02:18 -0000 lei yang writes: > On Tue, Jul 24, 2012 at 12:03 AM, Carl Johnson wrote: >> lei yang writes: >> >>> On Mon, Jul 23, 2012 at 12:25 AM, Polytropon wrote: >>>> On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote: >>>>> Hi, >>>>> >>>>> I want to build a "netcat" on my local pc (ubuntu) with gcc, is it >>>>> possible? I'm new to free bsd >>>> >>> >>> >>> it has no "-U" flag, can you point me where I get this version >>> >> Have you checked the other version of netcat already available? A quick >> check shows these four versions for Ubuntu: >> >> netcat: TCP/IP swiss army knife -- transitional package >> netcat-openbsd: TCP/IP swiss army knife >> netcat-traditional: TCP/IP swiss army knife >> netcat6: TCP/IP swiss army knife with IPv6 support >> > > how did you get the list? I used the surfraw package which is available on freebsd, debian, and ubuntu. In this case I just used 'debpackages -u netcat' to do access the ubuntu packages search page. There is also 'freebsd -psearch' to search freebsd ports, and debpackages without -u shows debian packages. > To be clear, haha, I just want to know how to build a fress bsd netcat > on a no-fressbsd platform Others have probably already mentioned this, but you are probably better off trying ports source instead. Most of those are written to be portable and are easily configured for other OSs. Freebsd port search shows the following for netcat: net/cryptcat Standard netcat enhanced with twofish encryption net/gnetcat GPL'ed re-write of the well known networking tool netcat net/nc6 Netcat clone with IPv6 support net/netcat Simple utility which reads and writes data across network connections net/sbd A netcat clone with more features and crypto net/scnc SSL Capable Netcat security/sst A simple SSL tunneling tool (uses netcat) -- Carl Johnson carlj@peak.org