Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread Mick
On Tuesday 29 Dec 2015 17:51:32 J. Roeleveld wrote:
> On Tuesday, December 29, 2015 04:34:33 PM Mick wrote:
> > On Tuesday 29 Dec 2015 14:18:20 J. Roeleveld wrote:
> > > sqlite is nice, for single threaded applications.
> > > For anything more advanced, either a wrapper is required or something
> > > more advanced needs to be used.
> > 
> > I like sqlite because it is self-contained, embedded in the application
> > that uses it and accesses the data directly with functional calls,
> > rather than looping around port/socket interfaces to speak to a server. 
> > This is why I kept it, since with Kmail1 it is not used much.
> 
> SQLite never was reliable with akonadi. That might be why so many people
> had all those issues.
> 
> > With Kmail2 the database will be hammered so as you say will need
> > something that can process things in parallel at speed and in higher
> > volumes. So, I'm planning to install postgresql for this purpose, since
> > in my experience mysql has had a number of hickups with akonadi.
> 
> My experience as well, which is why I switched to Postgresql.
> 
> > Can you please advise what GRANTS did you use to create a dedicated
> > postgresql user for akonadi?
> 
> Grants?
> I did the following:
> % createuser -P 
> (NOTE: You need to set a password, which is why I use the "-P" option)
> 
> % createdb -E UTF8 -O  
> 
> My config for this is:
> 
> % cat .config/akonadi/akonadiserverrc
> [%General]
> Driver=QPSQL
> 
> [QPSQL]
> Name=
> Host=localhost
> Options=
> ServerPath=/usr/bin/pg_ctl
> InitDbPath=/usr/bin/initdb
> StartServer=false
> User=
> Password=
> Port=5432
> 
> [Debug]
> Tracer=null
> 
> > Will the same user be used for Baloo indexing, or is this an additional
> > database role?
> 
> Afaik, no. Baloo uses it's own database engine.
> 
> For the USE-flags:
> 
> app-office/akonadi-server postgresql qt4
> (all other USE-flags disabled)
> 
> --
> Joost

Thank you very much Joost for holding my hand on this.  Last question for the 
day:  It seems that postgresql wants to install xemacs as a dependency ... o_O


# emerge -uaDv emerge dev-db/postgresql

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N ] app-eselect/eselect-postgresql-1.2.1::gentoo  4 KiB
[ebuild  N ] app-eselect/eselect-ctags-1.18::gentoo  9 KiB
[ebuild  N ] app-eselect/eselect-emacs-1.18::gentoo  0 KiB
[ebuild  N ] dev-db/postgresql-9.4.5-r1:9.4::gentoo  USE="ldap nls pam 
readline server ssl xml zlib -doc -kerberos (-libressl) -perl -
pg_legacytimestamp -python (-selinux) -static-libs -tcl -threads -uuid" 
LINGUAS="en -af -cs -de -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk 
-sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python2_7 -python3_4" 
PYTHON_TARGETS="python2_7 python3_4" 17,248 KiB
[ebuild  N ] app-editors/xemacs-21.4.24::gentoo  USE="X berkdb gdbm gif 
gpm jpeg ldap png tiff -Xaw3d -athena -canna -dnd -eolconv -freewnn -motif -
mule -nas -neXt -pop -postgres -xface -xim" 8,383 KiB
[ebuild  N ] app-xemacs/xemacs-base-2.27::gentoo  524 KiB
[ebuild  N ] app-xemacs/emerge-1.11::gentoo  60 KiB

Total: 7 packages (7 new), Size of downloads: 26,225 KiB

Would you like to merge these packages? [Yes/No]


Why is this?

-- 
Regards,
Mick


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


Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread J. Roeleveld
On Tuesday, December 29, 2015 04:34:33 PM Mick wrote:
> On Tuesday 29 Dec 2015 14:18:20 J. Roeleveld wrote:
> > sqlite is nice, for single threaded applications.
> > For anything more advanced, either a wrapper is required or something more
> > advanced needs to be used.
> 
> I like sqlite because it is self-contained, embedded in the application that
> uses it and accesses the data directly with functional calls, rather than
> looping around port/socket interfaces to speak to a server.  This is why I
> kept it, since with Kmail1 it is not used much.

SQLite never was reliable with akonadi. That might be why so many people had 
all those issues.

> With Kmail2 the database will be hammered so as you say will need something
> that can process things in parallel at speed and in higher volumes. So, I'm
> planning to install postgresql for this purpose, since in my experience
> mysql has had a number of hickups with akonadi.

My experience as well, which is why I switched to Postgresql.

> Can you please advise what GRANTS did you use to create a dedicated
> postgresql user for akonadi?

Grants?
I did the following:
% createuser -P 
(NOTE: You need to set a password, which is why I use the "-P" option)

% createdb -E UTF8 -O  

My config for this is:

% cat .config/akonadi/akonadiserverrc 
[%General]
Driver=QPSQL

[QPSQL]
Name=
Host=localhost
Options=
ServerPath=/usr/bin/pg_ctl
InitDbPath=/usr/bin/initdb
StartServer=false
User=
Password=
Port=5432

[Debug]
Tracer=null

> Will the same user be used for Baloo indexing, or is this an additional
> database role?

Afaik, no. Baloo uses it's own database engine.

For the USE-flags:

app-office/akonadi-server postgresql qt4
(all other USE-flags disabled)

--
Joost

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


Re: [gentoo-user] Maybe bug? (glibc related?)

2015-12-29 Thread lee
Elias Diem  writes:

> Hi lee
>
> On 2015-12-29, lee wrote:
>
>> Elias Diem  writes:
>> 
>> > Hi
>> >
>> > I just got the following while running Vim's testsuite.
>> >
>> > 
>> > *** buffer overflow detected ***: vim terminated; report to 
>> > 
>> > Makefile:151: recipe for target 'af.ck' failed
>> > make[2]: *** [af.ck] Killed
>> > 
>> >
>> > The compiler gave me the following warning.
>> >
>> > [...]
>> > /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk 
>> > will always overflow destination buffer
>> >return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
>> >
>> > [...]
>> >
>> > Should I file a bug?
>> 
>> The test was successful because the buffer overflow was detected?
>
> I think I don't quite understand your question.
>
> `make test` failed. Therefore I'd say the test was not 
> successful.
>
> I run a hardened profile. I guess that's why the overflow 
> was detected and vim terminated.

When you perform a strcpy() and overflow the destination buffer, you are
supposed to experience a segmentation fault.  It shouldn't matter
whether you run a hardened profile or not for detecting these.

I imagine it was discovered that a segmentation fault did occur, and
that it inevitably would occur --- since gcc tells you that one will
occur when using __builtin___strcpy_chk() --- and the application was
terminated.  Otherwise, the test would have been unsuccessful.

Whether this is a bug or not depends on what you're supposed to expect,
which I don't know.  If someone would run the test suite on a
non-hardened profile and got the same warning from gcc, but vim wouldn't
be terminated when the segmentation fault occurs, then I'd be worried.



Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread lee
Mick  writes:

> On Tuesday 29 Dec 2015 14:18:20 J. Roeleveld wrote:
>
>> sqlite is nice, for single threaded applications.
>> For anything more advanced, either a wrapper is required or something more
>> advanced needs to be used.
>
> I like sqlite because it is self-contained, embedded in the application that 
> uses it and accesses the data directly with functional calls, rather than 
> looping around port/socket interfaces to speak to a server.  This is why I 
> kept it, since with Kmail1 it is not used much.
>
> With Kmail2 the database will be hammered so as you say will need something 
> that can process things in parallel at speed and in higher volumes. So, I'm 
> planning to install postgresql for this purpose, since in my experience mysql 
> has had a number of hickups with akonadi.

Are we at the point where users are accepting to have to install and
maintain a fully fledged RDBMS just for a single application which
doesn't even need a database in the first place?

Quite a few times I've been thinking it would be nice to have a database
to implement a particular feature for an application, and I've always
decided not to do it because it seems to be a totally unreasonable
requirement, and because it seems rather unlikely that any user would be
willing to do it.  It would make some sense if an RDBMS were a
requirement already, used by all kinds of software --- though I'm
finding it very questionable if we should go there (and find ourselves
with a single point of failure and bottleneck).

A MUA must be doing something very wrong to have such a requirement.
And what kind of performance can you expect with a laptop that has only
4GB and is already overloaded with KDE?



Re: [gentoo-user] major problem after samba update

2015-12-29 Thread lee
cov...@ccs.covici.com writes:

> lee  wrote:
>
>> cov...@ccs.covici.com writes:
>> 
>> > lee  wrote:
>> >
>> >> cov...@ccs.covici.com writes:
>> >> 
>> >> > Hi.  I just upgraded from samba 4.1.x to 4.2.7 and in one of my shares,
>> >> > I can not access any subfolders of that share.  It usually gives me some
>> >> > kind of windows permission error, or just location not available.
>> >> > Windows tells me I can't even display the advanced security settings for
>> >> > any folder.  Anyone know what they did and how to fix?  There is a hard
>> >> > blocker to downgrading, so maybe something is up.
>> >> >
>> >> > Thanks in advance for any suggestions.
>> >> 
>> >> Do they have a changelog which you looked at?  Can you mount these
>> >> shares from a Linux client?
>> >
>> > These are on a Linux server, so there is no problem there.
>> 
>> Can you definitely mount the share from a remote Linux client without
>> problems?
>> 
>> > Changelog doesn't say anything but the version number.
>
> I don't have any remote linux client and this is samba, used so that
> windows can access the share.

You could make a copy of everything in the inaccessible share, make a
new share with settings identical to the settings of the shares that are
still accessible when copying has finished, and try to access the new
share with a remote client.

If you can access the new share, either something with the old one is
weird, or you have changed something like permissions or extended
attributes by copying.


If you cannot access the new share, try a different kernel version (or
try a different kernel version first).  I've had a case in which a
kernel would freeze/panic when the directory contents of a directory
that was exported via NFS were displayed with ls on a NFS client.

IIRC samba uses kernel support on the server.  Perhaps you have a
version mismatch between the new samba version and what the kernel
supports.



Re: [gentoo-user] Re: Gcc 5.3

2015-12-29 Thread lee
David Haller  writes:

> Hello,
>
> On Tue, 29 Dec 2015, lee wrote:
>>Andrew Savchenko  writes:
>>> There will be no 5.3.1 likely. Numeration scheme is changed from 5.x
>>> series: what was middle version is now major, what was minor is now
>>> middle. So 5.3 is a patch version of 5.0 the same as 4.9.3 is a
>>> patch version of 4.9.0.
>>
>>What do you currently get as default when you update, and can you easily
>>go back to a previous version, or have several versions installed and
>>switch between them?
>
> I'd guess 4.9.3. And yes and yes.
>
> # eix sys-devel/gcc
> [I] sys-devel/gcc
>  Available versions:  
>  (2.95.3) ~2.95.3-r10^s
>  (3.3.6) (~)3.3.6-r1^s
>  (3.4.6) 3.4.6-r2^s
>  (4.0.4) **4.0.4^s
>  (4.1.2) 4.1.2^s
>  (4.2.4) (~)4.2.4-r1^s
>  (4.3.6) 4.3.6-r1^s
>  (4.4.7) 4.4.7^s
>  (4.5.4) 4.5.4^s
>  (4.6.4) 4.6.4^s
>  (4.7)  4.7.4^s
>  (4.8)  (~)4.8.0^s (~)4.8.1-r1^s (~)4.8.2^s 4.8.3^s 4.8.4^s 4.8.5^s
>  (4.9)  ~*4.9.0^s ~*4.9.1^s (~)4.9.2^s 4.9.3^s{tbz2}
>  (5)**5.1.0^s **5.2.0^s (~)5.3.0^s{tbz2}
> [..]
>  Installed versions:  4.9.3(4.9)^s{tbz2}[..]
>   5.3.0(5)^s{tbz2}[..]
> [..]
>
> # gcc-config -l
>  [1] x86_64-pc-linux-gnu-4.9.3 *
>  [2] x86_64-pc-linux-gnu-5.3.0
>
> Basically, you can install one of each slot, i.e. the first column in
> () of the eix output. From (2.95.3) to (5). And switch as you like.
>
> As 4.9.3 is marked stable, I guess that's what'd you get per default.

4.8.5

I'd have to run emerge --sync to know about more recent versions.  How
is that supposed to be used, btw?  I only run that when I do want to
update everything.  Now if I didn't want to update anything but gcc,
could I run emerge --sync and install gcc 5.x without having trouble
with anything else I might install before actually updating everything?
So if I'd never explicitly update everything but run emerge --sync
frequently, things would be updated over time, occasionally?

> Stuff compiled with older gcc's should run with newer libgcc*[0], but
> stuff compililed with a newer gcc might not run with the older
> libgcc*. Same goes, with more problems IIRC, for libstdc++.
> So beware of that. Apart from that? I'm not aware of problems.

Uhm ... So I might break the system by switching between compiler
versions?  I have an application which I would like to compile with gcc
5.x just to see if that's even possible.  I could switch, try it, and
then switch back.

> BTW: why is gcc not also handled via eselect? Even if that'd just
> call gcc-config?

What about ccache?  How's that handled when you have multiple versions
of gcc installed?

> HTH,
> -dnh
>
> [0] e.g. old Loki games, probably compiled with 2.95.x or even older
> still run fine on a system built with gcc-4.6

If they were 64bit ...  Too bad that there basically aren't any games
anymore.



Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread Alec Ten Harmsel
On Tue, Dec 29, 2015 at 06:40:58PM +, Mick wrote:
> 
> Thank you very much Joost for holding my hand on this.  Last question for the 
> day:  It seems that postgresql wants to install xemacs as a dependency ... o_O
> 
> 
> # emerge -uaDv emerge dev-db/postgresql

emerge is trying to install app-xemacs/emerge, which depends on xemacs
(presumably). Your command is:

emerge [flags] emerge ...

Just a simple typo.

Alec



Re: [gentoo-user] Maybe bug? (glibc related?)

2015-12-29 Thread Elias Diem
Hi lee

On 2015-12-29, lee wrote:

> Elias Diem  writes:
> 
> > Hi
> >
> > I just got the following while running Vim's testsuite.
> >
> > 
> > *** buffer overflow detected ***: vim terminated; report to 
> > 
> > Makefile:151: recipe for target 'af.ck' failed
> > make[2]: *** [af.ck] Killed
> > 
> >
> > The compiler gave me the following warning.
> >
> > [...]
> > /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk 
> > will always overflow destination buffer
> >return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
> >
> > [...]
> >
> > Should I file a bug?
> 
> The test was successful because the buffer overflow was detected?

I think I don't quite understand your question.

`make test` failed. Therefore I'd say the test was not 
successful.

I run a hardened profile. I guess that's why the overflow 
was detected and vim terminated.

-- 
Greetings
Elias





[gentoo-user] OT - Midnight Commander and hiding terminal output

2015-12-29 Thread Skippy
Greetings all;

I've been googling to no avail on this one.

When using Midnight Commander, I'll select a file and hit "enter" thus
opening that file with it's associated program.

Let's say a mp3 file with VLC as that's one I have set up.

It runs, but any error messages from VLC appear in the MC terminal
window and force the MC display up the screen, thus rendering it unreadable.

I can fix this by exiting VLC and entering "clear" on the command line.

Question is, can I hide all terminal messages when MC is running?  Does
my question & description make sense?

Thanks much - Skippy



[gentoo-user] ssh: VisualHostKey is shows up twice

2015-12-29 Thread Bertram Scharpf
Hi,

when I ssh into Gentoo Linux from a FreeBSD host, the random
art of the host keys fingerprint shows up twice, once before
I enter the password and once after that. Here's a shortened
typescript.

  user@freebsdhost ~ % ssh gentoohost^M
  Host key fingerprint is 80:4d:29:6f:35:22:ca:77:c7:81:56:a6:98:f3:b1:c9^M
  +--[ECDSA  256]---+^M
  |  .+o|^M
  |o*=o+|^M
  | . .===+ o   |^M
  |  o .++=o|^M
  |   . oE.S|^M
  | |^M
  | |^M
  | |^M
  | |^M
  +-+^M
  ^M^M
  user@gentoohost's password: ^M
  Host key fingerprint is 80:4d:29:6f:35:22:ca:77:c7:81:56:a6:98:f3:b1:c9
  +--[ECDSA  256]---+
  |  .+o|
  |o*=o+|
  | . .===+ o   |
  |  o .++=o|
  |   . oE.S|
  | |
  | |
  | |
  | |
  +-+
  ^M
  user@gentoohost ~ % ^M

Notice that the second time there miss the carriage returns
what makes the output look really messy, and the picture
can't be recognised.

What is going on here?

Versions:

  user@freebsdhost ~ % ssh -V ; ssh -o VisualHostKey=no gentoohost ssh -V
  OpenSSH_6.6.1p1, OpenSSL 1.0.1q-freebsd 3 Dec 2015
  OpenSSH_7.1p1-hpn14v9, OpenSSL 1.0.2e 3 Dec 2015

Thanks in advance,
Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de



Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread Mick
On Tuesday 29 Dec 2015 14:18:20 J. Roeleveld wrote:

> sqlite is nice, for single threaded applications.
> For anything more advanced, either a wrapper is required or something more
> advanced needs to be used.

I like sqlite because it is self-contained, embedded in the application that 
uses it and accesses the data directly with functional calls, rather than 
looping around port/socket interfaces to speak to a server.  This is why I 
kept it, since with Kmail1 it is not used much.

With Kmail2 the database will be hammered so as you say will need something 
that can process things in parallel at speed and in higher volumes. So, I'm 
planning to install postgresql for this purpose, since in my experience mysql 
has had a number of hickups with akonadi.

Can you please advise what GRANTS did you use to create a dedicated postgresql 
user for akonadi?

Will the same user be used for Baloo indexing, or is this an additional 
database role?

-- 
Regards,
Mick


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


Re: [gentoo-user] radeon screen resolution

2015-12-29 Thread wabenbau
john  wrote:

> On Tue, 29 Dec 2015 11:05:12 +0200
> Alan McKinnon  wrote:
> 
> > On 29/12/2015 11:01, Mick wrote:
> > > On Tuesday 29 Dec 2015 02:00:33 waben...@gmail.com wrote:
> > >
> > >> There is a kernel option DRM_LOAD_EDID_FIRMWARE. It allows you to
> > >> specify an EDID data set instead of probing for it. If your
> > >> problem is caused by broken EDID data, this option maybe will
> > >> help you to run the monitor at its full resolution.
> > >>
> > >> --
> > >> Regards
> > >> wabe
> > >
> > > How would you know what to specify for EDID data, unless the
> > > monitor told you what it is?
> > >
> > 
> > or if the monitor manufacturer told you what it should be
> > 
> > /alanm
> > 
> 
> I have had a play with that but no success yet. I have followed the
> howto but no success yet but I think now I will have to find .bin file
> or settings from manufacturer.

Maybe you can somehow extract it (hexedit?) from the windows monitor 
driver that was probably delivered with the monitor. 

After I installed the driver for the LG monitor, I was able to use it 
at full resolution under windows. So I think that the EDID data (or 
something equivalent) was included in the driver.

I never used that kernel option. So I can't tell you more.

--
Regards
wabe



Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread J. Roeleveld
On 29 December 2015 19:40:58 CET, Mick  wrote:
>On Tuesday 29 Dec 2015 17:51:32 J. Roeleveld wrote:
>> On Tuesday, December 29, 2015 04:34:33 PM Mick wrote:
>> > On Tuesday 29 Dec 2015 14:18:20 J. Roeleveld wrote:
>> > > sqlite is nice, for single threaded applications.
>> > > For anything more advanced, either a wrapper is required or
>something
>> > > more advanced needs to be used.
>> > 
>> > I like sqlite because it is self-contained, embedded in the
>application
>> > that uses it and accesses the data directly with functional calls,
>> > rather than looping around port/socket interfaces to speak to a
>server. 
>> > This is why I kept it, since with Kmail1 it is not used much.
>> 
>> SQLite never was reliable with akonadi. That might be why so many
>people
>> had all those issues.
>> 
>> > With Kmail2 the database will be hammered so as you say will need
>> > something that can process things in parallel at speed and in
>higher
>> > volumes. So, I'm planning to install postgresql for this purpose,
>since
>> > in my experience mysql has had a number of hickups with akonadi.
>> 
>> My experience as well, which is why I switched to Postgresql.
>> 
>> > Can you please advise what GRANTS did you use to create a dedicated
>> > postgresql user for akonadi?
>> 
>> Grants?
>> I did the following:
>> % createuser -P 
>> (NOTE: You need to set a password, which is why I use the "-P"
>option)
>> 
>> % createdb -E UTF8 -O  
>> 
>> My config for this is:
>> 
>> % cat .config/akonadi/akonadiserverrc
>> [%General]
>> Driver=QPSQL
>> 
>> [QPSQL]
>> Name=
>> Host=localhost
>> Options=
>> ServerPath=/usr/bin/pg_ctl
>> InitDbPath=/usr/bin/initdb
>> StartServer=false
>> User=
>> Password=
>> Port=5432
>> 
>> [Debug]
>> Tracer=null
>> 
>> > Will the same user be used for Baloo indexing, or is this an
>additional
>> > database role?
>> 
>> Afaik, no. Baloo uses it's own database engine.
>> 
>> For the USE-flags:
>> 
>> app-office/akonadi-server postgresql qt4
>> (all other USE-flags disabled)
>> 
>> --
>> Joost
>
>Thank you very much Joost for holding my hand on this.  Last question
>for the 
>day:  It seems that postgresql wants to install xemacs as a dependency
>... o_O
>
>
># emerge -uaDv emerge dev-db/postgresql
>
>These are the packages that would be merged, in order:
>
>Calculating dependencies... done!
>[ebuild  N ] app-eselect/eselect-postgresql-1.2.1::gentoo  4 KiB
>[ebuild  N ] app-eselect/eselect-ctags-1.18::gentoo  9 KiB
>[ebuild  N ] app-eselect/eselect-emacs-1.18::gentoo  0 KiB
>[ebuild  N ] dev-db/postgresql-9.4.5-r1:9.4::gentoo  USE="ldap nls
>pam 
>readline server ssl xml zlib -doc -kerberos (-libressl) -perl -
>pg_legacytimestamp -python (-selinux) -static-libs -tcl -threads -uuid"
>
>LINGUAS="en -af -cs -de -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro
>-ru -sk 
>-sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python2_7 -python3_4" 
>PYTHON_TARGETS="python2_7 python3_4" 17,248 KiB
>[ebuild  N ] app-editors/xemacs-21.4.24::gentoo  USE="X berkdb gdbm
>gif 
>gpm jpeg ldap png tiff -Xaw3d -athena -canna -dnd -eolconv -freewnn
>-motif -
>mule -nas -neXt -pop -postgres -xface -xim" 8,383 KiB
>[ebuild  N ] app-xemacs/xemacs-base-2.27::gentoo  524 KiB
>[ebuild  N ] app-xemacs/emerge-1.11::gentoo  60 KiB
>
>Total: 7 packages (7 new), Size of downloads: 26,225 KiB
>
>Would you like to merge these packages? [Yes/No]
>
>
>Why is this?

No. You are trying to emerge 'emerge'.
(Check the commandline :) )

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Full system encryption on Gentoo

2015-12-29 Thread Andrew Savchenko
On Wed, 30 Dec 2015 07:34:52 +1000 Hans wrote:
> Hi,
> 
> Is it possible to fully encrypt a Gentoo system as can be done with 
> Fedora, Suse, Arch Linux, Debian and Ubunto without using a unencrypted 
> USB boot stick or unencrypted /boot partition?
> 
> If yes, where can I find instructions that really work on a BIOS only 
> box without UEFI, EFI, systemd using EXT4 file system?

The easiest way is to use ATA password for your drive (go into
BIOS menu for that or use some live image capable of that, e.g.
any Linux with hdparm or mhdd).

If you want to use Linux encryption (e.g. LUKS), you have to have
some piece of data unencrypted, because bios/uefi needs to load some
code which will be able to run kernel and decrypt your drive. This
peace may be kernel + initrd on efi partition or boot partition, usb
stick and so on. Of course it is possible to boot from external
media (PXE, CD/DVD, USB stick) and have whole HDD/SSD encrypted.

Though I see little point in whole / encryption. What is the
point to encrypt /usr, /lib, /bin, /sbin? Just do this
to /home, /var and other sensitive pieces.

Best regards,
Andrew Savchenko


pgp3ktGTUqY72.pgp
Description: PGP signature


Re: [gentoo-user] OT - Midnight Commander and hiding terminal output

2015-12-29 Thread waltdnes
On Tue, Dec 29, 2015 at 10:00:10AM -0700, Skippy wrote
> Greetings all;
> 
> I've been googling to no avail on this one.
> 
> When using Midnight Commander, I'll select a file and hit "enter" thus
> opening that file with it's associated program.
> 
> Let's say a mp3 file with VLC as that's one I have set up.
> 
> It runs, but any error messages from VLC appear in the MC terminal
> window and force the MC display up the screen, thus rendering it unreadable.
> 
> I can fix this by exiting VLC and entering "clear" on the command line.
> 
> Question is, can I hide all terminal messages when MC is running?  Does
> my question & description make sense?


  Another MC user here.  Here are a couple of entries I've inserted at
the top of my ~/.config/mc/mc.ext file.  The first entry in mc.ext that
matches the extension takes precedence, so you want your custom entries
at the top.  What these entries do is to launch an xterm.  The xterm is
what actually launches mplayer.  All the spew from mplayer appears in
the xterm, not in MC.  If I want to kill the player part way through a
song/video, I can do it from the small xterm.  The xterm automatically
disappears as soon as the song/video finishes.

#
#FLAC and WAV and MP3 files (to free up mc console) 
regex/i/\.(wav|flac|mp3)$
 Open=/usr/bin/xterm -e /usr/bin/mplayer %d/%p &
#
# Videos
regex/i/\.(avi|mov|mp4|mpeg)$
 Open=/usr/bin/xterm -e /usr/bin/mplayer %d/%p &

  This should also work for you with VLC.  Substitute "vlc", or
whatever, for "mplayer".  This "indirection" method is useful for *ANY*
program that spews diagnostics/whatever to the console that launched it.
E.g. I get dignostics/etc with abiword.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Full system encryption on Gentoo

2015-12-29 Thread Rich Freeman
On Tue, Dec 29, 2015 at 5:57 PM, Andrew Savchenko  wrote:
>
> Though I see little point in whole / encryption. What is the
> point to encrypt /usr, /lib, /bin, /sbin? Just do this
> to /home, /var and other sensitive pieces.
>

An obvious advantage is to prevent rootkits, at least while the system
is not running under your control.  Of course, you'd need to control
the entire boot chain for that.  If you just use grub to decrypt your
boot partition then you're still vulnerable to the bootloader being
tampered with.

A hard drive password is indeed another approach, and that would
protect against offline attacks as long as you trust the drive vendor.

If you use UEFI or a TPM those also provide protection against
tampering, but I've yet to hear of anybody actually accomplishing this
on linux with a TPM.  On windows full-disk encryption backed by a TPM
is fairly common - I think it even supports it out of the box.  For
Linux you need to use trusted grub and enable support in your kernel
and initramfs.  I have no idea how hard that is to set up (basically
you encrypt the disk and store the key in the TPM, and then the TPM
only provides the key if the system is booted with the same
bootloader+kernel+initramfs.  I imagine kernel updates get tricky in
such a design, but it has the advantage of being completely
transparent to the user.

-- 
Rich



Re: [gentoo-user] Full system encryption on Gentoo

2015-12-29 Thread Rich Freeman
On Tue, Dec 29, 2015 at 4:34 PM, Hans  wrote:
>
> Is it possible to fully encrypt a Gentoo system as can be done with Fedora,
> Suse, Arch Linux, Debian and Ubunto without using a unencrypted USB boot
> stick or unencrypted /boot partition?
>

I'm pretty sure grub can support LUKS.   See for example:
https://wiki.archlinux.org/index.php/GRUB#Boot_partition

If you have instructions for Arch the same instructions would probably
work almost without modification on Gentoo.  Since both distros tend
to follow upstream they tend to be very similar.  Neither uses a lot
of auto-magic configuration as far as I'm aware.

> If yes, where can I find instructions that really work on a BIOS only box
> without UEFI, EFI, systemd using EXT4 file system?

There is a doc on the Wiki, though I haven't used it myself:
https://wiki.gentoo.org/wiki/DM-Crypt_LUKS

I'd recommend using dracut in general for your initramfs.  It seems to
be the most robust and cross-platform option out there.

Otherwise I'd probably follow the Arch instructions and adapt as necessary.

-- 
Rich



Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread Mick
On Tuesday 29 Dec 2015 17:37:25 lee wrote:

> Are we at the point where users are accepting to have to install and
> maintain a fully fledged RDBMS just for a single application which
> doesn't even need a database in the first place?

Yes, a sad state of affairs indeed.  I was hoping for the last 5-6 years that 
someone  who can code would come to their senses with this application and 
agree that not all desktop application use cases require some enterprise level 
database back end architecture, when a few flat data files have served most 
users perfectly fine for years.  I mean, do I *really* need a database for 
less that 60 entries in my address book?!!

I can stick with Kmail-1 until circumstances force a change upon me, or I can 
try once more to migrate to it now (previous attempts failed for various 
reasons).  The only reason I am having a go at it again during my holidays, is 
because I don't want to have to try a forced migration in the middle of some 
other crisis during a working week.


> Quite a few times I've been thinking it would be nice to have a database
> to implement a particular feature for an application, and I've always
> decided not to do it because it seems to be a totally unreasonable
> requirement, and because it seems rather unlikely that any user would be
> willing to do it.  It would make some sense if an RDBMS were a
> requirement already, used by all kinds of software --- though I'm
> finding it very questionable if we should go there (and find ourselves
> with a single point of failure and bottleneck).

You are wise and evidently not affected by the EU project which funded all 
this semantic KDE desktop PoC exercise, that foisted the akonadi on us as if 
it was the best thing a desktop would ever need ... madness!

Perhaps this was Europe's response to the MSWindows desktop monopoly in the 
enterprise sector, but IMHO they started too late and ended up fighting the 
wars of the previous decade.


> A MUA must be doing something very wrong to have such a requirement.
> And what kind of performance can you expect with a laptop that has only
> 4GB and is already overloaded with KDE?

I don't actually run the full KDE desktop.  I run e17 with some KDE apps, like 
Kmail.  Kmail has been and still is the best mail client for my needs and 
habits.

-- 
Regards,
Mick


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


Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread Mick
On Tuesday 29 Dec 2015 18:49:03 J. Roeleveld wrote:
> On 29 December 2015 19:40:58 CET, Mick  wrote:
> >On Tuesday 29 Dec 2015 17:51:32 J. Roeleveld wrote:
> >> On Tuesday, December 29, 2015 04:34:33 PM Mick wrote:
> >> > On Tuesday 29 Dec 2015 14:18:20 J. Roeleveld wrote:
> >> > > sqlite is nice, for single threaded applications.
> >> > > For anything more advanced, either a wrapper is required or
> >
> >something
> >
> >> > > more advanced needs to be used.
> >> > 
> >> > I like sqlite because it is self-contained, embedded in the
> >
> >application
> >
> >> > that uses it and accesses the data directly with functional calls,
> >> > rather than looping around port/socket interfaces to speak to a
> >
> >server.
> >
> >> > This is why I kept it, since with Kmail1 it is not used much.
> >> 
> >> SQLite never was reliable with akonadi. That might be why so many
> >
> >people
> >
> >> had all those issues.
> >> 
> >> > With Kmail2 the database will be hammered so as you say will need
> >> > something that can process things in parallel at speed and in
> >
> >higher
> >
> >> > volumes. So, I'm planning to install postgresql for this purpose,
> >
> >since
> >
> >> > in my experience mysql has had a number of hickups with akonadi.
> >> 
> >> My experience as well, which is why I switched to Postgresql.
> >> 
> >> > Can you please advise what GRANTS did you use to create a dedicated
> >> > postgresql user for akonadi?
> >> 
> >> Grants?
> >> I did the following:
> >> % createuser -P 
> >> (NOTE: You need to set a password, which is why I use the "-P"
> >
> >option)
> >
> >> % createdb -E UTF8 -O  
> >> 
> >> My config for this is:
> >> 
> >> % cat .config/akonadi/akonadiserverrc
> >> [%General]
> >> Driver=QPSQL
> >> 
> >> [QPSQL]
> >> Name=
> >> Host=localhost
> >> Options=
> >> ServerPath=/usr/bin/pg_ctl
> >> InitDbPath=/usr/bin/initdb
> >> StartServer=false
> >> User=
> >> Password=
> >> Port=5432
> >> 
> >> [Debug]
> >> Tracer=null
> >> 
> >> > Will the same user be used for Baloo indexing, or is this an
> >
> >additional
> >
> >> > database role?
> >> 
> >> Afaik, no. Baloo uses it's own database engine.
> >> 
> >> For the USE-flags:
> >> 
> >> app-office/akonadi-server postgresql qt4
> >> (all other USE-flags disabled)
> >> 
> >> --
> >> Joost
> >
> >Thank you very much Joost for holding my hand on this.  Last question
> >for the
> >day:  It seems that postgresql wants to install xemacs as a dependency
> >... o_O
> >
> >
> ># emerge -uaDv emerge dev-db/postgresql
> >
> >These are the packages that would be merged, in order:
> >
> >Calculating dependencies... done!
> >[ebuild  N ] app-eselect/eselect-postgresql-1.2.1::gentoo  4 KiB
> >[ebuild  N ] app-eselect/eselect-ctags-1.18::gentoo  9 KiB
> >[ebuild  N ] app-eselect/eselect-emacs-1.18::gentoo  0 KiB
> >[ebuild  N ] dev-db/postgresql-9.4.5-r1:9.4::gentoo  USE="ldap nls
> >pam
> >readline server ssl xml zlib -doc -kerberos (-libressl) -perl -
> >pg_legacytimestamp -python (-selinux) -static-libs -tcl -threads -uuid"
> >
> >LINGUAS="en -af -cs -de -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro
> >-ru -sk
> >-sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python2_7 -python3_4"
> >PYTHON_TARGETS="python2_7 python3_4" 17,248 KiB
> >[ebuild  N ] app-editors/xemacs-21.4.24::gentoo  USE="X berkdb gdbm
> >gif
> >gpm jpeg ldap png tiff -Xaw3d -athena -canna -dnd -eolconv -freewnn
> >-motif -
> >mule -nas -neXt -pop -postgres -xface -xim" 8,383 KiB
> >[ebuild  N ] app-xemacs/xemacs-base-2.27::gentoo  524 KiB
> >[ebuild  N ] app-xemacs/emerge-1.11::gentoo  60 KiB
> >
> >Total: 7 packages (7 new), Size of downloads: 26,225 KiB
> >
> >Would you like to merge these packages? [Yes/No]
> >
> >
> >Why is this?
> 
> No. You are trying to emerge 'emerge'.
> (Check the commandline :) )
> 
> --
> Joost


Oops!  Apologies for the noise.

Against my wife's advice (she knows better of course) I am trying to multi-
task a number of chores which have suddenly descended upon me ... I'll get on 
with completing the tax return first, before I return to Kmail2.

-- 
Regards,
Mick


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


[gentoo-user] Full system encryption on Gentoo

2015-12-29 Thread Hans

Hi,

Is it possible to fully encrypt a Gentoo system as can be done with 
Fedora, Suse, Arch Linux, Debian and Ubunto without using a unencrypted 
USB boot stick or unencrypted /boot partition?


If yes, where can I find instructions that really work on a BIOS only 
box without UEFI, EFI, systemd using EXT4 file system?


Hans




Re: [gentoo-user] major problem after samba update

2015-12-29 Thread covici
lee  wrote:

> cov...@ccs.covici.com writes:
> 
> > lee  wrote:
> >
> >> cov...@ccs.covici.com writes:
> >> 
> >> > lee  wrote:
> >> >
> >> >> cov...@ccs.covici.com writes:
> >> >> 
> >> >> > Hi.  I just upgraded from samba 4.1.x to 4.2.7 and in one of my 
> >> >> > shares,
> >> >> > I can not access any subfolders of that share.  It usually gives me 
> >> >> > some
> >> >> > kind of windows permission error, or just location not available.
> >> >> > Windows tells me I can't even display the advanced security settings 
> >> >> > for
> >> >> > any folder.  Anyone know what they did and how to fix?  There is a 
> >> >> > hard
> >> >> > blocker to downgrading, so maybe something is up.
> >> >> >
> >> >> > Thanks in advance for any suggestions.
> >> >> 
> >> >> Do they have a changelog which you looked at?  Can you mount these
> >> >> shares from a Linux client?
> >> >
> >> > These are on a Linux server, so there is no problem there.
> >> 
> >> Can you definitely mount the share from a remote Linux client without
> >> problems?
> >> 
> >> > Changelog doesn't say anything but the version number.
> >
> > I don't have any remote linux client and this is samba, used so that
> > windows can access the share.
> 
> You could make a copy of everything in the inaccessible share, make a
> new share with settings identical to the settings of the shares that are
> still accessible when copying has finished, and try to access the new
> share with a remote client.
> 
> If you can access the new share, either something with the old one is
> weird, or you have changed something like permissions or extended
> attributes by copying.
> 
> 
> If you cannot access the new share, try a different kernel version (or
> try a different kernel version first).  I've had a case in which a
> kernel would freeze/panic when the directory contents of a directory
> that was exported via NFS were displayed with ls on a NFS client.
> 
> IIRC samba uses kernel support on the server.  Perhaps you have a
> version mismatch between the new samba version and what the kernel
> supports.

The share is my whole system, so obviously I cannot copy to a new
share.  I have one share working correctly -- the files under that share
are owned by the user that I am logging in as, so if I log in as root,
you would think I could access everything, so this is very strange.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Re: Gcc 5.3

2015-12-29 Thread Neil Bothwick
On Tue, 29 Dec 2015 19:21:01 +0100, lee wrote:

> > As 4.9.3 is marked stable, I guess that's what'd you get per
> > default.  
> 
> 4.8.5
> 
> I'd have to run emerge --sync to know about more recent versions.  How
> is that supposed to be used, btw?  I only run that when I do want to
> update everything.  Now if I didn't want to update anything but gcc,
> could I run emerge --sync and install gcc 5.x without having trouble

Emerge --sync only updates the portage tree, so

emerge --sync
emerge -a sys-devel/gcc:5
 
> with anything else I might install before actually updating everything?
> So if I'd never explicitly update everything but run emerge --sync
> frequently, things would be updated over time, occasionally?

No, nothing would get updated. To do that you need to run emerge @world
after emerge --sync.

> > Stuff compiled with older gcc's should run with newer libgcc*[0], but
> > stuff compililed with a newer gcc might not run with the older
> > libgcc*. Same goes, with more problems IIRC, for libstdc++.
> > So beware of that. Apart from that? I'm not aware of problems.  
> 
> Uhm ... So I might break the system by switching between compiler
> versions?

That's highly unlikely as software that has been compiled with the old
compiler will still work. You may find that some programs fail to
recompile with the new compiler, but I didn't experience that with the
4.9>5 step, although I had some that would build with 4.8 but not 4.9.

I have an application which I would like to compile with gcc
> 5.x just to see if that's even possible.  I could switch, try it, and
> then switch back.

Exactly, run gcc-config, compile/emerge the program, run gcc-config again.

> > BTW: why is gcc not also handled via eselect? Even if that'd just
> > call gcc-config?  

There was a gcc eselect module but it was dropped in favour of gcc-config
as it didn't do what was needed of it. This is not unique to gcc, we also
have binutils-config. As to why no one has written an eselect wrapper for
either of these, I'd guess it's harder than it sounds or no one who can
do it feels the need.


-- 
Neil Bothwick

Windows Error #02: Multitasking attempted. System confused.


pgpPu15BfbPHb.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] radeon screen resolution

2015-12-29 Thread wabenbau
john  wrote:

> On Tue, 29 Dec 2015 11:05:12 +0200
> Alan McKinnon  wrote:
> 
> > On 29/12/2015 11:01, Mick wrote:
> > > On Tuesday 29 Dec 2015 02:00:33 waben...@gmail.com wrote:
> > >
> > >> There is a kernel option DRM_LOAD_EDID_FIRMWARE. It allows you to
> > >> specify an EDID data set instead of probing for it. If your
> > >> problem is caused by broken EDID data, this option maybe will
> > >> help you to run the monitor at its full resolution.
> > >>
> > >> --
> > >> Regards
> > >> wabe
> > >
> > > How would you know what to specify for EDID data, unless the
> > > monitor told you what it is?
> > >
> > 
> > or if the monitor manufacturer told you what it should be
> > 
> > /alanm
> > 
> 
> I have had a play with that but no success yet. I have followed the
> howto but no success yet but I think now I will have to find .bin file
> or settings from manufacturer.
> 
> Darn these gaming monitors!
> 
> Thanks
> 
> John

When you install x11-misc/read-edid you will get the programs get-edid 
and parse-edid. If you type

get-edid | parse-edid

you will get something like this:

===

256-byte EDID successfully retrieved from i2c bus 8
Looks like i2c was successful. Have a good day.
Checksum Correct

Section "Monitor"
Identifier "U32D970"
ModelName "U32D970"
VendorName "SAM"
# Monitor Manufactured week 20 of 2014
# EDID version 1.4
# Digital Display
DisplaySize 700 390
Gamma 2.20
Option "DPMS" "true"
Horizsync 30-134
VertRefresh 56-75
# Maximum pixel clock is 540MHz
#Not giving standard mode: 1152x864, 75Hz
#Not giving standard mode: 1280x800, 60Hz
#Not giving standard mode: 1280x720, 60Hz
#Not giving standard mode: 1280x1024, 60Hz
#Not giving standard mode: 1440x900, 60Hz
#Not giving standard mode: 1600x900, 60Hz
#Not giving standard mode: 1680x1050, 60Hz

#Extension block found. Parsing...
Modeline"Mode 2" 148.500 1920 2008 2052 2200 1080 1084 1089 
1125 +hsync +vsync
Modeline"Mode 0" +hsync -vsync 
Modeline"Mode 1" +hsync -vsync 
Modeline"Mode 3" +hsync +vsync 
Option "PreferredMode" "Mode 2"
EndSection

===

In former times it was possible to insert these informations into
/etc/X11/xorg.conf. But I'm not sure if this still works nowadays,
in particular the Modeline definition.

But maybe you can see if something is wrong with the EDID data of
your monitor.

I could also provide you the EDID data from my monitor. Maybe you
can use it with the DRM_LOAD_EDID_FIRMWARE kernel option. But this
is just an idea. I have no clue how to do this in detail. :-)

P.S.:
When you have only tried x11-drivers/xf86-video-ati then you should
also try x11-drivers/xf86-video-amdgpu. Maybe this driver works
better with your monitor. 

--
Regards
wabe




Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread J. Roeleveld
On Tuesday, December 29, 2015 07:43:07 PM Mick wrote:
> On Tuesday 29 Dec 2015 18:49:03 J. Roeleveld wrote:
> > On 29 December 2015 19:40:58 CET, Mick  wrote:

> > No. You are trying to emerge 'emerge'.
> > (Check the commandline :) )
> > 
> > --
> > Joost
> 
> Oops!  Apologies for the noise.
> 
> Against my wife's advice (she knows better of course) I am trying to multi-
> task a number of chores which have suddenly descended upon me ... I'll get
> on with completing the tax return first, before I return to Kmail2.

Hehe :)

Good luck with the tax return.

Multi-tasking is possible, as long as only 1 requires full attention at a 
time.

I usually prepare a simple script and start that before moving my attention to 
something else.

Most scripts are reusable at a later time.

--
Joost

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


Re: [gentoo-user] major problem after samba update

2015-12-29 Thread J. Roeleveld
On Tuesday, December 29, 2015 05:11:08 PM cov...@ccs.covici.com wrote:
> lee  wrote:
> > cov...@ccs.covici.com writes:
> > > lee  wrote:
> > >> cov...@ccs.covici.com writes:
> > >> > lee  wrote:
> > >> >> cov...@ccs.covici.com writes:
> > >> >> > Hi.  I just upgraded from samba 4.1.x to 4.2.7 and in one of my
> > >> >> > shares,
> > >> >> > I can not access any subfolders of that share.  It usually gives
> > >> >> > me some
> > >> >> > kind of windows permission error, or just location not available.
> > >> >> > Windows tells me I can't even display the advanced security
> > >> >> > settings for
> > >> >> > any folder.  Anyone know what they did and how to fix?  There is a
> > >> >> > hard
> > >> >> > blocker to downgrading, so maybe something is up.
> > >> >> > 
> > >> >> > Thanks in advance for any suggestions.
> > >> >> 
> > >> >> Do they have a changelog which you looked at?  Can you mount these
> > >> >> shares from a Linux client?
> > >> > 
> > >> > These are on a Linux server, so there is no problem there.
> > >> 
> > >> Can you definitely mount the share from a remote Linux client without
> > >> problems?
> > >> 
> > >> > Changelog doesn't say anything but the version number.
> > > 
> > > I don't have any remote linux client and this is samba, used so that
> > > windows can access the share.
> > 
> > You could make a copy of everything in the inaccessible share, make a
> > new share with settings identical to the settings of the shares that are
> > still accessible when copying has finished, and try to access the new
> > share with a remote client.
> > 
> > If you can access the new share, either something with the old one is
> > weird, or you have changed something like permissions or extended
> > attributes by copying.
> > 
> > 
> > If you cannot access the new share, try a different kernel version (or
> > try a different kernel version first).  I've had a case in which a
> > kernel would freeze/panic when the directory contents of a directory
> > that was exported via NFS were displayed with ls on a NFS client.
> > 
> > IIRC samba uses kernel support on the server.  Perhaps you have a
> > version mismatch between the new samba version and what the kernel
> > supports.
> 
> The share is my whole system, so obviously I cannot copy to a new
> share.  I have one share working correctly -- the files under that share
> are owned by the user that I am logging in as, so if I log in as root,
> you would think I could access everything, so this is very strange.

Not necessarily, samba doesn't allow root automatically access to everything.

--
Joost



Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread J. Roeleveld
On Tuesday, December 29, 2015 08:03:25 PM Mick wrote:
> On Tuesday 29 Dec 2015 17:37:25 lee wrote:
> > Are we at the point where users are accepting to have to install and
> > maintain a fully fledged RDBMS just for a single application which
> > doesn't even need a database in the first place?
> 
> Yes, a sad state of affairs indeed.  I was hoping for the last 5-6 years
> that someone  who can code would come to their senses with this application
> and agree that not all desktop application use cases require some
> enterprise level database back end architecture, when a few flat data files
> have served most users perfectly fine for years.  I mean, do I *really*
> need a database for less that 60 entries in my address book?!!

I'm no longer convinced a database isn't needed.
Kmail1 was slower than kmail2 is these days.

A mail client will need a database, either it's a collection of emails that 
need to be parsed everytime you open the mailbox or it's stored in a pre-
parsed format somewhere else.
Flatfiles are ok if the amount of data is small, but how do you organize the 
data?
What do you do if you find you need to add an extra field? Or need a larger 
text 
field to fit the values?

I have over 400 adresses in my addressbook and this is likely to grow.
I also have mailboxes with more than 10,000 messages each. With kmail1 I had 
to split these over multiple just to keep the performance acceptable.
With a database storing all the metadata, I no longer need to keep splitting 
the mailboxes.

> I can stick with Kmail-1 until circumstances force a change upon me, or I
> can try once more to migrate to it now (previous attempts failed for
> various reasons).  The only reason I am having a go at it again during my
> holidays, is because I don't want to have to try a forced migration in the
> middle of some other crisis during a working week.

Usually a good reason to do it during off-days.
The migration is a lot simpler if you have the emails already stored in an 
IMAP server.
I NEVER tried to "migrate" from kmail1 to kmail2. I wiped the entire kmail 
config and set kmail2 up with a clean slate.

> > Quite a few times I've been thinking it would be nice to have a database
> > to implement a particular feature for an application, and I've always
> > decided not to do it because it seems to be a totally unreasonable
> > requirement, and because it seems rather unlikely that any user would be
> > willing to do it.  It would make some sense if an RDBMS were a
> > requirement already, used by all kinds of software --- though I'm
> > finding it very questionable if we should go there (and find ourselves
> > with a single point of failure and bottleneck).
> 
> You are wise and evidently not affected by the EU project which funded all
> this semantic KDE desktop PoC exercise, that foisted the akonadi on us as if
> it was the best thing a desktop would ever need ... madness!

I don't use the semantic KDE stuff either, only the kdepim stuff.
I do see where it can be useful. But for that, I'd prefer it to be stored 
centrally to avoid every desktop and laptop to want to built it's own index.

> Perhaps this was Europe's response to the MSWindows desktop monopoly in the
> enterprise sector, but IMHO they started too late and ended up fighting the
> wars of the previous decade.

Perhaps, but it does mean that a Linux desktop is far easier to work with than 
what MS is doing with their desktops.

> > A MUA must be doing something very wrong to have such a requirement.
> > And what kind of performance can you expect with a laptop that has only
> > 4GB and is already overloaded with KDE?
> 
> I don't actually run the full KDE desktop.  I run e17 with some KDE apps,
> like Kmail.  Kmail has been and still is the best mail client for my needs
> and habits.

I do run the full KDE desktop.
It does run with 4GB, but it also depends what else you want to use it for.
I tested it not too long ago with 2GB in a VM accessing via VNC.

The biggest problem was the bandwidth requirement for VNC to make it look even 
half decent.

Problems start when you also want to start other applications, like libreoffice 
or firefox.

This is why I don't have anything with less than 8GB and all new 
desktop/laptops need to have at least 16GB to be considered usable.

I looked into 32GB laptops recently as my wife wants that. She decided against 
it when I showed her the prices and size of those.
Guess she needs to wait a little longer.

--
Joost

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


Re: [gentoo-user] major problem after samba update

2015-12-29 Thread covici
J. Roeleveld  wrote:

> On Tuesday, December 29, 2015 05:11:08 PM cov...@ccs.covici.com wrote:
> > lee  wrote:
> > > cov...@ccs.covici.com writes:
> > > > lee  wrote:
> > > >> cov...@ccs.covici.com writes:
> > > >> > lee  wrote:
> > > >> >> cov...@ccs.covici.com writes:
> > > >> >> > Hi.  I just upgraded from samba 4.1.x to 4.2.7 and in one of my
> > > >> >> > shares,
> > > >> >> > I can not access any subfolders of that share.  It usually gives
> > > >> >> > me some
> > > >> >> > kind of windows permission error, or just location not available.
> > > >> >> > Windows tells me I can't even display the advanced security
> > > >> >> > settings for
> > > >> >> > any folder.  Anyone know what they did and how to fix?  There is a
> > > >> >> > hard
> > > >> >> > blocker to downgrading, so maybe something is up.
> > > >> >> > 
> > > >> >> > Thanks in advance for any suggestions.
> > > >> >> 
> > > >> >> Do they have a changelog which you looked at?  Can you mount these
> > > >> >> shares from a Linux client?
> > > >> > 
> > > >> > These are on a Linux server, so there is no problem there.
> > > >> 
> > > >> Can you definitely mount the share from a remote Linux client without
> > > >> problems?
> > > >> 
> > > >> > Changelog doesn't say anything but the version number.
> > > > 
> > > > I don't have any remote linux client and this is samba, used so that
> > > > windows can access the share.
> > > 
> > > You could make a copy of everything in the inaccessible share, make a
> > > new share with settings identical to the settings of the shares that are
> > > still accessible when copying has finished, and try to access the new
> > > share with a remote client.
> > > 
> > > If you can access the new share, either something with the old one is
> > > weird, or you have changed something like permissions or extended
> > > attributes by copying.
> > > 
> > > 
> > > If you cannot access the new share, try a different kernel version (or
> > > try a different kernel version first).  I've had a case in which a
> > > kernel would freeze/panic when the directory contents of a directory
> > > that was exported via NFS were displayed with ls on a NFS client.
> > > 
> > > IIRC samba uses kernel support on the server.  Perhaps you have a
> > > version mismatch between the new samba version and what the kernel
> > > supports.
> > 
> > The share is my whole system, so obviously I cannot copy to a new
> > share.  I have one share working correctly -- the files under that share
> > are owned by the user that I am logging in as, so if I log in as root,
> > you would think I could access everything, so this is very strange.
> 
> Not necessarily, samba doesn't allow root automatically access to everything.

OK, thanks, what are the conditions for that, or where can I find them
out?  

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] radeon screen resolution

2015-12-29 Thread Mick
On Tuesday 29 Dec 2015 02:00:33 waben...@gmail.com wrote:

> There is a kernel option DRM_LOAD_EDID_FIRMWARE. It allows you to
> specify an EDID data set instead of probing for it. If your problem
> is caused by broken EDID data, this option maybe will help you to run
> the monitor at its full resolution.
> 
> --
> Regards
> wabe

How would you know what to specify for EDID data, unless the monitor told you 
what it is?

-- 
Regards,
Mick


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


Re: [gentoo-user] radeon screen resolution

2015-12-29 Thread Mick
On Tuesday 29 Dec 2015 02:02:52 waben...@gmail.com wrote:
> Mick  wrote:
> > On Monday 28 Dec 2015 21:05:56 john wrote:
> > > Hmm,
> > > thanks, I have now tried an old monitor and its screen
> > > resolution was good (ie 1920x1080) so I think it's the monitor.
> > > I have a R9 280 radeon card which is pretty new but the monitor is
> > > very new (display port only, acer xb240h model) so I guess it's
> > > something do do with that, perhaps EDID but not really sure. The
> > > whole graphics stack is pretty bemusing and I would love to make
> > > sense of it all.
> > 
> > Have a look here for setting up your card:
> > 
> > https://wiki.gentoo.org/wiki/Amdgpu
> > 
> > 
> > and here for setting up the driver
> > 'x11-drivers/xf86-video-displaylink' to get your DP going:
> > 
> > https://wiki.gentoo.org/wiki/DisplayLink
> 
> I don't think that this is necessary. The Acer XB240H doesn't have a
> DisplayLink connector. It has a DisplyPort connector and for this you
> don't need a special driver.
> 
> IIRC you also don't need a special kernel option to use DisplayPort.
> 
> --
> Regards
> wabe

I beg your pardon! It was getting late and I got DisplayLink and DisplayPort 
mixed up.  What Wabe says stands. 
-- 
Regards,
Mick


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


Re: [gentoo-user] radeon screen resolution

2015-12-29 Thread Alan McKinnon

On 29/12/2015 11:01, Mick wrote:

On Tuesday 29 Dec 2015 02:00:33 waben...@gmail.com wrote:


There is a kernel option DRM_LOAD_EDID_FIRMWARE. It allows you to
specify an EDID data set instead of probing for it. If your problem
is caused by broken EDID data, this option maybe will help you to run
the monitor at its full resolution.

--
Regards
wabe


How would you know what to specify for EDID data, unless the monitor told you
what it is?



or if the monitor manufacturer told you what it should be

/alanm



Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread J. Roeleveld
On Tuesday, December 29, 2015 01:16:08 PM Mick wrote:
> On Tuesday 29 Dec 2015 12:39:18 J. Roeleveld wrote:
> > On Tuesday, December 29, 2015 10:51:57 AM Mick wrote:
> > > On Tuesday 29 Dec 2015 10:20:23 J. Roeleveld wrote:
> > > > On Tuesday, December 29, 2015 09:53:24 AM Mick wrote:
> > > This is good to know.  An earlier akonadi bug would actually delete
> > > files
> > > on the server.  O_O
> > 
> > Hmm... must have missed that one...
> > Are you sure that also affected IMAP connections?
> 
> Yes, I remember reading about some bug between akonadi and mysql.  akonadi
> would push its corruption to the IMAP4 server, deleting a tonne of messages.
> 
> I also remember a Mr A McKinnon having a well earned rant on this same M/L
> when he was trying out Kmail2, quite likely still in ~arch at the time.

I never used a ~arch kmail.
Only use that for a very small set of applications.
Office-like applications are not in that set.


> > > I take this to mean that the Kmail interface does not freeze up and you
> > > can continue to read/delete messages, change folders, etc.?
> > 
> > Yes, with only the following comment: When moving large (1000+) amounts of
> > messages to a different folder, let the interface show it as finished
> > before doing something else with KMail.
> 
> Cool, so as long I delete a few messages at a time, it should be OK.

Then you shouldn't notice anything.
You do get a status update in the bottom bar indicating how much it wants to 
do in total and how many it did.
It's quite quick on my laptop.

> > > Thank you Joost, this is very useful to know.  What do you mean by
> > > "haven't had to restart the mail cache"?  Do you mean you did not have
> > > to delete the akonadi database(s) and restart it?
> > 
> > Yes, restarting the mail cache is: delete everything and start over
> > 
> > Don't forget, akonadi-storage has 2 parts:
> > 1) The database (mysql or postgresql)
> > 2) Files
> > 
> > The 2 are linked and need to be kept in sync.
> > This is important for backups and cleanup.
> 
> Yes, there are a number of files and databases in my current setup (Kmail1
> with sqlite3) under .local/share/ including akonadi, baloo, et al.

sqlite is nice, for single threaded applications.
For anything more advanced, either a wrapper is required or something more 
advanced needs to be used.

--
Joost


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


[gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread Mick
I am thinking of migrating my laptop from Kmail1 to Kmail2.  I don't *really* 
have to do this yet, but I'd rather attempt one more time to move to Kmail2 
while not under duress, because bitrot or maintainers decisions may force my 
hand sooner or later anyway.

I have made half a dozen attempts over the years, most with very poor results.  
Thankfully I was not hit by the bug that deleted most of Alan's emails, at the 
early days of KDEPIM4.  However, my experiences can be summarised as follows:

1. Attempts to migrate my old emails to Kmail2 ended up never completing 
satisfactorily.  Duplicate emails, not syncing Sent messages, etc. were some 
of the symptoms.  I blamed the hardware at the time, which was a really 
anaemic old 32bit laptop.  At least one account (Gmail) was POP3 and I wanted 
to keep it this way.  It never really worked properly, duplicating messages 
and multiplying them every time I deleted one of the duplicate messages.  In a 
couple of days the installation was unusable.  I rinsed and repeated from 
backups, with the same unsatisfactory results.  I deleted all accounts and 
recreated them afresh (rather than migrating the existing messages on the 
disk) but this was plagued by the same problems.  Eventually I gave up and 
went back to Kmail1. 

2. A couple of years later, I had another go with Kmail2, but this time I 
decided to use IMAP4, on an Acer with a dual core chip and 4GB RAM.  
Thankfully, there were no dupes, no mail corruption, or loss.  I ended up 
blaming a poor implementation of POP3 or Gmail for previous problems.  
However, with my large number of messages, it would still take for ever to 
sync folders (Gmail labels).  Email accounts with less than 1,000 messages did 
not seem to have a problem syncing withing a reasonable time.  I had a couple 
of akonadi/mysql corruptions too.  On a laptop the concept of having to wait 
in excess of an hour for your Gmail Inbox to sync with the server is not a 
practical proposition.  However, leaving it overnight to sync everything 
usually would result in a working mail client.  I say usually, because 
occasionally mysql would peg one CPU core to 100% and kmail would freeze for 
anything up to 40 minutes at a time.  The whole interface would freeze 
whenever it was syncing a folder.

3. I set up Kmail2 on an old 32bit desktop for my wife.  Kmail2 was similarly 
unresponsive while syncing folders and while akonadi was doing its indexing on 
mysql.  I reverted it back to Kmail1.

4. I set up Kmail2 on a modern desktop (quad-core with 16GB RAM) for my wife's 
multiple email accounts, all with less than 1,000 messages.  Over the period 
of a year she experienced a couple of akonadi/mysql corruptions, from which 
her installation recovered fully, after I removed the akonadi databases and 
let it recreate them.  Kmail2 is being used daily without her reporting any 
other problems with it.


So I decided to delete a lot of old messages to slim my Gmail down and have 
another go with Kmail2.  However, I am still unsure from my experimentation if 
the intermittent nature of a network connection of a laptop will cause any 
problems with Kmail2 and its akonadi architecture.

Have you been able to use Kmail2 reliably on a *laptop*?  What problems have 
you experienced?  Has intermittent network availability caused loss of 
messages?  Any gotchas and workarounds?  Any suggestions?

-- 
Regards,
Mick


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


Re: [gentoo-user] radeon screen resolution

2015-12-29 Thread john
On Tue, 29 Dec 2015 11:05:12 +0200
Alan McKinnon  wrote:

> On 29/12/2015 11:01, Mick wrote:
> > On Tuesday 29 Dec 2015 02:00:33 waben...@gmail.com wrote:
> >
> >> There is a kernel option DRM_LOAD_EDID_FIRMWARE. It allows you to
> >> specify an EDID data set instead of probing for it. If your problem
> >> is caused by broken EDID data, this option maybe will help you to
> >> run the monitor at its full resolution.
> >>
> >> --
> >> Regards
> >> wabe
> >
> > How would you know what to specify for EDID data, unless the
> > monitor told you what it is?
> >
> 
> or if the monitor manufacturer told you what it should be
> 
> /alanm
> 

I have had a play with that but no success yet. I have followed the
howto but no success yet but I think now I will have to find .bin file
or settings from manufacturer.

Darn these gaming monitors!

Thanks

John



Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread Mick
On Tuesday 29 Dec 2015 12:39:18 J. Roeleveld wrote:
> On Tuesday, December 29, 2015 10:51:57 AM Mick wrote:
> > On Tuesday 29 Dec 2015 10:20:23 J. Roeleveld wrote:
> > > On Tuesday, December 29, 2015 09:53:24 AM Mick wrote:

> > This is good to know.  An earlier akonadi bug would actually delete files
> > on the server.  O_O
> 
> Hmm... must have missed that one...
> Are you sure that also affected IMAP connections?

Yes, I remember reading about some bug between akonadi and mysql.  akonadi 
would push its corruption to the IMAP4 server, deleting a tonne of messages.

I also remember a Mr A McKinnon having a well earned rant on this same M/L 
when he was trying out Kmail2, quite likely still in ~arch at the time.


> > I take this to mean that the Kmail interface does not freeze up and you
> > can continue to read/delete messages, change folders, etc.?
> 
> Yes, with only the following comment: When moving large (1000+) amounts of
> messages to a different folder, let the interface show it as finished
> before doing something else with KMail.

Cool, so as long I delete a few messages at a time, it should be OK.


> > Thank you Joost, this is very useful to know.  What do you mean by
> > "haven't had to restart the mail cache"?  Do you mean you did not have
> > to delete the akonadi database(s) and restart it?
> 
> Yes, restarting the mail cache is: delete everything and start over
> 
> Don't forget, akonadi-storage has 2 parts:
> 1) The database (mysql or postgresql)
> 2) Files
> 
> The 2 are linked and need to be kept in sync.
> This is important for backups and cleanup.

Yes, there are a number of files and databases in my current setup (Kmail1 
with sqlite3) under .local/share/ including akonadi, baloo, et al.

-- 
Regards,
Mick


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


Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread J. Roeleveld
On Tuesday, December 29, 2015 09:53:24 AM Mick wrote:

> Have you been able to use Kmail2 reliably on a *laptop*?  What problems have
> you experienced?  Has intermittent network availability caused loss of
> messages?  Any gotchas and workarounds?  Any suggestions?


I have been using Kmail2 for a couple of years now (ever since it became 
stable in portage)
I had some issues over this time as well, but as I had already switched over 
to IMAP over 10 years ago, I never actually lost any emails and could easily 
fix this by deleting the local file-cache and database.

Currently I run it on my laptop (quad-core, 16GB ram, SSD) succesfully.
Here is how I set it up:
1) Run Postgresql
2) I run the DB "natively" (eg. do NOT let akonadi start an "embedded" db)
3) Configure mail accounts (including GMail) as IMAP
4) Configure mail accounts to keep a copy locally

Apart from a lengthy synchronize period (I do have emails dating back to 1997 
on the server) and occasionally a process going up to 100%, it doesn't prevent 
me from actually using the laptop for other things.

As I take it along to customers as well, I am dependent on their WIFI systems. 
These are not the best, eg. I have experienced networking issues a lot. Not 
lost any messages and haven't had to restart the mail cache for a year now. 
(Since I switched away from embedded Mysql to "native" Postgresql)

--
Joost

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


Re: [gentoo-user] major problem after samba update

2015-12-29 Thread covici
lee  wrote:

> cov...@ccs.covici.com writes:
> 
> > lee  wrote:
> >
> >> cov...@ccs.covici.com writes:
> >> 
> >> > Hi.  I just upgraded from samba 4.1.x to 4.2.7 and in one of my shares,
> >> > I can not access any subfolders of that share.  It usually gives me some
> >> > kind of windows permission error, or just location not available.
> >> > Windows tells me I can't even display the advanced security settings for
> >> > any folder.  Anyone know what they did and how to fix?  There is a hard
> >> > blocker to downgrading, so maybe something is up.
> >> >
> >> > Thanks in advance for any suggestions.
> >> 
> >> Do they have a changelog which you looked at?  Can you mount these
> >> shares from a Linux client?
> >
> > These are on a Linux server, so there is no problem there.
> 
> Can you definitely mount the share from a remote Linux client without
> problems?
> 
> > Changelog doesn't say anything but the version number.

I don't have any remote linux client and this is samba, used so that
windows can access the share.


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Re: Gcc 5.3

2015-12-29 Thread David Haller
Hello,

On Tue, 29 Dec 2015, lee wrote:
>Andrew Savchenko  writes:
>> There will be no 5.3.1 likely. Numeration scheme is changed from 5.x
>> series: what was middle version is now major, what was minor is now
>> middle. So 5.3 is a patch version of 5.0 the same as 4.9.3 is a
>> patch version of 4.9.0.
>
>What do you currently get as default when you update, and can you easily
>go back to a previous version, or have several versions installed and
>switch between them?

I'd guess 4.9.3. And yes and yes.

# eix sys-devel/gcc
[I] sys-devel/gcc
 Available versions:  
 (2.95.3) ~2.95.3-r10^s
 (3.3.6) (~)3.3.6-r1^s
 (3.4.6) 3.4.6-r2^s
 (4.0.4) **4.0.4^s
 (4.1.2) 4.1.2^s
 (4.2.4) (~)4.2.4-r1^s
 (4.3.6) 4.3.6-r1^s
 (4.4.7) 4.4.7^s
 (4.5.4) 4.5.4^s
 (4.6.4) 4.6.4^s
 (4.7)  4.7.4^s
 (4.8)  (~)4.8.0^s (~)4.8.1-r1^s (~)4.8.2^s 4.8.3^s 4.8.4^s 4.8.5^s
 (4.9)  ~*4.9.0^s ~*4.9.1^s (~)4.9.2^s 4.9.3^s{tbz2}
 (5)**5.1.0^s **5.2.0^s (~)5.3.0^s{tbz2}
[..]
 Installed versions:  4.9.3(4.9)^s{tbz2}[..]
  5.3.0(5)^s{tbz2}[..]
[..]

# gcc-config -l
 [1] x86_64-pc-linux-gnu-4.9.3 *
 [2] x86_64-pc-linux-gnu-5.3.0

Basically, you can install one of each slot, i.e. the first column in
() of the eix output. From (2.95.3) to (5). And switch as you like.

As 4.9.3 is marked stable, I guess that's what'd you get per default.

Stuff compiled with older gcc's should run with newer libgcc*[0], but
stuff compililed with a newer gcc might not run with the older
libgcc*. Same goes, with more problems IIRC, for libstdc++.
So beware of that. Apart from that? I'm not aware of problems.

BTW: why is gcc not also handled via eselect? Even if that'd just
call gcc-config?

HTH,
-dnh

[0] e.g. old Loki games, probably compiled with 2.95.x or even older
still run fine on a system built with gcc-4.6

-- 
Unsubscribing from a mailing list you subscribed to is a basic IQ
test for Internet users.
-- Author unknown, seen on the PCR-1000 list



Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread Mick
On Tuesday 29 Dec 2015 10:20:23 J. Roeleveld wrote:
> On Tuesday, December 29, 2015 09:53:24 AM Mick wrote:
> > Have you been able to use Kmail2 reliably on a *laptop*?  What problems
> > have you experienced?  Has intermittent network availability caused loss
> > of messages?  Any gotchas and workarounds?  Any suggestions?
> 
> I have been using Kmail2 for a couple of years now (ever since it became
> stable in portage)
> I had some issues over this time as well, but as I had already switched
> over to IMAP over 10 years ago, I never actually lost any emails and could
> easily fix this by deleting the local file-cache and database.

This is good to know.  An earlier akonadi bug would actually delete files on 
the server.  O_O


> Currently I run it on my laptop (quad-core, 16GB ram, SSD) succesfully.

Hmm ... my laptop is also quad-core, but has only 4G RAM.  I hope this is not 
going to be a problem.


> Here is how I set it up:
> 1) Run Postgresql
> 2) I run the DB "natively" (eg. do NOT let akonadi start an "embedded" db)
> 3) Configure mail accounts (including GMail) as IMAP
> 4) Configure mail accounts to keep a copy locally
> 
> Apart from a lengthy synchronize period (I do have emails dating back to
> 1997 on the server) and occasionally a process going up to 100%, it
> doesn't prevent me from actually using the laptop for other things.

I take this to mean that the Kmail interface does not freeze up and you can 
continue to read/delete messages, change folders, etc.?


> As I take it along to customers as well, I am dependent on their WIFI
> systems. These are not the best, eg. I have experienced networking issues
> a lot. Not lost any messages and haven't had to restart the mail cache for
> a year now. (Since I switched away from embedded Mysql to "native"
> Postgresql)
> 
> --
> Joost

Thank you Joost, this is very useful to know.  What do you mean by "haven't 
had to restart the mail cache"?  Do you mean you did not have to delete the 
akonadi database(s) and restart it?

-- 
Regards,
Mick


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


Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread J. Roeleveld
On Tuesday, December 29, 2015 10:51:57 AM Mick wrote:
> On Tuesday 29 Dec 2015 10:20:23 J. Roeleveld wrote:
> > On Tuesday, December 29, 2015 09:53:24 AM Mick wrote:
> > > Have you been able to use Kmail2 reliably on a *laptop*?  What problems
> > > have you experienced?  Has intermittent network availability caused loss
> > > of messages?  Any gotchas and workarounds?  Any suggestions?
> > 
> > I have been using Kmail2 for a couple of years now (ever since it became
> > stable in portage)
> > I had some issues over this time as well, but as I had already switched
> > over to IMAP over 10 years ago, I never actually lost any emails and could
> > easily fix this by deleting the local file-cache and database.
> 
> This is good to know.  An earlier akonadi bug would actually delete files on
> the server.  O_O

Hmm... must have missed that one...
Are you sure that also affected IMAP connections?

> > Currently I run it on my laptop (quad-core, 16GB ram, SSD) succesfully.
> 
> Hmm ... my laptop is also quad-core, but has only 4G RAM.  I hope this is
> not going to be a problem.

4GB?
Not sure, it's lower then my desktop:
quad-core, 8GB, spinning rust

The desktop also manages to run it all.

Personally, I wouldn't use a system with less than 8GB anymore. I only settled 
for 16GB for my laptop as the 32GB versions were too bulky and expensive.
(Mind you, I do run VMs on this laptop)

% free -m
  totalusedfree  shared  buff/cache   available
Mem:  160101333 737 414   13939   
14157
Swap: 17407 196   17211

% uptime
 13:38:21 up 5 days, 22:07,  3 users,  load average: 0.23, 0.23, 0.41

(I tend to hibernate/suspend-to-disk my laptop when not using it)

> > Here is how I set it up:
> > 1) Run Postgresql
> > 2) I run the DB "natively" (eg. do NOT let akonadi start an "embedded" db)
> > 3) Configure mail accounts (including GMail) as IMAP
> > 4) Configure mail accounts to keep a copy locally
> > 
> > Apart from a lengthy synchronize period (I do have emails dating back to
> > 1997 on the server) and occasionally a process going up to 100%, it
> > doesn't prevent me from actually using the laptop for other things.
> 
> I take this to mean that the Kmail interface does not freeze up and you can
> continue to read/delete messages, change folders, etc.?

Yes, with only the following comment: When moving large (1000+) amounts of 
messages to a different folder, let the interface show it as finished before 
doing something else with KMail.

> Thank you Joost, this is very useful to know.  What do you mean by "haven't
> had to restart the mail cache"?  Do you mean you did not have to delete the
> akonadi database(s) and restart it?

Yes, restarting the mail cache is: delete everything and start over

Don't forget, akonadi-storage has 2 parts:
1) The database (mysql or postgresql)
2) Files

The 2 are linked and need to be kept in sync.
This is important for backups and cleanup.

In this respect, it's similar to other applications that work with databases 
and files, like Gallery (2 and 3), Piwigo, some large BI applications made by 
large corporations,

--
Joost

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


Re: [gentoo-user] major problem after samba update

2015-12-29 Thread lee
cov...@ccs.covici.com writes:

> lee  wrote:
>
>> cov...@ccs.covici.com writes:
>> 
>> > Hi.  I just upgraded from samba 4.1.x to 4.2.7 and in one of my shares,
>> > I can not access any subfolders of that share.  It usually gives me some
>> > kind of windows permission error, or just location not available.
>> > Windows tells me I can't even display the advanced security settings for
>> > any folder.  Anyone know what they did and how to fix?  There is a hard
>> > blocker to downgrading, so maybe something is up.
>> >
>> > Thanks in advance for any suggestions.
>> 
>> Do they have a changelog which you looked at?  Can you mount these
>> shares from a Linux client?
>
> These are on a Linux server, so there is no problem there.

Can you definitely mount the share from a remote Linux client without
problems?

> Changelog doesn't say anything but the version number.

They have lots of changelogs which say more than that:
https://www.samba.org/samba/history/



Re: [gentoo-user] IPTABLES

2015-12-29 Thread lee
"siefke_lis...@web.de"  writes:

> Hello,
>
> i try to run iptables, block bad ips and close the system. 
>
> I want run firewall which block all INPUT, only ALLOW services i defined.
> Ipset want to use to block spam ips, make it sure awesome as ever set rules 
> manuell.

After reading a good iptables tutorial, you may want to take a look at
shorewall and it's documentation.

If you're referring to IP addresses from which you receive emails that
are spam, I'd recommend getting familiar with exim and perhaps
spamassassin.  For extreme cases, you might want to use something like
fail2ban.



Re: [gentoo-user] Re: Gcc 5.3

2015-12-29 Thread lee
Andrew Savchenko  writes:

> On Fri, 25 Dec 2015 12:40:48 -0800 walt wrote:
>> On Thu, 24 Dec 2015 10:18:27 -0500
>> Alan Grimes  wrote:
>> 
>> > Hey, thanks for putting out gcc 5.3...
>> > 
>> > Unfortunately, it fails to bootstrap on my machine. I am getting
>> > differences between the stage 2 and stage 3 compilers and it's
>> > dying... =(
>> 
>> I'm waiting for 5.3.1 before I even try to install it on my main
>> desktop machine.
>
> There will be no 5.3.1 likely. Numeration scheme is changed from 5.x
> series: what was middle version is now major, what was minor is now
> middle. So 5.3 is a patch version of 5.0 the same as 4.9.3 is a
> patch version of 4.9.0.

What do you currently get as default when you update, and can you easily
go back to a previous version, or have several versions installed and
switch between them?



Re: [gentoo-user] Maybe bug? (glibc related?)

2015-12-29 Thread lee
Elias Diem  writes:

> Hi
>
> I just got the following while running Vim's testsuite.
>
> 
> *** buffer overflow detected ***: vim terminated; report to 
> 
> Makefile:151: recipe for target 'af.ck' failed
> make[2]: *** [af.ck] Killed
> 
>
> The compiler gave me the following warning.
>
> [...]
> /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk 
> will always overflow destination buffer
>return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
>
> [...]
>
> Should I file a bug?

The test was successful because the buffer overflow was detected?