Questions on Corona Terminal to upload in Google Play

Hi Everyone…

I would like to REALLY understand the process to generate a keystore for google play

thanks for all your help.

When I open Corona Terminal… Most of the times I get 2 windows

1 - the last line is usually 2015-01-19 19:42:34:25;764 Corona Simulator [717:507]       Build: 2014.2393

and the other one the last line is usually with my name

1.- victors-imac"~ victormbarba$

I don’t know why but I usually close the one with my name and work with the Build one, to work on my app

But When I need to generate the keystore, I notice that I CAN NOT type in the one with build

so I use the one with my name and I put the long line

sudo keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias - keyalg RSA -validity 999999

and when it ask for my password I just can not type anything the keyboard is dead. WHY?

I get so frustated and confused, I close and open the terminal 10 times and nothing

please I do need your help, thanks for everything.

You CAN type, it just doesn’t show anything in the terminal. It will appear blank, but it really is accepting the keyboard input.

I type my password and then Enter, and I got this…

victors-imac:~ victormbarba$ sudo keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias - keyalg RSA -validity 999999
Illegal option:  -
Try keytool -help
victors-imac:~ victormbarba$

Now what should I do?

Every time I type the long line…

sudo keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias - keyalg RSA -validity 999999

I get the same message…

I guess I have to reset the password, or do something, but what?

Please I do need your help. thanks…

First of all, you should leave off the “sudo” from the beginning.  But now that you’ve done that, you may have created a file that you can’t write to.  From the terminal where you can type things, enter:

ls -l

this will list the files in a “long” format where we can see the files that are there.  Please Copy/Paste that output to a forum post.

EDIT: don’t do the below yet, let me see the results of the “ls -l” first

You may need to do an:

sudo rm kindergardenfun.keystore

Then do:

keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias -keyalg RSA -validity 999999

This should prompt you for a password (enter the same password twice).  It won’t show what you type for the passwords as a security measure.   The command you were entering has a space character where it shouldn’t be.  You can copy/paste it as I have it typed above.

Rob

Last login: Tue Jan 20 20:28:45 on console
victors-imac:~ victormbarba$ Is -l – I type the letter l as … l m n o p
-bash: Is: command not found
victors-imac:~ victormbarba$ Is -I – here I type the letter I … as I am new to this
-bash: Is: command not found
victors-imac:~ victormbarba$


I copy and paste what you gave me…

I got it … is …   ls … like …  list

I had put … Is … like … is a good thing


but I got this:

victors-imac:~ victormbarba$ ls -l
total 16
drwxr-xr-x   2 victormbarba  staff    68 Dec 22  2013 Applications
drwx—rwx+ 38 victormbarba  staff  1292 Jan 19 19:31 Desktop
drwx------+ 29 victormbarba  staff   986 Jan  5 23:12 Documents
drwx------+ 63 victormbarba  staff  2142 Jan 18 10:11 Downloads
drwx------@  7 victormbarba  staff   238 Jan 20 20:29 Dropbox
drwx------@ 58 victormbarba  staff  1972 Jan  4 16:49 Library
drwx------+ 95 victormbarba  staff  3230 Oct  8  2013 Movies
drwx------+  5 victormbarba  staff   170 Dec 16  2012 Music
drwx------+  8 victormbarba  staff   272 Sep 29 09:58 Pictures
drwxrwxrwx+  9 victormbarba  staff   306 Nov  2  2013 Public
-rw-r–r--   1 root          staff  1406 Oct  1 10:31 kidsguitareasytabs.keystore
-rw-r–r--   1 root          staff  1404 May 26  2014 xylophoneandglockenspiel.keystore
victors-imac:~ victormbarba$

I hope this help…

And what did I did wrong in the first place so I don’t do it again?

And why do Corona Terminal open 2 windows, is that normal?

Okay, you have two keystores in your folder now:

-rw-r–r--   1 _ root _          staff  1406 Oct  1 10:31 kidsguitareasytabs.keystore
-rw-r–r--   1 _ root _          staff  1404 May 26  2014 xylophoneandglockenspiel.keystore

These are owned by the user “root”, which is the system administrator.  Your user is victormbarba.  You have permission to read the files, but you cannot change them.  This is what the “sudo” does when you put it in front of a terminal command.  The reason I wanted to see the list is that since you don’t need the “sudo” command, if you’re trying to write over a file you can’t write too, it would be a problem.  Since the keystore you are trying to make doesn’t exist, there won’t be a problem.

You should be able to copy/paste this command:

keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias -keyalg RSA -validity 999999

Answer the questions, keeping in mind it won’t show anything you type for password field.  When you’re done, do the ls -l command again (yes those are lower case L’s) and verify that you see something like:

-rw-r–r--   1 victormbarba   staff  1404 Jan 21  2015 kindergardenfun.keystore

is in that list of files. 

Rob

Thank you very much Rob…

Now I see this in the list

-rw-r–r--   1 victormbarba  staff  1422 Jan 22 22:09 kindergardenfun.keystore

So I guess I have the key now to build the google app in Corona…

Question…1

For next time… Do I need the – sudo – first ?  like this

sudo keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias -keyalg RSA -validity 999999

or I just need this line with NO sudo

keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias -keyalg RSA -validity 999999


And Question … 2

is it normal that Corona Terminal opens always 2 windows, One that I can write, and one that I can not?

Thanks

You should not need to put “sudo” at the begin of your keystore commands.

As for the question #2, you can try to launch “Corona Simulator” instead of “Corona Terminal”.

Rob

You CAN type, it just doesn’t show anything in the terminal. It will appear blank, but it really is accepting the keyboard input.

I type my password and then Enter, and I got this…

victors-imac:~ victormbarba$ sudo keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias - keyalg RSA -validity 999999
Illegal option:  -
Try keytool -help
victors-imac:~ victormbarba$

Now what should I do?

Every time I type the long line…

sudo keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias - keyalg RSA -validity 999999

I get the same message…

I guess I have to reset the password, or do something, but what?

Please I do need your help. thanks…

First of all, you should leave off the “sudo” from the beginning.  But now that you’ve done that, you may have created a file that you can’t write to.  From the terminal where you can type things, enter:

ls -l

this will list the files in a “long” format where we can see the files that are there.  Please Copy/Paste that output to a forum post.

EDIT: don’t do the below yet, let me see the results of the “ls -l” first

You may need to do an:

sudo rm kindergardenfun.keystore

Then do:

keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias -keyalg RSA -validity 999999

This should prompt you for a password (enter the same password twice).  It won’t show what you type for the passwords as a security measure.   The command you were entering has a space character where it shouldn’t be.  You can copy/paste it as I have it typed above.

Rob

Last login: Tue Jan 20 20:28:45 on console
victors-imac:~ victormbarba$ Is -l – I type the letter l as … l m n o p
-bash: Is: command not found
victors-imac:~ victormbarba$ Is -I – here I type the letter I … as I am new to this
-bash: Is: command not found
victors-imac:~ victormbarba$


I copy and paste what you gave me…

I got it … is …   ls … like …  list

I had put … Is … like … is a good thing


but I got this:

victors-imac:~ victormbarba$ ls -l
total 16
drwxr-xr-x   2 victormbarba  staff    68 Dec 22  2013 Applications
drwx—rwx+ 38 victormbarba  staff  1292 Jan 19 19:31 Desktop
drwx------+ 29 victormbarba  staff   986 Jan  5 23:12 Documents
drwx------+ 63 victormbarba  staff  2142 Jan 18 10:11 Downloads
drwx------@  7 victormbarba  staff   238 Jan 20 20:29 Dropbox
drwx------@ 58 victormbarba  staff  1972 Jan  4 16:49 Library
drwx------+ 95 victormbarba  staff  3230 Oct  8  2013 Movies
drwx------+  5 victormbarba  staff   170 Dec 16  2012 Music
drwx------+  8 victormbarba  staff   272 Sep 29 09:58 Pictures
drwxrwxrwx+  9 victormbarba  staff   306 Nov  2  2013 Public
-rw-r–r--   1 root          staff  1406 Oct  1 10:31 kidsguitareasytabs.keystore
-rw-r–r--   1 root          staff  1404 May 26  2014 xylophoneandglockenspiel.keystore
victors-imac:~ victormbarba$

I hope this help…

And what did I did wrong in the first place so I don’t do it again?

And why do Corona Terminal open 2 windows, is that normal?

Okay, you have two keystores in your folder now:

-rw-r–r--   1 _ root _          staff  1406 Oct  1 10:31 kidsguitareasytabs.keystore
-rw-r–r--   1 _ root _          staff  1404 May 26  2014 xylophoneandglockenspiel.keystore

These are owned by the user “root”, which is the system administrator.  Your user is victormbarba.  You have permission to read the files, but you cannot change them.  This is what the “sudo” does when you put it in front of a terminal command.  The reason I wanted to see the list is that since you don’t need the “sudo” command, if you’re trying to write over a file you can’t write too, it would be a problem.  Since the keystore you are trying to make doesn’t exist, there won’t be a problem.

You should be able to copy/paste this command:

keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias -keyalg RSA -validity 999999

Answer the questions, keeping in mind it won’t show anything you type for password field.  When you’re done, do the ls -l command again (yes those are lower case L’s) and verify that you see something like:

-rw-r–r--   1 victormbarba   staff  1404 Jan 21  2015 kindergardenfun.keystore

is in that list of files. 

Rob

Thank you very much Rob…

Now I see this in the list

-rw-r–r--   1 victormbarba  staff  1422 Jan 22 22:09 kindergardenfun.keystore

So I guess I have the key now to build the google app in Corona…

Question…1

For next time… Do I need the – sudo – first ?  like this

sudo keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias -keyalg RSA -validity 999999

or I just need this line with NO sudo

keytool -genkey -v -keystore kindergardenfun.keystore -alias kindergardenfunalias -keyalg RSA -validity 999999


And Question … 2

is it normal that Corona Terminal opens always 2 windows, One that I can write, and one that I can not?

Thanks

You should not need to put “sudo” at the begin of your keystore commands.

As for the question #2, you can try to launch “Corona Simulator” instead of “Corona Terminal”.

Rob