Re: pass for single user mode

2010-12-12 Thread Chris Rees
On 11 December 2010 16:55, K. Yura yy.gu...@gmail.com wrote:
 2010/12/11 Chris Rees utis...@gmail.com

 Have a look at /etc/ttys.
 Chris

 Thank you very much

No problem. Don't forget that although you've now made it non-trivial
to break into your computer with console access, it's still easy for a
physical attacker to:

- remove your hard drive
- boot from a USB key or CD or floppy etc
- mess with your BIOS settings.

This is why by default there's no root password for single user; if an
attacker has physical access you're screwed anyway!

Chris
___
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: Ports: How do dependent ports upgrade when dependency shared lib version is bumped?

2010-12-12 Thread Alexander Best
On Sat Dec 11 10, Yuri wrote:
 I recently updates the system. libatkmm-1.6.so.1 got bumped to 
 libatkmm-1.6.so.2, now inkscape fails:
 /libexec/ld-elf.so.1: Shared object libatkmm-1.6.so.1 not found, 
 required by inkscape
 
 What is the right behavior in such situation? Should all depending 
 packages be also automatically bumped? Or portupghrade should detect the 
 change and automatically upgrade dependent ports?

portupgrade -rfx atkmm atkmm should take care of the issue, although
portupgrade -rf atkmm is probably ok too, unless atkmm takes multiple hours to
build.

as a workaround you could also add an entry to /etc/libmap.conf:

libatkmm-1.6.so.1   libatkmm-1.6.so.2

if things in libatkmm haven't changed too much you might get away with it for
now and delay the portupgrade to some time that's more convenient to you.

cheers.
alex

 
 Yuri
 

-- 
a13x
___
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


openssl chat

2010-12-12 Thread S Mathias
i can use natively openssl for anonymous chat: 

# Chat: 
# server side:
openssl req -x509 -nodes -days 365 -newkey rsa:8192 -keyout mycert.pem -out 
mycert.pem

# server side - generate a self-signed cert.
openssl s_server -accept 52310 -cert mycert.pem

# client side - 127.0.0.1 is the IP of the server
openssl s_client -connect 127.0.0.1:52310


1) but how can i set it to require username/password? it would be a great chat 
tool
2) how can i transfer files with openssl? [again: with username/password?]

thank you for any ideas :\

p.s.: or it will be a firewall rule, to restrict to ip addresses in a list? 
those, who are only allowed to connect..


  
___
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: Ports: How do dependent ports upgrade when dependency shared lib version is bumped?

2010-12-12 Thread Lowell Gilbert
Yuri y...@rawbw.com writes:

 I recently updates the system. libatkmm-1.6.so.1 got bumped to
 libatkmm-1.6.so.2, now inkscape fails:
 /libexec/ld-elf.so.1: Shared object libatkmm-1.6.so.1 not found,
 required by inkscape

 What is the right behavior in such situation? Should all depending
 packages be also automatically bumped? Or portupghrade should detect
 the change and automatically upgrade dependent ports?

There's no way to do it fully automatically, but porters try to do this
by hand, by incrementing PORTREVISION for the dependent ports.  Once
that is done, portupgrade will pick it up automatically.  However,
porters will sometimes miss subtle dependencies, especially optional
ones.  

In this case, I don't see a direct dependency of inkscape on atkmm, so I
don't know how it should have been marked.  In any case, inkscape was
updated shortly after atkmm, so if you upgraded everything more
recently, it looks like you should have gotten inkscape rebuilt after
the atkmm change.
___
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-questions Digest, Vol 340, Issue 15

2010-12-12 Thread Mark Terribile
 
 It's ok, that i can use this, when i want an incrementing
 sequence, in a given way:
 
 # {START..END..INCREMENT}
 $ for i in {0..10..2}; do echo Welcome $i times; done
 Welcome 0 times
 Welcome 2 times
 Welcome 4 times
 Welcome 6 times
 Welcome 8 times
 Welcome 10 times
 $
 
 but what's the magic for this? :
 
 $ MAGIC; do echo Welcome $i times; done
 Welcome 0 times
 Welcome 1 times
 Welcome 4 times
 Welcome 5 times
 Welcome 8 times
 Welcome 9 times
 $

What's wrong with

for i in 0 1 4 5 8 9 ; do echo Welcome $i times; done

  ?

Or is there some rule that you want followed?  If there is, it's not
obvious to me.  (Sorry.)

Mark Terribile


  
___
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 SMP website stale links update?

2010-12-12 Thread Venkatesh Srinivas

Hi,

http://www.freebsd.org/smp/ has a few stale links:

* Hiten Pandya's SMP synchronization rules
points to: http://storm.uk.freebsd.org/~hiten/smp_synch_rules.html ;
it should perhaps point to 
http://people.freebsd.org/~hmp/stuff/docs/smp_synch_rules.html ?


5 July 2000
* Jake Burkholder put an updated patch here
points to an inaccessible http://people.freebsd.org/~jake/smpng.diff
I've been able to track down a copy and have posted it at
http://acm.jhu.edu/~me/smpng.diff ; perhaps it should have a home on 
freebsd.org?


3 August 2000
'Patches with functional heavy-weight thread for i386...' pointed at
http://people.freebsd.org/~grog/patches4.gz , also not accesible;
I've put a copy at http://acm.jhu.edu/~me/patches4.gz ; should this too 
find a permananent home?


Thanks!
-- vs
___
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-questions Digest, Vol 340, Issue 15

2010-12-12 Thread Derrick Ryalls
On Sun, Dec 12, 2010 at 9:45 AM, Mark Terribile materrib...@yahoo.comwrote:

 
  It's ok, that i can use this, when i want an incrementing
  sequence, in a given way:
 
  # {START..END..INCREMENT}
  $ for i in {0..10..2}; do echo Welcome $i times; done
  Welcome 0 times
  Welcome 2 times
  Welcome 4 times
  Welcome 6 times
  Welcome 8 times
  Welcome 10 times
  $
 
  but what's the magic for this? :
 
  $ MAGIC; do echo Welcome $i times; done
  Welcome 0 times
  Welcome 1 times
  Welcome 4 times
  Welcome 5 times
  Welcome 8 times
  Welcome 9 times
  $

 What's wrong with

 for i in 0 1 4 5 8 9 ; do echo Welcome $i times; done

  ?

 Or is there some rule that you want followed?  If there is, it's not
 obvious to me.  (Sorry.)

Mark Terribile


 +1, +3, +1, +3
___
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-questions Digest, Vol 340, Issue 15

2010-12-12 Thread Chip Camden
Quoth Derrick Ryalls on Sunday, 12 December 2010:
 On Sun, Dec 12, 2010 at 9:45 AM, Mark Terribile materrib...@yahoo.comwrote:
 
  
   It's ok, that i can use this, when i want an incrementing
   sequence, in a given way:
  
   # {START..END..INCREMENT}
   $ for i in {0..10..2}; do echo Welcome $i times; done
   Welcome 0 times
   Welcome 2 times
   Welcome 4 times
   Welcome 6 times
   Welcome 8 times
   Welcome 10 times
   $
  
   but what's the magic for this? :
  
   $ MAGIC; do echo Welcome $i times; done
   Welcome 0 times
   Welcome 1 times
   Welcome 4 times
   Welcome 5 times
   Welcome 8 times
   Welcome 9 times
   $
 
  What's wrong with
 
  for i in 0 1 4 5 8 9 ; do echo Welcome $i times; done
 
   ?
 
  Or is there some rule that you want followed?  If there is, it's not
  obvious to me.  (Sorry.)
 
 Mark Terribile
 
 
  +1, +3, +1, +3
 ___
 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

How about a direct approach:

i=0;j=1
while true;do
  echo Welcome $i times
  i=`expr $i + $j`;if [ $j -eq 1 ];then;j=3;else;j=1;fi
done

Might want to pipe that to more or less.

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgpuCSUufHlw9.pgp
Description: PGP signature


Re: freebsd-questions Digest, Vol 340, Issue 15

2010-12-12 Thread Mark Terribile

Okay, per private correspondence, here's one that works for the rule (insert 
your
own upper limit):

(( s = -3, d = -1 )) ; while (( i = ( s += 2 + ( d = -d ) ),  i = 12 )) ; do
    echo Welcome $i times
done

Yeah, this needs an explanation in the comments, and it might be tricky to
extend to other sequences.  But I think I could do it for most reasonable ones.

--- On Sun, 12/12/10, Derrick Ryalls ryal...@gmail.com wrote:

From: Derrick Ryalls ryal...@gmail.com
Subject: Re: freebsd-questions Digest, Vol 340, Issue 15
To: Mark Terribile materrib...@yahoo.com
Cc: S Mathias smathias1...@yahoo.com, freebsd-questions@freebsd.org
Date: Sunday, December 12, 2010, 1:22 PM



On Sun, Dec 12, 2010 at 9:45 AM, Mark Terribile materrib...@yahoo.com wrote:



 It's ok, that i can use this, when i want an incrementing

 sequence, in a given way:



 # {START..END..INCREMENT}

 $ for i in {0..10..2}; do echo Welcome $i times; done

 Welcome 0 times

 Welcome 2 times

 Welcome 4 times

 Welcome 6 times

 Welcome 8 times

 Welcome 10 times

 $



 but what's the magic for this? :



 $ MAGIC; do echo Welcome $i times; done

 Welcome 0 times

 Welcome 1 times

 Welcome 4 times

 Welcome 5 times

 Welcome 8 times

 Welcome 9 times

 $



What's wrong with



for i in 0 1 4 5 8 9 ; do echo Welcome $i times; done



  ?



Or is there some rule that you want followed?  If there is, it's not

obvious to me.  (Sorry.)



    Mark Terribile




+1, +3, +1, +3





___
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