OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: MrCCL on June 12, 2018, 08:26:25 pm

Title: How to start the installer script from the DVD iso image?
Post by: MrCCL on June 12, 2018, 08:26:25 pm
I'm installing OPNsense as virtual on KVM and want to use "OPNsense-18.1.6-OpenSSL-dvd-amd64.iso" as install media, but it boot into live :-(
How can I start the installer script if possible from this ISO?
Title: Re: How to start the installer script from the DVD iso image?
Post by: MrCCL on June 12, 2018, 08:29:31 pm
The install page ( https://docs.opnsense.org/manual/install.html (https://docs.opnsense.org/manual/install.html)) says:
Title: Re: How to start the installer script from the DVD iso image?
Post by: phoenix on June 12, 2018, 08:43:29 pm
Further down that page it also gives details of how to install to HD:

Quote
If you have used a CD-ROM, VGA, Serial image without a config import you are by default able to (a) log into the root shell using the user “root” with password “opnsense”, or (b) log into the installer using the user “installer” with password “opnsense”. The GUI will listen on https://192.168.1.1/ for user “root” with password “opnsense”. Using SSH, the “root” and “installer” users are available as well on IP 192.168.1.1. Note that these install medias are read-only, which means your current live configuration will be lost after reboot.
Title: Re: How to start the installer script from the DVD iso image?
Post by: MrCCL on June 12, 2018, 11:19:44 pm
I still don't get it. Does the install script start if I login as "Installer"?
Title: Re: How to start the installer script from the DVD iso image?
Post by: bitman on June 13, 2018, 12:02:13 am
no, you have to boot the system as a live cd first and then install it...  :-\
Title: Re: How to start the installer script from the DVD iso image?
Post by: franco on June 13, 2018, 07:04:36 am
"have to" sounds so harsh, it has a couple of benefits.

But with 18.7 you will be able to escape to the early config import, type "!", hit enter, type "opnsense-installer", hit enter again and directly install if desired.


Cheers,
Franco
Title: Re: How to start the installer script from the DVD iso image?
Post by: MrCCL on June 13, 2018, 08:45:40 am
What a supprise! Login with "installer" sure does execute the installation program using the live DVD iso image.
franco: It would be nice it that was more clear on the https://docs.opnsense.org/manual/install.html (https://docs.opnsense.org/manual/install.html) page ;-)
Title: Re: How to start the installer script from the DVD iso image?
Post by: marjohn56 on June 13, 2018, 11:36:03 am
It's there... with a big blue !Note, how much clearer do you want it.


If in doubt... RTFM! 8)
Title: Re: How to start the installer script from the DVD iso image?
Post by: bitman on June 13, 2018, 11:45:11 am
talking about harsh...
Title: Re: How to start the installer script from the DVD iso image?
Post by: marjohn56 on June 13, 2018, 11:56:15 am
No, if I was being harsh I wouldn't have used a smiley. :)
Title: Re: How to start the installer script from the DVD iso image?
Post by: marjohn56 on June 13, 2018, 12:00:20 pm
Maybe it would be better to just add an option to the menu, as a lot of peeps do not read the docs first.


@Franco, how about a new menu option '99. Run Installer'
Title: Re: How to start the installer script from the DVD iso image?
Post by: Ciprian on June 13, 2018, 12:14:22 pm
+1 for "Run installer" in the console
Title: Re: How to start the installer script from the DVD iso image?
Post by: franco on June 13, 2018, 01:17:59 pm
A bit of context when option "99" went away... https://github.com/opnsense/core/commit/710f00e842

I agree the manual could be more explicit, but the information is all there. It's also displayed on the console that you then log in to....

Code: [Select]
Welcome!  Both `root' and `installer' users are available for system
setup or invoking the installer, respectively.  The predefined root
password works for both accounts.

I'm not opposed to change, so my question is simply: what's wrong with the installer user? Why do people keep skipping over messages at the tip of their nose and ask for better manuals at the same time?  :)

The "99" option is easily emulated and by "8" and "opnsense-installer" ever since.


Cheers,
Franco
Title: Re: How to start the installer script from the DVD iso image?
Post by: marjohn56 on June 13, 2018, 01:23:11 pm
It's for users who do not RTFM.... or prompts.  8)
Title: Re: How to start the installer script from the DVD iso image?
Post by: Ciprian on June 13, 2018, 01:25:31 pm
:))))))))))))

OK then, let's have a "99 - Run installer" which will display "RTF Manual or Prompts" when accessed! :))
Title: Re: How to start the installer script from the DVD iso image?
Post by: marjohn56 on June 13, 2018, 01:33:36 pm
ROTFL. ;D
Title: Re: How to start the installer script from the DVD iso image?
Post by: franco on June 13, 2018, 01:41:46 pm
Here's the manual part rewritten for clarity. It has a new subsection "Installer Usage", but not a lot of new info in particular other than the option 8 "opnsense-installer" trick.

https://github.com/opnsense/docs/commit/906616ac3


Cheers,
Franco
Title: Re: How to start the installer script from the DVD iso image?
Post by: marjohn56 on June 13, 2018, 01:48:22 pm
5 to 1 says you'll still get asked.  :)
Title: Re: How to start the installer script from the DVD iso image?
Post by: franco on June 13, 2018, 01:55:40 pm
Ok, let's wait and see.
Title: Re: How to start the installer script from the DVD iso image?
Post by: MrCCL on June 14, 2018, 01:14:18 am
I admit it's described on the page several places, sorry for that.
But I just didn't understand the meaning of if. Even though the formulation and grammatical is absolutely 100% correct, it just didn't make sense to me at that time. Partly because of the duplicated naming "installer" and partly because I would never expect it would be executed depending on a user-login.

But there will always be people who don't understand a guide, no matter how good it is, I guess this time I was one of them, damn! :-P

Title: Re: How to start the installer script from the DVD iso image?
Post by: phoenix on June 14, 2018, 08:18:29 am
Here's the manual part rewritten for clarity. It has a new subsection "Installer Usage", but not a lot of new info in particular other than the option 8 "opnsense-installer" trick.

https://github.com/opnsense/docs/commit/906616ac3


Cheers,
Franco
How about calling that section something blindingly obvious like "Install to Hard Disk", using "Installer Usage" doesn't really stand out for me.
Title: Re: How to start the installer script from the DVD iso image?
Post by: Ciprian on June 14, 2018, 09:00:05 am
Code: [Select]
Welcome!  Both `root' and `installer' users are available for system
setup or invoking the installer, respectively.  The predefined root
password works for both accounts.

What about?:

Code: [Select]
Welcome!

THIS SESSION IS IN LIVE CD MODE! Mind the fact that your changes are NOT persistent after a reboot! (!)

One way to change this is to login with 'installer' user in order to trigger the install to local storage.
The predefined 'root' password works for 'installer' user too.
Title: Re: How to start the installer script from the DVD iso image?
Post by: franco on June 14, 2018, 05:53:07 pm
Hmm, more text, less likely read. It drops info about the root user shell usage, too.

We don't want to scroll too far, because from the login prompt you can see which root disk is mounted. It will clearly show it's "Install" or "Nano" for all images we have. We've once had a feature request about it so we added it, but it was never after posted here in the forum for the question so while it's not useless, it doesn't really help if the text is skipped either way. :/


Cheers,
Franco
Title: Re: How to start the installer script from the DVD iso image?
Post by: Ciprian on June 21, 2018, 12:33:28 pm
Actually, thinking through about that, and after a few more days, I can say that the info is there, "in your face" enough!
First, RTFM, and second and more than RTFM, RTFS!!! :) (screen)
Title: Re: How to start the installer script from the DVD iso image?
Post by: kanstin on June 22, 2018, 01:34:13 am

Can you make the text blink?

"LOGIN AS 'installer' TO INSTALL OPNSENSE"

If it's bright/bold and blinking and they still can't figure it out then idk.
Title: Re: How to start the installer script from the DVD iso image?
Post by: franco on June 22, 2018, 11:05:23 am
I have it one more docs pass... let's try to reassess based on 18.7 experiences...

https://github.com/opnsense/docs/commit/110424be6


Cheers,
Franco
Title: Re: How to start the installer script from the DVD iso image?
Post by: marjohn56 on June 22, 2018, 01:16:41 pm
Only if they read the manual first.  :P