[gentoo-user] Ebuild: How to deal with external repositories properly (best practise)?

2020-07-27 Thread Ramon Fischer

Hello list,

I have set up my first ebuild repository[1] with one package 
"x11-misc/drm_master_util" to run "X" without root privileges. I am 
still making it to work[2]. The ebuild file accesses an external git 
repository[3].


The thing I am concerned about, is, that I am pulling something from an 
external source, which I am installing on my system and giving it root 
privileges[4].


The only best practise I can think of, is, to fork the external 
repository, linking the ebuild to my fork and updating it on demand, so 
I have full control over it.


Would this be the way to do it?

[1] https://codeberg.org/keks24/gentoo-overlay
[2] https://wiki.gentoo.org/wiki/User:Keks24/drafts/Non_root_Xorg
[3] https://github.com/gch1p/drm_master_util.git
[4] https://wiki.gentoo.org/wiki/Non_root_Xorg#Handling_of_DRM_ioctls



Re: [gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained?

2020-07-27 Thread Adam Carter
>
> Compare realtime it to measured CPU time. If one realtime second is
> shorter than a
> CPU second then you know the host is pausing your VM. There are other ways
> to
> check, but this should always work if you can contact an asynchronous time
> standard.
> You may need to average the time over tens of seconds or a minute.
>
> This method will allow you to figure out that AWS spot instances are
> oversubscribed ~1.5x.
>
>
Nice. FWIW the guest is running NTP.

So should I run something like: date ; time  ; date ?


Re: [gentoo-user] Local mail server

2020-07-27 Thread james

On 7/25/20 8:09 AM, Peter Humphrey wrote:

On Sunday, 19 July 2020 15:18:32 BST I wrote:



I think I'm nearly there, but still one config problem eludes me.

The setup is fetchmail > postfix > dovecot.

Postfix is trying to deliver some mail (not all) to me@this-workstation instead
of to its own machine, and I can't see why. I've tried a couple of relay-host
settings, but then I just get "warning: relayhost configuration problem" in the
log, so relay-host is now back to its default value.

Here's an excerpt from main.cf:

myhostname = serv.
mydomain = 
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

I've tried omitting $mydomain from that last line, but it didn't help.

Can anyone see what I'm missing? (More of main.cf if needed.)


Hello Peter,

I just ran across this document. I hope you find it relevant to your 
mail issues.



https://bridge.grumpy-troll.org/2020/07/small-mailserver-bcp/

Small Mailserver Best Current Practices


James



Re: [gentoo-user] OT: Can a linux vmware guest tell if its host is CPU constrained?

2020-07-27 Thread Sid Spry
On Sun, Jul 26, 2020, at 11:21 PM, Adam Carter wrote:
> On Mon, Jul 27, 2020 at 1:35 PM Ashley Dixon  wrote:
> > On Mon, Jul 27, 2020 at 01:23:46PM +1000, Adam Carter wrote:
> > > Having performance issues on a linux vmware guest that doesnt run vmtools
> > > because its an 'appliance', but it does allow shell access. I assume CPU
> > > utilisation shown by top etc is the utilisation of the vCPUs. Is there any
> > > way to discover or infer host CPU issues?
> > 
> > Do you mean that you want to monitor the host system from the guest? Can 
> > you not
> > just SSH into the host from the guest?  You can also infer CPU  usage  from 
> >  the
> > /proc/stat file on the host system, if you can share  files  over  NFS  or  
> > some
> > other file-sharing means.
> 
> I have ssh access (including root) to the guest but no access to the host.

Compare realtime it to measured CPU time. If one realtime second is shorter 
than a
CPU second then you know the host is pausing your VM. There are other ways to
check, but this should always work if you can contact an asynchronous time 
standard.
You may need to average the time over tens of seconds or a minute.

This method will allow you to figure out that AWS spot instances are
oversubscribed ~1.5x.



Re: [gentoo-user] problem getting wifi card to route to internet

2020-07-27 Thread John Covici
I wil have to check, I ran into some other problems with wlan0 and
will get back when I have straightened that out.

Thanks.


On Sun, 26 Jul 2020 23:17:24 -0400,
Adam Carter wrote:
> 
> [1  ]
> > > Have you set the default route and enabled ip forwarding?
> > >
> > > Also you don’t need to add a route for connected interfaces
> > Thanks for your quick response.  Packet forwarding is enabled and I am
> > using shorewall to have normal firewall settings.
> >
> 
> Ok so can the WLAN clients ping the internet facing interface of your new
> linux/wlan/internet router? If not, do they get a DHCP IP address? Do they
> have a default route?
> [2  ]

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com