Project

General

Profile

Bug #3101

PFI CGI install not working in dragonflybsd 5.0.1 USB install

Added by bnegre82 11 months ago. Updated 9 days 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

Related to Submit #3147: Enable headless installationNew2018-10-08

History

#1 Updated by thomas.nikolajsen 10 months 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

#2 Updated by stevensalbert 8 months ago

  • Tracker changed from Bug to Submit

#3 Updated by tuxillo 6 months ago

  • Tracker changed from Submit to Bug

#4 Updated by lexenluis 6 months 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

#5 Updated by Sarahhamilton 14 days ago

I attempted to introduce dragonflybsd on a PCengines APU2 with the CGI installer interface. I need to do this on the grounds that there is only a serial support and ordinary installer don't work. http://www.getessaydone.com

#6 Updated by ddegroot 9 days 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.

#7 Updated by ddegroot 9 days ago

  • Related to Submit #3147: Enable headless installation added

Also available in: Atom PDF