Re: [gentoo-user] eselect sh set dash?

2012-05-05 Thread Florian Philipp
Am 01.05.2012 18:53, schrieb Florian Philipp:
 Am 29.04.2012 16:04, schrieb Marc Joliet:
 Am Sun, 29 Apr 2012 00:20:41 +0200
 schrieb Florian Philipp li...@binarywings.net:

 Hi list!

 Hi,
  
 Now that eselect-sh has been stabilized, I'm wondering if anyone has
 tried setting dash as the /bin/sh symlink. Any experiences?


 I've been using dash as my /bin/sh for a while now. I've had it installed 
 since
 June 2009, I suppose I've had the symlink set for the same length of time.

 Pretty much all incompatibilities I encountered are fixed now, stuff like
 openrc introducing bashisms (what fun! I never used the debug option of an 
 init
 script before or since), or the Audacity build system having #!/bin/sh but
 using bashisms. I seem to recall that I have one package installed that has 
 this
 problem and requires changing the symlink temporarily, but I don't remember
 which. It might have been fixed by now, though.

 Also, the old mysql-init-scripts-1.2 package requires bash, in case that 
 matters
 to you.


The dmcrypt init script also has a single bashism. A bug about this has
been open for quiet some time now:
https://bugs.gentoo.org/show_bug.cgi?id=408117

 So I don't think you should expect any problems (save for the rare 
 exception),
 and for me there was a noticeable speedup with the init system (also reported
 by Flameeyes in his blog).

 Thanks in advance!
 Florian Philipp

 HTH
 
 Hi Marc,
 
 thanks for the info! I've tried it on one of my systems and in my
 measurements, it definitely scraped off a few seconds of the reboot cycle.
 
 Regards,
 Florian Philipp

I suggest that anyone who wants to switch tries something like this
before rebooting to see if the init scripts can be parsed by dash:

for i in /etc/init.d/*; do printf '%s\t' $i; $i status; done

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: firefox 10.0.4 upgrading compiling failed.

2012-05-05 Thread AleiPhoenix (A.K.A Areverie)
You are right, actually I mount /var/tmp/portage as tmpfs and assign 4GB
for it. The total memory size is 4GB.

Thanks a lot! :)

On Sat, May 5, 2012 at 1:23 PM, Markus Trippelsdorf
mar...@trippelsdorf.dewrote:

 On 2012.05.05 at 08:47 +0800, AleiPhoenix (A.K.A Areverie) wrote:
  Hi, guys,
 
  The most recent sync brings me upgrading firefox from 10.0.3 to 10.0.4
 but
  emake failed at compiling phase.
 
  The output and emerge info is at
 
  http://pastebin.com/2m4gGV3J and http://pastebin.com/LG6MgLvN
 
  Could anyone help me out ?

 You ran out of memory during the final libxul link.
 Look into your dmesg for the oom killer...

 --
 Markus




-- 
Silence is gold.

twitter: @areverie
wikipedia: AleiPhoenix
blog: weblog.areverie.org
wiki: wiki.areverie.org


Re: [gentoo-user] minimal web server

2012-05-05 Thread Alan McKinnon
On Sat, 5 May 2012 02:39:27 + (UTC)
James wirel...@tampabay.rr.com wrote:

 Hello,
 
 Backing up routers, I  have an option I can
 issue from the a router:
 
 #copy running-config [http | https] url
 
 so if my laptop is running some minimal web
 server (suggestions are most welcome)
 
 and I have local IP connectivity (say
 both on a 10.10.10.x network,
 
 The I could just issue this command?
 
 copy running-config http://10.10.10.laptop web server IP
 
 It should work and  it's simple. What would be 
 some recommendations as to which minimal web server
 I could run on a laptop (simple and small) to
 just backup various router configs to?


How many routers are you backing up and what are your needs?

If you have lots of them and need some kind of record, then rancid is a
most excellent tools. It's also very Unixy so you get bonus points
there.

https://www.shrubbery.net

It's a completely different take on the problem you posed in your mail.

-- 
Alan McKinnnon
alan.mckin...@gmail.com




Re: [gentoo-user] minimal web server

2012-05-05 Thread Mick
On Saturday 05 May 2012 05:32:54 Stroller wrote:
 On 5 May 2012, at 03:39, James wrote:
  …
  #copy running-config [http | https] url
  
  …
  The I could just issue this command?
 
 The question mark terminating this statement seems dubious.
 
 This appears to be a feature of Cisco routers.
 
 http://stack.nil.com/C1256F0A00429755/html/webupload/
 
  copy running-config http://10.10.10.laptop web server IP
  
  It should work and  it's simple. What would be
  some recommendations as to which minimal web server
  I could run on a laptop (simple and small) to
  just backup various router configs to?
 
 www-servers/lighttpd is famously small and on my system all its
 dependencies are already installed. It has a USE=minimal flag you might
 also try, for fewer calories.
 
 As a matter of practice I would not leave any webserver running on my
 laptop, or even installed, for longer than necessary. I would prefer to
 have a home or office webserver to which I could transfer these files and
 from which the router can obtain them. Rationally, I have no idea why I
 imagine one site to be more secure than the other.
 
 Consider this installation-free alternative:
 http://www.google.co.uk/searchq=one+line+python+web+server

Other alternatives are boa, thttpd, nginx.

You can also run netcat as 'nc -l -p 80  backup_20120418.cfg' and then run 
the copy command from the router.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: minimal web server

2012-05-05 Thread Grant Edwards
On 2012-05-05, James wirel...@tampabay.rr.com wrote:
 Hello,

 Backing up routers, I  have an option I can
 issue from the a router:

 #copy running-config [http | https] url

 so if my laptop is running some minimal web
 server (suggestions are most welcome)

 and I have local IP connectivity (say
 both on a 10.10.10.x network,

 The I could just issue this command?

 copy running-config http://10.10.10.laptop web server IP

 It should work and  it's simple. What would be 
 some recommendations as to which minimal web server
 I could run on a laptop (simple and small) to
 just backup various router configs to?

I don't really understand what you're talking about with the copy
command, but the busybox httpd server is very simple and easy to run.
Lightpd is also smallish.

-- 
Grant




Re: [gentoo-user] minimal web server

2012-05-05 Thread Eliezer Croitoru

On 05/05/2012 05:39, James wrote:

Hello,

Backing up routers, I  have an option I can
issue from the a router:

#copy running-config [http | https]url

so if my laptop is running some minimal web
server (suggestions are most welcome)

and I have local IP connectivity (say
both on a 10.10.10.x network,

The I could just issue this command?

copy running-config http://10.10.10.laptop web server IP

It should work and  it's simple. What would be
some recommendations as to which minimal web server
I could run on a laptop (simple and small) to
just backup various router configs to?



James


how about small ftp server instead http\https server?

Eliezer
--
Eliezer Croitoru
https://www1.ngtech.co.il
IT consulting for Nonprofit organizations
eliezer at ngtech.co.il



[gentoo-user] Re: minimal web server

2012-05-05 Thread James
Alan McKinnon alan.mckinnon at gmail.com writes:


  #copy running-config [http | https] url

 How many routers are you backing up and what are your needs?

It varies. I seem to 'inherit' networks that are not populated
by humans (mostly machines  controls). I like to first copy
the running configurations to my laptop as often the routers are old and
nobody seems to know much about them. (yea as an old linux_hag
I get work on stuff that most other will not touch).
As a PE in Controls, I seem to get lucky and am able
to patch, enhance or replace equipment, with minimal
disturbances to the myriad of protocols and legacy
heuristics that inhabit these plants. It's a situation
where if you break it, you own the problem. I try very
hard to keep Microsoft based technologies out of the plants.
Microsoft(anything) is mostly a disaster in the Process
Controls space. I often prove this to a customer, by dropping
in a sniffer here and there and show them the myriad of
shit_traffic that Microsoft(anything) generates just to move
a few bits around. Besides, if you don't believe me,
just ask the IRANIANS how wonderful MS is (think stuxnet virus).

(enough background?)

I use a laptop, as often the sites do not have any remote 
access or it is blocked. I grab a config and then figure
out a fix, only to return later, sometimes with drop in 
replacement hardware. Too often, I'm content to just hack
at the old existing (shit) hardware. Industrial folks are not 
so robust on their nets that control machines and such.Often, 
Poor practices and little of a structured management system exist. 
Still, I get to avoid humans, so I trudge along, meeking out a living


 https://www.shrubbery.net/rancid

Rancid  looks interesting enough to explore. Do you have an unofficial 
ebuild somewhere, or do you just hack the install on gentoo?

James








[gentoo-user] Is there a tool to measure the current bitrate and frame drop rate?

2012-05-05 Thread meino . cramer
Hi,

what tool can I use (and in which way) to measure the current
rate of dropped frames and the current bit rate of a video?

Thank you very much in advance for any help!
Best regards,
mcc





[gentoo-user] «-»: [gentoo-user] eselect sh set dash?

2012-05-05 Thread Samuraiii

  
  

  Hi All,
  also readahead-list has some problems with dash as sh.
  S
  



On 2012-05-05 11:17, Florian Philipp wrote:

  Am 01.05.2012 18:53, schrieb Florian Philipp:

  
Am 29.04.2012 16:04, schrieb Marc Joliet:


  Am Sun, 29 Apr 2012 00:20:41 +0200
schrieb Florian Philipp li...@binarywings.net:


  
Hi list!

  
  Hi,
 

  
Now that eselect-sh has been stabilized, I'm wondering if anyone has
tried setting dash as the /bin/sh symlink. Any experiences?

  
  
I've been using dash as my /bin/sh for a while now. I've had it installed since
June 2009, I suppose I've had the symlink set for the same length of time.

Pretty much all incompatibilities I encountered are fixed now, stuff like
openrc introducing bashisms (what fun! I never used the debug option of an init
script before or since), or the Audacity build system having #!/bin/sh but
using bashisms. I seem to recall that I have one package installed that has this
problem and requires changing the symlink temporarily, but I don't remember
which. It might have been fixed by now, though.

Also, the old mysql-init-scripts-1.2 package requires bash, in case that matters
to you.



  
  The dmcrypt init script also has a single bashism. A bug about this has
been open for quiet some time now:
https://bugs.gentoo.org/show_bug.cgi?id=408117


  

  So I don't think you should expect any problems (save for the rare exception),
and for me there was a noticeable speedup with the init system (also reported
by Flameeyes in his blog).


  
Thanks in advance!
Florian Philipp

  
  HTH


Hi Marc,

thanks for the info! I've tried it on one of my systems and in my
measurements, it definitely scraped off a few seconds of the reboot cycle.

Regards,
Florian Philipp

  
  I suggest that anyone who wants to switch tries something like this
before rebooting to see if the init scripts can be parsed by dash:

for i in /etc/init.d/*; do printf '%s\t' "$i"; "$i" status; done

Regards,
Florian Philipp




-- 
  
Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-14723 (from 2012-05-05 18:00:06) is included in
header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] minimal web server

2012-05-05 Thread Keith Dart
Re , James said:
 #copy running-config [http | https] url


Routers can usually also write to a tftp or ftp server. Those are
actually simpler to set up. 

To use HTTP you would also have to set up a POST handler. 


-- Keith


-- 

-- ~
   Keith Dart ke...@dartworks.biz
   public key: ID: 19017044
   http://www.dartworks.biz/
   =



Re: [gentoo-user] Re: minimal web server

2012-05-05 Thread Alan McKinnon
On Sat, 5 May 2012 16:29:47 + (UTC)
James wirel...@tampabay.rr.com wrote:

 Alan McKinnon alan.mckinnon at gmail.com writes:
 
 
   #copy running-config [http | https] url
 
  How many routers are you backing up and what are your needs?
 
 It varies. I seem to 'inherit' networks that are not populated
 by humans (mostly machines  controls). I like to first copy
 the running configurations to my laptop as often the routers are old
 and nobody seems to know much about them. (yea as an old linux_hag
 I get work on stuff that most other will not touch).
 As a PE in Controls, I seem to get lucky and am able
 to patch, enhance or replace equipment, with minimal
 disturbances to the myriad of protocols and legacy
 heuristics that inhabit these plants. It's a situation
 where if you break it, you own the problem. I try very
 hard to keep Microsoft based technologies out of the plants.
 Microsoft(anything) is mostly a disaster in the Process
 Controls space. I often prove this to a customer, by dropping
 in a sniffer here and there and show them the myriad of
 shit_traffic that Microsoft(anything) generates just to move
 a few bits around. Besides, if you don't believe me,
 just ask the IRANIANS how wonderful MS is (think stuxnet virus).
 
 (enough background?)
 
 I use a laptop, as often the sites do not have any remote 
 access or it is blocked. I grab a config and then figure
 out a fix, only to return later, sometimes with drop in 
 replacement hardware. Too often, I'm content to just hack
 at the old existing (shit) hardware. Industrial folks are not 
 so robust on their nets that control machines and such.Often, 
 Poor practices and little of a structured management system exist. 
 Still, I get to avoid humans, so I trudge along, meeking out a
 living
 
 
  https://www.shrubbery.net/rancid
 
 Rancid  looks interesting enough to explore. Do you have an
 unofficial ebuild somewhere, or do you just hack the install on
 gentoo?

Our rancid stuff runs on FreeBSD (I banned Gentoo from all new
production installs 3 years ago...) so we mostly don't bother with
packages. Good old ./configure  make  make install is what works
for us.

rancid is awesome for what it does, but I doubt it will suit your
needs. Because it logs int a device periodically, it needs direct
access somehow. And considering the age of some of the stuff you
have[1] most of it won't support ssh properly, so you need telnet.
There goes any idea of polling devices for backup purposes and we're
back to grabbing the config off the router on-site. Like several others
said already, I'd go for ftp rather than http for this, it's just
easier.

[1] lemme guess - you deal with actual live networks right? Real ones
that people built. Not the kind of mythical networks described in
Gartner white papers and Cisco training manual where everything is
somehow supposed to all just magically work out the box (but
doesn't...)?

-- 
Alan McKinnnon
alan.mckin...@gmail.com