Re: [gentoo-user] going from systemd to udev

2014-02-06 Thread Pavel Volkov
On Tuesday 04 February 2014 18:38:27 Joseph wrote:
 I don't have pmount installed, and I'm not sure what XFCE4 is using.
 How to find out?

You said that you have systemd installed, but did you actually *boot* systemd 
as init (PID 1)?



[gentoo-user] going from systemd to udev

2014-02-04 Thread Joseph

Is it possible to go from systemd to udev?

I don't like the way systemd works.  I have a problem with mounting USB sick 
(it mounts as root:root) and I can not even change the permission.
I am receiving Hylafax fax transmission reports (email) on all incoming faxes and now these emails are empty. 


It all start happening after switching to systemd :-(

--
Joseph



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Daniel Campbell
On 02/04/2014 01:58 PM, Joseph wrote:
 Is it possible to go from systemd to udev?
 
 I don't like the way systemd works.  I have a problem with mounting USB
 sick (it mounts as root:root) and I can not even change the permission.
 I am receiving Hylafax fax transmission reports (email) on all incoming
 faxes and now these emails are empty.
 It all start happening after switching to systemd :-(
 

systemd and udev are part of the same project, so I believe what you
meant was switching from systemd to OpenRC. I've not made such a switch,
but if you remember the steps you took, you can generally just reverse
them. That is, emerge openrc again, change the kernel line in GRUB to
point to regular init instead of systemd's init, reboot, and things
*should* fall into place.

USB drives mounting as root sounds like a udev thing rather than a
systemd thing, and switching to OpenRC for your init won't fix it afaik.
For the devices that you need this behavior for, it might be worth
looking into writing some udev rules. You can get a start by consulting
`lsusb` output and Googling for 'udev rules' to get a wide variety of
guides for writing udev rules. Despite the recent changes to udev by the
systemd team, udev still functions mostly the same and most guides will
be accurate.

I hope this helps!

~Daniel



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread gottlieb
On Tue, Feb 04 2014, Daniel Campbell wrote:

 On 02/04/2014 01:58 PM, Joseph wrote:
 Is it possible to go from systemd to udev?
 
 I don't like the way systemd works.  I have a problem with mounting USB
 sick (it mounts as root:root) and I can not even change the permission.
 I am receiving Hylafax fax transmission reports (email) on all incoming
 faxes and now these emails are empty.
 It all start happening after switching to systemd :-(
 

 systemd and udev are part of the same project, so I believe what you
 meant was switching from systemd to OpenRC. I've not made such a switch,
 but if you remember the steps you took, you can generally just reverse
 them. That is, emerge openrc again, change the kernel line in GRUB to
 point to regular init instead of systemd's init, reboot, and things
 *should* fall into place.

 USB drives mounting as root sounds like a udev thing rather than a
 systemd thing, and switching to OpenRC for your init won't fix it afaik.
 For the devices that you need this behavior for, it might be worth
 looking into writing some udev rules. You can get a start by consulting
 `lsusb` output and Googling for 'udev rules' to get a wide variety of
 guides for writing udev rules. Despite the recent changes to udev by the
 systemd team, udev still functions mostly the same and most guides will
 be accurate.

 I hope this helps!

 ~Daniel

There are changes in USE.   -systemd +consolekit
If you switched to a systemd profile, switch back.

The wiki for going from openRC -- systemd might be helpful
https://wiki.gentoo.org/wiki/Systemd

allan



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Canek Peláez Valdés
On Tue, Feb 4, 2014 at 1:58 PM, Joseph syscon...@gmail.com wrote:
 Is it possible to go from systemd to udev?

 I don't like the way systemd works.  I have a problem with mounting USB sick
 (it mounts as root:root) and I can not even change the permission.
 I am receiving Hylafax fax transmission reports (email) on all incoming
 faxes and now these emails are empty.
 It all start happening after switching to systemd :-(

If I'm not mistaken, systemd/udev doesn't mount removable devices by
default, it just notifies the system about new volume and creates
links under /dev/disk. In GNOME 3 udisks is the one doing the actual
mounting (AFAIU); with GNOME 2 it was gnome-volume-manager, etc.

What DE do you use? Are you using something like pmount?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Joseph

On 02/04/14 18:03, Canek Peláez Valdés wrote:

On Tue, Feb 4, 2014 at 1:58 PM, Joseph syscon...@gmail.com wrote:

Is it possible to go from systemd to udev?

I don't like the way systemd works.  I have a problem with mounting USB sick
(it mounts as root:root) and I can not even change the permission.
I am receiving Hylafax fax transmission reports (email) on all incoming
faxes and now these emails are empty.
It all start happening after switching to systemd :-(


If I'm not mistaken, systemd/udev doesn't mount removable devices by
default, it just notifies the system about new volume and creates
links under /dev/disk. In GNOME 3 udisks is the one doing the actual
mounting (AFAIU); with GNOME 2 it was gnome-volume-manager, etc.

What DE do you use? Are you using something like pmount?

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


I'm using XFCE 
It all started to happen after I switched to systemd.  So maybe on the weekend I'll try to switch one of the machine back to udev.

I think all I need is to unmerge systemd and emerge udev without rebooting.

--
Joseph



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Canek Peláez Valdés
On Tue, Feb 4, 2014 at 6:24 PM, Joseph syscon...@gmail.com wrote:
 On 02/04/14 18:03, Canek Peláez Valdés wrote:

 On Tue, Feb 4, 2014 at 1:58 PM, Joseph syscon...@gmail.com wrote:

 Is it possible to go from systemd to udev?

 I don't like the way systemd works.  I have a problem with mounting USB
 sick
 (it mounts as root:root) and I can not even change the permission.
 I am receiving Hylafax fax transmission reports (email) on all incoming
 faxes and now these emails are empty.
 It all start happening after switching to systemd :-(


 If I'm not mistaken, systemd/udev doesn't mount removable devices by
 default, it just notifies the system about new volume and creates
 links under /dev/disk. In GNOME 3 udisks is the one doing the actual
 mounting (AFAIU); with GNOME 2 it was gnome-volume-manager, etc.

 What DE do you use? Are you using something like pmount?

 Regards.
 --
 Canek Peláez Valdés
 Posgrado en Ciencia e Ingeniería de la Computación
 Universidad Nacional Autónoma de México


 I'm using XFCE It all started to happen after I switched to systemd.  So
 maybe on the weekend I'll try to switch one of the machine back to udev.
 I think all I need is to unmerge systemd and emerge udev without
 rebooting.

As others have said, udev *IS* systemd. It's the same code and
configuration [1].

And if you don't reboot after uninstalling systemd (while having
booted with it), I don't think your system will stay stable for much
longer.

I see that thunar depends on gvfs, which can use udisks or
gnome-disk-utility. Which one do you have? What does portage it says
when you do:

emerge -pv gnome-base/gvfs

If you have the gdu USE flag enabled, I recommend switching to udisks.
It's possible that it will fix everything, but I have never used Xfce,
so I'm not certain.

Regards.

[1] http://cgit.freedesktop.org/systemd/systemd/tree/src/udev
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Joseph

On 02/04/14 18:38, Canek Peláez Valdés wrote:

On Tue, Feb 4, 2014 at 6:24 PM, Joseph syscon...@gmail.com wrote:

On 02/04/14 18:03, Canek Peláez Valdés wrote:


On Tue, Feb 4, 2014 at 1:58 PM, Joseph syscon...@gmail.com wrote:


Is it possible to go from systemd to udev?

I don't like the way systemd works.  I have a problem with mounting USB
sick
(it mounts as root:root) and I can not even change the permission.
I am receiving Hylafax fax transmission reports (email) on all incoming
faxes and now these emails are empty.
It all start happening after switching to systemd :-(



If I'm not mistaken, systemd/udev doesn't mount removable devices by
default, it just notifies the system about new volume and creates
links under /dev/disk. In GNOME 3 udisks is the one doing the actual
mounting (AFAIU); with GNOME 2 it was gnome-volume-manager, etc.

What DE do you use? Are you using something like pmount?

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



I'm using XFCE It all started to happen after I switched to systemd.  So
maybe on the weekend I'll try to switch one of the machine back to udev.
I think all I need is to unmerge systemd and emerge udev without
rebooting.


As others have said, udev *IS* systemd. It's the same code and
configuration [1].

And if you don't reboot after uninstalling systemd (while having
booted with it), I don't think your system will stay stable for much
longer.

I see that thunar depends on gvfs, which can use udisks or
gnome-disk-utility. Which one do you have? What does portage it says
when you do:

emerge -pv gnome-base/gvfs

If you have the gdu USE flag enabled, I recommend switching to udisks.
It's possible that it will fix everything, but I have never used Xfce,
so I'm not certain.

Regards.

[1] http://cgit.freedesktop.org/systemd/systemd/tree/src/udev


I have: gnome-base/gvf with gdu flag disabled.
and sys-fs/udisks 
Installed versions:  2.1.0(2)(02:33:06 PM 12/28/2013)(gptfdisk introspection -cryptsetup -debug -selinux -systemd)


so it seems I have them both: gvfs and udisks.
Maybe I should enabled systemd flag in udisks since Im using it already.

--
Joseph



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Joseph

On 02/04/14 18:38, Canek Peláez Valdés wrote:

[snip]


I'm using XFCE It all started to happen after I switched to systemd.  So
maybe on the weekend I'll try to switch one of the machine back to udev.
I think all I need is to unmerge systemd and emerge udev without
rebooting.


As others have said, udev *IS* systemd. It's the same code and
configuration [1].

And if you don't reboot after uninstalling systemd (while having
booted with it), I don't think your system will stay stable for much
longer.

I see that thunar depends on gvfs, which can use udisks or
gnome-disk-utility. Which one do you have? What does portage it says
when you do:

emerge -pv gnome-base/gvfs

If you have the gdu USE flag enabled, I recommend switching to udisks.
It's possible that it will fix everything, but I have never used Xfce,
so I'm not certain.


Do I need to put flag: systemd in make.conf file: USE=...
to enable it globally?

--
Joseph



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Canek Peláez Valdés
On Feb 4, 2014 7:28 PM, Joseph syscon...@gmail.com wrote:

 On 02/04/14 18:38, Canek Peláez Valdés wrote:

 [snip]


 I'm using XFCE It all started to happen after I switched to systemd.  So
 maybe on the weekend I'll try to switch one of the machine back to udev.
 I think all I need is to unmerge systemd and emerge udev without
 rebooting.


 As others have said, udev *IS* systemd. It's the same code and
 configuration [1].

 And if you don't reboot after uninstalling systemd (while having
 booted with it), I don't think your system will stay stable for much
 longer.

 I see that thunar depends on gvfs, which can use udisks or
 gnome-disk-utility. Which one do you have? What does portage it says
 when you do:

 emerge -pv gnome-base/gvfs

 If you have the gdu USE flag enabled, I recommend switching to udisks.
 It's possible that it will fix everything, but I have never used Xfce,
 so I'm not certain.


 Do I need to put flag: systemd in make.conf file: USE=...
 to enable it globally?

Supposedly, you should enable local flags per package in
/etc/portage/package.use, but many does put it on make.conf.

Either way, if you are using systemd, you *should* set the systemd USE flag
on everything, otherwise the package in question will try to use the
non-systemd implementation (if any), and that will (almost surely) fail
under systemd.

Regards.


Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Joseph

On 02/04/14 18:03, Canek Peláez Valdés wrote:

On Tue, Feb 4, 2014 at 1:58 PM, Joseph syscon...@gmail.com wrote:

Is it possible to go from systemd to udev?

I don't like the way systemd works.  I have a problem with mounting USB sick
(it mounts as root:root) and I can not even change the permission.
I am receiving Hylafax fax transmission reports (email) on all incoming
faxes and now these emails are empty.
It all start happening after switching to systemd :-(


If I'm not mistaken, systemd/udev doesn't mount removable devices by
default, it just notifies the system about new volume and creates
links under /dev/disk. In GNOME 3 udisks is the one doing the actual
mounting (AFAIU); with GNOME 2 it was gnome-volume-manager, etc.

What DE do you use? Are you using something like pmount?

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


I don't have pmount installed, and I'm not sure what XFCE4 is using.
How to find out?


--
Joseph



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Canek Peláez Valdés
On Feb 4, 2014 7:38 PM, Joseph syscon...@gmail.com wrote:

 On 02/04/14 18:03, Canek Peláez Valdés wrote:

 On Tue, Feb 4, 2014 at 1:58 PM, Joseph syscon...@gmail.com wrote:

 Is it possible to go from systemd to udev?

 I don't like the way systemd works.  I have a problem with mounting USB
sick
 (it mounts as root:root) and I can not even change the permission.
 I am receiving Hylafax fax transmission reports (email) on all incoming
 faxes and now these emails are empty.
 It all start happening after switching to systemd :-(


 If I'm not mistaken, systemd/udev doesn't mount removable devices by
 default, it just notifies the system about new volume and creates
 links under /dev/disk. In GNOME 3 udisks is the one doing the actual
 mounting (AFAIU); with GNOME 2 it was gnome-volume-manager, etc.

 What DE do you use? Are you using something like pmount?

 Regards.
 --
 Canek Peláez Valdés
 Posgrado en Ciencia e Ingeniería de la Computación
 Universidad Nacional Autónoma de México


 I don't have pmount installed, and I'm not sure what XFCE4 is using.
 How to find out?

It's using gvfs, the problem is probably that gvfs is trying to use the
non-systemd implementation (probably ConsoleKit) on a systemd machine. Re
emerge everything with the systemd USE flag and it probably will solve
itself.

I mentioned pmount only because we didn't know enough; now you told us that
you have gvfs, and that you didn't enabled systemd support for it even when
you are using systemd.

Regards.


Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Joseph

On 02/04/14 19:33, Canek Peláez Valdés wrote:

[snip]

   emerge -pv gnome-base/gvfs
  
   If you have the gdu USE flag enabled, I recommend switching to
  udisks.
   It's possible that it will fix everything, but I have never used
  Xfce,
   so I'm not certain.
  
  
   Do I need to put flag: systemd in make.conf file: USE=...
   to enable it globally?

  Supposedly, you should enable local flags per package in
  /etc/portage/package.use, but many does put it on make.conf.

  Either way, if you are using systemd, you *should* set the systemd USE
  flag on everything, otherwise the package in question will try to use
  the non-systemd implementation (if any), and that will (almost surely)
  fail under systemd.

  Regards.


After enable systemd flag in make.conf USE=
the following packages were rebuild:
sys-apps/busybox
sys-apps/dbus
sys-auth/pambase
sys-auth/polkit
sys-fs/udisks
sys-power/upower
gnome-base/gvfs

But now I have a BIG problem, I can not mount USB stick at all as user (only as 
root).
Eject doesn't work either.

--
Joseph



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Canek Peláez Valdés
On Tue, Feb 4, 2014 at 8:01 PM, Joseph syscon...@gmail.com wrote:
 On 02/04/14 19:33, Canek Peláez Valdés wrote:

 [snip]

emerge -pv gnome-base/gvfs

   
If you have the gdu USE flag enabled, I recommend switching to
   udisks.
It's possible that it will fix everything, but I have never used
   Xfce,
so I'm not certain.
   
   
Do I need to put flag: systemd in make.conf file: USE=...
to enable it globally?

   Supposedly, you should enable local flags per package in
   /etc/portage/package.use, but many does put it on make.conf.

   Either way, if you are using systemd, you *should* set the systemd USE
   flag on everything, otherwise the package in question will try to use
   the non-systemd implementation (if any), and that will (almost surely)
   fail under systemd.

   Regards.


 After enable systemd flag in make.conf USE=
 the following packages were rebuild:
 sys-apps/busybox
 sys-apps/dbus
 sys-auth/pambase
 sys-auth/polkit
 sys-fs/udisks
 sys-power/upower
 gnome-base/gvfs

 But now I have a BIG problem, I can not mount USB stick at all as user (only
 as root).
 Eject doesn't work either.

Did you rebooted?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] going from systemd to udev

2014-02-04 Thread Joseph

On 02/04/14 20:06, Canek Peláez Valdés wrote:

On Tue, Feb 4, 2014 at 8:01 PM, Joseph syscon...@gmail.com wrote:

On 02/04/14 19:33, Canek Peláez Valdés wrote:

[snip]


   emerge -pv gnome-base/gvfs

  
   If you have the gdu USE flag enabled, I recommend switching to
  udisks.
   It's possible that it will fix everything, but I have never used
  Xfce,
   so I'm not certain.
  
  
   Do I need to put flag: systemd in make.conf file: USE=...
   to enable it globally?

  Supposedly, you should enable local flags per package in
  /etc/portage/package.use, but many does put it on make.conf.

  Either way, if you are using systemd, you *should* set the systemd USE
  flag on everything, otherwise the package in question will try to use
  the non-systemd implementation (if any), and that will (almost surely)
  fail under systemd.

  Regards.



After enable systemd flag in make.conf USE=
the following packages were rebuild:
sys-apps/busybox
sys-apps/dbus
sys-auth/pambase
sys-auth/polkit
sys-fs/udisks
sys-power/upower
gnome-base/gvfs

But now I have a BIG problem, I can not mount USB stick at all as user (only
as root).
Eject doesn't work either.


Did you rebooted?

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Yes, I did.  
Should I reverse it? Remove flag systemd from make.conf and rebuild.



--
Joseph