InstantHobo Install Script

40 views
Skip to first unread message

Arthur Baldwin

unread,
Aug 10, 2011, 1:49:23 AM8/10/11
to Hobo Users
Quiliro,

I'm having trouble with using the command:

./InstantHobo.bash >> HoboInstall.log

because there is some input expected when MySQL server is installed.
If I remember correctly, there's a way to use a specified .txt file as input....

./InstantHobo.bash >> HoboInstall.log < Input.txt

where Input.txt contains a password <Enter> password <Enter> so that the script has correct input for the MySQL server installation.

Is this correct?

Arthur

kevinpfromnm

unread,
Aug 10, 2011, 12:13:45 PM8/10/11
to hobo...@googlegroups.com, Arthur Baldwin
order is reversed I believe:

command < input_file >> appended_output_file

Arthur Baldwin

unread,
Aug 11, 2011, 2:58:10 AM8/11/11
to Hobo Users
Dear Quiliro,

I'm attaching 3 files to this message, don't know if they will get to you.  If not, then tell me your other eMail address.

I executed the following command:

./InstantHobo.bash < Input.txt > HoboInstall.log

and I'm attaching those 3 files to this eMail.

You will notice that there are many warnings and a few error messages.  Many of them probably are not serious, but you might know better than I do about that.

Sincerely,

Arthur
InstantHobo.bash
Input.txt
HoboInstall.log

Quiliro Ordóñez

unread,
Aug 11, 2011, 8:56:18 AM8/11/11
to hobo...@googlegroups.com
El 10/08/11 00:49, Arthur Baldwin escribió:
Quiliro,

I'm having trouble with using the command:

./InstantHobo.bash >> HoboInstall.log

because there is some input expected when MySQL server is installed.

It asks you the MySQL server password twice when installing MySQL.


If I remember correctly, there's a way to use a specified .txt file as input....

./InstantHobo.bash >> HoboInstall.log < Input.txt

where Input.txt contains a password <Enter> password <Enter> so that the script has correct input for the MySQL server installation.

Is this correct?

I have never entered a password in clear text. I don't know how to do it and would not recommend it either. Maybe you could install it using the pass word inside the script too but that would be a security flaw also.
--
Quiliro Ordóñez
09 821 8696
02 340 1517
"No se puede sacrificar la libertad por ningún bien, por ninguna promesa de pan o de paz o de justicia, porque ese pan tendría amargura de veneno, esa paz sería de muerte, y esa justicia no sería justicia humana ni tendría sentido." Alfredo Pérez G.

Arthur Baldwin

unread,
Aug 11, 2011, 11:57:53 AM8/11/11
to hobo...@googlegroups.com
You are missing the point....I'm trying to literally "record" the output of the install process for your benefit!  This is only a temporary measure for diagnostic purposes.  I already sent a message with the results.

Arthur


From: Quiliro Ordóñez <qui...@gmail.com>
To: hobo...@googlegroups.com
Sent: Thursday, August 11, 2011 5:56 AM
Subject: Re: [Hobo Users] InstantHobo Install Script

--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.


Quiliro Ordóñez

unread,
Aug 11, 2011, 12:30:09 PM8/11/11
to hobo...@googlegroups.com
El 11/08/11 01:58, Arthur Baldwin escribió:
Great log file! I didn't know you could do that.

Everything is OK. No errors. I don't see any.

Please check that the MySQL root password is correct on the console with:

mysql -u root -p

If it gives you a "mysql>" prompt, you are OK. You can exit with the "exit" command.

You can also enter MySQL with a web interface with:
sudo aptitude install phpmyadmin
And then openning up a web browser at http://localhost/phpmyadmin
But the command line interface is quicker! ;-)

Quiliro Ordóñez

unread,
Aug 11, 2011, 12:31:43 PM8/11/11
to hobo...@googlegroups.com
El 11/08/11 10:57, Arthur Baldwin escribió:
You are missing the point....I'm trying to literally "record" the output of the install process for your benefit!  This is only a temporary measure for diagnostic purposes.  I already sent a message with the results.




If that is the objective, it sounds good. I have already answered your "bug report" on another message.

Arthur Baldwin

unread,
Aug 11, 2011, 2:55:24 PM8/11/11
to hobo...@googlegroups.com
The output from the MySQL server password prompt screen kinda messes up the Log file!
I was wishing I knew enough about writing scripts to avoid that little problem.  No ideas yet, though.

Arthur


From: Quiliro Ordóñez <qui...@gmail.com>
To: hobo...@googlegroups.com
Sent: Thursday, August 11, 2011 9:30 AM

Subject: Re: [Hobo Users] InstantHobo Install Script

Arthur Baldwin

unread,
Aug 11, 2011, 6:50:48 PM8/11/11
to hobo...@googlegroups.com
Dear Quiliro,

I'm hoping that we can make the install script a bit fancier.  I'd like to make it so that we can prompt the user of the script to select the preferred database (SQLite, MySQL, or PostGreSQL) and automatically make the necessary installation changes for them.  I would also like to separate the installation script into "stages" so that it is cleaner and more easily understood.  Also, we need to either store the password in a temporary variable within the script, defer its entry until after the script is finished, or find some other way to make the password entry cleaner and less apt to interfere with the script processing.  For example, is there a way to temporarily make the password blank during the install script processing and then change it once the script is finished?

Arthur


From: Quiliro Ordóñez <qui...@gmail.com>
To: hobo...@googlegroups.com
Sent: Thursday, August 11, 2011 9:30 AM
Subject: Re: [Hobo Users] InstantHobo Install Script

Matt Jones

unread,
Aug 12, 2011, 10:08:52 AM8/12/11
to hobo...@googlegroups.com

On Aug 11, 2011, at 2:55 PM, Arthur Baldwin wrote:

> The output from the MySQL server password prompt screen kinda messes up the Log file!
> I was wishing I knew enough about writing scripts to avoid that little problem. No ideas yet, though.

Looks like you can "preseed" the configuration database:

http://serverfault.com/questions/19367/scripted-install-of-mysql-on-ubuntu/19399#19399

--Matt Jones

Quiliro Ordóñez

unread,
Aug 28, 2011, 1:42:50 PM8/28/11
to hobo...@googlegroups.com
On 11/08/11 17:50, Arthur Baldwin wrote:
Dear Quiliro,

I'm hoping that we can make the install script a bit fancier.  I'd like to make it so that we can prompt the user of the script to select the preferred database (SQLite, MySQL, or PostGreSQL) and automatically make the necessary installation changes for them.  I would also like to separate the installation script into "stages" so that it is cleaner and more easily understood.  Also, we need to either store the password in a temporary variable within the script, defer its entry until after the script is finished, or find some other way to make the password entry cleaner and less apt to interfere with the script processing.  For example, is there a way to temporarily make the password blank during the install script processing and then change it once the script is finished?



I have just checked my mail after a long vacation. I do not have Trisquel installed any more. I am trying Parabola which has newer packages. Ubuntu (and Trisquel being derived from it) have older packages. I will have to install Trisquel again. Making your script will take a couple of days after that if it to be tested well. Is this OK?

Quiliro Ordóñez

unread,
Jun 4, 2012, 9:20:29 PM6/4/12
to hobo...@googlegroups.com
Latest version (0.4.6) at the following web page:
http://www.saslibre.com/wiki/doku.php?id=manual_de_hobo

--
Saludos libres,

Quiliro Ord��ez
Presidente
Asociaci�n de Software Libre del Ecuador - ASLE
(593)2-253 5534
(593)2-340 1517
(593)9-675 9641

Reply all
Reply to author
Forward
0 new messages