Re: [gentoo-user] nagios - check_nrpe missing

2012-11-25 Thread Mick
On Sunday 25 Nov 2012 06:31:30 Joseph wrote:

 I gave up on this nagios too hard to set it up and/or find any decent
 instructions how to set it up correctly :-)

I haven't run Nagios on Gentoo either, but it isn't impossible to get it going 
on any Linux machine.  Have you checked the basics - that there are packets 
coming and going between clients and server without them being dropped by 
firewalls and the like?  Have you looked at server and client logs to find out 
what nagios and nrpe think is the problem?  Basic troubleshooting and the 
latest Nagios documentation which is quite extensive should get your there.
-- 
Regards,
Mick


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


Re: [gentoo-user] Re: xserver update: tilde no longer dead key

2012-11-25 Thread Alan McKinnon
On Sun, 25 Nov 2012 00:01:03 +
Mick michaelkintz...@gmail.com wrote:

  A seemingly related issued was reported on e-users:
  
  https://lists.sourceforge.net/lists/listinfo/enlightenment-users
  
  The thread is titled Problem with Polish Keyboard layout  
 
 Thanks Alan, I had already kicked around in that thread, and
 initially I blamed my recent xorg update.  Then I tested fluxbox
 which had no problem reading my xorg.conf settings, so I thought it
 is most likely an e17 problem. However, Carsten said: the kbd layout
 (xkbswitch) module changes layout by executing the setxkbmap binary.
 e will output to stdout what it runs with SET XKB RUN: 
 
 So, is it an xkb problem?  I can change the layout if I run manually
 setxkbmap gb, so what is the cause of this?  I don't really
 understand ...  :-(

That stuff is murky in my world :-(

I've only ever used US keyboards so never change layouts and when I
read up on how it all works I get ... mighty confused

But here's my understanding of how it hangs together:

xkb* is one app that deals with this, KDE has it's own app, so does
fluxbox and various other WMs too. many people report that e17 doesn't
work properly right now but KDE and fluxbox do.

So logically speaking, setxkbmap is the app that is broken whereas the
layer beneath it is fine (otherwise fluxbox couldn't work properly)

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




Re: [gentoo-user] nagios - check_nrpe missing

2012-11-25 Thread Alan McKinnon
On Sat, 24 Nov 2012 23:31:30 -0700
Joseph syscon...@gmail.com wrote:

 On 11/24/12 10:18, Alan McKinnon wrote:
 On Fri, 23 Nov 2012 10:44:59 -0700
 Joseph syscon...@gmail.com wrote:
 
  On 11/23/12 08:40, Alan McKinnon wrote:
  On Thu, 22 Nov 2012 23:04:17 -0700
  Joseph syscon...@gmail.com wrote:
  
   I just installed nagios but I can not seem to find: check_nrpe
   and there is no ebuild: nagios-nrpe
  
  net-analyzer/nrpe ?
  
  --
  Alan McKinnon
  alan.mckin...@gmail.com
 
  So I think this has to bee installed on the monitoring server and
  the client, isn't it?
 
  How to do you use those plug-ins?  I have installed
  nagios-check_logfiles plugin and I don't how to use it, is it
  suppose to show up on web-interface?
 
 I honestly don't know, I don't remember ever installing nrpe on
 Gentoo. Everywhere I've used it, it's been on some other distro.
 
 -- 
 Alan McKinnon
 alan.mckin...@gmail.com
 
 I gave up on this nagios too hard to set it up and/or find any
 decent instructions how to set it up correctly :-)
 

Nagios itself is quite easy to understand and grasp, but it can be
fiddly to implement it - mostly because you end up with all kinds of
little scripts doing useful work and they can all be very different in
how they expect to be used.

Reading install HOWTO docs for Nagios is a useless activity. You will
almost always end up finding a doc that describes a different version
to what you use, and on a different system. I prefer to just understand
what Nagios does and how it's set up on my machines, then read the
plugin's code, that tells me how to install and use it.

First thing to understand is what Nagios is, and it's not a monitoring
tool! That just happens to be the problem people use it to solve.
Nagios is a state tracking and notification engine. It compares the
state of something now to the state it was in 5 minutes ago and if
things changed it sends a notification.

All the monitoring stuff it can do is actually plugins and little
scripts sitting in various places. To check the state of a ping test,
Nagios runs a ping test script. That's if Nagios does the test itself,
you can also have plugins feed information back into Nagios.

Then there's the tests you want to do that Nagios can't see directly,
like load on a host. You have to log into the host to see that (which
is dangerous). So there's a daemon running locally on the host called
nrpe, and Nagios queries this daemon asking it for results. The results
are the state that Nagios is tracking.

Like I said, script authors like shoving their scripts in any old damn
place and this is a PITA to sort out when it goes wrong. Rather just
decide for yourself where things need to go and put them there yourself.

There are so many things Nagios could do much better than it does, but
the maintainer is highly resistant to adding any features that he
doesn't use himself. So there are many forks around, why don't you try
one of those? Some of them are rather well coded. There's many, and
searching Google for Nagios forks: will turn up useful projects.




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




[gentoo-user] SSD configuration

2012-11-25 Thread Jacques Montier
Hi all,

I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation and
installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).

1- Everything seems to work perfectly, but i would like to know if my
configuration is ok or could be optimized.

/tmp and /var/log are on tmpfs
/boot, / and /var are on SSD (sda),
swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)
You can see my attached file fstab.txt

2- When booting, BIOS seems to detect the SSD as IDE not SATA ; anything
wrong ?

Thank you very much for your response,

Cheers,

--
Jacques
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't 
# needed; notail increases performance of ReiserFS (at the expense of storage 
# efficiency).  It's safe to drop the noatime options if you want and to 
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# fs  mountpointtype  opts  
dump/pass

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1   /boot   ext2
defaults,noatime,discard1 2
/dev/sda2   /   ext4
defaults,noatime,nodiratime,discard 0 1
/dev/sda3   /varext4
defaults,noatime,nodiratime,discard 0 0
/dev/sdb1   /mnt/donneesntfs-3g 
auto,uid=jacques,gid=users,umask=0022   0 0
/dev/sdb2   noneswapsw  
0 0
/dev/sdb5   /usr/portageext4
defaults,noatime,nodiratime 0 0
/dev/sdb6   /var/tmpext4
defaults,noatime,nodiratime 0 0
/dev/sdb7   /home   ext4
defaults,noatime,nodiratime 0 0
/dev/sdb8   /mnt/disk_virt  ext4
defaults,noatime,nodiratime 0 0

//192.168.0.12/NetHDD   /mnt/Iomega cifs
noauto,guest,soft,users,iocharset=utf8,rw 0 0
//192.168.0.11/keynux   /mnt/Keynux cifs
noauto,guest,soft,users,iocharset=utf8,rw 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
#shm/dev/shmtmpfs   nodev,nosuid,noexec 
0 0

tmpfs   /tmptmpfs   defaults,noatime,mode=1777  0 0
tmpfs   /var/logtmpfs   defaults,noatime,mode=1777  0 0



Re: [gentoo-user] SSD configuration

2012-11-25 Thread Luis Gustavo Vilela de Oliveira
You should look at the BIOS config, if AHCI is enable.


2012/11/25 Jacques Montier jmont...@gmail.com

 Hi all,

 I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
 and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).

 1- Everything seems to work perfectly, but i would like to know if my
 configuration is ok or could be optimized.

 /tmp and /var/log are on tmpfs
 /boot, / and /var are on SSD (sda),
 swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)
 You can see my attached file fstab.txt

 2- When booting, BIOS seems to detect the SSD as IDE not SATA ; anything
 wrong ?

 Thank you very much for your response,

 Cheers,

 --
 Jacques








Re: [gentoo-user] SSD configuration

2012-11-25 Thread Florian Philipp
Am 25.11.2012 16:36, schrieb Jacques Montier:
 Hi all,
 
 I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
 and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).
 
 1- Everything seems to work perfectly, but i would like to know if my
 configuration is ok or could be optimized.
 
 /dev/sda1 /boot   ext2
 defaults,noatime,discard1 2

You don't need to specify defaults when there is any other option
present. Defaults is just there so that the column is not empty if you
do not specify any option.

 /dev/sda2 /   ext4
 defaults,noatime,nodiratime,discard 0 1

noatime implies nodiratime. Specifying both is redundant.

 /dev/sda3 /varext4
 defaults,noatime,nodiratime,discard 0 0
 /dev/sdb1   /mnt/donneesntfs-3g 
 auto,uid=jacques,gid=users,umask=0022   0 0
 /dev/sdb2 noneswapsw  
 0 0

Swap on SSD would be faster but I guess you want to avoid the additional
writes.

 /dev/sdb5 /usr/portageext4
 defaults,noatime,nodiratime 0 0
 /dev/sdb6   /var/tmp  ext4
 defaults,noatime,nodiratime 0 0
 /dev/sdb7   /home   ext4  
 defaults,noatime,nodiratime 0 0

For home, auto_da_alloc trades a little performance for additional
security against stupid applications that forget to fsync().

 /dev/sdb8   /mnt/disk_virt  ext4  
 defaults,noatime,nodiratime 0 0


Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] SSD configuration

2012-11-25 Thread Volker Armin Hemmann
Am Sonntag, 25. November 2012, 16:36:06 schrieb Jacques Montier:
 Hi all,
 
 I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation and
 installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).
 
 1- Everything seems to work perfectly, but i would like to know if my
 configuration is ok or could be optimized.
 
 /tmp and /var/log are on tmpfs

not good. /tmp good, /var/log really not good. Do I have to explain it or do 
you can think of some reasons for  yourself? Really, /var/log is a lot more 
important than /var/tmp.

You could put /var/tmp/portage onto tmpfs

 /boot, / and /var are on SSD (sda),
 swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)

ok, I would put /var on the hdd and /home on the ssd with all bigger data on 
the hdd (like pics, ogg, movies)

 2- When booting, BIOS seems to detect the SSD as IDE not SATA ; anything
 wrong ?
 

yes

-- 
#163933



Re: [gentoo-user] SSD configuration

2012-11-25 Thread Jacques Montier
Thank you Luis,

In BIOS, i switched to AHCI instead of IDE Mode, but the system does not
boot.
I get kernel panic (No filesystem could mount root...)

My kernel configuration :
CONFIG_SATA_AHCI=y

--
Jacques


2012/11/25 Luis Gustavo Vilela de Oliveira luisgustavo.vil...@gmail.com

 You should look at the BIOS config, if AHCI is enable.


 2012/11/25 Jacques Montier jmont...@gmail.com

 Hi all,

 I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
 and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).

 1- Everything seems to work perfectly, but i would like to know if my
 configuration is ok or could be optimized.

 /tmp and /var/log are on tmpfs
 /boot, / and /var are on SSD (sda),
 swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)
 You can see my attached file fstab.txt

 2- When booting, BIOS seems to detect the SSD as IDE not SATA ; anything
 wrong ?

 Thank you very much for your response,

 Cheers,

 --
 Jacques









Re: [gentoo-user] SSD configuration

2012-11-25 Thread Jacques Montier
So i just kept noatime and discard options (for SSD).

Thank you Florian,


--
Jacques


2012/11/25 Florian Philipp li...@binarywings.net

 Am 25.11.2012 16:36, schrieb Jacques Montier:
  Hi all,
 
  I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
  and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go
 RAM).
 
  1- Everything seems to work perfectly, but i would like to know if my
  configuration is ok or could be optimized.
 
  /dev/sda1 /boot   ext2
  defaults,noatime,discard1 2

 You don't need to specify defaults when there is any other option
 present. Defaults is just there so that the column is not empty if you
 do not specify any option.

  /dev/sda2 /   ext4
  defaults,noatime,nodiratime,discard 0 1

 noatime implies nodiratime. Specifying both is redundant.

  /dev/sda3 /varext4
  defaults,noatime,nodiratime,discard 0 0
  /dev/sdb1   /mnt/donneesntfs-3g
 auto,uid=jacques,gid=users,umask=0022   0 0
  /dev/sdb2 noneswapsw
  0 0

 Swap on SSD would be faster but I guess you want to avoid the additional
 writes.

  /dev/sdb5 /usr/portageext4
  defaults,noatime,nodiratime 0 0
  /dev/sdb6   /var/tmp  ext4
  defaults,noatime,nodiratime 0 0
  /dev/sdb7   /home   ext4
  defaults,noatime,nodiratime 0 0

 For home, auto_da_alloc trades a little performance for additional
 security against stupid applications that forget to fsync().

  /dev/sdb8   /mnt/disk_virt  ext4
  defaults,noatime,nodiratime 0 0


 Regards,
 Florian Philipp




Re: [gentoo-user] SSD configuration

2012-11-25 Thread Florian Philipp
Am 25.11.2012 17:34, schrieb Jacques Montier:
 2012/11/25 Luis Gustavo Vilela de Oliveira luisgustavo.vil...@gmail.com
 mailto:luisgustavo.vil...@gmail.com
 2012/11/25 Jacques Montier jmont...@gmail.com
 mailto:jmont...@gmail.com
[...]
 2- When booting, BIOS seems to detect the SSD as IDE not SATA ;
 anything wrong ?
 
 
 You should look at the BIOS config, if AHCI is enable.
 
 
 Thank you Luis,
 
 In BIOS, i switched to AHCI instead of IDE Mode, but the system does not
 boot.
 I get kernel panic (No filesystem could mount root...)
 
 My kernel configuration :
 CONFIG_SATA_AHCI=y
 

It is possible that the change switched the device naming, making sda
sdb and vice versa. Try to boot from a live-CD to verify that. You can
also do this to check if you missed a module.

BTW: Please don't top-post, both Luis and Jaques. Put your answers below
the quoted messages (like I did).

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] SSD configuration

2012-11-25 Thread Alex Schuster

Jacques Montier writes:


I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).

1- Everything seems to work perfectly, but i would like to know if my
configuration is ok or could be optimized.

/tmp and /var/log are on tmpfs


Like Volker said. Yikes! Or is that just a typo and you meant /var/tmp? 
Still, I would prefer to have that on the HDD.



/boot, / and /var are on SSD (sda),
swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)


I would put the portage tree on the SDD.

Wonko



Re: [gentoo-user] SSD configuration

2012-11-25 Thread Jacques Montier
2012/11/25 Florian Philipp li...@binarywings.net

 Am 25.11.2012 17:34, schrieb Jacques Montier:
  2012/11/25 Luis Gustavo Vilela de Oliveira luisgustavo.vil...@gmail.com
  mailto:luisgustavo.vil...@gmail.com
  2012/11/25 Jacques Montier jmont...@gmail.com
  mailto:jmont...@gmail.com
 [...]
  2- When booting, BIOS seems to detect the SSD as IDE not SATA ;
  anything wrong ?
 
 
  You should look at the BIOS config, if AHCI is enable.
 
 
  Thank you Luis,
 
  In BIOS, i switched to AHCI instead of IDE Mode, but the system does not
  boot.
  I get kernel panic (No filesystem could mount root...)
 
  My kernel configuration :
  CONFIG_SATA_AHCI=y
 

 It is possible that the change switched the device naming, making sda
 sdb and vice versa. Try to boot from a live-CD to verify that. You can
 also do this to check if you missed a module.

 BTW: Please don't top-post, both Luis and Jaques. Put your answers below
 the quoted messages (like I did).

 Regards,
 Florian Philipp



Sorry Florian for the top-post.

Well, you were right !
The live-cd SysRescueCd showed all the devices switched ; sdb instead of
sda.
Renaming all the devices and system was booting again.
Nevetheless, i felt that with AHCI BIOS Mode, the SSD was slightly less
reactive than the IDE Mode.
Do you think that could be possible ?
May be, i am completely wrong...

Best regards,

--
Jacques


Re: [gentoo-user] SSD configuration

2012-11-25 Thread Jacques Montier
2012/11/25 Alex Schuster wo...@wonkology.org

 Jacques Montier writes:

  I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
 and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go RAM).

 1- Everything seems to work perfectly, but i would like to know if my
 configuration is ok or could be optimized.

 /tmp and /var/log are on tmpfs


 Like Volker said. Yikes! Or is that just a typo and you meant /var/tmp?
 Still, I would prefer to have that on the HDD.


  /boot, / and /var are on SSD (sda),
 swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)


 I would put the portage tree on the SDD.

 Wonko



Alex,

Each time you sync the portage, you should write on the SSD...
Is it a good thing ?
As Volker said, i put  /var on the HDD, and it works fine.

Regards,

--
Jacques


[gentoo-user] easy Gentoo tricks

2012-11-25 Thread Grant
What are your favorite easy Gentoo tricks?  Stuff that makes your system a
lot better in some way with only a minimal amount of effort.  I just
discovered one for xfce4:

emerge tumbler

No other config.  Really cool result.

- Grant


[gentoo-user] swap on ssd?

2012-11-25 Thread William Kenworthy
Has anyone tried swap on ssd?  - has it killed the drive prematurely? -
any other effects?

I have a system that is maxed with with 4G ram and tends to use swap
heavily at times which slows things down ... so I am thinking a small
ssd might help here.

Another slower alternative is a usb thumbdrive ... might try that later
today as I have some around ... again anyone tried this and found
something unexpected?

BillK






Re: [gentoo-user] swap on ssd?

2012-11-25 Thread Volker Armin Hemmann
Am Montag, 26. November 2012, 06:46:28 schrieb William Kenworthy:
 Has anyone tried swap on ssd?  - has it killed the drive prematurely? -
 any other effects?
 
 I have a system that is maxed with with 4G ram and tends to use swap
 heavily at times which slows things down ... so I am thinking a small
 ssd might help here.

you know what helps even more? replacing those 4g with 8g.

-- 
#163933



Re: [gentoo-user] swap on ssd?

2012-11-25 Thread Neil Bothwick
On Mon, 26 Nov 2012 06:46:28 +0800, William Kenworthy wrote:

 Has anyone tried swap on ssd?  - has it killed the drive prematurely? -
 any other effects?

Yes, no, improved virtual memory performance.

SSDs aren't cheapo SD cards, they are meant to be written to. A storage
device that broke if you tried to store stuff on it would break trading
laws in any civilised country.


-- 
Neil Bothwick

Top Oxymorons Number 32: Living dead


signature.asc
Description: PGP signature


Re: [gentoo-user] swap on ssd?

2012-11-25 Thread felix
On Mon, Nov 26, 2012 at 12:02:23AM +0100, Volker Armin Hemmann wrote:
 Am Montag, 26. November 2012, 06:46:28 schrieb William Kenworthy:
  Has anyone tried swap on ssd?  - has it killed the drive prematurely? -
  any other effects?
  
  I have a system that is maxed with with 4G ram and tends to use swap
^^
  heavily at times which slows things down ... so I am thinking a small
  ssd might help here.
 
 you know what helps even more? replacing those 4g with 8g.

Not when it's maxed at 4g.

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman  rocket surgeon / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o



Re: [gentoo-user] swap on ssd?

2012-11-25 Thread William Kenworthy
On Mon, 2012-11-26 at 00:02 +0100, Volker Armin Hemmann wrote:
 Am Montag, 26. November 2012, 06:46:28 schrieb William Kenworthy:
  Has anyone tried swap on ssd?  - has it killed the drive prematurely? -
  any other effects?
  
  I have a system that is maxed with with 4G ram and tends to use swap
  heavily at times which slows things down ... so I am thinking a small
  ssd might help here.
 
 you know what helps even more? replacing those 4g with 8g.
 

I would if I could - physical max is 4G ...

BillK






Re: [gentoo-user] swap on ssd?

2012-11-25 Thread microcai
2012/11/26 William Kenworthy bi...@iinet.net.au:
 On Mon, 2012-11-26 at 00:02 +0100, Volker Armin Hemmann wrote:
 Am Montag, 26. November 2012, 06:46:28 schrieb William Kenworthy:
  Has anyone tried swap on ssd?  - has it killed the drive prematurely? -
  any other effects?
 
  I have a system that is maxed with with 4G ram and tends to use swap
  heavily at times which slows things down ... so I am thinking a small
  ssd might help here.

 you know what helps even more? replacing those 4g with 8g.


 I would if I could - physical max is 4G ...

a new mainborad is cheaper than SSDs. sell the currently used one and
buy new one.


 BillK







Re: [gentoo-user] SSD configuration

2012-11-25 Thread microcai
2012/11/26 Jacques Montier jmont...@gmail.com:


 2012/11/25 Alex Schuster wo...@wonkology.org

 Jacques Montier writes:

 I bought a 250Go SSD M4 Crucial , read (of course) Gentoo documentation
 and installed the drive on my desktop pc (Asus MB, Intel ie7 and 6Go
 RAM).

 1- Everything seems to work perfectly, but i would like to know if my
 configuration is ok or could be optimized.

 /tmp and /var/log are on tmpfs


 Like Volker said. Yikes! Or is that just a typo and you meant /var/tmp?
 Still, I would prefer to have that on the HDD.


 /boot, / and /var are on SSD (sda),
 swap, /home, /usr/portage, /var/tmp and /var/log on a 1To SATA HDD (sdb)


 I would put the portage tree on the SDD.

 Wonko



 Alex,

 Each time you sync the portage, you should write on the SSD...
 Is it a good thing ?

yes, then you can ask a new one within the garentee time.

 As Volker said, i put  /var on the HDD, and it works fine.

 Regards,

 --
 Jacques






Re: [gentoo-user] swap on ssd?

2012-11-25 Thread Bill Kenworthy
On Mon, 2012-11-26 at 08:29 +0800, microcai wrote:
 2012/11/26 William Kenworthy bi...@iinet.net.au:
  On Mon, 2012-11-26 at 00:02 +0100, Volker Armin Hemmann wrote:
  Am Montag, 26. November 2012, 06:46:28 schrieb William Kenworthy:
   Has anyone tried swap on ssd?  - has it killed the drive prematurely? -
   any other effects?
  
   I have a system that is maxed with with 4G ram and tends to use swap
   heavily at times which slows things down ... so I am thinking a small
   ssd might help here.
 
  you know what helps even more? replacing those 4g with 8g.
 
 
  I would if I could - physical max is 4G ...
 
 a new mainborad is cheaper than SSDs. sell the currently used one and
 buy new one.
 
 
  BillK
 
 
 
 
 

I dont think a new quality mainboard, cpu and 8 or more GB ram costs
$au69 or less :)

I will upgrade eventually, but even then I would start with an ssd as
well.

BillK







Re: [gentoo-user] easy Gentoo tricks

2012-11-25 Thread Walter Dnes
On Sun, Nov 25, 2012 at 01:53:22PM -0800, Grant wrote
 What are your favorite easy Gentoo tricks?  Stuff that makes your system a
 lot better in some way with only a minimal amount of effort.  I just
 discovered one for xfce4:
 
 emerge tumbler
 
 No other config.  Really cool result.

  In general, emerging an add-on for an environment will pull in the
environment as a dependancy.  Similar to your setup, back when I used
blackbox, emerging bbkeys would pull in blackbox as a dependancy.

  My setup takes a little a little setting up, but saves a lot of work
when setting up a new kernel.  I run with 2 kernels available...
1) Production
2) Experimental

  Sometimes they're identical.  Here's a simplified version of my
/etc/lilo.conf with the comment lines stripped out


lba32

boot = /dev/sda
map = /boot/.map

install = /boot/boot-menu.b

menu-scheme=Wb
prompt
timeout=150
delay = 50


image = /boot/kernel-3.0-production
root = /dev/sda5
label = Production
read-only # read-only for checking
append = noexec32=on

image = /boot/kernel-3.0-experimental
root = /dev/sda5
label = Experimental
read-only # read-only for checking
append = noexec32=on


  This gives me a boot menu with Production and Experimental kernels
to boot from.

  There are also 2 small scripts...
/usr/src/makeover
***IMPORTANT*** The arch/x86 directory is specific to 32-bit i686
kernels.  Adjust accordingly if you use a different architecture.

#!/bin/bash
make  \
make modules_install  \
cp arch/x86/boot/bzImage /boot/kernel-3.0-experimental  \
cp System.map /boot/System.map-3.0-experimental  \
cp .config /boot/config-3.0-experimental  \
lilo



/usr/src/promote

#!/bin/bash
cp /boot/System.map-3.0-experimental /boot/System.map-3.0-production
cp /boot/config-3.0-experimental /boot/config-3.0-production
cp /boot/kernel-3.0-experimental /boot/kernel-3.0-production
lilo


  I build a new kernel by running ../makeover from /usr/src/linux.  It
does the make and overwrites the previous Experimental kernel, and
runs lilo.  It does not touch Production.

  After the Experimental kernel has been running trouble-free for a
while, I promote it to Production, by running ../promote from
/usr/src/linux.  This copies the experimental kernel over the production
kernel.  At this point, they are identical.  Having a previous working
kernel to fall back to has saved me on a few occasions.

  Note; on a brand new install, lilo will come back with an error on the
very first run of ../makeover, because there is no Production kernel
found.  The first time you run ../makeover, run ../promote immediately
afterwards.  This copies the Experimental kernel to Production, and
satisfies lilo.

-- 
Walter Dnes waltd...@waltdnes.org
We are apparently better off trying to avoid udev like the plague.
Linus Torvalds; 2012/10/03 https://lkml.org/lkml/2012/10/3/349



Re: [gentoo-user] easy Gentoo tricks

2012-11-25 Thread Pandu Poluan
On Nov 26, 2012 4:56 AM, Grant emailgr...@gmail.com wrote:

 What are your favorite easy Gentoo tricks?  Stuff that makes your system
a lot better in some way with only a minimal amount of effort.

I personally keep stage '3.5' containing pre-compiled 'must-haves'. And a
'3.9' where the world has been totally recompiled using '--march=nocona'
and gcc Graphite extensions.

This saves me a lot of time deploying Gentoo servers at the back-end.

Rgds,
--


Re: [gentoo-user] swap on ssd?

2012-11-25 Thread 微蔡
在 2012年11月26日 星期一 09:08:00,Bill Kenworthy 写道:
 On Mon, 2012-11-26 at 08:29 +0800, microcai wrote:
  2012/11/26 William Kenworthy bi...@iinet.net.au:
   On Mon, 2012-11-26 at 00:02 +0100, Volker Armin Hemmann wrote:
   Am Montag, 26. November 2012, 06:46:28 schrieb William Kenworthy:
Has anyone tried swap on ssd?  - has it killed the drive prematurely?
-
any other effects?
   
I have a system that is maxed with with 4G ram and tends to use swap
heavily at times which slows things down ... so I am thinking a small
ssd might help here.
  
   you know what helps even more? replacing those 4g with 8g.
  
   I would if I could - physical max is 4G ...
 
  a new mainborad is cheaper than SSDs. sell the currently used one and
  buy new one.
 
   BillK

 I dont think a new quality mainboard, cpu and 8 or more GB ram costs
 $au69 or less :)

you can sell old one, just fill the gap.


 I will upgrade eventually, but even then I would start with an ssd as
 well.

 BillK
--
 __
 gentoo rocks 
 --
\   ^__^
 \  (oo)\___
(__)\   )\/\
||w |
|| ||


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


Re: [gentoo-user] swap on ssd?

2012-11-25 Thread Daniel Troeder
On 26.11.2012 00:18, Neil Bothwick wrote:
 On Mon, 26 Nov 2012 06:46:28 +0800, William Kenworthy wrote:
 
 Has anyone tried swap on ssd?  - has it killed the drive prematurely? -
 any other effects?
 
 Yes, no, improved virtual memory performance.
+1

 SSDs aren't cheapo SD cards, they are meant to be written to. A storage
 device that broke if you tried to store stuff on it would break trading
 laws in any civilised country.
+1

Even if the SSD failed inside the 2 year guerantee time - you'd get a
new one for free. And in 2y you'll need the new mobo anyway - so there's
nothing to loose.


-- 
PGP key @
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x837FB8B5BB9D4887
# gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] SSD configuration

2012-11-25 Thread Daniel Troeder
On 25.11.2012 22:43, Jacques Montier wrote:
 Each time you sync the portage, you should write on the SSD...
 Is it a good thing ?
It is the best thing since rsync! Really - it is amazing!

And about portage: you write in your portage tree not nearly as often as
in /home. SSDs don't die as quickly as you think. The most important
thing about wear leveling is to keep 10% free disk space in all
partitions and enable discard. You'll be fine then.


-- 
PGP key @
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x837FB8B5BB9D4887
# gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887



signature.asc
Description: OpenPGP digital signature