Re: [gentoo-user] Re: bloated by gcc
On Monday, September 29, 2014 12:37:37 AM Jorge Almeida wrote: On Sun, Sep 28, 2014 at 10:56 PM, walt w41...@gmail.com wrote: On 09/28/2014 01:44 AM, Jorge Almeida wrote: I'm having a somewhat disgusting issue on my Gentoo: binaries are unaccountably large. Are you cross-compiling for different hardware? I'm just curious what results you get with --march=native. Nope. Actually, I compiled with --march=native, with no difference (probably because my code is not fancy enough to make use of whatever stuff that pulls), but then tried i686 just to enable comparing with non-Gentoo systems. The purpose is to have small static binaries compiled against dietlibc to be used in the same computer (compile once and forget about future software incompatibilities!). I compiled against glibc to make sure the problem is not with dietlibc. Did you compile the used libraries using the exact same options on both systems as well? When compiling a static binary, the libraries are included into the resulting binary. If the libraries on Gentoo are bigger, the resulting static binary will also be bigger. -- Joost
Re: [gentoo-user] phpmyadmin - upgrading
On Saturday, September 27, 2014 11:03:48 AM Joseph wrote: After upgrade of phpmyadmin, I think it was installed correctly: This is an upgrade phpmyadmin-4.1.7 is already installed - upgrading Running /usr/sbin/webapp-config -U -h localhost -u root -d /phpmyadmin phpmyadmin 4.1.14.3 INFO: postinst Running /usr/sbin/webapp-cleaner -p -C /phpmyadmin But after re-login I get a message: $cfg['Servers'][$i]['users'] ... not OK [ Documentation ] $cfg['Servers'][$i]['usergroups'] ... not OK [ Documentation ] Configurable menus: Disabled I've appended the missing section in config.inc.php /* configuration storage */ ... $cfg['Servers'][$i]['users'] = 'pma__users'; $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; ? Am I missing any tables? Maybe. If you expect help, please be more verbose with the supplied information. A good place to start: 1) What did you actually do 2) What are you trying to achieve 3) What messages did you get 4) What have you done to try and solve the issue -- Joost
Re: [gentoo-user] Re: bloated by gcc
On Tue, Sep 30, 2014 at 8:04 AM, J. Roeleveld jo...@antarean.org wrote: Did you compile the used libraries using the exact same options on both systems as well? When compiling a static binary, the libraries are included into the resulting binary. If the libraries on Gentoo are bigger, the resulting static binary will also be bigger. Yes, the library (dietlibc) is compiled typing just make. The Makefile is not modified. I rebuild it with gcc 4.9.1. There are no other libraries involved. When using glibc I didn't made a static binary, and even so it was larger on Gentoo. Thanks Jorge
Re: [gentoo-user] Running a program on a headless computer ?
Neil Bothwick n...@digimed.co.uk [14-09-28 20:44]: On Sun, 28 Sep 2014 16:13:51 +0200, meino.cra...@gmx.de wrote: I want to run programs, which insist on haveing a terminal to write their status to and which are writing files which their results on a headless computer (beaglebone). I tried things like my_program -o file.txt -parameter value /dev/null 21 but this results in a idle copy of this process and a defunct child. nohup may do what you want. Or you can do it with at, if atd is running echo my_program -o file.txt -parameter value | at now -- Neil Bothwick A wok is what you throw at a wabbit. Hi all, first of all: Thanks a lot for all offered help and the various suggested method to acchieve what I wanted... :) Since the device I use is an embedded system (Beaglebone black) memory consumption of the software is more important as it is on a fully blown PC... The 'nohup' method works for me like a charm! And it is straight forward and uses less memory. Best regards, mcc
Re: [gentoo-user] I'm trying to emerge polkit, now it wants to bring in all of KDE
On Monday 29 September 2014 20:23:49 Neil Bothwick wrote: Alternatively, switch to a standard desktop profile, get X working, then switch profiles and emerge your KDE packages. Or, even, don't switch profiles. I have this: $ eselect profile list Available profile symlink targets: [1] default/linux/amd64/13.0 * [2] default/linux/amd64/13.0/selinux [3] default/linux/amd64/13.0/desktop [4] default/linux/amd64/13.0/desktop/gnome [5] default/linux/amd64/13.0/desktop/gnome/systemd [6] default/linux/amd64/13.0/desktop/kde [7] default/linux/amd64/13.0/desktop/kde/systemd [...] I don't use the kde profile because it pulls in a lot of stuff I don't need. Also, this way I kid myself I know more about how my system is put together, as I have quite a few entries in package.use. :) -- Regards Peter
[gentoo-user] another headless device-question: In search of the LAN
Hi, For a device (beaglebone black) I am looking for a solution of the following problem: This little computer boots a fully blown Gentoo linux. It is used mostly as headless device (capturing data from attached sensors). From time to time I want access it via LAN. If the device was booted without LAN attached, the configured ethernet was not found and dhcpd fails. So Gentoo goes into no LAN-mode (or something like that). Is there a less waiting for the timeout-prone way to refresh the status of the LAN beside putting the accoring init-script into a cron job ??? Is there a way to check, whether a RJ45 was plugged into the device and if so to start init-script then? Thank you very much in advance for any help! Best regards, mcc
Re: [gentoo-user] another headless device-question: In search of the LAN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 30/09/14 20:12, meino.cra...@gmx.de wrote: Is there a way to check, whether a RJ45 was plugged into the device and if so to start init-script then? You could use a network management daemon that works on device status such as net-misc/networkmanager (replacing the dhcpcd service but still making use of the dhcpcd (or, if preferred, dhclient) utility). - -- wraeth Key: 0xB2D9F759 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iF4EAREIAAYFAlQqg4cACgkQXcRKerLZ91lR1QD/QRzj0cc8To2BVRQQr6uFny2a maQkQwy14zwmqV0qFecA/07H01ZAIbOswnX3HMF3SVDcqcxW9K7UxtPKvUSxXDVN =CMvs -END PGP SIGNATURE-
Re: [gentoo-user] another headless device-question: In search of the LAN
On Tuesday 30 Sep 2014 11:12:34 meino.cra...@gmx.de wrote: Hi, For a device (beaglebone black) I am looking for a solution of the following problem: This little computer boots a fully blown Gentoo linux. It is used mostly as headless device (capturing data from attached sensors). From time to time I want access it via LAN. If the device was booted without LAN attached, the configured ethernet was not found and dhcpd fails. So Gentoo goes into no LAN-mode (or something like that). Is there a less waiting for the timeout-prone way to refresh the status of the LAN beside putting the accoring init-script into a cron job ??? Is there a way to check, whether a RJ45 was plugged into the device and if so to start init-script then? Thank you very much in advance for any help! Best regards, mcc Typically used on laptops: [I] sys-apps/ifplugd Available versions: 0.28-r9 [doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage:http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] another headless device-question: In search of the LAN
On 30/09/14 11:21, Mick wrote: On Tuesday 30 Sep 2014 11:12:34 meino.cra...@gmx.de wrote: Thank you very much in advance for any help! Best regards, mcc Typically used on laptops: [I] sys-apps/ifplugd Available versions: 0.28-r9 [doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage:http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection and another alternative would be sys-apps/netplug
Re: [gentoo-user] another headless device-question: In search of the LAN
thegeezer thegee...@thegeezer.net [14-09-30 12:32]: On 30/09/14 11:21, Mick wrote: On Tuesday 30 Sep 2014 11:12:34 meino.cra...@gmx.de wrote: Thank you very much in advance for any help! Best regards, mcc Typically used on laptops: [I] sys-apps/ifplugd Available versions: 0.28-r9 [doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage:http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection and another alternative would be sys-apps/netplug WHOW! That all sounds much more easier than I have dreamt of! I did not thought, that such software exists already -- and therefore did not search for it... Great! Thanks a lot -- helps a lot here! Best regards, mcc
Re: [gentoo-user] another headless device-question: In search of the LAN
On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote: [I] sys-apps/ifplugd Available versions: 0.28-r9 [doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage: http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection and another alternative would be sys-apps/netplug WHOW! That all sounds much more easier than I have dreamt of! I did not thought, that such software exists already -- and therefore did not search for it... If you use openrc, you only need to install one of these programs, not configure or set it to run. OpenRC detects that one of these programs is available and uses it to do exactly what you need. -- Neil Bothwick We are upping our standards - so up yours. signature.asc Description: PGP signature
Re: [gentoo-user] another headless device-question: In search of the LAN
Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]: On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote: [I] sys-apps/ifplugd Available versions: 0.28-r9 [doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage: http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection and another alternative would be sys-apps/netplug WHOW! That all sounds much more easier than I have dreamt of! I did not thought, that such software exists already -- and therefore did not search for it... If you use openrc, you only need to install one of these programs, not configure or set it to run. OpenRC detects that one of these programs is available and uses it to do exactly what you need. -- Neil Bothwick We are upping our standards - so up yours. Hi Neil, ...and there are people out there, which flee with lightspeed in fear of complexity in that moment I will spell c-o-m-m-a-n-d-l-i-n-e grin Thanks a lot! Currently emerge is running... :) Best regards, mcc
Re: [gentoo-user] another headless device-question: In search of the LAN
Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]: On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote: [I] sys-apps/ifplugd Available versions: 0.28-r9 [doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage: http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection and another alternative would be sys-apps/netplug WHOW! That all sounds much more easier than I have dreamt of! I did not thought, that such software exists already -- and therefore did not search for it... If you use openrc, you only need to install one of these programs, not configure or set it to run. OpenRC detects that one of these programs is available and uses it to do exactly what you need. -- Neil Bothwick We are upping our standards - so up yours. ...ok, it works! ...nearly... ;) Unfortunately, ntp-client is configured via rc-update (added to default) but after plugging in LAN the interface eth0 comes up and I have access via ssh...but the date is set to the beginnig of the UNIX epoch. I have to call ntp-client by hand.
Re: [gentoo-user] another headless device-question: In search of the LAN
On Tue, 30 Sep 2014 13:49:44 +0200, meino.cra...@gmx.de wrote: If you use openrc, you only need to install one of these programs, not configure or set it to run. OpenRC detects that one of these programs is available and uses it to do exactly what you need. Unfortunately, ntp-client is configured via rc-update (added to default) but after plugging in LAN the interface eth0 comes up and I have access via ssh...but the date is set to the beginnig of the UNIX epoch. I have to call ntp-client by hand. You could call it from postup() in /etc/conf.d/net. See net.example for details. -- Neil Bothwick To be intoxicated is to feel sophisticated but not be able to say it. signature.asc Description: PGP signature
Re: [gentoo-user] another headless device-question: In search of the LAN
On Tuesday 30 Sep 2014 12:49:44 meino.cra...@gmx.de wrote: Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]: On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote: [I] sys-apps/ifplugd Available versions: 0.28-r9 [doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage: http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection and another alternative would be sys-apps/netplug WHOW! That all sounds much more easier than I have dreamt of! I did not thought, that such software exists already -- and therefore did not search for it... If you use openrc, you only need to install one of these programs, not configure or set it to run. OpenRC detects that one of these programs is available and uses it to do exactly what you need. ...ok, it works! ...nearly... ;) Unfortunately, ntp-client is configured via rc-update (added to default) but after plugging in LAN the interface eth0 comes up and I have access via ssh...but the date is set to the beginnig of the UNIX epoch. I have to call ntp-client by hand. Or instead use chrony? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] another headless device-question: In search of the LAN
On Tuesday 30 Sep 2014 13:09:55 Neil Bothwick wrote: On Tue, 30 Sep 2014 13:49:44 +0200, meino.cra...@gmx.de wrote: If you use openrc, you only need to install one of these programs, not configure or set it to run. OpenRC detects that one of these programs is available and uses it to do exactly what you need. Unfortunately, ntp-client is configured via rc-update (added to default) but after plugging in LAN the interface eth0 comes up and I have access via ssh...but the date is set to the beginnig of the UNIX epoch. I have to call ntp-client by hand. You could call it from postup() in /etc/conf.d/net. See net.example for details. Do you know of any difference between netplug and ifplug? Pros Cons kind of thing, or are they identical in their operation? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] Re: another headless device-question: In search of the LAN
meino.cramer at gmx.de writes: Unfortunately, ntp-client is configured via rc-update (added to default) but after plugging in LAN the interface eth0 comes up and I have access via ssh...but the date is set to the beginnig of the UNIX epoch. I have to call ntp-client by hand. Meino, Make sure your system time (hwclock) is properly set upon bootup. Since you are running on an embedded hardware board, I'd look at those docs and find a forum as to the specifics of how the hardware clock is set and maintained on the board. Once you get it close, then ntp should be configuration. man hwclock hth, James
Re: [gentoo-user] Re: another headless device-question: In search of the LAN
James wirel...@tampabay.rr.com [14-09-30 14:24]: meino.cramer at gmx.de writes: Unfortunately, ntp-client is configured via rc-update (added to default) but after plugging in LAN the interface eth0 comes up and I have access via ssh...but the date is set to the beginnig of the UNIX epoch. I have to call ntp-client by hand. Meino, Make sure your system time (hwclock) is properly set upon bootup. Since you are running on an embedded hardware board, I'd look at those docs and find a forum as to the specifics of how the hardware clock is set and maintained on the board. Once you get it close, then ntp should be configuration. man hwclock hth, James Hi James, ...the system has no built-in RTC which still runs if the system is powered off. After power is up and eth0 is alive, the time/date has to be set via ntp-client. The rest already working. I called /etc/init.d/ntp-client start after booting the little beast and plugging in the RJ45 and everything else was fine. Currently I am experimenting with chrony (emerging). Will see, if this will make a difference ;) Best mcc
Re: [gentoo-user] another headless device-question: In search of the LAN
On Tue, 30 Sep 2014 13:16:48 +0100, Mick wrote: Do you know of any difference between netplug and ifplug? Pros Cons kind of thing, or are they identical in their operation? I installed ifplugd and it just worked, so I've never tried netplug. But openrc does the work now, it just uses those programs to tell when the link is available. -- Neil Bothwick When companies ship Styrofoam, what do they pack it in? signature.asc Description: PGP signature
Re: [gentoo-user] Re: another headless device-question: In search of the LAN
On Tue, 30 Sep 2014 14:34:28 +0200, meino.cra...@gmx.de wrote: ...the system has no built-in RTC which still runs if the system is powered off. After power is up and eth0 is alive, the time/date has to be set via ntp-client. The rest already working. I called /etc/init.d/ntp-client start after booting the little beast and plugging in the RJ45 and everything else was fine. Currently I am experimenting with chrony (emerging). Will see, if this will make a difference ;) Disclaimer: I've never used chrony. The trouble with any program that polls regularly, as I assume chrony does, is that you have a window between the interface coming up and the clock being set. It makes more sense to me to use postup() to set the clock as soon as the interface comes up, whether you call ntp-client or chrony to do this. -- Neil Bothwick The trouble with life is that you are halfway through it before you realize it's a do it yourself thing. signature.asc Description: PGP signature
Re: [gentoo-user] Re: another headless device-question: In search of the LAN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 30/09/14 22:37, Neil Bothwick wrote: The trouble with any program that polls regularly, as I assume chrony does, is that you have a window between the interface coming up and the clock being set. It makes more sense to me to use postup() to set the clock as soon as the interface comes up, whether you call ntp-client or chrony to do this. FWIW, there's a dispatcher script you can use (at least with NM) that calls chrony and sets it to online mode. - -- wraeth Key: 0xB2D9F759 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iF4EAREIAAYFAlQqpHoACgkQXcRKerLZ91mtfwD+K+vrlYbxGx0Zpi0LgOW6aBxx YRevF5x22QpvIxWajSoA/RS8tc5ZwWUuyx58xPj0moVHk3FIWlj+vtgV7+LiWEn2 =sEGH -END PGP SIGNATURE-
Re: [gentoo-user] Re: another headless device-question: In search of the LAN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 30/09/14 22:39, wraeth wrote: FWIW, there's a dispatcher script you can use (at least with NM) that calls chrony and sets it to online mode. Sorry, to clarify: when NetworkManager comes online, it can execute scripts placed in /etc/NetworkManager/dispatcher.d. There's a script I came across [0] that, when placed in the dispatcher directory, brings chrony online and syncs time. [0] https://aur.archlinux.org/packages/networkmanager-dispatcher-chrony/ - -- wraeth Key: 0xB2D9F759 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iF4EAREIAAYFAlQqpSkACgkQXcRKerLZ91mOpQD8D88IsMKuz0nSyez89C7ru2Cm sFwJr4g40Tmlgw5yBF8A/312Lztrab/PMZbW+opN3e18zWGnmPOparLuPjAONgzA =8Qc8 -END PGP SIGNATURE-
Re: [gentoo-user] Re: another headless device-question: In search of the LAN
wraeth wra...@wraeth.id.au [14-09-30 14:44]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 30/09/14 22:39, wraeth wrote: FWIW, there's a dispatcher script you can use (at least with NM) that calls chrony and sets it to online mode. Sorry, to clarify: when NetworkManager comes online, it can execute scripts placed in /etc/NetworkManager/dispatcher.d. There's a script I came across [0] that, when placed in the dispatcher directory, brings chrony online and syncs time. [0] https://aur.archlinux.org/packages/networkmanager-dispatcher-chrony/ - -- wraeth Key: 0xB2D9F759 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iF4EAREIAAYFAlQqpSkACgkQXcRKerLZ91mOpQD8D88IsMKuz0nSyez89C7ru2Cm sFwJr4g40Tmlgw5yBF8A/312Lztrab/PMZbW+opN3e18zWGnmPOparLuPjAONgzA =8Qc8 -END PGP SIGNATURE- This feels little bit less than a k.i.s.s. ... ;) I put a call of /etc/init.d/ntp-client restart into postup() { } of /etc/conf.d/net which is a little more like a k.i.s.s. ;) Like that...runs fine and fast. And only once...no polling on this little machine. Thanks you all again for all the ideas and help! Best regards, mcc
Re: [gentoo-user] another headless device-question: In search of the LAN
On 30/09/2014 12:49, meino.cra...@gmx.de wrote: Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]: On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote: [I] sys-apps/ifplugd Available versions: 0.28-r9[doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage: http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection and another alternative would be sys-apps/netplug WHOW! That all sounds much more easier than I have dreamt of! I did not thought, that such software exists already -- and therefore did not search for it... If you use openrc, you only need to install one of these programs, not configure or set it to run. OpenRC detects that one of these programs is available and uses it to do exactly what you need. -- Neil Bothwick We are upping our standards - so up yours. ...ok, it works! ...nearly... ;) Unfortunately, ntp-client is configured via rc-update (added to default) but after plugging in LAN the interface eth0 comes up and I have access via ssh...but the date is set to the beginnig of the UNIX epoch. I have to call ntp-client by hand. If you know that net.eth0 is specifically required to be up for ntp-client to work, you should render OpenRC aware of the fact: echo 'rc_need=net.eth0' /etc/conf.d/ntp-client --Kerin
[gentoo-user] root on newest livedvd ?
livedvd-amd64-multilib-20140826.iso The old livedvd, to get root access it was sudo su - which does not see to work. Ideas on the new syntax to get root access. Also, is it straightforward to install a secondary ebuild package on this latest livedvd that is not part of the iso? curiously, James
Re: [gentoo-user] Re: another headless device-question: In search of the LAN
On Tue, Sep 30, 2014 at 8:34 AM, meino.cra...@gmx.de wrote: James wirel...@tampabay.rr.com [14-09-30 14:24]: Meino, Make sure your system time (hwclock) is properly set upon bootup. Since you are running on an embedded hardware board, I'd look at those docs and find a forum as to the specifics of how the hardware clock is set and maintained on the board. Once you get it close, then ntp should be configuration. man hwclock hth, James Hi James, ...the system has no built-in RTC which still runs if the system is powered off. After power is up and eth0 is alive, the time/date has to be set via ntp-client. The rest already working. I called /etc/init.d/ntp-client start after booting the little beast and plugging in the RJ45 and everything else was fine. Currently I am experimenting with chrony (emerging). Will see, if this will make a difference ;) Best mcc The trick for bringing the clock into the right era after boot on a system like that one (and what's used in raspbian for the pi) is to, at shutdown, write the current date/time into a file. Then, on boot, set the date/time to what that file has, meaning it won't be perfectly accurate, but it will be considerably closer until ntp's available to it again. The most important thing that accomplishes for me is, while it doesn't keep the wall clock times accurate, maintaining the right order of times on log messages, etc. It also prevents a lot of issues with log and backup rotations that depend on 'which file is newer?', etc. -- Poison [BLX] Joshua M. Murphy
[gentoo-user] Re: root on newest livedvd ?
Todd Goodman tsg at bonedaddy.net writes: livedvd-amd64-multilib-20140826.iso The old livedvd, to get root access it was sudo su - Doesn't just 'su -' (no sudo) work? It works, but prompts for a password which I do cannot find the default password. So no. I'm not sure what the gentoo releng team was thinking or did. James
Re: [gentoo-user] another headless device-question: In search of the LAN
Kerin Millar kerfra...@fastmail.co.uk [14-09-30 15:08]: On 30/09/2014 12:49, meino.cra...@gmx.de wrote: Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]: On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote: [I] sys-apps/ifplugd Available versions: 0.28-r9 [doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage: http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection and another alternative would be sys-apps/netplug WHOW! That all sounds much more easier than I have dreamt of! I did not thought, that such software exists already -- and therefore did not search for it... If you use openrc, you only need to install one of these programs, not configure or set it to run. OpenRC detects that one of these programs is available and uses it to do exactly what you need. -- Neil Bothwick We are upping our standards - so up yours. ...ok, it works! ...nearly... ;) Unfortunately, ntp-client is configured via rc-update (added to default) but after plugging in LAN the interface eth0 comes up and I have access via ssh...but the date is set to the beginnig of the UNIX epoch. I have to call ntp-client by hand. If you know that net.eth0 is specifically required to be up for ntp-client to work, you should render OpenRC aware of the fact: echo 'rc_need=net.eth0' /etc/conf.d/ntp-client --Kerin Hi Kerin, I tried a similiar thing: #!/sbin/runscript # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v 1.13 2013/12/24 11:01:52 vapier Exp $ depend() { before cron portmap after eth0 use dns logger } for after XYZ I set net net.eth0 eth0 and none worked for me... Best regards, mcc
Re: [gentoo-user] another headless device-question: In search of the LAN
On 30/09/2014 14:46, Kerin Millar wrote: On 30/09/2014 14:42, meino.cra...@gmx.de wrote: Kerin Millar kerfra...@fastmail.co.uk [14-09-30 15:08]: On 30/09/2014 12:49, meino.cra...@gmx.de wrote: Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]: On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote: [I] sys-apps/ifplugd Available versions: 0.28-r9[doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage: http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection and another alternative would be sys-apps/netplug WHOW! That all sounds much more easier than I have dreamt of! I did not thought, that such software exists already -- and therefore did not search for it... If you use openrc, you only need to install one of these programs, not configure or set it to run. OpenRC detects that one of these programs is available and uses it to do exactly what you need. -- Neil Bothwick We are upping our standards - so up yours. ...ok, it works! ...nearly... ;) Unfortunately, ntp-client is configured via rc-update (added to default) but after plugging in LAN the interface eth0 comes up and I have access via ssh...but the date is set to the beginnig of the UNIX epoch. I have to call ntp-client by hand. If you know that net.eth0 is specifically required to be up for ntp-client to work, you should render OpenRC aware of the fact: echo 'rc_need=net.eth0' /etc/conf.d/ntp-client --Kerin Hi Kerin, I tried a similiar thing: #!/sbin/runscript # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v 1.13 2013/12/24 11:01:52 vapier Exp $ depend() { before cron portmap after eth0 use dns logger } for after XYZ I set net net.eth0 eth0 and none worked for me... Using 'after' won't work unless both net.eth0 and ntp-client are in the default runlevel. Obviously, that condition is not satisfied if you are using ifplugd. Please try the solution mentioned in my previous post. It should work. On second thoughts, it might have the unintended affect of starting net.eth0 before iplugd does. If you try it, let me know how it goes. --Kerin
Re: [gentoo-user] another headless device-question: In search of the LAN
On Tue, 30 Sep 2014 14:46:46 +0100, Kerin Millar wrote: depend() { before cron portmap after eth0 use dns logger } for after XYZ I set net net.eth0 eth0 and none worked for me... Using 'after' won't work unless both net.eth0 and ntp-client are in the default runlevel. Obviously, that condition is not satisfied if you are using ifplugd. Please try the solution mentioned in my previous post. It should work. ifplugd shouldn't be in any runlevel, it is just there for openrc to use. I suspect that the problem is that eth0 is up but inactive, so services depending on it start but are unable to contact the network. -- Neil Bothwick All generalizations are false. signature.asc Description: PGP signature
Re: [gentoo-user] another headless device-question: In search of the LAN
On 30/09/2014 14:58, Neil Bothwick wrote: On Tue, 30 Sep 2014 14:46:46 +0100, Kerin Millar wrote: depend() { before cron portmap after eth0 use dns logger } for after XYZ I set net net.eth0 eth0 and none worked for me... Using 'after' won't work unless both net.eth0 and ntp-client are in the default runlevel. Obviously, that condition is not satisfied if you are using ifplugd. Please try the solution mentioned in my previous post. It should work. ifplugd shouldn't be in any runlevel, it is just there for openrc to use. I did not claim or suggest otherwise. --Kerin
Re: [gentoo-user] another headless device-question: In search of the LAN
On 30/09/2014 14:42, meino.cra...@gmx.de wrote: Kerin Millar kerfra...@fastmail.co.uk [14-09-30 15:08]: On 30/09/2014 12:49, meino.cra...@gmx.de wrote: Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]: On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote: [I] sys-apps/ifplugd Available versions: 0.28-r9[doc selinux] Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) Homepage: http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection and another alternative would be sys-apps/netplug WHOW! That all sounds much more easier than I have dreamt of! I did not thought, that such software exists already -- and therefore did not search for it... If you use openrc, you only need to install one of these programs, not configure or set it to run. OpenRC detects that one of these programs is available and uses it to do exactly what you need. -- Neil Bothwick We are upping our standards - so up yours. ...ok, it works! ...nearly... ;) Unfortunately, ntp-client is configured via rc-update (added to default) but after plugging in LAN the interface eth0 comes up and I have access via ssh...but the date is set to the beginnig of the UNIX epoch. I have to call ntp-client by hand. If you know that net.eth0 is specifically required to be up for ntp-client to work, you should render OpenRC aware of the fact: echo 'rc_need=net.eth0' /etc/conf.d/ntp-client --Kerin Hi Kerin, I tried a similiar thing: #!/sbin/runscript # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v 1.13 2013/12/24 11:01:52 vapier Exp $ depend() { before cron portmap after eth0 use dns logger } for after XYZ I set net net.eth0 eth0 and none worked for me... Using 'after' won't work unless both net.eth0 and ntp-client are in the default runlevel. Obviously, that condition is not satisfied if you are using ifplugd. Please try the solution mentioned in my previous post. It should work. --Kerin
Re: [gentoo-user] root on newest livedvd ?
2014-09-30 7:09 GMT-06:00 James wirel...@tampabay.rr.com: livedvd-amd64-multilib-20140826.iso A quick search gave me: The old livedvd, to get root access it was sudo su - which does not see to work. Ideas on the new syntax to get root access. http://www.gentoo.org/proj/en/pr/releases/20140826/faq.xml#default Also, is it straightforward to install a secondary ebuild package on this latest livedvd that is not part of the iso? http://forums.gentoo.org/viewtopic-t-995118.html your question is answered there curiously, James
Re: [gentoo-user] root on newest livedvd ?
* James wirel...@tampabay.rr.com [140930 09:10]: livedvd-amd64-multilib-20140826.iso The old livedvd, to get root access it was sudo su - which does not see to work. Ideas on the new syntax to get root access. Also, is it straightforward to install a secondary ebuild package on this latest livedvd that is not part of the iso? curiously, James Doesn't just 'su -' (no sudo) work?
Re: [gentoo-user] another headless device-question: In search of the LAN
On Tue, 30 Sep 2014 15:00:39 +0100, Kerin Millar wrote: Using 'after' won't work unless both net.eth0 and ntp-client are in the default runlevel. Obviously, that condition is not satisfied if you are using ifplugd. Please try the solution mentioned in my previous post. It should work. ifplugd shouldn't be in any runlevel, it is just there for openrc to use. I did not claim or suggest otherwise. Your suggestion that net.eth0 was not in the default runlevel if using ifplugd suggested that ifplugd was, otherwise the interface would never be started. -- Neil Bothwick Growing old is mandatory; growing up is optional!! signature.asc Description: PGP signature
[gentoo-user] Headless question: Harvesting the results...software needed.
Hi, with lot of help of this forum (***TAHNKS!***) I now have a embedded device which is able to dis/connect itsself from/to the LAN, set the clock via ntp-client and is able to fire up a tool, which collects data from sensors and put those into a file ... even if the tool has no connection to a terminal. Next step will be to connect a GPS module (ordered) to the GPIO pins of that board (which is quite offtopic and I fear therefore my sole problem... ;). Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
On 09/30/2014 10:05 AM, meino.cra...@gmx.de wrote: Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc The only project I know of that has openly available map data is OpenStreetMap (openstreetmap.org). I know they have an API, and they probably (not sure) have maps available for download. afaik the only way to combine various map data out of the box is to use a GIS package like QGIS. You can write software to do this using the proj4 library for an embedded box, not sure if anything for your specific use case already exists and is open source. Alec
Re: [gentoo-user] another headless device-question: In search of the LAN
On 30/09/2014 15:03, Neil Bothwick wrote: On Tue, 30 Sep 2014 15:00:39 +0100, Kerin Millar wrote: Using 'after' won't work unless both net.eth0 and ntp-client are in the default runlevel. Obviously, that condition is not satisfied if you are using ifplugd. Please try the solution mentioned in my previous post. It should work. ifplugd shouldn't be in any runlevel, it is just there for openrc to use. I did not claim or suggest otherwise. Your suggestion that net.eth0 was not in the default runlevel if using ifplugd suggested that ifplugd was, otherwise the interface would never be started. No it it didn't. I pointed out that his attempt to use 'after' could never have worked. I did so by explaining the exact conditions under which 'after' would have made a difference. Aside from that, I am well aware that he is using ifplugd and how it works. --Kerin
Re: [gentoo-user] another headless device-question: In search of the LAN
Kerin Millar kerfra...@fastmail.co.uk [14-09-30 16:04]: On 30/09/2014 14:58, Neil Bothwick wrote: On Tue, 30 Sep 2014 14:46:46 +0100, Kerin Millar wrote: depend() { before cron portmap after eth0 use dns logger } for after XYZ I set net net.eth0 eth0 and none worked for me... Using 'after' won't work unless both net.eth0 and ntp-client are in the default runlevel. Obviously, that condition is not satisfied if you are using ifplugd. Please try the solution mentioned in my previous post. It should work. ifplugd shouldn't be in any runlevel, it is just there for openrc to use. I did not claim or suggest otherwise. --Kerin I already have a solution in a file which is a user alterable file: I just put a call to ntp-client in the postup(){} function of /etc/conf.d/net. Called once and no polling and straight forward. And if an update to that file will happen, cfg-update will keep track of it. I am happy with that. Best regards, mcc
Re: [gentoo-user] root on newest livedvd ?
On Tue, Sep 30, 2014 at 9:09 AM, James wirel...@tampabay.rr.com wrote: livedvd-amd64-multilib-20140826.iso The old livedvd, to get root access it was sudo su - which does not see to work. Ideas on the new syntax to get root access. How about sudo -i or sudo -s?
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
On Sep 30, 2014, at 17:12, Alec Ten Harmsel a...@alectenharmsel.com wrote: On 09/30/2014 10:05 AM, meino.cra...@gmx.de wrote: Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc The only project I know of that has openly available map data is OpenStreetMap (openstreetmap.org). I know they have an API, and they probably (not sure) have maps available for download. afaik the only way to combine various map data out of the box is to use a GIS package like QGIS. You can write software to do this using the proj4 library for an embedded box, not sure if anything for your specific use case already exists and is open source. Alec
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
On 30 September 2014 16:12:31 CEST, Alec Ten Harmsel a...@alectenharmsel.com wrote: On 09/30/2014 10:05 AM, meino.cra...@gmx.de wrote: Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc The only project I know of that has openly available map data is OpenStreetMap (openstreetmap.org). I know they have an API, and they probably (not sure) have maps available for download. afaik the only way to combine various map data out of the box is to use a GIS package like QGIS. You can write software to do this using the proj4 library for an embedded box, not sure if anything for your specific use case already exists and is open source. Alec Openstreetmap is a good bet. You might also have some luck if you look into PostGIS. It is an extension to postgresql, which might be overkill, but you might be able to use that in yiur Google searches. If borders would be nice and straight, it would be easy. Unfortunately they are not. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
On Sep 30, 2014, at 17:12, Alec Ten Harmsel a...@alectenharmsel.com wrote: On 09/30/2014 10:05 AM, meino.cra...@gmx.de wrote: Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc The only project I know of that has openly available map data is OpenStreetMap (openstreetmap.org). I know they have an API, and they probably (not sure) have maps available for download. afaik the only way to combine various map data out of the box is to use a GIS package like QGIS. You can write software to do this using the proj4 library for an embedded box, not sure if anything for your specific use case already exists and is open source. Alec Sorry iphone send mail even if you don't wanna :/ What you are considering doing is quite a challenge. What kind of coordinates does your gps module give you? The gps system works with cartesian x y z coordinates. Then these are usually displayed to the user in WGS-84. This is a quite hard mathematical problem (differential elliptical problem). Usually is done by your gps receiver and is approximated. GIS libraries have these functions built inside. Distances are easier and faster to calculate in cartesian coordinates. You need to calculate distance because coordinates from gps will never coincide with any address. Open street maps provides a very good start, but addresses have great differences in different countries. For example google misses addresses quite much depending on where you are searching. Getting the address right requires good locality from the program. Addresses and roads are vector maps. The fastest way to get address is to have the vector map of the world and then calculate distance to the closest address. The database will be huge :) Maps are usually raster pictures which have some projection. When you display them you can use 3d or 2d visual. In 3d (like google earth) you draw a sphere (or oblate spheroid) and draw textures on top of is to the right coordinates. In 3d everything needs to be converted to cartesian coordinates. Or in 2d you decide a projection and then convert the projection of your maps to this projection. After that it is just easy drawing. GIS libraries contain all the needed tools for these operations. There are a few of them with open source license. I have been doing some work with opengl 3d drawing maps. Good luck your project is quite big but it is sure very much fun :) -- -Matti
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
On Sep 30, 2014, at 20:36, J. Roeleveld jo...@antarean.org wrote: On 30 September 2014 16:12:31 CEST, Alec Ten Harmsel a...@alectenharmsel.com wrote: On 09/30/2014 10:05 AM, meino.cra...@gmx.de wrote: Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc The only project I know of that has openly available map data is OpenStreetMap (openstreetmap.org). I know they have an API, and they probably (not sure) have maps available for download. afaik the only way to combine various map data out of the box is to use a GIS package like QGIS. You can write software to do this using the proj4 library for an embedded box, not sure if anything for your specific use case already exists and is open source. Alec Openstreetmap is a good bet. You might also have some luck if you look into PostGIS. It is an extension to postgresql, which might be overkill, but you might be able to use that in yiur Google searches. If borders would be nice and straight, it would be easy. Unfortunately they are not. Yes. For example the land border of Finland is around 2000 km long and only it contains 52000 coordinates ;) -- -Matti
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
J. Roeleveld jo...@antarean.org [14-09-30 19:40]: On 30 September 2014 16:12:31 CEST, Alec Ten Harmsel a...@alectenharmsel.com wrote: On 09/30/2014 10:05 AM, meino.cra...@gmx.de wrote: Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc The only project I know of that has openly available map data is OpenStreetMap (openstreetmap.org). I know they have an API, and they probably (not sure) have maps available for download. afaik the only way to combine various map data out of the box is to use a GIS package like QGIS. You can write software to do this using the proj4 library for an embedded box, not sure if anything for your specific use case already exists and is open source. Alec Openstreetmap is a good bet. You might also have some luck if you look into PostGIS. It is an extension to postgresql, which might be overkill, but you might be able to use that in yiur Google searches. If borders would be nice and straight, it would be easy. Unfortunately they are not. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ...its a damn long way...of waiting, though...;) I am currently downloading the data (Only Europe)...this will be a journey of two days uninterrupted waiting. And -- if murphy will be good to me -- only one file (there are two of them) is the wrong one and has to replaced by another 20GByte file lateron. Will see Next in this cinema: The incredible download from Mars -- Episode II: The revenge of the forgotten bytes ;) Best regards, mcc
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
Matti Nykyri matti.nyk...@iki.fi [14-09-30 19:44]: On Sep 30, 2014, at 17:12, Alec Ten Harmsel a...@alectenharmsel.com wrote: On 09/30/2014 10:05 AM, meino.cra...@gmx.de wrote: Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc The only project I know of that has openly available map data is OpenStreetMap (openstreetmap.org). I know they have an API, and they probably (not sure) have maps available for download. afaik the only way to combine various map data out of the box is to use a GIS package like QGIS. You can write software to do this using the proj4 library for an embedded box, not sure if anything for your specific use case already exists and is open source. Alec Sorry iphone send mail even if you don't wanna :/ What you are considering doing is quite a challenge. What kind of coordinates does your gps module give you? The gps system works with cartesian x y z coordinates. Then these are usually displayed to the user in WGS-84. This is a quite hard mathematical problem (differential elliptical problem). Usually is done by your gps receiver and is approximated. GIS libraries have these functions built inside. Distances are easier and faster to calculate in cartesian coordinates. You need to calculate distance because coordinates from gps will never coincide with any address. Open street maps provides a very good start, but addresses have great differences in different countries. For example google misses addresses quite much depending on where you are searching. Getting the address right requires good locality from the program. Addresses and roads are vector maps. The fastest way to get address is to have the vector map of the world and then calculate distance to the closest address. The database will be huge :) Maps are usually raster pictures which have some projection. When you display them you can use 3d or 2d visual. In 3d (like google earth) you draw a sphere (or oblate spheroid) and draw textures on top of is to the right coordinates. In 3d everything needs to be converted to cartesian coordinates. Or in 2d you decide a projection and then convert the projection of your maps to this projection. After that it is just easy drawing. GIS libraries contain all the needed tools for these operations. There are a few of them with open source license. I have been doing some work with opengl 3d drawing maps. Good luck your project is quite big but it is sure very much fun :) -- -Matti YEAH! Matti is back! I saw your previous mail and thought: Oh boy...Clint Eastwood is very talkative compared to /him/. ;;;))) I am not /that/ serious this evening...sorry... With all the help from this forum this evening I got by far more working results as I have thought... But back to your mail: The GPS module I plan to use is this one (by Adafruit, Lady Ada): https://learn.adafruit.com/adafruit-ultimate-gps/overview From there (see link list on the left) you can also download the manuals (pdf). I will not use this thing as a driving assistant or navi (is this common speaking outside germany also...or is it one of those pseudo english german words like handy for cell phone...dont laugh! This time /I am/ serious! :) ) Its more like a GPS data logger. I plan to copy the gathered data on my PC later and I will try to draw them onto a map. May be the results proof later, that I am able to walk through walls and hovering over the face of the waters...;) May be the UV-mappinga abillity of this 3D renderig program will help -- I am using it for other purposes since 2006. www.blender.org Will see how far it will go. First step in progress will be acchived, when I can read any data from the GPS module and they are not that changing if I dont move and they will change when I move. The module is ordered and will arrive -- I hope -- next week. Best regards, mcc
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
On 30/09/14 15:05, meino.cra...@gmx.de wrote: Hi, with lot of help of this forum (***TAHNKS!***) I now have a embedded device which is able to dis/connect itsself from/to the LAN, set the clock via ntp-client and is able to fire up a tool, which collects data from sensors and put those into a file ... even if the tool has no connection to a terminal. Next step will be to connect a GPS module (ordered) to the GPIO pins of that board (which is quite offtopic and I fear therefore my sole problem... ;). Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc you can also have a look at something like www.openpaths.cc they have an api you can plug into but you need to post your gps data to them doesn't quite fit the offline part but to start it takes a lot of the heavy lifting for you alternatively you could save your gps co-ordinates to an xml file and send that via email, which you can then push up to google maps again, doesn't quite fit the offline part, but i'm not sure how you would visually see your map if it's headless unless if it's on another computer
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
thegeezer thegee...@thegeezer.net [14-09-30 20:24]: On 30/09/14 15:05, meino.cra...@gmx.de wrote: Hi, with lot of help of this forum (***TAHNKS!***) I now have a embedded device which is able to dis/connect itsself from/to the LAN, set the clock via ntp-client and is able to fire up a tool, which collects data from sensors and put those into a file ... even if the tool has no connection to a terminal. Next step will be to connect a GPS module (ordered) to the GPIO pins of that board (which is quite offtopic and I fear therefore my sole problem... ;). Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc you can also have a look at something like www.openpaths.cc they have an api you can plug into but you need to post your gps data to them doesn't quite fit the offline part but to start it takes a lot of the heavy lifting for you alternatively you could save your gps co-ordinates to an xml file and send that via email, which you can then push up to google maps again, doesn't quite fit the offline part, but i'm not sure how you would visually see your map if it's headless unless if it's on another computer Hi, the offline part is important to me. In times where knowledge slowly and surely becomes a criminal act if created just by interest I am not willing to send any data (like GPS data) to google or others like them. headless vs. see the map: Sorry, the explanation may be missing in my mails. The headless device is only used as GPS recorder, which only stores the GOS data given by GPS module. The visualization is done lateron on my PC... The headless device (Beaglebone black) only has 512MB RAM and 16GB SDcard flash... And the CPU is not made for heavy mathematics... Best regards, mcc
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
On Tue, Sep 30, 2014 at 08:12:38PM +0200, meino.cra...@gmx.de wrote: Matti Nykyri matti.nyk...@iki.fi [14-09-30 19:44]: On Sep 30, 2014, at 17:12, Alec Ten Harmsel a...@alectenharmsel.com wrote: On 09/30/2014 10:05 AM, meino.cra...@gmx.de wrote: Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc The only project I know of that has openly available map data is OpenStreetMap (openstreetmap.org). I know they have an API, and they probably (not sure) have maps available for download. afaik the only way to combine various map data out of the box is to use a GIS package like QGIS. You can write software to do this using the proj4 library for an embedded box, not sure if anything for your specific use case already exists and is open source. Alec Sorry iphone send mail even if you don't wanna :/ What you are considering doing is quite a challenge. What kind of coordinates does your gps module give you? The gps system works with cartesian x y z coordinates. Then these are usually displayed to the user in WGS-84. This is a quite hard mathematical problem (differential elliptical problem). Usually is done by your gps receiver and is approximated. GIS libraries have these functions built inside. Distances are easier and faster to calculate in cartesian coordinates. You need to calculate distance because coordinates from gps will never coincide with any address. Open street maps provides a very good start, but addresses have great differences in different countries. For example google misses addresses quite much depending on where you are searching. Getting the address right requires good locality from the program. Addresses and roads are vector maps. The fastest way to get address is to have the vector map of the world and then calculate distance to the closest address. The database will be huge :) Maps are usually raster pictures which have some projection. When you display them you can use 3d or 2d visual. In 3d (like google earth) you draw a sphere (or oblate spheroid) and draw textures on top of is to the right coordinates. In 3d everything needs to be converted to cartesian coordinates. Or in 2d you decide a projection and then convert the projection of your maps to this projection. After that it is just easy drawing. GIS libraries contain all the needed tools for these operations. There are a few of them with open source license. I have been doing some work with opengl 3d drawing maps. Good luck your project is quite big but it is sure very much fun :) -- -Matti YEAH! Matti is back! I saw your previous mail and thought: Oh boy...Clint Eastwood is very talkative compared to /him/. ;;;))) Trashed the phone... and now back to the good old fashion terminal connection. I am not /that/ serious this evening...sorry... With all the help from this forum this evening I got by far more working results as I have thought... But back to your mail: The GPS module I plan to use is this one (by Adafruit, Lady Ada): https://learn.adafruit.com/adafruit-ultimate-gps/overview From there (see link list on the left) you can also download the manuals (pdf). Nice... MicroTek chipset. Quite easy to use. I will not use this thing as a driving assistant or navi (is this common speaking outside germany also...or is it one of those pseudo english german words like handy for cell phone...dont laugh! This time /I am/ serious! :) ) Its more like a GPS data logger. I plan to copy the gathered data on my PC later and I will try to draw them onto a map. May be the results proof later, that I am able to walk through walls and hovering over the face of the waters...;) Ok. This is easy... You just need some maps... openstreetmaps are good for that. From the MT3339 you get NMEA messages and WGS-84 coordinates. I would suggest displaying your results in 2D. For germany Lambert conformal conic projection is good choice. In this projection all angles are true and sreight lines are great circle routes. Just convert the maps to this projection and convert your coordinates to Lambert false easting and false northing and you will have cartesian coordinates that are easy to draw. Even excel is able to draw this in real time :) I don't see where you need the address resolution. May be the UV-mappinga abillity of this 3D renderig program will help -- I am using it for other purposes
Re: [gentoo-user] Headless question: Harvesting the results...software needed.
Matti Nykyri matti.nyk...@iki.fi [14-10-01 00:26]: On Tue, Sep 30, 2014 at 08:12:38PM +0200, meino.cra...@gmx.de wrote: Matti Nykyri matti.nyk...@iki.fi [14-09-30 19:44]: On Sep 30, 2014, at 17:12, Alec Ten Harmsel a...@alectenharmsel.com wrote: On 09/30/2014 10:05 AM, meino.cra...@gmx.de wrote: Suppose the GPS would already be attached to the board and works... Is there any free available software and data for strict offline useage (which does NOT calls to home), which is able to map GPS data to a street/land map? I need both: The maps themselves and the logic to read GPS coordinates and map movements and ways to those maps. Is something like that available for free or should I directly ask the NSA/CIA/FBI/...? Thank you very much in advance for any help! Best regards, mcc The only project I know of that has openly available map data is OpenStreetMap (openstreetmap.org). I know they have an API, and they probably (not sure) have maps available for download. afaik the only way to combine various map data out of the box is to use a GIS package like QGIS. You can write software to do this using the proj4 library for an embedded box, not sure if anything for your specific use case already exists and is open source. Alec Sorry iphone send mail even if you don't wanna :/ What you are considering doing is quite a challenge. What kind of coordinates does your gps module give you? The gps system works with cartesian x y z coordinates. Then these are usually displayed to the user in WGS-84. This is a quite hard mathematical problem (differential elliptical problem). Usually is done by your gps receiver and is approximated. GIS libraries have these functions built inside. Distances are easier and faster to calculate in cartesian coordinates. You need to calculate distance because coordinates from gps will never coincide with any address. Open street maps provides a very good start, but addresses have great differences in different countries. For example google misses addresses quite much depending on where you are searching. Getting the address right requires good locality from the program. Addresses and roads are vector maps. The fastest way to get address is to have the vector map of the world and then calculate distance to the closest address. The database will be huge :) Maps are usually raster pictures which have some projection. When you display them you can use 3d or 2d visual. In 3d (like google earth) you draw a sphere (or oblate spheroid) and draw textures on top of is to the right coordinates. In 3d everything needs to be converted to cartesian coordinates. Or in 2d you decide a projection and then convert the projection of your maps to this projection. After that it is just easy drawing. GIS libraries contain all the needed tools for these operations. There are a few of them with open source license. I have been doing some work with opengl 3d drawing maps. Good luck your project is quite big but it is sure very much fun :) -- -Matti YEAH! Matti is back! I saw your previous mail and thought: Oh boy...Clint Eastwood is very talkative compared to /him/. ;;;))) Trashed the phone... and now back to the good old fashion terminal connection. I am not /that/ serious this evening...sorry... With all the help from this forum this evening I got by far more working results as I have thought... But back to your mail: The GPS module I plan to use is this one (by Adafruit, Lady Ada): https://learn.adafruit.com/adafruit-ultimate-gps/overview From there (see link list on the left) you can also download the manuals (pdf). Nice... MicroTek chipset. Quite easy to use. I will not use this thing as a driving assistant or navi (is this common speaking outside germany also...or is it one of those pseudo english german words like handy for cell phone...dont laugh! This time /I am/ serious! :) ) Its more like a GPS data logger. I plan to copy the gathered data on my PC later and I will try to draw them onto a map. May be the results proof later, that I am able to walk through walls and hovering over the face of the waters...;) Ok. This is easy... You just need some maps... openstreetmaps are good for that. From the MT3339 you get NMEA messages and WGS-84 coordinates. I would suggest displaying your results in 2D. For germany Lambert conformal conic projection is good choice. In this projection all angles are true and sreight lines are great circle routes. Just convert the maps to this projection and convert your coordinates to Lambert false easting and false northing and you will have cartesian coordinates that are easy to draw. Even excel is able to draw this in real time :) I