[gentoo-user] Re: search and replace carriage return
On 2014-02-03, Alan McKinnon alan.mckin...@gmail.com wrote: On 04/02/2014 01:14, Joseph wrote: I have a text file. How do I search and replace carriage return? That is a horrible one to solve :-) All the usual tools (grep, sed, tr) are line oriented so they will take one line and replace the CR at the end with something else plus a CR! No they won't. EOL in Unix is linefeed. CR is treated as a normal character by grep sed tr and so on. -- Grant Edwards grant.b.edwardsYow! I'm having an at emotional outburst!! gmail.com
Re: [gentoo-user] Re: search and replace carriage return
On 02/04/14 15:00, Grant Edwards wrote: On 2014-02-03, Alan McKinnon alan.mckin...@gmail.com wrote: On 04/02/2014 01:14, Joseph wrote: I have a text file. How do I search and replace carriage return? That is a horrible one to solve :-) All the usual tools (grep, sed, tr) are line oriented so they will take one line and replace the CR at the end with something else plus a CR! No they won't. EOL in Unix is linefeed. CR is treated as a normal character by grep sed tr and so on. -- Grant Edwards grant.b.edwardsYow! I'm having an at emotional outburst!! gmail.com I solve it by converting text doc to unix format: dos2unix 1_5.txt and running this command: cat 1_5.txt | tr '\r\n' '\ ' 1_52.txt -- Joseph
Re: [gentoo-user] Tcp Listener
on 02/04/2014 02:42 AM Korthrun wrote the following: Check out what I consider to be a fantastic guide: http://beej.us/guide/bgnet/ Great! Thanks much for sharing Korthrun. :)
[gentoo-user] going from systemd to udev
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
[gentoo-user] Is VLAN configuration manual section up to date?
Are the VLAN configuration docs up to date? http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=3#doc_chap10 The reason I ask is that the Gentoo docs talk about using vconfig, while other distros have dropped vconfig and now use the ip2route packages 'ip' command instead: http://wiki.archlinux.org/index.php/VLAN Does Gentoo not have issues with udev trying to automagically rename vlan network interfaces as described in the Arch Linux page? http://wiki.archlinux.org/index.php/VLAN#udev_renames_the_virtual_devices -- Grant Edwards grant.b.edwardsYow! I am a jelly donut. at I am a jelly donut. gmail.com
Re: [gentoo-user] going from systemd to udev
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
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
[gentoo-user] Re: going from systemd to udev
On 02/04/2014 02:29 PM, gottl...@nyu.edu wrote: 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. I'm sure that unsetting the consolekit useflag (when I switched to systemd) resulted in some non-MicroSoft behavior, e.g. I now need to authenticate as root when plugging or ejecting a USB stick, and yet again when I poweroff or reboot the machine Being the only user of this machine, I could work up some outrage over this new PITA -- but I've decided not to be outraged. I pretend to be a sysadmin and imagine how I would feel if an arbitrary user demanded the ability to plug any arbitrary USB stick into his corporate workstation. Well, I'm not a corporate sysadmin, and never will be, but I think I'd be reluctant to let him do it. Any official sysadmins out there have an infallible opinion to offer?
Re: [gentoo-user] going from systemd to udev
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] Re: going from systemd to udev
On Tue, Feb 4, 2014 at 5:27 PM, walt w41...@gmail.com wrote: On 02/04/2014 02:29 PM, gottl...@nyu.edu wrote: 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. I'm sure that unsetting the consolekit useflag (when I switched to systemd) resulted in some non-MicroSoft behavior, e.g. I now need to authenticate as root when plugging or ejecting a USB stick, and yet again when I poweroff or reboot the machine This does not happen with GNOME 3. At all. The only time I'm asked for my root password is when I add or remove a printer, and app-admin/system-config-printer-gnome has been doing this since the very beginning. I'm still hoping that someone fix that thing. Being the only user of this machine, I could work up some outrage over this new PITA -- but I've decided not to be outraged. I pretend to be a sysadmin and imagine how I would feel if an arbitrary user demanded the ability to plug any arbitrary USB stick into his corporate workstation. Well, I'm not a corporate sysadmin, and never will be, but I think I'd be reluctant to let him do it. Any official sysadmins out there have an infallible opinion to offer? With GNOME+systemd (and therefore, logind), the seat0 user gets ownership of all removable devices (except printers, see above), and the hardware buttons (poweroff, reset, suspend, etc.) No root password asked. Ever. You can see your seat with loginctl; if your seat is not seat0, that's why your password is being asked. If it's seat0, then something else is going on. Do you have pam_systemd.so enabled in /etc/pam.d? 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] System hangs when poweroff with NFS mounted
On Fri, Jan 31, 2014 at 7:04 PM, Amankwah amankw...@gmail.com wrote: On Fri, Jan 24, 2014 at 11:24:46AM -0600, Canek Peláez Valdés wrote: On Fri, Jan 24, 2014 at 9:45 AM, 刘洋 amankw...@gmail.com wrote: journalctl --boot=-1 -- Logs begin at Tuesday 2013-12-24 21:48:33 CST, end at Friday 2014-01-24 22:38:38 CST. -- 1月 24 21:54:22 diamond systemd[3061]: Failed to open private bus connection: Failed to connect to socket /run/user/1000/dbus/user_bus_socket: No such file or directory 1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/kernel/config. 1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/fs/fuse/connections. 1月 24 21:54:22 diamond systemd[3061]: Stopped target Bluetooth. 1月 24 21:54:22 diamond systemd[3061]: Stopped target Sound Card. 1月 24 21:54:22 diamond systemd[3061]: Starting Default. 1月 24 21:54:22 diamond systemd[3061]: Reached target Default. 1月 24 21:54:22 diamond systemd[3061]: Startup finished in 419ms. 1月 24 21:54:31 diamond pulseaudio[3293]: [pulseaudio] pid.c: Daemon already running. 1月 24 21:54:31 diamond pulseaudio[3296]: [pulseaudio] pid.c: Daemon already running. 1月 24 21:54:31 diamond pulseaudio[3299]: [pulseaudio] pid.c: Daemon already running. 1月 24 21:54:31 diamond pulseaudio[3301]: [pulseaudio] pid.c: Daemon already running. 1月 24 21:55:01 diamond sudo[3362]: amankwah : TTY=pts/4 ; PWD=/home/amankwah ; USER=root ; COMMAND=/bin/sh 1月 24 22:34:32 diamond systemd[3061]: Stopping Default. 1月 24 22:34:32 diamond systemd[3061]: Stopped target Default. 1月 24 22:34:32 diamond systemd[3061]: Starting Shutdown. 1月 24 22:34:32 diamond systemd[3061]: Reached target Shutdown. 1月 24 22:34:49 diamond pulseaudio[3279]: [pulseaudio] core-util.c: Failed to create secure directory (/run/user/1000/pulse): No such file or directory These are the output of the command on my system after hangs. but why I saw nothing about my NFS directories? I added the script to the path, and the system shutdown correctly, but the time is too long, every NFS directory complained the timeout due to and then umounted, maybe it took about 10 minutes for choosing the shutdown under desktop to the system poweroff automatically. 10 minutes looks awfully long to me... and then I saw again your fstab. You explicitly set a timeout of 10 milliseconds; but what if there is a bug in systemd that parses 10ms (milliseconds) as 10m (minutes)? Just to try, change your fstab to set x-systemd.device-timeout=5; without a suffix, so the time specified should be in seconds. It seems that takes my more than 10 minutes, too. I don't know why. And when I saw the shutdown screen, the WPA_** process was killed before the the NFS umounted. Maybe it the reason why all of the NFS filesystem umount process were running after the wireless connection closed. Maybe that's a BUG? Or an order error in the related service unit files. OpenSuse has something similar in [1] and [2]. [1] https://bugzilla.novell.com/show_bug.cgi?id=849387 [2] https://bugzilla.novell.com/show_bug.cgi?id=857031 You can override a unit file in /usr/lib by creating one in /etc with the same name. Perhaps playing with After= and Requires= in the NFS units will solve this. I haven't used NFS in a long time. Are you using the service files provided by the packages, or you got them from somewhere else? 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
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
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
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
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] Re: going from systemd to udev
On 05.02.2014 01:10, Canek Peláez Valdés wrote: On Tue, Feb 4, 2014 at 5:27 PM, walt w41...@gmail.com wrote: On 02/04/2014 02:29 PM, gottl...@nyu.edu wrote: 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. I'm sure that unsetting the consolekit useflag (when I switched to systemd) resulted in some non-MicroSoft behavior, e.g. I now need to authenticate as root when plugging or ejecting a USB stick, and yet again when I poweroff or reboot the machine This does not happen with GNOME 3. At all. The only time I'm asked for my root password is when I add or remove a printer, and app-admin/system-config-printer-gnome has been doing this since the very beginning. I'm still hoping that someone fix that thing. Being the only user of this machine, I could work up some outrage over this new PITA -- but I've decided not to be outraged. I pretend to be a sysadmin and imagine how I would feel if an arbitrary user demanded the ability to plug any arbitrary USB stick into his corporate workstation. Well, I'm not a corporate sysadmin, and never will be, but I think I'd be reluctant to let him do it. Any official sysadmins out there have an infallible opinion to offer? With GNOME+systemd (and therefore, logind), the seat0 user gets ownership of all removable devices (except printers, see above), and the hardware buttons (poweroff, reset, suspend, etc.) No root password asked. Ever. You can see your seat with loginctl; if your seat is not seat0, that's why your password is being asked. If it's seat0, then something else is going on. Do you have pam_systemd.so enabled in /etc/pam.d? Regards. Concerning the printer permissions, see https://bugs.gentoo.org/show_bug.cgi?id=466338
Re: [gentoo-user] going from systemd to udev
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] Re: going from systemd to udev
On Feb 4, 2014 7:30 PM, Poncho pon...@spahan.ch wrote: On 05.02.2014 01:10, Canek Peláez Valdés wrote: On Tue, Feb 4, 2014 at 5:27 PM, walt w41...@gmail.com wrote: On 02/04/2014 02:29 PM, gottl...@nyu.edu wrote: 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. I'm sure that unsetting the consolekit useflag (when I switched to systemd) resulted in some non-MicroSoft behavior, e.g. I now need to authenticate as root when plugging or ejecting a USB stick, and yet again when I poweroff or reboot the machine This does not happen with GNOME 3. At all. The only time I'm asked for my root password is when I add or remove a printer, and app-admin/system-config-printer-gnome has been doing this since the very beginning. I'm still hoping that someone fix that thing. Being the only user of this machine, I could work up some outrage over this new PITA -- but I've decided not to be outraged. I pretend to be a sysadmin and imagine how I would feel if an arbitrary user demanded the ability to plug any arbitrary USB stick into his corporate workstation. Well, I'm not a corporate sysadmin, and never will be, but I think I'd be reluctant to let him do it. Any official sysadmins out there have an infallible opinion to offer? With GNOME+systemd (and therefore, logind), the seat0 user gets ownership of all removable devices (except printers, see above), and the hardware buttons (poweroff, reset, suspend, etc.) No root password asked. Ever. You can see your seat with loginctl; if your seat is not seat0, that's why your password is being asked. If it's seat0, then something else is going on. Do you have pam_systemd.so enabled in /etc/pam.d? Regards. Concerning the printer permissions, see https://bugs.gentoo.org/show_bug.cgi?id=466338 Thanks, I will take a look. Regards.
Re: [gentoo-user] going from systemd to udev
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
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
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
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
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
Re: [gentoo-user] Is VLAN configuration manual section up to date?
On 4 February 2014 22:27:03 CET, Grant Edwards grant.b.edwa...@gmail.com wrote: Are the VLAN configuration docs up to date? http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=3#doc_chap10 The reason I ask is that the Gentoo docs talk about using vconfig, while other distros have dropped vconfig and now use the ip2route packages 'ip' command instead: http://wiki.archlinux.org/index.php/VLAN Does Gentoo not have issues with udev trying to automagically rename vlan network interfaces as described in the Arch Linux page? http://wiki.archlinux.org/index.php/VLAN#udev_renames_the_virtual_devices -- Grant Edwards grant.b.edwardsYow! I am a jelly donut. at I am a jelly donut. gmail.com Grant, I disabled the udev device name randomizer to ensure I keep the eth* names. (I use bonding for the interfaces, don't care about the names as long as they all end up in the same bond) For the VLANs, I used the examples in the net.example file in the document folder. It's somewhere in /usr/doc/net/ (I think. No access to a gentoo install atm) I think the documentation you pointed at is out-of-date as I don't have to do it like that. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Re: going from systemd to udev
On 05/02/2014 01:27, walt wrote: Being the only user of this machine, I could work up some outrage over this new PITA -- but I've decided not to be outraged. I pretend to be a sysadmin and imagine how I would feel if an arbitrary user demanded the ability to plug any arbitrary USB stick into his corporate workstation. Well, I'm not a corporate sysadmin, and never will be, but I think I'd be reluctant to let him do it. Any official sysadmins out there have an infallible opinion to offer? I am a corporate sysadmin, and resisting that one is a waste of time. bring your own device is all the current rage in corporate speak. So it's The user's whole computer plus nothing of mine on the network versus the users own USB stick plus the computer of mine on the network. No brainer. -- Alan McKinnon alan.mckin...@gmail.com