Hi,
show me your /etc/exports contents
Regards X23
Hi,
show me your /etc/exports contents
Regards X23
Hi,
i talk about a listing in pxe advanced menu that is showing all the available images on fog without the need to add them manually to the pxe menu.
The above is showing howto add a image to the menu to deploy without host registration, i ask for a possibility to show them all without adding them one by one to the menu.
Regards
Hi,
would it be possible to have a funtion to call a menu listing of all the images available without knowing them and adding a line for each manually in the menu?
Regards X23
Hi,
this works:
[CODE]svn update /opt/trunk; cd /opt/trunk/bin; echo -e ‘y’ | ./installfog.sh[/CODE]
but finally it needs an enter at the end and i don’t know why but…
[CODE]What yes does is it repeatedly prints y (or the argument if given) followed by a newline to stdout.[/CODE]
Regards X23
Hi,
i would like to automate these answers as well as the schema update if needed.
i’ve shorten that a little:
[quote=“Junkhacker, post: 33269, member: 21583”]
installshortcut.sh
[CODE]svn update /opt/trunk
/opt/trunk/bin/installfog.sh[/CODE][/quote]
An option could be a /q switch for the installfog.sh that will autostart without waiting for a “Y” and does not show the mysql press enter message as well as the notification question at the end.
This is what i have found on the net:
[CODE]There is a command created specifically for that case: yes
yes | ./script
If you want to say no (n) instead of yes (y) you can do it like this:
yes n | ./script
Unnecessarily detailed background information:
What yes does is it repeatedly prints y (or the argument if given) followed by a newline to stdout. If you connect the output of yes to another command using a pipe (the vertical bar) then the y followed by newline will go to the stdin of the command.
Most commands will read their input from stdin. Usually stdin is connected to your terminal. That means, after starting a process, what you type in the terminal will go to stdin of the process. But one of the super powers of unix is that processes don’t care where their stdin is coming from. The processes don’t see the pipe, or the terminal, they only see stdin. Notable exceptions to this rule are for example the password prompt of ssh or sudo.
When the process on the right side of the pipe terminates the pipe will notice and will send SIGPIPE to yes which in turn will terminate itself. If you start yes without a pipe you can stop yes by sending SIGTERM using ctrl+c.
Note that the hypothetical command invocation you gave in your question can not work because the redirection operator expects a file, not a command.
./script < echo ‘yyyyyyyyyyyyyy’
bash: echo: No such file or directory
If you happen to have a file named echo then the contents of the file echo is streamed to stdin of ./script which in turn was called with the parameter ‘yyyyyyyyyyyyyy’. Yes, the redirection operator can be given in any place of the command line. Yes, that is unnecessarily confusing.
If you know exactly how many y your script is expecting you can do it like this:
echo -e ‘y\ny\ny\n’ | ./script
Using echo instead of yes you have more fine grained control of input:
echo -e ‘y\nyes\nno\nmaybe\n’ | ./script
Note that in some rare cases the commands do not require the newline after input, then you have to leave the newlines out:
echo -e ‘yyy’ | ./script
For sake of completeness you can also use an here document:
./script << EOF
y
y
y
EOF
Or if you shell supports it an here string:
./script <<< "y
y
y
"
Or you can create a file with one input per line:
./script < inputfile
[/CODE]
[url]http://askubuntu.com/questions/338857/automatically-enter-input-in-command-line[/url]
Regards X23
Hi,
i don’t want to cron the update script or something, i simply want to start a script that will do a svn update and install with a single command.
No feature request for automated svn updates!
I just don’t know how to thread all this commands into a script.
Regards X23
Hi,
would be nice if the webif would check that 5 signs are entered and auto add the “-” to the input field, also if key is pasted it have to check if there are 5x5 pairs separated by “-” if a key is pasted without the “-” it should auto add them if at least 25 signs are pasted.
Regards X23
Hi,
i would like to have a little script that will automate the update process a little more.
[CODE]svn update
cd bin
./installfog.sh
Y
[ENTER]
if needed calling schemaupdate.php and do it.
N[/CODE]
Could someone tell me howto pipe this correctly?
Script should abort if there is nothing new in svn, also how to know if a db schema update is needed?
Is it possible to add a /q option to installfog.sh for a silent update (forced)?
Hi,
[quote=“HarjeetSingh, post: 33223, member: 25098”]I am going to try with ubuntu_12.04[/quote]
13.10 is also ok.
Regards X23
Hi,
take a look at this, i would recommend you to use ubuntu but take 13.10
[url]http://fogproject.org/wiki/index.php/FOGUserGuide#Installation_on_different_distributions_of_Linux[/url]
Installation:
[url]http://fogproject.org/wiki/index.php/Ubuntu_12.04[/url]
Documentation aka User Guide:
[url]http://fogproject.org/wiki/index.php/FOGUserGuide[/url]
I don’t know more detailed documentations.
Regards X23
[quote=“Tom Elliott, post: 33187, member: 7271”]Hopefully this will help people out.[/quote]
Works
Hi,
[quote=“Junkhacker, post: 33174, member: 21583”]if anyone goes to
[FONT=Consolas][url]http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php[/url][/FONT]
they will see the password in plain text[/quote]
really? a webserver should never delivery a php file contents cleartext.
Regards X23
Hi,
try to reach[COLOR=#000000][COLOR=#0000bb][CODE]http://${fog-ip}/${fog-webroot}/ISO/hiren.iso[/CODE][/COLOR][/COLOR]with a browser.
Remember linux ist case sensitive!
What happens?
Regards X23
Hi,
lets sort things out do you expect the machines to shutdown after simple copying of the harddisk data, not after a windows first boot after deployment? Else i dont understand the question about fog service (do you talk about the client? confused), it has nothing to do with shutting down after a upload or download of an image.
On which kind of hardware (clients) you are testing?
Regards X23
Lets say we use shutdown -r -t 60 then the user has 60 seconds to save his work or he has the chance to use a fog client option to abort the action:
[IMG]http://i.imgur.com/B3rT7U5.png[/IMG]
[IMG]http://i.imgur.com/mvG6lkd.png[/IMG]
[IMG]http://i.imgur.com/475dDGZ.png[/IMG]
If aborted by user it will produce a message in the fog webif “Task aborted by user”.
[IMG]http://i.imgur.com/1PykMPi.png[/IMG]
Maybe we could give the user the possibility to tell us why, little edit box on fog client side where he can type some text in that will send to fog server as a side note for the aborted job.
It should be possible then to restart the task (exactly as before), force the job (give a s**t on users decission, bastard admin from hell ) or finally aborting the task like it is.
Regards X23
Hi,
the kms option is something for the fog settings Tom please add this.
If KMS is used also to activate MS Office this will also do the job.
Nice one Jaymes
Regards X23