Re: Crontabbing a Ruby script inside a screen

2013-01-24 Thread Brian Seklecki (Mobile)


screen(1) is just going to fill a massive buffer, then eventually core.

You can capture stdout/stderr to a file using script(1) instead.  Its 
basically  the same as:


% nohup ./command 21 | tee -a ~/command.log 

~BAS

On Thu, 24 Jan 2013, Dwayne Henderson wrote:


Hi, I run this Ruby + Sequel script inside a screen that records data from
this live stream 24/7. But it tends to core dump every once in a while, and
since I run it in a screen (so it's easy to check in on), I can't really
scroll up to catch the error whenever it happens.

So how do I crontab the screen with the Ruby s

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bad root shell in /etc/passwd

2012-09-26 Thread Brian Seklecki

 On 9/26/2012 9:06 PM, Gary Aitken wrote:

Probably not.  Just boot a livecd that supports your HBA and FS, mount 
your Root FS, and:


 # vipwd -d /mnt/rootfs
   or mount /usr as well and:
# chroot /mnt/rootfs usermod -s /usr/local/bin/bash root


guidance?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



--
Brian A. Seklecki bsekle...@probikesllc.com
CE-Pro Bikes, LLC
412-378-3823 (m)
PGP Key Available Upon Request

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Static IP on a Bridge

2011-12-29 Thread Brian Seklecki (Mobile)



  Also, what MAC address does the DHCPREQUEST packet appear to be sourced
  from (from the view of your DHCP server, or on the wire somewhere
  between the two (SPAN PORT))  ~BAS

  This sounds familar.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: KVM - FreeBSD Network Problem

2011-10-07 Thread Brian Seklecki (Mobile)





What can be the problem? Any suggestion?




Show us:

ifconfig -a
arp -an
netstat -rn
netstat -i
netstat -s


Are other KVM guests on this hypervisor working?  Are you briding or 
routing/NAT from your hypervisor?


~BAS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ICMP redirects and FreeBSD

2011-09-17 Thread Brian Seklecki (Mobile)


On Sat, 17 Sep 2011, Brett Glass wrote:

Here's a networking question: Does FreeBSD generate and accept ICMP 
redirects? Is it controllable via tuneables? How long do routing tables


$ sysctl -d net.inet.ip.redirect
net.inet.ip.redirect: Enable sending IP redirects

Accepting them sounds like the job of a userland routing daemon.

Only a few unsound routing/network topology configurations really depend 
on redirects these days; They can't be trusted because they can't be 
authenticated?  ~BAS



generated by ICMP redirects last?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: CARP on 9.0 (was no subject)

2011-08-26 Thread Brian Seklecki (Mobile)

How about:

   %sudo netstat -s carp

...on both machines.

A few years ago I submitted (or maybe it was Steve Polyack) a patch to add 
debugging to CARP, not sure if it ever got commited.


Need-more-Cisco'sih-Debugging.

~BAS


On Fri, 26 Aug 2011, Patrick Lamaiziere wrote:


Le Fri, 26 Aug 2011 15:26:28 +,
Johan Hendriks jo...@double-l.nl a ?crit :


I am trying to set up CARP under 9.0


...


Also with a higer value like advskew 200 or 254 the role of the
servers stays the same.


Ok, there is something wrong so.

Did you check that the sysctl net.inet.carp.suppress_preempt is equal
to zero ? If yes, I don't have any more idea.

Regards.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD reports incorrect amount of memory

2011-06-21 Thread Brian Seklecki (Mobile)

trying to use memory that isn't there? How do I debug/fix this?


Just curious, what was memtest86+ report?

Can you install dmidecode(8) from /usr/ports/sysutils/dmidecode

I'd be very suprised if GCC started misbehaving during compile

~BAS


Didn't find anything with google.
___

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Link and network level in the tcp/ip stack

2011-05-07 Thread Brian Seklecki

On 5/7/2011 6:41 PM, Erik Nørgaard wrote:

So the question is which behaviour is correct, recommended or accepted?
Stripping the link layer and reply according to the network layer, or
keeping the link layer?


This is the way it in every TCP/IP stack out there.

The routing decision for the reply IP packet of the ICMP message is made 
independently of the upper-OSI-layer TCP state.


In this instance, its a bit inconvenient for you, but having these 
layers abstracted makes for incredible flexibility in TCP/IP; the same 
thinking as small POSIX utilities work independently is more flexible.


--
Brian A. Seklecki bsekle...@probikesllc.com
CE-Pro Bikes, LLC
412-378-3823 (m)
PGP Key Available Upon Request
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: CVSUP

2010-06-10 Thread Brian Seklecki (Mobile)

RELENG_8_0


 Yes.  This will give you the latest 8.0 release + desired patch level
 (critical security patches).  This is almost certain what you want to be
 running before going to production status.  I mean, you could use
 RELENG_8_0_RELEASE I suppose, but then the cvsup would be without merit.

 Dont use a tag with the ports supfile.

~BAS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 6.3 installation hacked

2009-09-22 Thread Brian Seklecki
On Tue, 2009-09-22 at 05:01 -0700, Aflatoon Aflatooni wrote:
 My server installation of FreeBSD 6.3 is hacked and I am trying to find out 
 how they managed to get into my Apache 2.0.61. 
 
 This is what I see in my http error log:
 
 [Mon Sep 21 02:00:01 2009] [notice] caught SIGTERM, shutting down
 [M

According to Apache.org, there were vulns in 2.0.6x before 2.0.63.
However, when you do your forensic analysis, you'll want to focus on
code installed on your webserver that runs with the posix user 'www''s
permissions.
 
  ~BAS




This mail was sent via Mail-SeCure System.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Additional sa devices?

2009-07-25 Thread Brian Seklecki
On Fri, 2009-07-10 at 11:52 +0700, Olivier Nicole wrote:
 Hi,
 
My question is what the difference is between 'sa0.0' and 'sa0.[1-3]'.
I can't seem to find it documented anywhere.
 

Maybe submit a PR+Patch to the man page file? ~BAS

 From the top of my head, I think I remember devices sa0.[1-3] would
 represent different compression mode.
 
 Bests,


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Webcam problem - pwc

2009-07-25 Thread Brian Seklecki
On Sat, 2009-07-04 at 22:12 +, Antonio Rieser wrote:
 ugen0: vendor 0x046d product 0x08dd, class 0/0, rev 1.10/1.00, addr
 3 on uhub1

The driver didn't attach to the device.  Look in the driver source code
for product ID 0x08dd.  Change/Add, then recompile the kernel and try
again -- no promises. ~BAS

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Attempting ZFS Only Install of 7.2

2009-07-16 Thread Brian Seklecki
On Thu, 2009-07-16 at 17:01 -0500, Jason Garrett wrote:
 LOADER_ZFS_SUPPORT=YES, as It wouldn't even boot the kernel before I
 did

JG:

Why don't we setup a public autobuild farm (amd64 only) and build with
that flag set?  The other option is to modify a LiveCD framework with
it.  ~BAS




This mail was sent via Mail-SeCure System.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 7.1 opencrypto -- kern.cryptodevallowsoft

2009-05-18 Thread Brian Seklecki
The openssl speed sub-command is a real PITA:

Try: 

  $ openssl speed -elapsed -evp aes-128-cbc (or des-ede3)

Also goto /usr/src/tools/tools/crypto/  make

Run those utils to extract useful statistics out of the driver's kernel
data structures.

~BAS

On Mon, 2009-05-18 at 11:21 +0100, Brendan Kennedy wrote:
 Hi Brian, Patrick,
 
 Thanks for your responses. I agree that it looks like a bug! I'm a bit
 of a newb to FreeBSD. Where should I go to log this?
 
 I ran (as root ;) )
 
  openssl engine
 (padlock) VIA PadLock (no-RNG, no-ACE)
 (dynamic) Dynamic engine loading support
 (cryptodev) BSD cryptodev engine
  [RSA, DSA, DH]
 
 It can be seen only PKE functions are being shown as accelerated.
 'kldstat' only shows cryptodev.ko, but that's because I have 'crypto'
 compiled as part of the kernel.
 
 I have found another issue here also - although 'openssl engine -c'
 shows correct accelerated functionality of the hardware driver,
 running a speed test (e.g. openssl speed des-ede3 -engine cryptodev)
 does not result in any messages being sent to the driver apart from
 the initial check for available algorithms. It seems only accelerated
 PKE functions are run through the driver. It may be that the symmetric
 functions are being run through the software device driver
 (cryptosoft)...
 
 Could it be down to cryptodev engine being loaded twice in OpenSSL? Or
 would cryptodev favour the software driver if CRYPTO_F_HARDWARE is not
 set?
 
 Regards,
 Brendan
 
 
 2009/5/15 Brian A. Seklecki sekle...@noc.cfi.pgh.pa.us:
  On Tue, 2009-05-12 at 19:14 +0100, Brendan Kennedy wrote:
  Hi All,
 
  I'm trying to test a hardware crypto driver, but want to run my tests
  through the software driver first (and possibly use the software
  driver to validate results).
  I have set the following in my GENERIC conf file:
 
 
  What does kldstat(8) / openssl(1) return?
 
  % sudo openssl engine
  (dynamic) Dynamic engine loading support
 
  $ openssl engine
  (cryptodev) BSD cryptodev engine
  (padlock) VIA PadLock (no-RNG, no-ACE)
  (dynamic) Dynamic engine loading support
 
  $ kldstat |egrep -i 'cry|ub'
   33 0xc0e06000 25b78crypto.ko
   71 0xc64c9000 4000 cryptodev.ko
   81 0xc6546000 a000 ubsec.ko
 
 
  Return?
 
  ~BAS
 
 
  device  crypto
  device  enc
  options IPSEC
 
  I have rebuilt the kernel, rebooted and set the
  kern.cryptodevallowsoft kernel variable to 1:
 
  FreeBSD_26# sysctl -a | grep crypto
  kern.cryptodevallowsoft: 1
 
  However, when I try a test, I get the following:
 
  FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va 3des
  cipher 3des keylen 24
  CIOCGSESSION: Invalid argument
  FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va des
  cipher des keylen 8
  CIOCGSESSION: Invalid argument
 
  It seems the software crypto device is not available. Do I need to do
  any other steps to enable it? Is there another config option that
  makes sure it is build as part of Opencrypto framework? Do I need to
  build some other software driver instead?
 
  Best Regards,
  Brendan
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  freebsd-questions-unsubscr...@freebsd.org
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org




This mail was sent via Mail-SeCure System.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org