[gentoo-user] Getting genkernel to use newer dmraid

2011-07-11 Thread Daniel Frey
Hi all,

I've been trying to get genkernel to use a newer version of dmraid.
For some reason, genkernel is using a build from 2006 (!)

I've tried an ubuntu livecd which uses a build that's available in
portage that works with my fakeraid. All this to try to dual-boot
using a raid 1+0.

I've discovered /etc/genkernel.conf has settings for this, so I tried
changing them:
-
#DMRAID_VER="1.0.0.rc14"
DMRAID_VER="1.0.0.rc16"
DMRAID_DIR="dmraid/${DMRAID_VER}"
#DMRAID_SRCTAR="${DISTDIR}/dmraid-${DMRAID_VER}.tar.bz2"
DMRAID_SRCTAR="/usr/share/dmraid/dmraid-1.0.0.rc16-3-prepatched.tar.bz2"
DMRAID_BINCACHE="%%CACHE%%/dmraid-${DMRAID_VER}-%%ARCH%%.tar.bz2"
-

After that I issued a `genkernel --lvm --dmraid initramfs` and got this:
-
ubuntu / # genkernel initramfs
* Gentoo Linux Genkernel; Version 3.4.17
* Running with options: initramfs

* Linux Kernel 2.6.38-gentoo-r6 for x86_64...
* blkid: >> Using cache
* busybox: >> Using cache
* initramfs: >> Initializing...
* >> Appending base_layout cpio data...
* >> Appending auxilary cpio data...
* >> Appending busybox cpio data...
* >> Appending lvm cpio data...
*   LVM: Adding support (using local static binary /sbin/lvm.static)...
* >> Appending dmraid cpio data...
* DMRAID: Adding support (compiling binaries)...
* ERROR: DMRAID directory ${DMRAID_DIR} is invalid!

* -- Grepping log... --

* >> Appending dmraid cpio data...
* DMRAID: Adding support (compiling binaries)...
* Gentoo Linux Genkernel; Version 3.4.17
* Running with options: initramfs

* ERROR: DMRAID directory ${DMRAID_DIR} is invalid!

* -- End log... --
-

I can see that the dmraid directory is invalid, but I do not know how
to correct this?

I've not tried making an initramfs myself (I do not know how) but have
been building my own kernels since 2004. I couldn't really find
anything on genkernel after googling other than the basic usage.

Can anyone help?



Re: Re: [gentoo-user] Getting genkernel to use newer dmraid

2011-07-11 Thread Daniel Frey
On 01/-10/37 11:59, Alan McKinnon wrote:
> On Monday 11 July 2011 10:09:38 Daniel Frey did opine thusly:
>> Hi all,
>>
>> I've been trying to get genkernel to use a newer version of dmraid.
>> For some reason, genkernel is using a build from 2006 (!)
>>
>> I've tried an ubuntu livecd which uses a build that's available in
>> portage that works with my fakeraid. All this to try to dual-boot
>> using a raid 1+0.
>>
>> I've discovered /etc/genkernel.conf has settings for this, so I
>> tried changing them:
>> -
>> #DMRAID_VER="1.0.0.rc14"
>> DMRAID_VER="1.0.0.rc16"
>> DMRAID_DIR="dmraid/${DMRAID_VER}"
> You sure about this one?
>
> That lack of a leading "/" looks mighty suspicious
>
>

The only two lines I changed are the ones I commented out (so I only
changed DMRAID_VER and DMRAID_SRCTAR.) If I revert the changes, the
default initramfs with the included dmraid build properly.

I suspect there's a build directory somewhere buried deep down that I
can't find. I'm going to try to dig into this a little deeper...
although I do need a new motherboard soon. I'm starting to dislike the
reliability of Asus motherboards. I've had three fail now (different
models) so I ordered an Intel board to replace this current one. I
wouldn't be surprised at this point if the motherboard is the cause of
my grief.

Thankfully I have a laptop or I'd be going through serious internet
withdrawal symptoms. :)

Dan



Re: Re: [gentoo-user] Problem with xf86-video-ati & nvidia-drivers

2011-07-19 Thread Daniel Frey
On 01/-10/37 11:59, Grant wrote:
--snip--
>> The TV is an LG 47LH90 and and it is said to do 1080p.  I looked for
>> ghosting in 16:9 mode instead of Just Scan mode and strangely the
>> shadows are there, but they're oriented top and bottom instead of left
>> and right.  I can take another photo if anyone would like to see.
>>
>> Why do I need to select Just Scan in order to prevent all 4 edges of
>> the screen from being cut off?
>>
>> - Grant
> 
> BTW I think you're on to something Stroller because the overall
> picture is definitely improved in 16:9 mode compared to Just Scan
> mode.  I just need to figure out how to prevent the edges of the
> screen from being cut off.
> 
> - Grant

Grant,

By default most TVs overscan inputs due to broadcast signals at the
edges as the picture there is not well defined and can have white
overscan lines and such. The TV compensates by overscanning which
basically zooms in on the picture making (on my 46" Samsung TV) the
outer 1-1.5" of the picture disappear.

On my TV it was fairly simple to turn this off, I just had to label the
HDMI input as "DVI PC" and it automatically turned off any picture
processing/overscanning. Yours may be similar.

Sorry if there's typos, I have a bandaged finger and it's a PITA to type
with. I think I fixed all of them.

Dan



Re: Re: [gentoo-user] Problems with Nvidia fake raid array

2011-07-26 Thread Daniel Frey
On 01/-10/37 11:59, Michael Orlitzky wrote:
> 
> I think this one should have worked? It seems to have found the
> superblock on /dev/sda, at least.
> 
> Anyway, I imagine everyone (myself included) is afraid to tell you to do
> anything at this point that might trash your data. My advice now would
> be to put it back where it worked, and make a backup.

I'm just going through this myself. As far as I know mdadm does *not*
support nvraid. It does support imsm, or intel raid, which I'm in the
process of setting up on my workstation.

I can't find anything in the docs regarding mdadm working with nvraid,
you should be trying dmraid for that.

If all you have is /dev/control and you are not using a dmraid supported
kernel (genkernel requires dodmraid to find and assemble arrays) then
execute `dmraid -ay` and check dmesg and /dev/mapper for contents.

Dan



Re: [gentoo-user] Botched Raid1 install

2011-07-28 Thread Daniel Frey
On 01/-10/37 11:59, James wrote:
> Background:
> I worked on this last April can gave up on the (livedDVD)
> install with too many other things to do, and pissed off at
> a lack of usable (current) documentation.
> 
> So, taking a fresh look at the BOTCHED system:
> The 2 drives are identical 2TB: Seagate
> drives:  Model Number:   ST32000542AS 
> 
> I read about the 4K block problem and could have
> easily made a formating mistake(?).
> 
> fdisk /dev/sda  (not the best tool to use...
> 

fdisk does have a partition/drive limit of ~2.2TB, but this drive should
still work with it. The only other option is GPT, but I don't think grub
boots from that yet (unless you use grub2 with patches?)

> 
> Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
> But in my attempt to install, I used this geometry:
> fdisk-H 224 -S 56 /dev/sda

That should align it to 4k blocks, I had to do the same on my SSD
(224/56=4)...


> using the livedDVD:
> 
>  cat /proc/mdstat
> Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
> md125 : active raid1 md127p1[0]
>   262080 blocks [2/1] [U_]
>   
> md126 : active raid1 md127p2[0]
>   5023680 blocks [2/1] [U_]
>   
> md127 : active raid1 sdb[1] sda[0]
>   1948227584 blocks [2/2] [UU]
> 
> 

Are the partitions on each drive *exactly* the same? If the end cylinder
and start cylinder for the other drive is off by one it will affect two
partitions, leaving them in a dirty state and the third in a clean state.

> 
> It has been suggested kernel >=2.6.37 will have (better?) 
> support for 4k sectors disks [1].
> 

I believe I have 2.6.37 on my htpc and it works fine with the 4k-aligned
SSD.

> Should I just start over?

I would start over.

Are you using BIOS-raid? (Such as Intel ICH*R?) I assume no, given the
'fd' type partitions. If you are, you are using the wrong approach. It's
already in a raid set and you need to create normal partitions on it,
not type 'fd'.

However, there's a lot of information on how to use mdraid and create
native linux software raid partitions.

If you are trying to use BIOS raid, it's a little different, and
unneeded if you are not using Windows. The reason I mention this is that
mdadm gave my BIOS fakeraid /dev/md126* partitions. When I created
native linux raid partitions, they were /dev/md0, /dev/md1, etc.

I can't really help more until I know exactly what you are trying to do.
Right now (to me, anyway) it looks like you are mixing software raid and
BIOS fakeraid, as with native mdadm you generally don't have partitions
(/dev/md126p1, /dev/md126p2, etc) with native raid (which is /dev/md0,
/dev/md1, etc) as I said above.

If you are trying to use mdadm with a BIOS fakeraid, then you are
correct in that there's no documentation. Just yesterday I finally got a
working install after three weeks of messing around.

What's the output of `mdadm --detail-platform`?

Dan



[gentoo-user] Run command after root mounted ro?

2011-08-09 Thread Daniel Frey
Greetings,

I discovered a possible reason for mdadm always marking my raid array as
bad on reboot. The problem is I don't know how to check for the issue.

When using root on a native mdadm raid, the kernel handles the array
state transition at shutdown, so it's not a big deal. However, it's
different when using external metadata - mdadm must be called before the
reboot.

Apparently mdadm must be called after the root filesystem is mounted
read-only. Then it can mark the array as clean and not rebuild every
single reboot.

Where do I check this? The /etc/init.d/mdadm script happens well before
root is mounted read-only.

Apparently `mdadm --wait-clean --scan` needs to be called so the
external metadata is updated correctly. If you use this command with a
native mdadm raid it does nothing, but it's critical apparently to the
health of other metadata types.

I've grepped through /etc/init.d/ and found nothing.

Dan



Re: Re: [gentoo-user] Run command after root mounted ro?

2011-08-09 Thread Daniel Frey
On 01/-10/37 11:59, Florian Philipp wrote:
> Remounting root read-only is done by an init script called mount-ro
> which is started in runlevel shutdown. Try to add a custom init script
> to your /etc/init.d directory with the following content:
> 
> #!/sbin/runscript
> depend()
> {
>  after mount-ro
> }
> start()
> {
>  ebegin 'Shutting down mdadm'
>  mdadm --wait-clean --scan
>  eend $?
> }
> 
> Add it to the runlevel with `rc-update add  shutdown` and
> don't forget to mark it executable.
> 
> Disclaimer: I've not tried this (obviously) and if the script eats your
> dog and wreaks your system, it is entirely your fault ;)


Thanks, I tried this out, and while it does run after mounting ro, it
just hangs. I've noticed that it's supposed to be monitoring
/proc/mdstat but it was (presumably) unmounted long ago.

I guess I have to do some more experimenting.

Dan





Re: Re: [gentoo-user] OT: but cool - NASDAQ is gentoo powered

2011-08-16 Thread Daniel Frey
On 01/-10/37 11:59, Michael Mol wrote:
> This is related to a question I wanted to poll the list with. How does
> everybody here use Gentoo? For personal use? Production use? For
> server, desktop or embedded roles? What's your most interesting setup
> or use case?
> 

I use gentoo on my laptop (1.6 GHz core2duo, 4GB RAM), desktop (3 GHz
QX9650, 8GB RAM), home file server (2.5GHz core2duo), htpc (another
core2duo and 2GB RAM), and various servers (one's a dual P3 1.1GHz box
that's getting retired) at work, both production and testing. Actually,
I'll be moving the servers at work onto ESXi soon.

They've all served me well.

Dan



[gentoo-user] Update to newer kernel completely hoses suspend

2012-09-12 Thread Daniel Frey
So about a month ago I decided to update my kernel to the dreaded 3.x
series. My old 2.6.x kernel was working fine, but of course I decided
to try to update it anyway, knowing there were problems with suspend
and a few other things.

I've always used gentoo-sources. So I tried 3.3.8.

Hrm. Suspend doesn't work. I tried 3.4.5, 3.4.9 and 3.0.35 (older
versions are no longer available.) If I'd known it would completely
kill my suspend and make it useless, I wouldn't have bothered.

Here's the problem:

I can suspend fine. It appears to work. It powers off and goes into
its suspend state. I press the space bar. Nothing. So, then I
discovered that as of 3.2 USB wakeup had completely changed in the
kernel, and you need to set hubs and devices in /proc/acpi/wakeup
(which is normally done for you) *and* in /sys/devices. No biggie, I
wrote a script to do just that at
http://forums.gentoo.org/viewtopic-t-933934.html. So now I can wake
with the keyboard as before. Or can I?

If I suspend and wake up the PC within about 10 minutes it works.
After that, all hell breaks loose. The PC is dead. Completely. Waking
up no longer works, not with the keyboard, or even the power button.
The *only* way is to pull the power plug and leave it unplugged for a
few seconds. Then the PC comes to life.

I've never seen an issue quite like this one...

I use mdraid in my kernel with IMSM to dual boot Windows. I've been
using it for a long time, so that's not it. The only thing that's
changed are the kernel versions I've tried. So far, every 3.x kernel
has done this. Now, this could very well be a kernel problem, heres my
ACPI config:

# Power management and ACPI options
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS is not set
# CONFIG_ACPI_PROCFS_POWER is not set
# CONFIG_ACPI_EC_DEBUGFS is not set
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
# CONFIG_ACPI_DOCK is not set
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_ACPI_CONTAINER=y
# CONFIG_ACPI_SBS is not set
# CONFIG_ACPI_HED is not set
# CONFIG_ACPI_APEI is not set
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_PNPACPI=y
CONFIG_ATA_ACPI=y
# CONFIG_PATA_ACPI is not set
# ACPI drivers
# ACPI drivers
# CONFIG_SENSORS_ACPI_POWER is not set

Suspend stuff:
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_USB_SUSPEND=y


Here's output from my script (usbwakeup -l):(USB4 is where my keyboard is)
~ # usbwakeup -l
Listing USB hubs/devices and their wakeup status...

USB ID:: Device* :: Status :: Device Description

1d6b:0001 :: usb3 :: enabled :: UHCI Host Controller
051d:0002 :: 3-1 :: disabled :: Back-UPS RS 1200 FW:8.g1 .D USB FW:g1
1d6b:0001 :: usb4 :: enabled :: UHCI Host Controller
046d:c508 :: 4-1 :: disabled :: USB Receiver
046d:c221 :: 4-2.1 :: enabled :: Gaming Keyboard
1d6b:0001 :: usb5 :: enabled :: UHCI Host Controller
1d6b:0002 :: usb1 :: enabled :: EHCI Host Controller
1d6b:0001 :: usb6 :: enabled :: UHCI Host Controller
1d6b:0001 :: usb7 :: enabled :: UHCI Host Controller
1d6b:0001 :: usb8 :: enabled :: UHCI Host Controller
1d6b:0002 :: usb2 :: enabled :: EHCI Host Controller

*Use the Device column to identify hubs/devices to be toggled.

11 USB hubs/devices listed.

Output from acpitool -w:
osoikaze ~ # acpitool -w
   Device   S-state   Status   Sysfs node
  ---
  1. P0P1 S3*disabled  pci::00:01.0
  2. UAR1 S3*disabled  pnp:00:03
  3. P0P2 S4*disabled  pci::00:1e.0
  4. USB0 S3*disabled  pci::00:1d.0
  5. USB1 S3*disabled  pci::00:1d.1
  6. USB2 S3*disabled  pci::00:1d.2
  7. USB5 S3*disabled
  8. USB6 S3*disabled  pci::00:1a.2
  9. EUSB S3*disabled  pci::00:1d.7
  10. USB3S3*disabled  pci::00:1a.0
  11. USB4S3*enabled   pci::00:1a.1
  12. USBES3*disabled  pci::00:1a.7
  13. PEX0S4*disabled  pci::00:1c.0
  14. PEX1S4*disabled  pci::00:1c.1
  15. PEX2S4*disabled  pci::00:1c.2
  16. PEX3S4*disabled  pci::00:1c.3
  17. PEX4S4*disabled  pci::00:1c.4
  18. PEX5S4*disabled  pci::00:1c.5
  19. SLPBS4*enabled
  20. PWRBS3*enabled

Does anyone have any idea what could be wrong here? This is driving me
crazy, I hate shutting down my PC when I'm not using it. I could live
without the keyboard if the damn power button would work, but even if
I don't set the USB wakeup (through /proc/acpi/wakeup or my script) it
still gets stuck in the 'eternal' sleep. The whole kernel config is at
http://pastebin.com

Re: [gentoo-user] Update to newer kernel completely hoses suspend

2012-09-13 Thread Daniel Frey
On 09/13/2012 10:37 AM, Volker Armin Hemmann wrote:
> Am Mittwoch, 12. September 2012, 17:18:38 schrieb Daniel Frey:
>> So about a month ago I decided to update my kernel to the dreaded 3.x
>> series. My old 2.6.x kernel was working fine, but of course I decided
>> to try to update it anyway, knowing there were problems with suspend
>> and a few other things.
>>
>> I've always used gentoo-sources. So I tried 3.3.8.
>>
>> Hrm. Suspend doesn't work. I tried 3.4.5, 3.4.9 and 3.0.35 (older
>> versions are no longer available.) If I'd known it would completely
>> kill my suspend and make it useless, I wouldn't have bothered.
>>
>> Here's the problem:
>>
>> I can suspend fine. It appears to work. It powers off and goes into
>> its suspend state. I press the space bar. Nothing. So, then I
>> discovered that as of 3.2 USB wakeup had completely changed in the
>> kernel, and you need to set hubs and devices in /proc/acpi/wakeup
> I don't have to do that.

You're lucky then - I've googled the issue and it has hit a lot of users
from all sorts of distros, it's not specific to gentoo. Usually when the
keyboard won't wake up the PC you can use the power button, which didn't
work on my machine either.

I'm kind of suspecting the PSU now. It's getting worse, and it happens
on several kernel versions (even on 3.0.x which I had for about 3 weeks
before going to something > 3.2. When I powered up my machine today
(after being off all night) X bombed with no screens found. I restarted
xdm and it worked... I'm thinking if the PSU is off maybe it's taking a
while to warm up to be reliable - my video card uses one of those 6 port
extra power plugs. I'll bet after being on for a few minutes it was
fine. I hate diagnosing weird & intermittent hardware problems. The PSU
in here is way too much for what I've got in here anyway. Come to think
of it, I think I have a spare in my closet, although I can't remember
the wattage.


>
>> (which is normally done for you) *and* in /sys/devices. No biggie, I
>> wrote a script to do just that at
> neither that. In fact, I have done nothing. It just works, with fglrx.
>
> uname -a
> Linux energy 3.4.10 #1 SMP Sun Sep 9 23:01:01 CEST 2012 x86_64 AMD Phenom(tm) 
> II X4 955 Processor AuthenticAMD GNU/Linux
>
> and 3.2 before that
>
> and 3.0 before that.
>
It worked with 3.0.x for a couple of weeks, all hell broke loose after I
upgraded to 3.3.8 (I think.) I've also tried 3.4.5 and 3.4.9, nothing
works. Sigh...

I'd better figure out a way to rule out the PSU. It's possible the
emerge world that I did at the same time I upgraded to 3.3.8 stressed
the PSU.

Dan



Re: Re: [gentoo-user] Update to newer kernel completely hoses suspend

2012-09-13 Thread Daniel Frey
On 09/12/2012 05:59 PM, Canek Peláez Valdés wrote:
> I switched to 3.0 more than a year ago (I use vanilla-sources). Never
> had a problem with suspend and/or hibernate; I'm now running kernel
> 3.5.3. You didn't specify how do you suspend. pm-utils? dbus-send to
> upower? echo mem > /sys/power/state? I would recommend you to shut
> down X, and try pm-suspend from the console. It may tell you more
> info. Regards. 

I use KDE and use it to suspend. It's worked flawlessly for years now,
although I had to enable usb wakeup on one of the USB hubs for the
keyboard to wake.

The thing is, it goes to sleep fine. It goes into low power state &
shuts fans etc. off. The problem is, after leaving it for a while, you
can't wake it. I've tried waking immediately after suspending, and it
works. Leave it for a duration (like overnight) and neither the keyboard
or power button wakes it (as in absolutely nothing happens, it won't
even turn on/spin up fans etc.)

I think I might have a hardware issue now. I shut down last night and
this morning X wouldn't start right away - I turned it on and walked
away from it. Restarting xdm made it start, but it had been running for
> 5 minutes at that point.

Dan



Re: Re: [gentoo-user] Update to newer kernel completely hoses suspend

2012-09-13 Thread Daniel Frey
On 09/12/2012 09:49 PM, Chris Stankevitz wrote:
> On Wed, Sep 12, 2012 at 5:18 PM, Daniel Frey  wrote:
>> So about a month ago I decided to update my kernel to the dreaded 3.x
>> series. My old 2.6.x kernel ...
> FYI Linus Torvalds says there was no change between 2.6 and 3.0.  A quote:
>
> So what are the big changes?  NOTHING. Absolutely nothing. Sure, we
> have the usual two thirds driver
> changes, and a lot of random fixes, but the point is that 3.0 is
> *just* about renumbering, we are very much *not* doing a KDE-4 or a
> Gnome-3 here. No breakage, no special scary new features, nothing at
> all like that.
>
> You can read his entire letter here:
> https://lkml.org/lkml/2011/5/29/204
>
> Chris
When I updated, I knew about changes in 3.2 that affected USB keyboard
wake in suspend (& mostly how it deals with acpi. Most of the stuff
moved to /sys/devices, the normal /proc/acpi/wakeup didn't really do
anything.) This affected many users over many distros.

It also changed how lirc works, although that happened around 2.6.38??,
so my htpc frontend is still on 2.6.32. When I tried updating that
machine to 3.0, nothing worked and I spent about a day troubleshooting
it before I put the image I took of it before I upgraded it back on.

Dan



Re: Re: Re: [gentoo-user] Update to newer kernel completely hoses suspend

2012-09-15 Thread Daniel Frey
Well, it turns out it was my PSU. The voltage drop on the 5V line was
4.08, but it would slowly warm up to 4.95V, then the PC would behave
normally. I opened the PSU and there was a ruptured cap.

I've replaced it and the problems are all gone.

I guess it was not really a coincidence that the failure happened after
a major update. This isn't the first time an `emerge -pvuDN world`
killed my computer. :-)

Dan

On 09/13/2012 07:20 PM, Daniel Frey wrote:
> On 09/12/2012 09:49 PM, Chris Stankevitz wrote:
>> On Wed, Sep 12, 2012 at 5:18 PM, Daniel Frey  wrote:
>>> So about a month ago I decided to update my kernel to the dreaded 3.x
>>> series. My old 2.6.x kernel ...
>> FYI Linus Torvalds says there was no change between 2.6 and 3.0.  A quote:
>>
>> So what are the big changes?  NOTHING. Absolutely nothing. Sure, we
>> have the usual two thirds driver
>> changes, and a lot of random fixes, but the point is that 3.0 is
>> *just* about renumbering, we are very much *not* doing a KDE-4 or a
>> Gnome-3 here. No breakage, no special scary new features, nothing at
>> all like that.
>>
>> You can read his entire letter here:
>> https://lkml.org/lkml/2011/5/29/204
>>
>> Chris
> When I updated, I knew about changes in 3.2 that affected USB keyboard
> wake in suspend (& mostly how it deals with acpi. Most of the stuff
> moved to /sys/devices, the normal /proc/acpi/wakeup didn't really do
> anything.) This affected many users over many distros.
> 
> It also changed how lirc works, although that happened around 2.6.38??,
> so my htpc frontend is still on 2.6.32. When I tried updating that
> machine to 3.0, nothing worked and I spent about a day troubleshooting
> it before I put the image I took of it before I upgraded it back on.
> 
> Dan



Re: Re: [gentoo-user] Update to newer kernel completely hoses suspend

2012-09-16 Thread Daniel Frey

On 09/15/2012 03:26 PM, Mick wrote:
> I was also replacing capacitors last weekend.  It is a good idea to upgrade 
> them if there are alternatives of a higher maximum temperature as they will 
> probably last longer.  A belts & braces approach is to add another/larger 
> case 
> fan to keep the in-case temperatures lower.

Well, after I replaced the cap, I decided to get a better power supply
anyway. The one that died was an OCZ 1010 W supply, which is way too
much for this machine. I used to have 12 hard drives in here
(Thermaltake Full Armor), but a few years ago I built a server to do
those tasks. I replaced it with a platinum 650 W rated supply. The new
PSU looks like it's built a lot better.

I already have three 12 cm fans that are controlled by the BIOS. I've
had really poor luck with OCZ anything (to the point that I won't buy
anything they make anymore.)

Dan



Re: Re: [gentoo-user] Update to newer kernel completely hoses suspend

2012-09-16 Thread Daniel Frey
On 09/15/2012 03:29 PM, Dale wrote:
> Daniel Frey wrote:
>> Well, it turns out it was my PSU. The voltage drop on the 5V line was
>> 4.08, but it would slowly warm up to 4.95V, then the PC would behave
>> normally. I opened the PSU and there was a ruptured cap.
>>
>> I've replaced it and the problems are all gone.
>>
>> I guess it was not really a coincidence that the failure happened after
>> a major update. This isn't the first time an `emerge -pvuDN world`
>> killed my computer. :-)
>>
>> Dan
>>
>>
> 
> *cough cough*  Maybe you need a better or more powerful power supply? 
> If that cap went bad, you could have some others that are ready for the
> same problem.  I'd at least be on the look out for a new P/S.  The next
> one could go out and take a mobo or something with it.  That would be
> bad for sure. 
> 
> Just a thought.
> 
> Dale
> 
> :-)  :-) 
> 

After I changed the cap I decided to get a new PSU anyway. I went with
better (650 W Antec Platinum) rather than more powerful. The old one was
already 1010 W, by a manufacturer whom I don't trust any longer.

Dan



Re: [gentoo-user] MTP auto-mount? (Kindle Fire HD)

2012-09-18 Thread Daniel Frey
On 09/18/2012 10:37 AM, Mark Knecht wrote:
> Hi all,
>Are there any known tricks for auto-mounting an MTP device? I think
> this stuff is used on some newer Android phone so I'm hoping someone
> has a nice solution.

MTP is used on a quite a few newer Android devices, including my Nexus
7. I haven't found an automount solution yet, but it is possible to
create an fstab entry, though

> 
>My wife decided to buy the new Kindle Fire HD based on our good
> experience with the original Kindle Fire. The new device is very nice
> - faster, nicer screen, better networking, etc. - but no longer
> presents itself as a USB Mass Storage device like my older Kindle
> Fire. Rather it uses Media Transfer Protocol. (MTP) I've managed to
> get it mounted using a package from the poly-c overlay called jmtpfs.
> Info is located here:
> 
> http://research.jacquette.com/jmtpfs-exchanging-files-between-android-devices-and-linux/
> 
>I've copied some movies over and they play fine on the new device
> but it's all by-hand manual mounting, etc. When the device is plugged
> in I get this sort of info in dmesg:
> 
> [15720.370654] usb 2-2: new high-speed USB device number 4 using ehci_hcd
> [15720.490935] usb 2-2: New USB device found, idVendor=1949, idProduct=0007
> [15720.490940] usb 2-2: New USB device strings: Mfr=2, Product=3, 
> SerialNumber=4
> [15720.490944] usb 2-2: Product: Kindle
> [15720.490947] usb 2-2: Manufacturer: Amazon
> [15720.490949] usb 2-2: SerialNumber: REMOVED
> 
> and based on one post I read for Ubuntu (or maybe Arch - I don't
> remember) I've created this udev rule:
> 
> mark@c2stable ~ $ cat /etc/udev/rules.d/51-android.rules
> UBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0007", MODE="0666"
> mark@c2stable ~ $

I documented what I had to do to mount my Nexus 7 on the forums, under
my own Nexus 7 thread, although now that I think about it, I don't think
I put an fstab entry in it. I do have one in my /etc/fstab, though:

mtpfs  /mnt/nexus7  fuse  user,noauto,allow_other  0 0

Make sure the mountpoint will be writeable.

>Anyway, it's all usable but a bit clumsy. Is there a sensible way I
> can have the device recognized and mounted via rules in fstab? (Or any
> other fixed file?)

I haven't looked to see if there's a way to automount it yet though.

> 
> Thanks,
> Mark



Re: [gentoo-user] Re: android and mtp

2012-12-22 Thread Daniel Frey
On 12/22/2012 03:32 PM, Grant Edwards wrote:
> On 2012-12-21, Neil Bothwick  wrote:
>> On Fri, 21 Dec 2012 16:19:10 -0600, Paul Hartman wrote:
>>
>>> I think you can use mtpfs and then browse it like any other disk.
> 
> 
>> I found that to be rather fragile, jmtpfs works far better for me, with a
>> Galaxy S3 and a Nexus 7.
> 
> I couldn't get mtpfs to work either, and I've seen a lot of reports
> that it's flakey.
> 
> I second the recommendation for jmtpfs (I'm using version 0.4).  I've
> had zero problems with my Nexus Galaxy and jmtpfs.
> 

I really struggled with my Nexus 7 and mtpfs. I did finally get it to
work, posted under the Nexus 7 thread on the forums:

http://forums.gentoo.org/viewtopic-p-7135656.html#7135656

I was getting a reliable connection and 8-9MB/sec transfer rate to my
device. I had to try all sorts of things to try to get the thing to
work. Miraculously, I got it to work after trying many things.

I specifically had:

* Searching for mtpfs ...
[IP-] [  ] sys-fs/mtpfs-1.0:0


installed.

I put an entry in /etc/fstab and manually mount it when needed:
mtpfs   /mnt/nexus7 fuse
user,noauto,allow_other 0 0

I remember trying for weeks to get this to work, I don't know if I just
lucked out.

Dan



Re: [gentoo-user] Re: android and mtp

2012-12-24 Thread Daniel Frey
On 12/23/2012 03:22 PM, luis jure wrote:
> well, it seems i have been very lucky indeed. i just emerged jmtpfs as per
> mark's suggestion, and it just worked. i just created a /media/galaxy
> directory, and an entry in fstab (like yours, but with jmtpfs instead of
> mtpfs) and that was it. now i can simply mount /media/galaxy.
> 
> and the best, for those of you using xfce and thunar, in the "multimedia"
> tab of preferences -> advanced -> volume manager, i clicked the "portable
> music players" check box, and added the command "mount /media/galaxy/".
> now when i connect my phablet it is automatically mounted, and i can
> umount/eject it from thunar. couldn't be easier, a perfect solution for my
> needs!
> 
> 
> best,
> 
> 
> lj
> 

I just removed mtpfs and installed jmtpfs from the poly-c overlay, in
order to get access to my external SD card in my new Galaxy S3. It was
far easier to get to work than mtpfs - and so far jmtpfs hasn't
segfaulted yet. Apparently mtpfs only sees the internal SD and not the
external one.

Trying to get some music on there so I can bring my bluetooth speaker to
work so I have something to listen to while I work.

It's just me so I don't care too much about automounting, I just put an
entry in /etc/fstab and mount it manually when I need to update something.

Dan



Re: [gentoo-user] Any UPS recommendations?

2013-01-08 Thread Daniel Frey
On 01/08/2013 09:32 AM, Paul Hartman wrote:
> On Tue, Jan 8, 2013 at 11:27 AM, Paul Hartman
>  wrote:
>> On Tue, Jan 8, 2013 at 7:01 AM, Walter Dnes  wrote:
>>>   I think my UPS is dying.  Time to get a new one.  It's been years, so
>>> there may be new tech out there I don't know about.  My normal usage is
>>> * 1 LCD monitor 24"
>>> * 1 (sometimes 2) "desktop" PCs connected to the monitor
>>> * 1 ADSL router/modem
>>>
>>>   What brand and VA rating would people recommend.  The stuff I'm
>>> concerned about is the 2 or 3 times a year I get power flickers, or a
>>> short outage.  And also, if power is out for more than 5 minutes, and
>>> the battery is running low, I want the PC to be able to sense that and
>>> execute /usr/sbin/hibernate
>>
>> I personally have a Cyberpower 1350VA (with fancy LED display to show
>> current load, estimated time remaining, etc.). It is supported by NUT
>> in linux so my box can do a clean shutdown when the UPS battery is
>> running low. Running my big PC (with 7 HDDs RAID) it gives me around
>> 30 to 45 minutes of life on battery before the shutdown kicks in. My
>> power outages at my house are generally either <5 seconds, or
>> hours/days with nothing in-between. :)
> 
> I will also add I had an Ultra brand UPS before (actually made by
> Powercom), which was extremely cheap, I'm talking about $79 shipped
> for 1500VA UPS, and it spontaneously stopped working one day, just
> outside of the warranty period. It was not supported by NUT, the linux
> software required binaries instealled to /etc and also to write its
> logs to /etc and generally did not work well anyway. I will avoid
> Powercom/Ultra UPS in the future.
> 
> At work we use APC brand UPS and they generally seem to work very
> well, though they tend to be quite expensive.
> 

(Speaking from my own experience over the last 15 years)

If you have two desktop PCs plus monitor and switches I would try to get
1500VA or more.

I have tried Tripp-Lite, Cyberpower, and APC. So far, the best luck I've
had is with APC.

I started out with APC initially (small unit, 350VA) and paid the
premium price. The second and third time around (not replacing, needing
new UPSs) I tried other brands. First the Tripp-Lite, it was OK but a
year and a half later it just died with no warning. Got a replacement
battery and still no go. So I bought a Cyberpower UPS. This one lasted
almost two years, and when the power went out the first time it worked -
but the second time it went out when the power came back the UPS fried
and it unfortunately took out my PSU, motherboard, and hard drive. For
some reason the monitor survived... and no, I did not have any
high-amperage devices attached (printer is in a different room.)

Anyway, after that experience, I stuck with APC. I currently have four
of them, a little 350VA guy for my modem and switches, and 3 1200VA
models. These are old now, bought in 2004, and other than having to
change one battery in one of the units, they all still work. Nine years!

I also recommend APC based on my own experience. Yes, they're more
expensive (in some cases 50% more) than others, but longevity seems to
be great. Plus you can use apcupsd for monitoring in linux.

We also use APC at work. While a few have had their batteries changed,
most of the units themselves are at least 10 years old.

Dan



Re: [gentoo-user] Any UPS recommendations?

2013-01-09 Thread Daniel Frey
On 01/08/2013 11:24 PM, Walter Dnes wrote:
>   Thanks to you, and others, for all the info.  And thanks for the
> apcupsd ebuild.  BTW, what does mailx do in the ebuild?  Send an email
> about an outage?
> 

Yes, it sends email notifications. I currently have ssmtp set up to send
mail to my gmail account - when apcupsd detects a power outage/restore,
it sends me email indicating so.

Dan



Re: [gentoo-user] Redux: Any UPS recommendations?

2013-01-11 Thread Daniel Frey
On 01/10/2013 04:21 PM, Walter Dnes wrote:
> On Tue, Jan 08, 2013 at 08:01:47AM -0500, Walter Dnes wrote
> 
>   I got an APC Back-UPS BX1300G-CN from the local Staples.  No worry
> whatsoever about overloading this baby.  I'm currently running a
> "torture test" with the monitor, the modem, and both PC's running.
> They're both doing an update.  I set things up so that both are building
> gcc at the same time.  Even so, the load indicator is only lighting up 2
> of 5 bars, indicating approximately 40% of max load.  It might've been a
> different story years ago back in the days of the Pentium 4 or AMD "space
> heaters", plus add-on video cards.
> 
>   Being the geek that I am, I did RTFM the docs that came with the UPS.
> It has an option to decide how much to allow voltage to vary before
> switching over to battery power.  I selected the narrowest range, i.e.
> the "sensitive electronics" setting.
> 
>   One question about the configuration of apcupsd; what do I have to do
> get it to execute "/usr/sbin/hibernate" when hydro is out, and the
> battery is running low?
> 

I've never used hibernate. I would imagine that that apcupsd would have
a hook. I googled quickly and found an ArchWiki article that discusses
it. Apparently you can create a symlink and apcupsd will use it rather
than the usual shutdown process.

Disclaimer: I have not tried it myself.

Dan



[gentoo-user] Feeding new versions of mdadm to genkernel?

2013-02-04 Thread Daniel Frey
Hi all,

It seems that the genkernel team did the switcheroo with genkernel.

I used to build an initramfs with a newer mdadm by putting:

MDADM_VER="3.2.6"

in genkernel.conf and copying the related tarball to /var/cache/genkernel.

I discovered a bit of a problem, all that's been removed in the latest
genkernel, and I don't see any obvious notes or new config files. Anyone
know how to do this?

Dan



Re: [gentoo-user] Feeding new versions of mdadm to genkernel?

2013-02-04 Thread Daniel Frey
On 02/04/2013 05:24 PM, William Kenworthy wrote:
> On 05/02/13 06:54, Daniel Frey wrote:
>> Hi all,
>>
>> It seems that the genkernel team did the switcheroo with genkernel.
>>
>> I used to build an initramfs with a newer mdadm by putting:
>>
>> MDADM_VER="3.2.6"
>>
>> in genkernel.conf and copying the related tarball to /var/cache/genkernel.
>>
>> I discovered a bit of a problem, all that's been removed in the latest
>> genkernel, and I don't see any obvious notes or new config files. Anyone
>> know how to do this?
>>
>> Dan
>>
> I got caught with the busybox versions ... it seems if you put the older
> entries back it will work as it used to, at least it did for me.
> 
> BillK
> 
> 

Well, all I had to do was put the MDADM_VER line back in (nothing else)
and it seems to work.

Thanks! I wish they'd let us know when they make changes like that...

Dan



[gentoo-user] pam_get_uid: no such user

2013-02-13 Thread Daniel Frey
I updated my "server" a while back, and just recently I noticed this in
/var/log/messages:

Feb 13 11:26:14 coretwoduo login[25575]: pam_tally2(login:auth):
pam_get_uid; no such user

I have thousands of entries in my logs. It doesn't seem to  prevent me
from logging in though.

I have figured out that it's looking for a user 'auth'? I don't see that
on my system.

Is this a misconfiguration of pam? Or update gone wonky? I've never seen
this before.

Dan



Re: [gentoo-user] Re: pam_get_uid: no such user

2013-02-13 Thread Daniel Frey
On 02/13/2013 02:51 PM, walt wrote:
> 
> For sure there is no user named auth on my machines, so something must be
> wrong somewhere.  Just for fun I ran "emerge -p /etc/pam.d/ and got this:
> 
> #emerge -p /etc/pam.d/
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R] sys-auth/pambase-20120417-r1 
> [ebuild   R] sys-apps/shadow-4.1.5.1-r1 
> [ebuild   R] net-mail/mailbase-1.1 
> [ebuild   R] app-admin/sudo-1.8.6_p6 
> [ebuild   R] sys-auth/polkit-0.110 
> [ebuild   R] sys-apps/openrc-0.11.8 
> [ebuild   R] net-print/cups-1.6.1 
> [ebuild   R] net-misc/openssh-6.1_p1-r1 
> [ebuild   R] net-fs/samba-3.6.12 
> 
> I mention this mostly because I learned very recently that emerge will
> accept a directory name and rebuild all of the packages that install
> files there.  Maybe it won't help you but I'm looking for any excuse
> to use that new trick :)  (Some wise gentooer posted that revelation
> here in the last month or so and I can't recall who it was, sorry.)
> 

Well, I did some poking around and googling, and it does appear like a
configuration issue. I'm in the middle of syncing right now, hopefully
an update will fix it.

Others reported issues of not being able to log in at all.

One other thing I noticed is my crons stopped running around the same
time, I'll bet it's related.

Dan



Re: [gentoo-user] Re: pam_get_uid: no such user

2013-02-13 Thread Daniel Frey
On 02/13/2013 02:51 PM, walt wrote:
> 
> For sure there is no user named auth on my machines, so something must be
> wrong somewhere.  Just for fun I ran "emerge -p /etc/pam.d/ and got this:
> 
> #emerge -p /etc/pam.d/
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R] sys-auth/pambase-20120417-r1 
> [ebuild   R] sys-apps/shadow-4.1.5.1-r1 
> [ebuild   R] net-mail/mailbase-1.1 
> [ebuild   R] app-admin/sudo-1.8.6_p6 
> [ebuild   R] sys-auth/polkit-0.110 
> [ebuild   R] sys-apps/openrc-0.11.8 
> [ebuild   R] net-print/cups-1.6.1 
> [ebuild   R] net-misc/openssh-6.1_p1-r1 
> [ebuild   R] net-fs/samba-3.6.12 
> 
> I mention this mostly because I learned very recently that emerge will
> accept a directory name and rebuild all of the packages that install
> files there.  Maybe it won't help you but I'm looking for any excuse
> to use that new trick :)  (Some wise gentooer posted that revelation
> here in the last month or so and I can't recall who it was, sorry.)
> 

I've poked into this a bit more, and every 60 seconds 5 attempts at
logon are being made. I am thinking that the install is corrupted now -
I had a SSD fail in this machine, and I was able to recover the data off
of it. I'm now thinking that maybe wasn't such a good idea...

I've tried disabling cron and it still does it, and my crons are not
running still, so I'm thinking something is borked on the box.

This weekend I'll reformat & reinstall.

Dan



Re: [gentoo-user] pam_get_uid: no such user

2013-02-14 Thread Daniel Frey
On 02/13/2013 08:56 PM, Stroller wrote:
> 
> On 14 February 2013, at 04:13, Daniel Frey wrote:
>> ...
>> I've poked into this a bit more, and every 60 seconds 5 attempts at
>> logon are being made… This weekend I'll reformat & reinstall.
> 
> Excuse me if this is a dumb question, but does this machine have any ports 
> open to the internet?
> 
> This thread reminds me of how we sometimes hear of logfiles full of many ssh 
> attempts made by script kiddies and botnets.
> 
> Stroller.
> 
> 

This particular machine doesn't have ssh/xinetd or the like routed from
outside the local LAN.

I scoured through the logs and the problem started Jan 29th (this is the
day my SSD died.)

I have set up xinetd to spawn remote desktop sessions to X (again, not
from outside the LAN) and I noticed that these errors started right
after the first kernel boot from the replacement drive (rust-based, but
should make no difference.) The errors started immediately after xinetd
started.

I am thinking that the data I recovered from that SSD was not so reliable.

I think I'm going to oneshot libtool and gcc and do an emerge -e world.
I'll then check my xinetd configs. If that doesn't work I'll have to
reformat & reinstall (which will be a pain in the ass, this machine is
also my mythtv backend!)

I went through netstat and checked & doublechecked my router and there's
no forwarding of ports related to ssh or the like. I do have on port
forwarded for rtorrent but that's it.

At this point I'm 99.99% positive it's related to my SSD "crash".

Dan



Re: [gentoo-user] Delayed update semantics

2013-02-14 Thread Daniel Frey
On 02/14/2013 11:26 AM, James wrote:
> Hello,
> 
> Context: Stable Systems with a few newer packages
> (unmasked) in portage.
> 
--snip--
> 
> So, my latest ideas is to "sync up" and then wait one week
> before acutally installing those new packages. This would
> allow the fodder that the good folks on this list catch,
> bitch about (um, I mean file bug reports) and fix, to 
> occur first; then I can complete the package update
> cautiously avoiding an "emerge sync".

I suppose you could set up a weekly cron job (say on a Saturday) to do
something like:

emerge -fuDN world > proposed_change.txt

Then a few days later (say Wednesday?) email that file to yourself so
you know what changes are being proposed. This will give you a
"snapshot" in email of changes week-to-week. I've done this before and
you'll just get output like this (in this case, I did mythtv only, not
world):

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

Calculating dependencies   done!
[ebuild   R   ~] media-tv/mythtv-0.26.0_p20130121


You can then manually apply the updates.

> 
> But when you "emerge sync" if to do the updates immediately, they'll be
> the latest packages. If I do a "emerge sync" and wait
> 7 days to begin updating the packages, I'll be delayed
> by one week, and have a one week  of buffered fixes for added
> problem filtering. But those fixes might not be available
> without a fresh "emerge sync"?

Yep, but if you set up an email above, you'll know which versions are
proposed and you can even search for problems beforehand. Additionally,
because you now have an email copy of it, you could probably set up
grep/awk/head/tail/etc to strip out everything but the package prefixed
with an '=' so it only pulls those packages. This way even if it syncs
again on its cron, you'll still have a list of packages, but this
doesn't help if the sync removes existing packages from portage (which
can happen.)

> 
> 
> When time permits I CAN CHOOSE to "emerge sync" and then immediately
> update the packages and parse through the issues mostly. Call
> this the stable-stable approach to gentoo updates.

Yep, but it's still work. Especially if you forgot one week and have to
update the packages manually.

> I'm increasingly managing more Gentoo systems, particularly embedded
> and server based gentoo systems and that is the source that compounds these
> time-sink-issues for me.  Maybe some external-integrated management approach
> such as CFengine is my answer?

CFEngine? I didn't even know what that was until now. I've usually just
used tools readily available on most installs that didn't require extra
software.

Dan




Re: [gentoo-user] pam_get_uid: no such user

2013-02-14 Thread Daniel Frey
On 02/14/2013 04:15 PM, Adam Carter wrote:
> This particular machine doesn't have ssh/xinetd or the like routed from
> 
> outside the local LAN.
> 
> 
> Unless someone made a mistake with the config somewhere. Run tcpdump to
> be sure.

I just installed tcpdump and checked. During the burst of 5 login
attempts there's no network activity. I tried both interfaces.

It must be something local on the PC that's trying to get access, at
least I know it's not a remote attack.

Dan



Re: [gentoo-user] pam_get_uid: no such user

2013-02-15 Thread Daniel Frey
On 02/14/2013 04:15 PM, Adam Carter wrote:
> This particular machine doesn't have ssh/xinetd or the like routed from
> 
> outside the local LAN.
> 
> 
> Unless someone made a mistake with the config somewhere. Run tcpdump to
> be sure.

Well, an `emerge -1 libtool glibc gcc && emerge -e world` fixed the
problem completely. Now that I went through that I'll have to get a
proper backup!

Dan




Re: [gentoo-user] Restart "frozen" X

2013-02-27 Thread Daniel Frey
On 02/26/2013 07:18 PM, Joseph wrote:
> I'm running Nvidia driver: 310.32 with my GeForce GTS 450 kernle-3.1.6
> 
> but I've noticed it freezes my screen once a day or ever second day.
> Mouse is moving but no icon is responding, nor can I use the keyboard
> (all frozen).
> 
> I can login to the system over ssh.  I've tried to restart/zap "xdm" it
> doesn't help.
> What else can I do to restart "X"?
> 

If downgrading nvidia-drivers doesn't help check your power supply. My
computer exhibited this issue a while back because the voltages went all
wonky and the hardware really didn't like it - I could still ssh in from
my tablet but the entire computer appeared frozen.

If I just ran at the console (ie not starting X) the computer would work
fine all day.

I don't know what nvidia card you have but mine requires two extra power
connectors but the PSU just couldn't supply enough power to keep the GPU
stable.

Dan



Re: [gentoo-user] problems with kde 4.10.0

2013-02-27 Thread Daniel Frey
On 02/26/2013 07:13 PM, luis jure wrote:
> 
> hello list,
> 
> i use xfce, but i have several kde applications (k3b, digikam, tellico).
> after upgrading to kde 4.10.0 i had problems with all my kde apps. 
> 
> i receive similar error messages saying that the application couldn't
> create the I/O slave and "Klauncher returned: Error loading «kio_file»"
> 
> after downloading to 4.9.5 everything went back to normal.
> 
> has anyone experienced similar problems?
> 
> 
> best,
> 
> 
> lj
> 

Have you tried updating your whole system and possibly a revdep-rebuild?

I remember one KDE upgrade I did quite a while ago did something like
that and revdep-rebuild fixed it. I think it had to recompile kdelibs
and something else but your case may be different.

Dan



Re: [gentoo-user] wanrouter modprobe

2013-03-07 Thread Daniel Frey
On 03/07/2013 09:23 AM, Tamer Higazi wrote:
> Hi people!
> I have tried to install the latest release of wanpipe through the
> freeswitch overlay, which I did so far successfully. Shortly I have
> realised, that the "wanrouter" module is not loadable. When I try to
> load it I get the following error:
> 
> office / # modprobe wanrouter
> modprobe: ERROR: could not insert 'wanrouter': Exec format error
> 
> 
> What could it be?!
> 

It sounds like the kernel doesn't know how to run the binary. I don't
have experience with this particular error, but maybe running

`file wanrouter.ko`

and checking to see what it says may be of help.

It should tell you what executable format it is using, then you'd need
to cross-reference in the kernel .config to make sure you have support
for that executable format compiled in.

Dan



Re: [gentoo-user] Is my SSD dying?

2017-09-06 Thread Daniel Frey
On 09/06/2017 03:01 AM, Peter Humphrey wrote:
>> At the same time I have seen this exact situation fixed by a firmware
>> upgrade. Still, this seems more alarming than the other issues you've
>> described.
> 
> Do you mean the firmware of the NVMe drive? How would I go about that? I 
> don't see any mention of firmware on Samsung's site.
> 

I mentioned the same in an earlier post, but unfortunately it seems
Samsung's Magician software is required to do this (Windows application.)

Dan



Re: [gentoo-user] Unlocking Plasma desktop in Gentoo without systemd

2017-09-11 Thread Daniel Frey

On 09/11/2017 10:49 AM, Mick wrote:

I started a plasma session and after some period of input inactivity I noticed
the screen blanked out.  Later on I moved the mouse and to my surprise I
obtained this message:
*
"The screen locker is broken and unlocking is not possible anymore.
In order to unlock switch to a virtual terminal (e.g. Ctrl+Alt+F2),
log in and execute the command:

loginctl unlock-sessions

Afterwards switch back to the running session (Ctrl+Alt+F7)."
*

Given this is a non-systemd Gentoo installation and I intend to keep it this
way as long as reasonably practicable, what should I instruct the user to do
to recover their current plasma session?


Are you updating KDE? I always run into this issue when updating KDE, so 
I now turn off the screen lock before I commence updating.




If this is a default Gentoo installation with openrc, why does a default
plasma desktop screenlocker comes up with this nonsense?



Because KDE expects people to use systemd, a bug was raised regarding 
this issue, and the developers basically said you're on your own 
(RESOLVED: WONTFIX):


https://bugs.kde.org/show_bug.cgi?id=360489

According to a comment in the bug, you can try to figure out which 
session it is (ck-list-sessions) and look for the X11 display property 
set. This will not work (or could be difficult) if you have several 
users using KDE at the same time and can't tell the sessions apart.


Once you figure that out, remember the session name and:

# su -c 'dbus-send --system --print-reply \
--dest="org.freedesktop.ConsoleKit" \
 /org/freedesktop/ConsoleKit/ \
org.freedesktop.ConsoleKit.Session.Unlock'

This worked on my laptop running openrc. I now just disable the locker 
before doing updates.


Dan



Re: [gentoo-user] locale no longer recognised by Plasma and KDE apps?

2017-09-16 Thread Daniel Frey

On 09/16/2017 12:24 AM, Frank Steinmetzger wrote:


I’m on openrc, too, and my user details dialog only shows “New user”.
Neither my own account nor the guest account that I added a few days back
is visible. Clicking on the [+] at the bottom has no effect at all.



The machine I'm on right now is systemd, and I don't see a list of users 
in the User Details part of the control panel either. Maybe it's just a 
KDE thing?


Dan




Re: [gentoo-user] Thunderbird build failure

2017-09-24 Thread Daniel Frey

On 09/23/2017 10:55 PM, Christoph Böhmwalder wrote:


Thanks for the suggestion Stephano. I tried re-emerging libpng and 
running a clean Thunderbirs build overnight, however it still fails with 
the same message.


--

Regards,
Christoph


I had a similar problem but it was a while ago (a couple years.) I seem 
to recall that one of the packages didn't clean up properly after an 
unmerge/depclean and left behind some remnants that nothing owned.


My memory is pretty hazy, but I remember having to see what libpng 
needed (using ldd) and making sure there were no erroneous libraries around.


Have you done a --depclean recently? Have you tried `revdep-rebuild`? It 
may fix the problem first.


Otherwise, try issuing `ldd /usr/lib/libpng16.so.16`. Then see what 
versions are installed by `equery list media-libs/libpng sys-libs/zlib`.


Then manually check the libs directory (use the ldd output, it will show 
paths) to make sure there's no old libraries hanging around:


`ls /lib64/libz*`

You can see if it's owned by a package by using `equery belongs 
/lib/libz.so`.


I think what happened in my case is an old library was there that didn't 
belong to any package and that's what the linker used (and failed.)


Dan



[gentoo-user] perl-cleaner always wants to rebuild certain packages

2017-10-09 Thread Daniel Frey

I updated a machine today, it's fully up to date and depclean'ed.

For some reason, perl-cleaner consistantly wants to rebuild some packages:


# perl-cleaner --all
 * Removing perl-core packages from world file
 *emerge --deselect  perl-core/File-Path perl-core/File-Temp
>>> No matching atoms found in "world" favorites file...
 * Updating installed Perl virtuals
 *emerge -u1  virtual/perl-Carp virtual/perl-Compress-Raw-Bzip2 
virtual/perl-Compress-Raw-Zlib virtual/perl-CPAN-Meta 
virtual/perl-CPAN-Meta-YAML virtual/perl-Data-Dumper 
virtual/perl-Digest-MD5 virtual/perl-Digest-SHA virtual/perl-Encode 
virtual/perl-Exporter virtual/perl-ExtUtils-CBuilder 
virtual/perl-ExtUtils-Install virtual/perl-ExtUtils-MakeMaker 
virtual/perl-ExtUtils-Manifest virtual/perl-ExtUtils-ParseXS 
virtual/perl-File-Path virtual/perl-File-Spec virtual/perl-File-Temp 
virtual/perl-Getopt-Long virtual/perl-IO virtual/perl-IO-Compress 
virtual/perl-JSON-PP virtual/perl-libnet virtual/perl-MIME-Base64 
virtual/perl-Module-Metadata virtual/perl-parent 
virtual/perl-Parse-CPAN-Meta virtual/perl-Perl-OSType 
virtual/perl-Scalar-List-Utils virtual/perl-Storable 
virtual/perl-Sys-Syslog virtual/perl-Term-ANSIColor 
virtual/perl-Test-Harness virtual/perl-Text-ParseWords 
virtual/perl-Time-HiRes virtual/perl-Time-Local virtual/perl-version 
virtual/perl-XSLoader

Calculating dependencies... done!
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * Beginning a clean up of .ph files
 * Excluding files for 5.24.1 and 5.24.1/x86_64-linux from cleaning

 * Locating ph files for removal

 * Locating packages for an update
 * Locating ebuilds linked against libperl
 *   Adding to list: sys-apps/texinfo:0
 *   Adding to list: www-apache/mod_perl:1
 *   Adding to list: net-irc/irssi:0
 * emerge -v1 --backtrack=200 --selective=n sys-apps/texinfo:0 
www-apache/mod_perl:1 net-irc/irssi:0



==

I've rebuilt them twice already, and ran perl-cleaner again to see if it 
cleared, but it still wants to rebuild them. What is perl-cleaner 
looking for when it decides something needs to be rebuilt?


Perl version:

# equery list perl
 * Searching for perl ...
[IP-] [  ] dev-lang/perl-5.24.1-r2:0/5.24

Dan



Re: [gentoo-user] perl-cleaner always wants to rebuild certain packages

2017-10-10 Thread Daniel Frey

On 10/10/2017 11:30 AM, Andreas K. Huettel wrote:

Am Dienstag, 10. Oktober 2017, 04:01:29 CEST schrieb Daniel Frey:

I updated a machine today, it's fully up to date and depclean'ed.

For some reason, perl-cleaner consistantly wants to rebuild some packages:



   * Locating packages for an update
   * Locating ebuilds linked against libperl
   *   Adding to list: sys-apps/texinfo:0
   *   Adding to list: www-apache/mod_perl:1
   *   Adding to list: net-irc/irssi:0
   * emerge -v1 --backtrack=200 --selective=n sys-apps/texinfo:0
www-apache/mod_perl:1 net-irc/irssi:0



It's most likely a bug in perl-cleaner (not fixed yet because other stuff is
more important atm). Running it once should be enough.



Great, thanks for the clarification. I found reports for texinfo but 
nothing for the other two.


Dan



[gentoo-user] Why I can't I build systemd without ipv6?

2017-10-13 Thread Daniel Frey
I switched ISPs a couple months back and have been struggling with 
networking issues (not LAN, just WAN.)


I have discovered that something is broken with my ISP's ipv6 support, 
every time I go to a website there's a 10-second delay. When syncing 
portage today I saw what the delay is: apparently it tries ipv6 twice, 
fails, then resorts to ipv4 which works fine.


Most of my systems now have ipv6 support removed, and viola! no more 
delays.


Except for the three systems I have that run systemd. I went in the 
kernel config to disable ipv6, and it won't let me - looking at the 
dependency list, it's systemd blocking this.


So *why* on earth is it a dependency when (from what I've been reading 
after discovering this) many ISPs don't seem to support it properly yet?


And is there a way to build systemd without ipv6? Or am I going to have 
to revert these three systems back to openrc?


Dan



Re: [gentoo-user] Why I can't I build systemd without ipv6?

2017-10-13 Thread Daniel Frey

On 10/13/2017 10:41 AM, Jack wrote:
Pretty much stabbing in the dark, but can you disable ipv6 somewhere in 
network configuration?   Can you compile it into the kernel as a module, 
and then blacklist it so it doesn't get loaded?


Jack


That's a good idea, I didn't think of that. Now that I've calmed down a 
bit... I went in the kernel config and it won't let me set it as a 
module, it's built-in only. I stepped back a bit to see if earlier in 
the tree I could switch it to a module but it doesn't appear to be an 
option.


Dan



Re: [gentoo-user] Why I can't I build systemd without ipv6?

2017-10-13 Thread Daniel Frey

On 10/13/2017 10:41 AM, dan...@sonck.nl wrote:
IPv6 compiled into systemd is most likely for systemd-networkd. If 
you're not using that part it shouldn't be a problem. If you're using 
systemd-networkd, you can configure it to not do IPv6.


But, I would recommend configuring your system to not use IPv6 instead 
of removing support. That should prevent most programs from trying IPv6.




I also had a similar problem with my previous ISP, and found even if I 
configured it to not use ipv6, it didn't work, which is why I set 
USE="-ipv6" and removed support from the kernel completely.


Someone else suggested building it as a module and blacklisting the 
module, but for some reason I can't set ipv6 to be a module, it won't 
let me toggle it.


Dan




Re: [gentoo-user] Why I can't I build systemd without ipv6?

2017-10-13 Thread Daniel Frey

On 10/13/2017 11:34 AM, Mike Gilbert wrote:

On Fri, Oct 13, 2017 at 1:29 PM, Daniel Frey  wrote:

I switched ISPs a couple months back and have been struggling with
networking issues (not LAN, just WAN.)

I have discovered that something is broken with my ISP's ipv6 support, every
time I go to a website there's a 10-second delay. When syncing portage today
I saw what the delay is: apparently it tries ipv6 twice, fails, then resorts
to ipv4 which works fine.

Most of my systems now have ipv6 support removed, and viola! no more delays.

Except for the three systems I have that run systemd. I went in the kernel
config to disable ipv6, and it won't let me - looking at the dependency
list, it's systemd blocking this.

So *why* on earth is it a dependency when (from what I've been reading after
discovering this) many ISPs don't seem to support it properly yet?

And is there a way to build systemd without ipv6? Or am I going to have to
revert these three systems back to openrc?


Instead of stripping IPv6 out of your kernel, I would suggest that you
simply disable it on any network interfaces. How you do this would
depend on the method you use to manager your network config.


I have tried this, I set a static ipv4 IP on one machine and set it to 
not configure ipv6 at all. I still have a delay on this machine, but now 
it's not obvious what they delay is.




If you really want to remove IPv6 from your kernel, simply disable the
GENTOO_LINUX_INIT_SYSTEMD config option, and enable the other other
dependencies manually.

https://gitweb.gentoo.org/proj/linux-patches.git/tree/4567_distro-Gentoo-Kconfig.patch#n106



I am going to try what Canek suggested and disable it on the kernel 
command line, but as the machine are currently updating I'll wait until 
they're done, then I'll try it. If it doesn't work then I'll set it up 
manually.


Dan



Re: [gentoo-user] Why I can't I build systemd without ipv6?

2017-10-13 Thread Daniel Frey

On 10/13/2017 11:05 AM, Canek Peláez Valdés wrote:


Have you tried to boot the systems with  the "disable_ipv6=1" kernel 
parameter?




I haven't, thanks for the tip. I'll wait until the machine finish 
updating and try that before messing around with the kernel config.


Dan




Re: [gentoo-user] Re: Why I can't I build systemd without ipv6?

2017-10-13 Thread Daniel Frey

On 10/13/2017 10:50 AM, Grant Edwards wrote:

On 2017-10-13, Daniel Frey  wrote:



And is there a way to build systemd without ipv6? Or am I going to have
to revert these three systems back to openrc?

  ^^

You misspelled "upgrade".

;)



That depends. One one of the three machines, I reported a bug about 
mdmon terminating too early in the shutdown process causing mdadm to 
mark my IMSM raid as dirty.


I had a workaround posted, but some time back it stopped working, so I 
tried systemd and haven't had that problem since. I really don't want to 
mess around with that again, having a resync'ing RAID on every reboot is 
tiresome and it thrashes the disks for no good reason. Not to mention it 
makes the system so slow for a few hours you can't even use it.


The other two I could switch, I think, without to much issues if it came 
down to it.


Dan



Re: [gentoo-user] Why I can't I build systemd without ipv6?

2017-10-13 Thread Daniel Frey

On 10/13/2017 12:02 PM, Rich Freeman wrote:

Just to expand a bit on this - the Gentoo-added service manager kernel
options are purely for convenience.  If you don't use gentoo-sources
you won't see them at all, because they're not part of the upstream
kernel.  All they do is pull in a bunch of other options.  Back in the
"good old days" people would look at the wiki (or pre-wiki) page for
openrc, see a list of mandatory kernel options, and set those options
when building their kernel.  Then somebody had the clever idea that it
would be easier for users to not shoot themselves in the foot if we
just gave a one-click option that set all the requirements
automatically.  However, the kernel configuration settings doesn't
really have any concept of "optional dependencies" - so we're stuck
with either not pulling in ipv6, which mostly works, or pulling it in,
which always works.

It is completely safe to answer no to whether you use systemd and
openrc, and then just manually answer yes to the things that you need.
Just keep in mind that you may run into issues if you don't enable
something that is truly mandatory, or you might have diminished
functionality.  It also means that you need to keep your ears open for
when the requirements change, since there won't be a Gentoo automagic
kernel config setting to change things for you.  That said, running an
upstream kernel isn't really that big a deal - I do that since I run
btrfs and zfs and want to have a bit more control over which series
I'm running to mitigate the bugs.



That's good to know. I've been running gentoo-sources since 2003 or so. 
This is the only time I've noticed a problem, and thanks to the link 
that Mike posted if all else fails I'll turn off the automagic and 
configure things manually.


My networks are (were?) taken care of by networkmanager, but now that 
systemd is gone on more machines there's really no reason to keep it around.


Dan



Re: [gentoo-user] Re: Why I can't I build systemd without ipv6?

2017-10-13 Thread Daniel Frey

On 10/13/2017 02:48 PM, Grant Edwards wrote:

On 2017-10-13, Vadim A. Misbakh-Soloviov  wrote:


Well, actually, you was alread adviced about some working methods of
solving your issue (both right and wrong ones, but it is anyway your
decision to take ones to use), so I'll just clarify the simple
thing:

You can suffer on such problems in relation to IPv6 **ONLY** in the
case when your ISP **DO** have IPv6 support (say, announce IPv6
preffix to you via SLAAC or DHCPv6), but having **BROKEN** IPv6
routing.


It might not be the ISP that's broken.  It might be the user's
firewall/router.  A lot of the cheap consumer models are starting to
"support" IPv6 by default when it appears to them that the ISP
supports IPv6. But, the default IPv6 firewall/router settings aren't
always usable.



I'm currently using the ISP provided router, as I don't have anything 
ATM that can handle 150 mbps symmetrical.


Dan




Re: [gentoo-user] Why I can't I build systemd without ipv6?

2017-10-13 Thread Daniel Frey

On 10/13/2017 11:05 AM, Canek Peláez Valdés wrote:


Have you tried to boot the systems with  the "disable_ipv6=1" kernel 
parameter?




I just tried this, and it doesn't seem to help.

# cat /proc/cmdline
disable_ipv6=1 root=/dev/md126p3 rd.auto=1 quiet rootfstype=ext4 
init=/usr/lib/systemd/systemd


But:

# dmesg | grep -i ipv6
[   22.218113] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.241260] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   26.421072] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


I'll have to try a different solution later on. First I need to figure 
out why my nfs mounts aren't mounting on that PC, but that belongs in a 
different thread. I don't want to break things any more until that's fixed.


Dan



[gentoo-user] systemd fails to mount nfs4 mounts

2017-10-13 Thread Daniel Frey
I discovered that after my update the other day (systemd is up to date 
as of Wednesday) that my remote nfs mounts are failing on startup.


(Note: as per my other thread, I haven't tried to disable ipv6 yet. I 
want to figure this out first.)


I use an IMSM raid with an initramfs provided by dracut.

I have also set:

 NetworkManager-wait-online.service 
   loaded active exitedNetwork Manager 
Wait Online


to wait until networkmanager starts up, and it appears to be working.

When booting, something complains about the module sunrpc not being able 
to be loaded. However, everything I've selected relating to nfs is built 
directly into the kernel, so there shouldn't be external modules to 
begin with.


After logging in, dropping to the shell and manually mounting these nfs 
mounts work.


systemctl status:
● mnt-nas-Pictures.mount 
   loaded failed failed 
/mnt/nas/Pictures


status:

# systemctl status mnt-nas-Pictures.mount
● mnt-nas-Pictures.mount - /mnt/nas/Pictures
   Loaded: loaded (/etc/fstab; generated; vendor preset: disabled)
   Active: failed (Result: timeout) since Fri 2017-10-13 14:51:08 PDT; 
17min ago

Where: /mnt/nas/Pictures
 What: nas:/Pictures
 Docs: man:fstab(5)
   man:systemd-fstab-generator(8)
  Process: 781 ExecMount=/bin/mount nas:/Pictures /mnt/nas/Pictures -t 
nfs4 -o rw,defaults,_netdev,intr,bg (code=killed, signal=TERM)


Oct 13 14:49:37 myboringpc systemd[1]: Mounting /mnt/nas/Pictures...
Oct 13 14:51:08 myboringpc systemd[1]: mnt-nas-Pictures.mount: Mounting 
timed out. Stopping.
Oct 13 14:51:08 myboringpc systemd[1]: mnt-nas-Pictures.mount: Mount 
process exited, code=killed status=15

Oct 13 14:51:08 myboringpc systemd[1]: Failed to mount /mnt/nas/Pictures.
Oct 13 14:51:08 myboringpc systemd[1]: mnt-nas-Pictures.mount: Unit 
entered failed state.


So it is saying it was killed. When booting up, systemd sits waiting for 
a start job for two minutes. I rebooted and checked again, and it said 
it timed out. I can see it's waiting for Network Manager Wait Online, 
then it tries to mount the nfs shares.


I presume this means the network is not ready. As I mentioned above, 
logging in and manually mounting is working fine.


Anyone have any suggestions? Of course I didn't notice this until I 
tried to sync pictures from my phone...


Dan



Re: [gentoo-user] Plasma5: Missing shutdown, restart and suspend button

2017-10-13 Thread Daniel Frey

On 10/13/2017 03:10 PM, Ramon Fischer wrote:

Hello everyone,

I successfully installed Gentoo with Plasma5 for the first time on first 
try (yay!) and now I am going to fix stuff and ran into an issue with 
missing buttons in the kde menu as mentioned in the subject.


I followed all these instructions: https://wiki.gentoo.org/wiki/KDE
One guess is that it could be OpenRC because I actually selected the 
systemd profile for kde.


I am done with my debug-fu at this point. :)

In the attachment you will find a lot of information. Customized parts 
are marked with "# custom".


Thanks!
-Ramon


Are you using openrc? It is possible it's looking for systemd to provide 
the shutdown and reboot options.


If you're not using systemd, switch to the non-systemd plasma profile 
and issue `emerge -auDN world`.


Dan



Re: [gentoo-user] Why I can't I build systemd without ipv6?

2017-10-14 Thread Daniel Frey

On 10/14/2017 12:37 AM, Tom H wrote:

On Fri, Oct 13, 2017 at 5:58 PM, Daniel Frey  wrote:

On 10/13/2017 11:05 AM, Canek Peláez Valdés wrote:


Have you tried to boot the systems with  the "disable_ipv6=1" kernel
parameter?


I just tried this, and it doesn't seem to help.

# cat /proc/cmdline
disable_ipv6=1 root=/dev/md126p3 rd.auto=1 quiet rootfstype=ext4
init=/usr/lib/systemd/systemd

But:

# dmesg | grep -i ipv6
[   22.218113] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.241260] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   26.421072] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


it's "ipv6.disable_ipv6=1" not "disable_ipv6=1".



Argh, I shouldn't have assumed that it was the full parameter. Oh well, 
on that machine, I managed to switch back to openrc. That didn't go real 
smoothly, portage couldn't figure out how to do it on it's own after 
switching profiles, it was blindly removing and rebuilding some packages 
manually that eventually made it work and not want to pull in systemd again.


After that, I was able to reconfigure the kernel without ipv6 at all... 
rebooted... and openrc Just Worked(tm) with my network issue gone.


For the other two, I'll try again but this time with the proper kernel 
parameter. That could've saved me a lot of time, but oh well.


Dan



Re: [gentoo-user] Re: Why I can't I build systemd without ipv6?

2017-10-14 Thread Daniel Frey

On 10/14/2017 04:05 AM, Mick wrote:

On Friday, 13 October 2017 22:55:50 BST Daniel Frey wrote:

On 10/13/2017 02:48 PM, Grant Edwards wrote:

On 2017-10-13, Vadim A. Misbakh-Soloviov  wrote:

Well, actually, you was alread adviced about some working methods of
solving your issue (both right and wrong ones, but it is anyway your
decision to take ones to use), so I'll just clarify the simple
thing:

You can suffer on such problems in relation to IPv6 **ONLY** in the
case when your ISP **DO** have IPv6 support (say, announce IPv6
preffix to you via SLAAC or DHCPv6), but having **BROKEN** IPv6
routing.


It might not be the ISP that's broken.  It might be the user's
firewall/router.  A lot of the cheap consumer models are starting to
"support" IPv6 by default when it appears to them that the ISP
supports IPv6. But, the default IPv6 firewall/router settings aren't
always usable.


I'm currently using the ISP provided router, as I don't have anything
ATM that can handle 150 mbps symmetrical.

Dan


I'm guessing the delay is due to DNS resolution missing of being misconfigured
somewhere in your/your ISPs network.  Could you tweak your router's DNS
resolver addresses to point to OpenDNS resolvers, or some such if your ISP's
are not working properly?



No, the DNS was working. It was trying to connect to a specific ipv6 
address to sync, and failing (twice.)


That's what I initially thought too, but checked name resolution and it 
was returning proper addresses.


I even thought (before I started to remove systemd from my old laptop) I 
could save time by disabling ipv6 on the ISP router (my cell phone 
suffers the same delay), but then it wouldn't even connect to their network.


Dan



Re: [gentoo-user] Why I can't I build systemd without ipv6?

2017-10-14 Thread Daniel Frey

On 10/13/2017 01:58 PM, Vadim A. Misbakh-Soloviov wrote:

So, ideally, you **SHOULD NOT** disable IPv6 on your side, but shame your ISP
support line (for either broken IPv6 routing or not having VLAN per customer,
depends on the real case) instead.



I don't want to waste hours/days/weeks trying to get past tier 1 
support. I've tried this before (I've had this ISP over 10 years ago.)


Dan



Re: [gentoo-user] Key reinstallation attack on WPA2 - new vulnerability discovered

2017-10-19 Thread Daniel Frey

On 10/19/2017 11:35 AM, Mick wrote:

In case you are not aware of this vulnerability:

https://www.krackattacks.com/

https://bugs.gentoo.org/634440



I read this the other day. It seems that pretty much all devices are 
affected by this. I'm curious to know how many Android handsets will 
actually get fixed.


Apparently if one of the client or AP is patched it is better but not 
completely fixed. So now I wonder of all those old home routers that 
probably haven't had a firmware update ever.


Then what about all the crappy IoT devices which rarely update? Ugh.

This is really nasty.

Looks like Google is working on it, so is Apple, Microsoft, and a bunch 
of other vendors.


There looks to be a patch for my UBNT AP already. I read yesterday 
Microsoft is advising people to update Windows to get the fix.


Ugh, I can hear people asking me questions about this already.

Having a CVE on pretty much every wifi device in existence... Wow.

Dan



Re: [gentoo-user] Alternatives to knutclient

2017-10-28 Thread Daniel Frey

On 10/28/2017 01:58 AM, Mick wrote:

Hi All,

I've been using the net-misc/knutclient GUI application to provide information
to desktop users of the state of the UPS.  Portage is telling me this package
depends on Qt4, it has received no development upstream and is due to be
ditched:

!!! The following installed packages are masked:
- net-misc/knutclient-1.0.5::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Andreas Sturmlechner  (21 Oct 2017)
# Dead upstream, depends on dead kdelibs4/Qt4.
# Masked for removal in 30 days. Bug #629018

Is there some other GUI front end for nut in portage I could use in its place?



Have you tried the one that comes with the nut package? There should be 
one installed with it. Although, I can't remember if it docks in the tray.


Dan



Re: [gentoo-user] Alternatives to knutclient

2017-10-28 Thread Daniel Frey

On 10/28/2017 09:48 AM, Mick wrote:

On Saturday, 28 October 2017 15:18:26 BST Daniel Frey wrote:

On 10/28/2017 01:58 AM, Mick wrote:

Hi All,

I've been using the net-misc/knutclient GUI application to provide
information to desktop users of the state of the UPS.  Portage is telling
me this package depends on Qt4, it has received no development upstream
and is due to be ditched:

!!! The following installed packages are masked:
- net-misc/knutclient-1.0.5::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Andreas Sturmlechner  (21 Oct 2017)
# Dead upstream, depends on dead kdelibs4/Qt4.
# Masked for removal in 30 days. Bug #629018

Is there some other GUI front end for nut in portage I could use in its
place?

Have you tried the one that comes with the nut package? There should be
one installed with it. Although, I can't remember if it docks in the tray.

Dan


Thanks Dan,

 From what I see here there are number of GUI interfaces and NUT-Monitor
seems to be the application built in nut:

http://networkupstools.org/projects.html#_graphical_desktop_clients

However, I'm not sure it was built in my case:

$ find /usr/bin -iname *nut*
/usr/bin/binutils-config
/usr/bin/nut-scanner
/usr/bin/knutclient

This is how I built nut:

  Installed versions:  2.7.3(12:42:59 18/04/17)(ssl tcpd ups_drivers_al175
ups_drivers_apcsmart ups_drivers_apcsmart-old ups_drivers_apcupsd-ups
ups_drivers_bcmxcp ups_drivers_bcmxcp_usb ups_drivers_belkin
ups_drivers_belkinunv ups_drivers_bestfcom ups_drivers_bestfortress
ups_drivers_bestuferrups ups_drivers_bestups ups_drivers_blazer_ser
ups_drivers_blazer_usb ups_drivers_clone ups_drivers_clone-outlet
ups_drivers_dummy-ups ups_drivers_etapro ups_drivers_everups
ups_drivers_gamatronic ups_drivers_genericups ups_drivers_isbmex
ups_drivers_ivtscd ups_drivers_liebert ups_drivers_liebert-esp2
ups_drivers_masterguard ups_drivers_metasys ups_drivers_mge-shut
ups_drivers_mge-utalk ups_drivers_microdowell ups_drivers_nutdrv_qx
ups_drivers_oldmge-shut ups_drivers_oneac ups_drivers_optiups
ups_drivers_powercom ups_drivers_powerpanel ups_drivers_rhino
ups_drivers_richcomm_usb ups_drivers_riello_ser ups_drivers_riello_usb
ups_drivers_safenet ups_drivers_solis ups_drivers_tripplite
ups_drivers_tripplite_usb ups_drivers_tripplitesu ups_drivers_upscode2
ups_drivers_usbhid-ups ups_drivers_victronups usb xml -cgi -ipmi -selinux -
snmp -ups_drivers_netxml-ups -ups_drivers_nut-ipmipsu -ups_drivers_snmp-ups -
zeroconf)

What am I missing?



Well, that's odd. I just built it and see nothing of the sort. I built 
it with all USE flags.


I am not using nut now, but I was trying it about a year ago. I did have 
a client (it wasn't knutclient), maybe it was removed from the tree. 
That's disappointing.


How much information do your users need? I'm running KDE5 with apcupsd 
and an APC UPS, and the battery monitor built in to KDE shows me that 
the battery is at 100% (it doesn't really say much else, though.)


Dan



[gentoo-user] Re: systemd fails to mount nfs4 mounts

2017-10-28 Thread Daniel Frey

On 10/13/2017 03:13 PM, Daniel Frey wrote:
I discovered that after my update the other day (systemd is up to date 
as of Wednesday) that my remote nfs mounts are failing on startup.


(Note: as per my other thread, I haven't tried to disable ipv6 yet. I 
want to figure this out first.)


I use an IMSM raid with an initramfs provided by dracut.

I have also set:

  NetworkManager-wait-online.service
loaded active exited    Network Manager Wait Online


to wait until networkmanager starts up, and it appears to be working.

When booting, something complains about the module sunrpc not being able 
to be loaded. However, everything I've selected relating to nfs is built 
directly into the kernel, so there shouldn't be external modules to 
begin with.


After logging in, dropping to the shell and manually mounting these nfs 
mounts work.


systemctl status:
● mnt-nas-Pictures.mount    loaded failed 
failed /mnt/nas/Pictures


status:

# systemctl status mnt-nas-Pictures.mount
● mnt-nas-Pictures.mount - /mnt/nas/Pictures
    Loaded: loaded (/etc/fstab; generated; vendor preset: disabled)
    Active: failed (Result: timeout) since Fri 2017-10-13 14:51:08 PDT; 
17min ago

     Where: /mnt/nas/Pictures
  What: nas:/Pictures
  Docs: man:fstab(5)
    man:systemd-fstab-generator(8)
   Process: 781 ExecMount=/bin/mount nas:/Pictures /mnt/nas/Pictures -t 
nfs4 -o rw,defaults,_netdev,intr,bg (code=killed, signal=TERM)


Oct 13 14:49:37 myboringpc systemd[1]: Mounting /mnt/nas/Pictures...
Oct 13 14:51:08 myboringpc systemd[1]: mnt-nas-Pictures.mount: Mounting 
timed out. Stopping.
Oct 13 14:51:08 myboringpc systemd[1]: mnt-nas-Pictures.mount: Mount 
process exited, code=killed status=15

Oct 13 14:51:08 myboringpc systemd[1]: Failed to mount /mnt/nas/Pictures.
Oct 13 14:51:08 myboringpc systemd[1]: mnt-nas-Pictures.mount: Unit 
entered failed state.


So it is saying it was killed. When booting up, systemd sits waiting for 
a start job for two minutes. I rebooted and checked again, and it said 
it timed out. I can see it's waiting for Network Manager Wait Online, 
then it tries to mount the nfs shares.


I presume this means the network is not ready. As I mentioned above, 
logging in and manually mounting is working fine.


Anyone have any suggestions? Of course I didn't notice this until I 
tried to sync pictures from my phone...


Dan


I'm still having this issue, anyone have any ideas? I can see that 
NetworkManager-Wait-Online finishes, and that the mounting starts 
immediately after, but I don't think the network is quite up yet, 
resulting an all nfs mounts to timeout.


The computer is using a static IP, so it shouldn't even be waiting for 
dhcp...


I booted into openrc, and they all mount properly. Does anyone have any 
idea even how to start troubleshooting this?


Dan





Re: [gentoo-user] Re: systemd fails to mount nfs4 mounts

2017-10-29 Thread Daniel Frey

On 10/28/2017 05:18 PM, Adam Carter wrote:


I'm still having this issue, anyone have any ideas? I can see that
NetworkManager-Wait-Online finishes, and that the mounting starts
immediately after, but I don't think the network is quite up yet,
resulting an all nfs mounts to timeout.

The computer is using a static IP, so it shouldn't even be waiting
for dhcp...

I booted into openrc, and they all mount properly. Does anyone have
any idea even how to start troubleshooting this?


I had this issue through some versions of systemd - but its fixed now 
(i'm on ~adm64). Version is systemd-235-r1.


Are you ~arch?


No, I run stable. Currently running:

[IP-] [  ] sys-apps/systemd-233-r4:0/2

Come to think of it, I'm going to look back and see if there was an 
update around the time I started having problems. Maybe there was a 
regression of some sort.


Dan



Re: [gentoo-user] Alternatives to knutclient

2017-10-30 Thread Daniel Frey

On 10/30/2017 03:15 AM, Mick wrote:

On Monday, 30 October 2017 09:10:07 GMT Peter Humphrey wrote:

Today's forecasts of doom are the result of 30 years of dithering by
governments of all stripes, neglecting to invest in new generation in spite
of its absolute indispensability.


I'll refrain from jumping into arguments on political neo-liberal decisions to
privatise utilities, which are /natural monopolies/ and how the
financialisation of our anglo-saxon economies has reduced the attention span
of corporations and the politicians funded by them to tomorrow morning's news
headlines.

The point of indispensability of centralised energy generation though may no
longer be as absolute as once was.  Microgeneration technologies and emerging
storage solutions could mean the future electricity grid resembles more of a
local mesh network, than the national scale infrastructure of the previous
century.

Now, I better look into finding a way to silence this new UPS fan which seems
to be going on 24/7 with or without load on it!  o_O



Some new UPS systems are designed to have the fan running all the time. 
I don't think it's a good idea to stop it...


Dan



Re: [gentoo-user] Alternatives to knutclient

2017-10-30 Thread Daniel Frey

On 10/30/2017 07:47 AM, Mick wrote:

On Monday, 30 October 2017 14:09:58 GMT Daniel Frey wrote:

On 10/30/2017 03:15 AM, Mick wrote:



Now, I better look into finding a way to silence this new UPS fan which
seems to be going on 24/7 with or without load on it!  o_O


Some new UPS systems are designed to have the fan running all the time.
I don't think it's a good idea to stop it...

Dan


Right, I suspect it is meant to be running all the time, at high speed when
running on battery and low speed at all other times.  This is a 2nd hand HP
T1000 G3 I bought cheaply, because many of the new entry level UPS appliances
being sold today are not fit for human consumption, judging by user reviews.



Yeah, I found that out. One of my UPSs crapped out after a power failure 
a couple weeks ago, then I realized it's from 2006...


I did some looking around (I had an APC) and all the APC branded crap 
you get in the stores are cheaper, inferior options. I found out the 
BX-prefixed models don't even have proper AVR (they only correct when 
the voltage drops below a certain point, they don't do anything in an 
overvoltage situation. The BR-prefixed models are like the old UPS of 
lore, they offer true AVR for both undervolt and overvolt situations, 
and the one I have even has an option for an extra battery pack for 
extended runtime (BR1500G.)


Basically anything in Best Buy, Staples, or similar stores is guaranteed 
to have the consumer BX model junk.


APC gave me a reseller that sold me the BR1500G model and it was about 
$50 more.


And as a bonus, it still works with apcupsd. I heard some newer APC 
models are using some new proprietary communication protocols. Never 
seen one in practice though, I wonder if that's the consumer junk I was 
reading about.


Dan



Re: [gentoo-user] Alternatives to knutclient

2017-10-30 Thread Daniel Frey

On 10/30/2017 12:33 PM, Daniel Frey wrote:
I did some looking around (I had an APC) and all the APC branded crap 
you get in the stores are cheaper, inferior options. I found out the 
BX-prefixed models don't even have proper AVR (they only correct when 
the voltage drops below a certain point, they don't do anything in an 
overvoltage situation. The BR-prefixed models are like the old UPS of 
lore, they offer true AVR for both undervolt and overvolt situations, 
and the one I have even has an option for an extra battery pack for 
extended runtime (BR1500G.)


I should add that at least APC designated the BX and BR models as 
different product lines... the BX models are known as Back-UPS XS 
models, and the BR line is knows as Back-UPS Pro models.


Dan



Re: [gentoo-user] Alternatives to knutclient

2017-10-30 Thread Daniel Frey

On 10/30/2017 12:40 PM, Rich Freeman wrote:

On Mon, Oct 30, 2017 at 3:33 PM, Daniel Frey  wrote:


I did some looking around (I had an APC) and all the APC branded crap you
get in the stores are cheaper, inferior options. I found out the BX-prefixed
models don't even have proper AVR (they only correct when the voltage drops
below a certain point, they don't do anything in an overvoltage situation.
The BR-prefixed models are like the old UPS of lore, they offer true AVR for
both undervolt and overvolt situations, and the one I have even has an
option for an extra battery pack for extended runtime (BR1500G.)

Basically anything in Best Buy, Staples, or similar stores is guaranteed to
have the consumer BX model junk.



This is my experience as well.  I went with a Cyberpower CP1500PFC and
have been very happy with it, and I think it falls into the
better-quality level of stuff (though I'm sure the server-oriented
stuff is better still if you're willing to pay).

I have no idea how long the battery will last but when it dies I'll
probably replace it.

The stuff sold in stores tends to be junk.



Yes, that's a good UPS, it's a pure sine wave UPS. APC makes those too, 
but generally in the server/enterprise class (thinking Smart-UPS among 
others) and not the home oriented market.


I figure for home use their better (best?) home oriented model should 
suffice. I don't have a picky power supply that needs a pure sine wave 
UPS, although I have realized a lot of newer power supplies strongly 
recommend a pure sine wave and not a stepped sine wave such as in the 
home models (the entry- and mid-models.)


From what I recall if your PSU buzzes while on battery, that's bad and 
your PSU is not happy...


Dan



Re: [gentoo-user] Re: systemd fails to mount nfs4 mounts

2017-11-01 Thread Daniel Frey

On 10/29/2017 08:15 AM, Daniel Frey wrote:
Come to think of it, I'm going to look back and see if there was an 
update around the time I started having problems. Maybe there was a 
regression of some sort.




So I bought a large SSD, and cloned to it. I'm not stuck with IMSM any 
more, but systemd still doesn't mount properly. Now that I don't have to 
deal with mdadm, I went back to openrc, and all is will. Although... it 
did take me a while to get rid of networkmanager.


Dan




Re: [gentoo-user] Re: systemd fails to mount nfs4 mounts

2017-11-01 Thread Daniel Frey

On 11/01/2017 02:12 PM, Wols Lists wrote:

What's the problem with mdadm and openrc?



openrc terminates mdmon too early and so every time I rebooted this 
machine when it had a RAID it marked the array as dirty and rebuilt it. 
The PC was not usable while it was rebuilding, it was so dang slow, not 
to mention extra wear and tear on the drives. I had a workaround to this 
but it stopped working so I went to systemd, which helped that problem, 
but systemd gave me new problems... like the inability to wait for a 
network to be up before mounting remote nfs drives. openrc handles this 
just fine, I have an old Mint install and it too worked fine without 
intervention. I spent a couple weeks trying to figure out why systemd 
refused to wait for networkmanager to bring the network up, I gave up.


The thing is it used to work with systemd, then there was a couple 
updates and it stopped working. I unmasked a newer version with the same 
results.


The best I got was systemd would sometimes mount half the remote nfs 
mounts and timeout on the other half.


Dan



Re: [gentoo-user] Instrumenting the GPU

2017-11-13 Thread Daniel Frey

On 11/13/17 02:59, Peter Humphrey wrote:

Hello list,

I'm hunting a problem with cooling in this box, and I've got as far as
suspecting my new AMD WX 5100 GPU.

One of my BOINC projects causes the GPU temperature, as shown by gkrellm, to
shoot up to 75C or more and cause intolerable system cooling noise. If I
suspend that project but leave the other seven running, the temperature
returns to what I hope is a normal 55C. Those seven projects are supposed to
use the GPU, but I'm not sure whether they do in fact.

Is there any way I can monitor what is using the GPU, to find out?



I don't know if there's a utility for consumer level cards that can do 
this. I do remember for Nvidia there's nvidia-smi but I don't think it 
will list processes for desktop cards.


The only other generic ones I can think of are cuda-z and gputop. Have 
you tried one of those? Although I don't think it'll give you the 
information you need either.


Dan



Re: [gentoo-user] Instrumenting the GPU

2017-11-13 Thread Daniel Frey

On 11/13/17 07:20, J. Roeleveld wrote:


I have a Geforce GTX 950 and it does show the processes.
Surprisingly, some desktop apps (not all) are also showing, must be linked to
some library.
Also shows the GPU memory usage.

--
Joost



My card is old, that's probably why, I have a 660GTX.

Dan



Re: [gentoo-user] #gentoo experiences

2017-11-19 Thread Daniel Frey

On 11/19/17 08:25, taii...@gmx.com wrote:

On 11/19/2017 07:56 AM, Michael Palimaka wrote:


Hi all,

I'm collecting information about people's experiences in #gentoo.

Thanks!

I'm interested in both good and bad experiences, with users, developers,
and operators. Basically, anything that anyone would care to share would
be much appreciated.
The lack of an ncurses setup gui/an express setup option is a major PITA 
which is why I haven't yet used gentoo as dom0 in a production 
environment, If something goes wrong and I am forced to re-install it 
will take long enough for the boss to think I am bad at my job and it 
isn't the type of thing one should do late at night.


Same for home too - when I get back I want to start my movie 
watching/gaming VM and kick back.
I would really enjoy some type of basic ncurses management gui to assist 
with the configuration of the litany of options to make things go 
faster, and to help prevent 2AM mistakes.


I like using a CLI, but I also know that it is not always best.

Feel free to contact me off-list if you'd rather not reply here (if so,
please let me know if you'd like your response kept totally private -
otherwise there is a chance that I might anonymise and share it).
Like most people I hated using gentoo until I got my first 16 core CPU 
to ease the compile time suffering, compiling with an average dual or 
quad core was shockingly slow when I first started using it.


Maybe put a list of cheap but high performance CPU's somewhere with a 
warning to get folks ready for the compile times (ex: the opteron 6386SE 
$130 used for 16 cores and it doesn't have ME/PSP)




The way it's worded makes me think feedback was requested on the irc 
channels, but maybe I am wrong?


Dan



Re: [gentoo-user] #gentoo experiences

2017-11-19 Thread Daniel Frey

On 11/19/17 09:02, taii...@gmx.com wrote:

On 11/19/2017 11:37 AM, Daniel Frey wrote:

The way it's worded makes me think feedback was requested on the irc 
channels, but maybe I am wrong?

Ha oh boy.

Most people of my generation refer to things as a hashtag on "social" 
media, such as I just purchased a #brandX computer.
I just woke up so I wasn't yet capable of nuance enough to notice that 
it was IRC instead :[ silly me.


Sorry for the misunderstanding folks!


Well, it's the mention of 'operators'. I used to be in irc all the time, 
and had OP and half-OP in some channels, but this is a really long time 
ago now.


I thought twitter too until I read the rest.

Dan



[gentoo-user] New profile & gcc update

2017-12-03 Thread Daniel Frey
Well, I moved to the new profile and started emerging gcc on about eight 
computers or so. I use distcc to speed up the compile process on the 
slower machines, so I need to keep the versions in sync.


I forgot to prefix `emerge -1 gcc` with `FEATURES="-distcc"` and am 
wondering if the sys-devel/gcc ebuild itself disables distcc on itself. 
It's been running a while now and it hasn't thrown up its hands in 
disgust yet, so I'd rather not interrupt it if I don't have to.


I took a quick look in the ebuild, and don't see anything obvious.

Anyone know?

Dan



[gentoo-user] Re: New profile & gcc update

2017-12-03 Thread Daniel Frey

On 12/03/17 10:29, Daniel Frey wrote:
Well, I moved to the new profile and started emerging gcc on about eight 
computers or so. I use distcc to speed up the compile process on the 
slower machines, so I need to keep the versions in sync.


I forgot to prefix `emerge -1 gcc` with `FEATURES="-distcc"` and am 
wondering if the sys-devel/gcc ebuild itself disables distcc on itself. 
It's been running a while now and it hasn't thrown up its hands in 
disgust yet, so I'd rather not interrupt it if I don't have to.


I took a quick look in the ebuild, and don't see anything obvious.

Anyone know?

Dan


So I left it for a while and the ones I forgot to prefix disabling 
distcc failed. That answers my question: the gcc ebuild doesn't disable 
distcc.


Dan



Re: [gentoo-user] grub-0.97-r16 and profile 17.0 change

2017-12-04 Thread Daniel Frey

On 12/03/17 07:12, Mick wrote:

On 03-12-2017 ,10:57:33, Peter Humphrey wrote:

On Saturday, 2 December 2017 12:30:57 GMT Mick wrote:

I'm getting this error after I changed my profile as per
'2017-11-30-new-17-
profiles' news item:

Compiling source in /data/tmp_var/portage/sys-boot/grub-0.97-r16/work/


[...]


However, sys-boot/grub-0.97-r17 installed fine once keyworded on this
(mostly) stable system.  This may save time for others who come across
the same problem.


It has. Thanks Mick.

--
Regards,
Peter.


Unfortunately, an older system with only 50MB /boot partition did not
have enough space to allow sys-boot/grub-0.97-r17 to install all its
files and fs drivers.  I ended up restoring /boot from a back up.  YMMV.



I have a 250MB /boot partition and have the same problem, and I only 
have one kernel installed at ~5MB.


I wonder how much space it needs in total now...

Dan



Re: [gentoo-user] grub-0.97-r16 and profile 17.0 change

2017-12-04 Thread Daniel Frey

On 12/04/17 17:54, Daniel Frey wrote:

On 12/03/17 07:12, Mick wrote:

On 03-12-2017 ,10:57:33, Peter Humphrey wrote:

On Saturday, 2 December 2017 12:30:57 GMT Mick wrote:

I'm getting this error after I changed my profile as per
'2017-11-30-new-17-
profiles' news item:
Compiling source in 
/data/tmp_var/portage/sys-boot/grub-0.97-r16/work/


[...]


However, sys-boot/grub-0.97-r17 installed fine once keyworded on this
(mostly) stable system.  This may save time for others who come across
the same problem.


It has. Thanks Mick.

--
Regards,
Peter.


Unfortunately, an older system with only 50MB /boot partition did not
have enough space to allow sys-boot/grub-0.97-r17 to install all its
files and fs drivers.  I ended up restoring /boot from a back up.  YMMV.



I have a 250MB /boot partition and have the same problem, and I only 
have one kernel installed at ~5MB.


I wonder how much space it needs in total now...

Dan


To answer my own question:

Well, it copies from /usr/share/grub and /lib/grub to /boot/grub, and 
the sum of those directories are 270M without any kernels, etc 
installed. I guess I'm going to have to tarball everything up, 
repartition, and untar it.


I guess I'll have to remember to use 500M+ /boot partitions now. Sigh.

Dan



Re: [gentoo-user] grub-0.97-r16 and profile 17.0 change

2017-12-04 Thread Daniel Frey

On 12/04/17 18:15, Michael Orlitzky wrote:

On 12/04/2017 09:13 PM, Daniel Frey wrote:


Well, it copies from /usr/share/grub and /lib/grub to /boot/grub, and
the sum of those directories are 270M without any kernels, etc
installed. I guess I'm going to have to tarball everything up,
repartition, and untar it.

I guess I'll have to remember to use 500M+ /boot partitions now. Sigh.



Before you do all that, some people on the bug have reported that the
larger binaries are busted and won't boot.





I can confirm that: right after I posted, I rebooted and all hell broke 
loose. I just got booted up again (I'd already removed gcc-5) using grub2.


I was genuinely annoyed with grub2 due to its update and massive config 
files, so I never upgraded to it. I usually had multiple kernel versions 
and grub2 helpfully labeled them all "Linux" so I couldn't tell them apart.


I figured out you can still write your own grub2 files, and it wasn't 
that difficult, other than its numbering is different now (no base-0 
partitions... argh.)


Below is an example of a simple grub.cfg that starts two separate 
kernels (I use a different kernel/partition for MythTV) and a 
chainloader for Windows 7. It took a few iterations for me to get 
everything to boot.


My partitions are as follows:
/dev/sda1: Windows tiny partition, the bootable one
/dev/sda2: Windows 7
/dev/sda3: /boot

As you can see, there's no base-0 counted partitions in the config, that 
messed me up more than once.


I also used PARTUUID for the root= parameter, you can get this by using 
`blkid /dev/sdaX`. Also, don't encapsulate your PARTUUID in quotes, that 
didn't work for me. I simply had (as an example) 
root=PARTUUID=abcdef33-01 and it boots fine.


It was simple enough to convert (and grub-2.02 actually compiles fine 
with gcc-6 and the new profile) and figured others were probably like me 
and avoiding the grub2 config mess.


At least now I know how to configure grub2 manually and simply, so I 
won't avoid it any more.


Dan

--grub.cfg--
timeout=10
default=0

menuentry 'Gentoo 4.1.43-r1' {
root=hd0,3
linux /boot/kernel-4.1.43-gentoo-r1 root=PARTUUID=PARTUUID> quiet rootfstype=ext4

}

menuentry 'Gentoo - MythTV' {
root=hd0,3
linux /boot/kernel-4.1.43-gentoo-r1-mythtv root=PARTUUID=PARTUUID> quiet rootfstype=ext4

}


menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
boot
}





Re: [gentoo-user] switch to profile 17.0 complete, completely painless

2017-12-06 Thread Daniel Frey

On 12/05/17 23:00, Raffaele Belardi wrote:

One (~x86) LXDE system completed the switch with no problem, the other (~amd64) 
built all
except two packaged (sdlmame and torcs) which did not build with gcc-7.2 even 
before the
switch to 17.0.

Gentoo devs and arch testers did a good job as usual.

I'll do the switch on the Gnome system in the next days but up to now I can say 
that the
switch to 17.0 is a _lot_ less painful than switching major compiler version.

raffaele



I've done two machines now (6 more to go!) and it's been mostly 
painless. I had the grub and cdrdao rebuild problems, solved by 
upgrading to grub2 and applying a patch to lame for cdrdao. I also had 
pygtk fail, but once the `emerge -e world` finished, I just had to 
rebuild it and it was fine.



Dan



Re: [gentoo-user] switch to profile 17.0 complete, completely painless

2017-12-06 Thread Daniel Frey

On 12/06/17 08:41, Mick wrote:

On Wednesday, 6 December 2017 15:36:19 GMT Daniel Frey wrote:

On 12/05/17 23:00, Raffaele Belardi wrote:

One (~x86) LXDE system completed the switch with no problem, the other
(~amd64) built all except two packaged (sdlmame and torcs) which did not
build with gcc-7.2 even before the switch to 17.0.

Gentoo devs and arch testers did a good job as usual.

I'll do the switch on the Gnome system in the next days but up to now I
can say that the switch to 17.0 is a _lot_ less painful than switching
major compiler version.

raffaele


I've done two machines now (6 more to go!) and it's been mostly
painless. I had the grub and cdrdao rebuild problems, solved by
upgrading to grub2 and applying a patch to lame for cdrdao. I also had
pygtk fail, but once the `emerge -e world` finished, I just had to
rebuild it and it was fine.


Dan


Are the maintainers picking up these patches to release a version bump for
packages that won't emerge with profile 17.0?



Well, I got the patch from the cdrdao bugreport. Someone sent the patch 
for lame upstream, and of course they said you should be patching 
cdrdao... so who knows.


Dan



Re: [gentoo-user] preparing for profile switch -- major problem

2017-12-09 Thread Daniel Frey

On 12/09/17 03:23, John Covici wrote:

On Sat, 09 Dec 2017 03:51:03 -0500,
Alan McKinnon wrote:


On 08/12/2017 21:12, John Covici wrote:

On Fri, 08 Dec 2017 11:42:16 -0500,
Alan McKinnon wrote:


On 07/12/2017 17:46, John Covici wrote:

On Thu, 07 Dec 2017 09:37:56 -0500,
Alan McKinnon wrote:


On 07/12/2017 07:44, John Covici wrote:

Hi. In preparing for the profile switch and the emerge -e world, I



[snip]



No, I don't think you should revert the profile change. I understood
from your mail than you had not done that yet, and typed accordingly.

I think Michael is on the right track with backtrack - set it to
something very high like 1000, see if that gets to a solution.



I did switch back, but the only way I could do a "successful" update
was to mask off 5.26 and then it skipped the update and would have
been successful.  If I switch to the new profile, I can do nothing as
far as perl goes.  I will show the output of just trying to emerge
below, it seems there were many many packages still requiring 5.24.


No, that's not right. The tree is consistent and portage can figure out
how to get from perl-5.24 to perl-5.26

You probably have a difference locally, I would search through
/etc/portage looking for entries that mask some perl modules and peg
them to 5.24 versions.

Failing that, maybe you have a package installed that depends on a 5.24
version of some module and this is the ripple effect

Perhaps run emerge with "--verbose-conflicts" and also "emerge -e world"
and post the results



This is with the new profile and backtrack set to 500.

  instances within a single package slot have been pulled
  !!! into the dependency graph, resulting in a slot conflict:

dev-lang/perl:0

   (dev-lang/perl-5.26.1-r1:0/5.26::gentoo, ebuild scheduled for merge)
   pulled in by
   =dev-lang/perl-5.26* required by
   (virtual/perl-ExtUtils-Manifest-1.700.0-r4:0/0::gentoo, installed)
   ^  ^
 dev-lang/perl (Argument)
(and 13 more with the same problems)

   (dev-lang/perl-5.24.3:0/5.24::gentoo, installed) pulled in by
   =dev-lang/perl-5.24* required by
   (virtual/perl-Term-ANSIColor-4.40.0-r1:0/0::gentoo, installed)
 ^  ^
dev-lang/perl:0/5.24= required by
   (dev-perl/XML-Twig-3.520.0:0/0::gentoo, installed)
  
   (and 260 more with the same problems)

NOTE: Use the '--verbose-conflicts' option to display parents omitted
above

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


hmmm, nothing masked as far as perl modules,  I will look at
verbose-conflicts and maybe write down all those modules and start
unmerging and see if eventually portage can figure out something -- I
don't really want to  do that,  however I will look at the conflicts
and see what I can find.




I had a lot of problems with the perl updates as well, and could not get 
it to resolve. I wasted over an hour trying to resolve it (my poor 
Celeron would take 5-10 minutes trying to calculate dependencies, and I 
had to do this 6-7 times.)


Note, what I did worked for me and may not work for you, so use this 
advice at your own risk: I emerged the new perl with --nodeps, and 
invoked `perl-cleaner all` to fix the mess afterwards. It had everything 
resolved in < 10 minutes. I didn't suffer any system breakage from using 
the sledgehammer approach, but others may not be so lucky... so, as I 
said, try it at your own risk.


Dan



Re: [gentoo-user] preparing for profile switch -- major problem

2017-12-09 Thread Daniel Frey

On 12/09/17 08:18, John Covici wrote:

On Sat, 09 Dec 2017 10:28:25 -0500,
Daniel Frey wrote:


I had a lot of problems with the perl updates as well, and could
not get it to resolve. I wasted over an hour trying to resolve it
(my poor Celeron would take 5-10 minutes trying to calculate
dependencies, and I had to do this 6-7 times.)

Note, what I did worked for me and may not work for you, so use
this advice at your own risk: I emerged the new perl with
--nodeps, and invoked `perl-cleaner all` to fix the mess
afterwards. It had everything resolved in < 10 minutes. I didn't
suffer any system breakage from using the sledgehammer approach,
but others may not be so lucky... so, as I said, try it at your
own risk.


I was thinking of just that myself, I may try that  later today.  I am
using zfs, and do snapshots frequently, so it might be possible to get
back if things are a disaster, but it might work at that.   Did you
emerge perl again without the --nodeps afterwards to make sure?




Well, due to the long compile times I was trying to get the dependencies 
resolved so I could run `emerge -auDNe world --exclude sys-devel/gcc 
--exclude sys-devel/llvm --exclude sys-devel/libtool --exclude 
sys-devel/binutils --exclude sys-libs/glibc --keep-going world` so it 
would recompile everything and update as it went along. (I had already 
built the excluded packages under the new profile with gcc6.)


While I didn't remerge perl immediately after, it was included in the 
rebuild process of --emptytree.


And it was successful! I only had perl blocking everything, so once I 
sledgeammered that update, it was able to calculate its dependency list, 
and it rebuilt all 500 installed packages (well, less the ones I 
excluded) successfully - no failed packages or anything, while upgrading 
as needed. It did take almost 30 hours though.


When trying to get perl blockers to resolve I even tried --backtrack=200 
and it still failed. That was try 5 or 6 and at that point I was getting 
annoyed and tried the sledgehammer technique.


Dan



[gentoo-user] Upgrading kernel with gcc6... use mrproper and not clean

2017-12-18 Thread Daniel Frey

I just thought I'd send this out in case others aren't aware...

I've updated some seven machines now to the new profile and gcc6. Out of 
the seven, four of them had problems rebuilding the kernel which led to 
an outright hang during booting (black screen, no kernel panic, just hang.)


I found out `make clean` is not enough, I had to backup my .config, use 
`make mrproper`, restore the .config and run `make silentoldconfig` 
before compiling the kernel and modules.


I am thinking `make clean` didn't remove everything made during the 
compile process and caused some strange race condition somewhere while 
booting (completely guessing here.)


I went back to the three that seemed to be working fine and did the 
mrproper process on them, because if something happens down the line I 
probably won't remember what caused the boot issue.


Dan



[gentoo-user] Re: Upgrading kernel with gcc6... use mrproper and not clean

2017-12-18 Thread Daniel Frey

On 12/18/17 18:46, Daniel Frey wrote:

I just thought I'd send this out in case others aren't aware...

I've updated some seven machines now to the new profile and gcc6. Out of 
the seven, four of them had problems rebuilding the kernel which led to 
an outright hang during booting (black screen, no kernel panic, just hang.)


I found out `make clean` is not enough, I had to backup my .config, use 
`make mrproper`, restore the .config and run `make silentoldconfig` 
before compiling the kernel and modules.


I am thinking `make clean` didn't remove everything made during the 
compile process and caused some strange race condition somewhere while 
booting (completely guessing here.)


I went back to the three that seemed to be working fine and did the 
mrproper process on them, because if something happens down the line I 
probably won't remember what caused the boot issue.


Dan


Sigh... from the kernel Makefile:

# clean - Delete most, but leave enough to build external modules

The computers in question that were hanging were using external modules 
such as nvidia, open-vm-tools modules, vmware modules, etc...


*smacks head against wall*

I guess I answered my own question now, and I'll bet that everyone here 
knew this already!


Dan



Re: [gentoo-user] help installing Gentoo on Asus Transformer T101HA

2017-12-28 Thread Daniel Frey

On 12/28/17 12:36, Stefano Crocco wrote:

Hello to everyone,
I'm trying to install Gentoo on an Asus Transformer T101HA and there are some
issues I'd need help with.

First of all, I must say that many things worked fairly easily. I performed
the installation from a SysrescueCD USB stick where almost everything,
including WiFi and touchscreen, worked out of the box (aside from having to
find out how to rotate the screen, both in X and in framebuffer).

After installing everything (of course, compiling all packages on my desktop
machine), there are still some things which don't work. One is the touch
screen but, given that it worked using the SysrescueCD stick, I'm not worried
too much about it (besides, I'm not planning to use it much).

The most troublesome issues, right now, are the sound card and the SD card
reader. Both of them simply don't seem to exist: they didn't work with the
SysrescueCD stick, I can't find any mention of either of them in the output of
dmesg, lspci and lsusb and Google gave pratically no answer. I'm starting to
think neither of them is supported with Linux but I haven't been able to find
any definitive information about this. I tried activating all kernel options I
could find which seemed vaguely related to them, but to no effect.

Unfortunately, I haven't been able even to find out the exact models of the
cards. All I know is that (according to Windows 10) the sound card is an Intel
SSt Audio Device (WDM), while the codec is a Realtek I2S Audio Codec. I have
no information at all on the SD card reader. The motherboard, according to
lshw, is a T101HA by AUSTeK.

I attach my last version of the kernel config (using gentoo-sources-4.14.9
which, I just found out, now seems to be masked).

I'd be glad for any hint about these issues. I spent all of this afternoon
trying to solve them and I can't really think what else I could try.

Thanks in advance

Stefano



Hmm, after googling it seems some of those Transformer models are not 
linux friendly. There are reports of no driver for the SD card reader 
and models earlier than yours needed firmware to use the sound card.


You might be able to use hints from:

https://wiki.debian.org/InstallingDebianOn/Asus/T100TA

to get the sound working, even though the model is older than yours.

Dan



[gentoo-user] Troubleshooting mounting local filesystems

2017-12-30 Thread Daniel Frey

Some background:

A little while back I had a drive drop out of my hardware RAID. I don't 
think this has anything to do with the problem I'm having, but I thought 
I should mention it. The RAID health is fine and I can see there's not 
any delay in dmesg (the RAID array is detected as /dev/sdc).


On startup, I share the RAID, and hence I mount it locally under /mnt, 
then again under /nfs4exports.


Note: I'm using openrc.

For some reason, the entry under /mnt does not mount on startup. There's 
no error or any indication of anything going wrong during startup 
(nothing in dmesg or /var/log/messages regarding any sort of mount trouble.)


So what happens is nfs starts up but it's missing the one export. I have 
to stop nfs, unmount the entry under /nfs4exports, unmount the entry 
under /mnt, then mount /dev/sdc1 to /mnt, the mount the entry under 
/nfs4exports. After this, everything is mounted properly and I restart nfs.


I looked at the /etc/init.d/localmount script and it's supposed to spit 
out a message if something cannot mount but it does not report any error.


Is there any sort of logging I can enable to tell me exactly what's 
happening? Other local filesystems (total of three) all mount fine.


Dan



Re: [gentoo-user] Troubleshooting mounting local filesystems

2017-12-31 Thread Daniel Frey

On 12/30/17 19:32, Adam Carter wrote:
On Sun, Dec 31, 2017 at 2:22 PM, Daniel Frey <mailto:djqf...@gmail.com>> wrote:


Some background:

A little while back I had a drive drop out of my hardware RAID. I
don't think this has anything to do with the problem I'm having, but
I thought I should mention it. The RAID health is fine and I can see
there's not any delay in dmesg (the RAID array is detected as /dev/sdc).

On startup, I share the RAID, and hence I mount it locally under
/mnt, then again under /nfs4exports.

Note: I'm using openrc.

For some reason, the entry under /mnt does not mount on startup.
There's no error or any indication of anything going wrong during
startup (nothing in dmesg or /var/log/messages regarding any sort of
mount trouble.)

So what happens is nfs starts up but it's missing the one export. I
have to stop nfs, unmount the entry under /nfs4exports, unmount the
entry under /mnt, then mount /dev/sdc1 to /mnt, the mount the entry
under /nfs4exports. After this, everything is mounted properly and I
restart nfs.

I looked at the /etc/init.d/localmount script and it's supposed to
spit out a message if something cannot mount but it does not report
any error.

Is there any sort of logging I can enable to tell me exactly what's
happening? Other local filesystems (total of three) all mount fine.

What does the fstab entry look like?



The fstab entry is just:

/dev/sdc1/mnt/raidext4noatime0 0

The first thing I did was check localmount and it is in the boot 
runlevel (some snipped):


# rc-update show boot

   localmount | boot


Other filesystems mounted OK.

It does list as started:
# rc-status boot
Runlevel: boot
 localmount   [  started  ]


> Can you cut and paste the terminal session of the post boot fixes?

What are you asking for here?

Part of the problem is I restart this machine so infrequently I usually 
forget about the mounting problems until I try to access it remotely.


Dan



Re: [gentoo-user] Troubleshooting mounting local filesystems

2017-12-31 Thread Daniel Frey

On 12/31/17 06:12, Jalus Bilieyich wrote:

Did you perform this action:

rc-update add localmount default

?


On my machine (as per my other post) it's in the boot runlevel.

Dan



Re: [gentoo-user] Troubleshooting mounting local filesystems

2018-01-01 Thread Daniel Frey

On 01/01/18 01:14, Adam Carter wrote:

> Can you cut and paste the terminal session of the post boot fixes?

What are you asking for here?


Just fishing for more info because I cant think of any circumstance that 
would cause the issue you're seeing.


If it were me i'd force an fsck on next reboot, then reboot. I just had 
a look on my machines and it looks like the old fsck every N mounts is 
disabled everywhere by default these days.




That's a good idea, I stopped nfs, umounted and ran fsck, and it came 
back clean. I've remounted and restarted nfs for now.


I'll try restarting later.

Dan



Re: [gentoo-user] emerge -e and --resume

2018-01-05 Thread Daniel Frey

On 01/05/18 13:15, Neil Bothwick wrote:

On Fri, 05 Jan 2018 13:00:20 -0500, allan gottlieb wrote:


I am finally moving my production machine the the 17.0 profile.
Currently running is

 emerge -e --keep-going @world

So far there is one failure (libcryptui, the fix is easy).

Am I correct that when the above emerge completes, I should run
simply

 emerge --resume


If the emerge has completed, there is nothing to resume. Just make a note
of the packages that failed to build ans emerge --oneshot them, with any
necessary fixes.




You may also want to check for dependencies (as in: `equery depends 
` and rebuild the dependencies of the failed package as well.


Dan



Re: [gentoo-user] emerge -e and --resume

2018-01-05 Thread Daniel Frey

On 01/05/18 18:50, allan gottlieb wrote:

On Fri, Jan 05 2018, Daniel Frey wrote:


On 01/05/18 13:15, Neil Bothwick wrote:

On Fri, 05 Jan 2018 13:00:20 -0500, allan gottlieb wrote:


I am finally moving my production machine the the 17.0 profile.
Currently running is

  emerge -e --keep-going @world

So far there is one failure (libcryptui, the fix is easy).

Am I correct that when the above emerge completes, I should run
simply

  emerge --resume


If the emerge has completed, there is nothing to resume. Just make a note
of the packages that failed to build ans emerge --oneshot them, with any
necessary fixes.




You may also want to check for dependencies (as in: `equery depends
` and rebuild the dependencies of the failed package as well.

Dan


I don't understand.  If the dependencies didn't fail, why should I
rebuild them?

thanks,
allan



If you're transitioning over to the new profile, that means the 
dependencies would be built and linked to the old profile's binaries. 
This was merely a suggestion, as I've had some mighty strange things 
happen after upgrades to gcc in the past, all solved by `emerge -e 
world`, although... I didn't have packages fail back then.


When I switched over to the 17 profile I had one rebuild failure, and it 
didn't have any direct dependencies fail.


Dan



Re: [gentoo-user] Microcode updates for "old" Intel CPU's

2018-01-12 Thread Daniel Frey

On 01/11/18 14:41, Mick wrote:


Are any of you planning to replace your Intel PCs and what are you considering
as a replacement at present?



I was planning to replace two of my PCs with Ryzen, but that plan was in 
place before Meltdown happened. At least then I'll be able to get 
microcode/firmware updates, as pretty much everything I own now (well, 
besides my laptop) is between 5-11 years old.


Dan



Re: [gentoo-user] Troubleshooting mounting local filesystems

2018-01-21 Thread Daniel Frey

On 12/31/17 08:28, Daniel Frey wrote:

On 12/31/17 06:12, Jalus Bilieyich wrote:

Did you perform this action:

rc-update add localmount default

?


On my machine (as per my other post) it's in the boot runlevel.

Dan


OK, after turning on some logging I figured out what's happening.

When localmount runs /dev/sdc has not been created yet. Presumably it is 
getting created after localmount runs.


I suspect that this is because there's a delay during kernel 
initialization that loads firmware for some TV tuners I have, and after 
this I can see that /dev/sdc is created.


So the question now is... is it safe to add a delay to localmount? Or is 
there a better way (like... can I tell the kernel to wait a few seconds 
before running init?)


As this is mounted twice (local access and nfs access) in fstab, it 
would be best to fix it before localmount runs.


Dan



Re: [gentoo-user] Troubleshooting mounting local filesystems

2018-01-23 Thread Daniel Frey

On 01/21/18 11:15, Daniel Frey wrote:

On 12/31/17 08:28, Daniel Frey wrote:

On 12/31/17 06:12, Jalus Bilieyich wrote:

Did you perform this action:

rc-update add localmount default

?


On my machine (as per my other post) it's in the boot runlevel.

Dan


OK, after turning on some logging I figured out what's happening.

When localmount runs /dev/sdc has not been created yet. Presumably it is 
getting created after localmount runs.


I suspect that this is because there's a delay during kernel 
initialization that loads firmware for some TV tuners I have, and after 
this I can see that /dev/sdc is created.


So the question now is... is it safe to add a delay to localmount? Or is 
there a better way (like... can I tell the kernel to wait a few seconds 
before running init?)


As this is mounted twice (local access and nfs access) in fstab, it 
would be best to fix it before localmount runs.


Dan


OK, I found the rootdelay paramater but it didn't do what it needed 
(presumably because the root partition wasn't mounted so creating 
entries in /dev didn't happen any faster.)


I added the following three lines to add a delay:

# Delay to allow devices to register
einfo "Waiting for RAID devices to settle/register..."
sleep 25

I've rebooted a few times and it starts up correctly now. I don't really 
care if that PC starts in two seconds, I need it to start up 
consistently as it's acting as a server.


Dan



[gentoo-user] Multi monitor in KDE - remember window placement as default for all windows?

2018-02-11 Thread Daniel Frey
Well, I found a pretty good deal (for around here) on a 32" monitor. So, 
I've set this up and turned my old 24" to portrait orientation. KDE's 
control panel's display setting had me get the orientation set up 
correctly in about 10 seconds.


It took me a bit longer to figure out how to move the task bar to the 
larger monitor, but all is good.


One more annoying thing I've noticed now is that I have two monitors, 
KDE seems to randomly plop new windows whereever it likes. I mean 
literally. Sometimes it's on the new (secondary) monitor, sometimes it's 
on the primary, sometimes it's between the two. Really bizarre.


After a little bit of fiddling around, I found out you can get an 
application window to remember its size and position (which is great, at 
least the option is there.)


Not so nice is that I have to tell every new window I open (well, the 
ones that open all over the place) to remember their settings.


Is there a way to make this a global change for all windows? This is 
getting irritating.


Dan



Re: [gentoo-user] Multi monitor in KDE - remember window placement as default for all windows?

2018-02-12 Thread Daniel Frey
On 02/12/18 01:20, Neil Bothwick wrote:
> On Sun, 11 Feb 2018 20:04:27 -0800, Daniel Frey wrote:
> 
>> After a little bit of fiddling around, I found out you can get an 
>> application window to remember its size and position (which is great,
>> at least the option is there.)
>>
>> Not so nice is that I have to tell every new window I open (well, the 
>> ones that open all over the place) to remember their settings.
>>
>> Is there a way to make this a global change for all windows? This is 
>> getting irritating.
> 
> In System Settings -> Display and Monitor you can set the primary
> display. Windows without a saved preference should be opened on this
> display. Is that what you need?
> 
> 

Yes, that's better. I think it was looking random before as it was
trying to open new windows on the portrait monitor and not fitting... so
it would spread across both.

Dan



Re: [gentoo-user] Re: Unlocking Plasma desktop in Gentoo without systemd

2018-02-12 Thread Daniel Frey
On 09/12/17 05:13, Michael Palimaka wrote:
> On 09/12/2017 05:04 AM, Daniel Frey wrote:
>> According to a comment in the bug, you can try to figure out which
>> session it is (ck-list-sessions) and look for the X11 display property
>> set. This will not work (or could be difficult) if you have several
>> users using KDE at the same time and can't tell the sessions apart.
>>
>> Once you figure that out, remember the session name and:
>>
>> # su -c 'dbus-send --system --print-reply \
>> --dest="org.freedesktop.ConsoleKit" \
>>  /org/freedesktop/ConsoleKit/ \
>> org.freedesktop.ConsoleKit.Session.Unlock'
>>
> 
> If there a nice way to wrap this up in a script I'd be interesting in
> shipping this for non-logind systems.
> 
> Another option is sys-auth/elogind, which provides the logind interface
> and tools (like loginctl) for non-systemd systems. This is what I've
> been testing with OpenRC for some time.
> 
> I read that ConsoleKit is also supporting the logind dbus interface now.
> This would in theory make it easy to create a tool to unlock the
> session, but I haven't had a chance to test it yet.
> 

Well, I forgot to disable my screen locker during an update and got bit
by this again. It's a pain typing it manually (especially when you run a
monitor in portrait mode.)

I had some time and put together a general-purpose bash script. A note
of warning, I'm not an expert at bash by any means, but I was able to
test this several ways as I haven't restarted my computer yet.

I'll attach it if someone else wants to try it out. It's simply called
ck-unlock-session.

Dan
#!/bin/sh

# This script is to make unlocking using OpenRC/Consolekit easier when the KDE 
Screenlocker breaks.
#
# Version: 0.1
# Date written: February 2, 2018
#
# Copyright (C) 2018 Daniel Frey
#
# This script is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
#
# Some notes:
#   -The switch processing/argument handling is very basic.
#   -This script assumes session names start with "Session" when listing
#sessions. This is settable via a variable.
#
# Possible actions:
#   -h : Show help screen
#   -l : List current consolekit sessions
#   -u : Unlock specified session (one parameter required - the session name)
#   -a : Attempt to unlock all sessions

# Return code documentation
#
#  0: Script executed normally
#  1: Root access is not present for script
#  2: No arguments passed
#  3: Multiple actions requested, can only do one at a time
#  4: Argument passed was not recognized
#  5: Multiple arguments passed for unlock single session, only one needed
#  6: The argument required for unlocksession() is missing (internal error)

# Return code constants
readonly ERR_NORMAL_OPERATION=0
readonly ERR_NO_ROOT=1
readonly ERR_NO_ARGS=2
readonly ERR_TOO_MANY_ACTIONS=3
readonly ERR_INVALID_ARGUMENTS=4
readonly ERR_TOO_MANY_ARGS=5
readonly ERR_INTERNAL_ARG_MISSING=6

# Action parameter constants
readonly ACTION_NONE=0
readonly ACTION_HELP=1
readonly ACTION_LIST=2
readonly ACTION_UNLOCKALL=3
readonly ACTION_UNLOCK=4

# This is what's used to look for a session via consolekit.
# By default, assume it is prefixed with "Session".
SESSION_SEARCH_PREFIX=Session

# Check to make sure script has root access, if not... abort now!
if [ $EUID -ne 0 ]; then
echo "This script must be run as root."
exit $ERR_NO_ROOT
fi

function showhelp () {
echo "`basename $0`: a script that helps unlock consolekit sessions

Usage: `basename $0` [action] [parameters]

Actions:
-l : list current sessions available for unlocking 

-u : unlock session specified as a parameter

-a : attempt to unlock all current sessions

-h : this screen

Parameters:
The -u parameter requires a session name to unlock, use -l to list
sessions.

Example:

To unlock a single session, use:
  `basename $0` -u Session1

No arguments will show this screen."
}

function listsessions() {
# Get a list of all sessions, and remove the full colon from the 
session name
ALLSESSIONS=`ck-list-sessions | grep -i ^$SESSION_SEARCH_PREFIX | rev | 
cut -c 2- | rev`

echo
echo "Sessions present on this machine, space-delineated:"
echo
echo $ALLSESSIONS
echo
echo
echo "Session detail (to help locate a specific session:"

[gentoo-user] Vulnerability info in /sys

2018-02-12 Thread Daniel Frey
I've read online that there should be vulnerability info (Meltdown,
Spectre) in /sys under /sys/devices/system/cpu/vulnerabilities but this
doesn't exist on my PC.

Another place is in /proc/cpuinfo, no info on meltdown/spectre in there
either.

Yet another place is in dmesg, (grep 'page tables isolation') nothing
there either.

I've updated to gentoo-sources-4.9.76-r1, shouldn't this info be present?

$ uname -a
Linux zatpc 4.9.76-gentoo-r1 #1 SMP Mon Feb 12 09:20:32 PST 2018 x86_64
Intel(R) Core(TM)2 Extreme CPU X9650 @ 3.00GHz GenuineIntel GNU/Linux

$ zgrep PAGE_TABLE_ISO /proc/config.gz
CONFIG_PAGE_TABLE_ISOLATION=y

Or does the page table isolation need to be explicitly turned on?

Dan



Re: [gentoo-user] Re: Vulnerability info in /sys

2018-02-13 Thread Daniel Frey
On 02/12/18 19:39, Ian Zimmerman wrote:
> On 2018-02-12 19:24, Daniel Frey wrote:
> 
>> I've read online that there should be vulnerability info (Meltdown,
>> Spectre) in /sys under /sys/devices/system/cpu/vulnerabilities but this
>> doesn't exist on my PC.
> 
>> I've updated to gentoo-sources-4.9.76-r1, shouldn't this info be present?
>>
>> $ uname -a
>> Linux zatpc 4.9.76-gentoo-r1 #1 SMP Mon Feb 12 09:20:32 PST 2018 x86_64
>> Intel(R) Core(TM)2 Extreme CPU X9650 @ 3.00GHz GenuineIntel GNU/Linux
> 
> See the other threads: you need at least 4.9.79 for the /sys bits.
> 
> If you've enabled PTI at build time it's enabled, no need to do anything
> else.
> 
> Later 4.9 kernels also contain patches for spectre (PTI is not relevant
> there).
> 

I'm surprised I missed those threads, I read all messages on here.
According to the thread I found it's actually starts on 4.9.77, I'm just
on the latest stable (.76).

Dan



Re: [gentoo-user] Re: Vulnerability info in /sys

2018-02-14 Thread Daniel Frey
On 02/14/18 09:29, Nikos Chantziaras wrote:
> On 14/02/18 04:38, Daniel Frey wrote:
>> On 02/12/18 19:39, Ian Zimmerman wrote:
>>> On 2018-02-12 19:24, Daniel Frey wrote:
>>>
>>>> I've read online that there should be vulnerability info (Meltdown,
>>>> Spectre) in /sys under /sys/devices/system/cpu/vulnerabilities but this
>>>> doesn't exist on my PC.
>>>> [...]
>>>
>>> See the other threads: you need at least 4.9.79 for the /sys bits.
>>> [...]
>>
>> I'm surprised I missed those threads, I read all messages on here.
>> According to the thread I found it's actually starts on 4.9.77, I'm just
>> on the latest stable (.76).
> 
> During "special emergencies" like this one, it would be a good idea to
> use the latest 4.9.x, regardless of whether portage marked it "stable"
> or not. At least for a while and until the situation has settled down
> again.
> 
> 

Nah, I like stability over everything else. I recall lots of pain and
instability in January when everyone rushed to patch the flaws (both
Windows and linux.)

These are my personal computers, not a work environment.

Dan



Re: [gentoo-user] Re: nvidia driver and genkernel above 4.9 issues

2018-02-15 Thread Daniel Frey
On 02/15/18 10:38, Nikos Chantziaras wrote:
> On 15/02/18 09:01, András Csányi wrote:
>> Hi All,
>>
>> I have a fresh gentoo install and it works fine with 4.9 kernel,
>> nvidia video card does its job like a charm. However, I compiled a
>> 4.15.3 kernel with the same setup
> 
> As an nvidia user myself, I recommend sticking to an LTS (long-term
> support) kernel. At this time, this is the 4.14 series. It should result
> in the least amount of headaches.
> 
> 

Ditto recommending sticking to an LTS kernel. 4.9 and 4.14 are both LTS
kernel versions.

Bleeding edge kernels almost always have some sort of build issue with
the nvidia blob.

Dan




Re: [gentoo-user] grub2: hidden menu unless shift pressed?

2018-02-17 Thread Daniel Frey
On 02/17/18 12:36, Grant Edwards wrote:
> I'm trying to figure out how to configure grub 2.02 so that no menu is
> displayed and it will boot immediately to the default unless shift is
> held down during boot -- in which case it displays the menu and waits
> indefinitely for a choice to be made.
> 
> This is a bare-bones grub2 installation without any of the
> auto-magical, config generator scripts.  All I have is grub.cfg and an
> editor.
> 
> I've found many web pages that say all you have to to is edit
> /etc/default/grub and set GRUB_TIMEOUT=0 and GRUB_HIDDEN_TIMEOUT=0 and
> Bob's your uncle.  Of course that file gets mashed about by dozens of
> shell scripts comprising thousands of lines of code to product the
> real grub.cfg containing hundreds of lines of code.
> 
> [Oh God, how I hate grub2.]
> 
> AFAICT, you end up with
> 
> set timeout=0
> set timeout_style=hidden 
> 
> But, that doesn't seem to work. Holding down the shift key during boot
> doesn't cause the menu to be displayed, and it always boots directly
> to the default no matter what you do.
> 
> Any grub2 experts care to lend a clue?
> 

It's been a while since I've done this, but I thought the hotkey was ESC
not shift?

All I had to do was use:

GRUB_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT=5

Grub will wait for the escape key to be pressed for 5 seconds, if no
keypress, it would boot.

Dan



Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread Daniel Frey
On 02/18/18 08:50, Neil Bothwick wrote:
> On Sun, 18 Feb 2018 09:55:01 -0600, R0b0t1 wrote:
> 
 There's also a way to boot systemrescuecd from a bootloader that
 doesn't support ISO loading, like the systemd UEFI boot manager (aka
 gummiboot).  
>>>
>>> I just plug in the SysRescCD USB-3 stick.
>>>
>>> Much less complication  ;)
>>>
>>> --
>>> Regards,
>>> Peter.
>>>
>>>  
>>
>> Please be careful, sir! The SysRescCD releases are not signed. The
>> Russians might be able to get you!
> 
> That's not really an issue as neither Peter nor I is able to vote in US
> elections ;-)
> 
> 

I nearly spit out my tea this morning after reading this, thanks for the
morning humour!

I'd also tried getting the Gentoo LiveCD to boot via grub (although this
was almost two years ago) and never got it to boot. I don't remember if
I tried to get SysRescueCD to work either... on my newer EFI machines
I've been ditching Grub2 for refind.

Dan



Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread Daniel Frey
On 02/18/18 10:09, Neil Bothwick wrote:
> On Sun, 18 Feb 2018 09:54:07 -0800, Daniel Frey wrote:
> 
>> I'd also tried getting the Gentoo LiveCD to boot via grub (although this
>> was almost two years ago) and never got it to boot. I don't remember if
>> I tried to get SysRescueCD to work either... on my newer EFI machines
>> I've been ditching Grub2 for refind.
> 
> I used the systemd bootloader but I did try with refind, and it turns out
> I still have it installed. Here is the sysrescd.conf that I include from
> refind.conf
> 
> menuentry "System Rescue Cd" {
>   icon EFI/refind/icons/os_sysrescd.png
>   loader /sysrescd/rescue64
>   initrd /sysrescd/initram.igz
>   options "subdir=sysrescd setkmap=uk rootpass=XXX"
> }
> 
> I mount the sysrescd ISO and copy these files to /boot/sysrescd
> 
> initram.igz
> rescue64
> sysrcd.dat
> sysrcd.md5
> version
> 
> The entry for systemd-boot is
> 
> title System Rescue Cd 5.2.0
> version   5.2.0
> linux /sysrescd/rescue64
> options   subdir=sysrescd setkmap=uk rootpass=XXX
> initrd/sysrescd/initram.igz
> 
> 

Thanks for the tips.

I started moving away from Grub2 mostly because on my EFI computers it
was booting in blind mode so you couldn't see what was going on while
booting.

After messing with that now for an hour or so I've resolved that (on my
new laptop which I hadn't bothered moving to refind yet. So maybe I'll
go back to grub2.

The thing I hate is that the grub2 configuration generator generates
5000 line config files and if it doesn't do exactly what you want it's a
real pain in the arse to do something simple like rename a loader entry.

So I've been making my own config files that are much more brief. Now
that I've addressed the video problem (and I've also managed to boot
Windows 7 installed as EFI on a separate nvme drive with a manual
config) I'll mess with the booting from ISO again.

I wonder if I left enough in my /boot partition to do this, though...

Dan



Re: [gentoo-user] Bouncing Messages

2018-03-02 Thread Daniel Frey
On 03/01/18 12:42, R0b0t1 wrote:
> I keep getting emails from the mailer daemon about bouncing messages.
> I am worried. Am I missing messages from my internet friends? Please
> send help.
> 
> With much concern,
>  R0b0t1
> 

I've noticed quite a few in the last couple weeks myself. Gmail perhaps
doesn't like mailer traffic now?

Although I don't recall ever getting any message about this in the past.

Dan



  1   2   3   4   5   6   7   >