Project

General

Profile

Actions

Bug #3101

open

PFI CGI install not working in dragonflybsd 5.0.1 USB install

Added by bnegre82 almost 7 years ago. Updated over 3 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Build
Target version:
Start date:
11/12/2017
Due date:
% Done:

0%

Estimated time:

Description

Hello,
I tried to install dragonflybsd on a PCengines APU2 with the CGI installer interface. I have to do this because there is just a serial console and normal installer don't work.
I added a pfi.conf file in /etc/pfi.conf to the image, but no web interface comes.
It failed because /usr/local/sbin/thttpd_wrapper is not on the USB install image (dfly-x86_64-5.0.1_REL.img.bz2)

The webserver is called by the pfi service at startup (etc/rc.d/pfi) line 203
if [ "X$pfi_frontend" = "Xcgi" ]; then
echo "Starting thttpd..."
/usr/local/sbin/thttpd_wrapper &
fi

Can you fix this for the next release ?
How can I add the web server to the install image ?

Regards,
Bertrand


Related issues 1 (1 open0 closed)

Related to Submit #3147: Enable headless installationNew10/08/2018

Actions
Actions #1

Updated by thomas.nikolajsen almost 7 years ago

Hello Bertrand,

You are right, installer use without syscons(4) (including virtual terminals) is broken.
This should be fixed, hopefully for next release.

But dragonfly can be installed manually without installer use.
Though it does take some UNIX experience.
I had no problem installing dragonfly on my APU2, it works fine.
You might do manual install, if you have experience.

To install you just boot from USB media (or network boot, if it is preferred).
Installing instructions is in gpt(8) manual page in EXAMPLES section under Boot Setup heading.

You might prefer MBR over GPT, i.e. use fdisk(8) to setup boot slice.
I used MBR for APU2. I didn't test if GPT works on APU2.
GPT boot mathos used is non-standard and will not work on all BIOSes, as described in gpt(8) manual page.

The rest of dragonfly install described in gpt(8) manual page is independent of boot setup choosen.

Other source for info on dragonfly setup is /usr/share/examples/rconfig, which has a number of setup options.
(HAMMER2 isn't there yet, but if you would like to try it, I'm sure you can change HAMMER setup to fit your needs.)

https://leaf.dragonflybsd.org/cgi/web-man?command=gpt&section=8

https://gitweb.dragonflybsd.org/dragonfly.git/tree/HEAD:/share/examples/rconfig

Actions #2

Updated by stevensalbert over 6 years ago

  • Tracker changed from Bug to Submit
Actions #3

Updated by tuxillo over 6 years ago

  • Tracker changed from Submit to Bug
Actions #4

Updated by lexenluis over 6 years ago

I tried to install dragonflybsd on a PCengines APU2 with the CGI installer
interface. I have to do this because there is just a serial console and normal
installer don't work.
I added a pfi.conf file in /etc/pfi.conf to the image, but no web interface
comes.
It failed because /usr/local/sbin/thttpd_wrapper is not on the USB install
image (dfly-x86_64-5.0.1_REL.img.bz2)

The webserver is called by the pfi service at startup (etc/rc.d/pfi) line 203
if [ "X$pfi_frontend" = "Xcgi" ]; then
echo "Starting thttpd..."
/usr/local/sbin/thttpd_wrapper

Actions #5

Updated by ddegroot about 6 years ago

the installer (formerly bsdinstaller) used to support installation via cgi. But has been removed quite some time ago (around 2009). It would not be impossible to put it back in, but nobody seemed to use it (little/no interest). The /etc/rc.d/pfi script should however need to reflect this as well, so that people don't get the wrong impressions (in that it should work) (See Patch #3147:https://bugs.dragonflybsd.org/issues/3147).
There is a rather small change that can be made, to be able to use the installer front-end from a remote computer (will create a patch later today and link it to this issue report). This would however require you to rebuild the img/iso file or wait until the next release.

Actions #6

Updated by ddegroot about 6 years ago

  • Related to Submit #3147: Enable headless installation added
Actions #7

Updated by tuxillo over 3 years ago

  • Target version changed from 5.0 to 6.0
Actions

Also available in: Atom PDF