Re: [gentoo-user] Spellcheck not working in Kmail

2009-12-25 Thread Alan McKinnon
On Friday 25 December 2009 02:36:08 Stroller wrote:
> On 24 Dec 2009, at 22:16, Daniel D Jones wrote:
> > Options/Automatic Spellchecking is checked and the status line at the
> > bottom of Composer shows "Spellcheck: on."  Manually selecting
> > Tools/Spelling shows the message "Spell check complete."  But no
> > mispelled words are marked, including nonsense strings like "lakjdfh."
> 
> It's been a long time since I used KDE / Kmail, at least since I did so
>  seriously. But I seem to recall there is an option in the preferences to
>  set the path to the spell-checker. This may be changes to
>  "/usr/bin/aspell", to ispell or whatever. I would not be surprised if
>  there is at least one other alternate spell-checker by now - maybe ispell
>  is no longer the default? This preference may be centralised in the main
>  KControl options panel, rather than in the Kmail-specific options,
>  assuming I am recalling its existence correctly.


Somewhere in System Settings there is an option to set the global language for 
all KDE apps.

This has caught me out before 

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] gentoo on ssds? intel anyone?

2009-12-25 Thread Stefan G. Weichinger
Am 20.12.2009 08:14, schrieb Alan McKinnon:
> On Saturday 19 December 2009 12:19:05 Stefan G. Weichinger wrote:
>> I expected more WOW in terms of overall speed ...
> 
> SSDs are not a magic bullet, it's unlikely they will give you a
> killer performance improvement that makes you go "WOW!!!"

sad to hear ;-)

> SSDs suck at random writes. Typical usage scenario on a workstation
> is lots of random writes compared to relatively few random reads -
> reads tend not to be all that random as you re-read the same thing
> often and it gets cached.
> 
> Intel SSDs are far superior at random writes than any other SSD out
> there but it's still nowhere near as optimised as spinning drives,
> and kernels by and large are still optimised for spinning drives
> too.

Acknowledged. Just for reference, I switched over to the
noop-IO-scheduler and checked that /sys/block/sdX/queue/rotational is
detected/set correctly at value 0 for the ssd. These are two ssd-related
modifications I know of ...

> This may account for your overall feeling of under-whelmedness why
> still seeing a significant boot-time speed up. You also have enough
> RAM so that almost an entire typical workstation session could fit in
> RAM and seldom touch the disk especially with a large interval
> between disk syncs

Yes, you are right. Thanks.

What I still wonder:

* I copied my gentoo over while the ssd still was on firmware 02HA, I
upgraded to 02HD (latest Intel-firmware for the X25-M G2) with the os
already on the drive. Does that somehow make a difference to data
written *after* the upgrade? I just wonder if I should somehow restart
from scratch with the new firmware, just to "do it right" or "get the
optimum".

* The new firmware supports TRIM. As far as I understand, the
block-layer in the linux kernel 2.6.32 does not yet support it,
correct? Any way to use that command with my current 2.6.32? ext4
supports it (I use ext4 for the root-partition) but I am not sure if
that is enough when libata does not?

When I google I get different results, some saying the kernel supports
TRIM since 2.6.28 ...

Hmm, good info here:

http://www.linux-mag.com/id/7272

says:

> So at the moment, ext4 informs the block layer that blocks that
> belong to deleted files can be discard, so once TRIM-capable SSD’s
> become available, and the Linux block layer actually sends the TRIM
> command to the hard drives, everything will be all set to go.

Does anyone have more recent info?

Thanks, best greetings, have some peaceful days ...

Stefan



Re: [gentoo-user] Re: went from x86 to ~x86: no more X11

2009-12-25 Thread Stefan G. Weichinger
Am 12.12.2009 22:18, schrieb Stefan G. Weichinger:
> Am 12.12.2009 21:56, schrieb Joshua Murphy:
> 
>> Anytime, and glad to hear that you're back up and working happily again! :)
> 
> old phenomenon: post "solved" and it crashes again ...

Just for reference: emerged slim instead of gdm now ... works.



Re: [gentoo-user] Grub boots to command prompt

2009-12-25 Thread Alan McKinnon
On Thursday 24 December 2009 18:32:22 Daniel D Jones wrote:
> > Your next paragraph indicates that (hd0,0) is not in fact root, but (what
> >  will eventually be) /boot.
> > 
> > Your root is likely to be (hd0,2)
> 
> Eh?  Your grub root should be where grub is installed, shouldn't
>  it?  That's  /dev/sda1 on my system, which grub sees as hd (0,0).  When
>  the file system is mounted, that partition mounted under /boot but grub
>  still needs to know where to find the menu.lst and various stage files on
>  initial boot, and that's hd (0,0).
> 

grub doesn't have a concept of "root". It's a bootloader, not a OS, and 
doesn't mount anything. It just reads data directly off disk volumes and 
(sometimes) has drivers to interpret the raw data.

When you say "root" that can only make sense in the context of an OS that uses 
a "root", so I interpreted it as such.

grub is installed wherever you installed it. You can put it on any arbitrary 
drive you feel like, or even in the first sector of any arbitrary partition if 
the drive supports such. All you have to do is tell grub where it is.

Now, that introduces a wrinkle. On a PC, the BIOS does not support stage 1 
booting off a partition. The stage 1 code MUST exist on the MBR of a DRIVE 
(blame msdos for this stupid idea) so you want to install grub to /dev/sda or 
(hd0)

I strongly suspect that you are conflating the operation of a bootloader with 
the OS. At boot time Linux conventions have no relevance whatsoever and are 
not valid, as Linux is not running yet. grub Boots Linux, it is not Linux and 
does not work like Linux. Much the same way as a starter motor starts a petrol 
engine but a starter motor is not a petrol engine and does not work like one.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Install Gentoo 64bit from 32bit running enviroment

2009-12-25 Thread Alan McKinnon
On Thursday 24 December 2009 16:33:26 Carlos Moyano Cubillos wrote:
> Dear friends,
> 
> I have a gentoo system running 32bit .. and I have a 30GB partition
> available on which I would like to install a 64bit Gentoo to test for
> 64bit extensions processor supports .
> 
> 
> someone could help me and tell me how to proceed with this
> installation from my running system without having to reboot with a
> livecd.

You have to reboot with a LiveCD.

Your running 32 bit kernel does not support 64 bit instructions and there is 
no magic voodoo to make it possible. The CPU might understand 64 bit 
instructions but the running kernel that drives it definitely does not.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] xconsole characters

2009-12-25 Thread Willie Wong
On Thu, Dec 24, 2009 at 04:00:37PM +0100, Penguin Lover pk squawked:
> Does anyone know if there's a way to configure xconsole to not display
> control characters (at least that's what I think it is)? Currently
> xconsole displays this when XDM starts:
> 
>  [32;01m*[0m Setting clock via the NTP client 'ntpdate' ...
> [A[152C  [34;01m[ [32;01mok[34;01m ][0m
>  [32;01m*[0m Starting postfix (/etc/postfix) ...
> [A[152C  [34;01m[ [32;01mok[34;01m ][0m

Those are ANSI escape codes. My google-fu is not up to telling me how
to set xconsole to ignore them, but it seems possible that xconsole
just cannot handle ANSI codes? 

A workaround may be to set RC_NOCOLOR="yes" in /etc/conf.d/rc

Some of the init scripts seems to check for them, but I am not sure
whether it will work or not. 

Cheers, 

W
-- 
3.1415926535897932384626433832795028841971693993751058209749445923078164062862
089986280348253421170679821480865132823066470938446095505822317253594081284811
174502841027019385211055596446229489549303819644288109756659334461284756482337
867831652712019091456485669234603486104543266482133936072602491412737245870066
Sortir en Pantoufles: up 1113 days,  9:30



Re: [gentoo-user] Mail from rkhunter

2009-12-25 Thread Florian Philipp
Mark Knecht schrieb:
> Hi,
>What's the minimum configuration required on a remote system to get
> rkhunter to email my GMail account if the rkhunter cron job finds
> something suspicious?
> 
>Do I have to emerge and configure an email server of some type or
> can rkhunter just send email on its own?
> 
> Thanks,
> Mark
> 

ssmtp or any other sendmail replacement will be sufficient. Just look at
their respective config files for filling in your account data.



signature.asc
Description: OpenPGP digital signature


[gentoo-user] The Great Macbook Update 2: How to brace for xorg

2009-12-25 Thread bn
Hi,

Second thread of help with my Macbook upgrade of essentials which I
don't upgrade since a long time.

Now I have to prepare to jump from xorg-1.3 to xorg-1.6. I've seen
already there are a lot of horror stories in the mailing list and a lot
of weird instructions about hal, evdev etc.

Before starting, I have some pre-emptive question:
- Is using hal for xorg necessary?
- If I want xorg to use the same old config files of before, is it
enough to compile with -hal ? Is there a way to tell xorg "dynamically"
to use hal or not, so that I can check without recompiling but just by
restarting X?
- I have the keymap (an Italian Macbook keyboard) customized in the , so
that, for example, apple key works as Alt-Gr. To keep such
customizations on (which, I admit, I don't remember well where they are,
but maybe someone of you does! it was in the Gentoo Wiki but now I see
the relevant part is no more), is it again good to let xorg use xorg.conf?
- Anything else I should be aware of, like stuff to put into xorg.conf
before trying to restart X?

Thanks!
m.



[gentoo-user] Clean shutdown of laptop possible after migration to KDE4?

2009-12-25 Thread Erik
After migrating to KDE4 it seems like the laptop just dies when the
battery becomes empty. In KDE3 I could set klaptopdaemon to warn when
the estimated remaining battery time is 15 minutes and begin a clean
shutdown when it is 10 minutes. It worked very well. Is it somehow
possible to get a clean shutdown in KDE4? I do not want to loose a
filesystem because of it.



Re: [gentoo-user] xconsole characters

2009-12-25 Thread pk
Willie Wong wrote:

> Those are ANSI escape codes. My google-fu is not up to telling me how
> to set xconsole to ignore them, but it seems possible that xconsole
> just cannot handle ANSI codes? 

Yes, that's what I was afraid of... However, it seems many people uses
xconsole a bit differently by creating a /dev/xconsole pipe (fifo) and
getting syslog to pipe information to that and letting the program
xconsole to read from that fifo (xconsole -file /dev/xconsole)... I
found this:
http://www.linuxfromscratch.org/hints/downloads/files/xconsole_setup.txt

> A workaround may be to set RC_NOCOLOR="yes" in /etc/conf.d/rc

That may work, but I upgraded X yesterday and the start order of xdm has
changed (previously it was started right after networking, IIRC); now it
starts right before "local". My main interest in xconsole was to see if
ntp-client was started correctly and since the new order displays ntp
ok/nok on the console before xdm starts, xconsole seems a bit redundant...

Thanks anyway!

Happy new year!

Best regards

Peter K



[gentoo-user] what does vboxwebsrv use flag mean?

2009-12-25 Thread Xi Shen
hi,

i want to emerge vbox, but i cannot fine reference about the
"vboxwebsrv" use flag. can someone help me?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/



[gentoo-user] Installation (or not) of Perl Getopt::Long

2009-12-25 Thread Stroller
Hey, Gentoo,

I'm just attempting to learn a little Perl and write a little Perl program.

I have been experimenting with the Getopt::Long module, which seems to be 
working fine, but I'm considering Getopt::Tabular instead.

So I thought I'd search portage for "Getopt", to see if that is readily 
provided by Portage, or otherwise which modules are:

$ eix -c -C perl Getopt 
[N] dev-perl/Getopt-ArgvFile (1.11): This module is a simple supplement to 
other option handling modules.
[N] dev-perl/Getopt-Long-Descriptive (~0.083): Getopt::Long with usage text
[N] dev-perl/Getopt-Mixed (1.10): Getopt::Mixed is used for parsing mixed 
options
[N] dev-perl/MooseX-Getopt (~0.26): A Moose role for processing command line 
options
[N] perl-core/Getopt-Long (2.38): Advanced handling of command line options
Found 5 matches.
$ 

Yet none of them, not even the Get::Long package that I've been experimenting 
with, are installed on my system:

$ eix -c -C perl Getopt -I
No matches found.
$ 

Can anyone explain, please, why this appears not to be installed? Yet how it's 
working just fine?

It looks like a simpler options parsing module is installed, but not this one:

$ locate GetOpt
/usr/share/man/man3/Tcl_ChannelGetOptionProc.3.bz2
/usr/share/doc/perl-5.8.8-r8/html/lib/Pod/Perldoc/GetOptsOO.html
/usr/lib/perl5/5.8.8/Pod/Perldoc/GetOptsOO.pm
$ 

Further evidence that Getopt::Long seems to be working on this system is that 
it's used by get_iplayer, which has been working well on this system for the 
last 3 weeks or so:

$ grep -i Getopt  `which get_iplayer`
use Getopt::Long;
search  => [ 1, "search=s", 'Search', '--search ', 
"GetOpt compliant way of specifying search args"],
use Getopt::Long;
# Build hash for passing to GetOptions module
Getopt::Long::Configure("bundling");
Getopt::Long::Configure("pass_through");
Getopt::Long::Configure("no_pass_through");
return GetOptions(%get_opts);
$ 

get_iplayer can be examined at http://linuxcentre.net/get_iplayer/get_iplayer 
in case I'm misunderstanding its usage.

I feel really dumb - there must be something simple & logical that I'm missing 
here.

Stroller.




[gentoo-user] Re: Installation (or not) of Perl Getopt::Long

2009-12-25 Thread Stroller

On 25 Dec 2009, at 16:21, Stroller wrote:
> ...
> Yet none of them, not even the Get::Long package that I've been experimenting 
> with, are installed on my system:
> 
> $ eix -c -C perl Getopt -I
> No matches found.
> $ 
> 
> Can anyone explain, please, why this appears not to be installed? Yet how 
> it's working just fine?

Ok, please ignore me:

   "Getopt::Std and Getopt::Long are both supplied with the
   standard Perl distribution. There are currently six other
   Getopt:: modules available on CPAN."

http://world.std.com/~swmcd/steven/perl/pm/getopt.html


[gentoo-user] pxe + initramfs

2009-12-25 Thread James
All,

I have been experimenting heavily with netboot (PXE booting).

When I go to boot the Ubuntu LiveCD via the network I have to set up
an NFS share and export it with the content of the LiveCD so that the
kernel can boot from it.

However, when booting the Gentoo LiveCD from the network, everything
seems to be downloaded as one large initramfs image that is then
extracted and used to boot. i.e., no NFS required.

How would I go about taking a LiveCD and packing it into a LiveCD so
that I don't have to set up NFS exports for all the other Linux
distributions?

Thoughts appreciated.

-j



[gentoo-user] serial port identification question

2009-12-25 Thread David Relson
My mobo has two serial ports.

As reported by hwinfo they are:

  Serial Port 0: 0x3f8
  Serial Port 1: 0x2f8

After booting the machine, dmesg indicates that tty0 is the console
with message:

console [tty0] enabled

/dev names a multitude of tty devices, i.e. /dev/tty0, /dev/tty1, ...

How do I determine which devices correspond to the serial ports?

Thanks.

David





[gentoo-user] alsa playback problems in audacious

2009-12-25 Thread Michael P. Soulier
Hi,

I recently noticed that I suddenly have problems with mp3 playback in
audacious2. 

msoul...@anton:~$ alsa-gapless: snd_device_name_hint failed: Invalid argument.
madplug: lost synchronization.
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured

Lots of gaps in the playback.

mplayer is fine, and it's using alsa for sound playback, so it feels like an
application problem.

Has anyone else seen this?

Mike
-- 
Michael P. Soulier 
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein


pgpgyQsyhjinO.pgp
Description: PGP signature


Re: [gentoo-user] what does vboxwebsrv use flag mean?

2009-12-25 Thread Alan McKinnon
On Friday 25 December 2009 18:19:01 Xi Shen wrote:
> hi,
> 
> i want to emerge vbox, but i cannot fine reference about the
> "vboxwebsrv" use flag. can someone help me?
> 


$ euse -i vboxwebsrv
global use flags (searching: vboxwebsrv)

no matching entries found

local use flags (searching: vboxwebsrv)

[-] vboxwebsrv (app-emulation/virtualbox-bin):
Install the VirtualBox webservice

[-] vboxwebsrv (app-emulation/virtualbox-ose):
Build and install the VirtualBox webservice

virtualbox's own documentation will explain why it's web server is


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Clean shutdown of laptop possible after migration to KDE4?

2009-12-25 Thread Alan McKinnon
On Friday 25 December 2009 16:23:23 Erik wrote:
> After migrating to KDE4 it seems like the laptop just dies when the
> battery becomes empty. In KDE3 I could set klaptopdaemon to warn when
> the estimated remaining battery time is 15 minutes and begin a clean
> shutdown when it is 10 minutes. It worked very well. Is it somehow
> possible to get a clean shutdown in KDE4? I do not want to loose a
> filesystem because of it.
> 


System Settings -> Advanced -> Power Management


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Re: what does vboxwebsrv use flag mean?

2009-12-25 Thread walt

On 12/25/2009 08:19 AM, Xi Shen wrote:

hi,

i want to emerge vbox, but i cannot fine reference about the
"vboxwebsrv" use flag. can someone help me?


You don't need that unless you plan to be a vbox developer,
according to the vbox forums.  It's for building vbox interfaces
other than qt.




Re: [gentoo-user] what does vboxwebsrv use flag mean?

2009-12-25 Thread Stroller

On 25 Dec 2009, at 16:19, Xi Shen wrote:
> i want to emerge vbox, but i cannot fine reference about the
> "vboxwebsrv" use flag. can someone help me?

This may be _some_ help:

$ euses vboxwebsrv
app-emulation/virtualbox-bin:vboxwebsrv - Install the VirtualBox webservice 
app-emulation/virtualbox-ose:vboxwebsrv - Build and install the VirtualBox 
webservice  
 
$  


[gentoo-user] Re: The Great Macbook Update 2: How to brace for xorg

2009-12-25 Thread bn
bn ha scritto:
> Hi,
> 
> Second thread of help with my Macbook upgrade of essentials which I
> don't upgrade since a long time.
> 
> Now I have to prepare to jump from xorg-1.3 to xorg-1.6. I've seen
> already there are a lot of horror stories in the mailing list and a lot
> of weird instructions about hal, evdev etc.
> 
> Before starting, I have some pre-emptive question:
> - Is using hal for xorg necessary?
> - If I want xorg to use the same old config files of before, is it
> enough to compile with -hal ? Is there a way to tell xorg "dynamically"
> to use hal or not, so that I can check without recompiling but just by
> restarting X?
> - I have the keymap (an Italian Macbook keyboard) customized in the , so
> that, for example, apple key works as Alt-Gr. To keep such
> customizations on (which, I admit, I don't remember well where they are,
> but maybe someone of you does! it was in the Gentoo Wiki but now I see
> the relevant part is no more), is it again good to let xorg use xorg.conf?
> - Anything else I should be aware of, like stuff to put into xorg.conf
> before trying to restart X?

Ok, I updated, and (miracolously enough) xorg 1.6 + hal/evdev mostly works!
Only thing I have to put back in shape is the keyboard mapping. I have
seen how to force hal policy to use the IT mapping, but I lost most
customizations I needed:
- key F11 mimicking the middle mouse button
- apple key mimicking Alt-Gr

and I don't find much information on how to do this with HAL. Any hint?
(Oddly enough, one of the past customizations I had, key F12=right mouse
button, still works.)

Thanks,
M.



Re: [gentoo-user] serial port identification question

2009-12-25 Thread Dale

David Relson wrote:

My mobo has two serial ports.

As reported by hwinfo they are:

  Serial Port 0: 0x3f8
  Serial Port 1: 0x2f8

After booting the machine, dmesg indicates that tty0 is the console
with message:

console [tty0] enabled

/dev names a multitude of tty devices, i.e. /dev/tty0, /dev/tty1, ...

How do I determine which devices correspond to the serial ports?

Thanks.

David

  


Mine is /dev/ttyS0 and /dev/ttyS1 .  I put both devices so you will 
notice what is alpha and what is numeric.  Also note the S is capitol as 
well.


Dale

:-)  :-) 



[gentoo-user] Re: The Great Macbook Update 2: How to brace for xorg

2009-12-25 Thread bn
bn ha scritto:
> Ok, I updated, and (miracolously enough) xorg 1.6 + hal/evdev mostly works!
> Only thing I have to put back in shape is the keyboard mapping. I have
> seen how to force hal policy to use the IT mapping, but I lost most
> customizations I needed:
> - key F11 mimicking the middle mouse button
> - apple key mimicking Alt-Gr
> 
> and I don't find much information on how to do this with HAL. Any hint?
> (Oddly enough, one of the past customizations I had, key F12=right mouse
> button, still works.)

Further update: I am trying with xmodmap, but it seems it works in some
cases and others not (notably GTK applications ignore it, while KDE apps
use it).

I've put xmodmap lines in my .xsession, kdm config, and I have identical
xmodmap both in my home and in /etc/X11, to no avail.

Even if I run

xmodmap $HOME/.xmodmap

from a terminal and then I start some gtk app, this ignores the xmodmap.

Any hint?
Thanks and (I forgot) hope you had a merry Christmas!

m.



[gentoo-user] Re: The Great Macbook Update 2: How to brace for xorg

2009-12-25 Thread bn
bn ha scritto:
> Further update: I am trying with xmodmap, but it seems it works in some
> cases and others not (notably GTK applications ignore it, while KDE apps
> use it).
> 
> I've put xmodmap lines in my .xsession, kdm config, and I have identical
> xmodmap both in my home and in /etc/X11, to no avail.
> 
> Even if I run
> 
> xmodmap $HOME/.xmodmap
> 
> from a terminal and then I start some gtk app, this ignores the xmodmap.

Found that, it is a GTK bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532717

sorry for the monologue, but maybe it will help people looking in the ML
in the future!

m.



Re: [gentoo-user] serial port identification question

2009-12-25 Thread David Relson
On Fri, 25 Dec 2009 14:10:46 -0600
Dale wrote:

> David Relson wrote:
> > My mobo has two serial ports.
> >
> > As reported by hwinfo they are:
> >
> >   Serial Port 0: 0x3f8
> >   Serial Port 1: 0x2f8
> >
> > After booting the machine, dmesg indicates that tty0 is the console
> > with message:
> >
> > console [tty0] enabled
> >
> > /dev names a multitude of tty devices,
> > i.e. /dev/tty0, /dev/tty1, ...
> >
> > How do I determine which devices correspond to the serial ports?
> >
> > Thanks.
> >
> > David
> >
> >   
> 
> Mine is /dev/ttyS0 and /dev/ttyS1 .  I put both devices so you will 
> notice what is alpha and what is numeric.  Also note the S is capitol
> as well.
> 
> Dale
> 
> :-)  :-) 

My /dev/tty* didn't include any /dev/ttyS* entries.  Searching the web,
I learned that "MAKEDEV /dev/ttyS0" and "MAKEDEV /dev/ttyS1" will
create the missing entries and that "stty -F /dev/ttyS0 -a" will
provide configuration information for the port.

My little Serial.cpp class is now successfully writing to the port (as
proved by my son running Hyperterminal and receiving the sent
characters).  However, receiving characters isn't yet working.
Neither his hyperterminal nor my sender (with a loopback plug) is
receiving.



Re: [gentoo-user] Clean shutdown of laptop possible after migration to KDE4?

2009-12-25 Thread Erik
Alan McKinnon skrev:
> On Friday 25 December 2009 16:23:23 Erik wrote:
>> After migrating to KDE4 it seems like the laptop just dies when the
>> battery becomes empty. In KDE3 I could set klaptopdaemon to warn when
>> the estimated remaining battery time is 15 minutes and begin a clean
>> shutdown when it is 10 minutes. It worked very well. Is it somehow
>> possible to get a clean shutdown in KDE4? I do not want to loose a
>> filesystem because of it.
>
> System Settings -> Advanced -> Power Management

Unfortunately I do not seem to have it. All that I have under System
Settings -> Advanced is:
Adapt the desktop theme
Automatic start
Device actions
Filebindings
Fetch from CDDB
Hardware
KDE-wallet
KDE-resources
Session manager
Desktop search
Service manager
-
Login manager

Which package should I install?



Re: [gentoo-user] serial port identification question

2009-12-25 Thread Dale

David Relson wrote:

On Fri, 25 Dec 2009 14:10:46 -0600
Dale wrote:

  

David Relson wrote:


My mobo has two serial ports.

As reported by hwinfo they are:

  Serial Port 0: 0x3f8
  Serial Port 1: 0x2f8

After booting the machine, dmesg indicates that tty0 is the console
with message:

console [tty0] enabled

/dev names a multitude of tty devices,
i.e. /dev/tty0, /dev/tty1, ...

How do I determine which devices correspond to the serial ports?

Thanks.

David

  
  
Mine is /dev/ttyS0 and /dev/ttyS1 .  I put both devices so you will 
notice what is alpha and what is numeric.  Also note the S is capitol

as well.

Dale

:-)  :-) 



My /dev/tty* didn't include any /dev/ttyS* entries.  Searching the web,
I learned that "MAKEDEV /dev/ttyS0" and "MAKEDEV /dev/ttyS1" will
create the missing entries and that "stty -F /dev/ttyS0 -a" will
provide configuration information for the port.

My little Serial.cpp class is now successfully writing to the port (as
proved by my son running Hyperterminal and receiving the sent
characters).  However, receiving characters isn't yet working.
Neither his hyperterminal nor my sender (with a loopback plug) is
receiving.

  


Are you sure you enabled this in the kernel?  It is under   Device 
Drivers > Character devices > Serial Drivers then enable these:


<*> 8250/16550 and compatible serial support
(4) Maximum number of 8250/16550 serial ports
(4) Number of 8250/16550 serial ports to register at runtime

At least that works for my dial-up modem and my UPS.

You may be able to put two instead of four but as I said, it works here 
like this.  I only have two ports tho.


Dale

:-)  :-)



Re: [gentoo-user] Re: Writing a bash script or thinking about it anyway.

2009-12-25 Thread Dale

»Q« wrote:

On Mon, 21 Dec 2009 21:22:05 -0600
Dale  wrote:

  

I found a guide but before I read all that stuff and muddy up the
waters, is this thing current and will it work fine with the bash
Gentoo uses?  Links to a even better guide would be good too. The
guide I found is here:

http://tldp.org/LDP/abs/html/



It's current and it's fine for Gentoo.  It's in the portage tree as
app-doc/abs-guide, in case you want a local copy.

  


I'm installing this and will give it a read when I get some free time.  
I hope this will not be to long. 


Thanks.

Dale

:-)  :-)



Re: [gentoo-user] Writing a bash script or thinking about it anyway.

2009-12-25 Thread Dale

Francisco Ares wrote:

On Tue, Dec 22, 2009 at 3:09 AM, Dale  wrote:
  

Neil Walker wrote:


Dale wrote:

  

Me again.  I'm thinking about writing a bash script that backs up my
/home directory.



I use a simple rsync cron job to backup entire servers every hour. Does
the job for me. ;)


Be lucky,

Neil
http://www.the-workathome.com


  

But I wouldn't learn how to write a script that way.  I got to start
somewhere.  This is a good place.

Dale

:-)  :-)




Now I got your point.

I would think on something like this (untested):


The command line would be

BackupScriptName  FromDirectory  ToDirectory


#! /bin/bash
FROM=$1
TO=$2
cd $FROM
for i in * .??*
do
if [[ -d "$i" ]]   # is it a directory?
then
# yes, it is a directory
if [[ -e "$TO/$i" ]] && [[ -d "$TO/$i" ]]
then

# on the TO side, the name exists
# and it is a directory
cd "$i"

# just to show something
pwd

# calls recursively this same script
$0 "$FROM/$i" "$TO/$i"
cd ..

else
# didn't existed yet on the TO side,
# so copy everything
cp -a $FROM/$i $TO/$i
fi
else
# it is a file, not a directory
if [[ -e "$TO/$i" ]]
then
# the file already exists

# do something to compare the files, like:

# gets size from "ls" result
SIZE1=`ls -l "$i" | cut -d" " -f5`
SIZE2=`ls -l "TO/$i" | cut -d" " -f5

if (( $SIZE1!=$SIZE2 ))
then

# size is different, so copy the file
cp -a "$FROM/$i" "$TO/$i"

else
# more tests for differences other
# than size, like date/time
# or even MD5SUM
fi
else

# file doesn't exist at the "TO" side
cp -a "$FROM/$i" "$TO/$i"

fi

fi

done


Hope this helps
Francisco
  


After learning a little about scripting I'll give this a once over and 
see what I learn.  Right now, it's like. . . huh.  lol


Thanks.

Dale

:-)  :-) 



Re: [gentoo-user] what does vboxwebsrv use flag mean?

2009-12-25 Thread Xi Shen
On Sat, Dec 26, 2009 at 2:56 AM, Stroller
 wrote:
>
> On 25 Dec 2009, at 16:19, Xi Shen wrote:
>> i want to emerge vbox, but i cannot fine reference about the
>> "vboxwebsrv" use flag. can someone help me?
>
> This may be _some_ help:
>
> $ euses vboxwebsrv
> app-emulation/virtualbox-bin:vboxwebsrv - Install the VirtualBox webservice
> app-emulation/virtualbox-ose:vboxwebsrv - Build and install the VirtualBox 
> webservice
> $
>


i got it. thanks a lot.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/



Re: [gentoo-user] serial port identification question

2009-12-25 Thread David Relson
On Fri, 25 Dec 2009 16:56:00 -0600
Dale wrote:

...[snip]...

> Are you sure you enabled this in the kernel?  It is under   Device 
> Drivers > Character devices > Serial Drivers then enable these:
> 
> <*> 8250/16550 and compatible serial support
> (4) Maximum number of 8250/16550 serial ports
> (4) Number of 8250/16550 serial ports to register at runtime
> 
> At least that works for my dial-up modem and my UPS.
> 
> You may be able to put two instead of four but as I said, it works
> here like this.  I only have two ports tho.
> 
> Dale
> 
> :-)  :-)

Hello Dale,

My 32-bit gentoo system, which is the one in question, has the
following options set:

   #
   # Serial drivers
   # CONFIG_SERIAL_8250=m
   CONFIG_FIX_EARLYCON_MEM=y
   CONFIG_SERIAL_8250_PCI=m
   # CONFIG_SERIAL_8250_CS is not set
   CONFIG_SERIAL_8250_NR_UARTS=4
   CONFIG_SERIAL_8250_RUNTIME_UARTS=4
   # CONFIG_SERIAL_8250_EXTENDED is not set

This should be sufficient to create /dev/ttyS0 thru /dev/ttyS3, though
they are not created.

(In truth NR_UARTS=2 is the proper value.)

Using MAKEDEV, I can manually create ttyS0 thru ttyS3.  

Running "stty -f /dev/ttyS? -a" indicates that ttyS0 and ttyS1 are fine
while ttyS2 and ttyS3" gives:


stty: /dev/ttyS2: Input/output error
stty: /dev/ttyS3: Input/output error

Regards,

David




[gentoo-user] chromium failed to start up

2009-12-25 Thread Xi Shen
hi,

my system is gentoo amd64, kde 4.3, and have recently updated. last
time i emerged chromium and it works fine. but after updated the
world, my chromium cannot start up. it reports segment fault.

any idea why this happen?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/