Re: [g4u-help] g4u automation - any experience?

2014-03-14 Thread Hubert Feyrer

Am 14.03.2014 um 12:51 schrieb Mateusz Viste:
> I was wondering about some already-incorporated scripting capabilities 
> (because g4u is heavily command-line oriented with its own internal set of 
> commands), so I though maybe there was some hidden feature that would allow 
> me to say 'download a g4u script from the ftp server and execute it', but I 
> understand there is nothing like this. I will definitely explore the 
> dot.profile path to see where I can go from there in reasonable time. Thanks!

ftp -o - http://foo/bar.sh | sh


 - Hubert


--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
g4u-help mailing list
g4u-help@feyrer.de
https://lists.sourceforge.net/lists/listinfo/g4u-help


Re: [g4u-help] g4u automation - any experience?

2014-03-14 Thread Mateusz Viste
Hi,

Thanks for your reply. I know where to start then.

I was wondering about some already-incorporated scripting capabilities 
(because g4u is heavily command-line oriented with its own internal set 
of commands), so I though maybe there was some hidden feature that would 
allow me to say 'download a g4u script from the ftp server and execute 
it', but I understand there is nothing like this. I will definitely 
explore the dot.profile path to see where I can go from there in 
reasonable time. Thanks!

best regards,
Mateusz




On 03/14/2014 11:14 AM, Hubert Feyrer wrote:
>
> Am 14.03.2014 um 10:39 schrieb Mateusz Viste:
>> Now, I don't see any scripting feature integrated into g4u, but maybe
>> I'm missing something. Where should I look? Where would I need to start?
>
> Use the source, luke - it's all scripts, what else would you need?
>
> In particular:
>   * Rebuilding from source: http://www.feyrer.de/g4u/#rebuilding
>   * The script started at g4u startup is 
> src/distrib/i386/ramdisks/ramdisk-g4u/dot.profile
>   * From there it's all /bin/sh - should be enough for what you need ;)
>
>
>> Have anyone already done similar things?
>
> Not really.
> At one point I've pondered using client-specific settings into DHCP, and then 
> read those settings and start whatever command comes from the DHCP server 
> (backup, restore, parameters),
> but I've never really persued this way. If you find all the details, this 
> shouldn't be too hard.
>
> Of course adding that menue you mention would probably be even easier.
> Most interesting is probably what/where you boot g4u from  - if CD is really 
> still an option.
> Support for USB / netboot is not where I'd love it to be today... but patches 
> are always appreciated :)
>
>
>   - Hubert
>

--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
g4u-help mailing list
g4u-help@feyrer.de
https://lists.sourceforge.net/lists/listinfo/g4u-help


Re: [g4u-help] g4u automation - any experience?

2014-03-14 Thread Hubert Feyrer

Am 14.03.2014 um 10:39 schrieb Mateusz Viste:
> Now, I don't see any scripting feature integrated into g4u, but maybe 
> I'm missing something. Where should I look? Where would I need to start? 

Use the source, luke - it's all scripts, what else would you need?

In particular:
 * Rebuilding from source: http://www.feyrer.de/g4u/#rebuilding
 * The script started at g4u startup is 
src/distrib/i386/ramdisks/ramdisk-g4u/dot.profile
 * From there it's all /bin/sh - should be enough for what you need ;)


> Have anyone already done similar things?

Not really.
At one point I've pondered using client-specific settings into DHCP, and then 
read those settings and start whatever command comes from the DHCP server 
(backup, restore, parameters),
but I've never really persued this way. If you find all the details, this 
shouldn't be too hard.

Of course adding that menue you mention would probably be even easier.
Most interesting is probably what/where you boot g4u from  - if CD is really 
still an option.
Support for USB / netboot is not where I'd love it to be today... but patches 
are always appreciated :)


 - Hubert
--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
g4u-help mailing list
g4u-help@feyrer.de
https://lists.sourceforge.net/lists/listinfo/g4u-help