Re: [gentoo-user] OT awk question

2018-01-16 Thread Alexander Kapshuk
On Wed, Jan 17, 2018 at 3:49 AM, Adam Carter  wrote:
> I'm using this to grab a section of text across multiple lines, how do i get
> it to exit after the first match?
>
> awk '/foo/,/bar/'

See if this works for you:
awk '/foo/,/bar/{print;if(/bar/)exit}' file
sed '/foo/,/bar/!d;/bar/q' file



Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-16 Thread Alexander Ben Nasrallah
On Tue, Jan 16, 2018 at 10:51:40PM -0700, the...@sys-concept.com wrote:
> When I try to decrypt a file I get:
> 
> gpg2 text.asc
> ...
> gpg: public key decryption failed: No pinentry
> gpg: decryption failed: No secret key
> 
> app-crypt/pinentry-1.0.0-r2 is installed

Sometime you have to set one of the following.

# PIN entry program
pinentry-program /usr/bin/pinentry-curses # no X
pinentry-program /usr/bin/pinentry-qt
pinentry-program /usr/bin/pinentry-kwallet
pinentry-program /usr/bin/pinentry-gtk-2

to whatever suits you in ~/.gnupg/gpg-agent.conf.

Hope that helps.



[gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-16 Thread thelma
When I try to decrypt a file I get:

gpg2 text.asc
...
gpg: public key decryption failed: No pinentry
gpg: decryption failed: No secret key

app-crypt/pinentry-1.0.0-r2 is installed

I've tried to kill "gpg-agent" didn't help.

-- 
Joseph



[gentoo-user] Libreoffice-5.4.2.2 fails to start

2018-01-16 Thread thelma
When I try to start "libreoffice" it will not start, not even from
command line. No errors, nothing.

Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop,
gcc-6.4.0, glibc-2.25-r9, 4.9.72-gentoo x86_64)
=
System uname:
Linux-4.9.72-gentoo-x86_64-AMD_Ryzen_5_1400_Quad-Core_Processor-with-gentoo-2.4.1
KiB Mem:16432224 total,  14618724 free
KiB Swap: 524284 total,524284 free
Timestamp of repository gentoo: Mon, 15 Jan 2018 00:30:01 +
Head commit of repository gentoo: 2afd3441b99e18681bfeda82185e6abfe59182aa
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:  4.4_p12::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl:5.24.3::gentoo
dev-lang/python:  2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:   3.9.6::gentoo
dev-util/pkgconfig:   0.29.2::gentoo
sys-apps/baselayout:  2.4.1-r2::gentoo
sys-apps/openrc:  0.34.11::gentoo
sys-apps/sandbox: 2.10-r4::gentoo
sys-devel/autoconf:   2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:   1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:   2.29.1-r1::gentoo
sys-devel/gcc:5.4.0-r4::gentoo, 6.4.0-r1::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool:2.4.6-r3::gentoo
sys-devel/make:   4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:   2.25-r9::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:

brother-overlay
location: /var/lib/layman/brother-overlay
masters: gentoo
priority: 50

Local
location: /usr/local/portage
masters: gentoo
priority: 

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA googleearth PUEL dlj-1.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/fax
/usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa
/usr/share/gnupg/qualified.txt /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/
/etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d
/etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d
/etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write=y --keep-going --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect
config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync
multilib-strict news parallel-fetch preserve-libs protect-owned sandbox
sfperms strict unknown-features-warn unmerge-logs unmerge-orphans
userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
http://gentoo.osuosl.org/
ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/
http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/;
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j7 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--omit-dir-times --compress --force --whole-file --delete --stats
--human-readable --timeout=180 --exclude=/distfiles --exclude=/local
--exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acpi alsa amd64 apache2 bluetooth branding bzip2 cairo
cdda cdr cgi cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss
encode exif fam firefox flac foomaticdb fortran gdbm gif gimp gimpprint
glamor gnome gpm gtk iconv ipv6 jpeg kpathsea lcms ldap libnotify mad
mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl ogg opengl
openmp pam pango pcre pdf png policykit ppds qt3support qt5 qtk readline
scanner sdl seccomp spell ssl startup-notification svg tcpd tetex tiff
truetype type1 udev udisks unicode upower usb vorbis wxwidgets x264
xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000
atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938
es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio
via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core
socache_shmcb unixd actions alias auth_basic authn_alias authn_anon
authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
file_cache filter headers include info log_config logio 

[gentoo-user] Re: OT awk question

2018-01-16 Thread Ian Zimmerman
On 2018-01-17 12:49, Adam Carter wrote:

> I'm using this to grab a section of text across multiple lines, how do
> i get it to exit after the first match?
> 
> awk '/foo/,/bar/'

I don't think I ever tried to match multiple line range.  I would do it
like this:

/foo/ { selecting = 1; }

( selecting == 1 ) { print $0; }

/bar/ { if (selecting) exit 0; }

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet, fetch the TXT record for the domain.



[gentoo-user] OT awk question

2018-01-16 Thread Adam Carter
I'm using this to grab a section of text across multiple lines, how do i
get it to exit after the first match?

awk '/foo/,/bar/'


Re: [gentoo-user] Replex replacement

2018-01-16 Thread Neil Bothwick
On Tue, 16 Jan 2018 05:34:33 +0100, tu...@posteo.de wrote:

> is there any replacement available for
> solfire:/root>eix replex  
> 
> media-video/replex
>  Available versions:  [M]0.1.4 [M](~)0.1.6.8
>  Installed versions:  0.1.6.8(08:48:31 PM 12/04/2017)
>  Homepage:http://www.metzlerbros.org/dvb/
>  Description: REPLEX remuxes MPEG-2 transport streams into
> program streams

Is this command line or GUI (the web page is dead)? For a GUI, try
avidemux, for command line ffmpeg will do it.


-- 
Neil Bothwick

Growing old is mandatory; growing up is optional!!


pgp0H5R5dsXIH.pgp
Description: OpenPGP digital signature