[gentoo-user] vim colorschemes: A question regarding terminal capabilities

2017-04-09 Thread tuxic
I am playing around with colorschemes in vim and came across a problem: It 
seems impossible to change the fore-/background color of the cursor itself.
$TERM is xterm-256color and vim itself offers settings for the color of the 
cursor. Different colortests for terminals validate that the terminal is able 
to display 256 colors.

Is there something special terminal-wise when setting cursor colors ?
Why does it fail?

Thanks a lot in advance for any help!
Cheers 
Meino



Re: [gentoo-user] nxclient: cannot execute binary file: Exec format error

2017-04-09 Thread Daniel Frey

On 04/09/2017 05:45 PM, the...@sys-concept.com wrote:

On 04/09/2017 10:17 AM, Mick wrote:

On Sunday 09 Apr 2017 09:49:07 the...@sys-concept.com wrote:

I've installed: net-misc/nxclient-3.5.0.7 on x86 and it compiled without
errors, but when I try to run it I get an error:

nxclient
/usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: cannot execute binary file:
Exec format error /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: Success

In a remote location all my boxes are Gentoo except one Win10 (Home
Edition). I have a hard time connecting to it.
X2Go has only client for Win10 but in order for x2go to connect to Win10, it
would have to run X2Go-server isn't it?

Win10 has Remote Desktop for connecting to other computers, but you can't
remote desktop to Windows 10 Home itself. That requires Windows 10 Pro.

What are my alternatives?


Have you looked at tigervnc and friends?  There are also 3rd party services
like teamviewer, splashtop, et al. which I think are free for personal use -
*if* you can trust them.  I don't trust them, so I use VNC over SSH or VPN.


I've tried "tigernvc" and I get an error message:
"unable to connect to socket: Connection refused (10061)"

Win 7 firewall is OFF.
Configure this Window for networking is harder than Linux.

I've tried mount Win10 dir via Samba and I get:

mount -t cifs -o username=OP1,password=op1 //10.0.0.114/temp mnt/
mount: //10.0.0.114/temp is write-protected, mounting read-only
mount: cannot mount //10.0.0.114/temp read-only

The "temp" directory on Win10 is not read only.
I gave "everybody" full control




Look in the docs for tigervnc, you probably have to configure the 
tigervnc service. You are running the service, right?


For Windows sharing Google is your friend. These are common isses.

Dan



Re: [gentoo-user] nxclient: cannot execute binary file: Exec format error

2017-04-09 Thread thelma
On 04/09/2017 10:17 AM, Mick wrote:
> On Sunday 09 Apr 2017 09:49:07 the...@sys-concept.com wrote:
>> I've installed: net-misc/nxclient-3.5.0.7 on x86 and it compiled without
>> errors, but when I try to run it I get an error:
>>
>> nxclient
>> /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: cannot execute binary file:
>> Exec format error /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: Success
>>
>> In a remote location all my boxes are Gentoo except one Win10 (Home
>> Edition). I have a hard time connecting to it.
>> X2Go has only client for Win10 but in order for x2go to connect to Win10, it
>> would have to run X2Go-server isn't it?
>>
>> Win10 has Remote Desktop for connecting to other computers, but you can't
>> remote desktop to Windows 10 Home itself. That requires Windows 10 Pro.
>>
>> What are my alternatives?
> 
> Have you looked at tigervnc and friends?  There are also 3rd party services 
> like teamviewer, splashtop, et al. which I think are free for personal use - 
> *if* you can trust them.  I don't trust them, so I use VNC over SSH or VPN.

I've tried "tigernvc" and I get an error message:
"unable to connect to socket: Connection refused (10061)"

Win 7 firewall is OFF.
Configure this Window for networking is harder than Linux.

I've tried mount Win10 dir via Samba and I get:

mount -t cifs -o username=OP1,password=op1 //10.0.0.114/temp mnt/
mount: //10.0.0.114/temp is write-protected, mounting read-only
mount: cannot mount //10.0.0.114/temp read-only

The "temp" directory on Win10 is not read only.
I gave "everybody" full control




[gentoo-user] Re: Something eats my memory - please help

2017-04-09 Thread Kai Krakow
Am Sun, 9 Apr 2017 23:40:15 +0200
schrieb David Haller :

> Hello,
> 
> On Sun, 09 Apr 2017, Kai Krakow wrote:
> >Am Sun, 9 Apr 2017 19:09:23 +0200
> >schrieb David Haller :
> >  
> >> On Sun, 09 Apr 2017, Kai Krakow wrote:  
>  [...]  
> >> 
> >> Tell us, why exactly would one need upower again, anyway?  
> >
> >If you don't need it, don't use it. This was an example, not a call
> >to use it.
> >
> >It reports battery status of peripherals for me.  
> 
> Surely, there must be other apps to report this for you, besides a
> mem-hogging behemoth, that (I guess) actually does not much more than
> 'cat /sys/...something'! .5 Gig or even more?? You're kidding me,
> right? Riiigghtt? That's just plain insane! Stuff like that
> should run in a few KB. Or a few MB with a fancy GUI and DE
> integration.

It uses 1M of memory currently. The 512M limit I set is just a safety
boundary. I don't actually want to limit it, but when it goes havoc
it's as least limited.

> You could probably do that with a few lines of perl/python/ruby plus
> the toolkit of your choice (Tk, Gtk, Qt, Wx, Fltk, ...).

Yes, I could probably code everything myself in tiny little
scriptlets. But it's not worth the effort. This machine has 16G of
memory, it can run full-blown KDE, it uses 5G of memory after fully
booted (including two containers, mysql and elasticsearch, for devel
purposes), and that boots in 30s from a mixed bcache/btrfs file system.

> I e.g. wanted a minmal clock to have while playing movies fullscreen.

That's what I have a smartphone for. I don't sit in front of my PC to
watch full-screen movies (tho, the TV is connected to the machine).

> Result: ~21 lines of generously formatted perl using Tk and a
> bold-white-on-black (easily changeable) digital clock with a mere
> 38x20 pixels in the right-top-corner (easily changeable).

That's a nice solution if you have enough time and want to stay
minimal on system pressure. I just want to stay minimal on
distractions, so I don't have CPU meters and whatever always visible
on screen. I also don't need all those fancy live graphics of memory,
disk usage, CPU, load, whatever on the X root window. I never
understand what's the purpose of that is anyways because I have
multiple windows in front of it. Hence, I even have no icons on the
desktop, just some different background images to easily distinguish
between energy profiles: I'm using activities to switch between
"listen to music", "watch videos/play games", "development", and
"browse internet and other desktop activities". And I hardly use menus
to start programs: I use the krunner search and a fullscreen launcher
for my favorite apps. I really hate those deeply nested menu launchers,
I want flat easy structures, searchable. During development I almost
only use keyboard shortcuts.

> Haven't implemented the "Keep on top" stuff right though yet, but ISTR
> that should be possible too with perl/Tk. Or any of the above
> mentioned lang/toolkit combos. And the "on-top" stuff also depends on
> your WM in the details.

That should be pretty much standardized by now, probably you could just
call "xprop -set" from your scripts.

> And anyway: 'eix batt' spits out e.g. x11-misc/xbatt,
> x11-misc/xbattbar, x11-plugins/wmbatteries...

Plain old X programs with Tk or xwidgets are exactly not what I am
looking for. I seek a visually streamlined desktop, so I mostly
exclusively use Qt or KDE programs excepts there's no suitable
alternative. So, e.g. I still use gitk a lot although I found git-cola
appealing. Still I'm doing lot of git stuff directly on the console. I
use git-cola only for fast and easy hunk committing and visual browsing
of current workspace status.

> As I do just have a normal below-desk PC, I can't help with the
> /sys/*batt*? stuff, but if it breaks down to basically displaying the
> contents of some files under /sys/ then it's a piece of cake whupping
> up an UI displaying that as e.g percent or whatever.)

I have a normal below-desk PC, too, hidden inside the desk, and 6 or 7
years old [1]. But I use a wireless mouse and keyboard for working - I
don't want cables and lots of stuff visible on or under my desk. And I
want some battery warning/status for these devices, integrating with
what I run: KDE Plasma.

> Probably, I'd just have to change the "update" sub (1 line) of my
> clock to read that /sys/-file instead of the time and
> whoopididoooda ;)

You are free to put it on github or so, I'd even be curious looking at
it.

> A fancy graphic bar would be a bit more coding.

It's always nice when new features integrate easy as I can tell from my
own projects, tho I do ruby mostly.

> Oh, and have a look at gkrellm and its plugins. It might have all you
> want already and then some :)

No, I hate that. See above. Too overwhelmin, too distracting, and
either it steals screen real estate or isn't visible anyways and thus
no need to run it altogether. As I said, I never understood 

Re: [gentoo-user] Re: Something eats my memory - please help

2017-04-09 Thread David Haller
Hello,

On Sun, 09 Apr 2017, Kai Krakow wrote:
>Am Sun, 9 Apr 2017 19:09:23 +0200
>schrieb David Haller :
>
>> On Sun, 09 Apr 2017, Kai Krakow wrote:
>> >For me, it was a runaway upower process some months ago. I'm using
>> >systemd, so I fixed it easily with the following drop-in:  
>> 
>> Tell us, why exactly would one need upower again, anyway?
>
>If you don't need it, don't use it. This was an example, not a call to
>use it.
>
>It reports battery status of peripherals for me.

Surely, there must be other apps to report this for you, besides a
mem-hogging behemoth, that (I guess) actually does not much more than
'cat /sys/...something'! .5 Gig or even more?? You're kidding me,
right? Riiigghtt? That's just plain insane! Stuff like that
should run in a few KB. Or a few MB with a fancy GUI and DE integration.

You could probably do that with a few lines of perl/python/ruby plus
the toolkit of your choice (Tk, Gtk, Qt, Wx, Fltk, ...).

I e.g. wanted a minmal clock to have while playing movies fullscreen.
Result: ~21 lines of generously formatted perl using Tk and a
bold-white-on-black (easily changeable) digital clock with a mere
38x20 pixels in the right-top-corner (easily changeable).

Haven't implemented the "Keep on top" stuff right though yet, but ISTR
that should be possible too with perl/Tk. Or any of the above mentioned
lang/toolkit combos. And the "on-top" stuff also depends on your WM in
the details.

And anyway: 'eix batt' spits out e.g. x11-misc/xbatt, x11-misc/xbattbar,
x11-plugins/wmbatteries...

As I do just have a normal below-desk PC, I can't help with the
/sys/*batt*? stuff, but if it breaks down to basically displaying the
contents of some files under /sys/ then it's a piece of cake whupping
up an UI displaying that as e.g percent or whatever.)

Probably, I'd just have to change the "update" sub (1 line) of my
clock to read that /sys/-file instead of the time and whoopididoooda ;)

A fancy graphic bar would be a bit more coding.

Oh, and have a look at gkrellm and its plugins. It might have all you
want already and then some :)

Now, integration in the "big" DEs of KDE/Gnome3, you're screwed. 
Royally. But that comes with those DEs anyway. Like Gnome3 requiring
systemd (WTF?)...

But, you can still display stuff without "integration".

Myself, I found WindowMaker in ~200[01] and am happy as a bunny since
then, I think I had to change just one option _ONCE_ since then in my
config. One "forced" change in ~1[67] years? I'll call that ok! Sure,
there was new, optional stuff, but documented and often times even
appearing as e.g. a new checkbox in the WPrefs app. Compare _that_ to
KDE ... I switched to WMaker, avoiding KDE2.0! Never looked back.

-dnh

PS: yes, Windowmaker was and is what I was looking for, but KDE 1.1
served ok until then. And I did look at KDE2-5 and Gnome1-3 in
various version, no, not for me. *bleargh*

-- 
"Da fragen 'se Norbert Blüm, aber der fracht sich auch nur 'was bin ich?'"
   -- Georg Schramm im Scheibenwischer



[gentoo-user] Re: Something eats my memory - please help

2017-04-09 Thread Kai Krakow
Am Sun, 9 Apr 2017 19:09:23 +0200
schrieb David Haller :

> On Sun, 09 Apr 2017, Kai Krakow wrote:
> >For me, it was a runaway upower process some months ago. I'm using
> >systemd, so I fixed it easily with the following drop-in:  
> 
> Tell us, why exactly would one need upower again, anyway?

If you don't need it, don't use it. This was an example, not a call to
use it.

It reports battery status of peripherals for me.

-- 
Regards,
Kai

Replies to list-only preferred.




Re: [gentoo-user] Re: Something eats my memory - please help

2017-04-09 Thread David Haller
Hello,

On Sun, 09 Apr 2017, Kai Krakow wrote:
>For me, it was a runaway upower process some months ago. I'm using
>systemd, so I fixed it easily with the following drop-in:

Tell us, why exactly would one need upower again, anyway?

-dnh

-- 
Love your enemies: they'll go crazy trying to figure out what you're up
to. -- BSD fortune file



Re: [gentoo-user] nxclient: cannot execute binary file: Exec format error

2017-04-09 Thread thelma
On 04/09/2017 10:19 AM, Alexander Kapshuk wrote:
> On Sun, Apr 9, 2017 at 7:15 PM, Alexander Kapshuk
>  wrote:
>> On Sun, Apr 9, 2017 at 7:06 PM,   wrote:
>>> On 04/09/2017 09:55 AM, Alexander Kapshuk wrote:
 On Sun, Apr 9, 2017 at 6:49 PM,   wrote:
> I've installed: net-misc/nxclient-3.5.0.7 on x86 and it compiled without 
> errors, but when I try to run it I get an error:
>
> nxclient
> /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: cannot execute binary 
> file: Exec format error
> /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: Success
>
> In a remote location all my boxes are Gentoo except one Win10 (Home 
> Edition).
> I have a hard time connecting to it.
> X2Go has only client for Win10 but in order for x2go to connect to Win10, 
> it would have to run X2Go-server isn't it?
>
> Win10 has Remote Desktop for connecting to other computers, but you can't 
> remote desktop to Windows 10 Home itself. That requires Windows 10 Pro.
>
> What are my alternatives?
>
> --
> Thelma
>

 What's the output of 'readelf -h /path/to/nxclient'?


>>> readelf -h  /usr/NX/bin/nxclient
>>> ELF Header:
>>>   Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
>>>   Class: ELF64
>>>   Data:  2's complement, little endian
>>>   Version:   1 (current)
>>>   OS/ABI:UNIX - System V
>>>   ABI Version:   0
>>>   Type:  EXEC (Executable file)
>>>   Machine:   Advanced Micro Devices X86-64
>>>   Version:   0x1
>>>   Entry point address:   0x4207e0
>>>   Start of program headers:  64 (bytes into file)
>>>   Start of section headers:  6314232 (bytes into file)
>>>   Flags: 0x0
>>>   Size of this header:   64 (bytes)
>>>   Size of program headers:   56 (bytes)
>>>   Number of program headers: 8
>>>   Size of section headers:   64 (bytes)
>>>   Number of section headers: 29
>>>   Section header string table index: 28
>>>
>>> --
>>> Thelma
>>>
>>
>> OK. It's an x86-64 binary. That explains the error message you got
>> when attempting to run it on your x86 machine.
>> How did that happen, I wonder?
>>
>> Just to be 100% sure, can you please supply the output of the commands below?
>> uname -m
>> gcc -v 2>&1 | grep ^Target
>> emerge --info
> 
> 'net-misc/nxclient' doesn't seem to be in my portage tree?
> Is it supported by Gentoo devs at all?

Yes, it is an: i686 system
gcc -v 2>&1 | grep ^Target
Target: i686-pc-linux-gnu

Portage 2.3.3 (python 3.4.5-final-0, default/linux/x86/13.0/desktop, gcc-4.9.4, 
glibc-2.23-r3, 4.9.6-gentoo-r1 i686)
=
System uname: 
Linux-4.9.6-gentoo-r1-i686-VIA_Eden_Processor_1200MHz-with-gentoo-2.3
KiB Mem:  960444 total,228100 free
KiB Swap:1048572 total,988340 free
Timestamp of repository gentoo: Sun, 26 Feb 2017 22:00:01 +
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:  4.3_p48-r1::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl:5.22.3_rc4::gentoo
dev-lang/python:  2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:   3.7.2::gentoo
dev-util/pkgconfig:   0.28-r2::gentoo
sys-apps/baselayout:  2.3::gentoo
sys-apps/openrc:  0.23.2::gentoo
sys-apps/sandbox: 2.10-r3::gentoo
sys-devel/autoconf:   2.13::gentoo, 2.69::gentoo
sys-devel/automake:   1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:   2.25.1-r1::gentoo
sys-devel/gcc:4.9.4::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool:2.4.6-r3::gentoo
sys-devel/make:   4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:   2.23-r3::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://10.0.0.103/gentoo-portage
priority: -1000

x-portage
location: /usr/local/portage
masters: gentoo
priority: 0

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

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/share/easy-rsa 
/usr/share/gnupg/qualified.txt /usr/src/linux* /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/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="-O2 -march=i686 -pipe"

Re: [gentoo-user] nxclient: cannot execute binary file: Exec format error

2017-04-09 Thread Alexander Kapshuk
On Sun, Apr 9, 2017 at 7:15 PM, Alexander Kapshuk
 wrote:
> On Sun, Apr 9, 2017 at 7:06 PM,   wrote:
>> On 04/09/2017 09:55 AM, Alexander Kapshuk wrote:
>>> On Sun, Apr 9, 2017 at 6:49 PM,   wrote:
 I've installed: net-misc/nxclient-3.5.0.7 on x86 and it compiled without 
 errors, but when I try to run it I get an error:

 nxclient
 /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: cannot execute binary 
 file: Exec format error
 /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: Success

 In a remote location all my boxes are Gentoo except one Win10 (Home 
 Edition).
 I have a hard time connecting to it.
 X2Go has only client for Win10 but in order for x2go to connect to Win10, 
 it would have to run X2Go-server isn't it?

 Win10 has Remote Desktop for connecting to other computers, but you can't 
 remote desktop to Windows 10 Home itself. That requires Windows 10 Pro.

 What are my alternatives?

 --
 Thelma

>>>
>>> What's the output of 'readelf -h /path/to/nxclient'?
>>>
>>>
>> readelf -h  /usr/NX/bin/nxclient
>> ELF Header:
>>   Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
>>   Class: ELF64
>>   Data:  2's complement, little endian
>>   Version:   1 (current)
>>   OS/ABI:UNIX - System V
>>   ABI Version:   0
>>   Type:  EXEC (Executable file)
>>   Machine:   Advanced Micro Devices X86-64
>>   Version:   0x1
>>   Entry point address:   0x4207e0
>>   Start of program headers:  64 (bytes into file)
>>   Start of section headers:  6314232 (bytes into file)
>>   Flags: 0x0
>>   Size of this header:   64 (bytes)
>>   Size of program headers:   56 (bytes)
>>   Number of program headers: 8
>>   Size of section headers:   64 (bytes)
>>   Number of section headers: 29
>>   Section header string table index: 28
>>
>> --
>> Thelma
>>
>
> OK. It's an x86-64 binary. That explains the error message you got
> when attempting to run it on your x86 machine.
> How did that happen, I wonder?
>
> Just to be 100% sure, can you please supply the output of the commands below?
> uname -m
> gcc -v 2>&1 | grep ^Target
> emerge --info

'net-misc/nxclient' doesn't seem to be in my portage tree?
Is it supported by Gentoo devs at all?



Re: [gentoo-user] nxclient: cannot execute binary file: Exec format error

2017-04-09 Thread Mick
On Sunday 09 Apr 2017 09:49:07 the...@sys-concept.com wrote:
> I've installed: net-misc/nxclient-3.5.0.7 on x86 and it compiled without
> errors, but when I try to run it I get an error:
> 
> nxclient
> /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: cannot execute binary file:
> Exec format error /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: Success
> 
> In a remote location all my boxes are Gentoo except one Win10 (Home
> Edition). I have a hard time connecting to it.
> X2Go has only client for Win10 but in order for x2go to connect to Win10, it
> would have to run X2Go-server isn't it?
> 
> Win10 has Remote Desktop for connecting to other computers, but you can't
> remote desktop to Windows 10 Home itself. That requires Windows 10 Pro.
> 
> What are my alternatives?

Have you looked at tigervnc and friends?  There are also 3rd party services 
like teamviewer, splashtop, et al. which I think are free for personal use - 
*if* you can trust them.  I don't trust them, so I use VNC over SSH or VPN.
 
-- 
Regards,
Mick

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


Re: [gentoo-user] nxclient: cannot execute binary file: Exec format error

2017-04-09 Thread Alexander Kapshuk
On Sun, Apr 9, 2017 at 7:06 PM,   wrote:
> On 04/09/2017 09:55 AM, Alexander Kapshuk wrote:
>> On Sun, Apr 9, 2017 at 6:49 PM,   wrote:
>>> I've installed: net-misc/nxclient-3.5.0.7 on x86 and it compiled without 
>>> errors, but when I try to run it I get an error:
>>>
>>> nxclient
>>> /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: cannot execute binary 
>>> file: Exec format error
>>> /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: Success
>>>
>>> In a remote location all my boxes are Gentoo except one Win10 (Home 
>>> Edition).
>>> I have a hard time connecting to it.
>>> X2Go has only client for Win10 but in order for x2go to connect to Win10, 
>>> it would have to run X2Go-server isn't it?
>>>
>>> Win10 has Remote Desktop for connecting to other computers, but you can't 
>>> remote desktop to Windows 10 Home itself. That requires Windows 10 Pro.
>>>
>>> What are my alternatives?
>>>
>>> --
>>> Thelma
>>>
>>
>> What's the output of 'readelf -h /path/to/nxclient'?
>>
>>
> readelf -h  /usr/NX/bin/nxclient
> ELF Header:
>   Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
>   Class: ELF64
>   Data:  2's complement, little endian
>   Version:   1 (current)
>   OS/ABI:UNIX - System V
>   ABI Version:   0
>   Type:  EXEC (Executable file)
>   Machine:   Advanced Micro Devices X86-64
>   Version:   0x1
>   Entry point address:   0x4207e0
>   Start of program headers:  64 (bytes into file)
>   Start of section headers:  6314232 (bytes into file)
>   Flags: 0x0
>   Size of this header:   64 (bytes)
>   Size of program headers:   56 (bytes)
>   Number of program headers: 8
>   Size of section headers:   64 (bytes)
>   Number of section headers: 29
>   Section header string table index: 28
>
> --
> Thelma
>

OK. It's an x86-64 binary. That explains the error message you got
when attempting to run it on your x86 machine.
How did that happen, I wonder?

Just to be 100% sure, can you please supply the output of the commands below?
uname -m
gcc -v 2>&1 | grep ^Target
emerge --info



Re: [gentoo-user] nxclient: cannot execute binary file: Exec format error

2017-04-09 Thread thelma
On 04/09/2017 09:55 AM, Alexander Kapshuk wrote:
> On Sun, Apr 9, 2017 at 6:49 PM,   wrote:
>> I've installed: net-misc/nxclient-3.5.0.7 on x86 and it compiled without 
>> errors, but when I try to run it I get an error:
>>
>> nxclient
>> /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: cannot execute binary file: 
>> Exec format error
>> /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: Success
>>
>> In a remote location all my boxes are Gentoo except one Win10 (Home Edition).
>> I have a hard time connecting to it.
>> X2Go has only client for Win10 but in order for x2go to connect to Win10, it 
>> would have to run X2Go-server isn't it?
>>
>> Win10 has Remote Desktop for connecting to other computers, but you can't 
>> remote desktop to Windows 10 Home itself. That requires Windows 10 Pro.
>>
>> What are my alternatives?
>>
>> --
>> Thelma
>>
> 
> What's the output of 'readelf -h /path/to/nxclient'?
> 
> 
readelf -h  /usr/NX/bin/nxclient
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 
  Class: ELF64
  Data:  2's complement, little endian
  Version:   1 (current)
  OS/ABI:UNIX - System V
  ABI Version:   0
  Type:  EXEC (Executable file)
  Machine:   Advanced Micro Devices X86-64
  Version:   0x1
  Entry point address:   0x4207e0
  Start of program headers:  64 (bytes into file)
  Start of section headers:  6314232 (bytes into file)
  Flags: 0x0
  Size of this header:   64 (bytes)
  Size of program headers:   56 (bytes)
  Number of program headers: 8
  Size of section headers:   64 (bytes)
  Number of section headers: 29
  Section header string table index: 28

--
Thelma



Re: [gentoo-user] nxclient: cannot execute binary file: Exec format error

2017-04-09 Thread Alexander Kapshuk
On Sun, Apr 9, 2017 at 6:49 PM,   wrote:
> I've installed: net-misc/nxclient-3.5.0.7 on x86 and it compiled without 
> errors, but when I try to run it I get an error:
>
> nxclient
> /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: cannot execute binary file: 
> Exec format error
> /usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: Success
>
> In a remote location all my boxes are Gentoo except one Win10 (Home Edition).
> I have a hard time connecting to it.
> X2Go has only client for Win10 but in order for x2go to connect to Win10, it 
> would have to run X2Go-server isn't it?
>
> Win10 has Remote Desktop for connecting to other computers, but you can't 
> remote desktop to Windows 10 Home itself. That requires Windows 10 Pro.
>
> What are my alternatives?
>
> --
> Thelma
>

What's the output of 'readelf -h /path/to/nxclient'?



[gentoo-user] nxclient: cannot execute binary file: Exec format error

2017-04-09 Thread thelma
I've installed: net-misc/nxclient-3.5.0.7 on x86 and it compiled without 
errors, but when I try to run it I get an error:

nxclient 
/usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: cannot execute binary file: 
Exec format error
/usr/bin/nxclient: line 8: /usr/NX/bin/nxclient: Success

In a remote location all my boxes are Gentoo except one Win10 (Home Edition). 
I have a hard time connecting to it. 
X2Go has only client for Win10 but in order for x2go to connect to Win10, it 
would have to run X2Go-server isn't it?

Win10 has Remote Desktop for connecting to other computers, but you can't 
remote desktop to Windows 10 Home itself. That requires Windows 10 Pro. 

What are my alternatives? 

-- 
Thelma



[gentoo-user] crossdev and "masked by corruption"

2017-04-09 Thread Bill Kenworthy

Hi all,
	I have a gentoo based amd64 qemu VM I use for development which uses 
crossdev for building avr and arm toolchains inside the VM.


Foe a couple of months I have been getting "masked by corruption" errors 
when trying o build anything with crossdev (setting up a new VM).  I 
have checked all layout.conf files and confirmed they are set to 
thin-manifests=true and have tried passing --digest to emerge through 
crossdev (this worked at one point, but no longer).


What else can I do or is it bug time?

BillK



Re: [gentoo-user] bitcoin-qt, openssl and the bindist USE flag

2017-04-09 Thread Francesco Turco

On Saturday, 8 April 2017 20.16.02 CEST, Francesco Turco wrote:
The point is I can't find any reference to the bindist USE flag 
in the bitcoin-qt ebuild:


$ grep bindist $(equery which bitcoin-qt)
$ # returns nothing


I found out that it's probably due to the OPENSSL_DEPEND variable in 
/var/portage/repos/gentoo/eclass/bitcoincore.eclass:


OPENSSL_DEPEND="!libressl? ( dev-libs/openssl:0[-bindist] ) libressl? ( 
dev-libs/libressl )"


So I could fix the problem by switching to libressl instead of openssl. I 
already tried that in the past but I had some problems. I may try again in 
the future.


--
https://www.fturco.net/



Re: [gentoo-user] bitcoin-qt, openssl and the bindist USE flag

2017-04-09 Thread Francesco Turco

On Saturday, 8 April 2017 23.57.09 CEST, Alan McKinnon wrote:

Why on $DEITY's green earth would you even think of doing that?

Dont. Just ... don't. I don;t know what you are trying to accomplish
doing that, but it can't end well.


I'm not quite sure, but as far as I know (binary) packages with the 
-bindist USE flag cannot be freely distributed because of licensing issues 
or patents. Since I prefer for my system to be as free as possible (as in 
freedom) I thought I could achieve that by enabling +bindist globally. Am I 
wrong perhaps?


--
https://www.fturco.net/



Re: [gentoo-user] bitcoin-qt, openssl and the bindist USE flag

2017-04-09 Thread Francesco Turco

On Saturday, 8 April 2017 21.15.05 CEST, Mick wrote:
Did you try setting USE="-bindist" and then emerging the three packages 
suggested by portage above?


net-misc/openssh
dev-qt/qtnetwork
dev-libs/openssl


Thanks for the suggestion. I chose to enable +bindist globally in make.conf 
but add the following exceptions in package.use:


dev-libs/openssl -bindist
net-misc/openssh -bindist
dev-qt/qtnetwork -bindist

--
https://www.fturco.net/