Skip to content

feat: add *BSD support #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feat: add *BSD support #219

wants to merge 1 commit into from

Conversation

thw26
Copy link
Collaborator

@thw26 thw26 commented Oct 26, 2024

Steps:

  • Download GhostBSD XFCE
  • Install to Disk/VM
  • Boot into it
  • Open terminal
  • sudo pkg install -g "GhostBSD*-dev"
  • sudo pkg install vim rsync git wget curl gsed gnugrep gawk samba416 7-zip cabextract wine-devel winetricks
  • git clone https://github.com/FaithLife-Community/LogosLinuxInstaller
  • cd LogosLinuxInstaller
  • chmod 700 ./scripts/ensure*
  • ./scripts/ensure-python.sh
  • ensure-venv fails if run from fish and without the export
  • bash
  • export LD_LIBRARY_PATH=/opt/lib
  • ./scripts/ensure-venv.sh
  • /opt/bin/python3 -m venv venv
  • source ./venv/bin/activate
  • pip install .
  • pip install --upgrade pip
  • pip install wheel

And now you're ready to go! At least you would be, if sqlite3 was being properly loaded. This seems to be a new problem since I first worked on this and is some issue with the python ensure. I tried the following to no avail.


Fixes #14. There is one blocking issue and one additional problem.

I have added install pointers to the wiki. It presently requires use of the ports tool to get different versions of Wine and Python, but, as noted below, we don't have the Python version we need.

This is untested. This PR has been opened as a base working model. Of the testing I did do, I worked on GhostBSD.

Some of the commands we use are GNU versions of commands (e.g., sed, grep) and therefore they may not work out of the box on *BSD.

Until we can build it in GitHub, you will have to run from source or pip. Once you activate the Python virtual environment (see CONTRIBUTING), you will then need to install some Python modules.

For newer Wine, you may need to use ports.

@thw26 thw26 marked this pull request as draft October 26, 2024 04:24
@thw26 thw26 added the help wanted Extra attention is needed label Oct 26, 2024
@thw26 thw26 changed the title Fix #14. Add *BSD Support [WIP] Fix #14. Add *BSD Support Oct 26, 2024
@thw26 thw26 added the bsd label Oct 26, 2024
@thw26
Copy link
Collaborator Author

thw26 commented Oct 26, 2024

After building Python 3.12, I was able to make Ou Dedetai run with TK but not with curses. CLI --help works. Attempting to run via curses spits out this error. I am unsure why this is happening.

/scripts/run_app.py
Traceback (most recent call last):
  File "/home/thwright/Dev/LogosLinuxInstaller/./scripts/run_app.py", line 14, in <module>
    sys.exit(ou_dedetai.main.main())
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/thwright/Dev/LogosLinuxInstaller/ou_dedetai/main.py", line 469, in main
    run()
  File "/home/thwright/Dev/LogosLinuxInstaller/ou_dedetai/main.py", line 406, in run
    config.ACTION()  # run control_panel right away
    ^^^^^^^^^^^^^^^
  File "/home/thwright/Dev/LogosLinuxInstaller/ou_dedetai/main.py", line 317, in run_control_panel
    raise e
  File "/home/thwright/Dev/LogosLinuxInstaller/ou_dedetai/main.py", line 302, in run_control_panel
    curses.wrapper(tui_app.control_panel_app)
  File "/opt/lib/python3.12/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/thwright/Dev/LogosLinuxInstaller/ou_dedetai/tui_app.py", line 1140, in control_panel_app
    TUI(stdscr).run()
  File "/home/thwright/Dev/LogosLinuxInstaller/ou_dedetai/tui_app.py", line 344, in run
    self.display()
  File "/home/thwright/Dev/LogosLinuxInstaller/ou_dedetai/tui_app.py", line 305, in display
    self.active_screen.display()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'display'

@thw26 thw26 added the blocked label Nov 7, 2024
@thw26 thw26 changed the title [WIP] Fix #14. Add *BSD Support Fix #14. Add *BSD Support Nov 7, 2024
@thw26 thw26 changed the title Fix #14. Add *BSD Support feate: add *BSD support Feb 21, 2025
@thw26 thw26 force-pushed the 14-add-bsd-support branch from 9e2ef1c to fb2d11f Compare February 21, 2025 06:21
@thw26 thw26 changed the title feate: add *BSD support feat: add *BSD support Feb 21, 2025
@thw26
Copy link
Collaborator Author

thw26 commented Feb 21, 2025

This is able to get to the installer but it is stuck at:

"Please wait while Setup installs Logos Bible Study".

It hangs here and never proceeds. I'm not seeing any errors. It's simply as if it can't.

The GhostBSD repos have wine 10.0-devel rc4 at present. We will need to disable AppImage access, much like #321.

@thw26
Copy link
Collaborator Author

thw26 commented Feb 21, 2025

A draw error occurs in the TUI in which when the next screen is meant to be drawn, it just blanks the screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bsd help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add *BSD Support
1 participant