Re: [gentoo-user] command line decipher

2017-02-11 Thread thelma
On 02/11/2017 01:39 PM, Alan McKinnon wrote:
> On 11/02/2017 22:24, the...@sys-concept.com wrote:
>> Can anybody explain me what I did. I run this command on my dd-wrt router 
>> (trying to clear the "traff" entries).
>> This command worked OK on my Linksys-router but my Asus-RT-N16 will not let 
>> me make a backup file. 
>> Now, when I try to make a backup, it doesn't prompt for file name, it just 
>> save the file with "0" bytes; yes the file is empty.
>>
>> rw-r--r-- 1 fd users 0 Feb 11 09:09 nvrambak.bin
>>
>> The command I run:
>>
>> for i in `nvram show | grep traff- | cut -f1 -d=""`; do nvram unset $i; done
>>
>> I think I will have to reload the dd-wrt firmware and restore old (good) 
>> nvrambak.bin
>>
> 
> 
> why do you assume that command will even work at all?
> Did you test the various bits>
> 
> c'mon, that should have been your first thought.
> 
> does nvram show do anything useful?
> if so, do the subsequent greps and cuts do what you want?

The problem wasn't with the command line but with Firefox profile.
I run some firefox profile and one profile from which I logged into the
firewall GUI and try to make a nvrambak.bin file it printed the error
message:

URL 1/1...
--2017-02-11 15:02:41--  http://10.0.0.1/nvrambak.bin
Connecting to 10.0.0.1:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.
Press [ENTER] to quit...

I've never seen this one. I was able to log-in to the router but making
backup did not recognized stored password (it seems).

Making backup from different firefox profile worked OK

--
Thelma




Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Dale
Peter Humphrey wrote:
> On Saturday 11 Feb 2017 05:22:19 Dale wrote:
>
>> The biggest reason I needed to do this is that I usually have portage's
>> work directory on tmpfs.  I just don't have enough memory to do them all
>> at the same time, one at a time would work tho.  If I ever get around to
>> upgrading to 32GBs, then this won't matter.
> When your tmpfs fills up, it starts paging to swap, so as long as your swap 
> partition is big enough it should be about the same as using the hard disk.
>

I made my swap to small.  Even tho I wasn't using tmpfs during a couple
of the updates, I still ran out of memory.  I'm not sure exactly what
all was trying to emerge but I know that when the big one really got my
attention, Seamonkey, Firefox, Libreoffice and several KDE type packages
were in the list.  Given the time it takes those to compile, I figure
the big three and others were trying to compile at the same time.  While
just those three big ones are bad enough, whatever else was working was
just way to much. 

Anyway, I'll update them to themselves and try to get some memory
upgraded here soon.  I just don't like pushing it to the point it kills
other processes. 

Dale

:-)  :-)



Re: [gentoo-user] nmap - device name.

2017-02-11 Thread thelma
On 02/11/2017 02:10 PM, Nils Freydank wrote:
> Hi Thelma and others,
> 
> On Fri Feb 10 2017, 18:34:34 CET wrote the...@sys-concept.com:
>> When I scan my local network:
>> nmap  -sn 10.10.0.0/24
>>
>> It prints all the devices connected to it but sometimes it prints the
>> device "name" and sometimes it doesn't eg:
>>
>> Nmap scan report for iaxy (10.0.0.108)
>> Host is up (-0.095s latency).
>> MAC Address: 00:0F:D3:00:30:DD (Digium)
>>
>> Nmap scan report for 10.10.0.3
>> Host is up (0.00017s latency).
>> MAC Address: 54:7F:54:76:61:0D (Ingenico)
>>
>> "...for "name" + IP"
>> "...for + IP
>>
>> Where is it taking the "name" from?
>> It would like to assign a label "name" to all devices.
>> --
>> Thelma
> 
> I’d say that the name "iaxy" is a via DNS (reverse) resolved hostname; maybe
> there is a DNS server running (or there are entries in /etc/hosts) or it’s 
> just
> zeroconf/bonjour[1], which runs nowadays virtually everywhere.
> 
> The other part looks to me as vendors names nmap got from the MAC addresses
> which first parts are vendor specific.
> 
> A quick search[2] gave me these two results (beside some other ones) who seem
> to confirm my thoughts:
> 
> http://superuser.com/questions/702309/how-to-get-device-name-from-scan-like-nmap-on-linux
> http://stackoverflow.com/questions/27817412/why-nmap-sometimes-does-not-show-device-name
> 
> [1] https://en.wikipedia.org/wiki/Zero-configuration_networking
> [2] https://duckduckgo.com/?q=nmap+device+names=ffab=qa
> 
> Hope that helps you :)
> 
> PS: What exactly does '-sn' (or is it just a typo)? My nmap doesn't complain
> when I use it, but the manpage only knows about '-sN' here
> (net-analyzer/nmap-7.40).

-sn: Ping Scan - disable port scan

The only difference between the two networks that I'm aware of is one
runs dd-wrt on Linksys router and the other (with names showing) runs on
Asus NT-R16 router.

Non of them run DNS server to my knowledge.
--
Thelma





[gentoo-user] Re: Need help interpreting kernel panic

2017-02-11 Thread Harry Putnam
Johannes Rosenberger  writes:

> I found something interesting:
>>  request_module: runaway loop modprobe binfmt-464c
>> Short answer: If you are getting this error right after linux kernel
>> initialization, you are likely booting a 32-bit kernel with a 64-bit OS.
>>
>> Long answer: If you boot a 32-bit kernel with a 64-bit OS, when the
>> kernel tries to start /sbin/init (a 64-bit binary), it won't recognize
>> the binary format, and it'll try to load the binfmt-464c kernel
>> module, which is ELF support. (ELF support is generally compiled into
>> the kernel, not built as a module, by the way.)
>>
>> The reason for the loop error is that the kernel is trying to invoke
>> modprobe to load the module, and modprobe is itself an ELF binary,
>> resulting in a recursion loop... 

Just a bit ago I had one of those slap myself in the head moments.
Just realized that the host I took the .config to do oldconfig from
is a 32 bit host.

Now, I did set the switch when menuconfig rolled around for a 64 bit
kernel but still the whole thing is based on an a .config from a 32
bit host running a 32 bit kernel.

So no telling what all might get jimmied up in that mess.
I'd already trashed all disks from the test vm and am starting from
scratch again but this time I won't get tricky with the .config file.

Had I not done so (trashed the disks from my first go around), I
probably could have just reconfigged the kernel from scratch and been
ok...




[gentoo-user] Re: Need help interpreting kernel panic

2017-02-11 Thread Harry Putnam
Johannes Rosenberger  writes:

> I found something interesting:
>>  request_module: runaway loop modprobe binfmt-464c
>> Short answer: If you are getting this error right after linux kernel
>> initialization, you are likely booting a 32-bit kernel with a 64-bit OS.
>>
>> Long answer: If you boot a 32-bit kernel with a 64-bit OS, when the
>> kernel tries to start /sbin/init (a 64-bit binary), it won't recognize
>> the binary format, and it'll try to load the binfmt-464c kernel
>> module, which is ELF support. (ELF support is generally compiled into
>> the kernel, not built as a module, by the way.)
>>
>> The reason for the loop error is that the kernel is trying to invoke
>> modprobe to load the module, and modprobe is itself an ELF binary,
>> resulting in a recursion loop... 
> --
> http://saalwaechter-notes.blogspot.de/2008/10/requestmodule-runaway-loop-modprobe.html
>
> I hope it helps.

Sounds promising, but a couple of things makes it seem unlikely. 1)
I'm installing from a 64 bit ISO on a a 64 bit host.
2) one of the very earlier things on menuconfig one is asked if they
want a 64 bit kernel... I checked that.

At least this is true of kernel 4.9.6-r1

I'm going to verify that again in a bit.




Re: [gentoo-user] Re: Need help interpreting kernel panic

2017-02-11 Thread Johannes Rosenberger

On 11.02.2017 21:18, Harry Putnam wrote:
> Johannes Rosenberger  writes:
>
>> On 11.02.2017 20:47, Rich Freeman wrote:
>>> On Sat, Feb 11, 2017 at 2:12 PM, Harry Putnam  wrote:
 Again I get a kernel panic but this time its different.  It seems to
 mount the disks ok but then fails to find a working `init' command.

 Checking that with sysrescueCD I see /sbin/init does exist on that new vm.
 and is executable.

 The disk setup is sda1=/boot sda2=swap sda3=/home sda4=/

>>> My guess is that it is mounting the wrong filesystem as root.  It
>>> might be detecting /dev/sdb as /dev/sda.  Also, the root device might
>>> be named /dev/xda4 depending on the kernel/etc.  Systemrescuecd isn't
>>> using the same kernel/etc so it might not see the disks the same way.
>>>
>>> An initramfs with root=UUID="505f850e-b26a-4d0f-a02f-6ba573a48ad8" (or
>>> a label) would be a more reliable way to handle this, or you can
>>> probably just fiddle with the device names until you stumble on the
>>> right one.
>>>
>>>
>> Well, if you look at the kernel messages you see that the init is found
>> but not executable (error -8). I don't know what the error number means, but
>> have you set CONFIG_BINFMT_ELF and CONFIG_BINFMT_SCRIPT in your .config?
>> Is /bin/sh executable?
> Error means ENOEXEC I think from browsing a bit on google
>
> About BINFMT
>
> Yes. (grepping from chroot at /usr/src/linux/)
>   grep BINFMT .config
>
>   CONFIG_BINFMT_ELF=y
>   CONFIG_BINFMT_SCRIPT=y
>   # CONFIG_BINFMT_AOUT is not set
>   # CONFIG_BINFMT_MISC is not set
>
>
> I just chrooted and re-emerged sysvinit but no help.  From chroot, I
> ran /sbin/init 3 and it did try to go to runlevel 3 (just brought me
> out of chroot), so it appears to be working.
>
> The stuff about `runaway loop' at modprobe (in the kernel messages)
> seems like it might mean something. 
>
> I think I'll test about modprobe for that module binfmt-46-4c
>
>
>
>
>

I found something interesting:
>  request_module: runaway loop modprobe binfmt-464c
> Short answer: If you are getting this error right after linux kernel
> initialization, you are likely booting a 32-bit kernel with a 64-bit OS.
>
> Long answer: If you boot a 32-bit kernel with a 64-bit OS, when the
> kernel tries to start /sbin/init (a 64-bit binary), it won't recognize
> the binary format, and it'll try to load the binfmt-464c kernel
> module, which is ELF support. (ELF support is generally compiled into
> the kernel, not built as a module, by the way.)
>
> The reason for the loop error is that the kernel is trying to invoke
> modprobe to load the module, and modprobe is itself an ELF binary,
> resulting in a recursion loop... 
--
http://saalwaechter-notes.blogspot.de/2008/10/requestmodule-runaway-loop-modprobe.html

I hope it helps.



[gentoo-user] Re: Need help interpreting kernel panic

2017-02-11 Thread Harry Putnam
Johannes Rosenberger  writes:

> On 11.02.2017 20:47, Rich Freeman wrote:
>> On Sat, Feb 11, 2017 at 2:12 PM, Harry Putnam  wrote:
>>> Again I get a kernel panic but this time its different.  It seems to
>>> mount the disks ok but then fails to find a working `init' command.
>>>
>>> Checking that with sysrescueCD I see /sbin/init does exist on that new vm.
>>> and is executable.
>>>
>>> The disk setup is sda1=/boot sda2=swap sda3=/home sda4=/
>>>
>> My guess is that it is mounting the wrong filesystem as root.  It
>> might be detecting /dev/sdb as /dev/sda.  Also, the root device might
>> be named /dev/xda4 depending on the kernel/etc.  Systemrescuecd isn't
>> using the same kernel/etc so it might not see the disks the same way.
>>
>> An initramfs with root=UUID="505f850e-b26a-4d0f-a02f-6ba573a48ad8" (or
>> a label) would be a more reliable way to handle this, or you can
>> probably just fiddle with the device names until you stumble on the
>> right one.
>>
>>
> Well, if you look at the kernel messages you see that the init is found
> but not executable (error -8). I don't know what the error number means, but
> have you set CONFIG_BINFMT_ELF and CONFIG_BINFMT_SCRIPT in your .config?
> Is /bin/sh executable?

Error means ENOEXEC I think from browsing a bit on google

About BINFMT

Yes. (grepping from chroot at /usr/src/linux/)
  grep BINFMT .config

  CONFIG_BINFMT_ELF=y
  CONFIG_BINFMT_SCRIPT=y
  # CONFIG_BINFMT_AOUT is not set
  # CONFIG_BINFMT_MISC is not set


I just chrooted and re-emerged sysvinit but no help.  From chroot, I
ran /sbin/init 3 and it did try to go to runlevel 3 (just brought me
out of chroot), so it appears to be working.

The stuff about `runaway loop' at modprobe (in the kernel messages)
seems like it might mean something. 

I think I'll test about modprobe for that module binfmt-46-4c







Re: [gentoo-user] nmap - device name.

2017-02-11 Thread Nils Freydank
Hi Thelma and others,

On Fri Feb 10 2017, 18:34:34 CET wrote the...@sys-concept.com:
> When I scan my local network:
> nmap  -sn 10.10.0.0/24
> 
> It prints all the devices connected to it but sometimes it prints the
> device "name" and sometimes it doesn't eg:
> 
> Nmap scan report for iaxy (10.0.0.108)
> Host is up (-0.095s latency).
> MAC Address: 00:0F:D3:00:30:DD (Digium)
> 
> Nmap scan report for 10.10.0.3
> Host is up (0.00017s latency).
> MAC Address: 54:7F:54:76:61:0D (Ingenico)
> 
> "...for "name" + IP"
> "...for + IP
> 
> Where is it taking the "name" from?
> It would like to assign a label "name" to all devices.
> --
> Thelma

I’d say that the name "iaxy" is a via DNS (reverse) resolved hostname; maybe
there is a DNS server running (or there are entries in /etc/hosts) or it’s just
zeroconf/bonjour[1], which runs nowadays virtually everywhere.

The other part looks to me as vendors names nmap got from the MAC addresses
which first parts are vendor specific.

A quick search[2] gave me these two results (beside some other ones) who seem
to confirm my thoughts:

http://superuser.com/questions/702309/how-to-get-device-name-from-scan-like-nmap-on-linux
http://stackoverflow.com/questions/27817412/why-nmap-sometimes-does-not-show-device-name

[1] https://en.wikipedia.org/wiki/Zero-configuration_networking
[2] https://duckduckgo.com/?q=nmap+device+names=ffab=qa

Hope that helps you :)

PS: What exactly does '-sn' (or is it just a typo)? My nmap doesn't complain
when I use it, but the manpage only knows about '-sN' here
(net-analyzer/nmap-7.40).

-- 
Nils Freydank
GnuPG-Key: 0x44594171807206CF @ hkp://keys.gnupg.net
   fpr: AA2D 5CC0 0457 297F 6164  3911 4459 4171 8072 06CF

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


Re: [gentoo-user] fatrace

2017-02-11 Thread Jorge Almeida
On Sat, Feb 11, 2017 at 12:36 PM, Rich Freeman  wrote:
> On Sat, Feb 11, 2017 at 3:23 PM, Jorge Almeida  wrote:
>> $ fatrace
>> Cannot initialize fanotify: Function not implemented
>>

>
> Check CONFIG_FANOTIFY.
>
That's it. Thank you.

Jorge Almeida



Re: [gentoo-user] command line decipher

2017-02-11 Thread Alan McKinnon
On 11/02/2017 22:24, the...@sys-concept.com wrote:
> Can anybody explain me what I did. I run this command on my dd-wrt router 
> (trying to clear the "traff" entries).
> This command worked OK on my Linksys-router but my Asus-RT-N16 will not let 
> me make a backup file. 
> Now, when I try to make a backup, it doesn't prompt for file name, it just 
> save the file with "0" bytes; yes the file is empty.
> 
> rw-r--r-- 1 fd users 0 Feb 11 09:09 nvrambak.bin
> 
> The command I run:
> 
> for i in `nvram show | grep traff- | cut -f1 -d=""`; do nvram unset $i; done
> 
> I think I will have to reload the dd-wrt firmware and restore old (good) 
> nvrambak.bin
> 


why do you assume that command will even work at all?
Did you test the various bits>

c'mon, that should have been your first thought.

does nvram show do anything useful?
if so, do the subsequent greps and cuts do what you want?

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] nmap - device name.

2017-02-11 Thread thelma
On 02/11/2017 11:33 AM, Stroller wrote:
> 
>> On 11 Feb 2017, at 01:34, the...@sys-concept.com wrote:
>>
>> Nmap scan report for iaxy (10.0.0.108)
>> Nmap scan report for 10.10.0.3
> 
> The first things I would do is look up those IPs myself.
> 
>>From the host running nmap, I'd first try running nslookup on 10.0.0.108 and 
>>10.10.0.3.
> 
> Ultimately the question would seem to be whether nmap is getting those names 
> through local name resolution, or whether its some kind of nmap "magic" 
> performed during the port-scan. 
> 
> Stroller.

Yes, the command was run on two different networks: 10.0.0.0 and 10.10.0.0

So it must have something to do with network setup.

--
Thelma




Re: [gentoo-user] fatrace

2017-02-11 Thread Rich Freeman
On Sat, Feb 11, 2017 at 3:23 PM, Jorge Almeida  wrote:
> $ fatrace
> Cannot initialize fanotify: Function not implemented
>
> Up–to–date system. Maybe the ebuild misses some dependency?
> Or some kernel configuration?
>

Check CONFIG_FANOTIFY.

-- 
Rich



[gentoo-user] command line decipher

2017-02-11 Thread thelma
Can anybody explain me what I did. I run this command on my dd-wrt router 
(trying to clear the "traff" entries).
This command worked OK on my Linksys-router but my Asus-RT-N16 will not let me 
make a backup file. 
Now, when I try to make a backup, it doesn't prompt for file name, it just save 
the file with "0" bytes; yes the file is empty.

rw-r--r-- 1 fd users 0 Feb 11 09:09 nvrambak.bin

The command I run:

for i in `nvram show | grep traff- | cut -f1 -d=""`; do nvram unset $i; done

I think I will have to reload the dd-wrt firmware and restore old (good) 
nvrambak.bin

-- 
Thelma



[gentoo-user] fatrace

2017-02-11 Thread Jorge Almeida
$ fatrace
Cannot initialize fanotify: Function not implemented

Up–to–date system. Maybe the ebuild misses some dependency?
Or some kernel configuration?

Jorge Almeida



Re: [gentoo-user] Need help interpreting kernel panic

2017-02-11 Thread Johannes Rosenberger
On 11.02.2017 20:47, Rich Freeman wrote:
> On Sat, Feb 11, 2017 at 2:12 PM, Harry Putnam  wrote:
>> Again I get a kernel panic but this time its different.  It seems to
>> mount the disks ok but then fails to find a working `init' command.
>>
>> Checking that with sysrescueCD I see /sbin/init does exist on that new vm.
>> and is executable.
>>
>> The disk setup is sda1=/boot sda2=swap sda3=/home sda4=/
>>
> My guess is that it is mounting the wrong filesystem as root.  It
> might be detecting /dev/sdb as /dev/sda.  Also, the root device might
> be named /dev/xda4 depending on the kernel/etc.  Systemrescuecd isn't
> using the same kernel/etc so it might not see the disks the same way.
>
> An initramfs with root=UUID="505f850e-b26a-4d0f-a02f-6ba573a48ad8" (or
> a label) would be a more reliable way to handle this, or you can
> probably just fiddle with the device names until you stumble on the
> right one.
>
>
Well, if you look at the kernel messages you see that the init is found
but not executable (error -8). I don't know what the error number means, but
have you set CONFIG_BINFMT_ELF and CONFIG_BINFMT_SCRIPT in your .config?
Is /bin/sh executable?




Re: [gentoo-user] Need help interpreting kernel panic

2017-02-11 Thread Rich Freeman
On Sat, Feb 11, 2017 at 2:12 PM, Harry Putnam  wrote:
>
> Again I get a kernel panic but this time its different.  It seems to
> mount the disks ok but then fails to find a working `init' command.
>
> Checking that with sysrescueCD I see /sbin/init does exist on that new vm.
> and is executable.
>
> The disk setup is sda1=/boot sda2=swap sda3=/home sda4=/
>

My guess is that it is mounting the wrong filesystem as root.  It
might be detecting /dev/sdb as /dev/sda.  Also, the root device might
be named /dev/xda4 depending on the kernel/etc.  Systemrescuecd isn't
using the same kernel/etc so it might not see the disks the same way.

An initramfs with root=UUID="505f850e-b26a-4d0f-a02f-6ba573a48ad8" (or
a label) would be a more reliable way to handle this, or you can
probably just fiddle with the device names until you stumble on the
right one.


-- 
Rich



[gentoo-user] Need help interpreting kernel panic

2017-02-11 Thread Harry Putnam
I didn't want any typos in this kernel output so took a small screen
shot.

I'm working on a new vm (vbox) install of gentoo but having trouble
getting a kernel that boots.

Architecture=amd64 (not strict)

I started out by copying a .config from a running gentoo vm and using
it to do `make oldconfig' then fumbled my way thru the questions,
followed by a `make menuconfig' to look things over.

That kernel panicked and it seems to say it could not mount an ATA
disk.

Ok, went back to make oldconfig with that copied .config and and just
yessed my way thru the questions.  I mean accepting the default on
them all.

Again I get a kernel panic but this time its different.  It seems to
mount the disks ok but then fails to find a working `init' command.

Checking that with sysrescueCD I see /sbin/init does exist on that new vm.
and is executable.

The disk setup is sda1=/boot sda2=swap sda3=/home sda4=/

 root and kernel lines from grub.conf:
 
  root   (hd0,0)
  kernel /vmlinuz root=/dev/sda4 vga=0x31b video=vesfb:mtrr:3,ywrap

(see fstab below:)


/etc/fstab:

#   


# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3
#   filesystems.  This just tells the kernel to use the ext4 driver.
#
# NOTE: You can use full paths to devices like /dev/sda3, but it is often
#   more reliable to use filesystem labels or UUIDs. See your filesystem
#   documentation for details on setting a label. To obtain the UUID, use
#   the blkid(8) command.

## /dev/sda1/boot   ext2noauto,noatime  1   
2
UUID=1e323735-c111-48de-bd04-d255a07cc2b5   /boot   ext2noauto,noatime  
1   2
## /dev/sda2noneswapsw  0   0
UUID=5af8156e-3ea7-467e-9bbd-e015dfb25493   noneswapsw  0   0
## /dev/sda3/home   ext4noatime 0   1
UUID=e2a40d27-fdcf-4413-99d5-e01a73ea68f1   /home   ext4defaults
0   1
## /dev/sda4/   ext4noatime 0   1
UUID=505f850e-b26a-4d0f-a02f-6ba573a48ad8   /   ext4defaults
0   1

##

## From blkid:

## /dev/loop0: TYPE="squashfs"
## /dev/sda1: UUID="1e323735-c111-48de-bd04-d255a07cc2b5" TYPE="ext2" 
PARTUUID="29b3e776-01"
## /dev/sda2: UUID="5af8156e-3ea7-467e-9bbd-e015dfb25493" TYPE="swap" 
PARTUUID="29b3e776-02"
## /dev/sda3: UUID="e2a40d27-fdcf-4413-99d5-e01a73ea68f1" TYPE="ext4" 
PARTUUID="29b3e776-03"
## /dev/sda4: UUID="505f850e-b26a-4d0f-a02f-6ba573a48ad8" TYPE="ext4" 
PARTUUID="29b3e776-04"
## /dev/sdb1: UUID="87d69626-8798-4d1d-8ac9-64e6f8b47f42" TYPE="ext4" 
PARTUUID="ead06e45-01"
## /dev/sr0: UUID="2017-01-26-18-16-11-00" LABEL="sysrcd-4.9.2" TYPE="iso9660"



Re: [gentoo-user] nmap - device name.

2017-02-11 Thread Stroller

> On 11 Feb 2017, at 01:34, the...@sys-concept.com wrote:
> 
> Nmap scan report for iaxy (10.0.0.108)
> Nmap scan report for 10.10.0.3

The first things I would do is look up those IPs myself.

From the host running nmap, I'd first try running nslookup on 10.0.0.108 and 
10.10.0.3.

Ultimately the question would seem to be whether nmap is getting those names 
through local name resolution, or whether its some kind of nmap "magic" 
performed during the port-scan. 

Stroller.




Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Peter Humphrey
On Saturday 11 Feb 2017 05:22:19 Dale wrote:

> The biggest reason I needed to do this is that I usually have portage's
> work directory on tmpfs.  I just don't have enough memory to do them all
> at the same time, one at a time would work tho.  If I ever get around to
> upgrading to 32GBs, then this won't matter.

When your tmpfs fills up, it starts paging to swap, so as long as your swap 
partition is big enough it should be about the same as using the hard disk.

-- 
Regards
Peter




Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Peter Humphrey
On Friday 10 Feb 2017 19:39:44 Dale wrote:

> I generally let emerge build packages in parallel. This works because a
> lot of packages are small and don't take long to build or much room
> either.  However, there are a few exceptions.  For me, Seamonkey,
> Firefox and Libreoffice cause issues.  I would like those to build one
> at a time instead of at the same time.  I've had times where all three
> have updates but having two of them at the same time occurs pretty
> regular.  I thought I recalled this needing to be in package.env but my
> test didn't work.  I put this in package.env:
> 
> www-client/seamonkey  MAKEOPTS="-j1"
> www-client/firefox  MAKEOPTS="-j1"
> 
> Since I'm here, you can guess that emerge didn't like that.  So, either
> I'm putting that in the wrong place, the wrong way or something.  Oh, I
> looked at the wiki and I didn't see things like this.  I just went with
> what little I recalled which seems to be not correct.

The way you've set it will tell portage that, when it comes to emerging 
seamonkey, it should only use one process(or), and likewise for firefox. I 
think those options will only take effect within each package, not while 
deciding which packages to build.

What you want is some kind of interlock, so that only one of the competing 
packages can be emerged at a time. I don't know how to do that, sorry.

> ... I may want to disable portage on tmpfs as well, for Libreoffice at
> least.

I've seen a description of exactly that somewhere; you need two portage tmp 
directories, one tmpfs and one real disk, then switch from one to the other 
by redefining PORTAGE_TMPDIR in package.env. Something like that, anyway.

-- 
Regards
Peter




Re: [gentoo-user] how to control firefox input and output?

2017-02-11 Thread Andrew Savchenko
On Thu, 2 Feb 2017 23:40:25 +0330 behrouz khosravi wrote:
> Hello everyone. I was wondering is any method to force firefox to render
> its output to a off-screen buffer? another app should be able to monitor
> its video output and send mouse and keyboard events to the browser. any
> suggestion would be greatly appreciated.

Try Xnest or Xvfb.

Best regards,
Andrew Savchenko


pgp64Rk3v7PFv.pgp
Description: PGP signature


Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Dale
Neil Bothwick wrote:
> On Sat, 11 Feb 2017 05:57:26 -0600, Dale wrote:
>
>> Neil Bothwick wrote:
>>> On Sat, 11 Feb 2017 05:22:19 -0600, Dale wrote:
>>>  
 The biggest reason I needed to do this is that I usually have
 portage's work directory on tmpfs.  I just don't have enough memory
 to do them all at the same time, one at a time would work tho.  If I
 ever get around to upgrading to 32GBs, then this won't matter.   
>>> I get round this in another way
>>>
>>> % cat /etc/portage/package.env/libreoffice
>>> app-office/libreoffice ccache.conf disk-tmpdir.conf
>>>
>>> % cat /etc/portage/env/disk-tmpdir.conf
>>> PORTAGE_TMPDIR="/mnt/scratch"
>>>
>>> There, the larger packages use spinning rust for $TMPDIR. This not
>>> only means I can merge more than one of them at once, it also means I
>>> can use my computer for other things while it's happening.
>>>
>>>  
>> The last time I ummounted it from tmpfs and some of my processes were
>> killed when it was done.
> There's no need to unmount anything. All other packages still use the
> tmpfs location, I just have the bigger ones using my hard drive. It means
> I don't need to worry about things running out of space or crippling my
> other use of the computer - this is on a laptop with 8GB, my desktop now
> has 32GB to I let everything use tmpfs.

When it ran out of ram that last time, I had everything building on disk
not tmpfs.  I ran out of memory because of the programs I had open and
the memory needed for it to compile whatever it was it was compiling.  I
wasn't using memory for tmpfs at the time.  It just killed some programs
that were using a lot of ram instead of stopping emerge.  Sort of odd
now that I think about it.  I'd rather it kill emerge when it runs out
of ram myself. 

So, even with your settings, it would have done the same thing.  I have
no idea why it used so much ram that time.  That's one reason I think it
was compiling the three big ones plus some other big one or more.  I
think there is a couple big KDE related packages still lurking about. 


>> My hope was to wrestle those three under control in a way that they
>> would only do one at a time without me having to monitor it or split the
>> process.  If I could do that, then I think the rest would be workable. 
>> Maybe one of the devs will add this nifty feature one day.  I figure it
>> will happen right after I upgrade my memory and no longer need it.
>> ROFL 
> That would be pointless, as they would lose their most "enthusiastic"
> beta tester ;-)
>
>


Yea, well.  lol 

Dale

:-)  :-) 



Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Neil Bothwick
On Sat, 11 Feb 2017 05:57:26 -0600, Dale wrote:

> Neil Bothwick wrote:
> > On Sat, 11 Feb 2017 05:22:19 -0600, Dale wrote:
> >  
> >> The biggest reason I needed to do this is that I usually have
> >> portage's work directory on tmpfs.  I just don't have enough memory
> >> to do them all at the same time, one at a time would work tho.  If I
> >> ever get around to upgrading to 32GBs, then this won't matter.   
> > I get round this in another way
> >
> > % cat /etc/portage/package.env/libreoffice
> > app-office/libreoffice ccache.conf disk-tmpdir.conf
> >
> > % cat /etc/portage/env/disk-tmpdir.conf
> > PORTAGE_TMPDIR="/mnt/scratch"
> >
> > There, the larger packages use spinning rust for $TMPDIR. This not
> > only means I can merge more than one of them at once, it also means I
> > can use my computer for other things while it's happening.
> >
> >  
> 
> The last time I ummounted it from tmpfs and some of my processes were
> killed when it was done.

There's no need to unmount anything. All other packages still use the
tmpfs location, I just have the bigger ones using my hard drive. It means
I don't need to worry about things running out of space or crippling my
other use of the computer - this is on a laptop with 8GB, my desktop now
has 32GB to I let everything use tmpfs.

> My hope was to wrestle those three under control in a way that they
> would only do one at a time without me having to monitor it or split the
> process.  If I could do that, then I think the rest would be workable. 

> Maybe one of the devs will add this nifty feature one day.  I figure it
> will happen right after I upgrade my memory and no longer need it.
> ROFL 

That would be pointless, as they would lose their most "enthusiastic"
beta tester ;-)


-- 
Neil Bothwick

Math and alcohol don't mix. Don't drink and derive.


pgpf33zw6XQQh.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Dale
Johannes Rosenberger wrote:
> On 11.02.2017 12:22, Dale wrote:
>> Johannes Rosenberger wrote:
>>> On 11.02.2017 10:39, Dale wrote:
 Mick wrote:
> This is how I have configured per package FEATURES here and it seems to 
> work.  
> For example configuring ccache for large packages which take days to 
> emerge on 
> an old PC:
>
> # cat /etc/portage/env/ccache.conf 
> FEATURES="ccache"
>
> Now I need to point particular package(s) to it:
>
> # cat /etc/portage/package.env 
> app-office/libreoffice ccache.conf
> www-client/firefox ccache.conf
> www-client/chromium ram_limit.conf ccache.conf
>
> If I want more packages to use ccache.conf I add their name/version in 
> the  
> /etc/portage/package.env file.
>
 I just tried copying your way, except for the setting I want, and it
 didn't work.  I'm wondering if it just won't do this particular setting
 for some reason. 

 I've tried having package.env as a file and as a directory.  It didn't
 like either way.  Either it can't do this or I'm missing something
 really simple here. 

 Thanks. 

 Dale

 :-)  :-) 

>>> I think the problem is that you can change FEATURES but not emerge
>>> arguments while emerging since ebuild(1) is invoked fore every package
>>> but emerge(1) once for all.
>>>
>>> So I see two possible solutions here:
>>>
>>> 1. Dump the list of packages to install via emerge -p. Then split the
>>> list up and chain
>>>emerge invocations (possibly with arg --nodeps) such that the
>>> non-parallel
>>>packages will be invoked separately.
>>> 2. Use emerge options -j and --load-average so that no new ebuilds are
>>> started
>>>while one uses much cpu load. In my experience this does not
>>> unparallellize
>>>reliably but I am trying out to use higher job  and load limits in
>>> MAKEOPTS
>>>than in emerge args so single packages that can utilize the whole cpu
>>> do so before
>>>emerge intervenes and starts another ebuild.
>>>
>>> I hope this helps
>>>
>>> Johannes
>>>
>>>
>>>
>> Based on this and Neil's reply, I may just have to tell it to exclude
>> updating those when I do my regular updates.  Then go back and tell it
>> to do them later one at a time. 
>>
>> The biggest reason I needed to do this is that I usually have portage's
>> work directory on tmpfs.  I just don't have enough memory to do them all
>> at the same time, one at a time would work tho.  If I ever get around to
>> upgrading to 32GBs, then this won't matter. 
>>
>> Thanks.
>>
>>
>> Dale
>>
>> :-)  :-) 
>>
> What about using zram with lz4 for the work directory
> (https://wiki.gentoo.org/wiki/Zram)?
> Could be a good compromise. I'm using it (8GB RAM) but haven't
> benchmarked against tmpfs.
>
>
>

I'll just emerge them separately until I can get some ram.  Maybe then I
won't need to worry about it for a while. 

Thanks.

Dale

:-)  :-) 



Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Dale
Neil Bothwick wrote:
> On Sat, 11 Feb 2017 05:22:19 -0600, Dale wrote:
>
>> The biggest reason I needed to do this is that I usually have portage's
>> work directory on tmpfs.  I just don't have enough memory to do them all
>> at the same time, one at a time would work tho.  If I ever get around to
>> upgrading to 32GBs, then this won't matter. 
> I get round this in another way
>
> % cat /etc/portage/package.env/libreoffice
> app-office/libreoffice ccache.conf disk-tmpdir.conf
>
> % cat /etc/portage/env/disk-tmpdir.conf
> PORTAGE_TMPDIR="/mnt/scratch"
>
> There, the larger packages use spinning rust for $TMPDIR. This not only
> means I can merge more than one of them at once, it also means I can use
> my computer for other things while it's happening.
>
>

The last time I ummounted it from tmpfs and some of my processes were
killed when it was done.  I had walked off so I didn't see it but I
strongly suspect it ran out of memory as well.  That said, I know all
three, Seamonkey, Firefos and Libreoffice, were in the update list but I
don't know for sure if they were the only three emerging at one time. 
In other words, it may have been that those three were updating plus
some others as well.  When I came back, Seamonkey, Firefox, a couple
instances of Dolphin and a couple other programs were closed.  Also,
swap was maxed out.  That was my biggest tip that it ran out of memory. 
In the past, I've seen it max out swap and then start killing other
processes. 

My hope was to wrestle those three under control in a way that they
would only do one at a time without me having to monitor it or split the
process.  If I could do that, then I think the rest would be workable. 

Maybe one of the devs will add this nifty feature one day.  I figure it
will happen right after I upgrade my memory and no longer need it.  ROFL 

Thanks.

Dale

:-)  :-) 



Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Neil Bothwick
On Sat, 11 Feb 2017 05:22:19 -0600, Dale wrote:

> The biggest reason I needed to do this is that I usually have portage's
> work directory on tmpfs.  I just don't have enough memory to do them all
> at the same time, one at a time would work tho.  If I ever get around to
> upgrading to 32GBs, then this won't matter. 

I get round this in another way

% cat /etc/portage/package.env/libreoffice
app-office/libreoffice ccache.conf disk-tmpdir.conf

% cat /etc/portage/env/disk-tmpdir.conf
PORTAGE_TMPDIR="/mnt/scratch"

There, the larger packages use spinning rust for $TMPDIR. This not only
means I can merge more than one of them at once, it also means I can use
my computer for other things while it's happening.


-- 
Neil Bothwick

Bury a lawyer 12 feet under, because deep down they're nice.


pgpKQt9t2DfDu.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Johannes Rosenberger
On 11.02.2017 12:22, Dale wrote:
> Johannes Rosenberger wrote:
>> On 11.02.2017 10:39, Dale wrote:
>>> Mick wrote:
 This is how I have configured per package FEATURES here and it seems to 
 work.  
 For example configuring ccache for large packages which take days to 
 emerge on 
 an old PC:

 # cat /etc/portage/env/ccache.conf 
 FEATURES="ccache"

 Now I need to point particular package(s) to it:

 # cat /etc/portage/package.env 
 app-office/libreoffice ccache.conf
 www-client/firefox ccache.conf
 www-client/chromium ram_limit.conf ccache.conf

 If I want more packages to use ccache.conf I add their name/version in the 
  
 /etc/portage/package.env file.

>>> I just tried copying your way, except for the setting I want, and it
>>> didn't work.  I'm wondering if it just won't do this particular setting
>>> for some reason. 
>>>
>>> I've tried having package.env as a file and as a directory.  It didn't
>>> like either way.  Either it can't do this or I'm missing something
>>> really simple here. 
>>>
>>> Thanks. 
>>>
>>> Dale
>>>
>>> :-)  :-) 
>>>
>> I think the problem is that you can change FEATURES but not emerge
>> arguments while emerging since ebuild(1) is invoked fore every package
>> but emerge(1) once for all.
>>
>> So I see two possible solutions here:
>>
>> 1. Dump the list of packages to install via emerge -p. Then split the
>> list up and chain
>>emerge invocations (possibly with arg --nodeps) such that the
>> non-parallel
>>packages will be invoked separately.
>> 2. Use emerge options -j and --load-average so that no new ebuilds are
>> started
>>while one uses much cpu load. In my experience this does not
>> unparallellize
>>reliably but I am trying out to use higher job  and load limits in
>> MAKEOPTS
>>than in emerge args so single packages that can utilize the whole cpu
>> do so before
>>emerge intervenes and starts another ebuild.
>>
>> I hope this helps
>>
>> Johannes
>>
>>
>>
> Based on this and Neil's reply, I may just have to tell it to exclude
> updating those when I do my regular updates.  Then go back and tell it
> to do them later one at a time. 
>
> The biggest reason I needed to do this is that I usually have portage's
> work directory on tmpfs.  I just don't have enough memory to do them all
> at the same time, one at a time would work tho.  If I ever get around to
> upgrading to 32GBs, then this won't matter. 
>
> Thanks.
>
>
> Dale
>
> :-)  :-) 
>

What about using zram with lz4 for the work directory
(https://wiki.gentoo.org/wiki/Zram)?
Could be a good compromise. I'm using it (8GB RAM) but haven't
benchmarked against tmpfs.




Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Dale
Neil Bothwick wrote:
> On Fri, 10 Feb 2017 22:19:48 -0600, Dale wrote:
>
>> Dale wrote:
>>> Howdy,
>>>
>>> I read where someone did this but I can't find it now.  I looked at
>>> the wiki and did some startpage searches, no luck.  Here goes:
>>>
>>> I generally let emerge build packages in parallel. This works because
>>> a lot of packages are small and don't take long to build or much room
>>> either.  However, there are a few exceptions.  For me, Seamonkey,
>>> Firefox and Libreoffice cause issues.  I would like those to build one
>>> at a time instead of at the same time.  I've had times where all three
>>> have updates but having two of them at the same time occurs pretty
>>> regular.  I thought I recalled this needing to be in package.env but
>>> my test didn't work.  I put this in package.env: 
>>>
>>> www-client/seamonkey  MAKEOPTS="-j1"
>>> www-client/firefox  MAKEOPTS="-j1"
>>>  
>>> Since I'm here, you can guess that emerge didn't like that.  So,
>>> either I'm putting that in the wrong place, the wrong way or
>>> something.  Oh, I looked at the wiki and I didn't see things like
>>> this.  I just went with what little I recalled which seems to be not
>>> correct. 
>>>
>>> Can someone point me in the right direction here?  Examples would be
>>> nice because I may want to disable portage on tmpfs as well, for
>>> Libreoffice at least. 
>>>
>>> Thanks
>>>
>>> Dale
>>>
>>> :-)  :-) 
>>>  
>> I found another howto.  That ended with this setup:
>>
>>
>>
>> root@fireball / # cat /etc/portage/package.env
>> www-client/seamonkey  ../env/single.conf
>> www-client/firefox  ../env/single.conf
>>
>>  
>> root@fireball / # cat /etc/portage/env/single.conf
>> MAKEOPTS="-j1"
>>  
>>  
>> root@fireball / # 
>>
>>
>> From my reading, I put the setting in the env directory file and the
>> package names in package.env.  Thing is, it still tries to build them
>> both at the same time.  Once I get these two to work, I'll add
>> libreoffice to it. 
>>
>> My first test gave a error message.  I added the ../env/ part and it
>> doesn't give a error but it doesn't recognize it either.  I'm missing
>> something.  My eyes ain't real good today, allergies, so I may be not
>> seeing something right. 
>
> You have done it right this time and portage is doing exactly what you
> tell it to do. unfortunately that is not the same as what you want it to
> do.
>
> MAKEOPTS governs the number of parallel processes executed by a single
> compile. So your setting it is allowing parallel merges, but each one uses
> only one CPU core.
>
> I don't think what you want can be controlled by package.env, since you
> want to change an emerge command line option, not an environment
> variable. What you want requires "emerge -j 1".
>
>


That's what I was realizing.  I thought I did it right the second time,
actually forth time, just second that I posted.  ;-)  Anyway, I was just
hoping that I missed some silly little something.

Now to go undo what I went and done. 

Thanks.

Dale

:-)  :-) 



Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Dale
Johannes Rosenberger wrote:
> On 11.02.2017 10:39, Dale wrote:
>> Mick wrote:
>>> This is how I have configured per package FEATURES here and it seems to 
>>> work.  
>>> For example configuring ccache for large packages which take days to emerge 
>>> on 
>>> an old PC:
>>>
>>> # cat /etc/portage/env/ccache.conf 
>>> FEATURES="ccache"
>>>
>>> Now I need to point particular package(s) to it:
>>>
>>> # cat /etc/portage/package.env 
>>> app-office/libreoffice ccache.conf
>>> www-client/firefox ccache.conf
>>> www-client/chromium ram_limit.conf ccache.conf
>>>
>>> If I want more packages to use ccache.conf I add their name/version in the  
>>> /etc/portage/package.env file.
>>>
>> I just tried copying your way, except for the setting I want, and it
>> didn't work.  I'm wondering if it just won't do this particular setting
>> for some reason. 
>>
>> I've tried having package.env as a file and as a directory.  It didn't
>> like either way.  Either it can't do this or I'm missing something
>> really simple here. 
>>
>> Thanks. 
>>
>> Dale
>>
>> :-)  :-) 
>>
> I think the problem is that you can change FEATURES but not emerge
> arguments while emerging since ebuild(1) is invoked fore every package
> but emerge(1) once for all.
>
> So I see two possible solutions here:
>
> 1. Dump the list of packages to install via emerge -p. Then split the
> list up and chain
>emerge invocations (possibly with arg --nodeps) such that the
> non-parallel
>packages will be invoked separately.
> 2. Use emerge options -j and --load-average so that no new ebuilds are
> started
>while one uses much cpu load. In my experience this does not
> unparallellize
>reliably but I am trying out to use higher job  and load limits in
> MAKEOPTS
>than in emerge args so single packages that can utilize the whole cpu
> do so before
>emerge intervenes and starts another ebuild.
>
> I hope this helps
>
> Johannes
>
>
>

Based on this and Neil's reply, I may just have to tell it to exclude
updating those when I do my regular updates.  Then go back and tell it
to do them later one at a time. 

The biggest reason I needed to do this is that I usually have portage's
work directory on tmpfs.  I just don't have enough memory to do them all
at the same time, one at a time would work tho.  If I ever get around to
upgrading to 32GBs, then this won't matter. 

Thanks.


Dale

:-)  :-) 



Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Neil Bothwick
On Fri, 10 Feb 2017 22:19:48 -0600, Dale wrote:

> Dale wrote:
> > Howdy,
> >
> > I read where someone did this but I can't find it now.  I looked at
> > the wiki and did some startpage searches, no luck.  Here goes:
> >
> > I generally let emerge build packages in parallel. This works because
> > a lot of packages are small and don't take long to build or much room
> > either.  However, there are a few exceptions.  For me, Seamonkey,
> > Firefox and Libreoffice cause issues.  I would like those to build one
> > at a time instead of at the same time.  I've had times where all three
> > have updates but having two of them at the same time occurs pretty
> > regular.  I thought I recalled this needing to be in package.env but
> > my test didn't work.  I put this in package.env: 
> >
> > www-client/seamonkey  MAKEOPTS="-j1"
> > www-client/firefox  MAKEOPTS="-j1"
> >  
> > Since I'm here, you can guess that emerge didn't like that.  So,
> > either I'm putting that in the wrong place, the wrong way or
> > something.  Oh, I looked at the wiki and I didn't see things like
> > this.  I just went with what little I recalled which seems to be not
> > correct. 
> >
> > Can someone point me in the right direction here?  Examples would be
> > nice because I may want to disable portage on tmpfs as well, for
> > Libreoffice at least. 
> >
> > Thanks
> >
> > Dale
> >
> > :-)  :-) 
> >  
> 
> I found another howto.  That ended with this setup:
> 
> 
> 
> root@fireball / # cat /etc/portage/package.env
> www-client/seamonkey  ../env/single.conf
> www-client/firefox  ../env/single.conf
> 
>  
> root@fireball / # cat /etc/portage/env/single.conf
> MAKEOPTS="-j1"
>  
>  
> root@fireball / # 
> 
> 
> From my reading, I put the setting in the env directory file and the
> package names in package.env.  Thing is, it still tries to build them
> both at the same time.  Once I get these two to work, I'll add
> libreoffice to it. 
> 
> My first test gave a error message.  I added the ../env/ part and it
> doesn't give a error but it doesn't recognize it either.  I'm missing
> something.  My eyes ain't real good today, allergies, so I may be not
> seeing something right. 


You have done it right this time and portage is doing exactly what you
tell it to do. unfortunately that is not the same as what you want it to
do.

MAKEOPTS governs the number of parallel processes executed by a single
compile. So your setting it is allowing parallel merges, but each one uses
only one CPU core.

I don't think what you want can be controlled by package.env, since you
want to change an emerge command line option, not an environment
variable. What you want requires "emerge -j 1".


-- 
Neil Bothwick

WinErr 018: Unrecoverable error - System has been destroyed. Buy a new
one. Old Windows licence is not valid anymore.


pgpTDuibThnto.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Johannes Rosenberger

On 11.02.2017 10:39, Dale wrote:
> Mick wrote:
>> This is how I have configured per package FEATURES here and it seems to 
>> work.  
>> For example configuring ccache for large packages which take days to emerge 
>> on 
>> an old PC:
>>
>> # cat /etc/portage/env/ccache.conf 
>> FEATURES="ccache"
>>
>> Now I need to point particular package(s) to it:
>>
>> # cat /etc/portage/package.env 
>> app-office/libreoffice ccache.conf
>> www-client/firefox ccache.conf
>> www-client/chromium ram_limit.conf ccache.conf
>>
>> If I want more packages to use ccache.conf I add their name/version in the  
>> /etc/portage/package.env file.
>>
> I just tried copying your way, except for the setting I want, and it
> didn't work.  I'm wondering if it just won't do this particular setting
> for some reason. 
>
> I've tried having package.env as a file and as a directory.  It didn't
> like either way.  Either it can't do this or I'm missing something
> really simple here. 
>
> Thanks. 
>
> Dale
>
> :-)  :-) 
>

I think the problem is that you can change FEATURES but not emerge
arguments while emerging since ebuild(1) is invoked fore every package
but emerge(1) once for all.

So I see two possible solutions here:

1. Dump the list of packages to install via emerge -p. Then split the
list up and chain
   emerge invocations (possibly with arg --nodeps) such that the
non-parallel
   packages will be invoked separately.
2. Use emerge options -j and --load-average so that no new ebuilds are
started
   while one uses much cpu load. In my experience this does not
unparallellize
   reliably but I am trying out to use higher job  and load limits in
MAKEOPTS
   than in emerge args so single packages that can utilize the whole cpu
do so before
   emerge intervenes and starts another ebuild.

I hope this helps

Johannes




Re: [gentoo-user] nmap - device name.

2017-02-11 Thread Adam Carter
On Sat, Feb 11, 2017 at 1:09 PM,  wrote:

> On 02/10/2017 06:34 PM, the...@sys-concept.com wrote:
> > When I scan my local network:
> > nmap  -sn 10.10.0.0/24
> >
> > It prints all the devices connected to it but sometimes it prints the
> > device "name" and sometimes it doesn't eg:
> >
> > Nmap scan report for iaxy (10.0.0.108)
> > Host is up (-0.095s latency).
> > MAC Address: 00:0F:D3:00:30:DD (Digium)
> >
> > Nmap scan report for 10.10.0.3
> > Host is up (0.00017s latency).
> > MAC Address: 54:7F:54:76:61:0D (Ingenico)
> >
> > "...for "name" + IP"
> > "...for + IP
> >
> > Where is it taking the "name" from?
> > It would like to assign a label "name" to all devices.
>
> The device name have something to do with network configuration as I
> have two networks, one display devices name the other doesn't.
> eg. both devices are "audiocodes"
>
> Nmap scan report for 10.10.0.8
> Host is up (0.0010s latency).
> MAC Address: 00:90:8F:1D:FF:F1 (Audio Codes)
>
> Nmap scan report for audiocodes (10.0.0.110)
> Host is up (0.00075s latency).
> MAC Address: 00:90:8F:1D:FF:7F (Audio Codes)
>
>
The first half of MAC addresses is the vendor code (aka organisationally
unique identifier)
https://en.wikipedia.org/wiki/MAC_address

You can look them up and you often seem network chipset vendor names like
Intel, Broadcom etc, or in your case "AUDIO CODES LTD."
http://www.macmonster.co.uk/macoui=00908F


Re: [gentoo-user] [OT] KDE config problem

2017-02-11 Thread Peter Humphrey
On Friday 10 Feb 2017 10:15:10 Mick wrote:

> Peter, some years ago I also reverted from testing to stable arch, because
> I was spending more time fixing breakages than actually using the OS. 
> From what I recall it took more than a month for things to settle.

I did it the easy way, by building a new system from scratch, so there 
shouldn't be any settling down in this case.

> Something which will help is if you clear out as much of your USE flags in
> make.conf and package.use as you can, before you run emerge -e.

You may have it there. Goodness knows how long they'd been there, being 
copied from one system to another, but I had pch, vaapi and vdpau in USE. I 
don't know how much difference pch makes in practice, but I'm running emerge 
-e world without those three. I'll let you know. This is USE now:

USE="-bluetooth -btrfs -fortran -gcj -geoloc -geolocation -gnome -iodbc
-ldap -lirc -nis -odbc -systemd -thin -wifi -wireless -xinerama
gpm handbook icu symlink"

> Also make sure your new user is member of the usual groups (plugdev, usb,
> audio, et al)

$ groups
adm lp wheel audio cdrom video cdrw usb users portage vboxusers boinc prh

Thanks for the reminders, Mick. No matter how hard I stare at USE, I still 
don't always see everything I should.

-- 
Regards
Peter




Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Dale
Mick wrote:
>
> This is how I have configured per package FEATURES here and it seems to work. 
>  
> For example configuring ccache for large packages which take days to emerge 
> on 
> an old PC:
>
> # cat /etc/portage/env/ccache.conf 
> FEATURES="ccache"
>
> Now I need to point particular package(s) to it:
>
> # cat /etc/portage/package.env 
> app-office/libreoffice ccache.conf
> www-client/firefox ccache.conf
> www-client/chromium ram_limit.conf ccache.conf
>
> If I want more packages to use ccache.conf I add their name/version in the  
> /etc/portage/package.env file.
>

I just tried copying your way, except for the setting I want, and it
didn't work.  I'm wondering if it just won't do this particular setting
for some reason. 

I've tried having package.env as a file and as a directory.  It didn't
like either way.  Either it can't do this or I'm missing something
really simple here. 

Thanks. 

Dale

:-)  :-) 



Re: [gentoo-user] Different build options for specific packages

2017-02-11 Thread Mick
On Friday 10 Feb 2017 22:19:48 Dale wrote:
> Dale wrote:
> > Howdy,
> > 
> > I read where someone did this but I can't find it now.  I looked at the
> > wiki and did some startpage searches, no luck.  Here goes:
> > 
> > I generally let emerge build packages in parallel. This works because a
> > lot of packages are small and don't take long to build or much room
> > either.  However, there are a few exceptions.  For me, Seamonkey,
> > Firefox and Libreoffice cause issues.  I would like those to build one
> > at a time instead of at the same time.  I've had times where all three
> > have updates but having two of them at the same time occurs pretty
> > regular.  I thought I recalled this needing to be in package.env but my
> > test didn't work.  I put this in package.env:
> > 
> > www-client/seamonkey  MAKEOPTS="-j1"
> > www-client/firefox  MAKEOPTS="-j1"
> > 
> > Since I'm here, you can guess that emerge didn't like that.  So, either
> > I'm putting that in the wrong place, the wrong way or something.  Oh, I
> > looked at the wiki and I didn't see things like this.  I just went with
> > what little I recalled which seems to be not correct.
> > 
> > Can someone point me in the right direction here?  Examples would be
> > nice because I may want to disable portage on tmpfs as well, for
> > Libreoffice at least.
> > 
> > Thanks
> > 
> > Dale
> > 
> > :-)  :-)
> 
> I found another howto.  That ended with this setup:
> 
> 
> 
> root@fireball / # cat /etc/portage/package.env
> www-client/seamonkey  ../env/single.conf
> www-client/firefox  ../env/single.conf
> 
> 
> root@fireball / # cat /etc/portage/env/single.conf
> MAKEOPTS="-j1"
> 
> 
> root@fireball / #
> 
> 
> From my reading, I put the setting in the env directory file and the
> package names in package.env.  Thing is, it still tries to build them
> both at the same time.  Once I get these two to work, I'll add
> libreoffice to it.
> 
> My first test gave a error message.  I added the ../env/ part and it
> doesn't give a error but it doesn't recognize it either.  I'm missing
> something.  My eyes ain't real good today, allergies, so I may be not
> seeing something right.
> 
> Dale
> 
> :-)  :-)

This is how I have configured per package FEATURES here and it seems to work.  
For example configuring ccache for large packages which take days to emerge on 
an old PC:

# cat /etc/portage/env/ccache.conf 
FEATURES="ccache"

Now I need to point particular package(s) to it:

# cat /etc/portage/package.env 
app-office/libreoffice ccache.conf
www-client/firefox ccache.conf
www-client/chromium ram_limit.conf ccache.conf

If I want more packages to use ccache.conf I add their name/version in the  
/etc/portage/package.env file.

-- 
Regards,
Mick

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


Re: [gentoo-user] Firefox : tab grouping

2017-02-11 Thread Dale
Stefan G. Weichinger wrote:
> Am 2017-02-10 um 00:32 schrieb Dale:
>
>> That wouldn't handle the number of open tabs I have here.  Not even
>> close.  There are times where I have close to and even exceeding 200
>> tabs open.  I use the group add-on to sort them into groups.  Depending
>> on what I'm into at the time, or looking for, I go to the group that
>> should have it.
> Additional hint for excessive tab users:
>
> http://add0n.com/tab-suspender.html
>
>
>

My tab group manager has that built in.  I don't use it but it is there. 

Dale

:-)  :-) 



Re: [gentoo-user] Firefox : tab grouping

2017-02-11 Thread Stefan G. Weichinger
Am 2017-02-10 um 00:32 schrieb Dale:

> That wouldn't handle the number of open tabs I have here.  Not even
> close.  There are times where I have close to and even exceeding 200
> tabs open.  I use the group add-on to sort them into groups.  Depending
> on what I'm into at the time, or looking for, I go to the group that
> should have it.

Additional hint for excessive tab users:

http://add0n.com/tab-suspender.html