Re: [gentoo-user] Software for checking CDs and DVDs for errors?

2018-12-03 Thread Pouru Lasse
Dale  writes:

> Andrew Udvare wrote:
>> On 03/12/2018 17:50, Dale wrote:
>>> Jack wrote:
>>>
>>> I was wondering if the checksums could be checked?  If the OP can find
>>> the checksum for the DVD as it comes from the factory, then he could
>>> check what he has against that.  Question is, is that info even
>>> available or does it vary over batches of DVDs?  If it varies, it may
>>> not be possible to test that way even if checksums are available. 
>>>
>>> Just throwing that out there in case checksums are available and it
>>> could be done that way.  Sort of doubt it tho. 
>> Checksums do exist. The Redump project is trying to collect all relevant
>> disc information for every video game ever made, basically.
>>
>> http://redump.org/disc/57802/
>>
>> The process to generate this information is very specific and requires
>> software that isn't made for Linux unfortunately. But the MD5, CRC32,
>> SHA1 is there which can be usually be checked with `dd /dev/sr0 |
>> sha1sum` for a basic disc.
>>
>> PS1 and PS2 games can be checked without special hardware in this case,
>> but for others, specific hardware is required.
>>
>> In my case I have a JTAG Xbox 360, so the best way for me to check a
>> game is to have my Xbox 360 dump the disc contents entirely with an app
>> that would not be available on a normal Xbox 360. If this fails at any
>> point it's a bad disc (or it needs cleaning/repair).
>>
>
> So as usual, they are not very Linux friendly.  Figures.  I was hoping
> that there might be something helpful out there.  Sounds like there is
> but only in certain cases.  That said, if that will help the OP with
> only half the games, that is half that can be tested.  Otherwise, one
> has to play a lot of games and see if it crashes.  ;-)
>
> My favorite game, if you call this that, Kpatience.  I play spider
> solitaire with it.  Sometimes a few other games.  I did play Tux Racer
> once years ago tho.  I don't recall ever buying a game tho.  I've heard
> of a lot of them and even seen some run but never was to into it. 
>
> Maybe some of this will lead to something that can help the OP. 
>
> Dale
>
> :-)  :-) 

Looks like checking the checksums is the way to go for the PS2 games,
somehow I just assumed it wouldn't be that simple.

I thought that dvdisaster should work for DVDs based on the name, but it
gives the error "this software does not support DVD-ROM type media" for
DVD games and also for regular movie DVDs. Maybe the ebuild is limited
to just CDs for some reason.

- Lasse



[gentoo-user] RAM checks for chromium

2018-12-03 Thread Mick
Two Intel systems with 4G RAM failed to build chromium, even after setting 
MAKEOPTS="-j2". The ebuild is checking for a minimum of 3G RAM:

>>> Running pre-merge checks for www-client/chromium-70.0.3538.110
 * Checking for at least 3 GiB RAM ...[ ok ]
 * Checking for at least 5 GiB disk space at "/var/tmp/portage/www-client/
chromium-70.0.3538.110/temp" ...  [ ok ]

Given I've spent more than two days compiling to get nowhere with this, I'm 
thinking:

a) Chromium probably needs more than 3G now.
b) Either the ebuild, or portage, ought to check available RAM and dynamically 
adjust the number of jobs accordingly - or have I watched too many AI movies?

-- 
Regards,
Mick

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


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

2018-12-03 Thread J. Roeleveld
# ssh -Y @

"@" is optional. Without it, ssh will use the username you are using 
on the client.
"" is either an IP address or, if you have a hosts file or DNS server 
configured, the hostname.

The "-Y" sorts out the forwarding for X applications.

--
Joost

On December 4, 2018 5:26:09 AM UTC, Thomas Mueller  wrote:
>> On 2018-12-03, Thomas Mueller  wrote:
>
>> > I see also the suggestion
>  
>> >  $ ssh -Y 
> 
>> > but what would be the syntax for specifying  where 
>> > is a different computer on the same local network?
>
>> Does it have an IP address?
>  
>> Grant Edwards
>
>I see where I missed changing the Subject from an old message:
>embarrassing on me.
>
>Being on the same local network, the other machine would have an
>intranet IP address of 192.168.0.x, where x would be a number >= 2.
>
>I have mounted file systems by NFS but have never accessed an X server
>by ssh.  I don't think I ever used ssh command directly.
>
>Tom

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

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

2018-12-03 Thread Thomas Mueller
> On 2018-12-03, Thomas Mueller  wrote:

> > I see also the suggestion
  
> >  $ ssh -Y 
 
> > but what would be the syntax for specifying  where 
> > is a different computer on the same local network?

> Does it have an IP address?
  
> Grant Edwards

I see where I missed changing the Subject from an old message: embarrassing on 
me.

Being on the same local network, the other machine would have an intranet IP 
address of 192.168.0.x, where x would be a number >= 2.

I have mounted file systems by NFS but have never accessed an X server by ssh.  
I don't think I ever used ssh command directly.

Tom




Re: [gentoo-user] Software for checking CDs and DVDs for errors?

2018-12-03 Thread Andrew Udvare



> On 2018-12-03, at 23:16, Davyd McColl  wrote:
> 
> Not so much just for verification, but I'd also check out ddrescue. If the 
> tool dumps your media easily, it's probably good. If it struggles, you may at 
> least still have a workable image by the time it is done.

The lasers in older game consoles are very weak and they get even worst with 
age. They don't tend to do well with many scratches. The disc may read in a PC 
with scratches, but then fail to load in the console. I have found PC drives to 
be far more resilient to scratches compared to consoles.

In the case of PlayStation 1, in the interest of space, they went with mode 2 
XA format which makes the discs lack error correction codes. This means if the 
disc fails in a PC it definitely will fail in the console with no way to 
correct.

-- 
Andrew


Re: [gentoo-user] Software for checking CDs and DVDs for errors?

2018-12-03 Thread Davyd McColl




On December 3, 2018 11:32:46 PM Jack  wrote:


On 2018.12.03 11:27, Pouru Lasse wrote:

I've got a bunch of scratched disc-based games (PS2, Xbox 360) that
I'd
like to check for errors. Is there any program for Linux that does
this?
I found and tried dvdisaster, but it only works for CDs, not
DVDs. Everything else seems to be Windows-only.


I have not installed dvdisaster, but I'd be really surprised if it
won't check dvd's.  The ebuild description is "Tool for creating error
correction data (ecc) for optical media (DVD, CD, BD)" so if it really
balks at a dvd, I'd file a bug.

Also - what is your criteria for finding an error?  Could you just read
the entire disk or copy to /dev/null and just look for any read
errors?  (I'm not sure if I'd try cp or dd or some variant on dd.)

Jack


Not so much just for verification, but I'd also check out ddrescue. If the 
tool dumps your media easily, it's probably good. If it struggles, you may 
at least still have a workable image by the time it is done.


IIRC, some game discs may also throw a curve-ball here: they had 
intentional errors introduced near the end of the disc to prevent image 
dumping for copy protection. I'm sure I ran across a ps2 game or two like this.


-d





[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] SATA drive controller and Linux driver.

2018-12-03 Thread Dale
Hi,

I found the manufacturer website.  It says this card supports Hot Plug
and Hot Swap.  Have you ever did this?  If so, any problems?  I don't
know why but outside of USB, that sort of thing makes me nervous.  I'm
old school I guess.  Plugging things into a computer was always done
when the puter was off. 

Just curious.  Oh, I did order a card.  Now to figure out the situation
on a hard drive.  :/

Dale

:-)  :-) 

Scott Ellis wrote:
> Yes, I have that card (well, the 2 internal/2 external port version). 
> Works fine with the AHCI driver on x86_64. No quirks needed, supports
> FIS, etc.
>
>    ScottE
>
> On Fri, Nov 30, 2018 at 5:50 PM Michael Orlitzky  > wrote:
>
> On 11/30/18 8:15 PM, Dale wrote:
> >
> > Does anyone have a card and know for sure that this works and is
> > stable?  Also, any clues on what driver it takes?
> >
>
> Probably the standard "ahci" driver.
>
>



Re: [gentoo-user] Software for checking CDs and DVDs for errors?

2018-12-03 Thread Dale
Andrew Udvare wrote:
> On 03/12/2018 17:50, Dale wrote:
>> Jack wrote:
>>
>> I was wondering if the checksums could be checked?  If the OP can find
>> the checksum for the DVD as it comes from the factory, then he could
>> check what he has against that.  Question is, is that info even
>> available or does it vary over batches of DVDs?  If it varies, it may
>> not be possible to test that way even if checksums are available. 
>>
>> Just throwing that out there in case checksums are available and it
>> could be done that way.  Sort of doubt it tho. 
> Checksums do exist. The Redump project is trying to collect all relevant
> disc information for every video game ever made, basically.
>
> http://redump.org/disc/57802/
>
> The process to generate this information is very specific and requires
> software that isn't made for Linux unfortunately. But the MD5, CRC32,
> SHA1 is there which can be usually be checked with `dd /dev/sr0 |
> sha1sum` for a basic disc.
>
> PS1 and PS2 games can be checked without special hardware in this case,
> but for others, specific hardware is required.
>
> In my case I have a JTAG Xbox 360, so the best way for me to check a
> game is to have my Xbox 360 dump the disc contents entirely with an app
> that would not be available on a normal Xbox 360. If this fails at any
> point it's a bad disc (or it needs cleaning/repair).
>

So as usual, they are not very Linux friendly.  Figures.  I was hoping
that there might be something helpful out there.  Sounds like there is
but only in certain cases.  That said, if that will help the OP with
only half the games, that is half that can be tested.  Otherwise, one
has to play a lot of games and see if it crashes.  ;-)

My favorite game, if you call this that, Kpatience.  I play spider
solitaire with it.  Sometimes a few other games.  I did play Tux Racer
once years ago tho.  I don't recall ever buying a game tho.  I've heard
of a lot of them and even seen some run but never was to into it. 

Maybe some of this will lead to something that can help the OP. 

Dale

:-)  :-) 



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

2018-12-03 Thread Andrew Udvare
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?

Not sure but I do have a rule with using --ctstate ESTABLISHED,RELATED
like yours. I even got rid of the interface argument in case that's a
problem. The box is a router and has 2 NICs going, one for WAN and one
for LAN. enp1s0f0 being the internet, and enp1s0f1 is for 192.168.1.0/24

When I'm connected to the VPN and I'm definitely not on my network, I
can do things like `ssh 192.168.1.xxx` and it works. And HTTP works too.
It's only port 53 that I am having trouble with.

dnsmasq (listening only on enp1s0f1, 192 address) gets the request from
the tun0 interface, which seems to route correctly to the 192 address.
The response that dnsmasq creates (presumably) does not route back to
the originating IP.

Happy to provide any other configuration details and packet dumps if it
helps.

Full iptables (I use a script to reset to sane state, suggestions welcome):

-P INPUT DROP
-P FORWARD DROP
-P OUTPUT ACCEPT
-N DOCKER
-N DOCKER-ISOLATION-STAGE-1
-N DOCKER-ISOLATION-STAGE-2
-N DOCKER-USER
-N SCANS
-A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state
--state NEW -j DROP
-A INPUT -f -j DROP
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG
FIN,SYN,RST,PSH,ACK,URG -j DROP
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set
--name BLACKLIST --mask 255.255.255.255 --rsource
-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent
--update --seconds 10 --hitcount 10 --rttl --name BLACKLIST --mask
255.255.255.255 --rsource -j DROP
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -m conntrack --ctstate INVALID -j DROP
-A INPUT -p tcp -m tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED
-j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -m conntrack --ctstate NEW,ESTABLISHED
-j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -m conntrack --ctstate
NEW,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 9222 -m conntrack --ctstate
NEW,ESTABLISHED -j ACCEPT
-A INPUT -p udp -m udp --dport 67 -m conntrack --ctstate NEW,ESTABLISHED
-j ACCEPT
-A INPUT -p udp -m udp --dport 68 -m conntrack --ctstate NEW,ESTABLISHED
-j ACCEPT
-A INPUT -p udp -m udp --dport 53 -m conntrack --ctstate NEW,ESTABLISHED
-j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -p udp -m udp --dport 33434:33523 -j REJECT --reject-with
icmp-port-unreachable
-A INPUT -s 192.168.1.0/24 -p tcp -m tcp --dport 3306 -m conntrack
--ctstate NEW,ESTABLISHED -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m conntrack --ctstate NEW,ESTABLISHED
-m udp --dport 137 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m conntrack --ctstate NEW,ESTABLISHED
-m udp --dport 138 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m conntrack --ctstate NEW,ESTABLISHED
-m tcp --dport 139 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m conntrack --ctstate NEW,ESTABLISHED
-m tcp --dport 445 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 4242 -m conntrack --ctstate
NEW,ESTABLISHED -j ACCEPT
-A INPUT -s 192.168.1.0/24 -i enp1s0f1 -p udp -m udp --dport 5353 -m
conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
-A INPUT -p udp -m udp --dport 12112 -m conntrack --ctstate
NEW,ESTABLISHED -j ACCEPT
-A INPUT -s 205.171.2.64/32 -p ipv6 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A FORWARD -j DOCKER-USER
-A FORWARD -j DOCKER-ISOLATION-STAGE-1
-A FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -o docker0 -j DOCKER
-A FORWARD -i docker0 ! -o docker0 -j ACCEPT
-A FORWARD -i docker0 -o docker0 -j ACCEPT
-A FORWARD -i enp1s0f1 -j ACCEPT
-A FORWARD -i enp2s0 -j ACCEPT
-A FORWARD -i enp1s0f0 -j ACCEPT
-A FORWARD -i br0 -j ACCEPT
-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -s 10.100.0.0/24 -j ACCEPT
-A FORWARD -i tun0 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A DOCKER-ISOLATION-STAGE-1 -i docker0 ! -o docker0 -j
DOCKER-ISOLATION-STAGE-2
-A DOCKER-ISOLATION-STAGE-1 -j RETURN
-A DOCKER-ISOLATION-STAGE-2 -o docker0 -j DROP
-A DOCKER-ISOLATION-STAGE-2 -j RETURN
-A DOCKER-USER -j RETURN
-A SCANS -p tcp -m tcp --tcp-flags FIN,PSH,URG FIN,PSH,URG -j DROP
-A SCANS -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG
FIN,SYN,RST,PSH,ACK,URG -j DROP
-A SCANS -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
-A SCANS -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP

iptables -nat --list-rules:

-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-N DOCKER
-A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
-A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER
-A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE
-A POSTROUTING -s 10.100.0.0/24 -j MASQUERADE
-A POSTROUTING -j MASQUERADE
-A DOCKER -i docker0 -j 

Re: [gentoo-user] Software for checking CDs and DVDs for errors?

2018-12-03 Thread Andrew Udvare
On 03/12/2018 17:50, Dale wrote:
> Jack wrote:
> 
> I was wondering if the checksums could be checked?  If the OP can find
> the checksum for the DVD as it comes from the factory, then he could
> check what he has against that.  Question is, is that info even
> available or does it vary over batches of DVDs?  If it varies, it may
> not be possible to test that way even if checksums are available. 
> 
> Just throwing that out there in case checksums are available and it
> could be done that way.  Sort of doubt it tho. 

Checksums do exist. The Redump project is trying to collect all relevant
disc information for every video game ever made, basically.

http://redump.org/disc/57802/

The process to generate this information is very specific and requires
software that isn't made for Linux unfortunately. But the MD5, CRC32,
SHA1 is there which can be usually be checked with `dd /dev/sr0 |
sha1sum` for a basic disc.

PS1 and PS2 games can be checked without special hardware in this case,
but for others, specific hardware is required.

In my case I have a JTAG Xbox 360, so the best way for me to check a
game is to have my Xbox 360 dump the disc contents entirely with an app
that would not be available on a normal Xbox 360. If this fails at any
point it's a bad disc (or it needs cleaning/repair).

-- 
Andrew



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Software for checking CDs and DVDs for errors?

2018-12-03 Thread Dale
Jack wrote:
> On 2018.12.03 11:27, Pouru Lasse wrote:
>> I've got a bunch of scratched disc-based games (PS2, Xbox 360) that I'd
>> like to check for errors. Is there any program for Linux that does this?
>> I found and tried dvdisaster, but it only works for CDs, not
>> DVDs. Everything else seems to be Windows-only.
>
> I have not installed dvdisaster, but I'd be really surprised if it
> won't check dvd's.  The ebuild description is "Tool for creating error
> correction data (ecc) for optical media (DVD, CD, BD)" so if it really
> balks at a dvd, I'd file a bug.
>
> Also - what is your criteria for finding an error?  Could you just
> read the entire disk or copy to /dev/null and just look for any read
> errors?  (I'm not sure if I'd try cp or dd or some variant on dd.)
>
> Jack
>


I was wondering if the checksums could be checked?  If the OP can find
the checksum for the DVD as it comes from the factory, then he could
check what he has against that.  Question is, is that info even
available or does it vary over batches of DVDs?  If it varies, it may
not be possible to test that way even if checksums are available. 

Thing that makes this different for the OP, a damaged audio or even a
video DVD can be corrected sometimes within the player itself.  I know
audio can and has done so for ages.  Video maybe, maybe not.  I suspect
video game DVDs fall more into the category of a data disk tho.  A
scratch may not be a problem with audio but when it comes to data, it
could be broken completely. 

Another thought, maybe if one is bad the maker would replace for a small
fee?? 

Just throwing that out there in case checksums are available and it
could be done that way.  Sort of doubt it tho. 

Dale

:-)  :-) 



Re: [gentoo-user] Software for checking CDs and DVDs for errors?

2018-12-03 Thread Jack

On 2018.12.03 11:27, Pouru Lasse wrote:
I've got a bunch of scratched disc-based games (PS2, Xbox 360) that  
I'd
like to check for errors. Is there any program for Linux that does  
this?

I found and tried dvdisaster, but it only works for CDs, not
DVDs. Everything else seems to be Windows-only.


I have not installed dvdisaster, but I'd be really surprised if it  
won't check dvd's.  The ebuild description is "Tool for creating error  
correction data (ecc) for optical media (DVD, CD, BD)" so if it really  
balks at a dvd, I'd file a bug.


Also - what is your criteria for finding an error?  Could you just read  
the entire disk or copy to /dev/null and just look for any read  
errors?  (I'm not sure if I'd try cp or dd or some variant on dd.)


Jack


Re: [gentoo-user] Software for checking CDs and DVDs for errors?

2018-12-03 Thread Francesco Turco
On Mon, Dec 3, 2018, at 17:27, Pouru Lasse wrote:
> I've got a bunch of scratched disc-based games (PS2, Xbox 360) that I'd
> like to check for errors. Is there any program for Linux that does this?
> I found and tried dvdisaster, but it only works for CDs, not
> DVDs. Everything else seems to be Windows-only.

ddrescue?

-- 
https://fturco.gitlab.io/



[gentoo-user] Re: Program for posting to a Newsgroup

2018-12-03 Thread Grant Edwards
On 2018-12-03, Thomas Mueller  wrote:

> I see also the suggestion 
>
>  $ ssh -Y 
>
> but what would be the syntax for specifying  where 
> is a different computer on the same local network?

Does it have an IP address?

-- 
Grant Edwards   grant.b.edwardsYow! I just went below the
  at   poverty line!
  gmail.com




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

2018-12-03 Thread Grant Edwards
On 2018-12-02, 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.

A web UI has been pretty much the standard way to of doing things like
that for the past few decades.

-- 
Grant Edwards   grant.b.edwardsYow! !!  I am having fun!!!
  at   
  gmail.com




[gentoo-user] Software for checking CDs and DVDs for errors?

2018-12-03 Thread Pouru Lasse
I've got a bunch of scratched disc-based games (PS2, Xbox 360) that I'd
like to check for errors. Is there any program for Linux that does this?
I found and tried dvdisaster, but it only works for CDs, not
DVDs. Everything else seems to be Windows-only.

- Lasse



Re: [gentoo-user] Re: trouble with my normal emerge --update @world

2018-12-03 Thread allan gottlieb
On Mon, Dec 03 2018, Nuno Silva wrote:

> On 2018-12-02, allan gottlieb wrote:
> 
>> On one of my stable amd64 systems, I just ran
>>
>>  emerge --update --changed-use --with-bdeps=n --deep @world
>>
>> and received a list of 65 packages to merge (many gnome).
>>
>> The update completed and I was told
>>
>> !!! existing preserved libs:
> package: dev-libs/libcdio-2.0.0-r1
>>  *  - /usr/lib64/libcdio.so.16
>>  *  - /usr/lib64/libcdio.so.16.0.0
>>  *  used by /usr/bin/libcdio-paranoia (dev-libs/libcdio-paranoia-0.93_p1)
>>  *  used by /usr/lib64/libcdio_cdda.so.2.0.0 
>> (dev-libs/libcdio-paranoia-0.93_p1)
>>  *  used by /usr/lib64/libcdio_paranoia.so.2.0.0 
>> (dev-libs/libcdio-paranoia-0.93_p1)
>>  *  used by /usr/libexec/gvfsd-cdda (gnome-base/gvfs-1.32.2)
>> Use emerge @preserved-rebuild to rebuild packages using these libraries
>>
>> When I ran emerge --pretend @preserved-rebuild I was told to run
>> merge dev-qt/qtcore-5.11.1 which is ~amd64, which seems wrong.
>> The full output is below.
>> Can someone please explain what is happening.
>>
>> thanks,
>> allan
>>
>> E6430 ~ # emerge --pretend @preserved-rebuild
>> These are the packages that would be merged, in reverse order:
>>
>> Calculating dependencies... done!
>> [ebuild   R] gnome-base/gvfs-1.32.2 
>> [ebuild   R]  dev-libs/libcdio-paranoia-0.93_p1 
>> [nomerge   ] gnome-base/gvfs-1.32.2 
>> [nomerge   ]  sys-fs/udisks-2.7.4-r1 
>> [nomerge   ]   sys-libs/libblockdev-2.14-r1 
>> [nomerge   ]dev-libs/volume_key-0.3.11 
>> [nomerge   ] app-crypt/gpgme-1.11.1 
>> [nomerge   ]  dev-qt/qttest-5.9.6 
>> [ebuild UD~]   dev-qt/qtcore-5.9.6-r1 [5.11.1-r1]
>>
>> !!! Multiple package instances within a single package slot have been pulled
>> !!! into the dependency graph, resulting in a slot conflict:
>>
>> dev-qt/qtcore:5
>>
>>   (dev-qt/qtcore-5.11.1-r1:5/5.11::gentoo, installed) pulled in by
>> ~dev-qt/qtcore-5.11.1 required by 
>> (dev-qt/qtconcurrent-5.11.1:5/5.11::gentoo, installed)
>> ^  ^^
>>   
>> (and 9 more with the same problem)
>>
>>   (dev-qt/qtcore-5.9.6-r1:5/5.9::gentoo, ebuild scheduled for merge) pulled 
>> in by
>> ~dev-qt/qtcore-5.9.6 required by (dev-qt/qttest-5.9.6:5/5.9::gentoo, 
>> installed)
>> ^  ^
> [...]
> 
> I would try upgrading qttest first (it is the one pulling
> qtcore-5.9.6{,-r1}, according to the output). Do you have any qttest
> 5.11.* version which is keyworded amd64 (and not ~amd64)?
> 
> Here and on
> https://urldefense.proofpoint.com/v2/url?u=https-3A__packages.gentoo.org_packages_dev-2Dqt_qttest=DwIBAg=slrrB7dE8n7gBJbeO0g-IQ=_dyIY8xqg6BKCk8rhrlI7w=tDVBtLgUSC8n4dmctGhQkI9xdwjwHBxoPf_aN2VSQ5Q=LSfHPknOXSb0aGKfeCF56XaHMDSzxkFup5BhzVuijoI=,
> qttest-5.11.1 is amd64. Maybe the tree was in an inconsistent state when
> you last synced it?
> 
> If you have qttest 5.11.1 in ~amd64 and you need a very quick fix, try
> adding it to package.accept_keywords and upgrading it. Otherwise, you
> might prefer to sync the portage tree again first.
> 
> -- 
> Nuno Silva
> 
>

I just did eix and indeed qttest 5.11.1 is amd64 (not ~amd64).
I upgraded it and now emerge @preserved-rebuild succeeds.

I did not resync, just emerging qttest did the trick.

Thank you.
allan gottlieb





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

2018-12-03 Thread Michael Orlitzky

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?

Ours looks like,

iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -s $INSIDE_NET-j ACCEPT
iptables -A FORWARD -i $VPN_INTERFACE -j ACCEPT

(and you need to enable the net.ipv4.ip_forward sysctl)



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

2018-12-03 Thread Andrew Udvare
Very confused here, but I feel like I'm missing a route on either the client 
side or the server side. Or it is a firewall rule but that doesn't seem likely.

My OpenVPN server/client config is almost identical to that on the wiki page: 
https://wiki.gentoo.org/wiki/OpenVPN#Configuration

After connecting from another ISP and then connecting to the VPN, I use dig to 
query the internal server:

dig @192.168.1.254 pi.hole

The server can see the DNS request from the client:

 # tcpdump -i tun0 'port 53'
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tun0, link-type RAW (Raw IP), capture size 262144 bytes
02:21:07.996606 IP 10.100.0.6.50312 > 192.168.1.254.domain: 13933+ [1au] A? 
pi.hole. (36)

Even the dnsmasq log is showing the request:

Dec  3 10:21:45 dnsmasq[1026]: 4744 71.214.144.51/49349 query[A] pi.hole from 
71.214.144.51
^ shows the external IP. Is this normal?

On the client side, dig times out.

So if it can come through client-to-server but won't go back server-to-client, 
where could the issue be?

I even changed the iptables policies for INPUT and FORWARD to allow to see if 
anything would change but the result was the same.

I have HTTP running on the server and accessing via the IP works fine:

 $ curl https://192.168.1.254 -k
...
< Server: nginx
< Date: Mon, 03 Dec 2018 10:22:45 GMT
< Content-Type: text/html
< Content-Length: 574
< Connection: keep-alive
< Keep-Alive: timeout=20

OpenVPN server configuration relevant lines:

# OpenVPN 'virtual' network infomation, network and mask
server 10.100.0.0 255.255.255.0
push "redirect-gateway def1"
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 192.168.1.254"

Routing table on server:
 $ route -4
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
default xx-xx-xx-xx.0.0.0.0 UG1024   00 enp1s0f0
10.100.0.0  10.100.0.2  255.255.255.0   UG0  00 tun0
10.100.0.2  0.0.0.0 255.255.255.255 UH0  00 tun0
xx.xxx.144.00.0.0.0 255.255.255.0   U 0  00 enp1s0f0
xx-xxx-144-254. 0.0.0.0 255.255.255.255 UH1024   00 enp1s0f0
172.17.0.0  0.0.0.0 255.255.0.0 U 0  00 docker0
192.168.1.0 0.0.0.0 255.255.255.0   U 0  00 enp1s0f1

iptables on server:
-A FORWARD -s 10.100.0.0/24 -i tun0 -o enp1s0f0 -m conntrack --ctstate NEW -j 
ACCEPT

-t nat:
-A POSTROUTING -s 10.100.0.0/24 -j MASQUERADE

On the client (en0 is the wifi, utun4 is created by OpenVPN):
 $ netstat -nrtf inet
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use   Netif Expire
0/110.100.0.5 UGSc   840   utun4
default172.20.10.1UGSc30 en0
10.100.0.1/32  10.100.0.5 UGSc00   utun4
10.100.0.5 10.100.0.6 UHr140   utun4
71.214.144.51/32   172.20.10.1UGSc10 en0
127127.0.0.1  UCS 00 lo0
127.0.0.1  127.0.0.1  UH  5   140998 lo0
128.0/110.100.0.5 UGSc40   utun4
169.254link#9 UCS 00 en0  !
172.20.10/28   link#9 UCS 10 en0  !
172.20.10.1/32 link#9 UCS 20 en0  !
172.20.10.1b2:70:2d:2:18:64   UHLWIir 8   23 en0   1184
172.20.10.3/32 link#9 UCS 00 en0  !
172.20.10.15   ff:ff:ff:ff:ff:ff  UHLWbI  0   18 en0  !
192.168.1  10.100.0.5 UGSc00   utun4
224.0.0/4  link#9 UmCS20 en0  !
224.0.0.2511:0:5e:0:0:fb  UHmLWI  00 en0
239.255.255.2501:0:5e:7f:ff:faUHmLWI  04 en0
255.255.255.255/32 link#9 UCS 00 en0  !

-- 
Andrew Udvare





Re: [gentoo-user] An odd blocker

2018-12-03 Thread Neil Bothwick
On Mon, 03 Dec 2018 09:58:05 +, Peter Humphrey wrote:

> [ebuild  N ] dev-util/glib-utils-2.56.2::gentoo
> PYTHON_SINGLE_TARGET="python3_6 -python3_5 (-python3_7)"
> PYTHON_TARGETS="python3_6 -python3_5 (-python3_7)" 7,854 KiB
> [ebuild U  ] dev-libs/glib-2.56.2:2::gentoo [2.52.3:2::gentoo]
> USE="mime xattr -dbus -debug (-fam) (-selinux) -static-libs -systemtap
> -test -utils" PYTHON_TARGETS="(-python2_7%*)" 0 KiB [blocks b  ]
>  dev-util/glib-utils-2.56.2)   
>   
> 
> All appears to have gone smoothly, but I wonder why upgrading glib
> pulls in a new glib-utils, then portage says one is blocking the other.
> I know it's not a hard block, but still...

Just a wild guess, the utils were previously installed with glib but are
now a separate package.


-- 
Neil Bothwick

Top Oxymorons Number 44: Advanced BASIC


pgpqwrK0lCIyK.pgp
Description: OpenPGP digital signature


[gentoo-user] An odd blocker

2018-12-03 Thread Peter Humphrey
Hello list,

I came across this today on my little Atom box:

[ebuild  N ] dev-util/glib-utils-2.56.2::gentoo  
PYTHON_SINGLE_TARGET="python3_6 -python3_5 (-python3_7)" 
PYTHON_TARGETS="python3_6 -python3_5 (-python3_7)" 7,854 KiB
[ebuild U  ] dev-libs/glib-2.56.2:2::gentoo [2.52.3:2::gentoo] USE="mime 
xattr -dbus -debug (-fam) (-selinux) -static-libs -systemtap -test -utils" 
PYTHON_TARGETS="(-python2_7%*)" 0 KiB
[blocks b  ] 

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

2018-12-03 Thread Peter Humphrey
On Sunday, 2 December 2018 04:21:19 GMT Daniel Frey wrote:
> I've been trying to clean up my machines (pruning world file, etc) and
> am making progress.
> 
> I ran into one issue, that being on my server (mythtv, file, etc) I am
> normally in text/ssh mode but occasionally I need X for something.
> 
> Does anyone have suggestions for a small-footprint window manager (I
> have no need for a full desktop environment) as twm is just fugly and
> sometimes not intuitive. I also don't need a file manager as I use
> Midnight Commander which works well for my needs. This all stems from
> occasionally needing a gui for configuring mythtv or the ability to have
> two shells open side by side.
> 
> I am thinking others have most likely had this problem at some point and
> have found something that's lightweight for this type of purpose.

I've just noticed this:

[N] x11-wm/xpra ((~)2.2.6-r1): X Persistent Remote Apps (xpra) and 
Partitioning WM (parti) based on wimpiggy

I haven't looked into it, but it may perhaps offer something useful.

-- 
Regards,
Peter.






Re: [gentoo-user] Program for posting to a Newsgroup

2018-12-03 Thread Thomas Mueller


Daniel Frey wrote:
> I've been trying to clean up my machines (pruning world file, etc) and
> am making progress.
   
> I ran into one issue, that being on my server (mythtv, file, etc) I am
> normally in text/ssh mode but occasionally I need X for something.
   
> Does anyone have suggestions for a small-footprint window manager (I
> have no need for a full desktop environment) as twm is just fugly and
> sometimes not intuitive. I also don't need a file manager as I use
> Midnight Commander which works well for my needs. This all stems from
> occasionally needing a gui for configuring mythtv or the ability to
> have two shells open side by side.
   
> I am thinking others have most likely had this problem at some point
> and have found something that's lightweight for this type of purpose.
   
> Dan   

I use icewm 1.3.8, now feel stuck in a rut because I want to also try jwm, 
ratpoison and i3, and upgrade where possible to icewm 1.4.x .

I see also the suggestion 

 $ ssh -Y 

but what would be the syntax for specifying  where  is a 
different computer on the same local network?

Tom