Re: [gentoo-user] Backup program that compresses data but only changes new files.

2022-08-15 Thread Gerrit Kühn
Am Mon, 15 Aug 2022 12:43:19 +0100
schrieb Michael :

> Even if compression delivers some small space saving, given Dale's new
> faster Internet link and local video storage tendencies, compression
> will only kick the can down the road.  If these are not private or rare
> videos and remain available on public streaming platforms, perhaps local
> storage is no longer necessary?

Compression for pre-compressed video data certainly does not achieve much
improvement. I just wanted to point out that restic meanwhile supports it
(as there might be other people reading this who are looking for backup
solutions in different situations).

Getting back to backing up publically available video data. I really can't
tell how much of a hassle it would be (in case of desaster) to get the data
back over the network, how long it would take, if that would be acceptable
etc. For distribution of content, e.g., netflix relies on big storage
boxes using zfs. This is quite reminiscent of the already suggested NAS
solution (and filesystems like zfs come with features like compression,
snapshots and incremental send/receive to faciliate backups).


cu
  Gerrit



Re: [gentoo-user] Backup program that compresses data but only changes new files.

2022-08-15 Thread Gerrit Kühn
Am Mon, 15 Aug 2022 12:50:37 +0200
schrieb Gerrit Kühn :

> Being a happy restic user myself, I'd like to mention that compression is
> available meanwhile
> (https://restic.readthedocs.io/en/latest/047_tuning_backup_parameters.html#compression).
> However, the feature is rather new, I did not use it so far.

https://forum.restic.net/t/compression-support-has-landed-in-master/4997

Just adding another link to the official announcement from earlier this
year.


cu
  Gerrit



Re: [gentoo-user] Backup program that compresses data but only changes new files.

2022-08-15 Thread Gerrit Kühn
Am Mon, 15 Aug 2022 03:02:19 -0400
schrieb John Covici :

> I have been using restic for a while, and although it does not do
> compression, there are a couple of nice things it does

Being a happy restic user myself, I'd like to mention that compression is
available meanwhile
(https://restic.readthedocs.io/en/latest/047_tuning_backup_parameters.html#compression).
However, the feature is rather new, I did not use it so far.


cu
  Gerrit



Re: [gentoo-user] OT: PCI SAS CARDS

2020-07-22 Thread Gerrit Kühn
Am Wed, 22 Jul 2020 11:01:47 +0200
schrieb "J. Roeleveld" :

> I would recommend upgrading to a more recent mainboard or just using
> SATA.

Yeah, sure, but the OP wrote:

"I suspect it's a silly question but I'd like to find one."


cu
  Gerrit



Re: [gentoo-user] OT: PCI SAS CARDS

2020-07-22 Thread Gerrit Kühn
Am Wed, 22 Jul 2020 10:43:39 +0200
schrieb Gerrit Kühn :

> > Are there any SAS drive controller cards that go in a PCI slot (Not PCI
> > express).  I suspect it's a silly question but I'd like to find one.  

> I don't know any.

Looking around, I just found two (old) PCI-X based models. If I remember
correctly, PCI-X cards should work in PCI slots (given there is enough
physical place to fit them).
ICP Vortex 9085LI, PCI-X (2216800-R)
LSI Logic SAS 3442X-R, SAS, PCI-X (LSI00164)

Don't know if you can still buy these anywhere (2nd hand maybe?). Be
warned that the LSI one has a Broadcom SAS1068E chipset which afaicr is
known to be limited to 2TB drives.


cu
  Gerrit



Re: [gentoo-user] OT: PCI SAS CARDS

2020-07-22 Thread Gerrit Kühn
Am Wed, 22 Jul 2020 10:13:22 +0200 (CEST)
schrieb mad.scientist.at.la...@tutanota.com:

> Are there any SAS drive controller cards that go in a PCI slot (Not PCI
> express).  I suspect it's a silly question but I'd like to find one.

I don't know any. But if you're /that/ desperate: there are adapters that
connect low-profile PCIe cards to PCI slots. The following is just an
example, there are certainly lots of manufacturers building stuff like
that:
https://www.startech.com/Cards-Adapters/Slot-Extension/PCI-to-PCI-Express-Adapter-Card~PCI1PEX1

Don't know if something like that would help you, though.


cu
  Gerrit



Re: [gentoo-user] Creating Blue-ray video discs

2020-05-29 Thread Gerrit Kühn
Am Fri, 29 May 2020 05:14:41 -0500
schrieb Dale :

> I think you are correct.  To create a DVD with videos to watch on a TV
> DVD player, I use Devede to create the image and then k3b to burn the
> image.  It seems I need some sort of tool, like devede does for DVDs, to
> create a image or whatever to burn to a blu-ray media.

Would this help?



cu
  Gerrit



[gentoo-user] ebuild with cmake, swig and python

2019-09-03 Thread Gerrit Kühn
Hi,

After searching the web without much success, maybe somebody in here can
direct me into the right direction:
I have a software that is providing swig bindings to (among other
languages) python, and I'd like to have an ebuild for that and get
binding for python2 and python3 at the same time. Building the thing works
fine for python2 and python3 on the commandline, but I cannot get my
ebuild to build for both python2 and python3 versions. It will build for
whatever is set as default python interpreter, but will not find the
libraries for the other one.

This is what the ebuild reports (with python3 being default):

-- +++ DEBUG +++ PYTHON_EXECUTABLE: /usr/bin/python
-- Found PythonInterp: /usr/bin/python (found version "3.6.9") 
-- Found PythonLibs: /usr/lib/libpython3.6m.so (found version "3.6.9") 
-- +++ DEBUG +++ PYTHON_EXECUTABLE: /usr/bin/python
-- +++ DEBUG +++ PYTHON_LIBRARIES: /usr/lib/libpython3.6m.so
-- +++ DEBUG +++ PYTHONLIBS_VERSION_STRING: 3.6.9
-- Found SWIG: /usr/bin/swig (found suitable version "3.0.12", minimum
required is "2.0.4") 
-- +++ DEBUG +++ ARG_INTERP: python2
-- +++ DEBUG +++ PYTHON_EXECUTABLE: /usr/bin/python2
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.15",
minimum required is "2") 
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES
PYTHON_INCLUDE_DIRS) (Required is at least version "2")
-- +++ DEBUG +++ PYTHON_EXECUTABLE: /usr/bin/python2
-- +++ DEBUG +++ PYTHON_LIBRARIES: PYTHON_LIBRARY-NOTFOUND
-- +++ DEBUG +++ PYTHONLIBS_VERSION_STRING: 
-- Checking for python 2.7.15 module: numpy ... yes
-- +++ DEBUG +++ ARG_PYTHON_EXECUTABLE: /usr/bin/python2


This is what I get on the commandline when building:

-- +++ DEBUG +++ PYTHON_EXECUTABLE: /usr/bin/python
-- Found PythonInterp: /usr/bin/python (found version "3.6.9") 
-- Found PythonLibs: /usr/lib/libpython3.6m.so (found version "3.6.9") 
-- +++ DEBUG +++ PYTHON_EXECUTABLE: /usr/bin/python
-- +++ DEBUG +++ PYTHON_LIBRARIES: /usr/lib/libpython3.6m.so
-- +++ DEBUG +++ PYTHONLIBS_VERSION_STRING: 3.6.9
-- Found SWIG: /usr/bin/swig (found suitable version "3.0.12", minimum
required is "2.0.4") 
-- +++ DEBUG +++ ARG_INTERP: /usr/bin/python2
-- +++ DEBUG +++ PYTHON_EXECUTABLE: /usr/bin/python2
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.15",
minimum required is "2") 
-- Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version
"2.7.15", minimum required is "2") 
-- +++ DEBUG +++ PYTHON_EXECUTABLE: /usr/bin/python2
-- +++ DEBUG +++ PYTHON_LIBRARIES: /usr/lib/libpython2.7.so
-- +++ DEBUG +++ PYTHONLIBS_VERSION_STRING: 2.7.15
-- Checking for python 2.7.15 module: numpy ... yes
-- +++ DEBUG +++ ARG_PYTHON_EXECUTABLE: /usr/bin/python2


The ebuild itself is quite straight-forward (I think), just using
cmake-utils to pass on USE flags to options (ENABLE_SWIG_PYTHON2 and
ENABLE_SWIG_PYTHON3 in this case). This part works as far as I can see. Is
there anything else to consider? Somehow the ebuild environment appears to
be different from what I have on the commandline so that the second python
version isn't properly found.


cu
  Gerrit



Re: [gentoo-user] Re: OT scripting - strip zero if between period and digit

2019-01-24 Thread Gerrit Kühn
On Wed, 23 Jan 2019 16:45:59 -0500 Michael Orlitzky  wrote
about Re: [gentoo-user] Re: OT scripting - strip zero if between period
and digit:

> > This is not a good application for a regex.

> Since that doesn't seem to be stopping anyone, here's my entry.

Since the only alternative to a regexp presented so far was using python
(which has been considered a bit heavy-weight), I'll suggest some hacky
shell code instead (here as a one-liner, would probably be nicer to do this
as a function):

---
[me@you ~]# ip=01.02.00.0004; for d in $(echo "${ip}"|tr '.' '\n');
do myip="${myip}"$(printf "%i" "${d}")"." ; done; echo ${myip%.}
1.2.0.4
---


HTH
Gerrit



Re: [gentoo-user] OT expect script question

2018-12-04 Thread Gerrit Kühn
On Wed, 5 Dec 2018 11:28:55 +1100 Adam Carter 
wrote about [gentoo-user] OT expect script question:

> expect {
> "string1" {   }
> "string2" {   }
> "*" {  }
> }

From


---
expect *
Here the * matches anything. This is like saying, ?I don?t care what?s in
the input. Throw it away.? This pattern always matches, even if nothing is
there. Remember that * matches anything, and the empty string is anything!
As a corollary of this behavior, this command always returns immediately.
It never waits for new data to arrive. It does not have to since it
matches everything.
---

Could it be that it just matches empty without waiting for anything?


cu
  Gerrit



Re: [gentoo-user] Re: Running 3rd party apps intended for Ubuntu/RedHat

2018-08-23 Thread Gerrit Kühn
On Wed, 22 Aug 2018 14:16:53 + (UTC) Grant Edwards
 wrote about [gentoo-user] Re: Running 3rd
party apps intended for Ubuntu/RedHat:

> That sounds expensive to me...

I cannot remember what price we paid back then. Both the price and your
available funds probably depend on if you're going to use it privately, for
business, in academics...


cu
  Gerrit



Re: [gentoo-user] Running 3rd party apps intended for Ubuntu/RedHat

2018-08-22 Thread Gerrit Kühn
On Tue, 21 Aug 2018 22:25:18 + (UTC) Grant Edwards
 wrote about [gentoo-user] Running 3rd party
apps intended for Ubuntu/RedHat:

> I've been thinking about trying to automate this by installing the app
> on an Ubuntu or RedHat system and then running a bash script that uses
> ldd et alia to find and bundle up the set of required library files.

Some years ago I used a tool called ermine for something similar. Looks
like it still exists (although I don't know if it will be of any use for
you today): 


cu
  Gerrit



Re: [gentoo-user] skip package

2018-05-02 Thread Gerrit Kühn
On Wed, 2 May 2018 18:40:08 +0800 Bill Kenworthy 
wrote about [gentoo-user] skip package:

Ho,

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

Sounds like you want to use the "--exclude" option?


cu
  Gerrit



Re: [gentoo-user] /var/tmp on tmpfs

2018-02-09 Thread Gerrit Kühn
On Fri, 9 Feb 2018 12:30:21 +0200 gevisz  wrote about
Re: [gentoo-user] /var/tmp on tmpfs:

> > Why mess around with another tmpfs? Just set PORTAGE_TMPDIR="/tmp" in
> > make.conf. Job done!
> 
> It is an interesting idea. But why it is not done by default then?
> 
> Can somebody think of a situation when it should not be done?

/var/tmp/portage may take up quite some space, and not everybody will want
to have that on a RAM-based fs.


cu
  Gerrit



[gentoo-user] kernel 3.2 conflicts with gcc-6.4

2018-02-08 Thread Gerrit Kühn
Hello,

I still have some systems around that need to run a vanilla kernel 3.2.
This works without any issues as long as I am using gcc-4.9.4 or gcc-5.4 to
compile the kernel. Using gcc-6.4 for compilation was not possible
out-of-the-box as it is defaulting to --enable-default-pie.
After reading https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841420 I
was able to get around this by adding -fno-pie to the build. However, when
trying to run this kernel, it does not output anything and just reboots my
system. Compiling the same source and setup (even including my additional
-fno-pie settings) with gcc-5.4 or gcc-4.9.4 results in a kernel that is
running fine, just with gcc-6.4 it appears to be broken.

Is there anyone around who successfully managed to get this to work (or
who has any other hints how to fix this)?
Now that Gentoo has deprecated 2013's profile, using gcc4 or gcc5 is not
really supported for anything, and I'd like to avoid having to compile
different parts of the system with different compilers.


cu
  Gerrit



Re: [gentoo-user] VNC setup guide for dummies?

2017-04-05 Thread Gerrit Kühn
On Wed, 05 Apr 2017 17:13:45 +0200 Helmut Jarausch 
wrote about [gentoo-user] VNC setup guide for dummies?:

Ho,

> Is there any configuration guide for dummies (like me).

Well, the obvious starting point probably is


Do you intend to have "virtual" VNC desktops, or do you want to be able to
use the "physical" display?
Arch also has a nice description of the differences and things to
configure: 


cu
  Gerrit



Re: [gentoo-user] cron tab

2017-03-22 Thread Gerrit Kühn
On Tue, 21 Mar 2017 21:13:09 -0600 the...@sys-concept.com wrote about Re:
[gentoo-user] cron tab:

> https://crontab.guru/#5_18_3_*_1-5
> 
> ?At 18:05 on day-of-month 3 and on every day-of-week from Monday through
> Friday.?
> 
> So it shouldn't run today!

But it should. It runs "at 18:05 on day-of-month 3 *and* on every
day-of-week from Monday through Friday". This is not a "logical" and, it
is a "lingual" one. "Today" is Tuesday in your case, which belongs into
"Monday through Friday".


cu
  Gerrit