Re: [gentoo-user] Re: Reinstall

2022-06-19 Thread Bill Kenworthy
I suggest either taking a full dd|bzip2 style backup of the hardisk to 
removable media  for the simplest reinstall. Compliment with borgbackup or 
dervish for space efficient backups to capture more recent changes.  Reinstall 
is the reverse .. lay down the dd image  update from the backups with rsync. No 
need to get caught in messy  install routines that will take a lot longer with 
an uncertain outcome.  I have a few arm systems and seem to be doing it at 
least once a month as the sdcards reach their end of life. 
BillK


On 20 June 2022 2:26:27 am AWST, Francisco Ares  wrote:
>Em dom., 19 de jun. de 2022 às 14:33, Michael
> escreveu:
>>
>> On Sunday, 19 June 2022 18:22:34 BST Grant Edwards wrote:
>> > On 2022-06-19, Francisco Ares  wrote:
>> > > Just for the sake of preventing a future failure, besides personal
>> > > files (minimum and obvious) the "world" file and the binary packages,
>> > > built along with the package installation, what else should I backup
>> > > so that I would be able to quickly restore the same full working
>> > > Gentoo in a new hardware without having to work from stage3 up? The
>> > > portage tree is one of those items, for sure. But what else?
>> >
>> > Make a backup copy of everything under /etc.
>> >
>> > I used to try to backup individual /etc/... files that I would need,
>> > but I always forgot something.
>> >
>> > --
>> > Grant
>>
>> Yes, besides /var/lib/portage/world and /etc/ you may also want to back up
>> your /boot and kernel config, assuming the hardware (MoBo & peripherals) is 
>> the
>> same (same drivers).  I wouldn't bother backing up portage, a resync will
>> download it afresh.  You might want to save /distfiles if you're on a slow
>> Internet link, but it has to be a copy of the current versions, otherwise the
>> latest version of each package source will have to be downloaded anyway.
>>
>> If you're running databases you'll also want to keep a backup of the
>> respective /var/lib/*sql directory and if you're running a webserver 
>> /var/www/
>> * - but you would be aware of the need to keep a fresh backup of all this 
>> data
>> anyway.
>
>Also good point, one can always do a "make oldconfig" on a new kernel
>to recover specific tweaks.
>
>Regarding backing up the portage tree, the binary packages won't do
>much if the last sync is, say, one or two months old or even worse if
>older. To use "emerge -K" one must have the same package version built
>in the binary package as the one present in portage. That's what I'm
>facing right now, it seems my binary packages won't be so helpful
>after all - I'm beginning to think I'll have to go back to stage-3...
>
>Thanks!
>Francisco
>

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

Re: [gentoo-user] LVM and moving things around

2022-04-02 Thread Bill Kenworthy
Rsync has a bwlimit argument which helps here. Note that rsync copies the whole 
file on what it considers local storage (which can be mounted network shares) 
... this can cause a real slowdown.
BillK


On 3 April 2022 3:51:22 am AWST, Dale  wrote:
>Dale wrote:
>> Howdy,
>>
>> I sort of started this on another thread but wanted to nail a few things
>> down first.  I'm wanting to encrypt some parts of my data on /home. 
>> <<< SNIP >>>
>>
>
>
>OK.  I looked into another hard drive but budget right now says no.  So,
>I went back to plan A.  I managed to remove the 6TB drive and it is now
>on it's own LVM thingy.  I've moved enough over to mount it and use it
>as my /home directory.  I'm in the process of copying other non-critical
>files over so I can move things around some more.  Anyway, I'm using
>rsync to copy things over.  It works great, can restart if I need to
>stop it etc etc but it has one thing that annoys me.  While it is
>copying things over, it makes my system slow to respond.  Once the cache
>in memory gets pretty full, it takes a while to switch desktops or for
>programs to show up when I do get to a desktop.  Seamonkey seems to be
>hit hardest with this.  I tried putting ionice in front of the command
>but it is still slow.  My CPU cores are a bit busy but nowhere near
>100%.  Most cores are switching from almost idle to around 40% at their
>peak.  If I added them all up, I'd say the total would average around
>10%, 20% at the very most.  I've got swapiness set pretty low and it
>isn't using swap according to gkrellm.
>
>Anyone have a idea how to make rsync not cause this problem?  Is there
>something besides ionice I need to use? 
>
>Thanks.
>
>Dale
>
>:-)  :-) 
>

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

Re: [gentoo-user] Graphics problem, especially when running Firefox - kde environment

2022-03-13 Thread Bill Kenworthy
Greetings from East Vic Park!

1. Have you cleaned out the system? Start of summer i have to vacuum the dust 
bunnies to prevent overheating.
2. Check the power supply 
3. Add a few more fans :)

BillK


On 14 March 2022 12:55:07 am AWST, Andrew Lowe  wrote:
>Dear all,
>   Back story, I'm in Perth Australia, hence summer has just finished. 
>Summer here means long runs of about 40ºC during the day and nights of 
>about 35ºC at midnight.
>
>   12 months ago, I started getting a dialogue popup that said:
>
>
>
>KWin Window Manager
>Desktop effects were restarted due to a graphics reset
>
>
>
>This would pop up, particularly when doing "deep research" with Firefox 
>on Youtube. Firefox would freeze for a few seconds, but the audio would 
>continue, the screen would do a refresh/flash sort of thing and on goes 
>the "research". As the day would progress, and the home office would 
>heat up, 35ºC during the day, these popups would pop up more and more 
>and the machine would nearly become unusable.
>
>   It was also accompanied by the following in dmesg:
>
>
>...
>...
>[ 1473.478242] NVRM: GPU at PCI::0a:00: 
>GPU-810c3175-ac6b-0de3-ff85-dce410a501dc
>[ 1473.478246] NVRM: Xid (PCI::0a:00): 32, pid=3087, Channel ID 
>0020 intr0 0004
>[ 1473.478530] NVRM: Xid (PCI::0a:00): 32, pid=3087, Channel ID 
>0020 intr0 0004
>[ 1480.030284] NVRM: Xid (PCI::0a:00): 32, pid=3087, Channel ID 
>0020 intr0 0004
>[ 1480.030618] NVRM: Xid (PCI::0a:00): 32, pid=3087, Channel ID 
>0020 intr0 0004
>[ 2093.087760] NVRM: Xid (PCI::0a:00): 32, pid=3087, Channel ID 
>0020 intr0 0004
>[ 2093.088145] NVRM: Xid (PCI::0a:00): 32, pid=3087, Channel ID 
>0020 intr0 0004
>[ 2126.588242] NVRM: Xid (PCI::0a:00): 32, pid=3087, Channel ID 
>0020 intr0 0004
>...
>...
>
>
>
>This started last summer and then as things cooled down, occurred less 
>and eventually disappeared, winter time. This summer it's back and even 
>worse so I upgraded from an nVidia 1060 to a 3050 - the thinking being 
>the card was over heating. As you guessed the problem is still here.
>
>   I've found the xid errors page on nVidia's site but was wondering if 
>anyone else had come across this error and has any advice?
>
>   Thanks in advance for any thoughts,
>
>   Andrew
>
>
>
>

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

Re: [gentoo-user] python2 problem

2021-08-08 Thread Bill Kenworthy


On 9 August 2021 1:06:23 am AWST, cal  wrote:
>On 8/8/21 5:12 AM, William Kenworthy wrote:
>> Hi, I am trying to install the ssspsk python module using pip for python
>> 2 (for tuya-convert) but its not working.
>> 
>> I have installed python 2.7 from portage and followed the wiki (set
>> python_targets, emerge -NuDv etc.), however pip seems to only know how
>> to install for python3.
>> 
>> For python 2.7 do I need to go completely manual for installation?
>> 
>> BillK
>> 
>Gentoo's dev-lang/python package configures Python --without-ensurepip,
>meaning that pip will not be installed alongside this package by
>default.  There is a separate dev-python/pip package providing pip, but
>it appears this package only supports Python 3 targets (which is
>reasonable as 2.7 is no longer supported upstream).
>
>If you *really* need Python 2.7, you could modify the ebuild of
>dev-lang/python-2.7 to enable --with-ensurepip, or you could try to make
>the dev-python/pip package support the python2_7 target, or you could
>download the source from python.org and configure/build it yourself into
>a separate directory.
>
>However, it is probably worth first checking if there is a release of
>the software you want to use that supports Python 3 instead.
>
>cal
>

Thanks,  I'll look into this. 
BillK


Re: [gentoo-user] python2 problem

2021-08-08 Thread Bill Kenworthy
Sorry, so many typos, here it is again :(

Hi, I am trying to install the sslpsk python module using pip for python (for 
tuya-convert) but its not working - python3 works, python2 doesn't. It was 
working a  few months back on a different system.

I have installed python 2.7 from portage and followed the wiki (set 
python_targets, emerge -NuDv etc.), however pip seems to only know how to 
install for python3.

For python 2.7 do I need to go completely manual for installation using old 
packages?
BillK



On 8 August 2021 8:12:26 pm AWST, William Kenworthy  wrote:
>Hi, I am trying to install the ssspsk python module using pip for python
>2 (for tuya-convert) but its not working.
>
>I have installed python 2.7 from portage and followed the wiki (set
>python_targets, emerge -NuDv etc.), however pip seems to only know how
>to install for python3.
>
>For python 2.7 do I need to go completely manual for installation?
>
>BillK
>
>
>

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

[gentoo-user] pppoe not working

2020-08-30 Thread Bill Kenworthy
Can someone suggest an openrc style network stanza for an iiNet NBN pppoe 
connection? It has username/password/vlan2 parameters but I can't even get a 
ppp0 node to appear with the online suggestions.
Bill K

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

Re: [gentoo-user] gentoo-sources kernel not seeing 4G ram

2020-01-11 Thread Bill Kenworthy
Hi Rafael, fixed thanks to the link you gave - needed  apatch to a dts 
file that limited thge memory available.


So I now have a heavily patched mainline based (gentoo-sources) kernel 
with gentoo aarch64/openrc userland running on the n2 as a headless 
server for 6 x lxc containers for network infrastructure!


Nice,
BillK

On 9/1/20 3:34 pm, Raffaele BELARDI wrote:

No experience on this, but looks like it can be done with the patched mainline 
kernel:
https://forum.odroid.com/viewtopic.php?t=33993

Just for my understanding, gentoo-sources does not contain all the drivers 
needed by this board so you are trying to copy those from the 'hardkernel' 
sources, correct?

Raffaele


-Original Message-
From: Bill Kenworthy 
Sent: Thursday, January 9, 2020 02:50
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] gentoo-sources kernel not seeing 4G ram

Hi, not sure anyone can help with this as its a bit off the reservation :)

I have a Odroid N2 with 4G ram that is only seeing 1G. (even from right at
boot looking at dmesg).  Its part of the board so its not a connector issue.

Kernel is gentoo-sources-5.4.8 with the AMLOGIC armv8 relevant bits copied
from the 4.9 series original hardkernel sources.  OS is gentoo AARCH64.  This
all built and runs quite nicely, but cant see the full 4G ram that should be
there.

Ive attached my latest kernel config in the hope that someone can see
something Ive missed (presuming it isn't an inherent problem in the way I
have gone about this) - looking at the config, diffing it against the hardkernel
source etc. hasn't helped.  Below is the start of dmesg up to the memory
statement.

My next move will be to go back to the 4.9 supplied kernel and make sure it
isn't hardware failure (unlikely, but ...)

BillK

[    0.00] Booting Linux on physical CPU 0x00 [0x410fd034]
[    0.00] Linux version 5.4.8-gentoo (root@n2) (gcc version 9.2.0 (Gentoo
9.2.0-r2 p3)) #1 SMP PREEMPT Thu Jan 9 08:36:20 AWST 2020 [    0.00]
Machine model: Hardkernel ODROID-N2 [    0.00] efi: Getting EFI
parameters from FDT:
[    0.00] efi: UEFI not found.
[    0.00] Reserved memory: created CMA memory pool at
0x3000, size 256 MiB [    0.00] OF: reserved mem: initialized
node linux,cma, compatible id shared-dma-pool [    0.00] NUMA: No
NUMA configuration found [    0.00] NUMA: Faking a node at [mem
0x-0x3fff]
[    0.00] NUMA: NODE_DATA [mem 0x2fdb6800-0x2fdb7fff] [    0.00]
Zone ranges:
[    0.00]   DMA32    [mem 0x-0x3fff]
[    0.00]   Normal   empty
[    0.00] Movable zone start for each node [    0.00] Early memory
node ranges [    0.00]   node   0: [mem 0x-
0x04ff]
[    0.00]   node   0: [mem 0x0530-0x3fff]
[    0.00] Initmem setup node 0 [mem 0x-
0x3fff]
[    0.00] On node 0 totalpages: 261376 [    0.00]   DMA32 zone: 4096
pages used for memmap [    0.00]   DMA32 zone: 0 pages reserved
[    0.00]   DMA32 zone: 261376 pages, LIFO batch:63 [    0.00] psci:
probing for conduit method from DT.
[    0.00] psci: PSCIv1.0 detected in firmware.
[    0.00] psci: Using standard PSCI v0.2 function IDs [    0.00] psci:
MIGRATE_INFO_TYPE not supported.
[    0.00] psci: SMC Calling Convention v1.1 [    0.00] percpu:
Embedded 22 pages/cpu s52632 r8192 d29288 u90112 [    0.00] pcpu-alloc:
s52632 r8192 d29288 u90112 alloc=22*4096 [    0.00] pcpu-alloc: [0] 0 [0] 1
[0] 2 [0] 3 [0] 4 [0] 5 [    0.00] Detected VIPT I-cache on CPU0 [    
0.00]
CPU features: detected: ARM erratum 845719 [    0.00] Built 1 zonelists,
mobility grouping on.  Total pages: 257280 [    0.00] Policy zone: DMA32
[    0.00] Kernel command line: root=/dev/mmcblk0p2 rootwait rw
console=ttyAML0,115200n8  no_console_suspend fsck.repair=yes
net.ifnames=0 elevator=noop hdmimode=1080p60hz cvbsmode=576cvbs
max_freq_a53=1896 max_freq_a73=1800 maxcpus=6 voutmode=hdmi
disablehpd=false cvbscable=0 overscan=100  monitor_onoff=false
usb-xhci.tablesize=2 logo=osd0,loaded
[    0.00] Dentry cache hash table entries: 131072 (order: 8,
1048576 bytes, linear)
[    0.00] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes,
linear) [    0.00] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.00] Memory: 748756K/1045504K available (7932K kernel code, 728K
rwdata, 2784K rodata, 1856K init, 403K bss, 34604K reserved, 262144K cma-
reserved) [    0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0,
CPUs=6, Nodes=1 [    0.00] rcu: Preemptible hierarchical RCU
implementation.
[    0.00] rcu: RCU restricting CPUs from NR_CPUS=256 to
nr_cpu_ids=6.






Re: [gentoo-user] Guidance on using Gentoo to clone a Win 10 system drive

2020-01-06 Thread Bill Kenworthy

Hi Mark,
    was your old version Win10 PRO" as well? - as far as I know a 
reinstall will only validate if the hardware as recorded at MS mostly 
matches and its the same version.  Cloning via dd, then running through 
the re-validation checks, then making changes in small steps is the only 
way I have been able to make it work despite what is written in the link 
below.


Also check out: 
https://www.techrepublic.com/article/windows-10-will-microsoft-charge-you-if-you-need-to-reinstall/


BillK


On 7/1/20 7:37 am, Mark Knecht wrote:

Michael,
   I got Win 10 Pro installed via the M$ tool that creates USB install 
devices. It worked fine. Reading online it seems that if M$ sees the 
new disk as still the same 'hardware' then it's supposed to 
automatically validate and I'd be good to go. so far, after 2 hours it 
hasn't done that but I'll give it awhile and see what happens. As it 
only took an hour I might still try the disk copy path and see if that 
comes up validated as that would also transfer the couple of 
applications I have on the original hard drive.


   Anyway, thanks for the ideas.

Cheers,
Mark

On Mon, Jan 6, 2020 at 3:01 PM Michael Jones > wrote:


You can use the Windows 10 Download Tool (Or similarly named
thing, sorry, I can't find the details of it at this time) to
download an ISO image

Combine that with the rufus program https://rufus.ie/ (I use the
portable one, personally) to create a Windows 10 USB installer stick.

On Mon, Jan 6, 2020 at 2:39 PM Mark Knecht mailto:markkne...@gmail.com>> wrote:

Hi Michael,
   Thanks for the response. Great info.

   The install Win 10 clean sounds wonderful if it works. With
no DVD in this machine it sounds like I should investigate an
install from USB if the machine supports it. It's an Asus
gaming laptop circa 2008 so hopefully that works but I've
never done it on this machine.

Cheers,
Mark

On Mon, Jan 6, 2020 at 12:56 PM Michael Jones
mailto:gen...@jonesmz.com>> wrote:

Generally the way I've handled this situation in the past
is like so (this is written from memory, so expect
gratuitous problems).

On the machine with the drive attached
mbuffer -i /dev/mydrive | xz -e -9 | mbuffer -O hostname:port

On a machine with storage space
mbuffer -I port -o /path/to/storage.xz

To make a backup.


In terms of cloning windows to another harddrive in
general, as long as the destination harddrive is large
enough to fit the original drive without issues, simply
running:

dd if=/dev/original of=/dev/destination
(I prefer dcfldd, personally)

Is enough. Run gparted (the graphical version, for nice
wizards) after, and it'll fixup your partition table for
you to match the new size, and you can re-size any
partitions you have to make them match as well. I do
exactly this all the time and have yet to have a problem.

As for windows 10 licensing, don't trust me on this
blindly, but your license should be tied to the hardware
fingerprint of the laptop. So even installing windows
fresh on your new SSD should result in Windows activating
automatically. In fact, you might want to take this
opportunity to try that out, to get a completely fresh
installation without the decade of old cruft built up by
window's lack of a package manager.

If it doesn't activate as soon as you plug in an ethernet
cable, you can just wipe your SSD and copy your old
installation as discussed already.



On Mon, Jan 6, 2020 at 1:11 PM Mark Knecht
mailto:markkne...@gmail.com>> wrote:

Hi all,
   I haven't been here in a couple of years. IT's
great to see some familiar names posting. Cheers to all.

   I have a laptop running Win 10 with no (working)
DVD/CDROM. For various reasons I want to move from a
10 year old laptop drive to a new SSD and am looking
for guidance on I might do that. Win 10 is properly
licensed but through a weird channel - it was Win 7
that M$ allowed to convert to Win 10 for free and I'm
nervous that if the hard drive died I'd have to
purchase a new license as the free conversion path
likely doesn't exist anymore.

   Both drives are nominally 500GB.

   The older hard drive fdisk info shows:

root@science:~# fdisk --list /dev/sde
Disk /dev/sde: 465.8 GiB, 500107862016 bytes,
976773168 

Re: [gentoo-user] External hard drive and idle activity

2020-01-01 Thread Bill Kenworthy

On 2/1/20 10:27 am, Dale wrote:

Mick wrote:

On Thursday, 2 January 2020 00:09:14 GMT Dale wrote:

Howdy,

As some may recall, I have a 8TB external SATA hard drive that I do back
ups on.  Usually, I back up once a day, more often if needed.  Usually I
turn the power on, mount it, do the back ups, unmount and turn the power
back off.  Usually it is powered up for 5 minutes or so.  When I unmount
it tho, I sometimes notice it is still doing something.  I can feel the
mechanism for the heads moving.  It has a slight vibration to it.
Questions are, what is it doing and should I let it finish before
powering it off?  I'd assume that once it in unmounted, the copy process
is done so the files are safe.  I guess it is doing some sort of
internal checks or something but I'm not sure.

There is some delay with data still in the buffers between rsync/cp/tar/what-
ever saying it's finished on your terminal and the drive itself finishing
storing the data on the platters.

If you look at vmstat, or keep an eye on Gkrelm you'll see what I mean.
Normally, if you try to unmount a drive while it is still being written to,
the umount/udisks command will complain the drive is busy.


When it does it for a somewhat short period of time, I can understand
that.  It's one reason I try to leave it on when it "feels" that it is
still busy.  Thing is, there are times when it goes on for 30 minutes or
more.  At those times, even a USB stick should be done.  One would think
at least.  It makes me curious as to what it is doing in that case.
Still, I'd rather the unmount command force a wait until it is done.
Honestly, I wouldn't want a drive or software that says something is
done when it isn't.  It's not good even when shutting a system down.
Given the speed of drives, I would think a few seconds at most.  Best to
be safe.  ;-)  I just wonder, is it doing two different things?  One
when it is busy for short periods of time and something else when it
goes on for a while.  This is what sort of puzzles me.  Selftest maybe??


Is it safe to turn it off even tho it is doing whatever it is doing?
Should I wait?  Does it matter?

Thanks.

Dale

:-)  :-)

If you wait for a few seconds after the backup is completed before you unmount
the drive, you should be OK.  Although it may slow down or any LEDs flash less
frequently the drive may not stop spinning, unless there is some power save
process taking control of it.


Given the speed, it is likely done when I tell the KDE thingy to
unmount.  Usually, I start the backup and walk away for a few minutes.
I do it with one of my scripts, if one can call what I do a script, and
it does the date command at the end.  Even if there was a lot of
changes, I can tell how long it was completed.  I try to give it a
couple minutes.  Still, good point.  This is one reason I'm asking about
this.  It's hard to know exactly what is going on here.


P. S. Down to last router that was discussed in another thread so I
bought it while they had it.  Price may go up if I didn't.  Did more
research on old modem, it is risky to try to convert to AT  Some say
not possible.

Right, ISP controlled firmware typically requires re-flashing the device with
the new ISP's firmware version.  In some cases even the boot code needs
replacing.  Should you flash the router with a wrong firmware build, you could
sometimes derive a door stop without additional cost.  In this case you'll
need a JTAG and access to its circuit board with an OEM boot/firmware version
to recover it.  In most cases OEMs support lines will redirect you to your
ISP, who run an overseas support line and will ask you to reboot your
MSWindows PC ... O_o

This is a reason I avoid these kind of routers as much as I can.


Keep in mind, two pieces of hardware.  Router for the first two
sentences and Modem for next two.  Tried to be short so . . . . Anyway,
router should be flashable with Openwrt.  It's a slightly older model.
New model may be ready for flashing in a year or two but not so much at
the moment so I went with the older model. The modem, I never could find
the firmware.  I found links to it but those links ended up being dead.
Even if I had it, it was unlikely to work.  Possible but I'd be
concerned about its stability and such even if it did take it. I have a
modem and router on the way.  I just didn't want to miss the deal on the
router.  They had several a couple weeks or so ago.  I got the last
one.  Waiting for their arrival.

Dale

:-)  :-)

Oh, I may post and see if anyone needs a Frontier modem later.  Maybe
someone on here could use a spare or just needs one period, moving or
something.  Modem is wireless with a router as well.  Nice modem I guess.



Try atop from sys-process/atop - it will show you how busy individual 
disks are (and a lot of other stats as well.)


You can issue a sync command to flush any disk buffers before unmounting 
(umounting should sync as well.).  The heads may keep moving because of 
the internal data management 

Re: [gentoo-user] Gentoo on an odroidH2 using eMMC

2019-12-16 Thread Bill Kenworthy

On 17/12/19 6:31 am, Bill Kenworthy wrote:

Hi,

    has anyone successfully set up Gentoo on an odroidH2 using an eMMC?

I have got as far as the pivot-root (so it loads and executes the 
intramfs) but fails to find the /dev/mmcblk0p[01] devices.  The sting 
is I copied the files it to a USB key and that boots fine! It appears 
that the eMMC initramfs is not loading the modules for the eMMC where 
as the USB version is (and they are using the same file!).  I have 
tried manually loading the modules from the efi shell I think are 
involved but no mmc devices appear.


The eMMC runs uefi from GPT partitions using refind but as the bios 
finds and loads the ramdisk I think thats working ok (I did a working 
ubuntu install first, then reused those partitions.) I can use usb 
early boot to pivot to the root on the USB key but so far cant pivot 
from the eMMC initramfs to real_root. Ubuntu uses grub, which I tried 
first but had even less success with that.


Hints anyone?

BillK





One further point, I cant boot off the usb and pivotroot to the eMMC 
root - again no eMMC modules loaded.  But once the usb root is running, 
the eMMC modules are loaded.  Its looking like the kernel device 
detection needs real root which is ... odd!


BillK





[gentoo-user] Gentoo on an odroidH2 using eMMC

2019-12-16 Thread Bill Kenworthy

Hi,

    has anyone successfully set up Gentoo on an odroidH2 using an eMMC?

I have got as far as the pivot-root (so it loads and executes the 
intramfs) but fails to find the /dev/mmcblk0p[01] devices.  The sting is 
I copied the files it to a USB key and that boots fine!  It appears that 
the eMMC initramfs is not loading the modules for the eMMC where as the 
USB version is (and they are using the same file!).  I have tried 
manually loading the modules from the efi shell I think are involved but 
no mmc devices appear.


The eMMC runs uefi from GPT partitions using refind but as the bios 
finds and loads the ramdisk I think thats working ok (I did a working 
ubuntu install first, then reused those partitions.) I can use usb early 
boot to pivot to the root on the USB key but so far cant pivot from the 
eMMC initramfs to real_root. Ubuntu uses grub, which I tried first but 
had even less success with that.


Hints anyone?

BillK







Re: [gentoo-user] power button to shutdown for openrc?

2019-11-13 Thread Bill Kenworthy



On 13/11/19 4:55 pm, Mick wrote:

On Wednesday, 13 November 2019 06:48:11 GMT n952162 wrote:

I've reinstalled gentoo from the gentoo repository and now my power
button doesn't do a shutdown anymore.  What do I have to do to have it
issue a shutdown?  This is an openrc system.

I have this, but it doesn't work:

$ cat  /etc/acpi/events/powerbtn
event=button[ /]power.*
action=/sbin/poweroff

I don't have the above file, only /etc/acpi/events/default, which invokes '/
etc/acpi/default.sh' and that's all my systems need to shutdown gracefully
when I press the power button.

NOTE:  I only press the power button momentarily.  If I press and keep pressed
the power button for a few seconds, then the system powers off instantly
without a graceful shutdown (a.k.a. I then will get a hard shutdown with no
disk syncing or flushing of caches).



On a different gentoo system I have, I have just the one line, the
action line, in that file and the power-button works fine (whether
there's causation there or not, I have no idea :-) )

Judging from my systems I don't think the file you are using is necessary,
unless this is supposed to be a fix for some MoBos which do not work as
expected.



I generally do /not/ press the power button while in my window manager,
but first when I've logged off.  Since that wasn't working, I tried
inside my window manager ... I got a just a couple of lines that looked
like they came from shutdown(), but too few (couldn't read them).

Then, on startup, the filesystems needed fscking!!!

Does the same thing happen if you run '/sbin/shutdown -h now' ?



Hi,
    have you installed elogind? - for me it took over and replaced the 
acpi functions by intercepting the call beforehand.  It also hijacks 
suspend hibernate.


A couple of weks back it "broke" and is is recording the power button is 
pressed but doesnt take the actions required by its config file.  
"loginctl suspend" works ... sort of ...


BillK


Hi,
    have you installed elogind? - for me it took over and replaced the 
acpi functions by intercepting the call beforehand.  It also hijacks 
suspend hibernate.


A couple of weks back it "broke" and is is recording the power button is 
pressed but doesnt take the actions required by its config file.  
"loginctl suspend" works ... sort of ...


BillK





Re: [gentoo-user] visualise openrc initscript start order and dependency tree

2019-11-08 Thread Bill Kenworthy
On 9/11/19 4:03 am, J. Roeleveld wrote:
> On Thursday, November 7, 2019 4:06:10 PM CET Daniel Frey wrote:
>> On 2019-11-07 04:37, Bill Kenworthy wrote:
>>> I have run into some problems creating openrc initscripts for moosefs -
>>> is there something that will display the start order/dependency tree?
>>> Text or graphical doesn't matter.
>>>
>>> Bill K.
>> rc-status does try to resolve dependencies and list them in order, try
>> `rc-status -a` - this will list all scripts (including ones not in startup.)
>>
>> Dan
> Actually, it doesn't show what is depending on what.
>
> I had a similar issue and ended up checking every init-script, conf.d file 
> and 
> rc.conf entry and making a dependency-tree manually on a big white-board.
>
> I haven't found a tool that does this automatically yet.
>
> --
> Joost
>
>
>
>
Thanks, I ended up working around it rather than solving i.


BillK






[gentoo-user] visualise openrc initscript start order and dependency tree

2019-11-07 Thread Bill Kenworthy
I have run into some problems creating openrc initscripts for moosefs -
is there something that will display the start order/dependency tree? 
Text or graphical doesn't matter.

Bill K.






Re: [gentoo-user] Consolekit and elogind switch questions

2019-10-28 Thread Bill Kenworthy
On 28/10/19 2:23 pm, Arve Barsnes wrote:
> On Mon, 28 Oct 2019 at 04:38, Dale  wrote:
>> Also, are there any other options to elogind?  Is that the only option
>> when using KDE?
> I think the answer here is yes.
>
> I run openbox, so no requirement to have this at all, but I have
> previously done the migration to elogind, and that went without a
> hitch. With no experience to back me up, I think the thing that might
> break upon migration is the shutdown/reboot scripts, so you might have
> to reboot from the commandline. Otherwise I don't expect much trouble.
>
> Regards,
> Arve
>
It works for me - but its annoying in that its inherited some parts of
the systemd "stuff you - I dont care, I am going to take it over anyway"
attitude.  For me its laptop suspend/hibernate - its never worked as
well as previous scripts and it seems it cant be undone.  Its also quite
chatty in the logs - also annoying.

I know the author is responsive and has done a good job in just being
able to get it to work, but he has started with crapware and it shows.
(sorry, but suspend/hibernate is a sore point for me)

BillK





Re: [gentoo-user] Re: syslog-ng 10s pause during startup

2019-10-19 Thread Bill Kenworthy
moriah ~ # esearch haveged
[ Results for search key : haveged ]
[ Applications found : 1 ]

*  sys-apps/haveged
  Latest version available: 1.9.2-r1
  Latest version installed: [ Not Installed ]
  Size of downloaded files: 483 kB
  Homepage:    http://www.issihosts.com/haveged/
  Description: A simple entropy daemon using the HAVEGE algorithm
  License: GPL-3+
 
moriah ~ #




On 19/10/19 10:34 pm, Daniel Frey wrote:
> On 10/18/19 5:47 PM, Grant Edwards wrote:
>> On 2019-10-18, Daniel Frey  wrote:
>>
>>> It is waiting for entropy to build.
>>
>> Interesting -- what does syslog-ng need entropy for?
>>
>>> Moving mouse or typing on keyboard will speed it up but I have
>>> machines only controlled by IR so this was not helpful.
>>
>> Thanks, I'll try that.
>>
>
> I'm not sure actually. I only found it after 15 minutes of
> troubleshooting while noting the time when things started/stopped. I
> came across a log entry with something saying "waiting for entropy"
> and when I noted when boot continued another entry like "entropy
> gathered."
>
> Those aren't the actual log entries but what I "translated" the
> entries to.
>
> Thankfully I wasn't scratching my head for hours over that one. I did
> find if you left it long enough (my IR device would continue boot on
> its own after 20 minutes or so) it would eventually boot.
>
> Waiting 20 minutes for a MythTV appliance to start is pretty silly
> though.
>
> Dan
>
>




[gentoo-user] dhcpcd not updating interface IP

2019-10-14 Thread Bill Kenworthy
Since Augusts dhcpcd update to net-misc/dhcpcd-7.2.3 dhcpcd has often
missed actually updating the interface when a change happens.  Even
issuing a manual dhcpcd -n  doesn't work, but restarting the
interface gets everything working again.  Its the WAN interface to the
ISP so can only see my side of the link.

Is anyone else seeing this?


BillK





Re: [gentoo-user] Black Screen of Death

2019-07-31 Thread Bill Kenworthy

On 7/19/19 2:48 PM, Stefan Schmiedl wrote:
> Re: [gentoo-user] Black Screen of Death "jdm" ,
> 19.07.2019, 07:28:
>
> > I have updated firmware line in kernel as this now includes a few extra
> > lines so not loading all of the available firmware.
>
> > Thanks for advice and I'll see how I get on.
>
> Can you trigger the crash by (over-)exerting the system?
>
> A few years ago I had a box with 4x4GB of RAM and a similar
> crash only occurred during heavy load, say recompiling gcc
> with -j 9. Turned out that _two_ of the four RAM modules were
> faulty. And statistical evidence led me to the conclusion
> that those were only used when the first 8GB were exhausted.
>
> If you can spare the box for a day, boot into memtest and
> let it run for at least 12 hours.
>
> s. 


Also, check if you have cpu isolation turned off in your kernel - when
its on causes this type of crash.


Bill K.




Re: [gentoo-user] query ebuild fields

2019-06-21 Thread Bill Kenworthy
and
rattus ~ # esearch x11-terms/rxvt-unicode
[ Results for search key : x11-terms/rxvt-unicode ]
[ Applications found : 1 ]

*  x11-terms/rxvt-unicode
  Latest version available: 9.21
  Latest version installed: [ Not Installed ]
  Size of downloaded files: 903 kB
  Homepage:    http://software.schmorp.de/pkg/rxvt-unicode.html
  Description: rxvt clone with xft and unicode support
  License: GPL-3
 
rattus ~ #

its less a search than a database lookup like the locate command so its
very fast

rattus ~ # esearch app-portage/esearch
[ Results for search key : app-portage/esearch ]
[ Applications found : 1 ]

*  app-portage/esearch
  Latest version available: 1.3-r2
  Latest version installed: 1.3-r2
  Size of downloaded files: 18 kB
  Homepage:    https://github.com/fuzzyray/esearch
  Description: Replacement for 'emerge --search' with search-index
  License: GPL-2
 
rattus ~ #



On 22/6/19 1:42 am, Mick wrote:
> On Friday, 21 June 2019 18:27:58 BST Ian Zimmerman wrote:
>> Is there a command to show the fields like DESCRIPTION and HOMEPAGE from
>> an installed ebuild, or is this one of the annoying gaps in the
>> framework that must be (and can be) trivially worked around?
>>
>> Example: I have installed x11-terms/rxvt-unicode.  I don't know what it
>> is (no, really! :-P ) and I sure as h*ll don't know the exact version
>> number I have.  I want to visit the upstream website to learn more.
>>
>> I know the following command will mostly do it, but it will
>> occassionally show too much and scroll the relevant result off the
>> screen.  Also, being a search, it is much slower than necessary.
>>
>> emerge --search --quiet n x11-terms/rxvt-unicode
> I use 'eix -l ' to get this sort of information.  I'm sure there are 
> cleverer options to use with eix, so it only prints the database fields you 
> want, but the above has served most of my needs well.  Install app-portage/
> eix, then run eix-update and from then on you can use eix-sync to sync 
> portage 
> and/or overlays with a mirror and search for the package you want.
>
> rxvt-unicode is a terminal emulator, like xterm, konsole, terminology, xfce4-
> terminal , etc. which you use within your xsession, instead of having to 
> switch over to a tty.
>
> There's even a page about it - I can't recall having read before, but it 
> looks 
> quite detailed:
>
> https://wiki.gentoo.org/wiki/Rxvt-unicode
> https://wiki.gentoo.org/wiki/Terminal_emulator
>
> HTH





Re: [gentoo-user] Profile 17.1 fails at the analyse stage

2019-06-20 Thread Bill Kenworthy
On 20/6/19 9:40 pm, Rich Freeman wrote:
> On Thu, Jun 20, 2019 at 9:21 AM Jack  wrote:
>> The --analyze phase bailed out before even starting.  I filed an issue
>> upstream (mgorny's github repository) and he made a change (I didn't
>> look at the actual commit) so this situation should now be handled
>> correctly.  I think he did want to accept anything that ended up
>> pointing to the right place, but was afraid of ending up with an
>> unpredictable result, so now it will accept either the relative or
>> absolute form.  I don't know when he will release a new version.
>>
> IMO that was the right design choice.  You just don't want to mess
> around with these symlinks without care, so it is better to test that
> everything is as expected.  Otherwise you'll break some system that
> somebody had tweaked 5 years ago and forgotten about.  This way the
> edge cases get reported, and can be taken into account before opening
> things up more...
>
2 out of 7 systems have this style symlink - one is quite old (many
years), the other only one year or so. How system level links would
happen in this way is strange.  Both systems have been through (in some
cases multiple) restores from backup which may have been the cause.


BillK





Re: [gentoo-user] Profile 17.1 fails at the analyse stage

2019-06-20 Thread Bill Kenworthy
On 20/6/19 3:47 pm, Peter Humphrey wrote:
> On Thursday, 20 June 2019 00:02:35 BST Bill Kenworthy wrote:
>> On 20/6/19 2:26 am, Jack wrote:
>>> Bill - you might try "rm /usr/lib" WITHOUT the trailing slash, to
>>> remove the symlink.  Then "ln -s lib64 /usr/lib" will recreate it in
>>> the form unsymlink-lib seems to require.
>> Thanks, nicely picked!
>>
>> Hair split and now all works as intended.  Just found another system
>> with the same problem too.
> Why is it a problem? The instructions clearly stated that the symlink might 
> not be revmoved, and that you should remove it yourself in that case.
>
Thats towards the end - I couldn't get past step 4 ...

BillK





Re: [gentoo-user] Profile 17.1 fails at the analyse stage

2019-06-19 Thread Bill Kenworthy
On 20/6/19 2:26 am, Jack wrote:
> On 2019.06.19 14:10, Neil Bothwick wrote:
>> On Wed, 19 Jun 2019 20:45:03 +0800, Bill Kenworthy wrote:
>>
>> > wifi ~ # unsymlink-lib --analyze
>> > /usr/lib needs to be a symlink to lib64!
>> > wifi ~ # ls -al /usr/lib
>> > lrwxrwxrwx 1 root root 10 Jan  4 13:37 /usr/lib -> /usr/lib64
>> > wifi ~ #
>> >
>> > The symlink looks the same as another unconverted system - so whats
>> the
>> > problem?
>>
>> On this system, /usr/lib is a symlink to lib64, as the message states,
>> not /usr/lib64
>>
>> % ls -ld /usr/lib
>> lrwxrwxrwx 1 root root 5 Jul 16  2015 /usr/lib -> lib64
>>
>>
>> -- 
>> Neil Bothwick
> Ah, I think we've gotten to a bad splitting of hairs.  /usr/lib ->
> lib64 and /usr/lib -> /usr/lib64 have the same effect, but are not
> quite the same.  The first is a relative symlink, the second is
> absolute, although both actually point to the same place.
>
> Bill - you might try "rm /usr/lib" WITHOUT the trailing slash, to
> remove the symlink.  Then "ln -s lib64 /usr/lib" will recreate it in
> the form unsymlink-lib seems to require.
>
> Jack

Thanks, nicely picked!

Hair split and now all works as intended.  Just found another system
with the same problem too.


BillK





[gentoo-user] Profile 17.1 fails at the analyse stage

2019-06-19 Thread Bill Kenworthy
I have converted 4 systems to the 17.1 profile but this one fails at the
first hurdle:

wifi ~ # eselect profile list
Available profile symlink targets:
  [1]   olympus:default/linux/amd64/17.0 (stable) *
  [2]   olympus:default/linux/amd64/17.0/selinux (stable)
  [3]   olympus:default/linux/amd64/17.0/hardened (stable)
  [4]   olympus:default/linux/amd64/17.0/hardened/selinux (stable)
  [5]   olympus:default/linux/amd64/17.0/desktop (stable)
  [6]   olympus:default/linux/amd64/17.0/desktop/gnome (stable)
  [7]   olympus:default/linux/amd64/17.0/desktop/gnome/systemd (stable)
  [8]   olympus:default/linux/amd64/17.0/desktop/plasma (stable)
  [9]   olympus:default/linux/amd64/17.0/desktop/plasma/systemd (stable)
  [10]  olympus:default/linux/amd64/17.0/developer (stable)
  [11]  olympus:default/linux/amd64/17.0/no-multilib (stable)
  [12]  olympus:default/linux/amd64/17.0/no-multilib/hardened (stable)
  [13]  olympus:default/linux/amd64/17.0/no-multilib/hardened/selinux
(stable)
  [14]  olympus:default/linux/amd64/17.0/systemd (stable)
  [15]  olympus:default/linux/amd64/17.0/x32 (dev)
  [16]  olympus:default/linux/amd64/17.1 (stable)
  [17]  olympus:default/linux/amd64/17.1/selinux (stable)
  [18]  olympus:default/linux/amd64/17.1/hardened (stable)
  [19]  olympus:default/linux/amd64/17.1/hardened/selinux (stable)
  [20]  olympus:default/linux/amd64/17.1/desktop (stable)
  [21]  olympus:default/linux/amd64/17.1/desktop/gnome (stable)
  [22]  olympus:default/linux/amd64/17.1/desktop/gnome/systemd (stable)
  [23]  olympus:default/linux/amd64/17.1/desktop/plasma (stable)
  [24]  olympus:default/linux/amd64/17.1/desktop/plasma/systemd (stable)
  [25]  olympus:default/linux/amd64/17.1/developer (stable)
  [26]  olympus:default/linux/amd64/17.1/no-multilib (stable)
  [27]  olympus:default/linux/amd64/17.1/no-multilib/hardened (stable)
  [28]  olympus:default/linux/amd64/17.1/no-multilib/hardened/selinux
(stable)
  [29]  olympus:default/linux/amd64/17.1/systemd (stable)
  [30]  olympus:default/linux/amd64/17.0/musl (exp)
  [31]  olympus:default/linux/amd64/17.0/musl/hardened (exp)
  [32]  olympus:default/linux/amd64/17.0/musl/hardened/selinux (exp)
  [33]  olympus:default/linux/amd64/17.0/uclibc (exp)
  [34]  olympus:default/linux/amd64/17.0/uclibc/hardened (exp)
wifi ~ # unsymlink-lib --analyze
/usr/lib needs to be a symlink to lib64!
wifi ~ # ls -al /usr/lib
lrwxrwxrwx 1 root root 10 Jan  4 13:37 /usr/lib -> /usr/lib64
wifi ~ #

The symlink looks the same as another unconverted system - so whats the
problem?


BillK'





[gentoo-user] MS Sculpt Touch Mouse

2019-05-26 Thread Bill Kenworthy
I have a Microsoft Touch mouse that used to work fine with libinput, but
recently something has changed and I have lost much of the functionality.

libinput recognises it but doesn't seem to have the mapping - does
anyone have a libinput conf file for this?

BillK


Device:   Microsoft Sculpt Touch Mouse
Kernel:   /dev/input/event256
Group:    3
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock:    n/a
Left-handed:  disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:  n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation: n/a

Device:   Microsoft Sculpt Touch Mouse Consumer Control
Kernel:   /dev/input/event257
Group:    3
Seat: seat0, default
Capabilities: keyboard pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock:    n/a
Left-handed:  n/a
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:  n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation: n/a

Device:   Microsoft Sculpt Touch Mouse Keyboard
Kernel:   /dev/input/event258
Group:    3
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock:    n/a
Left-handed:  n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:  n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation: n/a





Re: [gentoo-user] udisks and exfat

2019-05-01 Thread Bill Kenworthy
On 1/5/19 4:35 pm, Mick wrote:
> On Wednesday, 1 May 2019 03:32:21 BST Bill Kenworthy wrote:
>> Got sidetracked - turns out fuse and exfat on usb do not play well with
>> mounts as a user due to changes late last year.  It can now only be
>> mounted/unmounted by root.
>>
>> The second part (also due to fuse) is that to stop fuse (silently as ls
>> still showed the execute bit set) from interfering with execution of
>> files on the mounted device) it must be mounted as the user under a user
>> owned directory such as /home/user (mount cannot deal with this - it did
>> in the past, but something has changed).  So the solution is to mount
>> via root as the user you want (via sudo) under a mount point in the
>> users home.  This may all be unique to fuse-exfat, and which versions of
>> everything involved as I saw one email on the mechanics of the changes
>> saying fat is handled a little differently due to a different use
>> scenario.  And ext2/3/4 etc don't have the problem at all.  Auto-mount
>> on device plugin still doesn't happen so thats next on my list.
>>
>> /etc/fstab:
>>
>> /dev/sda1   /home/myuser/mnt   auto   
>> rw,auto,exec,uid=1000,gid=1000,users,user=myuser   0 0
>>
>>
>> BillK
> exFAT and VFAT are mounted with different permissions by udisks, without 
> overriding options in fstab or command line.
>
> A random file in exFAT:
>
> $ stat /run/media/michael/VERBATIM32G/blah 
>   File: /run/media/michael/VERBATIM32G/blah
>   Size: 32768 Blocks: 64 IO Block: 4096   regular file
> Device: 811h/2065dInode: 19  Links: 1
> Access: (0777/-rwxrwxrwx)  Uid: ( 1000/ michael)   Gid: ( 1002/ michael)
> Access: 2018-06-08 11:20:50.0 +0100
> Modify: 2015-08-24 12:50:56.0 +0100
> Change: 2015-08-24 12:50:56.0 +0100
>  Birth: -
>
> A random file in FAT:
>
> $ stat /run/media/michael/CRUCIAL-8G/blah 
>   File: /run/media/michael/CRUCIAL-8G/blah
>   Size: 1731366   Blocks: 3384   IO Block: 4096   regular file
> Device: 810h/2064dInode: 124 Links: 1
> Access: (0644/-rw-r--r--)  Uid: ( 1000/ michael)   Gid: ( 1002/ michael)
> Access: 2019-04-08 01:00:00.0 +0100
> Modify: 2007-08-25 22:46:42.0 +0100
> Change: 2019-04-08 14:04:54.0 +0100
>  Birth: -
>
> Ditto for directories.
>
> exFAT:
>
> $ stat /run/media/michael/VERBATIM32G/Foo
>   File: /run/media/michael/VERBATIM32G/Foo
>   Size: 32768 Blocks: 64 IO Block: 4096   directory
> Device: 811h/2065dInode: 24  Links: 1
> Access: (0777/drwxrwxrwx)  Uid: ( 1000/ michael)   Gid: ( 1002/ michael)
> Access: 2018-02-11 17:22:52.0 +
> Modify: 2018-02-11 17:22:54.0 +
> Change: 2018-02-11 17:22:54.0 +
>  Birth: -
>
>
> FAT:
>
> $ stat /run/media/michael/CRUCIAL-8G/Foo
>   File: /run/media/michael/CRUCIAL-8G/Foo
>   Size: 4096  Blocks: 8  IO Block: 4096   directory
> Device: 810h/2064dInode: 79  Links: 2
> Access: (0755/drwxr-xr-x)  Uid: ( 1000/ michael)   Gid: ( 1002/ michael)
> Access: 2019-04-08 01:00:00.0 +0100
> Modify: 2019-04-08 14:43:26.0 +0100
> Change: 2019-04-08 14:43:26.0 +0100
>  Birth: -
>
> The mount options are different as shown below.
>
> exFAT:
>
> $ findmnt -oOPTIONS /dev/sdb1
> OPTIONS
> rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,
> blksize=4096
>
> FAT:
>
> $ findmnt -oOPTIONS /dev/sdb
> OPTIONS
> rw,nosuid,nodev,relatime,uid=1000,gid=1002,fmask=0022,dmask=0022,codepage=437,
> iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro
>
>
> In the above examples I used udisksctl to mount the devices.  I understand 
> Gnome expose via Gvfs an API to handle I/O to block devices, which desktop 
> applications can plug into without performing raw kernel calls to hardware 
> devices (like e.g. /bin/mount does).  I don't run Gnome and am not familiar 
> with its internals to know how similar it is with udisksctl.
>
> Regarding mounting with udisksctl I don't know why exFAT and VFAT are 
> different, but the udisksctl man page provides this revealing information on 
> the mount permissions allowed:
>
>   The device will be mounted with a safe set of default options. You
>   can influence the options passed to the mount(8) command with
>   --options. Note that only safe options are allowed - requests with
>   inherently unsafe options such as suid or dev that would allow the
>   caller to gain additional privileges, are rejected.
>
> HTH.

Sounds like you are using gnome/systemd ... thats a whole other box of
worms to open.  This is a gnomeless openrc system with a recently
getting elogind to replace consolekit.


BillK





Re: [gentoo-user] udisks and exfat

2019-04-30 Thread Bill Kenworthy
Got sidetracked - turns out fuse and exfat on usb do not play well with
mounts as a user due to changes late last year.  It can now only be
mounted/unmounted by root.

The second part (also due to fuse) is that to stop fuse (silently as ls
still showed the execute bit set) from interfering with execution of
files on the mounted device) it must be mounted as the user under a user
owned directory such as /home/user (mount cannot deal with this - it did
in the past, but something has changed).  So the solution is to mount
via root as the user you want (via sudo) under a mount point in the
users home.  This may all be unique to fuse-exfat, and which versions of
everything involved as I saw one email on the mechanics of the changes
saying fat is handled a little differently due to a different use
scenario.  And ext2/3/4 etc don't have the problem at all.  Auto-mount
on device plugin still doesn't happen so thats next on my list.

/etc/fstab:

/dev/sda1   /home/myuser/mnt   auto   
rw,auto,exec,uid=1000,gid=1000,users,user=myuser   0 0


BillK



On 4/30/19 6:51 PM, Mick wrote:
> On Tuesday, 30 April 2019 04:07:23 BST Jack wrote:
>> On 2019.04.29 21:19, Bill Kenworthy wrote:
>>> How does one execute a file on an exfat formatted usb key?
>>>
>>> I have an encryption app that must be executed from the drive to work
>>> (secure-stick).  Works great in windows, linux is a real pain because
>>> I
>>> think udisks is forcing execute off and I cant overide it.
>>>
>>>
>>> help!
>>>
>>> BillK
>> At least show us the output of "ls -l" on the file in question.  Does
>> "chown +x file" have any effect?  Why do you think you can't execute
>> such a file?  What happens when you try?  How have you tried?
>>
>> Jack
> I just mounted a USB stick which has been formatted with exFAT and the files 
> and directories are executable:
>
> # ls -la /run/media/michael/VERBATIM32G/
> total 10672960
> drwxrwxrwx  1 michael michael  32768 Jan  1  1970  .
> drwxr-x---+ 3 rootroot60 Apr 30 11:40  ..
>
> I tested running a bash script by passing the full path to the terminal and 
> it 
> works as expected.



Re: [gentoo-user] udisks and exfat

2019-04-30 Thread Bill Kenworthy
On 30/4/19 6:51 pm, Mick wrote:
> On Tuesday, 30 April 2019 04:07:23 BST Jack wrote:
>> On 2019.04.29 21:19, Bill Kenworthy wrote:
>>> How does one execute a file on an exfat formatted usb key?
>>>
>>> I have an encryption app that must be executed from the drive to work
>>> (secure-stick).  Works great in windows, linux is a real pain because
>>> I
>>> think udisks is forcing execute off and I cant overide it.
>>>
>>>
>>> help!
>>>
>>> BillK
>> At least show us the output of "ls -l" on the file in question.  Does
>> "chown +x file" have any effect?  Why do you think you can't execute
>> such a file?  What happens when you try?  How have you tried?
>>
>> Jack
> I just mounted a USB stick which has been formatted with exFAT and the files 
> and directories are executable:
>
> # ls -la /run/media/michael/VERBATIM32G/
> total 10672960
> drwxrwxrwx  1 michael michael  32768 Jan  1  1970  .
> drwxr-x---+ 3 rootroot60 Apr 30 11:40  ..
>
> I tested running a bash script by passing the full path to the terminal and 
> it 
> works as expected.

I will grab the info tomorrow.  I was hoping there is a guide somewhere
as it happens on multiple systems and from what I have read its by
design.  There is so much old info on the net on how to fix the problem
with it appearing to be implemented differently on each major distro,
and none of the work arounds/fixes work on gentoo.


BillK





[gentoo-user] udisks and exfat

2019-04-29 Thread Bill Kenworthy
How does one execute a file on an exfat formatted usb key?

I have an encryption app that must be executed from the drive to work
(secure-stick).  Works great in windows, linux is a real pain because I
think udisks is forcing execute off and I cant overide it.


help!

BillK





[gentoo-user] elogind problem

2019-04-24 Thread Bill Kenworthy
Hi,

    I have just replaced console-kit with elogind and while its fixed my
X server problems, its brought some downsides as well.  Primarily, I
used to use acpi to hibernate but elogind has coopted the power button
so acpid doesnt get the signal, and added a suspend to lid closure but
then I cant run scripts to recover the touch screen etc.
(MSsurfacePro4).  I could deal with that except the docs for
systemd-logind (the elogind docs refer there) say they have removed the
possibility run arbitrary scripts from logind (and so I assume also
elogind). 

So how can I recover the hardware to a working state using elogind? 
Worst case would seem to be disable elogind hibernate/suspend in its
config file and handle it old school but is there a better way using
elogind?

Bill K.





Re: [gentoo-user] What happened to glsa-check?

2019-04-01 Thread Bill Kenworthy
On 1/4/19 8:23 pm, Klaus-J. Wolf wrote:
> Hm, my version displays a different usage help:
>
> #python3 /usr/lib64/portage/python3.6/glsa-check
> No mode given: what should I do?
> usage: glsa-check  [glsa-list]
>
> optional arguments:
>  -h, --help    show this help message and exit
>  -V, --version Some information about this tool
>  -v, --verbose Print more information
>  -n, --nocolor Disable colors
>  -e, --emergelike  Do not use a least-change algorithm
>  -c, --cve Show CAN ids in listing mode
>
> Modes:
>  -l, --list    List all unapplied GLSA
>  -d, --dump    Show all information about the given GLSA
>  --print   Alias for --dump
>  -t, --test    Test if this system is affected by the given GLSA
>  -p, --pretend Show the necessary commands to apply this GLSA
>  -f, --fix Try to auto-apply this GLSA (experimental)
>  -i, --inject  inject the given GLSA into the glsa_injected file
>  -m, --mail    Send a mail with the given GLSAs to the administrator
>
> My version belongs to portage-2.3.62.
>
> Are there more than one version in use? And why?


I would guess:

1. that the portage version is meant for the internal use of portage
(hence why its "in an odd spot") and is divorced from the user package.

2. gentoolkit has the user version as "equery f gentoolkit" shows a
/usr/bin/symlink.


rattus ~ # equery f gentoolkit|grep glsa
/usr/bin/glsa-check
/usr/lib/python-exec/python2.7/glsa-check
/usr/lib/python-exec/python3.6/glsa-check
/usr/lib64/python2.7/site-packages/gentoolkit/glsa
/usr/lib64/python2.7/site-packages/gentoolkit/glsa/__init__.py
/usr/lib64/python2.7/site-packages/gentoolkit/glsa/__init__.pyc
/usr/lib64/python2.7/site-packages/gentoolkit/glsa/__init__.pyo
/usr/lib64/python3.6/site-packages/gentoolkit/glsa
/usr/lib64/python3.6/site-packages/gentoolkit/glsa/__init__.py
/usr/lib64/python3.6/site-packages/gentoolkit/glsa/__pycache__
/usr/lib64/python3.6/site-packages/gentoolkit/glsa/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gentoolkit/glsa/__pycache__/__init__.cpython-36.opt-2.pyc
/usr/lib64/python3.6/site-packages/gentoolkit/glsa/__pycache__/__init__.cpython-36.pyc
/usr/share/man/man1/glsa-check.1.bz2
rattus ~ #




Re: [gentoo-user] What happened to glsa-check?

2019-04-01 Thread Bill Kenworthy
On 1/4/19 7:45 pm, Klaus-J. Wolf wrote:
> Hi you people,
>
> I am not a frequent reader of any list, so I ask for patience if I am
> not familiar with info just recently discussed.
>
> From olden times, and from https://wiki.gentoo.org/wiki/GLSA I know a
> tool called glsa-check. It was intended to check your system against
> recent security advisories.
>
> I was surprised I couldn't find it anymore on my Gentoo system. But
> stop, here it is:
>
> # find / -name glsa-check
> /usr/lib64/portage/python3.6/glsa-check 
> /usr/lib64/portage/python2.7/glsa-check
>
> Really a strange place for a tool that "can be run by users" but anyway.
>
> But python3 /usr/lib64/portage/python3.6/glsa-check -l which should
> display "all unapplied GLSA" gives me: All GLSAs, from the beginning.
>
> So, what happened here? A dead project? Why?
> And if so, what replaced it?
>
> I hope you can help me.
>
> Best wishes to you -
>
> k.j.w.


It belongs to gentoolkit


rattus ~ # equery b glsa-check
 * Searching for glsa-check ...
app-portage/gentoolkit-0.4.2-r1 (/usr/bin/glsa-check ->
../lib/python-exec/python-exec2)
app-portage/gentoolkit-0.4.2-r1 (/usr/lib/python-exec/python3.6/glsa-check)
app-portage/gentoolkit-0.4.2-r1 (/usr/lib/python-exec/python2.7/glsa-check)
sys-apps/portage-2.3.62 (/usr/lib/portage/python3.6/glsa-check)
sys-apps/portage-2.3.62 (/usr/lib/portage/python2.7/glsa-check)
rattus ~ # 


and -l doesnt mean what you think it does ...


rattus ~ # glsa-check --help
Syntax: glsa-check  [glsa-list]

-l  --list  : list the GLSAs
-d  --dump  : show all information about the GLSAs
    --print
-t  --test  : test if this system is affected by the GLSAs
-p  --pretend   : show the necessary steps to apply the GLSAs
-f  --fix   : try to auto-apply the GLSAs (experimental)
-i  --inject    : inject the given GLSA into the glsa_injected file
-n  --nocolor   : disable colors (option)
-e  --emergelike    : upgrade to latest version (not least-change,
option)
-h  --help  : show this help message
-V  --version   : some information about this tool
-v  --verbose   : print more information (option)
-c  --cve   : show CVE ids in listing mode (option)
-q  --quiet : be less verbose and do not send empty mail
(option)
-m  --mail  : send a mail with the given GLSAs to the
administrator

glsa-list can contain an arbitrary number of GLSA ids,
filenames containing GLSAs or the special identifiers
'all' and 'affected'
rattus ~ #


Try

rattus ~ # glsa-check -t all
This system is affected by the following GLSAs:
201705-10
rattus ~ #


BillK






Re: [gentoo-user] Ssh problem : half-solved

2019-03-11 Thread Bill Kenworthy
On 11/3/19 5:23 pm, Philip Webb wrote:
> 190311 Neil Bothwick + Mick wrote:
> NB> Try without the +, that works for me here.  I have an appliance
>> that uses outdated algorithms and this config works for me
>>   Host 1.2.3.4
>>   Ciphers 3des-cbc
>>   KexAlgorithms diffie-hellman-group1-sha1
>>   HostKeyAlgorithms ssh-dss  
> I tried adding the  2  extra lines to ~/.ssh/config , but no joy.
> I didn't reboot, but it's not clear that that would make any difference.
>
> M> As I understand it the "+" merely adds one more cipher to the collection.
>> This is probably safer.  If the server has been updated
>> and non-legacy key exchange algorithms are now available they can be used.
>> Without "+" the directive for the client is exclusive :
>> only use this algorithm and nothing else.
> That's what the 'man' says.
>
> NB> That's how I read it, but it says it appends to the list,
>> so this is the last option tried,
>> while an earlier one could possibly be triggering the failure.
>> With + would be better, but it would be worth trying without.
> I tried both & neither gets Ssh to recognise the config.
>
> This is a puzzle : are they any other suggestions ?
>
This works for me (ancient Cisco ...)

rattus ~ # cat ~/.ssh/config
Host 192.168.44.1
   KexAlgorithms +diffie-hellman-group1-sha1
Host ghost
   KexAlgorithms +diffie-hellman-group1-sha1

Which file are putting it in? - this is the client side user.




Re: [gentoo-user] dracut and UUID's

2019-02-16 Thread Bill Kenworthy
On 17/2/19 10:08 am, Rich Freeman wrote:
> On Sat, Feb 16, 2019 at 8:48 PM Bill Kenworthy  wrote:
>> I have cloned a gentoo image for a raspberry pi to another sdcard.
>> It fails to boot because the storage uuid's have changed and dracut has
>> the previous uuid's stored internally.  Is there a way around this
>> without changing the new storage's uuids back to match the original (its
>> bad practise to duplicate uuids) or using an original rpi kerneal and
>> rebuild the custom one?
> Are you passing root=UUID=xyz on the command line?  Also, do you have
> the correct UUID in /etc/fstab?
>
> Dracut does save a snapshot of fstab internally, but I think it should
> work if passed the UUID on the command line.  You do want the real
> /etc/fstab to have the correct UUID, because after dracut mounts root
> it checks fstab and remounts root with any options in case its
> internal copy is stale.  If the fstab on the hard drive is incorrect
> that could lead it astray.
>
> If it isn't breaking to a shell you can force it to with a command
> line option, and then from there just mount root yourself on /sysroot,
> and exit the shell, and then it should boot.  Another option is to
> just use it as a rescue image and just mount root on /sysroot and then
> just chroot into it, and now you're basically at a semi-working
> system.  You could easily rebuild dracut from there.  Or you can just
> boot from a rescue disk and regenerate dracut.
>
> But, I suspect just editing your command line in grub will do the
> trick if /etc/fstab on the hard drive is good.
>
Hi Rich, no grub! A rpi uses a custom loader (apparently the GPU starts
the boot process).  I'll investigate if it can passthrough a UUID. 
Looks like next stop is the pi forums, but most use their kernel, not a
custom one.


BillK





[gentoo-user] dracut and UUID's

2019-02-16 Thread Bill Kenworthy
Hi all,

    I have cloned a gentoo image for a raspberry pi to another sdcard. 
It fails to boot because the storage uuid's have changed and dracut has
the previous uuid's stored internally.  Is there a way around this
without changing the new storage's uuids back to match the original (its
bad practise to duplicate uuids) or using an original rpi kerneal and
rebuild the custom one?


BillK





Re: [gentoo-user] xorg 1.20.x not working

2019-02-10 Thread Bill Kenworthy


On 11/2/19 3:51 am, John Covici wrote:
> On Sun, 10 Feb 2019 11:57:27 -0500,
> Andrew Savchenko wrote:
>> [1  ]
>> On Sun, 10 Feb 2019 10:21:21 -0600 Dale wrote:
>>> Andrew Savchenko wrote:
>>>> On Wed, 16 Jan 2019 15:18:37 +0800 Bill Kenworthy wrote:
>>>>> Hi,
>>>>>
>>>>> I have a problem with any of the xorg-server 1.20.x series where I can
>>>>> start simple apps like xterm but more complexapps like firefox and
>>>>> thunderbird (for example) hang X with no erros in dmessage, log,
>>>>> Xorg.0.log, .xsession-errors etc.  The mouse can move but no clicks are
>>>>> accepted.  I have also recently run emerge -ep  with the profile upgrade
>>>>> (using 1.19 as I needed to use the system at the time) and a previous
>>>>> rebuild of almost everything with 1.20 installed with no change.
>>>> You need to rebuild all x11-drivers after xorg update. Input
>>>> problems you are describing are likely caused by modules built for
>>>> older xorg version.
>>>>
>>>> Try:
>>>>  # emerge -av $(eix -IC x11-drivers --only-names)
>>>>
>>>> Best regards,
>>>> Andrew Savchenko
>>> Isn't one of these supposed to do that?
>>>
>>> emerge @module-rebuild
>>>
>>> emerge @x11-module-rebuild
>>>
>>> I think the top one is the correct one. 
>> The top one will rebuild kernel modules. So it has nothing to do
>> with xorg. The bottom one is correct, I just forgot about it.
> I have much worse problems, whenever I start gdm, the screen shows the
> same content  as the virtual console where I started gdm.  Gdm is
> running, x-server is running, but the screen is not showing it.  I did
> compile all the drivers, so this is very strange.
>
Another me too ... same problem, same symptoms, complete rebuild
including modules.  After hours of work I have had to mask 1.20 so I can
have a working system.


BillK






Re: [gentoo-user] VRFs / Jails / Containers

2019-02-02 Thread Bill Kenworthy
On 3/2/19 12:52 pm, Grant Taylor wrote:
> On 2/2/19 9:39 PM, Michael Jones wrote:
>> systemd-nspawn is also an option, but I don't think that'll work with
>> OpenRC.
>
> Ya  I moved (back to) Gentoo to get away from systemd.  I'm not
> going to voluntarily opt to use it, or any of it's children.  That's
> /my/ opinion.  I know others opinions differ.
>
> Thank you for the information all the same.
>
I am unclear on what you are trying to do.  I find the gentoo scripts
good for the simple case but a complex case almost always needs extra
help.  If its networking, could something like shorewall help?

BillK





Re: [gentoo-user] VRFs / Jails / Containers

2019-02-02 Thread Bill Kenworthy
On 3/2/19 10:32 am, Grant Taylor wrote:
> Does Gentoo have any support for VRFs or (chroot) Jails or Containers
> without going down the Docker (et al) path?
>
> I'm wanting to do some things with a Gentoo router that is trivial to
> do with network namespaces via manual commands ~> scripts.  But that's
> far from standard Gentoo init script based system.  And I'd like
> something more Gentoo standards based.
>
> Does Gentoo have or support anything like this natively?  Or am I
> getting into territory where I'm rolling my own


LXC containers ??


BillK




[gentoo-user] xorg 1.20.x not working

2019-01-15 Thread Bill Kenworthy
Hi,

I have a problem with any of the xorg-server 1.20.x series where I can
start simple apps like xterm but more complexapps like firefox and
thunderbird (for example) hang X with no erros in dmessage, log,
Xorg.0.log, .xsession-errors etc.  The mouse can move but no clicks are
accepted.  I have also recently run emerge -ep  with the profile upgrade
(using 1.19 as I needed to use the system at the time) and a previous
rebuild of almost everything with 1.20 installed with no change.

The system has been running fine on xorg versions up to 1.19 for over a
year and I can wind it back to 1.19 and everything works again.


Any hints on how to get 1.20 working would be appreciated as 1.19 is
about to be removed from the tree.

BillK


[ebuild   R    ] x11-base/xorg-server-1.20.3:0/1.20.3::olympus  USE="dmx
glamor ipv6 suid udev xorg

uid=1000(wdk) gid=1000(wdk)
groups=1000(wdk),10(wheel),18(audio),27(video),100(users),249(input),102(plugdev),996(davfs2)

bunyip ~ # getfacl /dev/dri/card0
getfacl: Removing leading '/' from absolute path names
# file: dev/dri/card0
# owner: root
# group: video
user::rw-
user:wdk:rw-
group::rw-
mask::rw-
other::---

bunyip ~ #




Re: [gentoo-user] trying to find old kernel ebuild

2019-01-14 Thread Bill Kenworthy
On 14/1/19 10:27 pm, Rich Freeman wrote:
> On Mon, Jan 14, 2019 at 7:47 AM Bill Kenworthy  wrote:
>> Hi,
>>
>> I am trying to find the ebuild and files  for
>> sys-kernel/gentoo-sources-4.18.20 but as its no longer in the tree I
>> checked the attic but it looks like it is only cvs and no longer in use
>> for git.
>>
>> I couldnt find gentoo sources in the server linked to from the cvs
>> attic. Is there an equivalent to the attic for git, or a stanza to
>> retrieve it?
> If you have a git checkout, then chdir to the package directory, and
> run "git whatchanged ." and search for the ebuild filename in the
> output to find the commit where it was removed, then go one commit
> further and check out that commit.
>
> If you want to do it on the web I'd:
>
> 1.  go to https://gitweb.gentoo.org/repo/gentoo.git/
> 2.  Click tree
> 3.  Navigate to the desired package directory
> 4.  Hit log
> 5.  Search for 4.18.20 if what you are looking for isn't in the last
> page, or feel free to browse the history.
> 6.  Click on the most recent commit of interest.
> 7. Find the ebuild in the commit, and click on its filename to get the
> full contents of the ebuild.
> 8.  Click on the plain button next to the blob ID to get the raw
> ebuild.  For convenience it is:
> https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-kernel/gentoo-sources/gentoo-sources-4.18.20.ebuild?id=966dc9c8c004d79b02cb0250ecef65974164f295
>
> If you're interested in running non-Gentoo-supported kernel series
> though I'd suggest just using the upstream kernel repo directly.  Then
> you have access to upstream releases when they are released, even if
> that series never gets a Gentoo ebuild.
>
> However, either way you ought to understand what you're doing.  4.18
> is not supported by upstream or Gentoo.  The kernel will obviously
> work the way it always did, but if there is a security update/etc you
> won't get it.  If you want to avoid significant kernel changes you
> should try to settle on a longterm kernel, like 4.14 or 4.19, and then
> just stick with it until a more recent longterm is appropriate.  Those
> get incremental stable updates for a long time.
>
> I think Gentoo's intent is to keep stable following a longterm branch,
> but there were some issues with a recent longterm that probably has
> derailed this a bit.  I'm not on the kernel team so you're better off
> going to them if there are questions.  If you want to not have to
> worry about maintenance then you should either follow upstream or
> Gentoo, and setting out on your own should only be done to bisect
> issues or when you know what you're doing...
>
Hi Rich, unfortunately 4.18.20 is the last one that supports the ipts
patch set (surface pro4 touch screen) ... its flaky, bu the earlier ones
are even worse so going to a LT kernel isnt really useful.  I hope they
can get a 4.19 or 4.20 patch set up soon, but apparently kernel changes
have made it difficult. 4.19 without touch does work with only minor
problems, but of course with no touch screen.

BillK





[gentoo-user] trying to find old kernel ebuild

2019-01-14 Thread Bill Kenworthy
Hi,

    I am trying to find the ebuild and files  for
sys-kernel/gentoo-sources-4.18.20 but as its no longer in the tree I
checked the attic but it looks like it is only cvs and no longer in use
for git.

I couldnt find gentoo sources in the server linked to from the cvs
attic. Is there an equivalent to the attic for git, or a stanza to
retrieve it?

BillK





Re: [gentoo-user] Re: Linux: "make menuconf" creates a hardly useable interface

2019-01-12 Thread Bill Kenworthy
snip


This happens to me when ssh'ing into various machines with a different
console size.  With screen in xfce-terminal I use F11 to maximise/resize
the screen to force the screen to redraw correctly.

Is this a common key map to the redraw function and does it work for you?

BillK





Re: [gentoo-user] SystemRescueCD with nonm

2018-12-31 Thread Bill Kenworthy
On 31/12/18 6:26 pm, Peter Humphrey wrote:
> On Sunday, 30 December 2018 19:03:31 GMT Alarig Le Lay wrote:
>> Hi,
>>
>> I modified the boot options to have a debugging OS on my DHCP for LAN:
>> drscott ~ # grep netboot /srv/tftp/pxelinux.cfg/default
>> APPEND rescue64 scandelay=1
>> netboot=http://[2a01:cb08:898c:fc00::1]/sysrcd.dat docache setkmap=fr
>> console=ttyS0,115200 console=tty0 rootpass=root dhcp -- rescue32
>> scandelay=1 netboot=http://[2a01:cb08:898c:fc00::1]/sysrcd.dat docache
>> setkmap=fr console=ttyS0,115200 console=tty0 rootpass=root dhcp LABEL
>> netboot
>> kernel netboot
>>
>> Hope this helps.
> Hmm. Not sure it does. I'd have to consider the work in changing the .iso. As 
> I couldn't even mount it -oloop to write it to a USB drive, that looks like a 
> big job.
>
> I suppose I'll just have to put up with NetworkManager. (Boo, hiss...)
>
Let it come up, then kill -9 it and get on with life ...


BillK





Re: [gentoo-user] Re: Error during boot up.

2018-12-20 Thread Bill Kenworthy
On 21/12/18 5:37 am, Grant Edwards wrote:
> On 2018-12-20, Dale  wrote:
>
>> I don't think it would help.  It's the speed that is the problem. It was
>> almost impossible to read anything with my old CPU. It's nothing but a
>> blur with this new one.  Mostly, I saw red letters and what looked like
>> the word "error". 
>>
>> If it will log the error, that is best because I can copy and paste it
>> into a search engine and find out what it means and how to fix it, if I
>> don't figure it out on my own.  May help someone else reading this tho.  ;-)
> With most more modern motherboards this is probably not an option, but
> when I'm troubleshooting that sort of thing, I tell the kernel to use
> a serial console. I connect something to the serial port that logs the
> data to a file (usually a second Linux machine running C-Kermit, but
> there are untold other options), and Bob's your uncle.
>
> With GRUB, you can usually hit  to stop autoboot, then
>  to edit the default boot options to add the
> "console=" incantation.
>
> If you really want to geek out, you can configure GRUB to use the
> serial console also (but that's not really needed for your situation).
>
> So far, I've been able to avoid buying a motherboard without at least
> one plain-old-UART on it.  These days you usually have to provide your
> own ribbon-cable-DB9 bracket, but it's still a lifesaver for obscure
> kernel problems.
>
> Another option is 'netconsole':
>
>https://wiki.archlinux.org/index.php/Netconsole
>
> It doesn't kick in as early as a serial-console does, but it it might
> be early enough if the NIC driver and netconsole drivers are compiled
> into the kernel as opposed to being a loadable module.
>
Tried this? /etc/rc.conf

# rc_logger launches a logging daemon to log the entire rc process to
# /var/log/rc.log
# NOTE: Linux systems require the devfs service to be started before
# logging can take place and as such cannot log the sysinit runlevel.
rc_logger="YES"

# Through rc_log_path you can specify a custom log file.
# The default value is: /var/log/rc.log
rc_log_path="/var/log/rc.log"

BillK





[gentoo-user] Routing issue with OpenVPN and internal DNS

2018-12-03 Thread Bill Kenworthy
On 4/12/18 10:26 am, Andrew Udvare wrote:
> On 03/12/2018 09:49, Michael Orlitzky wrote:
>> On 12/3/18 5:55 AM, Andrew Udvare wrote:
>>> iptables on server:
>>> -A FORWARD -s 10.100.0.0/24 -i tun0 -o enp1s0f0 -m conntrack --ctstate
>>> NEW -j ACCEPT
>>>
>> Is that only forwarding packets for new (i.e. not existing) connections?
> ...


sent too soon, missed some ...


As its a router, have you correctly configured openvpn's
client-to-client, CCD and iroute setup?


Google "openvpn networks behind server"


BillK







Re: [gentoo-user] Routing issue with OpenVPN and internal DNS

2018-12-03 Thread Bill Kenworthy
On 4/12/18 10:26 am, Andrew Udvare wrote:
> On 03/12/2018 09:49, Michael Orlitzky wrote:
>> On 12/3/18 5:55 AM, Andrew Udvare wrote:
>>> iptables on server:
>>> -A FORWARD -s 10.100.0.0/24 -i tun0 -o enp1s0f0 -m conntrack --ctstate
>>> NEW -j ACCEPT
>>>
>> Is that only forwarding packets for new (i.e. not existing) connections?
> ...


As its a router, have you correctly configured openvpn's
client-to-client setup?


BillK






Re: [gentoo-user] Re: Small (as in footprint) window manager

2018-12-02 Thread Bill Kenworthy
ratpoison is a good option for mythtv - no mouse but it maps keyboard to
window manager functions.  Ideal for using a remote as its easy to map
the keys.

BillK


On 3/12/18 4:54 am, Daniel Frey wrote:
> On 12/2/18 11:14 AM, Grant Edwards wrote:
>>
>> MythTV's requirement to use a GUI setup program on a "headless"
>> server, always seemed like a massively stupid design decision.
>
> Yes, it was a dumb decision. However, I suppose it's better than
> having to edit that by hand... they could've uses a cli or curses
> interface or something.
>
>>
>> That said, it's been many years since I've run MythTV.  I switched to
>> SageTV because of the brilliantly small and silent set-top-boxes. But
>> Google bought SageTV and pulled the plug on that, so a year or two
>> back I switched to Plex (which you configure via a web UI).  The Plex
>> plugin for OSMC/Kodi has a clumsy UI, but works pretty well.  However,
>> the Plex app for Roku seems to be useless...
>>
>
> I've only ever run MythTV. Lately though I use Kodi with Kodi's Myth
> plugin on all TVs but my living room TV and computer.
>
> Usually when I'm doing work to this I'm physically in front of it.
> Fluxbox seems nice, going to try windowmaker and it's terminal but gcc
> barfed compiling Objective-C support. Trying it again... one of my PCs
> compiled the objc USE-flag fine, and the other didn't.
>
>
> Dan
>




Re: [gentoo-user] Shorewall config problem

2018-11-12 Thread Bill Kenworthy
On 13/11/18 12:09 pm, Adam Carter wrote:
> On Mon, Nov 12, 2018 at 9:11 PM Peter Humphrey  > wrote:
>
> Morning all,
>
> When emerging shorewall-5.2.1.1 I get an error from the kernel
> settings check:
>
> CONFIG_NF_CONNTRACK_IPV4:   is not set when it should be.
>
> This is with gentoo-sources-4.19.1. And indeed there is no such
> kernel
> parameter:
>
>
>  Yep, grepped my .config archive and its gone in 4.19 so the shorewall
> ebuild (at least) will need an update. Checked bugzilla?


Grepping .config will only work sometimes - If its enabled it will be
there, if not it "may or may not be"

Only sure way that I am aware of is to use the search function "\" from
within make menuconfig.


Bill K.





Re: [gentoo-user] Hard drive storage questions

2018-11-09 Thread Bill Kenworthy
On 09/11/18 10:29, Rich Freeman wrote:
> On Thu, Nov 8, 2018 at 8:16 PM Dale  wrote:
>> I'm trying to come up with a
>> plan that allows me to grow easier and without having to worry about
>> running out of motherboard based ports.
>>
> So, this is an issue I've been changing my mind on over the years.
> There are a few common approaches:
>
> * Find ways to cram a lot of drives on one host
> * Use a patchwork of NAS devices or improvised hosts sharing over
> samba/nfs/etc and end up with a mess of mount points.
> * Use a distributed FS
>
> Right now I'm mainly using the first approach, and I'm trying to move
> to the last.  The middle option has never appealed to me.
>
> So, to do more of what you're doing in the most efficient way
> possible, I recommend finding used LSI HBA cards.  These have mini-SAS
> ports on them, and one of these can be attached to a breakout cable
> that gets you 4 SATA ports.  I just picked up two of these for $20
> each on ebay (used) and they have 4 mini-SAS ports each, which is
> capacity for 16 SATA drives per card.  Typically these have 4x or
> larger PCIe interfaces, so you'll need a large slot, or one with a
> cutout.  You'd have to do the math but I suspect that if the card+MB
> supports PCIe 3.0 you're not losing much if you cram it into a smaller
> slot.  If most of the drives are idle most of the time then that also
> demands less bandwidth.  16 fully busy hard drives obviously can put
> out a lot of data if reading sequentially.
>
> You can of course get more consumer-oriented SATA cards, but you're
> lucky to get 2-4 SATA ports on a card that runs you $30.  The mini-SAS
> HBAs get you a LOT more drives per PCIe slot, and your PCIe slots are
> you main limiting factor assuming you have power and case space.
>
> Oh, and those HBA cards need to be flashed into "IT" mode - they're
> often sold this way, but if they support RAID you want to flash the IT
> firmware that just makes them into a bunch of standalone SATA slots.
> This is usually a PITA that involves DOS or whatever, but I have
> noticed some of the software needed in the Gentoo repo.
>
> If you go that route it is just like having a ton of SATA ports in
> your system - they just show up as sda...sdz and so on (no idea where
> it goes after that).  Software-wise you just keep doing what you're
> already doing (though you should be seriously considering
> mdadm/zfs/btrfs/whatever at that point).
>
> That is the more traditional route.
>
> Now let me talk about distributed filesystems, which is the more
> scalable approach.  I'm getting tired of being limited by SATA ports,
> and cases, and such.  I'm also frustrated with some of zfs's
> inflexibility around removing drives.  These are constraints that make
> upgrading painful, and often inefficient.  Distributed filesystems
> offer a different solution.
>
> A distributed filesystem spreads its storage across many hosts, with
> an arbitrary number of drives per host (more or less).  So, you can
> add more hosts, add more drives to a host, and so on.  That means
> you're never forced to try to find a way to cram a few more drives in
> one host.  The resulting filesystem appears as one gigantic filesystem
> (unless you want to split it up), which means no mess of nfs
> mountpoints and so on, and all the other headaches of nfs.  Just as
> with RAID these support redundancy, except now you can lose entire
> hosts without issue.  With many you can even tell it which
> PDU/rack/whatever each host is plugged into, and it will make sure you
> can lose all the hosts in one rack.  You can also mount the filesystem
> on as many hosts as you want at the same time.
>
> They do tend to be a bit more complex.  The big players can scale VERY
> large - thousands of drives easily.  Everything seems to be moving
> towards Ceph/CephFS.  If you were hosting a datacenter full of
> VMs/containers/etc I'd be telling you to host it on Ceph.  However,
> for small scale (which you definitely are right now), I'm not thrilled
> with it.  Due to the way it allocates data (hash-based) anytime
> anything changes you end up having to move all the data around in the
> cluster, and all the reports I've read suggests it doesn't perform all
> that great if you only have a few nodes.  Ceph storage nodes are also
> RAM-hungry, and I want to run these on ARM to save power, and few ARM
> boards have that kind of RAM, and they're very expensive.
>
> Personally I'm working on deploying a cluster of a few nodes running
> LizardFS, which is basically a fork/derivative of MooseFS.  While it
> won't scale nearly as well, below 100 nodes should be fine, and in
> particular it sounds like it works fairly well with only a few nodes.
> It has its pros and cons, but for my needs it should be sufficient.
> It also isn't RAM-hungry.  I'm going to be testing it on some
> RockPro64s, with the LSI HBAs.
>
> I did note that Gentoo lacks a LizardFS client.  I suspect I'll be
> looking to fix that - I'm sure the moosefs 

Re: [gentoo-user] Hard drive storage questions

2018-11-08 Thread Bill Kenworthy
On 09/11/18 09:43, Dale wrote:
> Jack wrote:
>> On 2018.11.08 20:16, Dale wrote:
>>> Howdy to all,
>>>
>>> I have a interesting problem coming up.  Currently, I have two 3TB
>>> drives for my /home mount point.  A lot of this is videos but some pdf
>>> files and other documents as well plus a photo collection of family
>>> stuff etc. 
>>>
>>> Filesystem                       Size  Used Avail Use%
>>> Mounted on
>>> /dev/mapper/Home2-Home2        5.4T  3.7T  1.8T  68% /home
>>>
>>> I've got a little over 25% or so of usable space left.  At that point or
>>> shortly thereafter, it could start causing some issues according to what
>>> I've read anyway.  Either way, shortly after that, being full will
>>> certainly be a issue.  I'm full up on my motherboard SATA ports.  Even
>>> if I buy a larger drive or drives, I'd have to unplug one to move things
>>> over and likely repeat that a few times.  I could do that and likely
>>> will have to anyway but I'm trying to think a little farther ahead. 
>>> Currently I have the more important stuff backed up to a external single
>>> 6TB USB drive, previous thread on that.  I'm trying to come up with a
>>> plan that allows me to grow easier and without having to worry about
>>> running out of motherboard based ports. 
>>>
>>> I thought about a store bought enclosure with more than one hard drive
>>> that connects by ethernet.  The ones I've found are fairly expensive. 
>>> Doing it over USB concerns me for other reasons, USB isn't always that
>>> stable.  So, internal isn't working out to well long term.  Ethernet
>>> based is expensive, what I could find anyway.  USB isn't that stable. 
>>>
>>> I'm planning to upgrade my current system.  Upgrade the CPU, memory and
>>> maybe even the video card as well.  I thought about using a older spare
>>> motherboard, those removed components and building a mini system sort of
>>> thing.  I could have one small drive for a OS and then add large drives
>>> for storage.  Then I can access those from my main system, ethernet I
>>> would guess.  Even then, I'd still be limited to the SATA ports on the
>>> MOBO at some point but it would be a ways into the future.  So far tho,
>>> this is one of the better ideas.  So far.  Does anyone else have other
>>> ideas on how to do this?  Some method that I've never heard of but
>>> doesn't cost a lot of money to do? 
>>>
>>> Thanks in advance for any ideas.  I can't think of anything else.  ;-) 
>>> If you need more info, let me know. 
>>>
>>> Dale
>>>
>> If you have space on the mobo for another card, you should be able to
>> get an additional SATA card.  I have no idea on prices, but I'd be
>> surprised if it's prohibitive.
>>
>> Jack
>>
>
> I hadn't thought of adding a SATA card.  I have a ethernet card and the
> video card and I don't think there are any others.  I should have some
> open slots there.  Well, that is one idea that I hadn't thought of. 
> lol  Since I have a LARGE case, Cooler Master HAF-932, I have space for
> more drives.  I think this thing holds like nine or ten pretty easy. 
>
> Thanks.  Another option to look into. 
>
> Dale
>
> :-)  :-) 
>
I have used a mini-pcie board from ebay (takes two sata connections)
alongside a number of other connection types in a btrfs raid 10 for some
months as a temporary expansion - worked fine, but make sure to check
Linux compatibility first.


BillK





Re: [gentoo-user] Re: no file system found for kernel 4.14.78

2018-11-03 Thread Bill Kenworthy
On 04/11/18 00:46, Nikos Chantziaras wrote:
> On 03/11/2018 15:32, Bill Kenworthy wrote:
>> Kernel 4.14.78 has been released and I have a fail upgrading one system
>> - fails to mount root vfs but oops instead of dropping to a recovery
>> shell:
>>
>> Same boot stanza as 4.14.65, one unrelated (RCU) difference between
>> .configs
>
> Try manually specifying the root fs and the fs type in the kernel
> arguments. Here, I use:
>
>   root=PARTUUID=the-partition-uuid-of-the-root-fs ro rootfstype=ext4
>
> You can see the UUIDs of your partitions with:
>
>   ls -l /dev/disk/by-partuuid
>
> I always had to do that here, otherwise I just get the same boot error
> as you.
>
>
Thanks, found that the initrd is missing - cant include modules failure
from genkernel I missed.  Tracking down why now.


Thanks,

BillK





[gentoo-user] no file system found for kernel 4.14.78

2018-11-03 Thread Bill Kenworthy
Kernel 4.14.78 has been released and I have a fail upgrading one system
- fails to mount root vfs but oops instead of dropping to a recovery shell:

Same boot stanza as 4.14.65, one unrelated (RCU) difference between .configs

Has anyone else had this problem upgrading? - its difficult to FF as the
oops scrolls off the top of the screen and there are no logs.


BillK





[gentoo-user] xorg-server-1.20* failure

2018-10-26 Thread Bill Kenworthy
Hi, I have a problem with xorg-server 1.20*.


LXDM starts, but on login xfce4 freezes with the panel, xfce4-terminal
logo and a blank background.  The mouse moves but no response to
clicking anything on the panel.  startx as a user or root just goes to a
black screen with a blinking cursor. Nothing amiss in the Xorg, dmesg or
syslog logs that I can see.

So far I rebuilt a lot of X, emerge -ep xfce4-meta (some 500 packages)
with no change.

This is the same for 1.20, 1.20.1 and now 1.20.2.  The older 1.19 series
worked fine.

Hardware is MS Surface pro4 with gentoo-sources with Jake Days IPTS
patches - IPTS mouse works along with the touchpad.

There were a few bugs causing somewhat similar symptoms but 1.20.1 was
supposed to fix them - has anyone suggestions on what to fix?

BillK





Re: [gentoo-user] Trouble on the horizon!

2018-09-26 Thread Bill Kenworthy



On 25/09/18 15:28, gevisz wrote:
> вт, 25 сент. 2018 г. в 10:12, J. Roeleveld :
>> On Tuesday, September 25, 2018 8:23:53 AM CEST gevisz wrote:
>>> вт, 25 сент. 2018 г. в 9:15, J. Roeleveld :
 On September 25, 2018 4:36:27 AM UTC, gevisz  wrote:
> пн, 24 сент. 2018 г. в 21:24, J. Roeleveld :
>> On Monday, September 24, 2018 2:42:49 PM CEST Philip Webb wrote:
>>> I did note in a msg to this list earlier this year (2018)
>>> that there had been no kernel stabilised by Gentoo
>>> since spring 2017, which suggested there had been some
>>> decline in kernel quality.
>> Gentoo-sources-4.14.65 is stable in the tree. Which is quite recent.
> After I configured gentoo-sources-4.14.52 kernel with make oldconfig,
> it even could not shut down the computer. So, I came to the same
> decision about kernel quality and masked everything later than
> gentoo-sources-4.9.95. (My 5 cents. :)
 That is interesting.
 I did not have that issue with .52 nor with .65.

 Where does the shutdown hang?
>>> Thank you for replying to my comment. Unfortunately, I already do not
>>> remember exactly what happend after the usual "shutdown -h now"
>>> command but as far as I can remember, it did not switched off the power
>>> at the end of the shutdown process.
>> I did have this with older kernels. Think it's caused by missing ACPI 
>> options.
> My previous kernel was 4.9.95 and the system shut down ok with it.
> Then I configured 4.14.52 using make oldconfig and the old .config
> from 4.9.95 kernel. And, after the usual compilation and installation
> of the new kernel, the system could not shut down.
>
> To not clutter this mailing list, I will send the both kernel configutations
> only to your e-mail adress now.
>
I am suffering same thing/symptoms.  It will often (but not always)
power off on a straight shutdown, but rarely if ever on hibernate.  Been
happening since a late 4.14 and and still happening on 4.18.8.  Race
condition?

Everything shuts down and the screen  shows "[timestamp] Reboot: Power
down" - I have to hold down the power button for 10-15 seconds to remove
power.

Its annoying!

BillK





Re: [gentoo-user] Gentoo centric VPN

2018-09-05 Thread Bill Kenworthy
On 05/09/18 20:15, james wrote:
> So, I need to be able setup and tear down a 4-component network.
> Sometimes all (4) systems will be in the same location, probably about
> 50% of the time.
>
> My (3) personal systems are:
> (1) gentoo laptop (Open RC if that matters)
> (1) window-7 laptop
> (1) Android Cell (galaxy note 9)
>
> These (3) are with me most about 70% of the time, but
> often they will be in different locations hundreds of miles apart.
>
>
> (1) The  corporate windows workstation/server. (always stationary).
> (4) Total, often just the the (3) systems on this transient net.
>
>
> So, my research suggest that WireGuard might be best because most of
> what I'm moving around is a wide variety of image types, as well as
> video and 3D/4D files  and binaries for odd-ball embedded devices, of a
> wide variety. Eventually the file movement will be mostly automated
> (scripted). WireGuard purports to have the most bandwidth capabilities
> and some of these file_sets will be in the  gigabyte range often.
>
>
> I've found lots to read and noodle with, but I'm curious what  (gentoo)
> folks would suggest. For starters it cannot use an outsourced VPN;
> that's dictated by others. So a "home-spun VPN" is warranted.
>
>
> From others ::
> "But WireGuard being awesome is old news. The new news is that now
> there�s an easy way to integrate it into Android ROMs and kernels. "
>
>
>
> https://opensource.com/article/18/8/open-source-tools-vpn
>
> https://www.wireguard.com/install/
>
> https://github.com/max-moser/network-manager-wireguard
>
> https://forum.xda-developers.com/android/development/wireguard-rom-integration-t3711635
>
>
> Those are a few links I found, but I really want a gentoo centric
> method. Others suggests, for custom ROMs, to anything to secure the
> Android phone and get rid of the "crap apps" would be most welcome. If I
> cannot get rid of them I'd like a systematic way to bury those pesky
> Android apps that pedestrian use, down the tree somewhere. I guess what
> I'm trying to say is once I get the (4) devices working, I'll be testing
> a variety of way to setup Android or embedded gentoo on that Android
> Galaxy-9 so I control the stack, it can deeply sniffed, either on the
> internal device or on external ports, via Deep Packet Inspection codes
> on the ports via other microprocessors running embedded gentoo.
>
> Use Gentoo prefix?
>
> An android experimental stack?
>
> I have a second cell phone so I can do whatever I need to with the
> Android Galaxy Note 9. Jtag or other low level hardware programmers are
> of keen interest; mandatory. Perhaps Samsung or another vendor sells the
> hardware programming equipment? 5G bandwidth is definitely front and
> center, when and where it's available, but ignored for now or until
> those phones are available.
>
>
> Discussion, ideas and suggestions are most welcome.
>
>
> curiously,
> James
>
Have not used wireguard.

all running over port 443

openvpn for linux/android

proxytunnel on windows to stunnel on a linux server for the corporate
network.

Use the sslh multiplexor to control and switch incoming ssl.

Unfortunately I have some difficult networks to get out of.  Performance
is ok for gentoo distfile download from my repo, but I have not tried
super large files.


BillK





Re: [gentoo-user] backing up a partition

2018-08-24 Thread Bill Kenworthy
On 24/08/18 20:53, Rich Freeman wrote:
> On Fri, Aug 24, 2018 at 6:09 AM Mick  wrote:
>> However, you may prefer to use clonezilla instead of dd.  The dd command will
>> copy each and every bit and byte of the partition whether it has data on it 
>> or
>> not.  It is not particularly efficient.  Clonezilla will perform better at
>> this task.
>>
>> Personally, I would only keep a back up of the filesystem contents with e.g.
>> rsync, and reformat the partition and restore its contents in the case of a
>> disaster recovery scenario.
> Just to summarize the sorts of options you have:
>
> dd = bit level copy.  Output is the size of the partition, period,
> though you could compress the output by piping it into a compression
> utility/etc.  Restored partition is identical to original, including
> unallocated space, file fragmentation, etc.
>
> clonezilla/partimage/etc = sparse bit level copy.  Output is the size
> of all blocks that contain useful data, and can be further compressed.
> Restored partition will contain zeros in the place of free space, but
> will still preserve file fragmentation, special filesystem features,
> etc.  Basically these tools operate like dd at a block level, but they
> first identify which blocks are used/unused.  Savings is minimal for a
> full filesystem, and substantial for a near-empty one.  These tools
> will fall back to dd if they can't identify free space, and can
> support a wider variety of filesystems quickly because they don't have
> to be able to mount/read the filesystem, just figure out which blocks
> matter.  I'll also note that with clonezilla you get a fairly nice
> all-in-one bootable image that can store these images remotely via
> ssh/samba/etc, which makes restoring images onto bare metal very easy.
>
> tar/rsync/etc = file level copy.  Output is the logical size of all
> the files on the filesystem.  Restore partition will only contain file
> contents - details like fragmentation, trailing unused space in
> blocks, unused space in general, or many filesystem-specific features
> like snapshots/etc will NOT be preserved.  On the other hand it is
> trivial to restore this data to any filesystem of any type of any
> sufficient size.  The other solutions make resizing or changing
> filesystems more-or-less impossible unless you can mount the image
> files and then do a subsequent file-level copy (which is no different
> than doing a file level copy in the first place).
>
> I'd toss in one other general category:
>
> dump/send/etc - filesystem-specific serializing tools.  The tools are
> specific to the filesystem, so you can't just point them at a whole
> hard drive with varying partition types like you can with clonezilla.
> They may or may not reproduce details like fragmentation, but they
> will efficiently store the actual data and will reproduce all
> filesystem-specific features (snapshots, special attributes, etc).
> They may also contain features that make them more efficient
> (especially for incremental backups) because they can use an algorithm
> suited for the low-level data structures employed by the filesystem,
> instead of doing scanning at the file/directory level.  For example,
> it could just read all the metadata on the disk sequentially as it is
> physically stored on the disk, instead of traversing it from root down
> to leaf in the directory hierarchy which could result in lots of
> seeks.  Filesystems like btrfs/zfs have data structures that make it
> VERY efficient to compare two related snapshots and find just the
> differences between them, including differences of one block in the
> middle of a large file without having to read the whole file.
> Restoration usually is flexible with regard to filesystem size, but
> not type.  That is, if you have a 100GB filesystem with 20GB of data,
> you could restore it to a 30GB filesystem of the same type, but not
> one of a different type as with tar.
>
> The best solution for you obviously depends on your needs.  I try to
> go with the last category in general as it is far more efficient.
> But, clonezilla is my general tool for replicating whole systems/etc
> since it does that so well and works with anything.  For partial
> backups of high-value data I use duplicity, which is file-level (and
> supports various cloud/etc options for storage).
>
and another category - do a proper backup using backup software. 
Copying the raw partition has some disadvantages - difficult (but not
impossible) if you want to restore to new hardware (on failure), harder
to restore if you decide to change the underlying filesystem, takes far
longer to copy than a backup but the biggest problem is no versioning. 
Raw copies are great if you want to do an immediate restore, but hard
work or useless after a few days of changes.  Think of it this way - in
almost all cases its the data that's important, not whats holding the data.


BillK





Re: [gentoo-user] Backup questions

2018-08-09 Thread Bill Kenworthy
On 10/08/18 10:46, Dale wrote:
> Wols Lists wrote:
>> On 08/08/18 04:43, Dale wrote:
>>> Howdy,
>>>
>>> I just bought two external drive enclosures.  One is sort of a spare but
>>> 

>>> It has power.  I'm not sure where I'd put a fridge, even a tiny one.  I
>>> wish it was twice as big as it is.  Of course, I'd fill that up in no
>>> time too.  Isn't that the way it works?  ROFL 
>>>
>>> I'm getting interesting ideas tho.  Pondering that backup software
>>> option too.  It has its pluses.  ;-)
>>>
>>> Thanks.
>>>
>>> Dale
>>>
>>> :-)  :-) 
>>>

I would think the cost of setting it up and running a fridge would add
up to hard drive cost over a couple of years anyway (at least for what
we pay in Western Australia :)  In a humid environment you would need to
be very careful of condensation, and a sealed system will still need a
way to transfer the heat as if the cooling fails, it will cook itself
very fast

I have the fans set to spin up faster at 35c and above.  Without the
fans they sit around 45c on a typical day and use.  I have found that in
an enclosure its just as important to have good conduction of heat
(disks mounted to the metal frame) and clear the heated air out of the
enclosure as flowing air over the disks.

Here it gets to 40c+ (>100F) and sometimes humid (not far from the
ocean).  Cooling is fans only, and I have 4 WD Green, 2 WD red and two
seagates (all 2G, in 2x btrfs raid 10) and a few intel and samsung SSD's
(for bcache and system disks) that run ~16 hrs a day with no failures
for the last few years (~10).


Sometimes its better to play the odds.

BillK





Re: [gentoo-user] The memory gremlin

2018-08-09 Thread Bill Kenworthy
On 10/08/18 02:00, Mick wrote:
> On Thursday, 9 August 2018 17:32:33 BST Alan Grimes wrote:
>> [resend, list was down...]
>>
>> I've been meditating on the memory gremlin on my system...
>>
>> The ram is Corsair, 3000mhz. (never had any problem with their sticks in
>> any system ever.)
>>
>> Motherboard is an early release mini-ATX B350 board from Asus...
>>
>> Chip is a R7 1800X
>>
>> The pattern is: all cells test good on memcheck but occasionally there
>> is a bit error somewhere. I think it is a signaling issue between the
>> ram module and the memory interface in the cpu.
>>
>> After meditating on it, I don't think there's anything I can do about it
>> given the STUPID settings the BIOS goes to... The problem with the BIOS
>> is that it considers only what the RAM tells it, it does not take into
>> account that the CPU is rated at 2667mhz... Well there's the answer,
>> this is AMD's first product with DDR4 support, and it's not super
>> awesome so simply acknowledging the limitation there, and setting the
>> memory interface to 2666 (which is what the BIOS offers), it won't be
>> super fast but it damn well should work. =|
> Keep an eye on MoBo firmware updates, Asus are usually OK in providing 
> updates 
> to stabilise their chipsets, as long as the bugs are fixable in software.
>
> Also, if the BIOS offers DRAM timing settings increase the latency a notch 
> and 
> see if that helps.
>
If you can locate it to a location range, you can use a kernel argument
to exclude that area of memory.  The hard part is to map the range.  Had
one system running that way for years.

BillK





Re: [gentoo-user] Backup questions

2018-08-09 Thread Bill Kenworthy
On 08/08/18 11:43, Dale wrote:
> Howdy,
>
> Long story short that leads up to my questions, I paid off some debt. 
>
Hi Dale,

    what you are talking about is not a real backup but a single copy of
your data that may or may not be complete (the delete option you
mention) at a single point in time - not quite as useful as a proper
versioned backup.  Whatever your choice, also look at the restore
procedure - very important.


Have a look at Dirvish or borgbackup (both in portage) for what they can
do.  Having a space efficient store at regular points of time is a
lifesaver at times. To restore from dirvish its a copy from the selected
tree.  With borg its either restore with a command, or mount it and copy
the data out of the mount.

http://dirvish.org/

https://www.borgbackup.org/

I moved from dirvish to borg 12 months ago and they are both excellent.

BillK





Re: [gentoo-user] OT: Open source document management system

2018-08-01 Thread Bill Kenworthy
On 01/08/18 17:27, Sam Jorna (wraeth) wrote:
> On 01/08/18 16:39, J. Roeleveld wrote:
>> On Wednesday, August 1, 2018 8:19:50 AM CEST Bill Kenworthy wrote:
>>> Hi all
>>>
>>> I have been looking for an opensource document management system ...
>>> there are a few but none of the ones I have come across are in portage.
>> I haven't found many good ones.
>> I used "OpenKM" for a while as it is closest to my requirements.
> Here's an ebuild I wrote a while ago for openKM Community. It's binary
> only and I haven't updated or tested it for some time so may need some
> hacking at.
>
> Cheers
> wraeth

Thanks, appreciated.

BillK





[gentoo-user] OT: Open source document management system

2018-08-01 Thread Bill Kenworthy
Hi all

    I have been looking for an opensource document management system ...
there are a few but none of the ones I have come across are in portage.

Are there any DMS's in portage at all?  Otherwise, can someone suggest
ones worth trying as most seem suitable from their websites but its
going to time and labor to start testing them outside portage?

BillK






Re: [gentoo-user] Any real need to switch python targets back and forth every month?

2018-07-26 Thread Bill Kenworthy
On 26/07/18 21:01, Neil Bothwick wrote:
> On Thu, 26 Jul 2018 13:44:28 +0300, Grand Duet wrote:
>
>> Before switching python_targets for the first time, you could use your
>> news system to inform Gentoo users that
>> 1) you are switching python_targets
> Like the one on May 22nd titled "Python 3.6 to become the default target"?
>
>> 2) it may be "a bit premature",
> That sort of information is only known with hindsight or a time machine.
>
>> and so, those who really want to have a stable Gentoo system should
>> 1) do such and such changes to their config files and
> Like in the aforementioned news item?
>
> FWIW I had no problem with the profile change and locked my system at 3.6
> to save switching back when the profile did so.
>
>
Yes there was the original news item - but nothing about the problems
this caused, and the back and forwarding which is causing me grief.  It
is only switching targets, but when you have problems and decide to
remove 3.6 and recompile, then having to go through it all again
without  proper information it has impact.  A news item is supposed to
give information ... I am not criticising the changes itself (sh..
happens), but being left in the dark about it.

BillK





Re: [gentoo-user] how to update python choice

2018-07-25 Thread Bill Kenworthy
Hi, no problems doing it except because of the large number of packages
look forward to hours of compiling (24hrs on my surface pro4).  Got a
few other systems to do which is going to take awhile.

BillK


On 26/07/18 09:10, allan gottlieb wrote:
> I am still using python 3.4, i.e.
>
>   sh-4.4# eselect python show
>   python3.4
>   sh-4.4# 
>
>   sh-4.4# eselect python list
>   Available Python interpreters, in order of preference:
> [1]   python3.4
> [2]   python3.6 (fallback)
> [3]   python3.5 (fallback)
> [4]   python2.7 (fallback)
>   sh-4.4# 
>   
> I realize I should have updated previously.
>
> Is a python update as simple as
>   emerge --update --changed-use --with-bdeps=n @world
>   eselect python set python3.6
>   emerge --update --changed-use --with-bdeps=n @world
>
> I have no custom python scripts on either of my systems.
>
> thanks in advance,
> allan
>




Re: [gentoo-user] Any real need to switch python targets back and forth every month?

2018-07-25 Thread Bill Kenworthy
On 25/07/18 23:20, Mike Gilbert wrote:
> On Wed, Jul 25, 2018 at 7:58 AM Grand Duet  wrote:
>> After today's emerge-webrsync, I have found that python_targets
>> and python_single_targets use flags have been changed again
>> from python3_5 to python3_6, which leads to a lot of recompilation.
>>
>> It already happened last month and a week later the both use flags
>> was changed back, again with a lot of recompilations.
>>
>> And it was not the first time!
>>
>> Is any real need to switch python_targets and python_single_target
>> back and forth every month?
>>
> It's very simple:
>
> 1. The default was switched to python3.6. This was probably a bit premature.
> 2. People complained that this broke their systems, so we reverted the
> default back to python3.5.
> 3. The problems were fixed, so we switched the default back to python3.6.
>
> Sorry to have wasted your precious computing time, but hey, people
> make mistakes sometimes.
>
Major impact on users as well as creating confusion, talk on how a lot
of packages fail on 3.6 whats to say this isn't another mistake - isn't
this what news articles are for?


BillK






[gentoo-user] OT: virtual keyboard and DM

2018-07-16 Thread Bill Kenworthy
Can anyone recommend a virtual keyboard and DM that works on a HiDPI
screen?  I have a Microsoft surface4 and have tried sddm and lightdm
with xkbd, matchbox-keyboard and florence and cant seem to get a working
combination.  They are all too small and don't seem to work nicely or
able to be properly controlled.

BillK





Re: [gentoo-user] syncing via via git and signature failure

2018-07-06 Thread Bill Kenworthy
On 07/07/18 09:42, Floyd Anderson wrote:
> Hi Bill,
>
> On Sat, 07 Jul 2018 07:40:00 +0800
> Bill Kenworthy  wrote:
>>
>> I still have this error and  Ive tried a number of things including:
>>
>> gemato create -p ebuild -K /usr/share/openpgp-keys/gentoo-release.asc
>> /usr/portage/
>>
>> next emerge --sync error-ed on a lot of private manifest files but
>> missing toot manifest error disappeared.  Deleted them and successfully
>> resynced.
>>
>> olympus /usr/portage # gemato verify -s -K
>> /usr/share/openpgp-keys/gentoo-release.asc /usr/portage/
>> INFO:root:Refreshing keys from keyserver...
>> INFO:root:Keys refreshed.
>> ERROR:root:Top-level Manifest /usr/portage/Manifest is not OpenPGP
>> signed
>> olympus /usr/portage #
>>
>> also did a "git reset --hard"
>>
>> still get:
>>
>> olympus /usr/portage # emerge --sync
>>>>> Syncing repository 'gentoo' into '/usr/portage'...
>> /usr/bin/git pull
>> Already up to date.
>>  * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
>>  * Refreshing keys from keyserver
>> ...  
>>   
>>
>> [ ok ]
>>  * No valid signature found: unable to verify signature (missing key?)
>> q: Updating ebuild cache in /usr/portage ...
>
> please be aware of the context of my response to Mick. He use *rsync*
> and so do I. It seems you are using Git and thus, a different tree
> verification mechanism. I don't know why you have gemato installed,
> because it comes usually only with sys-apps/portage[rsync-verify] set
> and is only related to *rsync* therefore.
>
> Have a look at:
>
>  - [1] <https://www.gentoo.org/glep/glep-0074.html>
>  - [2]
> <https://www.gentoo.org/support/news-items/2018-01-30-portage-rsync-verification.html>
>  - [3] <https://wiki.gentoo.org/wiki/Portage_Security>
>
> for some further information. Maybe:
>
>  $ git status --untracked-files
>
> within your tree location can help to identify and sanitise the tree
> from any of your (with gemato) created files.
>
>
Brings up all the manifest files so I'll clean them out, resync and
see.  I do have rsync-verify set but I would not have thought that the
problem.  The system was converted to git syncing (by deletion and
recreating) soon after git became available so it could be something
ancient is the cause.  None of the docs I have examined seem to cover
portage and git problems very well.


BillK





Re: [gentoo-user] syncing via via git and signature failure

2018-07-06 Thread Bill Kenworthy
On 06/07/18 00:06, Floyd Anderson wrote:
> On Wed, 04 Jul 2018 22:57:05 -0400
> John Covici  wrote:
>>
>> I got the following when running your command:
>> gemato verify -K /tmp/gentoo-release.asc.20180703 /usr/portage/
>> INFO:root:Refreshing keys from keyserver...
>> INFO:root:Keys refreshed.
>
> To be more specific, I wasn't interested in verifying the tree. My
> main goal was to get:
>
>  INFO:root:Keys refreshed.
>
> because my sync/update script hung at:
>
>  INFO:root:Refreshing keys from keyserver...
>
> all the time, caused by:
>
>  gpg: Can't check signature: No public key
>
> result, so I wasn't able to update.
>
>> ERROR:root:Top-level Manifest not found in /usr/portage/
>>
>> How can I fix, or do I need to fix?
>
> I've no idea why your portage tree doesn't have a top-level Manifest
> file (assuming "/usr/portage" is the location of your tree), but it
> should be created/updated on next syncing.
>
>

I still have this error and  Ive tried a number of things including:

gemato create -p ebuild -K /usr/share/openpgp-keys/gentoo-release.asc
/usr/portage/

next emerge --sync error-ed on a lot of private manifest files but
missing toot manifest error disappeared.  Deleted them and successfully
resynced.

olympus /usr/portage # gemato verify -s -K
/usr/share/openpgp-keys/gentoo-release.asc /usr/portage/
INFO:root:Refreshing keys from keyserver...
INFO:root:Keys refreshed.
ERROR:root:Top-level Manifest /usr/portage/Manifest is not OpenPGP signed
olympus /usr/portage #

also did a "git reset --hard"

still get:

olympus /usr/portage # emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
/usr/bin/git pull
Already up to date.
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys from keyserver
... 
   
[ ok ]
 * No valid signature found: unable to verify signature (missing key?)
q: Updating ebuild cache in /usr/portage ...


BillK





Re: [gentoo-user] syncing via via git and signature failure

2018-07-04 Thread Bill Kenworthy
On 05/07/18 02:32, gevisz wrote:
> 2018-07-04 21:01 GMT+03:00 Mick :
>> On Wednesday, 4 July 2018 18:57:56 BST gevisz wrote:
>>> 2018-07-04 11:55 GMT+03:00 Alex Thorne :
> I use rsync and get the following for more than a day now;
>
> !!! Manifest verification failed:
> OpenPGP verification failed:
> gpg: Signature made Wed 04 Jul 2018 04:08:28 AM UTC
> gpg:using RSA key
> E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
> gpg: Can't check signature: No public key
 I'm seeing this too. For me `app-crypt/gentoo-keys` is somehow no longer
 installed and `/var/lib/gentoo/gkeys` is missing. I have no idea how this
 happened. Perhaps it somehow got into `emerge --depclean` and I didn't
 catch it.
>>> No. Gentoo maintainers just overlooked that all Gentoo signing keys expired
>>> on July 1, and added new openpgp-keys-gentoo into portage tree only on July
>>> 2.
>>>
>>> So, since July 1, rsync cannot verify any new portage tree and cannot
>>> download app-crypt/openpgp-keys-gentoo-release-20180702
>>>
>>> It was discovered in the thread
>>> "All Gentoo signing key expired and no way to fix it"
>> Is there a documented manual workaround we could follow at present,
>> irrespective of our sync'ing mechanism of choice?
> For me, it somehow worked by manually refreshing the Gentoo signing keys by
> executing the following two commands:
> # gpg --homedir /var/lib/gentoo/gkeys/keyrings/gentoo/release --refresh-keys
> # gpg --keyserver hkps.pool.sks-keyservers.net --recv-keys 0xDB6B8C1F96D8BF6D
> in different order and sourcing /etc/profile
>
> But, please, note that I use emerge-webrsync to update the portage tree.
>
I believe the internal mechanisms are different between git and rsync. 
Ive tried manually updating the keys with no luck.


BillK





Re: [gentoo-user] Change keyserver used by portage?

2018-07-04 Thread Bill Kenworthy
On 04/07/18 13:09, Adam Carter wrote:
>
> Since you know the server IPs, and there's only a small number so
> you could try connection to each of them and see which one(s) fail.
>
> Or tcpdump, or netstat etc.
>
>
> FWIW i can route to all the v4 addresses;
>
> # for i in 18.9.60.141 18.191.65.131 37.191.226.104 92.43.111.21
> 193.164.133.100 216.66.15.2 ; do nc -zv $i 443; done
> cryptonomicon.mit.edu  [18.9.60.141] 443
> (https) open
> ec2-18-191-65-131.us-east-2.compute.amazonaws.com
> 
> [18.191.65.131] 443 (https) open
> host-37-191-226-104.lynet.no 
> [37.191.226.104] 443 (https) open
> Warning: forward host lookup failed for oteiza.siccegge.de
> :
> oteiza.siccegge.de  [92.43.111.21] 443
> (https) open
> DNS fwd/rev mismatch: mail.b4ckbone.de  !=
> beta.b4ckbone.de 
> mail.b4ckbone.de  [193.164.133.100] 443
> (https) open
> zimmermann.mayfirst.org  [216.66.15.2]
> 443 (https) open
>
I tried the host hack - still fails though a different message.  I
suspect the keyservers are not the problem because:

"gpg --homedir /var/lib/gentoo/gkeys/keyrings/gentoo/release --refresh-keys"

mostly works fine (with or without the hosts hack).

But I have never had a successful run with emerge --sync

Portage is sys-apps/portage-2.3.40-r1


Bug or what?


BillK





[gentoo-user] syncing via via git and signature failure

2018-07-03 Thread Bill Kenworthy
I am using git to sync portage and have added  the enabling line to
repos.conf:

"sync-git-verify-commit-signature = true"

but only ever get (been enabled for a week now):

* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys from keyserver ...   
[ ok ]
 * No valid signature found: unable to verify signature (missing key?)

Is there something else needed?  I do have
app-crypt/openpgp-keys-gentoo-release installed and updated.

BillK





Re: [gentoo-user] python 3.6

2018-06-27 Thread Bill Kenworthy
On 28/06/18 06:16, John Covici wrote:
> On Wed, 27 Jun 2018 17:04:57 -0400,
> Ralph Seichter wrote:
>> On 27.06.18 22:43, Bill Kenworthy wrote:
>>
>>> After installing python 3.6, I now have multiple systems wanting to
>>> depclean it! Have I missed something? Should I be uninstalling 3.4
>>> and 3.5 which are also present?
>> After you have recompiled all packages that were built with Python 3.4
>> and 3.5 support and verified that these versions are no longer required,
>> you can delete them.
> This is not working for me -- after doing a world update, there are
> still packages which apparently need both 3.4 and 3.5, so I cannot
> remove them.  I wonder why this would be happening?
>
Just found that by re-emergeing 3.6.5 it stops trying to remove it - I
can remove 3.4 but not 3.5.5 as its "still in use as the primary python
vrsion" despite 3.6 being [1] in eselect.


BillK





[gentoo-user] python 3.6

2018-06-27 Thread Bill Kenworthy
After installing python 3.6, I now have multiple systems wanting to
depclean it!  Have I missed something? Should I be uninstalling 3.4 and
3.5 which are also present?

bunyip ~ # eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python3.5
  [3]   python2.7
  [4]   python3.4
bunyip ~ #

BillK





Re: [gentoo-user] Gentoo-sources : stable versions

2018-06-26 Thread Bill Kenworthy
I think its more complex than just falling behind - anything later gets
the spectre fixes etc. and it appears not to be quite stable yet in some
cases.  I am on 4.9.95 for everything except a surface pro4 with 4.16.17
(as stable as anything can be on those things) which needs latest.

BillK


On 06/27/18 10:41, Philip Webb wrote:
> 180626 Rich Freeman wrote:
>> On Tue, Jun 26, 2018 at 8:58 PM Philip Webb  wrote:
>>> Does anyone know why the latest stable version of Gentoo-sources is 4.9.xx ?
>>> I installed 4.9.16 , which I continue to use, on 2017-04-06 .
>>> The tree contains versions of 4.14 4.16 4.17 , but all are still testing.
>> I tend to just use my own upstream kernels. I'm following the 4.14 longterm
>> and generally update within a few days of any release.
>> That said, I have been burned by the odd regression.
> Thanks for the other info (snipped).  All Vanilla-sources are testing,
> which seems to correspond to your "upstream" kernels.
>
> What does this say re recent kernel development or Gentoo's kernel team ?
> -- very quick thanks as always to Gentoo's volunteer developers,
> but something seems to be going astray here (smile).
>




Re: [gentoo-user] QEMU: windows guest crashing

2018-05-30 Thread Bill Kenworthy
On 30/05/18 15:52, Stefan G. Weichinger wrote:
> maybe someone has hit that as well:
>
> https://bugs.gentoo.org/656886
>
> bug report at redhat is from yesterday (!)
>
> -
>
> That windows guest is shutting down and/or crashing now and then.
> Same QEMU/libvirt combo at another site runs >20 VMs without problems.
>
> I'd be happy to find some workaround or fix as it is a bit problematic
> to have the customer email every few days that his server VM is down.
> Gives bad reputation ...
>
> If helpful I will post VM.xml etc
>
> Stefan
>
error messages? - I get this happening sometimes from the oom killer
when the server runs out of memory - semi-random (usually  but not
always the same vm)


BillK





Re: [gentoo-user] semi OT: Displayport

2018-05-29 Thread Bill Kenworthy
Thanks for the link, looks like its going to be "fun" :) - I think using
an inotify file watcher might be the best/low resource way to detect the
event.


BillK



On 05/30/18 10:23, Andrew Udvare wrote:
>
>> On 2018-05-29, at 22:03, Bill Kenworthy  wrote:
>>
>> Can anyone suggest a way to detect when the displayport adapter is
>> plugged in?
>>
> The event is provided by the driver(s) and if there is no event at all then 
> you have to use a script that loops forever querying to see if something has 
> changed. You could try grep'ing `xquery -q` every few seconds.
>
> This post says there might be something in /proc to track:
>
> https://unix.stackexchange.com/questions/13746/how-can-i-detect-when-a-monitor-is-plugged-in-or-unplugged
>
> Andrew




[gentoo-user] semi OT: Displayport

2018-05-29 Thread Bill Kenworthy
Hi all,

    I have a surface4 pro and use a vga adapter on the displayport
connection.  This works when manually (Xorg, XFCE4 and xrandr)
configured to various external monitors and data projectors.

I am trying to automate the process but plugging in the display port
adapter does not generate any messages via logging or dmesg (kernel is
gentoo-sources-4.16.12 patched to work with the ipts touchscreen) to
hook a udev rule into. 

Can anyone suggest a way to detect when the displayport adapter is
plugged in?

BillK





[gentoo-user] apache mod_wsgi radicale and passing in an environment variable

2018-05-07 Thread Bill Kenworthy
Hi all,

    how does one set an environment variable for Apache mod_wsgi on gentoo?

I am using the radicale wsgi module and it requires the config file to
be passed in from the environment to be set in the environment.  The
documents recommend something like whats below, but is not specific on
saying where it is to be set in my configuration.

|env = RADICALE_CONFIG=/etc/radicale/config|

BillK






Re: [gentoo-user] skip package

2018-05-02 Thread Bill Kenworthy
On 02/05/18 18:48, Gerrit Kühn wrote:
> On Wed, 2 May 2018 18:40:08 +0800 Bill Kenworthy <bi...@iinet.net.au>
> wrote about [gentoo-user] skip package:
>
> Ho,
>
>>     is it possible to filter out a package (chromium) from from emerge
>> world on the commandline?  Using files is a pain when I just want to
>> stop a package building until I am ready to do it.
> Sounds like you want to use the "--exclude" option?
>
>
> cu
>   Gerrit
>
Thanks - its in man emerge but doesn't show with --help so I missed it.


BillK






[gentoo-user] skip package

2018-05-02 Thread Bill Kenworthy
Hi,

    is it possible to filter out a package (chromium) from from emerge
world on the commandline?  Using files is a pain when I just want to
stop a package building until I am ready to do it.


BillK





Re: [gentoo-user] [OT] What is the best open-source VPN server for Linux?

2018-04-05 Thread Bill Kenworthy
On 05/04/18 22:51, gevisz wrote:
> 2018-04-05 16:14 GMT+03:00 Bill Kenworthy <bi...@iinet.net.au>:
>> On 05/04/18 18:28, gevisz wrote:
>>> 2018-04-05 12:51 GMT+03:00 gevisz <gev...@gmail.com>:
>>>> 2018-04-05 1:02 GMT+03:00 Grant Taylor <gtay...@gentoo.tnetconsulting.net>:
>>>> On 04/04/2018 02:18 PM, gevisz wrote:
>>>>> Assuming that NAT is in play on OR and IR (worst case), then just about
>>>>> /any/ form of VPN initiating from the outside will be fraught with uphill
>>>>> battles.
>>>> As far as I understand, the connection would be initiated from the Host.
>>> A small correction after a call to the friend: the VPN server should
>>> be installed on the Client and the VPN client should be installed on the 
>>> Host.
>>>
>>> Becaule of the same reason it is impossible to set up VPN server on the IR.
>>>
>>> Moreover, IR is too simple to use it for setting up any server other then 
>>> NAT
>>> and, may be, port-forwarding.
>>>
>> Might need a third party vpn server in the cloud that both ends connect
>> to as clients and route between?  A stunserver like VoIP uses will help
>> there.
>>
>> Also try a proxytunnel/stunnel using port 443 and use that to bounce
>> openvpn or a putty (ssh) port tunnel through the networks https proxy.
>> Inefficient but gets ssh, web pages and small downloads through
>> problematic networks nicely.  Double wrapping in ssl with end-to-end
>> protection via openvpn takes care of privacy when MITM SSL proxies are
>> used (yes they exist)   Note that openvpn can be used peer to peer
>> though client to server is a bit more secure.
> Thank you for the information.
>
>>  In my setup, the client is windows and the server is gentoo on a dynamic IP.
> It is strange because just today I have learned that VPN server should
> be set on the host with static IP visible the in Internet. Otherwise a
> VPN-client
> has no way to connect to the VPN-server.
>
I am referring to putty as the windows client (my view of the process) -
the vpn client is proxytunnel on windows connecting out to the server
which is an external stunnel on gentoo from your point of view.  The
secret is getting the two to talk to each other and thats where it gets
interesting - a method I used in the past is internally have a script
scraping a webpage (external) and when it gets a change it wants,
initiate a connection (IP number change for a permanaent link on a
dynamic IP, or other instruction - actually used a html comment on my
home web server index page).  A more common method is to initiate a test
connection every few minutes and close/go back to waiting if there is no
connection.  Zebedee which I used for years as a port tunnel (very good
and flexible) has a mode where it can initiate connections when there is
no public visibility.  If both ends are behind a secure gateway/NAT -
you need a third machine to coordinate the process.

If its all too hard, can you drop a raspberry pi trojan on the network
which gets away from the restrictions running windows?  At the end of
the day, its up to you and the local admins as to how much funny
business they will put up with but its just a technical problem in
moving packets around.

BillK'




Re: [gentoo-user] [OT] What is the best open-source VPN server for Linux?

2018-04-05 Thread Bill Kenworthy
On 05/04/18 18:28, gevisz wrote:
> 2018-04-05 12:51 GMT+03:00 gevisz :
>> 2018-04-05 1:02 GMT+03:00 Grant Taylor :
>> On 04/04/2018 02:18 PM, gevisz wrote:
>>> Assuming that NAT is in play on OR and IR (worst case), then just about
>>> /any/ form of VPN initiating from the outside will be fraught with uphill
>>> battles.
>> As far as I understand, the connection would be initiated from the Host.
> A small correction after a call to the friend: the VPN server should
> be installed
> on the Client and the VPN client should be installed on the Host.
>
> Becaule of the same reason it is impossible to set up VPN server on the IR.
>
> Moreover, IR is too simple to use it for setting up any server other then NAT
> and, may be, port-forwarding.
>
Might need a third party vpn server in the cloud that both ends connect
to as clients and route between?  A stunserver like VoIP uses will help
there.

Also try a proxytunnel/stunnel using port 443 and use that to bounce
openvpn or a putty (ssh) port tunnel through the networks https proxy. 
Inefficient but gets ssh, web pages and small downloads through
problematic networks nicely.  Double wrapping in ssl with end-to-end
protection via openvpn takes care of privacy when MITM SSL proxies are
used (yes they exist)   Note that openvpn can be used peer to peer
though client to server is a bit more secure.  In my setup, the client
is windows and the server is gentoo on a dynamic IP.  For really
paranoid networks, there are other ways but I have found this handles
most cases which are either my android phone, laptop using openvpn on
locked down wifi networks or ssh (putty) on windows hosts.


BillK






Re: [gentoo-user] sddm no longer working

2018-04-04 Thread Bill Kenworthy
On 04/04/18 23:14, Alexander Puchmayr wrote:
> Hi there,
>
> After last update, on one machine sddm-0.17.0-r1 no longer does not anything 
> anymore. Systemd starts the service, and systemctl status shows that the sddm 
> is running, and also ps jax shows a running sddm. 
>
> apollo ~ # systemctl status sddm
> ● sddm.service - Simple Desktop Display Manager
>Loaded: loaded (/lib/systemd/system/sddm.service; enabled; vendor preset: 
> disabled)
>Active: active (running) since Wed 2018-04-04 16:41:28 CEST; 2s ago
>  Docs: man:sddm(1)
>man:sddm.conf(5)
>  Main PID: 8350 (sddm)
>CGroup: /system.slice/sddm.service
>└─8350 /usr/bin/sddm
>
> Apr 04 16:41:28 apollo systemd[1]: Started Simple Desktop Display Manager.
> Apr 04 16:41:28 apollo sddm[8350]: Initializing...
> Apr 04 16:41:28 apollo sddm[8350]: Logind interface found
> Apr 04 16:41:28 apollo sddm[8350]: Starting...
>
> But thats all. It does not create a log file (/var/log/sddm.log not touched, 
> no 
> entry), it does not start X (no process). It seems like sddm is starting and 
> waiting for something I don't know.
>
> Any ideas?
>
> Thanks,
>   Alex
>
>
Had something similar (non-systemd) - make sure you complete all the X
updates, run revdep-rebuild and then re-emerge sddm.


BillK





Re: [gentoo-user] Re: Firefox and addons no longer supported question

2018-04-02 Thread Bill Kenworthy
On 02/04/18 13:41, Martin Vaeth wrote:
> Bill Kenworthy <bi...@iinet.net.au> wrote:
>> I use the palemoon overlay.
> There is also the octopus overlay.
> Anyway, both can only react to upstream.
>
>> builds fine with gcc-6.4
> Yes, but it has random crashes which do not occur with gcc-5,
> and as somebody familiar with the code posted somewhere,
> the reasons are quite some assumptions in assembler code
> which should not have been made. (I simply repeated these
> claims without checking them.)
>
> Upstream knows about it and therefore officially does not

Pretty stable for me - ymmv.  What is annoying is sometimes complex
pages do not load properly (e.g., job application sites which seem to
have a lot of JavaScript running in the background.- possibly due to add
blocking while FF when it works is vanilla)


BillK






Re: [gentoo-user] Re: Firefox and addons no longer supported question

2018-04-01 Thread Bill Kenworthy
On 02/04/18 08:28, Ian Zimmerman wrote:
> On 2018-04-01 18:22, Dale wrote:
>
>> Just for giggles, I tried to re-emerge palemoon. This is part of the
>> output I got.
>>
>> * Supported GCC versions: 4.7, 4.9
>> * Selected GCC version: 6.4
> I no longer use the overlay; I have my own private ebuild series.  I
> tried to remove the old gcc dependency, but as Martin says it doesn't
> work; the build just crashes at a later point.
>
> Luckily gcc is slotted so I can keep the old version around just for
> this purpose.
>
I use the palemoon overlay.

builds fine with gcc-6.4 etc:

PALEMOON_ENABLE_UNSUPPORTED_COMPILERS=1 emerge palemoon

and

rattus ~ # equery l palemoon
 * Searching for palemoon ...
[I-O] [  ] www-client/palemoon-27.8.2:0
rattus ~ #



BillK





Re: [gentoo-user] cant find stdlib.h

2018-03-30 Thread Bill Kenworthy
On 30/03/18 10:25, P Levine wrote:
>
>
> On Thu, Mar 29, 2018 at 6:42 PM, Bill Kenworthy <bi...@iinet.net.au
> <mailto:bi...@iinet.net.au>> wrote:
>
> On 30/03/18 01:48, P Levine wrote:
> > On Wed, Mar 28, 2018 at 8:18 AM, Bill Kenworthy
> <bi...@iinet.net.au <mailto:bi...@iinet.net.au>
> > <mailto:bi...@iinet.net.au <mailto:bi...@iinet.net.au>>>wrote:
> >
> >     I have a compile problem qtgui I cant figure out:
> >
> >     compilation terminated.
> >     make: *** [Makefile:12443: .obj/qaccessible.o] Error 1
> >     make: *** [Makefile:12612: .obj/qaccessiblecache.o] Error 1
> >     In file included from
> >   
>  
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_algo.h:59:0,
> >      from
> >   
>  /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/algorithm:62,
> >      from
> >     ../../include/QtCore/../../src/corelib/global/qglobal.h:109,
> >      from ../../include/QtCore/qglobal.h:1,
> >      from
> >     ../../include/QtGui/../../src/gui/kernel/qtguiglobal.h:43,
> >      from ../../include/QtGui/qtguiglobal.h:1,
> >      from
> >     ../../include/QtGui/../../src/gui/image/qimage.h:43,
> >      from ../../include/QtGui/qimage.h:1,
> >      from image/qimage_sse4.cpp:40:
> >   
>  /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib:75:25:
> >     fatal error: stdlib.h: No such file or directory
> >      #include_next 
> >
> >
> >     and of course /usr/include/stdlib.h exists
> >
> >
> >     The actual code in
> >   
>  /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib is:
> >
> >     // Need to ensure this finds the C library's  not a
> >     libstdc++
> >     // wrapper that might already be installed later in the include
> >     search path.
> >     #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
> >     #include_next 
> >     #undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
> >
> >     Hints welcome!
> >
> >
> >     BillK
> >
> >
> > ​This was a common error from when I ran into when fixing GCC-6
> > bugs.​  It's usually related to the fact that GCC-6 doesn't support
> > '-isystem /usr/include'.
> > See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
> <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129>. 
> >
> >
> Thankyou for the references - I will have another go at fixing it
> today.  What is confusing me is why its not killing everyones KDE/QT
> builds, not just one of mine?
>
>
> BillK
>
>
> ​Idk.  Those bugs were fixed a while ago.  Are you sure you're you're
> using an updated ebuild from the main Gentoo​ repo?  If you're using
> stable keyworded QT, try keyword unmasking unstable qt packages and
> see if that helps.  If so, you might want to file a bug.
>
> and I should have asked, is there an easy way to fix it?
>
>
> ​It depends.  Usually it requires editing qmake .pro file(s).

I found the bug against gcc for it (not qtgui which is why I couldnt
find any info on the problem). Seems that its one of the source packages
polutes the build environment at some point in the past so I have to go
back and fix those first.


BillK

'




Re: [gentoo-user] cant find stdlib.h

2018-03-29 Thread Bill Kenworthy
On 30/03/18 06:42, Bill Kenworthy wrote:
> On 30/03/18 01:48, P Levine wrote:
>> On Wed, Mar 28, 2018 at 8:18 AM, Bill Kenworthy <bi...@iinet.net.au
>> <mailto:bi...@iinet.net.au>>wrote:
>>
>> I have a compile problem qtgui I cant figure out:
>>
>> compilation terminated.
>> make: *** [Makefile:12443: .obj/qaccessible.o] Error 1
>> make: *** [Makefile:12612: .obj/qaccessiblecache.o] Error 1
>> In file included from
>> 
>> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_algo.h:59:0,
>>  from
>> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/algorithm:62,
>>  from
>> ../../include/QtCore/../../src/corelib/global/qglobal.h:109,
>>  from ../../include/QtCore/qglobal.h:1,
>>  from
>> ../../include/QtGui/../../src/gui/kernel/qtguiglobal.h:43,
>>  from ../../include/QtGui/qtguiglobal.h:1,
>>  from
>> ../../include/QtGui/../../src/gui/image/qimage.h:43,
>>  from ../../include/QtGui/qimage.h:1,
>>  from image/qimage_sse4.cpp:40:
>> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib:75:25:
>> fatal error: stdlib.h: No such file or directory
>>  #include_next 
>>
>>
>> and of course /usr/include/stdlib.h exists
>>
>>
>> The actual code in
>> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib is:
>>
>> // Need to ensure this finds the C library's  not a
>> libstdc++
>> // wrapper that might already be installed later in the include
>> search path.
>> #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
>> #include_next 
>> #undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
>>
>> Hints welcome!
>>
>>
>> BillK
>>
>>
>> ​This was a common error from when I ran into when fixing GCC-6
>> bugs.​  It's usually related to the fact that GCC-6 doesn't support
>> '-isystem /usr/include'.
>> See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129. 
>>
>>
> Thankyou for the references - I will have another go at fixing it
> today.  What is confusing me is why its not killing everyones KDE/QT
> builds, not just one of mine?
>
>
> BillK
>
>
>
>
and I should have asked, is there an easy way to fix it? ... and should
I raise a bug or is it a one off on just this system?


BillK






Re: [gentoo-user] cant find stdlib.h

2018-03-29 Thread Bill Kenworthy
On 30/03/18 01:48, P Levine wrote:
> On Wed, Mar 28, 2018 at 8:18 AM, Bill Kenworthy <bi...@iinet.net.au
> <mailto:bi...@iinet.net.au>>wrote:
>
> I have a compile problem qtgui I cant figure out:
>
> compilation terminated.
> make: *** [Makefile:12443: .obj/qaccessible.o] Error 1
> make: *** [Makefile:12612: .obj/qaccessiblecache.o] Error 1
> In file included from
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_algo.h:59:0,
>  from
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/algorithm:62,
>  from
> ../../include/QtCore/../../src/corelib/global/qglobal.h:109,
>  from ../../include/QtCore/qglobal.h:1,
>  from
> ../../include/QtGui/../../src/gui/kernel/qtguiglobal.h:43,
>  from ../../include/QtGui/qtguiglobal.h:1,
>  from
> ../../include/QtGui/../../src/gui/image/qimage.h:43,
>  from ../../include/QtGui/qimage.h:1,
>  from image/qimage_sse4.cpp:40:
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib:75:25:
> fatal error: stdlib.h: No such file or directory
>  #include_next 
>
>
> and of course /usr/include/stdlib.h exists
>
>
> The actual code in
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib is:
>
> // Need to ensure this finds the C library's  not a
> libstdc++
> // wrapper that might already be installed later in the include
> search path.
> #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
> #include_next 
> #undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
>
> Hints welcome!
>
>
> BillK
>
>
> ​This was a common error from when I ran into when fixing GCC-6
> bugs.​  It's usually related to the fact that GCC-6 doesn't support
> '-isystem /usr/include'.
> See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129. 
>
>
Thankyou for the references - I will have another go at fixing it
today.  What is confusing me is why its not killing everyones KDE/QT
builds, not just one of mine?


BillK






[gentoo-user] cant find stdlib.h

2018-03-28 Thread Bill Kenworthy
I have a compile problem qtgui I cant figure out:

compilation terminated.
make: *** [Makefile:12443: .obj/qaccessible.o] Error 1
make: *** [Makefile:12612: .obj/qaccessiblecache.o] Error 1
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_algo.h:59:0,
 from
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/algorithm:62,
 from
../../include/QtCore/../../src/corelib/global/qglobal.h:109,
 from ../../include/QtCore/qglobal.h:1,
 from
../../include/QtGui/../../src/gui/kernel/qtguiglobal.h:43,
 from ../../include/QtGui/qtguiglobal.h:1,
 from ../../include/QtGui/../../src/gui/image/qimage.h:43,
 from ../../include/QtGui/qimage.h:1,
 from image/qimage_sse4.cpp:40:
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib:75:25:
fatal error: stdlib.h: No such file or directory
 #include_next 


and of course /usr/include/stdlib.h exists


The actual code in
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib is:

// Need to ensure this finds the C library's  not a libstdc++
// wrapper that might already be installed later in the include search path.
#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
#include_next 
#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS

Hints welcome!


BillK





[gentoo-user] OT: aggregating filesystem

2018-02-22 Thread Bill Kenworthy
Is there such a thing as a linux network filesystem that aggregates
storage across a few machines?  I am not talking about dedicated chunk
servers and the like, but something that can make available a the unused
space on a number of machines (desktops, servers, ...) by aggregating
and making available the space to the network. Is afs (or coda?) what I
am after?

I have used ceph, but its minimum requirements are way to heavy for a
small network,moosefs looks to be similar and as dedicated storage,
that's not what I am after.

BillK



[gentoo-user] hibernate failing for 4.15.1 kernel

2018-02-07 Thread Bill Kenworthy
Hi all,

    are there hibernation (to disk) issues with gentoo-sources 4.15.1? 
(fails or hard locks on hibernate, oops on resume if it does hibernate
and shutdown)

I am using the settings which have worked reliably with the 4.14 and
earlier versions (surface pro4, gentoo-sources without extra patches)

BillK

.




Re: [gentoo-user] Heads Up - glibc-2.27 breaks my system

2018-02-03 Thread Bill Kenworthy
On 04/02/18 01:34, Helmut Jarausch wrote:
> On 02/03/2018 04:11:33 PM, Marc Joliet wrote:
>> Am Samstag, 3. Februar 2018, 10:50:53 CET schrieb Helmut Jarausch:
>> > On 02/03/2018 06:54:06 AM, Dale wrote:
>> > > While on this topic, I have a question about glibc.  I have it set in
>> > > make.conf to save the binary packages.  Generally I use it when I
>> need
>> > > to go back shortly after a upgrade, usually Firefox or something.
>> > > However, this package is different since going back a version isn't a
>> > > good idea.  My question tho, what if one does go back a version using
>> > > those saved binary packages?  Has anyone ever did it and it work or
>> > > did

1. do another backup
2. take your last good binary package and unpack it in the root
directory - it is an "image" of that package as it sits in the file system.
3. rebuild that version of glibc by overiding emerge - comment out "die
"aborting to save your system" in /usr/portage/eclass/toolchain-glibc.eclass

I have done this a couple of times with gcc (when manual deletes have
gone rogue) but it should work with glibc as you have not recompiled any
new packages.

BillK




Re: [gentoo-user] Re: Kernel 4.14.7 no longer switches to VT7

2017-12-31 Thread Bill Kenworthy
Hi all,
is there a list of known problems with kernels 4.14.x?

I have a problem with hiddev, nut and a usb ups that appears kernel
dependent.

Cant find anything about 4.14 except for the gentoo-dev list emails

BillK


On 31/12/17 09:56, Peter Humphrey wrote:
> On Sunday, 31 December 2017 01:13:26 GMT Ian Zimmerman wrote:
>> On 2017-12-31 00:33, Peter Humphrey wrote:
>>> But the whole 4.12 branch has been masked, so that won't do. Here,
>>> I've had to go back to 4.9.49-r1 (amd64, not ~amd64). But now I see
>>> 4.9.72 has been stabilised. I think I'll wait for some stabiliity in
>>> the kernel version offerings before I make another move. Three kernel
>>> compilations on six systems within a week are a few too many.
>>
>> FWIW, I find 4.9.73 (upstream, not gentoo) rock solid.
> 
> Well, I haven't fallen into whatever holes have been found in other versions 
> yet either, as far as I know.
> 
> If you don't mind my asking, what factors make you prefer vanilla to gentoo 
> sources? (I assume that's what you use.)
> 




Re: [gentoo-user] Choice of TLD for internal network

2017-12-18 Thread Bill Kenworthy
On 19/12/17 04:25, David Haller wrote:
> Hello,
> 
> On Mon, 18 Dec 2017, Michael Orlitzky wrote:
>> On 12/18/2017 02:55 PM, Wol's lists wrote:
>>> My router defaults, iirc, to .local. And I thought .home also did the 
>>> same sort of thing.
>>
>> Both are reserved: the ".home" TLD is reserved for the Home Networking
>> Control Protocol in the RFC 7788 that you cited, and ".local" is
>> reserved for some multicast DNS mumbo jumbo in RFC 6762.
>>
>> (There is no good choice, and out of the bad ones, ".local" is OK I guess.)
>>
>>> See RFCs 7788 for .home, and 8244 for .local
>>
>> I didn't know about RFC 8244 (it's from October), but it looks like it
>> only points out the existing problems. I'll go read it.
>>
>>> I think .local was correctly added to 6761, so that domain CAN be used 
>>> as your private network's TLD.
>>
>> local doesn't appear in RFC 6761, you might be thinking of localhost?
>> For ".localhost", the RFC more or less states that your users can assume
>> that all addresses resolve to 127.0.0.1, which makes it unsuitable for a
>> network with more than one machine.
> 
> ISTR, .localdomain is the new .local...
> 
> BTW: I hate it how .local got ursurped by zeroconf/mDNS.
> 
> -dnh
> 

I have used .localdomain for years without issue.  VLANS
(wifi.localdomain, lan.localdomain etc.) are great if you have the
hardware to do it.

Using non-official TLD internally shouldn't cause any problems (unless
someone is "stupid").

BillK



[gentoo-user] cross compiling arm with 17 profiles.

2017-12-17 Thread Bill Kenworthy
Something I cant figure out:

ARM is still on the 13 profiles - should an amd64 system used to cross
compile for arm (Raspberry Pi's) be left on the 13 profiles or 17 will
work fine?

BillK



Re: [gentoo-user] Re: git wants a password to portage sync

2017-12-06 Thread Bill Kenworthy
On 06/12/17 06:43, Alan McKinnon wrote:
> On 06/12/2017 00:35, Ian Zimmerman wrote:
>> On 2017-12-06 05:53, Bill Kenworthy wrote:
>>
>>> No, all machines are set up as keyless ssh - git has never needed it
>>> there.  In frustration I created keys and set portage up as a keyless
>>> ssh account as well, no change.
>>
>> ssh messages are sometimes misleading.  For instance, ssh would say
>> something like "pubkey authentication failed" when in fact I prohibited
>> root logins on the server.
>>
>> I'd try connecting with bare ssh as the user in question, with maximum
>> verbosity turned on (-vvv).
>>
> 
> 
> The error messages from the ssh client are, by design, intentionally
> vague. They amount to a teeny bit more detail than just "something went
> wrong", plus the available auth methods listed in parenthesis.
> 
> This is because the sshd server avoids information leakage that
> attackers could use.
> 
> To find out why ssh does not work, start by looking at the server logs,
> then examine the client is nothing obvious stands out.
> 

Got it! Needed ssh keys for portage@remote from root@local.  Its working
but no idea why its only this machine that required it.

Thanks,
BillK




Re: [gentoo-user] Re: git wants a password to portage sync

2017-12-05 Thread Bill Kenworthy
On 05/12/17 21:15, Nikos Chantziaras wrote:
> On 05/12/17 12:40, Bill Kenworthy wrote:
>> I use a central machine that all other gentoo machines pull portage
>> updates from using emerge set up for git.
>>
>> Some 10+ physical and virtual machines work fine.
>>
>> A newly installed machine wants a git password to do the git pull where
>> as no other machine does.  Tried setting up keys for it on the remote
>> machine (user portage which is who git pulls come from) and ssh login
>> works fine, git demands a password.
>>
>> Any hints because its got me beat!
> 
> I suspect the keys on the other machines are not password protected, but
> the key on that machine is and Git asks you for it.
> 
> 

No, all machines are set up as keyless ssh - git has never needed it
there.  In frustration I created keys and set portage up as a keyless
ssh account as well, no change.



[gentoo-user] git wants a password to portage sync

2017-12-05 Thread Bill Kenworthy
I use a central machine that all other gentoo machines pull portage
updates from using emerge set up for git.

Some 10+ physical and virtual machines work fine.

A newly installed machine wants a git password to do the git pull where
as no other machine does.  Tried setting up keys for it on the remote
machine (user portage which is who git pulls come from) and ssh login
works fine, git demands a password.

Any hints because its got me beat!

BillK




Re: [gentoo-user] Again, emerge -e @world related questions...

2017-12-04 Thread Bill Kenworthy
On 04/12/17 17:49, John Covici wrote:
> On Mon, 04 Dec 2017 04:26:09 -0500,
> Neil Bothwick wrote:
>>
>> [1  ]

Your system is somewhat broken I think.  You need to look at each
package and resolve the problem - possibly stray entries in one of the
package files or world.  Have you done a depclean recently?

BillK





Re: [gentoo-user] Again, emerge -e @world related questions...

2017-12-04 Thread Bill Kenworthy
I think you are looking for problems that are not there.  Almost
finished recompiling the surface4 pro and have one compile failure I
have not looked at - the original palemoon is still working.  The
hibernate to disk just failed so it rebooted from scratch and I could
continue working on it while it finished but a full desktop is so much
nicer :)  I have some other (slower) systems in earlier stages of the
rebuild that are working fine.


do an emerge -ep world > a
edit a to something like below then "bash a" to run it:
emerge -v =kde-frameworks/kdelibs4support-5.37.0  && \
emerge -v =kde-apps/kio-extras-17.08.3  && \
emerge -v =kde-plasma/user-manager-5.10.5  && \
emerge -v =kde-frameworks/kactivities-stats-5.37.0  && \
emerge -v =kde-apps/okular-17.08.3  && \
blah blah blah ...

When an emerge stops, either fix it or comment it out for later.  Edit
"a" and delete finished builds and go again - in the meantime keep
working ...


On 04/12/17 16:38, Neil Bothwick wrote:
> On Mon, 4 Dec 2017 03:58:40 +0100, tu...@posteo.de wrote:



[gentoo-user] OT: btrfs raid 5/6

2017-11-27 Thread Bill Kenworthy
Hi all,
I need to expand two bcache fronted 4xdisk btrfs raid 10's - this
requires purchasing 4 drives (and one system does not have room for two
more drives) so I am trying to see if using raid 5 is an option

I have been trying to find if btrfs raid 5/6 is stable enough to use but
while there is mention of improvements in kernel 4.12, and fixes for the
write hole problem I cant see any reports that its "working fine now"
though there is a phoronix article saying Oracle is using it since the
fixes.

Is anyone here successfully using btrfs raid 5/6?  What is the status of
scrub and self healing?  The btrfs wiki is woefully out of date :(

BillK



Re: [gentoo-user] boost-1.63 dependency confusion

2017-11-11 Thread Bill Kenworthy
On 11/11/17 21:36, Peter Humphrey wrote:
> On Saturday, 11 November 2017 12:20:35 GMT Mick wrote:
>> On Saturday, 11 November 2017 11:45:16 GMT you wrote:
 The confusion is all mine, because I cannot decipher what is masking
>>
 dev-util/ boost-build-1.63:
>> [snip ...]
>>
 I see that 1.63.0 and 1.65.0 have no slot defined, but I'm not sure
 what is causing this.
>>>
>>> This is caused by a portage bug. See b.g.o #554838
>>> Updating to unstable portage-2.3.13 resolved the problem for me.
>>>
>>> DaveF
>>
>> Thanks DaveF, I'll update portage at some point and try again.
> 
> I had boost-build apparently masked too, but I solved it accidentally by 
> emerging boost, which pulled in boost-build. It all went swimmingly then.
> 

Same on multiple systems - emerge boost worked fine, then do world.

William K.



  1   2   3   4   >