Re: [gentoo-user] Re: How low can you go?

2011-04-02 Thread Pandu Poluan
On Sat, Apr 2, 2011 at 03:28, Albert Hopkins mar...@letterboxes.org wrote:
 On Sat, 2011-04-02 at 02:22 +0700, Pandu Poluan wrote:
 Good grief! How'd you do that?!

 *bow in respect*

 Rgds,



 Well, firstly, I managed to get it down to 3MB (though I cheated *a
 little*):

 lilpenguin ~ # sync ; echo 3  /proc/sys/vm/drop_caches # kinda cheating
 lilpenguin ~ # free -m
             total       used       free     shared    buffers
 cached
 Mem:            43          5         37          0          0
 1
 -/+ buffers/cache:          3         39
 Swap:            0          0          0
 lilpenguin ~ # uname -srm
 Linux 2.6.36-gentoo-r8 x86_64
 lilpenguin ~ # df -h
 Filesystem            Size  Used Avail Use% Mounted on
 /dev/vda1             4.0G  157M  3.6G   5% /
 shm                    22M     0   22M   0% /dev/shm


 So what it is is this:

 * kvm with virtio devices
 * no udev (static /dev)
 * serial console only
 * no services in default runlevel
 * tight module-less virtio-based kernel (booted externally)
 * no extra (virtual) hardware
 * everything compiled with -Os


Unfortunately, I can't go module-less; xtables-addons requires modules support.

How do you get static /dev ?

 I could probably get it lower by tweaking the kernel a bit more.  Also
 it would probably use slightly less RAM if it were 32-bit.  Also, the
 biggest user of memory are /bin/bash and /bin/login.  I could minimize
 memory further by making the login shell ash or dash.


I also rely on lots of bash scripts.

*sigh* ... I'll never get it as small as yours... but still I *am*
interested in your memory-saving tricks :-)

Rgds,
--
Pandu E Poluan
~ IT Optimizer ~
Visit my Blog: http://pepoluan.posterous.com



Re: [gentoo-user] Setting up a local web server

2011-04-02 Thread Neil Bothwick
On Fri, 01 Apr 2011 16:03:10 -0700, kashani wrote:

* apache2 has detected an error in your setup:
  apache2: Syntax error on line 149 of /etc/apache2/httpd.conf: Syntax
  error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot
  load /usr/lib/apache2/modules/libphp5.so into server:
  /usr/lib/apache2/modules/libphp5.so: cannot open shared object file:
  No such file or directory

  Incidentally, apache is wrong to complain of syntax errors - they're
  errors of configuration, not syntax.
 
 Apache doesn't recognize the syntax, therefore it's a syntax error.

It does recognise the syntax, otherwise it wouldn't be trying to load
the module. I agree, it's a misleading error message.


-- 
Neil Bothwick

Insanity: doing the same thing over and over again and expecting
different results. (Albert Einstein)


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: How to install viewvc w/o apache and related cruft?

2011-04-02 Thread Neil Bothwick
On Sat, 2 Apr 2011 03:24:04 + (UTC), Grant Edwards wrote:

  How do I convince portage that viewvc does not require an external
  web server and I don't want apache or webappconifg installed?
 
  It's a web app,
 
 Yes, it can be a web app.  It can also be run stand-alone using its
 own web server with no external dependancies other than python and
 support for the VC system you want to use.

I see.

  Try putting apache in /etc/portage/profile/package.provided.
 
 That seems like a kludge that's likely to cause problems later.

It is :(

 ISTM
 that the ebuild is broken. I'll have to take a shot at fixing the
 ebuild so it doesn't depend on apache and webapp-config unless you
 install it USE flags telling it you want it to use apache and
 webapp-config.
 

From a quick glance at the webapp eclass, it looks like you need
to set WEBAPP_OPTIONAL=yes in the ebuild.


-- 
Neil Bothwick

Fer sail cheep, Windows spel chekcer, wurks grate


signature.asc
Description: PGP signature


Re: [gentoo-user] distcc and crossdev, anyone?

2011-04-02 Thread Neil Bothwick
On Fri, 1 Apr 2011 12:43:44 +0100, Peter Humphrey wrote:

 I've decided to revert to Neil's method (once I've shaken this
 infection off).

Could you please confirm that the infection is in no way linked to me or
my method :-O 


-- 
Neil Bothwick

Always proofread carefully to see if you any words out.


signature.asc
Description: PGP signature


Re: [gentoo-user] distcc and crossdev, anyone?

2011-04-02 Thread Dale

Neil Bothwick wrote:

On Fri, 1 Apr 2011 12:43:44 +0100, Peter Humphrey wrote:

   

I've decided to revert to Neil's method (once I've shaken this
infection off).
 

Could you please confirm that the infection is in no way linked to me or
my method :-O


   


I hope you get rid of the infection but don't send it this way.  I don't 
need a trip to the hospital again.  Having folks check on you is nice 
but I would prefer hotel room service to a hospital nurse and a pricey 
Dr.  o_O


Of course, I would rather spend the money on building a computer too.  
More fun than wondering if you are about to meet your maker.


Dale

:-)  :-)



Re: [gentoo-user] Adobe-flash becomes quite slow.

2011-04-02 Thread Einux
I use strace to trace syscalls of
`/opt/Adobe/flash-player/libflashplayer.so` and found many errors like this:
{{{
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
madvise(0xdf2, 3424256, MADV_DONTNEED) = 0
--- SIGPROF (Profiling timer expired) @ 0 (0) ---
}}}

Any ideas?

Thanks in advance :)

On Sat, Apr 2, 2011 at 4:05 AM, Volker Armin Hemmann 
volkerar...@googlemail.com wrote:

 On Friday 01 April 2011 22:35:39 Einux wrote:
  Adobe-flash becomes quite slow in my laptop after I updated world(or
 maybe I
  reconfigured kernel options) several days ago. I've made a lot of
  modifications, so I'm not sure exactly which action leads to the
 malfunction
  of adobe-flash.

 adobe flash is just slow with composite. And its performance differs
 greatly
 between minor versions.




-- 
Best Regards,
Einux


[gentoo-user] Re: Adobe-flash becomes quite slow.

2011-04-02 Thread walt

On 04/01/2011 07:35 AM, Einux wrote:

Adobe-flash becomes quite slow in my laptop after I updated world(or maybe I 
reconfigured kernel options) several days ago. I've made a lot of 
modifications, so I'm not sure exactly which action leads to the malfunction of 
adobe-flash.

I use the latest stable version of adobe-flash(10.2.153.1), nvidia(260.19.36).

What you guys know what factors are affecting the performance of adobe-flash?

Here's the recent main modifications to my system:
1. (/etc/make.conf) change CFLAGS and CXXFLAGS from -O2 -march=i686 -pipe to -O2 
-march=native -fomit-frame-pointer -pipe
2. change the *Preemption Model in the kernel config from Voluntary Kernel Preemption 
to Preemptible Kernel
3. excluded SMT scheduler support in the kernel config(my CPU doesn't support 
hyper-threading)
4. I tried the latest 2.6.38 gentoo-sources, and roll back to 2.6.36-r8


Make sure you are using the nvidia proprietary libraries:

$eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *   -- this one
  [2]   xorg-x11




[gentoo-user] Re: xorg-server-1.10 breaks nvidia-drivers

2011-04-02 Thread walt

On 04/01/2011 01:23 PM, Yohan Pereira wrote:

On Friday 01 Apr 2011 08:39:04 PM walt wrote:

  The good old nv driver still works with 1.10, happily.


have you tried nouveau? works well here.


Yes, a few months ago, but I had the same problem with slow bug-fixes for the
older chipsets like mine.  The drivers worked well about 90% of the time and
were unusable the other 10%.  I reverted to xorg 1.95 and all is good again :)





Re: [gentoo-user] Any bought a laptop that Just Works?

2011-04-02 Thread Zhu Sha Zang
I have a Lenovo's Ideapad Z360 . He works fine except for haven't 
support of Optimus Technology on Linux. But the NVIDIA VGA can be 
deactivated in bios and the battery consuption are decreased.


00:02.0 VGA compatible controller: Intel Corporation Core Processor 
Integrated Graphics Controller (rev 18) (prog-if 00 [VGA controller])


01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 
310M] (rev a2) (prog-if 00 [VGA controller])



It's a great machine at all.


Att



Re: [gentoo-user] Re: How low can you go?

2011-04-02 Thread Albert Hopkins
On Sat, 2011-04-02 at 13:24 +0700, Pandu Poluan wrote:
 Unfortunately, I can't go module-less; xtables-addons requires modules
 support.
 
 How do you get static /dev ?

Go into /etc/conf.d/rc and change RC_DEVICES to static.  Also if you
are using virtio block devices (as I am) then you will need to manually
create the /dev/vd* device nodes else the vm won't find the virtual
drives.

 
  I could probably get it lower by tweaking the kernel a bit more.
  Also
  it would probably use slightly less RAM if it were 32-bit.  Also,
 the
  biggest user of memory are /bin/bash and /bin/login.  I could
 minimize
  memory further by making the login shell ash or dash.
 
 
 I also rely on lots of bash scripts.
 
 *sigh* ... I'll never get it as small as yours... but still I *am*
 interested in your memory-saving tricks :-) 

I'm not saying replace bash with dash.  I'm saying change your login
shell with dash (i.e. chsh).

Moreover, dash is POSIX compliant so it should be able to be used with
most shell scripts.  The only reason you need bash around is that
unfortunately baselayout-1 depends on some bash-specific features (like
bash arrays), so you can't completely get rid of it.  But for most stuff
dash is fine.







Re: [gentoo-user] Re: How low can you go?

2011-04-02 Thread Dale

Albert Hopkins wrote:

I'm not saying replace bash with dash.  I'm saying change your login
shell with dash (i.e. chsh).

Moreover, dash is POSIX compliant so it should be able to be used with
most shell scripts.  The only reason you need bash around is that
unfortunately baselayout-1 depends on some bash-specific features (like
bash arrays), so you can't completely get rid of it.  But for most stuff
dash is fine.

   


I would hate to know that you guys got bored and needed something to 
do.  LOL


Dale

:-)  :-)



Re: [gentoo-user] Re: Adobe-flash becomes quite slow.

2011-04-02 Thread Einux
I did set opengl to use nvidia. ;)

On Sat, Apr 2, 2011 at 7:27 PM, walt w41...@gmail.com wrote:

 On 04/01/2011 07:35 AM, Einux wrote:

 Adobe-flash becomes quite slow in my laptop after I updated world(or maybe
 I reconfigured kernel options) several days ago. I've made a lot of
 modifications, so I'm not sure exactly which action leads to the malfunction
 of adobe-flash.

 I use the latest stable version of adobe-flash(10.2.153.1),
 nvidia(260.19.36).

 What you guys know what factors are affecting the performance of
 adobe-flash?

 Here's the recent main modifications to my system:
 1. (/etc/make.conf) change CFLAGS and CXXFLAGS from -O2 -march=i686
 -pipe to -O2 -march=native -fomit-frame-pointer -pipe
 2. change the *Preemption Model in the kernel config from Voluntary
 Kernel Preemption to Preemptible Kernel
 3. excluded SMT scheduler support in the kernel config(my CPU doesn't
 support hyper-threading)
 4. I tried the latest 2.6.38 gentoo-sources, and roll back to 2.6.36-r8


 Make sure you are using the nvidia proprietary libraries:

 $eselect opengl list
 Available OpenGL implementations:
  [1]   nvidia *   -- this one
  [2]   xorg-x11





-- 
Best Regards,
Einux


Re: [gentoo-user] Setting up a local web server

2011-04-02 Thread Todd Goodman
* Adam Carter adamcart...@gmail.com [110402 01:15]:
  dig you build php with an apache2 flag to enable the Apache module?
 
 
 And you'll also need this in your httpd.conf;
 
 AddType application/x-httpd-php .php

70_mod_php5.conf in /etc/apache2/modules.d adds the handler for that
automatically when PHP5 is defined (and mod_mime.c is there.)

So doublecheck that php was built with the apache2 USE flag as mentioned
above.  I've rebuilt php after apache2 before to be sure the needed
modules are installed.

Also as mentioned make sure your APACHE2_OPTS in /etc/conf.d/apache2
uses -D PHP5 and not just PHP or PHP4.

And finally don't forget to restart apache after emerging php

Todd



Re: [gentoo-user] Re: How low can you go?

2011-04-02 Thread Volker Armin Hemmann
On Friday 01 April 2011 17:00:41 Albert Hopkins wrote:
 .. got it slightly lower by switching to dash and disabling ACPI and
 APIC:

good thing that apic has nothing to do with memory at all.



Re: [gentoo-user] distcc and crossdev, anyone?

2011-04-02 Thread Peter Humphrey
On Saturday 02 April 2011 09:57:57 Neil Bothwick wrote:

 Could you please confirm that the infection is in no way linked to me or
 my method :-O

Gladly. Not sure what it's linked to, nor even what it is, but it doesn't half 
sap the energy.

-- 
Rgds
Peter



Re: [gentoo-user] distcc and crossdev, anyone?

2011-04-02 Thread Peter Humphrey
On Saturday 18 December 2010 10:18:43 Neil Bothwick wrote:

 I've found there's just too much overhead with distcc, plus much of the
 work is still done locally. I have a couple of Atom boxes, a server and a
 netbook, and I've set up a chroot for each on my workstation. In the
 chroot I have FEATURES=buildpkg, using an NFS mounted PKGDIR available to
 both computers, then I emerge -k on the Atom box.

Just to confirm, and to save me having to think more deeply than I'm able pro 
tem, does each chroot have identical make.conf and package.use to those on its 
target? And do you nfs-mount only the PKGDIR, or the whole of /usr/portage/ ?

-- 
Rgds
Peter



Re: [gentoo-user] Re: xorg-server-1.10 breaks nvidia-drivers

2011-04-02 Thread Peter Humphrey
On Saturday 02 April 2011 12:32:32 walt wrote:

 I had the same problem with slow bug-fixes for the older chipsets like mine. 

Is this the moment to upgrade your video card? They seem to be cheap enough, 
even here in UK.

-- 
Rgds
Peter



Re: [gentoo-user] *** URGENT *** xdg-open respawns itself until crash

2011-04-02 Thread Willie Wong
On Thu, Mar 31, 2011 at 01:44:14PM +0200, Helmut Jarausch wrote:
 Thanks, I'll try that - though I have not much time to do so, since the 
 machine starts swapping (though it has 8Gb memory).
 
 Furtheron I've found out, that sci-mathematics/dataplot
 had  BROWSER=xdg-open in it's /etc/env.d/90dataplot file.
 Thus it went into /etc/profile.env.
 
 I think it's very strange that a package may modify
 such a vital environment variable as 'BROWSER'.

That is just setting the default. If you have any preferences set in
your user's environment, it shouldn't be affected. 

 Is this a bug in sci-mathematics/dataplot ?
 

Not really. See `man xdg-open` for what this program does. (It is part
of x11-misc/xdg-utils, you may also want to look at the man page for
xdg-settings). The programs are *supposed* to provide
cross-platform/cross-desktop/cross-toolkit interoperability. Basically
trying to save you the problem from being either locked-down to your
current desktop environment's way of configuring which program is
used to open which type of documents and the problem of having to go
into every single program to change the preferred browser in their
settings when you decide that, say, you no longer want to use Firefox
and now prefers Opera. 

In terms of a default it is a fairly sensible one, and works okay with
full-blown desktop environments. (Does anyone know if it works with
enlightenment?) So on my work compute with Gnome it is great. But on
my home computer with Fvwm, not so much. 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] Re: xorg-server-1.10 breaks nvidia-drivers

2011-04-02 Thread Nikos Chantziaras

On 04/02/2011 06:25 PM, Peter Humphrey wrote:

On Saturday 02 April 2011 12:32:32 walt wrote:


I had the same problem with slow bug-fixes for the older chipsets like mine.


Is this the moment to upgrade your video card? They seem to be cheap enough,
even here in UK.


On the other hand, xorg-server 1.9.5 is perfectly fine! ;-)




[gentoo-user] renumber pages in pdf files

2011-04-02 Thread luis jure

hello list,

i' currently using an application called jpdftweak to edit metadata in pdf
files, like page numbers. jpdftweak is very useful, but being a gui app
it's slow for repeatedly editing many files.

does anyone know a way to renumber the pages (logical numbers) in a pdf
file from the command line? i would expect that this should be possible
with something like ghostscript, but i can't find anything in the
documentation and google doesn't show any relevant results.

best,

lj



Re: [gentoo-user] distcc and crossdev, anyone?

2011-04-02 Thread Neil Bothwick
On Sat, 2 Apr 2011 16:19:45 +0100, Peter Humphrey wrote:

  I've found there's just too much overhead with distcc, plus much of
  the work is still done locally. I have a couple of Atom boxes, a
  server and a netbook, and I've set up a chroot for each on my
  workstation. In the chroot I have FEATURES=buildpkg, using an NFS
  mounted PKGDIR available to both computers, then I emerge -k on the
  Atom box.  
 
 Just to confirm, and to save me having to think more deeply than I'm
 able pro tem, does each chroot have identical make.conf and package.use

Yes. the script that I use to start up and enter the chroot for each
system not only does the usual mounting of /dev/ and /proc in the
chroot, it also rsyncs /etc/portage and /var/lib/portage/world* with the
real target. Make.conf has to be maintained manually, because there are
settings in the two that need to be different, although I suppose I could
split out the common settings, USE, CHOST etc, into a separate file and
source that.

 to those on its target? And do you nfs-mount only the PKGDIR, or the
 whole of /usr/portage/ ?

Just PKGDIR and DISTDIR, I have an NFS exported directory that contains a
global DISTDIR and individual PKGDIRS, as well as my and layman's
overlays.


-- 
Neil Bothwick

We can sympathize with a child who is afraid of the dark, but the
tragedy of life is that most people are afraid of the light.


signature.asc
Description: PGP signature


Re: [gentoo-user] renumber pages in pdf files

2011-04-02 Thread Willie Wong
On Sat, Apr 02, 2011 at 07:04:45PM -0300, luis jure wrote:
 i' currently using an application called jpdftweak to edit metadata in pdf
 files, like page numbers. jpdftweak is very useful, but being a gui app
 it's slow for repeatedly editing many files.
 

look at app-text/pdfjam

The first few lines of `pdfjam --help` probably contains enough
information for you to do what you want. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: xorg-server-1.10 breaks nvidia-drivers

2011-04-02 Thread Elaine C. Sharpe
On Sat, Apr 02, 2011 at 10:30:02PM +0200, Nikos Chantziaras wrote:
 On 04/02/2011 06:25 PM, Peter Humphrey wrote:
  On Saturday 02 April 2011 12:32:32 walt wrote:
 
  I had the same problem with slow bug-fixes for the older chipsets like 
  mine.
 
  Is this the moment to upgrade your video card? They seem to be cheap enough,
  even here in UK.
 
 On the other hand, xorg-server 1.9.5 is perfectly fine! ;-)

A lot cheaper than upgrading my video card, too -- they only sell 
the video card I need when you buy the whole laptop!

-- 
caveat utilitor





Re: [gentoo-user] Re: How low can you go?

2011-04-02 Thread Paul Hartman
On Sat, Apr 2, 2011 at 12:17 PM, Dale rdalek1...@gmail.com wrote:
 I would hate to know that you guys got bored and needed something to do.
  LOL

And here I am reading this thread while Firefox using something like
800M of RAM just by itself...



[gentoo-user] remove bookmarks in pdf [was renumber pages]

2011-04-02 Thread luis jure
on 2011-04-02 at 19:38 Willie Wong wrote:

look at app-text/pdfjam

hi, thanks for the suggestion, although i couldn't find any command
appropriate to what i want to do.

BTW, i have another one: how to remove all bookmarks form a pdf? (from the
command line, i mean)



Re: [gentoo-user] Re: How low can you go?

2011-04-02 Thread Dale

Paul Hartman wrote:

On Sat, Apr 2, 2011 at 12:17 PM, Dalerdalek1...@gmail.com  wrote:
   

I would hate to know that you guys got bored and needed something to do.
  LOL
 

And here I am reading this thread while Firefox using something like
800M of RAM just by itself...

   


I got you beat tho.

27229 dale  20   0  770m 271m  38m S   39  1.7  22:46.02 seamonkey-bin
27210 dale  20   0  750m 219m  38m S5  1.4  34:57.04 firefox

I got both Seamonkey and Firefox running.  Neat huh?  Of course, I got 
plenty of ram.


root@fireball / # free -m
 total   used   free sharedbuffers cached
Mem: 16080  15559520  0510  13315
-/+ buffers/cache:   1733  14346
Swap:  956  0956
root@fireball / #


I wonder if we could put Linux on a old Vic-20?  I think I got one out 
in the old shed somewhere.


Dale

:-)  :-)