Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Matti Nykyri
> On Mar 22, 2015, at 8:32, German  wrote:
> 
> 
> /sbin/poweroff says "Must be a superuser" :(

Did you read any of the previous messages? They told you that you have to have 
consolekit and polkit installed and configured for this to work! Also the use 
of sudo is another choice.

If you want every user to be able to shutdown just run this command:

chmod 6755 /sbin/poweroff

-- 
-Matti


Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread German
On Sat, 21 Mar 2015 18:51:58 -0400
Fernando Rodriguez  wrote:

> On Saturday, March 21, 2015 4:58:42 PM German wrote:
> > On Sat, 21 Mar 2015 16:32:25 -0400
> > Philip Webb  wrote:
> > 
> > > 150321 German wrote:
> > > > If I run poweroff from root, the system shuts down.
> > > > When I run poweroff from user -- command not found.
> > > > How to shut down the system from user ?
> > > 
> > > I'ld say "Don't" : it's contrary to the principles of Unix,
> > > which separate the roles of sysadmin (root) from those of ordinary users.
> > > 
> > > To shut down, I first exit Fluxbox via its menu,
> > > then 'su' + root password, then alias 'down' = 'shutdown -h now'.
> > > That observes the proper roles + ceremonies (smile).
> > 
> > Interesting. But as I said ealier, I can reboot the system when I am a user 
> by Ctrl+Alt+Delete. The user can reboot the system, but can't shut down? 
> Strange
> > > 
> 
> Either /sbin/poweroff or /usr/sbin/poweroff will do it from a local session 
> (if 
> there's no other users logged in locally).

/sbin/poweroff says "Must be a superuser" :(
> 
> Like I said, /sbin is only on the search path for root by default on gentoo.
> 
> -- 
> Fernando Rodriguez
> 


-- 
German 



Re: [gentoo-user] Mutt emerge USE flags for novice

2015-03-21 Thread German
On Sat, 21 Mar 2015 17:28:37 -0700
Lee  wrote:

> When I have a moment I'll send my Gmail enabled muttrc for u to ponder.
> Imap with Gmail on mutt is seamless ime.

Thanks, I'll be waiting for your .muttrc

> On Mar 21, 2015 3:42 PM, "Julian Simioni"  wrote:
> 
> > I don't currently use Mutt with Gmail, but one common suggestion is to
> > use an external program like offlineimap for handling syncing. I
> > remember hearing that Mutt's IMAP support is not the best.
> >
> > The guide I followed to get set up initially is Steve Losh's The Homely
> > Mutt, it's really quite good.
> >
> > http://stevelosh.com/blog/2012/10/the-homely-mutt/
> >
> > Julian
> >
> > On 03/21, German wrote:
> > > I am about to emerge Mutt and wanted to ask community what are the
> > optimal USE flags for novice. I am going to use it with gmail. I am about
> > to emerge it with the following USE flags: berkdb, crypt, gdbm, nls, ssl,
> > gpg, imap, mbox, pop, sasl, sidebar, smtp. If anyone feel I should add or
> > remove something from USE, feel free to tell me. Thanks!
> > >
> > > --
> > > German 
> > >
> >


-- 
German 



[gentoo-user] Re: blockage

2015-03-21 Thread Jonathan Callen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 2015-03-21 23:24, lee wrote:
> Hi,
> 
> when trying to update with 'emerge -j 8 -a --update --deep 
> --with-bdeps=y @world' after 'emerge --sync', I'm getting the
> following message:
> 
> 
> * Error: The above package list contains packages which cannot be *
> installed at the same time on the same system.
> 
> (sys-process/procps-3.3.9-r2:0/0::gentoo, installed) pulled in by 
> sys-process/procps required by @system
> 
> (sys-apps/util-linux-2.25.2-r2:0/0::gentoo, ebuild scheduled for
> merge) pulled in by
>> =sys-apps/util-linux-2.24.1-r3[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
>> (>=sys-apps/util-linux-2.24.1-r3[abi_x86_64
> (-)]) required by (x11-libs/libSM-1.2.2-r1:0/0::gentoo, installed) 
> sys-apps/util-linux required by (app-text/xmlto-0.0.26:0/0::gentoo,
> installed) sys-apps/util-linux required by
> (app-text/build-docbook-catalog-1.19.1:0/0::gentoo, installed) 
> sys-apps/util-linux[static-libs?] (sys-apps/util-linux) required by
> (sys-fs/zfs-:0/0::gentoo, installed)
>> =sys-apps/util-linux-2.20 required by
>> (sys-fs/udev-216:0/0::gentoo, installed) 
>> =sys-apps/util-linux-2.16 required by
>> (sys-fs/e2fsprogs-1.42.12:0/0::gentoo, installed) 
>> =sys-apps/util-linux-2.16 required by
>> (dev-libs/apr-1.5.0-r2:1/1::gentoo, installed)
> sys-apps/util-linux required by @system sys-apps/util-linux
> required by (net-fs/nfs-utils-1.3.1-r5:0/0::gentoo, installed) 
> sys-apps/util-linux required by
> (app-emulation/lxc-1.0.7:0/0::gentoo, installed)
> 
> (sys-apps/sysvinit-2.88-r4:0/0::gentoo, ebuild scheduled for merge)
> pulled in by
>> =sys-apps/sysvinit-2.86-r6 required by
>> (sys-apps/openrc-0.13.11:0/0::gentoo, installed)
> <=sys-apps/sysvinit-2.88-r4 required by
> (sys-power/apcupsd-3.14.8-r2:0/0::gentoo, installed)
> 
> 
> I don't understand this message.  What is blocked by what and why,
> and what am I supposed to do?
> 
> 

- From what I can see, it appears that the problem may be that you need
one of the following packages installed for sys-power/apcupsd:

  >=sys-apps/util-linux-2.23[tty-helpers]
  <=sys-apps/sysvinit-2.88-r4

You probably currently have an older version of sysvinit installed,
which satisfies that dependency.  Portage wants to upgrade you to the
latest version of sysvinit, but you don't have a new-enough util-linux
installed with USE=tty-helpers, and you didn't tell portage it was
allowed to set that flag, so it doesn't know what you want to do about
the issue.

The easiest solution is probably to add "sys-apps/util-linux
tty-helpers" to your /etc/portage/package.use.

- -- 
Jonathan Callen
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBCgAGBQJVDlFhAAoJEEIQbvYRB3mgvWQP/0mz5t2BHE/nIsLYUX8Yxhdo
/bLrNM+WbArsHfTDMn7jmh/ynmvcZ0oeWDHd1zqgx8ICf+10wreZOlgkhhmLFrl1
ZYzDP5gmWyY6NtYfDOu8az59riTMJBGFkmStCp3jlpFjH7yaYipOHx04gt2Ccs55
ZHxEaojV1vgtJxX4W3Ed8sMIbsPyBZ0BrmV89pigedOu5IF5C1FnW+us4ETGmAsc
RztPqv3oDUVvyvyco8yi21vrMYrLhI+uo5EDJ9/zGjJJ8xfIpBOFhp1HjDx5j6Q3
eKvCAjfaxuwp0E1vMEPp0vZxe7m8QWCQFtaErZvxOSUKuzq4+4JTBTlsS7JUs3Pt
d4/cHXwrQY1Er2MtF7/alcFv6LH8QeXK1wK29v2cC7zDNmVyeIRzdp1OdgnukWMb
huBzLgs3tQm1fGDL9mxOshaE+eHUPYgqvzpRUgVRIgNQ6tx1/vi6bb/OuR0hPHr6
TNJbXRlI6V6Iv+1vvBnZvy18ndVKnEL+D2x2KfkRuY5m9lQua+KU/fwAbUhV++k5
5LE6YUGEP2tLrUYzp65pMA2lo4Td+JzvG2H+yfFepn+6A8XMePXqaP6W4mDtdZC6
JgcfoMjLz0bUXUN5itLFthObMJZUhEoqnKs5wx/P8vKPUqhHW244GJSNz5/dUkEg
0n6twqA8q4JGSfakcEfe
=I93s
-END PGP SIGNATURE-



[gentoo-user] blockage

2015-03-21 Thread lee
Hi,

when trying to update with 'emerge -j 8 -a --update --deep
--with-bdeps=y @world' after 'emerge --sync', I'm getting the following
message:


 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-process/procps-3.3.9-r2:0/0::gentoo, installed) pulled in by
sys-process/procps required by @system

  (sys-apps/util-linux-2.25.2-r2:0/0::gentoo, ebuild scheduled for merge) 
pulled in by

>=sys-apps/util-linux-2.24.1-r3[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
 (>=sys-apps/util-linux-2.24.1-r3[abi_x86_64
(-)]) required by (x11-libs/libSM-1.2.2-r1:0/0::gentoo, installed)
sys-apps/util-linux required by (app-text/xmlto-0.0.26:0/0::gentoo, 
installed)
sys-apps/util-linux required by 
(app-text/build-docbook-catalog-1.19.1:0/0::gentoo, installed)
sys-apps/util-linux[static-libs?] (sys-apps/util-linux) required by 
(sys-fs/zfs-:0/0::gentoo, installed)
>=sys-apps/util-linux-2.20 required by (sys-fs/udev-216:0/0::gentoo, 
installed)
>=sys-apps/util-linux-2.16 required by 
(sys-fs/e2fsprogs-1.42.12:0/0::gentoo, installed)
>=sys-apps/util-linux-2.16 required by (dev-libs/apr-1.5.0-r2:1/1::gentoo, 
installed)
sys-apps/util-linux required by @system
sys-apps/util-linux required by (net-fs/nfs-utils-1.3.1-r5:0/0::gentoo, 
installed)
sys-apps/util-linux required by (app-emulation/lxc-1.0.7:0/0::gentoo, 
installed)

  (sys-apps/sysvinit-2.88-r4:0/0::gentoo, ebuild scheduled for merge) pulled in 
by
>=sys-apps/sysvinit-2.86-r6 required by 
(sys-apps/openrc-0.13.11:0/0::gentoo, installed)
<=sys-apps/sysvinit-2.88-r4 required by 
(sys-power/apcupsd-3.14.8-r2:0/0::gentoo, installed)


I don't understand this message.  What is blocked by what and why, and
what am I supposed to do?


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] Partitions

2015-03-21 Thread Peter Humphrey
On Saturday 21 March 2015 21:01:14 Neil Bothwick wrote:
> On Sat, 21 Mar 2015 18:14:38 +, Peter Humphrey wrote:
> > I see I wasn't clear: I meant /dev/mdX resulting from
> > combining /dev/sd[ab]X
> 
> If you're creating a RAID array from partitions, you don't need to create
> further partitions. The only time I would partition an md device is if it
> were created from whole disks.

OK, so I'll just ignore those warnings from various programs about not 
recognising partition types.

Thanks to all who've helped. What a fine place this is!

-- 
Rgds
Peter.




[gentoo-user] Re: systemd: incorrect behavior when doing poweroff/reboot

2015-03-21 Thread Hans

On 22/03/15 08:44, walt wrote:

I'd be 100% sure this is a systemd bug except that the problem is so
obvious and (I think) so common that I can't believe I'm the only
systemd user seeing it:

I routinely share /usr/portage over NFS between several gentoo boxes
on my wireless network.  When I poweroff or reboot the NFS client
machines, systemd tears down the wireless connection *before* it
unmounts the /usr/portage share, and so the umount command hangs and
the machine won't shut down.

I'd think people that hang out in this list must do the same thing,
surely?  No one else here running into this silly problem?



Had the same and various other problem. Resolved it by giving systemd 
the boot. No more problems with after I changed to openrc.





Re: [gentoo-user] Mutt emerge USE flags for novice

2015-03-21 Thread Lee
When I have a moment I'll send my Gmail enabled muttrc for u to ponder.
Imap with Gmail on mutt is seamless ime.
On Mar 21, 2015 3:42 PM, "Julian Simioni"  wrote:

> I don't currently use Mutt with Gmail, but one common suggestion is to
> use an external program like offlineimap for handling syncing. I
> remember hearing that Mutt's IMAP support is not the best.
>
> The guide I followed to get set up initially is Steve Losh's The Homely
> Mutt, it's really quite good.
>
> http://stevelosh.com/blog/2012/10/the-homely-mutt/
>
> Julian
>
> On 03/21, German wrote:
> > I am about to emerge Mutt and wanted to ask community what are the
> optimal USE flags for novice. I am going to use it with gmail. I am about
> to emerge it with the following USE flags: berkdb, crypt, gdbm, nls, ssl,
> gpg, imap, mbox, pop, sasl, sidebar, smtp. If anyone feel I should add or
> remove something from USE, feel free to tell me. Thanks!
> >
> > --
> > German 
> >
>


Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 11:52:45 PM Emanuele Rusconi wrote:
> Ctrl-Alt-Del can be set to do what you want.
> 
> I have this in my /etc/inittab:
> 
> ca:12345:ctrlaltdel:/sbin/shutdown -P now
> 
> This way Ctrl-Alt-Del calls power off instead of reboot.
> So to shutdown I just exit from Openbox and press Ctrl-Alt-Del.
> 
> -- Emanuele Rusconi

Also sysvinit specific.
On systemd you need to copy /usr/lib/systemd/system/ctrl-alt-del.target to 
/etc/systemd/system and edit that file.

-- 
Fernando Rodriguez

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


Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Emanuele Rusconi
Ctrl-Alt-Del can be set to do what you want.

I have this in my /etc/inittab:

ca:12345:ctrlaltdel:/sbin/shutdown -P now

This way Ctrl-Alt-Del calls power off instead of reboot.
So to shutdown I just exit from Openbox and press Ctrl-Alt-Del.

-- Emanuele Rusconi


Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 4:58:42 PM German wrote:
> On Sat, 21 Mar 2015 16:32:25 -0400
> Philip Webb  wrote:
> 
> > 150321 German wrote:
> > > If I run poweroff from root, the system shuts down.
> > > When I run poweroff from user -- command not found.
> > > How to shut down the system from user ?
> > 
> > I'ld say "Don't" : it's contrary to the principles of Unix,
> > which separate the roles of sysadmin (root) from those of ordinary users.
> > 
> > To shut down, I first exit Fluxbox via its menu,
> > then 'su' + root password, then alias 'down' = 'shutdown -h now'.
> > That observes the proper roles + ceremonies (smile).
> 
> Interesting. But as I said ealier, I can reboot the system when I am a user 
by Ctrl+Alt+Delete. The user can reboot the system, but can't shut down? 
Strange
> > 

Either /sbin/poweroff or /usr/sbin/poweroff will do it from a local session (if 
there's no other users logged in locally).

Like I said, /sbin is only on the search path for root by default on gentoo.

-- 
Fernando Rodriguez



[gentoo-user] systemd: incorrect behavior when doing poweroff/reboot

2015-03-21 Thread walt
I'd be 100% sure this is a systemd bug except that the problem is so
obvious and (I think) so common that I can't believe I'm the only
systemd user seeing it:

I routinely share /usr/portage over NFS between several gentoo boxes
on my wireless network.  When I poweroff or reboot the NFS client
machines, systemd tears down the wireless connection *before* it
unmounts the /usr/portage share, and so the umount command hangs and
the machine won't shut down.

I'd think people that hang out in this list must do the same thing,
surely?  No one else here running into this silly problem?




Re: [gentoo-user] Mutt emerge USE flags for novice

2015-03-21 Thread Julian Simioni
I don't currently use Mutt with Gmail, but one common suggestion is to
use an external program like offlineimap for handling syncing. I
remember hearing that Mutt's IMAP support is not the best.

The guide I followed to get set up initially is Steve Losh's The Homely
Mutt, it's really quite good.

http://stevelosh.com/blog/2012/10/the-homely-mutt/

Julian

On 03/21, German wrote:
> I am about to emerge Mutt and wanted to ask community what are the optimal 
> USE flags for novice. I am going to use it with gmail. I am about to emerge 
> it with the following USE flags: berkdb, crypt, gdbm, nls, ssl, gpg, imap, 
> mbox, pop, sasl, sidebar, smtp. If anyone feel I should add or remove 
> something from USE, feel free to tell me. Thanks!
> 
> -- 
> German 
> 


signature.asc
Description: Digital signature


Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 9:35:44 PM Alexander Kapshuk wrote:
> On Sat, Mar 21, 2015 at 9:34 PM, Alexander Kapshuk <
> alexander.kaps...@gmail.com> wrote:
> 
> > On Sat, Mar 21, 2015 at 9:26 PM, German  wrote:
> >
> >> If I run poweroff from root, the system shuts down, however when I run
> >> poweroff from user -- command not found. How to shut down the system from
> >> user? Thanks
> >>
> >> --
> >> German 
> >>
> >>
> > poweroff(1) says:
> > If  you're  not  the superuser, you will get the message `must be supe‐
> >ruser'.
> >
> > Either run poweroff as the superuser, or if you're running Gnome, KDE,
> > XFCE, etc., you may use the shutdown option available in those desktop
> > environments.
> >
> > Others might suggest other ways of doing it.
> >
> 
> It's actually poweroff(8). Sorry.

That's actually sysvinit poweroff...systemd's is different.
-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Jc García
> Interesting. But as I said ealier, I can reboot the system when I am a user 
> by Ctrl+Alt+Delete. The user can reboot the system, but can't shut down? 
> Strange

It's not strange,  `man 2 reboot`. It's a defined behavior.



Re: [gentoo-user] OK, so not everything works properly with systemd

2015-03-21 Thread Canek Peláez Valdés
On Sat, Mar 21, 2015 at 3:38 PM, Daniel Frey  wrote:
[...]
> I was using genkernel, but it was whining about not supporting systemd,
> so I tried dracut for the first time.
>
> However, the initramfs created by genkernel has the same issue.
>
> I didn't do any special configuation of dracut, I read that just running
> it can usually create a initramfs without any additional configuration.
> It did detect I have mdadm of course, or my system wouldn't have booted
> at all.

That's weird.

[...]
> I was wondering more about the symlinks to the regular
> shutdown/reboot/etc commands. I never actually checked to see if they're
> already systemd-aware.

They are; basically everything nowadays is systemd aware. Even OpenRC can
now use some of its configurations.

Could you run this immediately after booting:

systemd-delta

Just to check that the unit files you are using are not being overridden by
something.

Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México


Re: [gentoo-user] OK, so not everything works properly with systemd

2015-03-21 Thread Daniel Frey
On 03/21/2015 10:27 AM, Canek Peláez Valdés wrote:
>>
>> So why does `systemctl reboot` not want to work? I'm a little confused.
> 
> What kind of initramfs are you using?  Supposedly, the only difference
> between poweroff and reboot is that the former turns off the machine and
> reboot does a reset. In either case, systemd pivots back to the
> initramfs before umounting everything, so perhaps there lies the problem.

I was using genkernel, but it was whining about not supporting systemd,
so I tried dracut for the first time.

However, the initramfs created by genkernel has the same issue.

I didn't do any special configuation of dracut, I read that just running
it can usually create a initramfs without any additional configuration.
It did detect I have mdadm of course, or my system wouldn't have booted
at all.


>> I also noticed this in the USE flags for systemd:
>> - - sysv-utils : Install sysvinit compatibility
>> symlinks and manpages for init, telinit, halt, poweroff, reboot,
>> runlevel, and shutdown
>>
>> Should I enable that USE flag?
> 
> No. In Gentoo in particular the SysV compatibility is completely useless.

I was wondering more about the symlinks to the regular
shutdown/reboot/etc commands. I never actually checked to see if they're
already systemd-aware.


Dan




Re: [gentoo-user] Partitions

2015-03-21 Thread Neil Bothwick
On Sat, 21 Mar 2015 18:14:38 +, Peter Humphrey wrote:

> I see I wasn't clear: I meant /dev/mdX resulting from
> combining /dev/sd[ab]X 

If you're creating a RAID array from partitions, you don't need to create
further partitions. The only time I would partition an md device is if it
were created from whole disks.


-- 
Neil Bothwick

Bagpipe for free: Stuff cat under arm. Pull legs, chew tail.


pgpPQRhlROGwc.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread German
On Sat, 21 Mar 2015 16:32:25 -0400
Philip Webb  wrote:

> 150321 German wrote:
> > If I run poweroff from root, the system shuts down.
> > When I run poweroff from user -- command not found.
> > How to shut down the system from user ?
> 
> I'ld say "Don't" : it's contrary to the principles of Unix,
> which separate the roles of sysadmin (root) from those of ordinary users.
> 
> To shut down, I first exit Fluxbox via its menu,
> then 'su' + root password, then alias 'down' = 'shutdown -h now'.
> That observes the proper roles + ceremonies (smile).

Interesting. But as I said ealier, I can reboot the system when I am a user by 
Ctrl+Alt+Delete. The user can reboot the system, but can't shut down? Strange
> 
> -- 
> ,,
> SUPPORT ___//___,   Philip Webb
> ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
> TRANSIT`-O--O---'   purslowatchassdotutorontodotca
> 
> 


-- 
German 



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Rich Freeman
On Sat, Mar 21, 2015 at 4:32 PM, Philip Webb  wrote:
>
> I'ld say "Don't" : it's contrary to the principles of Unix,
> which separate the roles of sysadmin (root) from those of ordinary users.
>

There are a couple of schools of thought there.  One that differs from
what you suggested is that root isn't really a pure role - it is a uid
you can log in as (which mostly makes the actions you take as root
anonymous in a multi-admin environment).  If you're into role-based
access control then you really don't want people just switching to
root all the time - you want to define roles and their specific
requirements, and then assign those roles to users.  Sudo is a simple
tool for doing this, but stuff like consolekit/logind/policykit and so
on are about giving more granular access to users.  Likewise posix
capabilities are all about making what traditionally is root much more
granular.

But, yes, the simple answer is to just log in as root to power off the
system.  That will almost certainly work for at least the next 20
years.  Everything else is just added capabilities.

-- 
Rich



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Philip Webb
150321 German wrote:
> If I run poweroff from root, the system shuts down.
> When I run poweroff from user -- command not found.
> How to shut down the system from user ?

I'ld say "Don't" : it's contrary to the principles of Unix,
which separate the roles of sysadmin (root) from those of ordinary users.

To shut down, I first exit Fluxbox via its menu,
then 'su' + root password, then alias 'down' = 'shutdown -h now'.
That observes the proper roles + ceremonies (smile).

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Jc García
2015-03-21 14:01 GMT-06:00 German :
> On Sat, 21 Mar 2015 15:47:16 -0400
> Rich Freeman  wrote:
>
>> On Sat, Mar 21, 2015 at 3:39 PM, German  wrote:
>> >
>> > No, I am trying to shutdown from a console
>>
>> Well, the old answer would be that you need to use sudo to run it, as
>> shutting down is a privileged operation.
>>
>> I suspect that the new answer is that with appropriate
>> policykit/consolekit/etc settings you can probably allow somebody
>> sitting at a physical console to shut down the system, or any
>> logged-in user if you prefer.  However, I haven't actually set that up
>> myself.
>
> Well, I am the only one sitting at the console :) Are there any key 
> combination which allows that? I can reboot even if I am a user with 
> Ctrl+Alt+Delete
>>

Just use sudo to allow your user to shutdwon without
password(suders(5) manpage is your friend), and put an  alias in your
bashrc:
alias poweroff="sudo /sbin/poweroff"



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 3:26:56 PM German wrote:
> If I run poweroff from root, the system shuts down, however when I run 
poweroff from user -- command not found. How to shut down the system from user? 
Thanks
> 
> 

The command not found part is because /sbin and /usr/sbin and on gentoo it's 
not on your PATH env var by default.

I think it's supposed to be a security measure but really it provides no 
security whatsoever so I always add it to my path. After that you'll be able 
to shutdown if there's no other active sessions, otherwise you should be 
prompted for password.

-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread German
On Sat, 21 Mar 2015 15:47:16 -0400
Rich Freeman  wrote:

> On Sat, Mar 21, 2015 at 3:39 PM, German  wrote:
> >
> > No, I am trying to shutdown from a console
> 
> Well, the old answer would be that you need to use sudo to run it, as
> shutting down is a privileged operation.
> 
> I suspect that the new answer is that with appropriate
> policykit/consolekit/etc settings you can probably allow somebody
> sitting at a physical console to shut down the system, or any
> logged-in user if you prefer.  However, I haven't actually set that up
> myself.

Well, I am the only one sitting at the console :) Are there any key combination 
which allows that? I can reboot even if I am a user with Ctrl+Alt+Delete
> 
> -- 
> Rich
> 


-- 
German 



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Canek Peláez Valdés
On Sat, Mar 21, 2015 at 1:47 PM, Rich Freeman  wrote:
>
> On Sat, Mar 21, 2015 at 3:39 PM, German  wrote:
> >
> > No, I am trying to shutdown from a console
>
> Well, the old answer would be that you need to use sudo to run it, as
> shutting down is a privileged operation.
>
> I suspect that the new answer is that with appropriate
> policykit/consolekit/etc settings you can probably allow somebody
> sitting at a physical console to shut down the system, or any
> logged-in user if you prefer.  However, I haven't actually set that up
> myself.

logind does that for you automagically™. The first seat has the rights to
poweroff or reboot the machine, and it can differentiate between local and
remote logins. You can check if your user session has the permissions to
poweroff/reboot via dbus:

$ gdbus call --system --dest org.freedesktop.login1 --object-path
/org/freedesktop/login1 --method org.freedesktop.login1.Manager.CanPowerOff
('yes',)

$ gdbus call --system --dest org.freedesktop.login1 --object-path
/org/freedesktop/login1 --method org.freedesktop.login1.Manager.CanReboot
('yes',)

But you need systemd to use logind1. There has been some attempts to
reimplement logind outside systemd, but I'm not sure how advanced they are.

This kind of problems were one of the reasons for creating logind.

Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México


Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 8:46:10 AM Mike Gilbert wrote:
> On Thu, Mar 19, 2015 at 12:20 AM, Walter Dnes  wrote:
> > CFLAGS="-O2 -march=atom -mno-cx16 -msahf -mmovbe -mno-aes -mno-pclmul -
mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -
mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rtm -mno-
hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr 
-mno-xsave -mno-xsaveopt --param l1-cache-size=24 --param l1-cache-line-
size=64 --param l2-cache-size=512 -mtune=atom -fstack-protector -mfpmath=sse -
fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
> >
> >   Is that correct (assuming that's my output)?
> >
> 
> I should warn you against including all of those -mno-xxx flags. This
> has been known to break the build process for packages like chromium,
> which always wants to build with SSE4 support and toggles it off at
> runtime. Passing -mno-sse4.1 causes a build failure as it tries to use
> macros that are not defined.
> 

Isn't it possible that removing it for all packages would cause a more subtle 
problem with another faulty ebuild (like a program crashing due to an illegal 
instruction)?

-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Rich Freeman
On Sat, Mar 21, 2015 at 3:39 PM, German  wrote:
>
> No, I am trying to shutdown from a console

Well, the old answer would be that you need to use sudo to run it, as
shutting down is a privileged operation.

I suspect that the new answer is that with appropriate
policykit/consolekit/etc settings you can probably allow somebody
sitting at a physical console to shut down the system, or any
logged-in user if you prefer.  However, I haven't actually set that up
myself.

-- 
Rich



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread German
On Sat, 21 Mar 2015 21:34:51 +0200
Alexander Kapshuk  wrote:

> On Sat, Mar 21, 2015 at 9:26 PM, German  wrote:
> 
> > If I run poweroff from root, the system shuts down, however when I run
> > poweroff from user -- command not found. How to shut down the system from
> > user? Thanks
> >
> > --
> > German 
> >
> >
> poweroff(1) says:
> If  you're  not  the superuser, you will get the message `must be supe‐
>ruser'.
> 
> Either run poweroff as the superuser, or if you're running Gnome, KDE,
> XFCE, etc., you may use the shutdown option available in those desktop
> environments.

No, I am trying to shutdown from a console
> 
> Others might suggest other ways of doing it.


-- 
German 



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Alexander Kapshuk
On Sat, Mar 21, 2015 at 9:34 PM, Alexander Kapshuk <
alexander.kaps...@gmail.com> wrote:

> On Sat, Mar 21, 2015 at 9:26 PM, German  wrote:
>
>> If I run poweroff from root, the system shuts down, however when I run
>> poweroff from user -- command not found. How to shut down the system from
>> user? Thanks
>>
>> --
>> German 
>>
>>
> poweroff(1) says:
> If  you're  not  the superuser, you will get the message `must be supe‐
>ruser'.
>
> Either run poweroff as the superuser, or if you're running Gnome, KDE,
> XFCE, etc., you may use the shutdown option available in those desktop
> environments.
>
> Others might suggest other ways of doing it.
>

It's actually poweroff(8). Sorry.


Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Alexander Kapshuk
On Sat, Mar 21, 2015 at 9:26 PM, German  wrote:

> If I run poweroff from root, the system shuts down, however when I run
> poweroff from user -- command not found. How to shut down the system from
> user? Thanks
>
> --
> German 
>
>
poweroff(1) says:
If  you're  not  the superuser, you will get the message `must be supe‐
   ruser'.

Either run poweroff as the superuser, or if you're running Gnome, KDE,
XFCE, etc., you may use the shutdown option available in those desktop
environments.

Others might suggest other ways of doing it.


[gentoo-user] How to poweroff the system from user?

2015-03-21 Thread German
If I run poweroff from root, the system shuts down, however when I run poweroff 
from user -- command not found. How to shut down the system from user? Thanks

-- 
German 



Re: [gentoo-user] Mutt emerge USE flags for novice

2015-03-21 Thread German
On Sat, 21 Mar 2015 19:33:54 +0100
Jean-Christophe Bach  wrote:

> 
> > > In my system :
> > > 
> > >   root:518 ~> eix ^mutt$
> > >   [I] mail-client/mutt
> > >   Available versions:  1.5.22-r3 1.5.23-r5 ~1.5.23-r6 {berkdb crypt debug 
> > > doc gdbm gnutls gpg idn imap kerberos mbox nls nntp pop qdbm sasl selinux 
> > > sidebar slang smime smtp ssl tokyocabinet}
> > >   Installed versions:  1.5.23-r5([2015-02-28 12:43:41])(crypt gdbm gnutls 
> > > pop slang smtp ssl -berkdb -debug -doc -gpg -idn -imap -kerberos -mbox 
> > > -nls -nntp -qdbm -sasl -selinux -sidebar -smime -tokyocabinet)
> > > 
> > > HTH
> > 
> > Thank you, but are there anyone around who uses Mutt with gmail?
> 
> Hi,
> 
> In the past, I used it with gmail. I did not change any flag with or
> without gmail.
> 
> My mutt flags:
> 
> berkdb crypt debug doc gdbm gnutls gpg idn imap mbox nls pop sasl
> sidebar smime smtp ssl -kerberos -nntp -qdbm -selinux -slang
> -tokyocabinet
> 
> I use Maildir, therefore I think mbox flag is useless.
> 
> JC
Ok, thanks, will emerge it with those flags

-- 
German 



Re: [gentoo-user] Mutt emerge USE flags for novice

2015-03-21 Thread Jean-Christophe Bach

> > In my system :
> > 
> >   root:518 ~> eix ^mutt$
> >   [I] mail-client/mutt
> >   Available versions:  1.5.22-r3 1.5.23-r5 ~1.5.23-r6 {berkdb crypt debug 
> > doc gdbm gnutls gpg idn imap kerberos mbox nls nntp pop qdbm sasl selinux 
> > sidebar slang smime smtp ssl tokyocabinet}
> >   Installed versions:  1.5.23-r5([2015-02-28 12:43:41])(crypt gdbm gnutls 
> > pop slang smtp ssl -berkdb -debug -doc -gpg -idn -imap -kerberos -mbox -nls 
> > -nntp -qdbm -sasl -selinux -sidebar -smime -tokyocabinet)
> > 
> > HTH
> 
> Thank you, but are there anyone around who uses Mutt with gmail?

Hi,

In the past, I used it with gmail. I did not change any flag with or
without gmail.

My mutt flags:

berkdb crypt debug doc gdbm gnutls gpg idn imap mbox nls pop sasl
sidebar smime smtp ssl -kerberos -nntp -qdbm -selinux -slang
-tokyocabinet

I use Maildir, therefore I think mbox flag is useless.

JC


signature.asc
Description: Digital signature


Re: [gentoo-user] Partitions

2015-03-21 Thread Rich Freeman
On Sat, Mar 21, 2015 at 2:14 PM, Peter Humphrey  wrote:
> On Saturday 21 March 2015 11:18:44 Rich Freeman wrote:
>> On Sat, Mar 21, 2015 at 9:52 AM, Peter Humphrey 
> wrote:
>> > Does it make sense to install a partition table on a RAID-1 device?
>>
>> When I was using mdadm I would do it all the time.  It is the easiest
>> way to do RAID with devices of different sizes.  You just set up
>> multiple arrays across partitions of the same sizes and then combine
>> everything with LVM.
>
> Thanks Rich.
>
> I see I wasn't clear: I meant /dev/mdX resulting from combining /dev/sd[ab]X
> - I assume you meant the same.
>
> Interesting that the installation doc doesn't mention it though. Or it
> didn't when I used it to build this box.

Oh, I wouldn't install partitions on top of an md raid device.  I
probably would use it as an lvm physical volume though.

-- 
Rich



Re: [gentoo-user] Partitions

2015-03-21 Thread Peter Humphrey
On Saturday 21 March 2015 11:18:44 Rich Freeman wrote:
> On Sat, Mar 21, 2015 at 9:52 AM, Peter Humphrey  
wrote:
> > Does it make sense to install a partition table on a RAID-1 device?
> 
> When I was using mdadm I would do it all the time.  It is the easiest
> way to do RAID with devices of different sizes.  You just set up
> multiple arrays across partitions of the same sizes and then combine
> everything with LVM.

Thanks Rich.

I see I wasn't clear: I meant /dev/mdX resulting from combining /dev/sd[ab]X 
- I assume you meant the same.

Interesting that the installation doc doesn't mention it though. Or it 
didn't when I used it to build this box.

-- 
Rgds
Peter.




Re: [gentoo-user] Mutt emerge USE flags for novice

2015-03-21 Thread German
On Sat, 21 Mar 2015 13:44:22 -0400
Philip Webb  wrote:

> 150321 German wrote:
> > I am about to emerge Mutt : what are the optimal USE flags for a novice ?
> > I am going to use it with gmail.
> 
> I've been a happy use of Mutt since c 1998 ; I don't use Gmail.
> 
> > I am about to emerge it with the following USE flags :
> > berkdb, crypt, gdbm, nls, ssl, gpg, imap, mbox, pop, sasl, sidebar, smtp.
> 
> In my system :
> 
>   root:518 ~> eix ^mutt$
>   [I] mail-client/mutt
>   Available versions:  1.5.22-r3 1.5.23-r5 ~1.5.23-r6 {berkdb crypt debug doc 
> gdbm gnutls gpg idn imap kerberos mbox nls nntp pop qdbm sasl selinux sidebar 
> slang smime smtp ssl tokyocabinet}
>   Installed versions:  1.5.23-r5([2015-02-28 12:43:41])(crypt gdbm gnutls pop 
> slang smtp ssl -berkdb -debug -doc -gpg -idn -imap -kerberos -mbox -nls -nntp 
> -qdbm -sasl -selinux -sidebar -smime -tokyocabinet)
> 
> HTH

Thank you, but are there anyone around who uses Mutt with gmail?
> 
> -- 
> ,,
> SUPPORT ___//___,   Philip Webb
> ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
> TRANSIT`-O--O---'   purslowatchassdotutorontodotca
> 
> 


-- 
German 



Re: [gentoo-user] OK, so not everything works properly with systemd

2015-03-21 Thread Tom H
On Sat, Mar 21, 2015 at 1:21 PM, Daniel Frey  wrote:
>
> I also noticed this in the USE flags for systemd:
> - - sysv-utils : Install sysvinit compatibility
> symlinks and manpages for init, telinit, halt, poweroff, reboot,
> runlevel, and shutdown
>
> Should I enable that USE flag?

It removes sysvinit (and systemd-sysv-utils if it's installed) and
turns the listed binaries into symlinks to systemd.



Re: [gentoo-user] Mutt emerge USE flags for novice

2015-03-21 Thread Philip Webb
150321 German wrote:
> I am about to emerge Mutt : what are the optimal USE flags for a novice ?
> I am going to use it with gmail.

I've been a happy use of Mutt since c 1998 ; I don't use Gmail.

> I am about to emerge it with the following USE flags :
> berkdb, crypt, gdbm, nls, ssl, gpg, imap, mbox, pop, sasl, sidebar, smtp.

In my system :

  root:518 ~> eix ^mutt$
  [I] mail-client/mutt
  Available versions:  1.5.22-r3 1.5.23-r5 ~1.5.23-r6 {berkdb crypt debug doc 
gdbm gnutls gpg idn imap kerberos mbox nls nntp pop qdbm sasl selinux sidebar 
slang smime smtp ssl tokyocabinet}
  Installed versions:  1.5.23-r5([2015-02-28 12:43:41])(crypt gdbm gnutls pop 
slang smtp ssl -berkdb -debug -doc -gpg -idn -imap -kerberos -mbox -nls -nntp 
-qdbm -sasl -selinux -sidebar -smime -tokyocabinet)

HTH

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




[gentoo-user] Mutt emerge USE flags for novice

2015-03-21 Thread German
I am about to emerge Mutt and wanted to ask community what are the optimal USE 
flags for novice. I am going to use it with gmail. I am about to emerge it with 
the following USE flags: berkdb, crypt, gdbm, nls, ssl, gpg, imap, mbox, pop, 
sasl, sidebar, smtp. If anyone feel I should add or remove something from USE, 
feel free to tell me. Thanks!

-- 
German 



Re: [gentoo-user] OK, so not everything works properly with systemd

2015-03-21 Thread Canek Peláez Valdés
On Sat, Mar 21, 2015 at 11:21 AM, Daniel Frey  wrote:
> Hi list,

Hi.

> In one of my earlier posts I mentioned I wasn't having any issues with
> systemd. Well, I guess I lied, although I didn't know about it at the
time.
>
> My laptop works fine, no issues.
>
> My desktop, however, has an issue, but only while rebooting. I use mdadm
> to access my IMSM raid, and during the reboot process, the last message
> I see is (from memory, so it's not exact):
>
> "Stopping mdmon..."
>
> And it hangs there.
>
> The journal shows this:
> =
> -- Reboot --
> Mar 18 20:48:42 osoikaze systemd-journal[485]: Journal stopped
> Mar 18 20:48:42 osoikaze systemd-shutdown[1]: Sending SIGTERM to
> remaining processes...
> Mar 18 20:48:41 osoikaze systemd[1]: Shutting down.
>
> =
>
> mdmon is normally stopped right at the end, so it should be a part of
> 'Sending SIGTERM to remaining processes'. The Journal stops, then from
> what I gather, it hangs on the next one, which is mdmon. I have left it
> for a half an hour and it doesn't do anything.
>
> When rebooting:
>
> =
> Mar 18 20:49:39 osoikaze kernel: md/raid10:md126: active with 4 out of 4
> devices
> Mar 18 20:49:39 osoikaze kernel: md/raid10:md126: not clean -- starting
> background reconstruction
> Mar 18 20:49:39 osoikaze kernel: md: bind
> Mar 18 20:49:39 osoikaze kernel: md: bind
> Mar 18 20:49:39 osoikaze kernel: md: bind
> Mar 18 20:49:39 osoikaze kernel: md: bind
> Mar 18 20:49:39 osoikaze kernel: md: bind
> Mar 18 20:49:39 osoikaze kernel: md: bind
> =
>
> Indicating that mdmon was not stopped properly. (The array starts a
> rebuild.) Checking /proc/mdstat confirms this.
>
> Now this is the odd thing: `systemctl poweroff` works fine! It shuts
> everything down, and turns my workstation off without corrupting the
> RAID array!
>
> So why does `systemctl reboot` not want to work? I'm a little confused.

What kind of initramfs are you using?  Supposedly, the only difference
between poweroff and reboot is that the former turns off the machine and
reboot does a reset. In either case, systemd pivots back to the initramfs
before umounting everything, so perhaps there lies the problem.

> I also noticed this in the USE flags for systemd:
> - - sysv-utils : Install sysvinit compatibility
> symlinks and manpages for init, telinit, halt, poweroff, reboot,
> runlevel, and shutdown
>
> Should I enable that USE flag?

No. In Gentoo in particular the SysV compatibility is completely useless.

> (By the way, KDE shows the same behaviour. If I shutdown with the K
> Menu, it works. Reboot from the K Menu hangs.)

KDE (as GNOME, Xfce, and everything else) uses logind, so it's equivalent
to do "systemctl poweroff" or click "Power Off" in your DE.

I would bet on the initramfs.

Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México


[gentoo-user] OK, so not everything works properly with systemd

2015-03-21 Thread Daniel Frey
Hi list,

In one of my earlier posts I mentioned I wasn't having any issues with
systemd. Well, I guess I lied, although I didn't know about it at the time.

My laptop works fine, no issues.

My desktop, however, has an issue, but only while rebooting. I use mdadm
to access my IMSM raid, and during the reboot process, the last message
I see is (from memory, so it's not exact):

"Stopping mdmon..."

And it hangs there.

The journal shows this:
=
-- Reboot --
Mar 18 20:48:42 osoikaze systemd-journal[485]: Journal stopped
Mar 18 20:48:42 osoikaze systemd-shutdown[1]: Sending SIGTERM to
remaining processes...
Mar 18 20:48:41 osoikaze systemd[1]: Shutting down.

=

mdmon is normally stopped right at the end, so it should be a part of
'Sending SIGTERM to remaining processes'. The Journal stops, then from
what I gather, it hangs on the next one, which is mdmon. I have left it
for a half an hour and it doesn't do anything.

When rebooting:

=
Mar 18 20:49:39 osoikaze kernel: md/raid10:md126: active with 4 out of 4
devices
Mar 18 20:49:39 osoikaze kernel: md/raid10:md126: not clean -- starting
background reconstruction
Mar 18 20:49:39 osoikaze kernel: md: bind
Mar 18 20:49:39 osoikaze kernel: md: bind
Mar 18 20:49:39 osoikaze kernel: md: bind
Mar 18 20:49:39 osoikaze kernel: md: bind
Mar 18 20:49:39 osoikaze kernel: md: bind
Mar 18 20:49:39 osoikaze kernel: md: bind
=

Indicating that mdmon was not stopped properly. (The array starts a
rebuild.) Checking /proc/mdstat confirms this.

Now this is the odd thing: `systemctl poweroff` works fine! It shuts
everything down, and turns my workstation off without corrupting the
RAID array!

So why does `systemctl reboot` not want to work? I'm a little confused.

I also noticed this in the USE flags for systemd:
- - sysv-utils : Install sysvinit compatibility
symlinks and manpages for init, telinit, halt, poweroff, reboot,
runlevel, and shutdown

Should I enable that USE flag?

(By the way, KDE shows the same behaviour. If I shutdown with the K
Menu, it works. Reboot from the K Menu hangs.)

Dan



Re: [gentoo-user] RTL-tm NICs (Was RTL8192CU)

2015-03-21 Thread Stroller

On Sat, 21 March 2015, at 6:03 am, Matti Nykyri  wrote:
> 
> I've had nothing but problems with RTL-chipsets. But if you buy ~10$ NICs 
> they just don't work like 400$ ones.

$10!?!? I paid $2 each, including delivery, for a couple of rtl8192cu / 
RTL8188CUS wifi dongles a year ago.

I actually bought them from different suppliers on eBay and, although they 
looked identical, they contained different RTL chipsets.

As I recollect, one worked perfectly one was flakey or worked not at all, but I 
was running them on an old PPC iMac and assumed that was the cause. I did a 
fair bit of debugging, intending to post to the Linux wifi driver developers 
list, before losing interest.

I kinda figured at such cheap prices I could, in future, afford to buy 2 or 3 
wifi cards from 2 to 4 different suppliers (so $8 - $24 total) and I'd be 
likely to find at least one batch that works perfectly. Everyone complains when 
they get a cheap shitty wifi card that doesn't work, but there is probably an 
element of confirmation bias to this - we forget about all the cheap shitty 
wifi adaptors that just work perfectly. Are the name brands really that much 
more reliable?

I originally read your comment as "10$ NICs just don't work like 40$ ones" - 
realising that you wrote $400 is obviously a different matter. Reliability 
easily justifies $400 for the datacentre, but not for most home users.

Stroller.




Re: [gentoo-user] Partitions

2015-03-21 Thread Rich Freeman
On Sat, Mar 21, 2015 at 9:52 AM, Peter Humphrey  wrote:
>
> Does it make sense to install a partition table on a RAID-1 device?

When I was using mdadm I would do it all the time.  It is the easiest
way to do RAID with devices of different sizes.  You just set up
multiple arrays across partitions of the same sizes and then combine
everything with LVM.


-- 
Rich



[gentoo-user] Partitions

2015-03-21 Thread Peter Humphrey
Hello list,

Does it make sense to install a partition table on a RAID-1 device? I assume 
it would only include a single partition table, but it might prevent some 
programs from complaining they don't recognise the partition type. I have 
one such device for /boot and another for lvm2 volumes.

Secondly, has anyone here had problems with gparted? I tried to run it today 
to get a picture of my disk use, but it bombed out with "Assertion 
(metadata_length > 0) at dos.c:2305 in function add_logical_part_metadata 
failed."

I have a bug report prepared, but I wanted to check here before submitting 
it.

-- 
Rgds
Peter.




Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?

2015-03-21 Thread Mike Gilbert
On Thu, Mar 19, 2015 at 12:20 AM, Walter Dnes  wrote:
> CFLAGS="-O2 -march=atom -mno-cx16 -msahf -mmovbe -mno-aes -mno-pclmul 
> -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 
> -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rtm 
> -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx 
> -mfxsr -mno-xsave -mno-xsaveopt --param l1-cache-size=24 --param 
> l1-cache-line-size=64 --param l2-cache-size=512 -mtune=atom -fstack-protector 
> -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables 
> -fno-asynchronous-unwind-tables"
>
>   Is that correct (assuming that's my output)?
>

I should warn you against including all of those -mno-xxx flags. This
has been known to break the build process for packages like chromium,
which always wants to build with SSE4 support and toggles it off at
runtime. Passing -mno-sse4.1 causes a build failure as it tries to use
macros that are not defined.



Re: [gentoo-user] RTL-tm NICs (Was RTL8192CU)

2015-03-21 Thread Matti Nykyri
> On Mar 21, 2015, at 12:06, German  wrote:
> 
> http://www.newegg.com/Product/Product.aspx?Item=N82E16833704045
> I saw some recommendations on this one from people using linux

The manufacturer doesn't support Linux officially. I would not buy a USB NIC 
unless that was the only choice! The chipset was not mentioned on the 
manufacturers site but searching the net shows it is AR9271 and the module is 
ath9k_htc. On top of that you need to download atheros firmware and install 
that to your kernel.

It has WPS setup. Some drivers with this have huge security hole that even if 
you disable WPS it remains on. If WPS is on there is practically no security in 
you WiFi network. In that case using a VPN is the only choice.

I would not recommend it, but I have no personal experience with the particular 
chipset. Although I don't recommend WiFi either ;) ...without a proper VPN.

-- 
-Matti


Re: [gentoo-user] Re: crossdev setup questions for distcc usage

2015-03-21 Thread Walter Dnes
On Fri, Mar 20, 2015 at 02:02:19PM +, James wrote

> I'm interested in exactly what you are doing, plus extending the
> cross compile to arm architectures and running on top of clusters
> of gentoo systems; please continue to post back what you discover.
> For this sort of (cluster compiling) experimentation, folks build
> custom 'frameworks' so you might have some luck adding 'framework'
> to your keyword searches related to distributed compiling.

  I'm simply trying to offload compiling from my ancient, underpowered
netbook (14 hours to build seamonkey!!!) to my desktop.  I'd like to be
able to transparently run "emerge" from the netbook, have the desktop
machine do the grunt work, and install the compiled binaries and
associated /etc/* files on the netbook.  This assumes both machines are
connected on my home LAN.

  Since you mentioned arm architectures, it's ironic that the wiki
crossdev instructions now point to the embedded cross-compiler site
http://www.gentoo.org/proj/en/base/embedded/handbook/

  I've followed the instructions chapter 2 for installing crossdev and
it appears to work.  Note that my desktop machine is a 64-bit install...

===
[d531][root][~] i686-pc-linux-gnu-gcc --version
i686-pc-linux-gnu-gcc (Gentoo 4.9.2 p1.2, pie-0.6.2) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[d531][root][~] echo 'int main(){return 0;}' > ctest.c
[d531][root][~] i686-pc-linux-gnu-gcc -Wall ctest.c -o ctest
[d531][root][~] file ctest
ctest: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically 
linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, not stripped
[d531][root][~]
===

  I'm now reading up on...
https://wiki.gentoo.org/wiki/Distcc/Cross-Compiling
https://wiki.gentoo.org/wiki/Distcc

...to figure out how to launch it from my netbook.

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



Re: [gentoo-user] RTL8192CU

2015-03-21 Thread Neil Bothwick
On Sat, 21 Mar 2015 06:00:24 -0400, German wrote:

> > Was the firmware for the driver in question installed as well?
> > 
> > What's the output of 'lspci -k' and 'lsusb -v' for your device?  
> 
> It works, so yes, firmare is installed. Module's name is rtl8192cu. It
> just drops the connection after a while, this is a problem

You cannot assume that because it works, the firmware is there. The RTL
NIC in my Asus Vivo Mini MythTV frontend complained about missing
firmware at boot, but it still worked. Check dmesg, you may need firmware
to fix your problems.


-- 
Neil Bothwick

Speak softly and carry a cellular phone.


pgpuoL_NPfeGa.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] RTL-tm NICs (Was RTL8192CU)

2015-03-21 Thread German
On Sat, 21 Mar 2015 08:03:29 +0200
Matti Nykyri  wrote:

> > On Mar 19, 2015, at 20:46, Ralf  wrote:
> > 
> > Hi,
> > 
> > I had a rtl8192ce in my laptop. Nothing but problems with Linux. Don't
> > know why, but the signal strength always was much better when using Windows.
> 
> I've had nothing but problems with RTL-chipsets. But if you buy ~10$ NICs 
> they just don't work like 400$ ones.
> 
> > No more Realtek WiFi cards for me.

Hi Matti. What about this one: 
http://www.newegg.com/Product/Product.aspx?Item=N82E16833704045
I saw some recommendations on this one from people using linux

> +1
> 
> -- 
> -Matti


-- 
German 



Re: [gentoo-user] RTL8192CU

2015-03-21 Thread German
On Sat, 21 Mar 2015 10:36:08 +0200
Alexander Kapshuk  wrote:

> Was the firmware for the driver in question installed as well?
> 
> What's the output of 'lspci -k' and 'lsusb -v' for your device?

It works, so yes, firmare is installed. Module's name is rtl8192cu. It just 
drops the connection after a while, this is a problem
> 
> On Thu, Mar 19, 2015 at 7:42 PM, German  wrote:
> 
> > Today I've bought a new USB wi-fi adapter which has rtl8192cu chip. I've
> > plugged it into my lubuntu computer and it worked out of the box, however
> > soon it drops the connection. I googled it and found out that many people
> > have the same problem with this chip ( but mostly with *buntu flavours). I
> > also found the workaround here: https://github.com/pvaret/rtl8192cu-fixes
> > This box will be soon ( I hope ) will be transferred to Gentoo. I wonder if
> > some one here is using this chip with Gentoo with new kernels, does it run
> > ok and if this problem of *buntu specific? Thanks
> >
> > --
> > German 
> >
> >


-- 
German 



[gentoo-user] Re: Bluetooth Input Devices

2015-03-21 Thread Thomas Mori
On Thu, 19 Mar 2015 10:51:12 -0400
Fernando Rodriguez  wrote:

> On Thursday, March 19, 2015 3:53:42 AM Thomas Mori wrote:
> > Hi guys
> > 
> > I have stumbled on the Bluetooth Input Devices section in
> > wiki.gentoo.org [1]; however, I am not finding the Driver L2CAP
> > protocol support in my kernel [2]. I am not seeing the driver L2CAP
> > protocol anywhere [3]. I am wondering if the Wiki is slightly
> > outdated or am I not using the proper kernel for this task? 
> > 
> > Having said all of the above though, how should I enable Bluetooth
> > Input Devices? :) 
> > 
> > Thanks for your support!
> > 
> > [1] http://wiki.gentoo.org/wiki/Bluetooth_Input_devices
> 
> Looks like it's part of the bluetooth core now (CONFIG_BT).
> 

Awesome. Thank you. 




Re: [gentoo-user] RTL8192CU

2015-03-21 Thread Alexander Kapshuk
On Sat, Mar 21, 2015 at 10:36 AM, Alexander Kapshuk <
alexander.kaps...@gmail.com> wrote:

> Was the firmware for the driver in question installed as well?
>
> What's the output of 'lspci -k' and 'lsusb -v' for your device?
>
> On Thu, Mar 19, 2015 at 7:42 PM, German  wrote:
>
>> Today I've bought a new USB wi-fi adapter which has rtl8192cu chip. I've
>> plugged it into my lubuntu computer and it worked out of the box, however
>> soon it drops the connection. I googled it and found out that many people
>> have the same problem with this chip ( but mostly with *buntu flavours). I
>> also found the workaround here: https://github.com/pvaret/rtl8192cu-fixes
>> This box will be soon ( I hope ) will be transferred to Gentoo. I wonder if
>> some one here is using this chip with Gentoo with new kernels, does it run
>> ok and if this problem of *buntu specific? Thanks
>>
>> --
>> German 
>>
>>
>
Apologies for top-posting.


Re: [gentoo-user] RTL8192CU

2015-03-21 Thread Alexander Kapshuk
Was the firmware for the driver in question installed as well?

What's the output of 'lspci -k' and 'lsusb -v' for your device?

On Thu, Mar 19, 2015 at 7:42 PM, German  wrote:

> Today I've bought a new USB wi-fi adapter which has rtl8192cu chip. I've
> plugged it into my lubuntu computer and it worked out of the box, however
> soon it drops the connection. I googled it and found out that many people
> have the same problem with this chip ( but mostly with *buntu flavours). I
> also found the workaround here: https://github.com/pvaret/rtl8192cu-fixes
> This box will be soon ( I hope ) will be transferred to Gentoo. I wonder if
> some one here is using this chip with Gentoo with new kernels, does it run
> ok and if this problem of *buntu specific? Thanks
>
> --
> German 
>
>


[gentoo-user] Nouveau KMS Xorg-setup with multiple screens

2015-03-21 Thread Matti Nykyri
Hello

I have problems. I'm migrating from nvidia proprietary driver to nouveau driver 
because I wan't utilize KMS.

The server is connected to two separate displays in separate rooms. The first 
display is showing tv programs and mostly runs @50Hz frame rate. The second is 
displaying movies and hence runs at 23.97Hz. The programs sync to VBLANK! 
Nobody can stand the tearing of video without it! With nvidia and UMD I had two 
screens and everything worked perfectly.

So with this setup it's necessary to have two screens, right?

Is it possible to have 2 screens with KMS and nouveau driver?

-- 
Matti