Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: McArcady on April 21, 2016, 03:44:54 am

Title: LinuxDwarfPack-0.47.05-r8 (with DFHack r8)
Post by: McArcady on April 21, 2016, 03:44:54 am

LinuxDwarfPack 0.47.05-r8:

Supports Dwarf Fortress release 0.47.05 with DFHack r8 - download the pack here:


Pack includes:


Installation:

Install the DEB package (for Ubuntu/Debian only) with:
  $ sudo apt install -f ./linux-dwarf-pack_0.xx.yy-zz_amd64.deb
or using gdebi (https://itsfoss.com/gdebi-default-ubuntu-software-center/).

(RPM, Arch, Alpine and AppImage packages also available here (https://github.com/McArcady/lnp-forge/releases/tag/0.47.05-r8)).

Launch the pack from the menu:
  Applications > Games > Dwarf Fortress
or from a terminal:
  $ /opt/linux-dwarf-pack/linux-dwarf-pack.sh

Or unpack the tar.bz2 package with:
  $ tar xjf LinuxDwarfPack-0.xx.yy-zz.tar.bz2
and start with:
  $ LinuxDwarfPack-0.xx.yy-zz/startlnp.sh


Continuous builds with the latest improvements are also available: see Github actions (https://github.com/McArcady/lnp-forge/actions?query=workflow%3A%22Build+LinuxDwarfPack+package%22) on the lnp-forge directory

(https://www.bay12games.com/dwarves/imgs/support_large.png) (http://www.bay12games.com/support.html)   or   (https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif) (https://www.paypal.com/donate?business=mcarcady%40gmail.com&item_name=Create+and+expand+the+LinuxDwarfPack%21&currency_code=EUR)   or  buy me a coffee! (https://www.buymeacoffee.com/mcarcady)


lnp-forge:

lnp-forge is the script that builds the LinuxDwarfPack on Linux.
It checks for dependencies, downloads the game and tools from their original websites, builds and installs everything in a self-contained directory.
It is only required if you need to build your own LinuxDwarfPack.


Testers welcomed!

Help from testers on different distros would be much appreciated!
The tool has been tested on Fedora, Debian and ArchLinux so far.


Instructions:

Go to https://github.com/McArcady/lnp-forge (https://github.com/McArcady/lnp-forge)
Click [Download ZIP], or clone the repo from Github.

On the command-line, enter:
$ ./configure --prefix=$PWD && make install

To see or change any option, do:
$ bin/lnp-forge menuconfig

To start the build and installation:
$ bin/lnp-forge build

The pack is installed in .build/src/lnp-0.xxx.
It is self-contained and may be moved or copied elsewhere.


Bug reports:

Please attach the build.log file to any issue report on Github.


Title: Re: lnp-forge: Yet another LazyNewbPack builder script for Linux/MacOS
Post by: DeDeRon on April 21, 2016, 08:37:39 am
very good job, i'm happy that someone finally came around to do this. i opened two issues on github, some small (no showstopper) things i noticed:

dependencies:
- pls add tk, tcl, this is needed by the python Tkinter module.
- what is java needed for? is jre enough? probably jdk is required?

- when leaving the config menu i see a line saying

*** Execute 'ct-ng build' to start the build or try 'ct-ng help'.

probably a copy&paste mistake, no big deal.

- for convenience a "chmod 755 .build/src/lnp-0.10f/startlnp.sh" at the end of the build queue would be nice.

- i'm using slackware-current i686.i had to install following slackbuilds: dos2unix, openjdk. i have the qt5 slackbuild installed anyway, but i think qt4 is enough. i will run a test against qt4 once the issues are fixed.

thx again for this wonderful build tool!
Title: Re: lnp-forge: Yet another LazyNewbPack builder script for Linux/MacOS
Post by: McArcady on April 21, 2016, 10:44:59 am
Thanks for testing! I'm glad it helps linux players.
- java8 is required by LegendsBrowser. Sadly this great tool does not work with java7. The jre shall be enough because lnp-forge does not rebuild LegendsBrowser: the jar is downloaded and lnp-forge wraps a script and config file around it.
- qt5 is required for building DwarfTherapist, I have not tried building it with qt4 but this would be useful because some older distros like debian7 do not provide qt5.

BTW, would you have a list (even partial) of the required slackware packages? I would like to create a wiki section on github with the required packages for each distro.
Thanks for the feedback.
Title: Re: lnp-forge: Yet another LazyNewbPack builder script for Linux/MacOS
Post by: DeDeRon on April 21, 2016, 11:30:31 am
i just checked with ldd, my DwarfTherapist binary is linked against qt4, so qt5 is optional (means: either qt4 or qt5 required).

For Slackware i686 you need to install following slackbuilds (a remark for you: think of it like "ports"):
OpenAL (for dwarf fortress)
perl-xml-libxml (for dfhack)
perl-XML-LibXSLT (for dfhack)
dos2unix (soundsense?)
a java runtime environment: "openjdk" or "jdk" slackbuild or any other java jre package (for LegendsBrowser)
optional: qt5 (but see below)

i did not need sdl-image or sdl-ttf, so probably optional. btw.: slackware still uses sdl 1, SDL2_image and SDL2_ttf is available as slackbuilds.

when using qt5 you need to make sure that the Dwarf Therapist build process executes qmake-qt5 (instead of qmake, which belongs to qt4). i dont think this is worth the hassle, so for slackware i would leave out any references to qt5.

slackware x86_64 is a different story, you need to enable multilib, that means install the required i686-libraries. OpenAL needs to be from i686 too. all the other slackbuilds has to be installed for x86_64 (maybe?). this is just a guess, i never used a multilib 64-bit system.

its a pity that i have to provide all these dependencies even though i don't use some of the programs. but still i like the way the build process is working (despite using autohell for the first step).
Title: Re: lnp-forge: Yet another LazyNewbPack builder script for Linux/MacOS
Post by: McArcady on April 23, 2016, 07:03:15 am
Ok fixed: lnp-forge now adapts to current version of Qt (4 or 5) and Therapist is built with it.
32-bit libraries sdl-image and sdl-ttf are required by the DwarfFortress binary.

Indeed, people that do not need LegendsBrowser for example should not be required to install Java 8.
I may add an option to exclude some deps checking from the configure phase, and then exclude the dependent tool from the menuconfig phase.
Title: Re: lnp-forge: Yet another LazyNewbPack builder script for Linux/MacOS
Post by: DeDeRon on April 30, 2016, 08:22:38 am
what is the best way to update the fetched sources and do a (incremental) rebuild? is there some kind of build target for this case?
Title: Re: lnp-forge: Yet another LazyNewbPack builder script for Linux/MacOS
Post by: McArcady on May 02, 2016, 03:44:23 pm
The tool does not do that.
But of course if you  update a version number in the menuconfig and build again, only this component will be re-cloned (integrally) and built.
Title: Re: lnp-forge: Yet another LazyNewbPack builder script for Linux/MacOS
Post by: McArcady on July 30, 2016, 09:30:57 am
New update for building a Starter Pack for DF 0.43.03 (with DFHack+twbt) or 0.43.05 (without DFHack):
- java8 and Qt5 are now optional
- Therapist may be built with Qt4
- Legends Browser will not be included if java8 is not available
Title: Re: lnp-forge: Yet another LazyNewbPack builder script for Linux/MacOS
Post by: McArcady on August 16, 2016, 04:05:27 am
Poll results: after trying to run World Viewer with Mono/Linux, it appears it is using too many Windows native libraries to be adaptable to Mono for Linux/MacOS.
So I will not be able to include it in the StarterPack built with lnp-forge. Sorry!
Title: Re: lnp-forge: Yet another LazyNewbPack builder script for Linux/MacOS
Post by: SatelliteOfLove on September 28, 2016, 01:01:31 pm
McArcady, I just wanted to thank you sincerely for the work you're doing here.  This is/will be a real help in many ways.  Keep up the great work!

Edit: I would like to request that, for those of us who have no interest in the 32-bit DF, that there be an option to drop 32-bit development libraries from the configure phase.

Edit #2: Even after installing LibSDL_image-1.2 (64/32bit and associated development packages), I still get:
checking for IMG_Load in -l:libSDL_image-1.2.so.0... no
configure: error: Could not find 32-bit library libSDL_image-1.2

Title: Re: lnp-forge: Yet another LazyNewbPack builder script for Linux/MacOS
Post by: McArcady on October 02, 2016, 06:44:56 am
Thanks for reporting this:
I made a patch: 32-bit SDL libs are now optional, 64-bit libs are mandatory.
If 32-bits SDL libs were not found, DF versions older that 0.42.05 are disabled in menuconfig.

Title: Re: LinuxDwarfPack / lnp-forge
Post by: clinodev on February 24, 2020, 10:56:55 pm
Here's the newest 0.47.02 Pack, so people can find it:http://dffd.bay12games.com/file.php?id=14768



Also, McArcady,
Here's a copy of DFhack and a TWBT compiled against it for 0.47.03, if you'd like to update! I see lots of calls for a Linux .03 Pack!

http://dffd.bay12games.com/file.php?id=14863
Title: Re: LinuxDwarfPack / lnp-forge
Post by: Darthlawsuit on March 03, 2020, 07:38:01 pm
You are  doing God's work! Been waiting on this!
Title: Re: LinuxDwarfPack / lnp-forge
Post by: Proudbucket on March 28, 2020, 12:14:39 pm
Thanks for the work McArcady!

I've been playing with 44.12 and I've waited until now to jump.
I downloaded the lnp today (march 28) which states that it is for 0.47.04.
I do as per the readme file and I run:
Code: [Select]
"./configure --prefix=$PWD && make install"I end up with a folder in lib named 0.47.03.

Am I doing something wrong? should I do something to instead get 0.47.04?
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on April 01, 2020, 03:58:10 pm
My bad, the version number has not been updated and really should be 0.47.04.
Anyway it does not prevent the build since the version numbers that are actually used are set by running:
Code: [Select]
bin/lnp-forge menuconfig
That sets the version numbers for each component in file:
Code: [Select]
.configYou can also download a pre-built pack here: http://dffd.bay12games.com/file.php?id=14911 (http://dffd.bay12games.com/file.php?id=14911)
Title: Re: LinuxDwarfPack / lnp-forge
Post by: bradlee on April 13, 2020, 10:13:53 pm
I’m running manjaro gnome on a HiDPI display, and I’m having some trouble with the terminal config. I think there may be an issue with how LNP is passing through terminal options. Since I’m on a 4k screen, I want my dfhack terminal to scale up appropriately so it’s readable. From a normal terminal (gnome-terminal) I can spawn xterm and urxvt with the appropriate parameters to make it darker and use a TrueType font at a larger face size:

I’ve tried pasting variations of that into the PyLNP terminal configurator:

But on testing the terminal, this doesn’t spawn anything, and reports the following errors to startlnp.sh. These errors look like it’s not parsing the quote-escaped string correctly, and using the spaces as delimiters:
Code: [Select]
urxvt: "Sans": malformed option.
urxvt: "Mono:pixelsize=28'": malformed option.
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.


Further, if I remove the font name specification, it spawns the correct terminal with the specified colors, says “Test will begin in 3 seconds…” but then still fails (unknown error). With urxvt it also progresses to “Waiting for parent process to continue…” but also still fails the test (unknown error).

I don’t see a build.log to upload in my pylnp folder or any of the subfolders, but if you can tell me how to generate it or point me to the instructions I’m happy to provide it.

Thanks for all your great work packaging up the builds and mods for Linux!
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on April 14, 2020, 05:08:09 pm
The error that happens when running the test may have been fixed : 
try replacing this file: 
Code: [Select]
LinuxDwarfPack-0.47.04-r1/core/terminal.py 
by this one: 
https://github.com/Pidgeot/python-lnp/blob/master/core/terminal.py (https://github.com/Pidgeot/python-lnp/blob/master/core/terminal.py) 
It does not the solve the quotes-escaping problem though, but there is a workaround: 
put the command in a separate script:
Code: [Select]
$ vi term.sh

#!/bin/sh
xterm -bg gray30 -fg Grey89 -fn "xft:DejaVu Sans Mono:pixelsize=28" -e "$@"

$ chmod +x term.sh
and set in the terminal configuration:
Code: [Select]
"YOUR_LNP_PATH/term.sh $"
Could you fill an issue on https://github.com/Pidgeot/python-lnp/issues (https://github.com/Pidgeot/python-lnp/issues) so that this case can be handled properly by PyLNP ?
Title: Re: LinuxDwarfPack / lnp-forge
Post by: bradlee on May 17, 2020, 03:12:07 pm
Thanks for your help! Submitted LNP issue here[1].

I tried putting the commands into a custom_terminal.sh file and pointing to that. I specified the custom terminal script with relative path: ./custom_terminal.sh $


That file contains:
Code: [Select]
#!/bin/bash
xterm -bg gray30 -fg Grey89 -fn "xft:DejaVu Sans Mono:pixelsize=28" -e "$@"

This passes the LNP custom-option test, which shows the terminal window opening, starting, and finishing the test with the specified colors and fonts; however it does not actually work to run DF. When I click Play DF button, I get no GUI response, and the following in the terminal where I spawned ./startlnp.sh:
Code: [Select]
LinuxDwarfPack-0.47.04-r2]$ ./startlnp.sh
bin/DwarfTherapist (No such file or directory)
WARNING: Unknown option: PRIESTHOOD_UNIT_COUNTS
WARNING: Unknown option: TEMPLE_VALUE_LEVELS
WARNING: Unknown option: GUILD_UNIT_COUNTS
WARNING: Unknown option: GUILDHALL_VALUE_LEVELS
INFO: Read installed graphics (Spacefox) from log
Traceback (most recent call last):
  File "/home/brad/Downloads/LinuxDwarfPack-0.47.04-r2/core/launcher.py", line 112, in run_program
    lnp.running[path] = subprocess.Popen(
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: './custom_terminal.sh'
ERROR: Could not launch ./df_47_04_linux/dfhack
Exception in Tkinter callback
Traceback (most recent call last):
  File "./tkgui/tkgui.py", line 542, in run_df
    launcher.run_df()
  File "/home/brad/Downloads/LinuxDwarfPack-0.47.04-r2/core/launcher.py", line 55, in run_df
    raise Exception('Failed to run Dwarf Fortress.')
Exception: Failed to run Dwarf Fortress.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1883, in __call__
    return self.func(*args)
  File "./tkgui/tkgui.py", line 547, in run_df
    message=exc_info[1].message)
AttributeError: 'Exception' object has no attribute 'message'

Eventually I was able to work around the initial problem (specifying font size for readability on HiDPI displays) by giving up on specifying the whole font family, and falling back to xterm and -fs:
Code: [Select]
xterm -bg gray30 -fg Grey89 -fs 10 -e $
But I'm still pretty sure the LNP isn't  properly handling the relative path of the custom script when specified using the custom-terminal command. Should I open up a separate LNP issue for this inconsistency?


[1] https://github.com/Pidgeot/python-lnp/issues/165
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on May 19, 2020, 04:24:58 pm
Does it work with an absolute path?
Code: [Select]
/home/user/my_path/LinuxDwarfPack/custom_terminal.shIf it does, I wouldn't fill an issue for this problem, it is easy to workaround.

The real issue remains fixing PyLNP to handle the blanks characters in the '-fn' option.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: forumist on July 20, 2020, 08:31:26 am
Just to report a success at generating a starting pack with lnp-forge on MX Linux 18 (a distribution based on Debian stretch).

I installed the dependencies as explained here: https://github.com/McArcady/lnp-forge/wiki/Installing-build-dependencies

I git cloned lnp-forge and followed the instructions at https://github.com/McArcady/lnp-forge.

I had to edit tool version numbers with menuconfig, especially the version for twbt. Here's the relevant section of my .config:

Code: [Select]
#
# Misc options
#
# CT_TOOLCHAIN_ENABLE_NLS is not set
CT_DF=y
CT_DF_VERSION="47_04_linux"
CT_LNP=y
CT_LNP_VERSION="0.14a"
CT_EMBARK=y
CT_EMBARK_VERSION="2014-v3"
CT_KEYBINDS=y
CT_KEYBINDS_REV="master"
CT_DFHACK=y
CT_DFHACK_VERSION="0.47.04-r1"
CT_TWBT=y
CT_TWBT_VERSION="04704"
CT_GRAPHICS=y
CT_GRAPHICS_VERSION="47.04"
CT_THERAPIST=y
CT_THERAPIST_VERSION="v41.1.7"
CT_THERAPIST_EXPERIMENTAL_LAYOUT=""
# CT_SOUNDSENSE is not set
CT_LEGENDS=y
CT_LEGENDS_VERSION="1.19.0"
CT_ANNOUNCEMENT=y
CT_ANNOUNCEMENT_VERSION="v1.3.0"

When starting the pack, it failed with the default detected "terminal". I installed xterm (
Code: [Select]
sudo apt install xterm) and set
Code: [Select]
xterm as custom terminal command.

Play-wise, I apparently had a crash at my first worldgen attempt (a long history was running, and when I came back DF was closed, and no world was available after re-starting), and I experienced weird text overlapping in adventure mode (I constantly had to go to the help menu and back in order to be able to see text properly). The other things I tested were fine.

Thanks for this tool!
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on July 20, 2020, 02:49:44 pm
Thanks for the feedback @forumist
Title: AppImage format
Post by: McArcady on July 20, 2020, 03:13:07 pm
lnp-forge now generates an AppImage (http://appimage,https://appimage.org/) version of the LinuxDwarfPack:
It shares some features with containers:
- code and data are automagically separated by a unionfs overlay: code is read-only in the AppImage package, all modified files (notably configuration and game saves) appear in the ~/.lnp of the user. It may ease future upgrades (remains to be tested thoroughly)
- this package format is also supposed to allow embarking dependencies

A nightly build of the AppImage artifact is available here (https://github.com/McArcady/lnp-forge/actions?query=workflow%3ABuild).
Feedback from testing on your favorite distro would be much appreciated!
Title: Re: LinuxDwarfPack / lnp-forge
Post by: rmblr on July 23, 2020, 01:45:45 pm
Report from building on Fedora Silverblue 32 inside a toolbox container.


Code: [Select]
# On host system
toolbox create -c df
toolbox enter -c df     # everything after this is inside the toolbox container

# this is where my df lives
cd ~/src/df

dnf -y groupinstall "Development Tools"

git clone https://github.com/McArcady/lnp-forge

cd lnp-forge

# deps from fedora spec file BuildRequires
sudo dnf install gperf qt5-qtbase-devel ninja-build qt5-qtdeclarative-devel perl-IO-Compress perl perl-XML-LibXML perl-XML-LibXSLT mercurial git cmake gcc-c++ zlib-devel mesa-libGL-devel ncurses-devel dos2unix texinfo help2man


# deps from fedora spec file Requires
sudo dnf install SDL SDL_image SDL_ttf gtk2-devel openal-soft alsa-lib alsa-plugins-pulseaudio mesa-dri-drivers python gnome-terminal java-1.8.0-openjdk python3-tkinter qt5-qttools

# deps from https://github.com/McArcady/lnp-forge/wiki/Installing-build-dependencies
sudo dnf install perl perl-XML-LibXML perl-XML-LibXSLT mercurial help2man git java-1.8.0-openjdk python3-tkinter ninja-build ncurses-devel zlib-devel mesa-libGL-devel gcc-c++ qt5-qttools cmake dos2unix texinfo

# builds deps not referenced in documentation
sudo dnf install bison libtool  SDL-devel libpng-devel

# install your terminal
sudo dnf install xterm

./configure --prefix=$PWD && make install
./bin/lnp-forge menuconfig
./bin/lnp-forge build


Config file (defaults, except changed max parallel jobs and enabled soundsense)
Spoiler (click to show/hide)

Build was successful after 5:56.22.

Booted LNP with ./.build/src/lnp-0.14a/startlnp.sh

My only feedback would be the addition of the addition of the build deps listed above that weren't in the docs.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: rmblr on July 23, 2020, 01:59:56 pm
Now, attemping to build the RPM failed:

Code: [Select]
$ fedpkg --release f32 local(

... snip...

[INFO ]  Finishing installation (may take a few seconds)...
[00:07] / ++ source .config
++ echo
/var/tmp/rpm-tmp.RpVpFj: line 33: source: .config: file not found
+ LNP_VERSION=
+ cat
/var/tmp/rpm-tmp.RpVpFj: line 34: ./.build/src/lnp-/PyLNP.user: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.RpVpFj (%build)
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on July 23, 2020, 06:06:11 pm
Report from building on Fedora Silverblue 32 inside a toolbox container.
My only feedback would be the addition of the addition of the build deps listed above that weren't in the docs.

Thanks for the feedback! I updated the list of dependencies for RedHat systems in the wiki (https://github.com/McArcady/lnp-forge/wiki/Installing-build-dependencies).
Not sure what happened during the RPM build, did you run it from the root of the lnp-forge directory?
Did you try the AppImage package? I would recommend it rather than any distro-specific package, but it has not been tested yet on many systems.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: forumist on July 24, 2020, 03:41:26 pm
I haven't found out how to download the AppImage. Did I miss some information?
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on July 24, 2020, 05:13:14 pm
I haven't found out how to download the AppImage. Did I miss some information?

From github/lnp-forge/actions (https://github.com/McArcady/lnp-forge/actions), select the most recent build (current name: "Fix build.xml"), then download the 'AppImage' artifact.
After extraction from the .zip, the 'execute' permission must be manually set on the .AppImage file:
Code: [Select]
chmod +x ~/Downloads/LinuxDwarfPack-0.47.04-r3-x86_64.AppImage
It is an executable package that can then be started like any other program.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: rmblr on July 30, 2020, 04:22:52 am
FYI you have to be logged in to download files from github actions (unlike releases).

I haven't tried the AppImage version yet, I like to have multiple installs of DF going. So building one lnp dir and then copying it to get multiple installs works great.

---

The community colors pack (https://github.com/Lazy-Newb-Pack/LNP-shared-core/tree/master/colors) is something I use quite a bit. Would you consider adding it to the config?

Also, the LinuxLNP and Windows starter pack have a behavior under Graphics > Customize that the FONT and GRAPHICS_FONT chooser dialogs show ALL tileset pngs, wherease the LNP built with lnp-force only seems to show the tileset of the chosen graphics pack (chosen under Graphics > Choose). The former behavior is very useful to select graphics pack A but use the tileset for text from pack B.

---

Another question, would it be possible to use lnp-forge to build LNPs using a different DF base.

I like to play the Dark Ages Mode (http://www.bay12forums.com/smf/index.php?topic=143540.0) which is only distributed as a windows package. I'd like to be able use lnp-forge to help automate building a linux LNP for that mod.

I see in the scripts it is possible to provide a custom DF tarball, but I can't seem to make it work.

I added the following to my .config

Code: [Select]
CT_DF_CUSTOM=y
CT_DF_CUSTOM_LOCATION=/home/ramblurr/src/df/da
CT_DF_VERSION="47_04_linux"

In /home/ramblurr/src/df/da exists a file 'df_47_04_linux.tar.bz2' which contains the DarkAges df folder extracted, renamed to df_47_04_linux and re-archived with tar. But when i run the build step it errors with "[WARN ]    'df_47_04_linux' not found in '/home/ramblurr/src/df/lnp-forge-da/.build/tarballs".

If I manually copy the tarball into .build/tarballs, it will build.

Am I missing something, or is this how it should work?

Finally, because the DA build is for windows, I have to manually copy the linux binaries in place with a script like this (executed from the lnp-forge dir)

Code: [Select]
#!/bin/bash
DF=/home/ramblurr/src/df/vanilla/df_47_04_linux
DA=./.build/src/lnp-0.14a/df_47_04_linux

cd $DA

find . -iname "*.exe" -delete
find . -iname "*.dll" -delete

mkdir -p ./libs
cp  $DF/df .
cp $DF/libs/* ./libs/

Would be nice to integrate this into the build process somehow, are there any post-build hooks?
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on August 05, 2020, 03:58:01 pm
Sorry for that. The AppImage is still under test (it still fails on some major distros), so it's not available yet outside of github.
--
I'm working on including more LNP shared components to the pack, and colors are part of it!
[EDIT] Done.
--
[EDIT] The following instructions were added to https://github.com/McArcady/lnp-forge/wiki/Add-support-for-a-new-tool-or-mod (https://github.com/McArcady/lnp-forge/wiki/Add-support-for-a-new-tool-or-mod)

Regarding the Dark Ages mod, you could try writing an installation script for the mod in a new file like this:
Code: [Select]
scripts/build/dark.sh
Taking example on df.sh (installation script for the DF archive), the main parts would be:
do_dark_get: download the tarball (the windows one)
do_dark_extract: extract the tarball
do_dark_build: copy the necessary file for the mod from the archive to the DF directory.
For the last part you need to know exactly which files to replace in the original DF tree so that the mod
 will run correctly...

To activate this script you will have to add 'dark' in CT_STEPS in:
Code: [Select]
steps.mk[EDIT] (preferably at the end, right before 'appimage')
and add a config option in:
Code: [Select]
config/config.inand a new file:
Code: [Select]
config/dark.in(take example on config/df.in)
Title: Re: LinuxDwarfPack / lnp-forge
Post by: rmblr on August 06, 2020, 04:17:09 am
Superb instructions, many thanks.

Here's a branch that will install the Dark Ages mod optionally: https://github.com/Ramblurr/lnp-forge/commit/3d152d1e4bc3f26cc08f3d537f4cd55e5f5a3531
Title: dfhack-0.47.04-r2
Post by: McArcady on August 09, 2020, 10:56:43 am
For those willing to test dfhack-0.47.04-r2, there is an automatic build of the LinuxDwarfPack here (https://github.com/McArcady/lnp-forge/actions/runs/201440908). It does not include TWBT.

Expect some small compatibility bugs between the new exportlegends script and Legends Browser, please report them on the github page of Legends Browser (https://github.com/robertjanetzko/LegendsBrowser/issues) and I will try to fix!

If you're using the AppImage version of the LinuxDwarfPack on your favorite distro, please tell me how it went on this page (https://github.com/McArcady/lnp-forge/issues/20).
Thanks!
Title: dfhack-0.47.04-r2 with TWBT
Post by: McArcady on August 11, 2020, 02:34:39 pm
Automatic build here (https://github.com/McArcady/lnp-forge/actions/runs/204474000).
[EDIT] (with TWBT this time)
Title: Re: LinuxDwarfPack / lnp-forge
Post by: clinodev on August 11, 2020, 04:22:08 pm
Very cool!

thurin has a TWBT build up: https://github.com/thurin/df-twbt/releases/tag/0.47.04-r2
Title: Re: LinuxDwarfPack / lnp-forge
Post by: NyanChicken on September 03, 2020, 05:19:03 am
Hi, I'm having a slight problem with running the pack. When I try, it shows these messages:
bin/DwarfTherapist (No such file or directory)
/usr/bin/env: ‘python’: No such file or directory
LinuxDwarfPack-0.47.04-r1/startlnp.sh: 20: warn: not found

I'd really appreciate some help!
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on September 03, 2020, 01:57:55 pm
Hi, I'm having a slight problem with running the pack. When I try, it shows these messages:
bin/DwarfTherapist (No such file or directory)
/usr/bin/env: ‘python’: No such file or directory
LinuxDwarfPack-0.47.04-r1/startlnp.sh: 20: warn: not found

Which distribution are you using?
Could you check that package python3-tk or python3-tkinter is installed?
Title: Re: LinuxDwarfPack / lnp-forge
Post by: NyanChicken on September 03, 2020, 08:54:22 pm
I'm using the latest version of Linux Mint.

Python3-tk already seems to be installed:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-tk is already the newest version (3.8.2-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on September 05, 2020, 04:51:20 pm
I'm using the latest version of Linux Mint.

Python3-tk already seems to be installed:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-tk is already the newest version (3.8.2-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Did you edit/save the script under Windows or something before copying to linux? It may be that the end of lines are messed up.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: NyanChicken on September 06, 2020, 02:12:24 am
Nope, I haven't edited any of the files, just downloaded it straight from the pre-built pack.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on September 06, 2020, 03:52:39 am
Nope, I haven't edited any of the files, just downloaded it straight from the pre-built pack.
It seems to be related to this problem (https://forums.linuxmint.com/viewtopic.php?t=326212) (specific to Mint?). Try installing package python-is-python3.
Title: new formats: packages for Debian/Ubuntu and Redhat
Post by: McArcady on September 08, 2020, 04:32:24 pm
The pack is now available in the following formats:
. appimage (requires regular dependencies + unionfs-fuse)
. deb (Debian/Ubuntu)
. pkg.tar.xz (Arch) [EDIT]
. rpm (RedHat/Fedora)
Testers are welcomed!
The packs can be downloaded from here (https://github.com/McArcady/lnp-forge/actions/runs/251711544) (you will need a github account).

Notes:
The pack install itself in /opt/linux-dwarf-pack/, but the game saves and configuration files are stored separately in ~/.lnp. This way, the game saves and the configuration files won't have to be imported again at each upgrade.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: myk on September 09, 2020, 03:36:31 pm
Nice! I like the separation of the application and user data. Thanks!
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on October 12, 2020, 04:23:22 pm
Fresh LinuxDwarfPack with DFHack 0.47.04-r3 and TwbT here (https://github.com/McArcady/lnp-forge/actions/runs/301187416).
(requires a github account to download a package)
Title: Re: LinuxDwarfPack / lnp-forge
Post by: Burneddi on October 16, 2020, 08:19:09 pm
Petty complaint (especially since I don't even use the version of the pack in question), but maybe using XDG basedirs (so ~/.local/share/lnp by default) for saves instead of ~/.lnp would be better to avoid cluttering the home folder with yet another dotfolder.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on October 21, 2020, 03:29:17 pm
Good idea. I suppose it should be something like .local/share/linux-dwarf-pack.
Is the XDG spec supported by all major distros?
Title: Re: LinuxDwarfPack / lnp-forge
Post by: Clément on October 21, 2020, 04:22:40 pm
Except for XDG_RUNTIME_DIR, there is no need for the distros to do anything to support this. But, yes, it is supported by most (all?), unlike "~/.lnp".
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on October 29, 2020, 04:34:40 pm
Fixed. At first execution, the startup script creates .local/share/linux-dwarf-pack and,
 if necessary, moves old user data to it.
Thanks guys for the suggestion.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: muleet on December 25, 2020, 06:15:28 pm
Code: [Select]
Running PyLNP 0.14a (OS: linux, Compiled: False)
WARNING: JSONConfiguration: File PyLNP.user does not exist
['Traceback (most recent call last):\n', '  File "/home/muleet/Downloads/df/launch.py", line 12, in <module>\n    lnp.PyLNP()\n', '  File "/home/muleet/Downloads/df/core/lnp.py", line 119, in __init__\n    self.initialize_ui()\n', '  File "/home/muleet/Downloads/df/core/lnp.py", line 211, in initialize_ui\n    from tkgui.tkgui import TkGui\n', '  File "/home/muleet/Downloads/df/tkgui/tkgui.py", line 16, in <module>\n    from . import controls, binding\n', '  File "/home/muleet/Downloads/df/tkgui/controls.py", line 11, in <module>\n    from . import binding\n', '  File "/home/muleet/Downloads/df/tkgui/binding.py", line 12, in <module>\n    from tkinter import END\n', "ModuleNotFoundError: No module named 'tkinter'\n"]
Hello, I tried to download the LinuxDwarfPack, but I got that error. I'm using Linux Mint 19. Any idea what I should do ?
I simply extracted the files of the last version of the LNP, and launched "startlnp.sh".
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on December 26, 2020, 05:28:32 pm
It seems that a dependency is missing  (python3-tk)
On Debian-like systems (such as Mint), the dependencies may be installed with:
Code: [Select]
$ sudo apt install libsdl-image1.2 libsdl-ttf2.0-0 gnome-terminal openjdk-8-jre python3-tk qt5-default unionfs-fuseor by selecting the packages above in the package manager.

BTW: have you tried instead the Debian package available here (https://dffd.bay12games.com/file.php?id=15220)? it handles dependencies and user-data more gracefully than the tar.bz2 version.
Title: Re: LinuxDwarfPack / lnp-forge
Post by: McArcady on December 27, 2020, 12:53:10 pm
A nightly build with dfhack-0.47.04-r4 is available on github (https://github.com/McArcady/lnp-forge/actions/runs/446155926).
Title: Re: LinuxDwarfPack / lnp-forge
Post by: muleet on December 29, 2020, 03:22:12 pm
McArcady > Thanks ! It worked !
(I'm not surprised, I noticed there was a global issue with executables on my OS...)
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: Clément on December 30, 2020, 06:12:26 am
Hi McArcady, one user has some issue with Dwarf Therapist packaged in your pack (http://www.bay12forums.com/smf/index.php?topic=168411.msg8228195#msg8228195). Maybe you could have a look.

The first issue is related to Qt using either OpenSSL 1.0 or 1.1 depending on its version and the user system having only one of those installed. It's hard to fix for everyone and not really important, you can ignore it.

The second issue with DT unable to find memory layouts is the important one. From the path, it looks like an appimage but running in portable mode, this is not possible as the directories inside the appimage are not writable. If you want to tweak the files location you can use the XDG_{DATA,CONFIG,CACHE}_{DIRS,HOME} vars instead.

File location used by DT are:
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: McArcady on December 30, 2020, 05:31:11 pm
Hi Clément,
Thanks for the report! I'm looking into in.
The DT provided in the LinuxDwarfPack is indeed started with option --portable, but it is meant to work this way (even in the AppImage version of the pack): actually the directory /tmp/.mount_dwarfXXXX is a temporary overlay of:
- the read-only files from the pack/appimage
- the read-write files from ~/.local/share/linux-dwarf-pack/.
All files modified by a binary of the pack are copied (copy-on-write) to ~/.local/share/linux-dwarf-pack/ and used in place of the original (this is sometimes called the "unionfs trick"), so DT should have no problems writing to any file inside  /tmp/.mount_dwarfXXXX/....
I will contact Milopolitan and investigate this on your thread, I'm curious to know which version and what kind of package (.deb, appimage, tbz2 ?) he uses.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: McArcady on December 30, 2020, 05:58:51 pm
There was an error in the DFFD listing for "LinuxDwarfPack-0.47.04-r5 (DFHack-r4) (https://dffd.bay12games.com/file.php?id=15054)":
- the version of the pack should have been 0.47.04-r5 from the start
- the link to the github artifacts was pointing to an older version
It is now fixed.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: legolegs on January 05, 2021, 04:12:33 pm
Does LinuxDwarfPack 0.47.04-r5 have working stonesense in it?
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: McArcady on January 05, 2021, 04:19:34 pm
it does.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: cj2025 on January 10, 2021, 11:30:19 am
Hello, long-time lurker, first-time poster.  First, I'm extremely grateful that you and the other modders have been so amazing at updating these packs and making them accessible for noobs like me!  Unfortunately, I'm running into an error with the install.  I'm on Ubuntu 20.04 and used the .deb LDP posted here: https://dffd.bay12games.com/file.php?id=15220 (https://dffd.bay12games.com/file.php?id=15220).  This is what the Terminal responds when I try to launch the LNP:

Code: [Select]
$ ./startlnp.sh
['Traceback (most recent call last):\n', '  File "./launch.py", line 12, in <module>\n    lnp.PyLNP()\n', '  File "/home/cj2025/Games/LinuxDwarfPack-0.47.04-r5/core/lnp.py", line 113, in __init__\n    self.initialize_program()\n', '  File "/home/cj2025/Games/LinuxDwarfPack-0.47.04-r5/core/lnp.py", line 132, in initialize_program\n    self.detect_basedir()\n', '  File "/home/cj2025/Games/LinuxDwarfPack-0.47.04-r5/core/lnp.py", line 288, in detect_basedir\n    from . import df\n', '  File "/home/cj2025/Games/LinuxDwarfPack-0.47.04-r5/core/df.py", line 10, in <module>\n    from distutils import dir_util\n', "ImportError: cannot import name 'dir_util' from 'distutils' (/usr/lib/python3.8/distutils/__init__.py)\n"]

A window also appears with the same text displaying.  I attempted to fix by installing the dependencies recommended here:

It seems that a dependency is missing  (python3-tk)
On Debian-like systems (such as Mint), the dependencies may be installed with:
Code: [Select]
$ sudo apt install libsdl-image1.2 libsdl-ttf2.0-0 gnome-terminal openjdk-8-jre python3-tk qt5-default unionfs-fuseor by selecting the packages above in the package manager.

BTW: have you tried instead the Debian package available here (https://dffd.bay12games.com/file.php?id=15220)? it handles dependencies and user-data more gracefully than the tar.bz2 version.

but while all packages installed without a problem, unfortunately this doesn't seem to have solved the issue.  Please let me know what you think and if there's a way to fix these errors.  I'm like a baby when it comes to Linux btw so if the answer is obvious please be patient! 

There is a snap version of DF available in the Ubuntu Software app which works and runs DF Vanilla so I can get my fix of Fun but I miss the tilesets and having dfhack so I'd love to get this pack running if possible.  Thank you so much again for maintaining this pack and responding to questions!
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: McArcady on January 10, 2021, 12:28:26 pm
Hello cj2025,
Good catch, there is a dependency missing from the list.
The next release of the pack will pull it automatically, but meanwhile you have to install it manually with:
Code: [Select]
$ sudo apt install python3-distutils
To start the pack, instead of 'startlnp.sh',
use:
Code: [Select]
$ /opt/linux-dwarf-pack/linux-dwarf-pack.shor the shortcut in: Applications > Games > Dwarf Fortress.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: cj2025 on January 10, 2021, 12:44:15 pm
Hello cj2025,
Good catch, there is a dependency missing from the list.
The next release of the pack will pull it automatically, but meanwhile you have to install it manually with:
Code: [Select]
$ sudo apt install python3-distutils
To start the pack, instead of 'startlnp.sh',
use:
Code: [Select]
$ /opt/linux-dwarf-pack/linux-dwarf-pack.shor the shortcut in: Applications > Games > Dwarf Fortress.

That's fixed it!!  The LNP runs perfectly now.  Thanks so much, I really appreciate it!

Edit: I spoke too soon.  The LNP runs perfectly, however I ran into an error that seems to be unique to all releases of Ubuntu and has popped up in the past, where this error would display in Terminal and no sound would be played:

Code: [Select]
Dynamically loading the OpenAL library failed, disabling sound
Initializing OpenAL failed, no sound will be played

I was able to solve the problem using advice from past threads:

Code: [Select]
$ sudo apt-get install libsdl-ttf2.0-0
$ sudo apt-get install libopenal-dev
$ sudo apt-get install libsndfile-dev
$ ln -s /usr/lib/libsndfile.so.1 df_47_04_linux/libs/libsndfile.so
$ ln -s /usr/lib/libopenal.so.1 df_47_04_linux/libs/libopenal.so
$ echo "drivers = alsa," > .alsoftrc

I don't know if there's a way to integrate this code into future releases of the pack, but if not, the code is here for anyone who runs into the same issue. 

Edit 2: There was also an error that displayed:

Code: [Select]
Failed to load module “canberra-gtk-module”
Which was easily rectified with the simple line:

Code: [Select]
sudo apt-get install libcanberra-gtk-module
Cheers!
Title: Experimental LinuxDwarfPack for DF 0.47.05 (DT, no DFHack)
Post by: McArcady on January 30, 2021, 04:51:25 am
Experimental pack for 0.47.05 available here (https://dffd.bay12games.com/file.php?id=15388)!
(with DT, but no DFHack)
Title: LinuxDwarfPack for DF 0.47.05 with DFHack alpha0
Post by: McArcady on February 02, 2021, 01:43:44 pm
With DFHack-alpha right here (https://github.com/McArcady/lnp-forge/actions/runs/529111532).
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: myk on February 02, 2021, 07:28:26 pm
With DFHack-alpha right here (https://github.com/McArcady/lnp-forge/actions/runs/529111532).
Nice. Thanks!
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: Oklat on February 03, 2021, 03:12:54 am

LinuxDwarfPack 0.47.04-r5:

Supports Dwarf Fortress release 0.47.04 with DFHack r4 - download the pack here:
  • https://dffd.bay12games.com/who.php?id=7393 (https://dffd.bay12games.com/who.php?id=7393)


Pack includes:
  • DwarfFortress with DFHack & TWBT
  • full DFGraphics tilesets
  • keybinds, tilesets and embark profiles from the original LNP
  • Dwarf Therapist
  • Legends Browser
  • Announcement Window



Hi
why it doesn't have soundsense ?? It adds so much to the game !
does anyone one knows how to install soundsense with this ?? or does anyone knows a Better LNP-DF for linux/Ubuntu ??? i would be glad if someone would help me :)[/list]
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: McArcady on February 09, 2021, 03:04:01 pm
Quote
why it doesn't have soundsense ?? It adds so much to the game !
Well, the LinuxDwarfPack is meant to stay slim and simple, centered around DF, DFHack and TwbT. We won't embark all the mods and tools available.
What would be nice however, is that one of the versions of Soundsense (there are at least 3) would be made available as a stand-alone app so that you can install and start it independently from the LinuxDwarfPack. Maybe you could ask their maintainers what is possible?
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: feelotraveller on February 10, 2021, 04:58:20 am
What would be nice however, is that one of the versions of Soundsense (there are at least 3) would be made available as a stand-alone app so that you can install and start it independently from the LinuxDwarfPack. Maybe you could ask their maintainers what is possible on this side?

I've been using the one from here http://www.bay12forums.com/smf/index.php?topic=174585.0 (http://www.bay12forums.com/smf/index.php?topic=174585.0) and it works just like that.  :)  The heavy part is the soundsense pack https://github.com/jecowa/soundsensepack/releases/tag/2.33 (https://github.com/jecowa/soundsensepack/releases/tag/2.33) that is, the actual sound media, but they all need that.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: uioped1 on February 15, 2021, 01:14:44 pm
Thanks for creating this package!
I'm enjoying the yak shaving involved in my recent switch to linux. (ubuntu 20.04)

A couple of items I've noticed working through getting this set up:
First off, additional dependencies:
Dwarf Therapist has an additional dependency on libqt5qml5
AnnouncementWindow has a dependency on python3-pil.imagetk
I can submit pullrequests for those if you like.

Other issues: The announcement window utility causes an error in dbus_send on launch due to invalid parameters.  I _think_ that's a bug in their app, but thought I'd mention it since I haven't looked into it at all.
strangely, I've also had the same error once when announcement window was not running...

Dwarf Therapist also has a known issue on distros with ptrace protection (e.g. ubuntu)  -- resolving that seems to conflict with the approach you're taking to run the app from within a temp sandbox. 
I assume that it's working for other people, but I have not been able to get it to work.  I have been able to get it to work without the --portable option by running it directly from /opt/bin and redirecting the log to my user folder, after I disabled ptrace on the executable. sudo setcap cap_sys_ptrace=ep dwarftherapist
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: Clément on February 15, 2021, 02:10:00 pm
Dwarf Therapist also has a known issue on distros with ptrace protection (e.g. ubuntu)  -- resolving that seems to conflict with the approach you're taking to run the app from within a temp sandbox. 
I assume that it's working for other people, but I have not been able to get it to work.  I have been able to get it to work without the --portable option by running it directly from /opt/bin and redirecting the log to my user folder, after I disabled ptrace on the executable. sudo setcap cap_sys_ptrace=ep dwarftherapist

If you don't want to give extra permissions to Dwarf Therapist, you can lower the security of DF executable alone using PR_SET_PTRACER (prctl), I do it by preloading a small library (see my script (https://github.com/Dwarf-Therapist/Dwarf-Therapist/blob/master/dist/ptrace_scope/patch_df_ptracer)). As long as you don't store sensitive information in your DF saves, it should not be a problem if DF is ptraceable (actually even if it was not ptraceable, an attacker could still read the saves, they are not encrypted).
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: McArcady on February 15, 2021, 04:29:01 pm
Thanks for reporting the missing dependencies.

Indeed the sandbox is mounted with 'unionfs', which seems to not support extended attributes. So executables appear to have no capabilities from the inside.
At startup, the pack script tries to read and change capabilities of bin/dwarftherapist using getcap/setcap, but it fails:
Code: [Select]
Failed to get capabilities of file `bin/dwarftherapist' (Operation not supported)As an alternative, 'mergerfs' seems to support extended attributes, but not copy-on-write :-(
Remains the solution by Clément.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: uioped1 on February 15, 2021, 06:58:38 pm
Thanks Clément.

One addendum:  the AnnouncementWindow launcher script seemingly needs t be changed to use python3  once that was fixed I stopped getting the dbus error.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: Oklat on February 17, 2021, 03:52:30 am
Quote
why it doesn't have soundsense ?? It adds so much to the game !
Well, the LinuxDwarfPack is meant to stay slim and simple, centered around DF, DFHack and TwbT. We won't embark all the mods and tools available.
What would be nice however, is that one of the versions of Soundsense (there are at least 3) would be made available as a stand-alone app so that you can install and start it independently from the LinuxDwarfPack. Maybe you could ask their maintainers what is possible?

Thx for replying , (sorry i just saw it today)
i used the lnp-forge that YOU (THANK YOU SO MUCH) created to install custom mods & tools . now i have the Linux-Dwarf-Pack with soundsense .
BTW anyone who has problems with Dwarf therapist :
check out this post on github : https://github.com/Dwarf-Therapist/Dwarf-Therapist/blob/master/dist/ptrace_scope/README.md (https://github.com/Dwarf-Therapist/Dwarf-Therapist/blob/master/dist/ptrace_scope/README.md)
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: McArcady on March 07, 2021, 04:53:44 pm
New build with DFHack-r1.
Arch package is available once again!
https://github.com/McArcady/lnp-forge/actions/runs/630383253 (https://github.com/McArcady/lnp-forge/actions/runs/630383253)
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: lethosor on March 07, 2021, 06:07:28 pm
New build with DFHack-r1.
Arch package is available once again!
https://github.com/McArcady/lnp-forge/actions/runs/630383253 (https://github.com/McArcady/lnp-forge/actions/runs/630383253)

The new thread title isn't quite right: I think you want "LinuxDwarfPack for DF 0.47.05 with DFHack r1"

Edit: also, people can't download anything from that link without logging in to GitHub, so you'll probably want to publish a release to https://github.com/McArcady/lnp-forge/releases as well.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: McArcady on March 08, 2021, 01:47:28 am
The new thread title isn't quite right: I think you want "LinuxDwarfPack for DF 0.47.05 with DFHack r1"
Thanks for noticing! I will push a copy on dffd and update the thread ASAP
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: McArcady on March 27, 2021, 06:42:45 am
Dwarf Therapist also has a known issue on distros with ptrace protection (e.g. ubuntu)  -- resolving that seems to conflict with the approach you're taking to run the app from within a temp sandbox. 

Tentative fix for the LinuxDwarfPack, that makes the DF binary ptraceable from within the sandbox (thanks to Clément for the PRELOAD'ed library script).
It should fix the problem with DwarfTherapist on distros with memory protection, without disabling the protection globally.

I'm looking for Ubuntu users to test it!
No need to reinstall the current version of the LinuxDwarfPack, it may be tested by:
- downloading the Appimage version built on the patch branch (https://github.com/McArcady/lnp-forge/actions/runs/690889162) (requires a github account)
- setting executable permissions and run:
Code: [Select]
$ chmod +x ~/Downloads/Dwarf_Fortress-0.47.04-r5-x86_64.AppImage
$ ~/Downloads/Dwarf_Fortress-0.47.04-r5-x86_64.AppImage
- then start DF, load a game and start the DT provided in the pack
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: ronnietucker on April 02, 2021, 02:11:54 pm
Dwarf Therapist also has a known issue on distros with ptrace protection (e.g. ubuntu)  -- resolving that seems to conflict with the approach you're taking to run the app from within a temp sandbox. 

Tentative fix for the LinuxDwarfPack, that makes the DF binary ptraceable from within the sandbox (thanks to Clément for the PRELOAD'ed library script).
It should fix the problem with DwarfTherapist on distros with memory protection, without disabling the protection globally.

I'm looking for Ubuntu users to test it!
No need to reinstall the current version of the LinuxDwarfPack, it may be tested by:
- downloading the Appimage version built on the patch branch (https://github.com/McArcady/lnp-forge/actions/runs/690889162) (requires a github account)
- setting executable permissions and run:
Code: [Select]
$ chmod +x ~/Downloads/Dwarf_Fortress-0.47.04-r5-x86_64.AppImage
$ ~/Downloads/Dwarf_Fortress-0.47.04-r5-x86_64.AppImage
- then start DF, load a game and start the DT provided in the pack

Yep. Works a treat for me in Ubuntu 20.04 LTS. Any chance of adding SoundSense to the pack? Just wondering.  :)

Oh, and using the Legends Viewer didn't do anything.

Can also confirm that subsequently uninstalling the DEB will screw things up. My bad.  ::)
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: McArcady on April 02, 2021, 03:14:15 pm
Yep. Works a treat for me in Ubuntu 20.04 LTS. Any chance of adding SoundSense to the pack? Just wondering.  :)
Oh, and using the Legends Viewer didn't do anything.
Can also confirm that subsequently uninstalling the DEB will screw things up. My bad.  ::)
Thanks for the test!
And yes SoundSense-RS will be included in the next pack.  :)

What exactly went wrong with Legends Browser? does it also happen with the .deb version?
If that is the case, could you try launching the pack from a terminal with:
Code: [Select]
$ /opt/linux-dwarf-pack/linux-dwarf-pack.sh
then try launching Legends Browser from the LNP interface and send me the log of the terminal.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: ronnietucker on April 02, 2021, 03:36:05 pm
Yep. Works a treat for me in Ubuntu 20.04 LTS. Any chance of adding SoundSense to the pack? Just wondering.  :)
Oh, and using the Legends Viewer didn't do anything.
Can also confirm that subsequently uninstalling the DEB will screw things up. My bad.  ::)
Thanks for the test!
And yes SoundSense-RS will be included in the next pack.  :)

What exactly went wrong with Legends Browser? does it also happen with the .deb version?
If that is the case, could you try launching the pack from a terminal with:
Code: [Select]
$ /opt/linux-dwarf-pack/linux-dwarf-pack.sh
then try launching Legends Browser from the LNP interface and send me the log of the terminal.

When I go to DFHack I do:

[DFHack]# exportlegends all
Writing all files in: legends-region2-00122-07-22
exportlegends must be run from the main legends view


And double clicking Legends Browser doesn't seem to do anything (from what I see).

I run your command, and in the window double click Legends Browser. Terminal says:

Starting Dwarf_Fortress-0.47.05-r1-x86_64
- configuration and game saves are stored in /home/ronnie/.local/share/linux-dwarf-pack
- feedback or issues? see http://www.bay12forums.com/smf/index.php?topic=157712
- created with lnp-forge: https://github.com/McArcady/lnp-forge

Creating overlay of /home/ronnie/.local/share/linux-dwarf-pack and /tmp/.mount_Dwarf_3JcVWB in /tmp/lnp-8gwGM1...
Failed to get capabilities of file `bin/dwarftherapist' (Operation not supported)
INFO: Read installed graphics (Vettlingr) from log
[2021-04-02 21:33:37] SEVERE: cannot start portal server on port 58881: Address already in use (Bind failed)
[2021-04-02 21:33:37] SEVERE: cannot start portal server on port 58882: Address already in use (Bind failed)
[2021-04-02 21:33:37] SEVERE: cannot start portal server on port 58883: Address already in use (Bind failed)
[2021-04-02 21:33:37] INFO: server started on localhost:58884
cannot open path of the current working directory: Permission denied
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: McArcady on April 02, 2021, 05:27:41 pm
When I go to DFHack I do:
[DFHack]# exportlegends all
Writing all files in: legends-region2-00122-07-22
exportlegends must be run from the main legends view


"exportlegends all" may only be run safely from the 'Legends' game mode (not Fortress or Adventure), or alternatively like this (https://www.reddit.com/r/dwarffortress/comments/7mu1vo/pro_tip_you_can_view_and_export_legends_mode/) (may screw your current game).
The "Bind failed" errors show that Legends Browser has already been started several times in the background, probably due to your past attempts. Try killing their java processes or restart your Linux user session.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: ronnietucker on April 02, 2021, 07:22:20 pm
When I go to DFHack I do:
[DFHack]# exportlegends all
Writing all files in: legends-region2-00122-07-22
exportlegends must be run from the main legends view


"exportlegends all" may only be run safely from the 'Legends' game mode (not Fortress or Adventure), or alternatively like this (https://www.reddit.com/r/dwarffortress/comments/7mu1vo/pro_tip_you_can_view_and_export_legends_mode/) (may screw your current game).
The "Bind failed" errors show that Legends Browser has already been started several times in the background, probably due to your past attempts. Try killing their java processes or restart your Linux user session.

Yep, I'm an idiot. Got DF into legends mode using:

open-legends

in DFhack. Then, again in DFhack, used:

exportlegends all

and that got me the files I needed for the legends.

But... still no luck when I double click Legends Browser. When I run your command I get:

Starting Dwarf_Fortress-0.47.05-r1-x86_64
- configuration and game saves are stored in /home/ronnie/.local/share/linux-dwarf-pack
- feedback or issues? see http://www.bay12forums.com/smf/index.php?topic=157712
- created with lnp-forge: https://github.com/McArcady/lnp-forge

Creating overlay of /home/ronnie/.local/share/linux-dwarf-pack and /tmp/.mount_Dwarf_00oSR0 in /tmp/lnp-Fp11i9...
Failed to get capabilities of file `bin/dwarftherapist' (Operation not supported)
INFO: Read installed graphics (Vettlingr) from log
[2021-04-03 01:14:20] INFO: server started on localhost:58881
cannot open path of the current working directory: Permission denied
/tmp/lnp-Fp11i9 unmounted.


But I can still see the data when I put:

http://localhost:58881/

into my open browser.

Anyway, no big deal, but definitely looking forward to having SoundSense soon.  :)
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: McArcady on April 03, 2021, 06:07:27 am

[2021-04-03 01:14:20] INFO: server started on localhost:58881
cannot open path of the current working directory: Permission denied


At startup, LegendsBrowser automatically tries to open the default browser.
That step seems to fail in your case... not sure why.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: ronnietucker on April 03, 2021, 09:19:04 am

[2021-04-03 01:14:20] INFO: server started on localhost:58881
cannot open path of the current working directory: Permission denied


At startup, LegendsBrowser automatically tries to open the default browser.
That step seems to fail in your case... not sure why.

Got it! I have both Firefox and Brave installed. Brave is set as my default browser. If I set Firefox as my default then the Legends Browser opens no problem in Firefox. So it's Brave doing something weird.

One other possible bug somewhere: if I use the Vettlingr graphics, ESC to the menu, then return to the game sometimes the map is blank. Just the map. If I ESC and return to the game several times then eventually the map comes back. If it doesn't then I have to just save and reload. Even some announcement screens cause this. No big deal, I'll use the Afro graphics.  :)

Thanks for making this pack though. It's great!
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: ronnietucker on April 04, 2021, 05:24:05 am
One other possible bug somewhere: if I use the Vettlingr graphics, ESC to the menu, then return to the game sometimes the map is blank. Just the map. If I ESC and return to the game several times then eventually the map comes back. If it doesn't then I have to just save and reload. Even some announcement screens cause this. No big deal, I'll use the Afro graphics.  :)

UPDATE: I think this 'bug' is caused by the TWBT print mode. As soon as I set that to 2D it's all good. Any graphics and use TWBT and the blank map thing is back. Oh well. 2D text it is then...
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: ronnietucker on April 09, 2021, 07:49:28 am

[2021-04-03 01:14:20] INFO: server started on localhost:58881
cannot open path of the current working directory: Permission denied


At startup, LegendsBrowser automatically tries to open the default browser.
That step seems to fail in your case... not sure why.

Not sure if this is exclusive to this pack, or DF as a whole, but when I got my first goblin siege they started attacking my fortress and DF quit. I reloaded and I was back to the save before the siege. Siege happened again. Same again... as soon as they start attacking the fort the game quit.

Any ideas? Anything I can check??

UPDATE: changed graphics from Vettlingr to Ironhand and it didn't crash.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: McArcady on April 09, 2021, 12:28:35 pm
Not sure if this is exclusive to this pack, or DF as a whole, but when I got my first goblin siege they started attacking my fortress and DF quit. I reloaded and I was back to the save before the siege. Siege happened again. Same again... as soon as they start attacking the fort the game quit.
Any ideas? Anything I can check??
UPDATE: changed graphics from Vettlingr to Ironhand and it didn't crash.

Interesting, with or without TwbT?
Crashes may also be investigated by reloading without DFHack.
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r5
Post by: ronnietucker on April 09, 2021, 12:37:40 pm
Not sure if this is exclusive to this pack, or DF as a whole, but when I got my first goblin siege they started attacking my fortress and DF quit. I reloaded and I was back to the save before the siege. Siege happened again. Same again... as soon as they start attacking the fort the game quit.
Any ideas? Anything I can check??
UPDATE: changed graphics from Vettlingr to Ironhand and it didn't crash.

Interesting, with or without TwbT?

Crashes may also be investigated by reloading without DFHack.

IronHand works fine with 2D and TTF=yes
Vettlingr was TWBT (I think). But it was giving me grief before with a blank screen when I came out of announcement/menu screens.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: jecowa on April 11, 2021, 03:37:56 pm
I tried the Deb distribution of your LNP first on Pop_OS (an Ubuntu-based distribution). When I double-clicked it, it said it was missing Qt. So I read the instructions and tried the command line command, but it said it was missing dependencies. So I downloaded your normal Linux distribution and Dwarf Fortress ran fine out-of-the-box.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: McArcady on April 12, 2021, 02:17:15 pm
I tried the Deb distribution of your LNP first on Pop_OS (an Ubuntu-based distribution). When I double-clicked it, it said it was missing Qt. So I read the instructions and tried the command line command, but it said it was missing dependencies. So I downloaded your normal Linux distribution and Dwarf Fortress ran fine out-of-the-box.
Thanks for reporting!
Could you try installing again on Pop_OS from a terminal and post the log here?
Code: [Select]
$ sudo dpkg -i  linux-dwarf-pack_0.47.05-r1_amd64.deb(or in a root shell, without sudo)
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: jecowa on April 14, 2021, 08:47:45 pm
Code: [Select]
User:~$ sudo dpkg -i '/home/user/Downloads/linux-dwarf-pack_0.47.05-r1_amd64.deb'
[sudo] password for User:
(Reading database ... 294385 files and directories currently installed.)
Preparing to unpack .../linux-dwarf-pack_0.47.05-r1_amd64.deb ...
Unpacking linux-dwarf-pack (0.47.05-r1) over (0.47.05-r1) ...
dpkg: dependency problems prevent configuration of linux-dwarf-pack:
 linux-dwarf-pack depends on libopenal-dev; however:
  Package libopenal-dev is not installed.
 linux-dwarf-pack depends on libsndfile-dev; however:
  Package libsndfile-dev is not installed.
 linux-dwarf-pack depends on openjdk-8-jre; however:
  Package openjdk-8-jre is not installed.
 linux-dwarf-pack depends on python-tk; however:
  Package python-tk is not installed.
 linux-dwarf-pack depends on python3-distutils; however:
  Package python3-distutils is not installed.
 linux-dwarf-pack depends on python3-pil.imagetk; however:
  Package python3-pil.imagetk is not installed.
 linux-dwarf-pack depends on qt5-default; however:
  Package qt5-default is not installed.
 linux-dwarf-pack depends on libqt5qml5; however:
  Package libqt5qml5 is not installed.
 linux-dwarf-pack depends on unionfs-fuse; however:
  Package unionfs-fuse is not installed.

dpkg: error processing package linux-dwarf-pack (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-dwarf-pack
User:~$ ▉

Spoiler: screenshot (click to show/hide)
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: McArcady on April 16, 2021, 06:06:16 am
Code: [Select]
User:~$ sudo dpkg -i '/home/user/Downloads/linux-dwarf-pack_0.47.05-r1_amd64.deb'
[sudo] password for User:
(Reading database ... 294385 files and directories currently installed.)
Preparing to unpack .../linux-dwarf-pack_0.47.05-r1_amd64.deb ...
Unpacking linux-dwarf-pack (0.47.05-r1) over (0.47.05-r1) ...
dpkg: dependency problems prevent configuration of linux-dwarf-pack:
 linux-dwarf-pack depends on libopenal-dev; however:
  Package libopenal-dev is not installed.
 linux-dwarf-pack depends on libsndfile-dev; however:
  Package libsndfile-dev is not installed.
 linux-dwarf-pack depends on openjdk-8-jre; however:
  Package openjdk-8-jre is not installed.
 linux-dwarf-pack depends on python-tk; however:
  Package python-tk is not installed.
 linux-dwarf-pack depends on python3-distutils; however:
  Package python3-distutils is not installed.
 linux-dwarf-pack depends on python3-pil.imagetk; however:
  Package python3-pil.imagetk is not installed.
 linux-dwarf-pack depends on qt5-default; however:
  Package qt5-default is not installed.
 linux-dwarf-pack depends on libqt5qml5; however:
  Package libqt5qml5 is not installed.
 linux-dwarf-pack depends on unionfs-fuse; however:
  Package unionfs-fuse is not installed.

dpkg: error processing package linux-dwarf-pack (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-dwarf-pack
User:~$ ▉

My bad, it seems like dpkg does not pull dependencies automatically.
The most efficient installation command would be:
Code: [Select]
$ sudo apt install ./linux-dwarf-pack_0.47.05-r1_amd64.deb
(mind the './' - it may be replaced with any directory)
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: jecowa on April 16, 2021, 10:14:23 pm
Code: [Select]
User@pop-os:~/Downloads$ sudo apt install ./linux-dwarf-pack_0.47.05-r1_amd64.deb
[sudo] password for User:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-dwarf-pack : Depends: libopenal-dev but it is not installed
                    Depends: libsnfile-dev
                    Depends: openjdk-8-jre but it is not installed
                    Depends: python3-tk but it is not installed
                    Depends: python3-distutils but it is not installed
                    Depends: python3-pil.imagetk but it is not installed
                    Depends: qt5-default but it is not installed
                    Depends: libqt5qml5 but it is not installed
                    Depends: unionfs-fuse
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
User@pop-os:~/Downloads$ ▉

I searched the Internet a little and discovered that "--fix-broken" is just the long form of "-f".

I'm guessing I would need to install all those libraries to get the deb package to work.

I thought it was interesting that this time it didn't tell me that libsnfile-dev and unionfs-fuse weren't installed.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: McArcady on April 17, 2021, 06:47:49 am
I searched the Internet a little and discovered that "--fix-broken" is just the long form of "-f".
I'm guessing I would need to install all those libraries to get the deb package to work.
I thought it was interesting that this time it didn't tell me that libsnfile-dev and unionfs-fuse weren't installed.

Indeed, it seems that -f forces apt to fix missing dependencies.
I was able to install them along the pack with this command:
Code: [Select]
$ sudo apt -f install ./linux-dwarf-pack_0.47.05-r1_amd64.deb
Did it work on your system?
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: jecowa on April 18, 2021, 10:28:45 am
Code: [Select]
User@pop-os:~$ cd Downloads
User@pop-os:~/Downloads$ sudo apt -f install ./linux-dwarf-pack_0.47.05-r1_amd64.deb
[sudo] password for User:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Note, selecting 'linux-dwarf-pack' instead of 'linux-dwarf-pack_0.47.05-r1_amd64.deb'
linux-dwarf-pack is already the newest version (0.47.05-r1).
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-dwarf-pack : Depends: qt5-default but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
User@pop-os:~/Downloads$ ▉

I'm wondering if maybe the libraries are supposed to be inside the deb so they get installed when it's double-clicked.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: McArcady on April 19, 2021, 04:00:17 pm
Code: [Select]
linux-dwarf-pack is already the newest version (0.47.05-r1).

Mmmh, I've seen this one before:
apt doesn't want to overwrite a package with the same version number.
Try removing and reinstalling?
Code: [Select]
$ sudo apt remove linux-dwarf-pack
$ sudo apt -f install ./linux-dwarf-pack_0.47.05-r1_amd64.deb

Thanks for your patience!
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: gnyav on April 20, 2021, 06:37:24 am
I have a problem with the AnnouncementWindow
When I try to open it, it say:
Code: [Select]
Traceback (most recent call last):
  File "run.py", line 1, in <module>
    import Window
  File "/mnt/Personal/Games/LinuxDwarfPack-0.47.05-r1/announcement/Window.py", line 26, in <module>
    from PIL import Image, ImageTk
ImportError: No module named PIL
I'm using linux mint (ubuntu based), first i had a error about python libraries missing, but i added them. and now it's this module. Any idea how to fix it?
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: jecowa on April 20, 2021, 07:03:05 am
I'm guessing it wants the "python3-pil.imagetk" library.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: gnyav on April 20, 2021, 08:08:26 am
I'm guessing it wants the "python3-pil.imagetk" library.
that's what i thought at the start, but according to synaptic package manager i have it installed...
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: McArcady on April 20, 2021, 02:13:25 pm
I'm guessing it wants the "python3-pil.imagetk" library.
that's what i thought at the start, but according to synaptic package manager i have it installed...

Have you installed all these deps?
Code: [Select]
$ sudo apt install python3-tk python3-distutils python3-pil.imagetk
Maybe try reinstalling them... also make sure that 'python' is Python3 by default:
Code: [Select]
$ sudo update-alternatives --config python
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: jecowa on April 20, 2021, 11:22:30 pm
Code: [Select]
linux-dwarf-pack is already the newest version (0.47.05-r1).

Mmmh, I've seen this one before:
apt doesn't want to overwrite a package with the same version number.
Try removing and reinstalling?
Code: [Select]
$ sudo apt remove linux-dwarf-pack
$ sudo apt -f install ./linux-dwarf-pack_0.47.05-r1_amd64.deb

Thanks for your patience!

Quote from: pop-os Terminal
User@pop-os:~$ cd Downloads/
User@pop-os:~/Downloads$ sudo apt remove linux-dwarf-pack
[sudo] password for User:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.3.0-7625 linux-headers-5.3.0-7625-generic
  linux-image-5.3.0-7625-generic linux-modules-5.3.0-7625-generic
  linux-modules-extra-5.3.0-7625-generic python-certifi python-chardet
  python-idna python-openssl python-requests python-urllib3
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-dwarf-pack
0 upgraded, 0 newly installed, 1 to remove and 8 not upgraded.
1 not fully installed or removed.
After this operation, 191 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 294385 files and directories currently installed.)
Removing linux-dwarf-pack (0.47.05-r1) ...
User@pop-os:~/Downloads$ sudo apt -f install ./linux-dwarf-pack_0.47.05-r1_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-dwarf-pack' instead of './linux-dwarf-pack_0.47.05-r1_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-dwarf-pack : Depends: qt5-default but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
User@pop-os:~/Downloads$
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: Mathalor on April 20, 2021, 11:34:41 pm
Can't figure out Dwarf Therapist on Ubuntu.  I need to run a script or something.  Where is Dwarf Therapist installed?
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: jecowa on April 20, 2021, 11:55:15 pm
Can't figure out Dwarf Therapist on Ubuntu.  I need to run a script or something.  Where is Dwarf Therapist installed?

In the .tar.bz2 distribution, it's located in /bin/dwarftherapist/

In the .deb dpkg distribution, I think it gets installed into the Linux equivalent of the Windows Start Menu or the Mac Launchpad.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: gnyav on April 21, 2021, 01:35:15 am
Have you installed all these deps?
Code: [Select]
$ sudo apt install python3-tk python3-distutils python3-pil.imagetk
Maybe try reinstalling them... also make sure that 'python' is Python3 by default:
Code: [Select]
$ sudo update-alternatives --config python

I had the packages, but it was using python 2 by default. it's fixed now. thanks!
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: Mathalor on April 21, 2021, 01:47:40 pm
The applications menu has an entry for dwarf fortress, which opens the launcher.  There is not a separate entry for dwarf therapist, and I can't find a file for the launcher in /.local/share/applications/  I also checked /.local/share/linux-dwarf-pack/bin/  The folder contains some dwarftherapist.log files, but nothing else. 

Perhaps I could change the security setting itself, but there's a lot about linux that I don't understand and that seems unsafe.  Unless I've misunderstood, the other fixes listed in the document Odlat linked to all seem to require the dwarf therapist executable.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: McArcady on April 21, 2021, 02:55:59 pm
Code: [Select]
The following packages have unmet dependencies:
 linux-dwarf-pack : Depends: qt5-default but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I run out of ideas...
BTW the tool 'gdebi' may help with installing a deb file and its dependencies. More information here (https://unix.stackexchange.com/questions/159094/how-to-install-a-deb-file-by-dpkg-i-or-by-apt).
Or maybe try installing the last dependencies manually?
Title: Re: LinuxDwarfPack for DF 0.47.04 with DFHack r4
Post by: McArcady on April 21, 2021, 03:06:12 pm
The applications menu has an entry for dwarf fortress, which opens the launcher.  There is not a separate entry for dwarf therapist, and I can't find a file for the launcher in /.local/share/applications/  I also checked /.local/share/linux-dwarf-pack/bin/  The folder contains some dwarftherapist.log files, but nothing else. 
Dwarf-Therapist and all other tools are installed in /opt/linux-dwarf-pack.
You should see it in the 'Utilities' tab of the launcher.

You may also install it separately from the LinuxDwarfPack. As long as the version is compatible with DF v0.47.05, it should work (last version is 41.2.2).
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: Clément on April 21, 2021, 03:32:41 pm
jecowa, did you try "apt -f install" without installing any package ? Your dependencies are broken, you need to find which installed package is causing all this. aptitude has a why-not command that could help but I don't know the apt equivalent.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: jecowa on April 21, 2021, 05:41:37 pm
jecowa, did you try "apt -f install" without installing any package ?

Trying that command after first doing the "remove" and "install linux-dwarf-pack.deb" commands gives me some of the same stuff as trying to remove linux-dwarf-pack:
Code: [Select]
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.3.0-7625 linux-headers-5.3.0-7625-generic
  linux-image-5.3.0-7625-generic linux-modules-5.3.0-7625-generic
  linux-modules-extra-5.3.0-7625-generic python-certifi python-chardet
  python-idna python-openssl python-requests python-urllib3
Use 'sudo apt autoremove' to remove them.

Your dependencies are broken, you need to find which installed package is causing all this.
Are you saying I have these libraries installed already, so linux-dwarf-pack isn't able to install them. But the libraries that I have installed are broken, so they can't be used? I don't normally install software on Linux. I kind of thought the dpkg was supposed to make it easy and handle dependencies for me.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: Mathalor on April 21, 2021, 05:55:28 pm
Thanks
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: Mathalor on April 21, 2021, 11:08:04 pm
https://github.com/Dwarf-Therapist/Dwarf-Therapist/blob/master/dist/ptrace_scope/README.md

This claims that the issue can be bypassed by running dwarf fortress as a child of dwarf therapist, if ptrace value is 1.  Could this option somehow be integrated into the launcher?



I don't know how to run either of the listed scripts, and the console command given under "Adding CAP_SYS_PTRACE capability" didn't produce the desired result.  I was able to affect the dwarf therapist file but still couldn't connect to a running fort.  I'm guessing because my ptrace is 1 and not 2, though "up to 2" implies it should work.  Changing the ptrace value directly does work.  I'm still worried about lowering the security on my system, however.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: lethosor on April 21, 2021, 11:32:32 pm
linux-dwarf-pack : Depends: qt5-default but it is not going to be installed
This line is the important one - the "you have held broken packages" line, on the other hand, can indicate a lot of things. Sometimes it indicates that you have an incompatible package installed that something else depends on. In this case, it might just indicate that you need to install qt5-default. It doesn't often indicate that the installed packages are corrupted - that is hard to detect.

"dpkg" is a very low-level package management tool. It typically installs just the package you specify, and packages typically don't bundle their own dependencies. What happens if you try installing with "apt" instead? This should pull in dependencies.
Code: [Select]
sudo apt install /path/to/pack.deb

If that gives you a similar error about qt5-default or another package, try installing that package with "apt install" and continue, or post any errors that that gives you.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: Clément on April 22, 2021, 03:07:25 am
Broken package is more about broken dependency graph, than corrupted files. Some packages conflict with each other, everything that depends on the conflicting package cannot be installed. It usually does not happen with the main repository, but with manual tinkering or using bad quality third party repository, you can break your packages.

Quote
Code: [Select]
E: Unable to correct problems, you have held broken packages.

Try "apt-mark showhold". Maybe you accidentally held one package, that creates the conflicts.

McArcady, is there a reason your package depends on development packages instead of the library ones?
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: McArcady on April 22, 2021, 01:14:07 pm
https://github.com/Dwarf-Therapist/Dwarf-Therapist/blob/master/dist/ptrace_scope/README.md
This claims that the issue can be bypassed by running dwarf fortress as a child of dwarf therapist, if ptrace value is 1.  Could this option somehow be integrated into the launcher?

Yes it has been integrated in the pack recently.
Do you have a github account? If so you may download a weekly build that includes the fix here (https://github.com/McArcady/lnp-forge/actions/runs/761943255).
It has been tested on Ubuntu only, tell me if it worked for you.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: McArcady on April 22, 2021, 01:24:32 pm
McArcady, is there a reason your package depends on development packages instead of the library ones?
Good catch, it's a mistake.
"libopenal-dev libsndfile-dev"  should probably be replaced with  "libopenal1 libsndfile1"
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: Clément on April 22, 2021, 03:26:32 pm
qt5-default (https://packages.ubuntu.com/bionic/qt5-default) is a development package too.
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: jecowa on April 22, 2021, 03:47:28 pm
Qt5 is a Dwarf Therapist thing. It looked to me, as a Linux noob, that maybe the tar.bz2 district was trying to run Dwarf Therapist from source. Maybe the developer kit version is needed for that?
Title: Re: LinuxDwarfPack for DF 0.47.05 with DFHack r1
Post by: McArcady on May 02, 2021, 04:01:20 am
Qt5 is a Dwarf Therapist thing. It looked to me, as a Linux noob, that maybe the tar.bz2 district was trying to run Dwarf Therapist from source. Maybe the developer kit version is needed for that?

No, DwarfTherapist is compiled, so the dev dependencies and qt5-default really were not necessary.

Time for a new release of the pack!
- now includes SoundSense-RS and the DFHack 'Kloker' plugin
- Debian/Ubuntu dependencies have been cleaned-up


Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: ronnietucker on May 03, 2021, 04:48:33 am
Just installed the r2 .deb file in Ubuntu 21.04. Game seems to work fine, but the soundsense-rs won't accept a mouse click. Hovering over the menus displays them and moving the pointer over the items highlights them, but a mouse click does nothing.

I assume I have to grab a sound pack from somewhere? Does soundsense-rs grab it using the menu links, or should I download the sounds and put them in a folder?

Thanks!
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: McArcady on May 04, 2021, 03:19:41 pm
I assume I have to grab a sound pack from somewhere? Does soundsense-rs grab it using the menu links, or should I download the sounds and put them in a folder?
Does the menus work?
Menu 'Options' should send to you to the right place to download a sound pack. I'm using the one by jecowa, which rocks.
After download and unzipping, use 'Load > Load soundpack'.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: ronnietucker on May 04, 2021, 03:22:13 pm
I assume I have to grab a sound pack from somewhere? Does soundsense-rs grab it using the menu links, or should I download the sounds and put them in a folder?
Does the menus work?
Menu 'Options' should send to you to the right place to download a sound pack. I'm using the one by jecowa, which rocks.
After download and unzipping, use 'Load > Load soundpack'.
I can hover over the Options menu to see the items, but clicking an item does nothing.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: McArcady on May 04, 2021, 05:23:32 pm
I can hover over the Options menu to see the items, but clicking an item does nothing.
Does it happen only for menu "Options"?
For instance, does "Options > About" open a window?
In that case, it may be that your the app fails to start the default browser when clicking on, for instance:  "Options > jecowa"
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: ronnietucker on May 04, 2021, 05:27:06 pm
I can hover over the Options menu to see the items, but clicking an item does nothing.
Does it happen only for menu "Options"?
For instance, does "Options > About" open a window?
In that case, it may be that your the app fails to start the default browser when clicking on, for instance:  "Options > jecowa"

Clicking on any item does nothing.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: lethosor on May 04, 2021, 06:09:32 pm
21.04 makes me think of a possible Wayland issue - if you're running Wayland, are you able to try using Xorg too?
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: ronnietucker on May 05, 2021, 03:53:59 am
21.04 makes me think of a possible Wayland issue - if you're running Wayland, are you able to try using Xorg too?

I've tried logging in using Xorg and still can't click anything in soundsense-rs
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: McArcady on May 17, 2021, 06:53:49 am
I've tried logging in using Xorg and still can't click anything in soundsense-rs
Could you try launching SoundsenseRS outside of the LNP, from a terminal:
Code: [Select]
$ /opt/linux-dwarf-pack/soundsense-rs/soundsense-rs-v1.5.1-linux
Did the menu work? and are there any errors reported in the terminal?
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: ronnietucker on May 17, 2021, 06:58:13 am
I've tried logging in using Xorg and still can't click anything in soundsense-rs
Could you try launching SoundsenseRS outside of the LNP, from a terminal:
Code: [Select]
$ /opt/linux-dwarf-pack/soundsense-rs/soundsense-rs-v1.5.1-linux
Did the menu work? and are there any errors reported in the terminal?

Menu's still drop down when the pointer is over them, but clicking on, say, 'About' does nothing.
Nothing reported in the terminal. No errors. Nothing.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: Jazz Cat on May 19, 2021, 09:58:13 pm
I'm trying to install this on Debian 10, but it keeps telling me I need openjdk-8-jre.

Code: [Select]
linux-dwarf-pack : Depends: openjdk-8-jre but it is not installable

As far as I know, openjdk 8 is gone (and, indeed, not installable). Is there a version of the dwarfpack that uses the current openjdk, or do I need to somehow convince this one that a newer openjdk is fine?
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: McArcady on May 25, 2021, 02:14:32 pm
As far as I know, openjdk 8 is gone (and, indeed, not installable). Is there a version of the dwarfpack that uses the current openjdk, or do I need to somehow convince this one that a newer openjdk is fine?

Thanks for reporting. It's time indeed to let go of openjdk-8.
You should be able to force the install with:
Code: [Select]
dpkg --force-all -i linux-dwarf-pack_0.47.05-r2_amd64.deb
Alternatively, a nightly build with the fixed dependency will be available here (https://github.com/McArcady/lnp-forge/actions/runs/876400513).
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: billyd on July 05, 2021, 08:47:55 pm
I've tried logging in using Xorg and still can't click anything in soundsense-rs
Could you try launching SoundsenseRS outside of the LNP, from a terminal:
Code: [Select]
$ /opt/linux-dwarf-pack/soundsense-rs/soundsense-rs-v1.5.1-linux
Did the menu work? and are there any errors reported in the terminal?
Same issue here on Gentoo/Xmonad. Being Gentoo pretty much have latest versions of most packages - happy to provide more info in helpful. I saw on SoundSense-RS's github issues a similar problem that the dev says is related to webview/webviewx, but no idea if its the same. https://github.com/prixt/soundsense-rs/issues/8
Menu's still drop down when the pointer is over them, but clicking on, say, 'About' does nothing.
Nothing reported in the terminal. No errors. Nothing.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: billyd on July 06, 2021, 04:13:28 pm
Just wanted to add to my previous post - the issue with soundsense-rs was solved by ensuring the channelSettings.xml file was present in the soundpack directory. Found this by chance by downloading and installing https://github.com/jecowa/soundsensepack which includes this file. The original soundpack did not have it.  Works as expected now!
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: ronnietucker on July 07, 2021, 04:29:19 am
Just wanted to add to my previous post - the issue with soundsense-rs was solved by ensuring the channelSettings.xml file was present in the soundpack directory. Found this by chance by downloading and installing https://github.com/jecowa/soundsensepack which includes this file. The original soundpack did not have it.  Works as expected now!

Cool! So where would I copy the channelSettings.xml file to?
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: Jazz Cat on July 07, 2021, 07:20:24 pm
This is a dumb question, but how do I download the nightly build? The .deb is listed in the artifacts, but I can't click on it.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: lethosor on July 07, 2021, 10:38:42 pm
This is a dumb question, but how do I download the nightly build? The .deb is listed in the artifacts, but I can't click on it.
You need to be signed in to GitHub.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: Podesta on July 17, 2021, 07:38:37 pm
Confirming that soundsense is currently also broken for me (Kubuntu 20.04). But it seems to be unrelated to the LNP, and a problem with soundsense itself. I downloaded their releases from github and tested versions 1.5.1, 1.4.4 and 1.3.4, all broken for me. It can load both the gamefile and soundpack directory, both with command line options and with the default folder, but it simply ignores all buttons on the gui. Hovering over "Load", "Settings" and "Options" it expands the menu, but the buttons do nothing. Also, changing the volume, clicking the pause/play, skip, etc, also do nothing. Going into the "Inspect Element" you can see all the ReferenceErrors.

Issue have already been reported on github (a couple months ago), with possible fix suggested and PR open (a couple days ago) but I believe the author hasn't been around for a bit.
 - https://github.com/prixt/soundsense-rs/issues/19
 - https://github.com/prixt/soundsense-rs/pull/21

If you want to use the tool, you can simply download the sounpack (https://github.com/jecowa/soundsensepack - download as zip), and unpack all the files into the soundsense folder inside a folder named soundpack, which is the default settings (If installed with the .deb, the folder would be "/home/USERNAME/.local/share/linux-dwarf-pack/soundsense-rs/soundpack". If the path does not exist, you can simply create the directories. I guess you could use the root installation folder too, but no sense in doing so). Hopefully the fix is merged soon.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: ronnietucker on July 18, 2021, 04:29:24 am
Confirming that soundsense is currently also broken for me (Kubuntu 20.04). But it seems to be unrelated to the LNP, and a problem with soundsense itself. I downloaded their releases from github and tested versions 1.5.1, 1.4.4 and 1.3.4, all broken for me. It can load both the gamefile and soundpack directory, both with command line options and with the default folder, but it simply ignores all buttons on the gui. Hovering over "Load", "Settings" and "Options" it expands the menu, but the buttons do nothing. Also, changing the volume, clicking the pause/play, skip, etc, also do nothing. Going into the "Inspect Element" you can see all the ReferenceErrors.

Issue have already been reported on github (a couple months ago), with possible fix suggested and PR open (a couple days ago) but I believe the author hasn't been around for a bit.
 - https://github.com/prixt/soundsense-rs/issues/19
 - https://github.com/prixt/soundsense-rs/pull/21

If you want to use the tool, you can simply download the sounpack (https://github.com/jecowa/soundsensepack - download as zip), and unpack all the files into the soundsense folder inside a folder named soundpack, which is the default settings (If installed with the .deb, the folder would be "/home/USERNAME/.local/share/linux-dwarf-pack/soundsense-rs/soundpack". If the path does not exist, you can simply create the directories. I guess you could use the root installation folder too, but no sense in doing so). Hopefully the fix is merged soon.

Yep. Manually downloading and adding the soundpack worked a treat. Thanks for that!

I had to create the /soundsense-rs and /soundpack folders myself.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: psychowico on August 08, 2021, 01:11:39 am
Hi. It is expected that everytime I changing "Graphics", the "Print mode" change automatically to "2D" instead of "TBWT" ?
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: Jazz Cat on August 09, 2021, 11:42:15 am
Is there a refreshier way to refresh the tileset folders? I'm using a wip tileset and I've changed the actual png, but the changes aren't showing up in-game, even on a new save file. Tilesets I've removed from the folder are also still showing up in LNP's list, too.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: onarum on August 21, 2021, 08:24:34 am
I got soundsense to work by manually downloading the pack, but the volume settings don't work, actually nothing in the GUI works at all, skipping, pausing, none of the menus (the menus show the options, but clicking them does nothing)

Is there a workaround?

I notice there's an "set current volumes as default" option, I imagine it creates some text configuration file somewhere, does anyone have this file to post as an example? that way I can create it myself and just set the volumes manually, I imagine it would at least load the settings on start

Not that big of a deal really, I can just just set the volume system wide for soundsense (otherwise it's really loud), but being able to manually set volumes for the different channels would be nice.

edit: tested the latest nightly (LinuxDwarfPack-4a71616.deb) and the GUI problem is fixed, volume sliders and the skip/pause buttons work as intended, though it's not creating the volume config file when you try to set the defaults, so whenever it starts it's always at maximum volume.

edit2: scratch that, it did create the files, under /home/user/.config/soundsense-rs, but it's not loading the settings

edit3: scratch that again again.... for whatever reason the "total" channel doesn't load it's setting from the file *shrugs*, but the rest of the channels do.
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: McArcady on August 23, 2021, 04:30:56 pm
I got soundsense to work by manually downloading the pack, but the volume settings don't work, actually nothing in the GUI works at all, skipping, pausing, none of the menus (the menus show the options, but clicking them does nothing)

Thanks to DHMike57, the pack now includes a patched version of SoundSense-RS. Not sure that it solves all your problems, but you may give it a try with one of the builds here (https://github.com/McArcady/lnp-forge/actions/runs/1160182348) (requires a github account).
Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: onarum on August 24, 2021, 12:56:52 pm
I got soundsense to work by manually downloading the pack, but the volume settings don't work, actually nothing in the GUI works at all, skipping, pausing, none of the menus (the menus show the options, but clicking them does nothing)

Thanks to DHMike57, the pack now includes a patched version of SoundSense-RS. Not sure that it solves all your problems, but you may give it a try with one of the builds here (https://github.com/McArcady/lnp-forge/actions/runs/1160182348) (requires a github account).

It does! now the GUI works, the volume sliders, the skip/pause buttons and everything

The only weird thing is that when you save volume levels as default, for whatever reason, the "total" channel doesn't load it's setting from the file, the rest of the channels do though, but that's a minor issue.

Title: Re: LinuxDwarfPack-0.47.05-r2 (with DFHack r1)
Post by: ronnietucker on August 24, 2021, 01:12:31 pm
I got soundsense to work by manually downloading the pack, but the volume settings don't work, actually nothing in the GUI works at all, skipping, pausing, none of the menus (the menus show the options, but clicking them does nothing)

Thanks to DHMike57, the pack now includes a patched version of SoundSense-RS. Not sure that it solves all your problems, but you may give it a try with one of the builds here (https://github.com/McArcady/lnp-forge/actions/runs/1160182348) (requires a github account).

Can confirm that Soundsense now works as expected in Ubuntu 21.04.

For others coming from r2: requires installing openjre.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: LoneIgadzra on September 11, 2021, 12:54:34 pm
Does anybody have a working setting for the "Configure terminal" window? I am on Pop OS, which is basically Ubuntu. Everything I have tried just errors out:

1. /usr/bin/xterm
2. /usr/bin/gnome-terminal

I'm at a loss.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on September 12, 2021, 04:28:32 pm
Does anybody have a working setting for the "Configure terminal" window? I am on Pop OS, which is basically Ubuntu.
Have you tried in: file > configure terminal
Code: [Select]
xterm -e $
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: erwin on November 01, 2021, 09:46:45 am
Hi. Tried your pack and it works, but I don't have any transparency in the game. How to fix it?

Code: [Select]
» uname -a                                     
Linux devent-X705UD 5.4.0-89-generic #100-Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Code: [Select]
Loading bindings from data/init/interface.txt
Resetting textures
TWBT: version 5.xx
TWBT: no display patch (not an error)
Cannot enable autonestbox without a world!
Map is not available!
Fixed feeding timers for 0 citizens.
unstuck 0 doors
World is not loaded: please load a game first.
DFHack is ready. Have a nice day!
DFHack version 0.47.05-r3 (release) on x86_64
Type in '?' or 'help' for general help, 'ls' to see all commands.
Unit transparency enabled
Workshop transparency enabled
Forced redraw mode enabled
Autonestbox stopped.
Emptied 0 buckets.
Fat dwarves cured: 0
Lag sources: 0
unstuck 0 doors
Found and unstuck 0 construct building jobs.
Deterioration of old clothes commencing...
Deterioration of body parts commencing...
Deterioration of food commencing...
Attempting to load color palette file: "/data/save/region2/raw/colors_spring.txt"
mousequery: edge scrolling disabled
[DFHack]# twbt unit_transparency 1
Unit transparency enabled
[DFHack]#

(https://www.muellerpublic.de/wp-content/uploads/2021/11/df_lnp_no_trans_1.png)

(https://www.muellerpublic.de/wp-content/uploads/2021/11/df_lnp_no_trans_2.png)
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: onarum on November 01, 2021, 09:50:50 pm
Hi. Tried your pack and it works, but I don't have any transparency in the game. How to fix it?

Make sure the graphics pack installed has the "TWBT" in parentheses, all packs have 2 entries in the launcher, like for instance you have Phoebus and Phoebus(TWBT).

Even if the one installed is the TWBT one, reinstall it, then make sure to click "Update savegames"


Also check if "TWBT" is selected as the printmode, given your log it seems it is, but just to be  sure.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: erwin on November 02, 2021, 11:16:59 am
Hi. Tried your pack and it works, but I don't have any transparency in the game. How to fix it?

Make sure the graphics pack installed has the "TWBT" in parentheses, all packs have 2 entries in the launcher, like for instance you have Phoebus and Phoebus(TWBT).

Even if the one installed is the TWBT one, reinstall it, then make sure to click "Update savegames"


Also check if "TWBT" is selected as the printmode, given your log it seems it is, but just to be  sure.

Thank you. But it makes no difference. I changed a view tilesets with TWBT, all save folders were updated.

(https://www.muellerpublic.de/wp-content/uploads/2021/11/df_lnp_no_trans_3.png)

(https://www.muellerpublic.de/wp-content/uploads/2021/11/df_lnp_no_trans_3_lnp.png)
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: erwin on November 02, 2021, 11:35:37 am
Hi. Tried your pack and it works, but I don't have any transparency in the game. How to fix it?

Make sure the graphics pack installed has the "TWBT" in parentheses, all packs have 2 entries in the launcher, like for instance you have Phoebus and Phoebus(TWBT).

Even if the one installed is the TWBT one, reinstall it, then make sure to click "Update savegames"


Also check if "TWBT" is selected as the printmode, given your log it seems it is, but just to be  sure.

Now it works. I see that multilevel 5 was set to 0. The black background around units also disappeared, don't know why.

(https://www.muellerpublic.de/wp-content/uploads/2021/11/df_lnp_no_trans_4.png)

Can it be that the dfhack init file in raw/onLoad_gfx_Vettlingr.init is not loaded?
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on November 02, 2021, 04:31:24 pm
Now it works. I see that multilevel 5 was set to 0. The black background around units also disappeared, don't know why.

One thing to remember:
Always use the menu "Folders > Main Folder" to browse and access DFHack init files.
This points to a seemingly temporary directory in /tmp, but your modifications are transparently saved in your home folder at a safe location $XDG_DIR/linux-dwarf-pack (which usually resolves to: ~/.local/share/linux-dwarf-pack).
In any case do not edit the .init files in /opt/linux-dwarf-pack, or they will be overwritten at the next update.

Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: erwin on November 03, 2021, 02:02:45 am
Now it works. I see that multilevel 5 was set to 0. The black background around units also disappeared, don't know why.

One thing to remember:
Always use the menu "Folders > Main Folder" to browse and access DFHack init files.
This points to a seemingly temporary directory in /tmp, but your modifications are transparently saved in your home folder at a safe location $XDG_DIR/linux-dwarf-pack (which usually resolves to: ~/.local/share/linux-dwarf-pack).
In any case do not edit the .init files in /opt/linux-dwarf-pack, or they will be overwritten at the next update.

Because I modded the game, I copied the LNP directory to my home and start LNP directly.

Does it really help with load/save time to have it in the /tmp directory? I have a hybrid hard drive (SSD+HDD).
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on November 03, 2021, 04:37:06 pm
Does it really help with load/save time to have it in the /tmp directory? I have a hybrid hard drive (SSD+HDD).
It was not meant for performance, but to keep the game saves and configuration separate from the binaries.
By default, the pack installs itself in /opt/linux-dwarf-pack, but the directory for configuration and data files is in the user's home. At startup, both directories are 'merged' in a temporary location in /tmp/lnp-..., which is deleted when the LNP is closed.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: Reititin on December 30, 2021, 02:18:48 pm
Hello, and thanks for maintaining this package!

I keep getting this unfortunate error.

(https://i.imgur.com/ZYsPkrD.png)

Here's the temp directory if it helps. I'm baffled how the installation directory is not found.

(https://i.imgur.com/1edW28O.png)

I've traced the relevant code here, but I can't think of anything actionable based on it
https://github.com/Pidgeot/python-lnp/blob/master/core/df.py#L20

E: I already did try rm -rf * and reinstall
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on January 01, 2022, 06:10:30 pm
Hello, and thanks for maintaining this package!
I keep getting this unfortunate error.
(https://i.imgur.com/ZYsPkrD.png)

E: I already did try rm -rf * and reinstall

Thanks for reporting this error.
What distro do you use and how did you install the package? (rpm, deb, arch, ...)
After install, the package files shall be found in /opt/linux-dwarf-pack.
The error suggests that directory /opt/linux-dwarf-pack/df_47_05_linux was missing...
By any chance did you move/remove any files from this dir after install ?
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: Reititin on January 02, 2022, 04:48:56 am
Hi McArcady and thanks for getting back to me,

Here's tail /proc/version: Linux version 5.8.0-63-generic (buildd@lcy01-amd64-028) (gcc (Ubuntu 10.3.0-1ubuntu1~20.10) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.35.1) #71-Ubuntu SMP Tue Jul 13 15:59:12 UTC 2021

Here's ls /opt/linux-dwarf-pack:

(https://i.imgur.com/j5hvl9H.png)

I first installed with AppImage. Everything worked great for a while. I have a tendency to generate a lot of worlds so I keep removing save files, which might be a cause for a human error problem here.
I just noticed /opt/linux-dwarf-pack/df_47_05_linux/data was missing dir save. Tried to create it, didn't fix the problem.

Anyway. AppImage I didn't know how to fix with that problem, so I went with .deb next. As an aside: I had problems with Java packages trying to come from a groovy repository (with missing release files or something or other), which took me a while to get sorted. I think it might have been my apt repositories that were the problem but if it's something that's fixable on your end, it'd be great. So anyways, .deb didn't fix it, I went to the Python code, couldn't think of anything out of it, came here to cry and set up my own install.

Now the thing is. It's clearly something I messed up but also something that reinstalls won't fix. I don't think I messed much with anything other than removing the saves but then again, missing files would probably be something a reinstall would have fixed.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on January 02, 2022, 08:41:29 am
I just noticed /opt/linux-dwarf-pack/df_47_05_linux/data was missing dir save. Tried to create it, didn't fix the problem.

Anyway. AppImage I didn't know how to fix with that problem, so I went with .deb next. As an aside: I had problems with Java packages trying to come from a groovy repository (with missing release files or something or other), which took me a while to get sorted. I think it might have been my apt repositories that were the problem but if it's something that's fixable on your end, it'd be great. So anyways, .deb didn't fix it, I went to the Python code, couldn't think of anything out of it, came here to cry and set up my own install.

Now the thing is. It's clearly something I messed up but also something that reinstalls won't fix. I don't think I messed much with anything other than removing the saves but then again, missing files would probably be something a reinstall would have fixed.

Alright, the problem may be your ~/.local/share/linux-dwarf-pack.
This is how it works:
- the startup script /opt/linux-dwarf-pack/linux-dwarf-pack.sh creates a (temporary) overlay between files from /opt/linux-dwarf-pack and files from ~/.local/share/linux-dwarf-pack. This mechanism allows a clean separation of read-only files (like binaries) and mutable files (like game saves, configuration files, ...). When the .deb package is updated or removed, binaries in /opt/linux-dwarf-pack are updated/removed, but the configuration files and game saves remain untouched in ~/.local/share/linux-dwarf-pack.
- to verify that the problem comes from ~/.local/share/linux-dwarf-pack, just move/backup this dir elsewhere and restart the game
- if the LNP interface starts up correctly this time, then you could reimport the game saves (from the backed-up dir) using the File menu

In your case I would recommend using the .deb package.
You shouldn't have to manually modify files in /opt/linux-dwarf-pack, and if you need to modify/sort/delete game saves, preferably do this:
- start the LNP interface
- use the menu Folder to open the temporary directory of the overlay
- modify your files from there ; modifications will be saved in ~/.local/share/linux-dwarf-pack (you won't lose them when the interface is closed, even though the overlay directory is a temporary dir like /tmp/lnp-...)

Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: Reititin on January 02, 2022, 12:09:50 pm
Yeah, that did it. Namely, I nuked the ~/.local/share/linux-dwarf-pack directory entirely. Thanks!
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on January 03, 2022, 05:08:54 am
Great!
Regarding the java problem, are there any missing  dependencies that prevent LegendsBrowser from running on your system?
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: Reititin on January 03, 2022, 09:35:50 am
Not anymore. The dependencies made me unable to run this package at all, but I'm sure they were for Legends Browser, yes.

I'm sorry, this is a part I'm the least knowledgeable about on Linux systems. So basically the repositories were missing a release file and therefore my system didn't want to download them. I applied my superior problem solving skills

Spoiler (click to show/hide)

and it took me while to find something with "sed" and http://old-releases.ubuntu.com. This solved the problem for me.

Now I don't know if it was something on my system causing apt to look for the java package in a dated repository or if it was the linux-dwarf-pack -package pointing to a dated repository.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: lethosor on January 03, 2022, 08:27:08 pm
Here's tail /proc/version: Linux version 5.8.0-63-generic (buildd@lcy01-amd64-028) (gcc (Ubuntu 10.3.0-1ubuntu1~20.10) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.35.1) #71-Ubuntu SMP Tue Jul 13 15:59:12 UTC 2021
Does that mean you're using Ubuntu 20.10? The output of "lsb_release -a" might be a bit easier to understand.

If so, then the problem is that Ubuntu 20.10 reached end-of-life almost 6 months ago (July 2021), which means that package updates are no longer available in the usual location. You would run into the same issue attempting to install/upgrade any package (although you can work around it by switching to old-releases, like you did).

My advice is to upgrade with do-release-upgrade at your earliest convenience. I believe that would bring you up to 21.04, which reaches end-of-life later this month, and you might not be able to upgrade to it easily beyond that point. From there, you should be able to upgrade to 21.10.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: javascripter on February 26, 2022, 12:27:29 pm
hello,

am trying to build on linux from scratch, getting an error that I have no idea the cause or any potential solutions:

[ERROR]      /sources/lnp-forge-0.47.05-r3/.build/src/dfhack-0.47.05-r3/plugins/twbt/config.hpp:580:77: error: taking address of rvalue [-fpermissive]
[ALL  ]        580 |                     static_cast<std::ostringstream*>(&(std::ostringstream() << idx))->str();


am building 64 bit version, looked at the menuconfig but didn't save anything

aside from the dependencies listed in the readme I also had to build help2man, rsync, and mercurial before the configuration was happy, so possibly i'm missing another dependency which is on most distributions but I am unaware of
also am using java 16, java 8 was having some problems which I think were from missing libraries, as I understand it isn't used for building anything so that shouldn't matter

put build.log here: https://pastebin.com/23vUT6Dm
not sure this is even a problem with this, since it occurs during the ninja install for dfhack, though the error is in some twbt files which confuses me

thanks for any help


EDIT: forgot I was going to ask about that Known issues.txt, looked a bit and wasn't able to find it
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on February 27, 2022, 04:37:31 pm
[ERROR]      /sources/lnp-forge-0.47.05-r3/.build/src/dfhack-0.47.05-r3/plugins/twbt/config.hpp:580:77: error: taking address of rvalue [-fpermissive]
[ALL  ]        580 |                     static_cast<std::ostringstream*>(&(std::ostringstream() << idx))->str();
Hi,
See my reply on github (https://github.com/McArcady/lnp-forge/issues/66) for testing the build with option '-fpermissive'.
If it works we'll add a (temporary) patch for DFHack.
I've also fixed the README. Mercurial is no longer necessary and will be removed from 'configure.ac'
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: javascripter on February 28, 2022, 12:18:21 pm
replied in the github issue; not sure how I didn't manage to find that before posting here

is another problem, but I have a couple things to try, depending on result of that I'll open an issue in the github or put a reply here (or edit this reply if I get it working tonight)
EDIT: turns out I'm missing some x libraries (so far at least pango, gtk-pixbuf, and atk), I managed to find them listed in dwarf fortress dependencies (though failures are occuring when soundsense is building), but only now that I know what I'm looking for (in the freeBSD section, looks like these libraries come in any version of linux actually in use)
probably I should just install all the x libraries,

by the way, thanks for maintaining this package, it is nice to have relatively low effort way to get dfhack and dwarf therapist working
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: lethosor on March 01, 2022, 04:13:37 pm
[ERROR]      /sources/lnp-forge-0.47.05-r3/.build/src/dfhack-0.47.05-r3/plugins/twbt/config.hpp:580:77: error: taking address of rvalue [-fpermissive]
[ALL  ]        580 |                     static_cast<std::ostringstream*>(&(std::ostringstream() << idx))->str();
Hi,
See my reply on github (https://github.com/McArcady/lnp-forge/issues/66) for testing the build with option '-fpermissive'.
If it works we'll add a (temporary) patch for DFHack.
I've also fixed the README. Mercurial is no longer necessary and will be removed from 'configure.ac'

This looks to me like an issue with TWBT and newer compilers. DFHack has already fixed a similar issue in this commit (https://github.com/DFHack/dfhack/commit/39c650de131f85ea74d1f7638c3ea630faed5c15), so I suspect a similar code change could be made to TWBT.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: javascripter on March 02, 2022, 02:44:35 pm
so those three dependencies I was missing before were also dependnecies to gtk+-2; which is a dependency for dwarf fortress as well, I just missed it because I'm bad at reading dependency lists intended for package manager

also missing some soundsense dependencies, but managed to find the github page for that which has a dependency list

and by found I mean I finally remembered to grep build.log before running the build a second time
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: Nazgul203 on March 06, 2022, 02:32:43 pm
Hello,

I've been trying to get this to work on my Arch install, but am unable. I got it installed using pacman and made sure I had all dependencies. I opened the LNP launcher and that worked fine, I could also open it from the terminal using the .sh command. But whenever I tried to launch the game, nothing would happen. When I launch the LNP from the terminal then press Play Dwarf Fortress I get the message "nohup: ignoring input and appending output to 'nohup.out'" which I've looked up but can't figure out how to fix. I would love to be able to use this pack. I use Konsole as my terminal, and when I press play it pops up for a split second.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on March 06, 2022, 03:51:39 pm
Would you have a copy of the log from the terminal?
(the message "nohup: ignoring input..." is a harmless warning)
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: Nazgul203 on March 07, 2022, 11:30:14 am
Would you have a copy of the log from the terminal?
(the message "nohup: ignoring input..." is a harmless warning)

The terminal pops up for a split second and then disappears, from what I see it isn't saying anything. However, when I launch the pack from the terminal and attempt to play, it says:

Quote
Starting LinuxDwarfPack
- configuration and game saves are stored in /home/connorm/.local/share/linux-dwarf-pack
- feedback or issues? see http://www.bay12forums.com/smf/index.php?topic=157712
- created with lnp-forge: https://github.com/McArcady/lnp-forge

Creating overlay of /home/connorm/.local/share/linux-dwarf-pack and /opt/linux-dwarf-pack in /tmp/lnp-cIqLnw...
WARNING: Field PRIESTHOOD_UNIT_COUNTS seems to be missing from file ./df_47_05_linux/data/init/d_init.txt!
WARNING: Field GUILD_UNIT_COUNTS seems to be missing from file ./df_47_05_linux/data/init/d_init.txt!
INFO: Read installed graphics (CLA) from log
nohup: ignoring input and appending output to 'nohup.out'

And then the terminal that it launches opens and closes, but the terminal that I ran the .sh from stays open.

Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on March 10, 2022, 04:01:34 pm
Creating overlay of /home/connorm/.local/share/linux-dwarf-pack and /opt/linux-dwarf-pack in /tmp/lnp-cIqLnw...
WARNING: Field PRIESTHOOD_UNIT_COUNTS seems to be missing from file ./df_47_05_linux/data/init/d_init.txt!
WARNING: Field GUILD_UNIT_COUNTS seems to be missing from file ./df_47_05_linux/data/init/d_init.txt!
INFO: Read installed graphics (CLA) from log
nohup: ignoring input and appending output to 'nohup.out'

Try this:
Code: [Select]
$ mv /home/connorm/.local/share/linux-dwarf-pack/df_47_05_linux/data/init/d_init.txt /home/connorm/.local/share/linux-dwarf-pack/df_47_05_linux/data/init/d_init.txt.bakthen start the LNP again.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: Jazz Cat on June 02, 2022, 12:16:01 pm
Apologies if this has already been asked, but I've found that when I close the launcher, DFHack stops recognizing some of the scripts (quicksave and gui/dfstatus at least, and not tiletypes, haven't done extensive testing). Is there a way to prevent that, or do I just have to keep the launcher open while I'm playing?

Thanks!
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: myk on June 02, 2022, 02:22:52 pm
When you say that DFHack stops recognizing the scripts, does that mean you get an error message from DFHack when you try to run them? What error message do you get?

Closing the launcher after starting DFHack and DF shouldn't make a difference. They're completely separate programs.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on June 02, 2022, 04:32:43 pm
Closing the launcher after starting DFHack and DF shouldn't make a difference. They're completely separate programs.
It probably does because the temp directory where are merged the binaries (from /opt/linux-dwarf-pack/) and config files (from ~/.local/share/linux-dwarf-pack) is unmounted when the launcher is closed.
The DF/DFHack process stills lives but its base directory has been unmounted.
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: lethosor on June 02, 2022, 09:09:25 pm
It probably does because the temp directory where are merged the binaries (from /opt/linux-dwarf-pack/) and config files (from ~/.local/share/linux-dwarf-pack) is unmounted when the launcher is closed.
Which launcher does this? I don't remember this being a PyLNP feature. Do you have an extra wrapper around PyLNP?

I don't think any program can reasonably be expected to function if its data files are unmounted from under it. Could the launcher keep track of the subprocesses that it launches and delay unmounting until they exit?
Title: Re: LinuxDwarfPack-0.47.05-r3 (with DFHack r3)
Post by: McArcady on June 05, 2022, 05:51:44 am
It probably does because the temp directory where are merged the binaries (from /opt/linux-dwarf-pack/) and config files (from ~/.local/share/linux-dwarf-pack) is unmounted when the launcher is closed.
Which launcher does this? I don't remember this being a PyLNP feature. Do you have an extra wrapper around PyLNP?
I don't think any program can reasonably be expected to function if its data files are unmounted from under it. Could the launcher keep track of the subprocesses that it launches and delay unmounting until they exit?
Yes, the LinuxDwarf Pack provides a wrapper-script around PyLNP, that mounts and run everything from a temporary filesystem (unionfs) in /tmp/lnp-XXXXXX. It is intended to keep binaries and data/config files in separate directories.
As a consequence, PyLNP is not supposed to be stopped while DFHack and the game are running. I don't see any easy way to remove this constraint.
Title: Re: LinuxDwarfPack-0.47.05-r5 (with DFHack r5)
Post by: McArcady on June 05, 2022, 11:32:54 am
The LinuxDwarfPack has been updated to include DFHack 0.47.05-r5 and LegendsBrowser 2.
Title: Re: LinuxDwarfPack-0.47.05-r5 (with DFHack r5)
Post by: McArcady on June 19, 2022, 07:59:33 am
The LinuxDwarfPack has been updated to include DFHack 0.47.05-r5 and LegendsBrowser 2.
release r6
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: madpathmoth on June 24, 2022, 02:56:56 am
Oh my god, thank you so much for this.  I'm currently restricted to using a Chromebook, which means no .exe files, and I have to use their proprietary Linux called Crostini, which thankfully is *mostly* compatible with Debian stuff so I was able to install this without issue.

However, I'm unable to get LNP to launch DF, specifically DF hack, because I can't configure a command terminal.  I have no clue what it wants; my attempts always fail, and the closest I got was it telling me "parent process blocked by child" which is probably something related to how restrictive this ChromeOS is, but I don't really know.
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: madpathmoth on July 04, 2022, 11:39:59 pm
So I was able to get LNP to load a terminal; as it turns out the name for the default Crostini terminal is
Code: [Select]
x-terminal-emulator
However...  Now it just opens up the terminal and then nothing happens.  Neither Dwarf Fortress nor DFHack launch, and I'm not sure what I'm doing wrong, or what I'm supposed to do next.
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: lethosor on July 05, 2022, 11:02:10 am
Code: [Select]
x-terminal-emulator

Did you set just this up as a terminal command? Looking at the source code (https://github.com/Pidgeot/python-lnp/blob/e738c0003e119e92478c831b94a5fd44a52031c6/core/terminal.py#L258), most supported terminals require at least one additional argument to tell the terminal to execute a specific command on startup instead of opening a shell. In your case, you might want to add "-e" or "--command" at the end.
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: madpathmoth on July 05, 2022, 11:46:18 am
Did you set just this up as a terminal command? In your case, you might want to add "-e" or "--command" at the end.

You're correct, that's all I had entered.  I tried adding "-e", and then later "--command" instead of "-e", but neither seem to have made progress unfortunately.

Spoiler: Desktop Screenshot (click to show/hide)

I'm not really getting much in the way of feedback to even try and decipher where to look if I want to learn what's not working...
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: McArcady on July 05, 2022, 03:15:46 pm
Did you set just this up as a terminal command? In your case, you might want to add "-e" or "--command" at the end.
You're correct, that's all I had entered.  I tried adding "-e", and then later "--command" instead of "-e", but neither seem to have made progress unfortunately.
Did you try:
"Custom command" and "x-terminal-emulator -e $"
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: madpathmoth on July 05, 2022, 04:47:13 pm
Did you try:
"Custom command" and "x-terminal-emulator -e $"

I have now that you've suggested it, but there was no noticeable change in the result from my previous post.
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: myk on July 07, 2022, 04:50:51 pm
could it be a PATH issue? maybe try putting the full path to x-terminal-emulator in the custom command.
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: madpathmoth on July 08, 2022, 03:14:22 am
could it be a PATH issue? maybe try putting the full path to x-terminal-emulator in the custom command.

I don't understand that.  I lack the context or knowledge to do that or find that information.  I don't know enough to know if that sounds plausible or not either, but, if it was a matter of the terminal's location being unclear, wouldn't it fail to launch the terminal in the first place, instead of launching it and then doing nothing?
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Ziusudra on July 08, 2022, 04:22:23 am
Quote from: https://www.reddit.com/r/Crostini/comments/syxw23/comment/hzl8314/?utm_source=share&utm_medium=web2x&context=3
The x-terminal-emulator command is actually a wrapper of garcon written in shell script
...
In my experience garcon will drop any command arguments when invoking the terminal chrome app.

Op will need to install a Linux terminal app and call that directly.

Maybe try installing a different terminal emulator? https://www.reddit.com/r/Crostini/comments/8gku8y/psa_you_can_install_a_better_terminal_emulator/
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Jostino on August 12, 2022, 02:42:40 am
Hello,
foremost, thanks for this amazing pack!
Secondly, I want to share my experience with the pack on my Manjaro distro (Arch).
I was trying to launch the game through the big button "Play DwarfFortress" after the configuration of the terminal (kitty, in my case). Everything worked fine, test was successful, but pressing that button the terminal appeared and disappeared in a sec.
So I tried to launch from the terminal directly the "df" file:
Code: [Select]
❯ sudo bash /tmp/lnp-7k5ekr/df_47_05_linux/df
./libs/Dwarf_Fortress: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory

So I searched that lib and installed what was useful in my opinion:
Code: [Select]
❯ yay -Ss libsdl
aur/pipepanic 0.1.3-6 (+0 0.00)
    Pipe connecting game using libSDL
aur/sdlblocks 1-7 (+1 0.00)
    A Tetris remake written in C using libSDL
multilib/lib32-sdl_image 1.2.12-7 (28.5 KiB 62.4 KiB)
    A simple library to load images of various formats as SDL surfaces (32-bit)
community/sdl_image 1.2.12-7 (28.5 KiB 64.3 KiB)
    A simple library to load images of various formats as SDL surfaces

❯ yay -S sdl_image
❯ yay -S lib32-sdl_image

Still unlucky:
Code: [Select]
❯ sudo bash /tmp/lnp-7k5ekr/df_47_05_linux/df
./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory

Then:
Code: [Select]
❯ yay -Ss sdl_ttf
multilib/lib32-sdl_ttf 2.0.11-6 (17.7 KiB 42.4 KiB)
    A library that allows you to use TrueType fonts in your SDL applications (32-bit)
community/sdl_ttf 2.0.11-6 (16.2 KiB 41.3 KiB)
    A library that allows you to use TrueType fonts in your SDL applications
❯ yay -S sdl_ttf


It WORKS!
Code: [Select]
❯ sudo bash /tmp/lnp-7k5ekr/df_47_05_linux/df
Sound devices available:
OpenAL Soft
Picking OpenAL Soft. If your desired device was missing, make sure you have the appropriate 32-bit libraries installed. If you wanted a different device, configure ~/.openalrc appropriately.
[ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
Initializing OpenAL failed, no sound will be played
Loading bindings from data/init/interface.txt
Resetting textures

I hope it will be helpful for some other Manjaro's users. :)
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: myk on August 12, 2022, 09:49:01 am
It's good to note that those dependencies are for Dwarf Fortress itself, not the LNP directly. It might be useful for you to add the specific commands you ran to install dependencies on the wiki https://dwarffortresswiki.org/index.php/System_requirements#Other_Operating_Systems so it will be discoverable by other Manjaro users. Maybe add it as a subsection under the Arch heading.

Edit: fixed wiki link
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: lethosor on August 12, 2022, 10:56:24 pm
It's good to note that those dependencies are for Dwarf Fortress itself, not the LNP directly. It might be useful for you to add the specific commands you ran to install dependencies on the wiki https://dwarffortresswiki.org/index.php/40d:System_requirements#Other_Operating_Systems so it will be discoverable by other Manjaro users. Maybe add it as a subsection under the Arch heading.

https://dwarffortresswiki.org/index.php/DF2014:Installation is the page you want. 40d is for v0.28.181.40d
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Ziusudra on August 12, 2022, 11:45:27 pm
If you use pacman (https://wiki.manjaro.org/index.php/Pacman_Overview) to install the *.pkg.tar.bz2 package file available here (https://github.com/McArcady/lnp-forge/releases/tag/0.47.05-r6) or here (https://github.com/McArcady/lnp-forge/actions?query=workflow%3A%22Build+LinuxDwarfPack+package%22), sdl_image and sdl_ttf are listed as dependencies thus will be installed automatically as needed.

(And running programs from /tmp is not advised.)
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Jostino on August 13, 2022, 04:38:58 am
It's good to note that those dependencies are for Dwarf Fortress itself, not the LNP directly. It might be useful for you to add the specific commands you ran to install dependencies on the wiki https://dwarffortresswiki.org/index.php/40d:System_requirements#Other_Operating_Systems so it will be discoverable by other Manjaro users. Maybe add it as a subsection under the Arch heading.
I'll try to fullfill this information in the page lethosor mentioned. Thanks!

If you use pacman (https://wiki.manjaro.org/index.php/Pacman_Overview) to install the *.pkg.tar.bz2 package file available here (https://github.com/McArcady/lnp-forge/releases/tag/0.47.05-r6) or here (https://github.com/McArcady/lnp-forge/actions?query=workflow%3A%22Build+LinuxDwarfPack+package%22), sdl_image and sdl_ttf are listed as dependencies thus will be installed automatically as needed.

(And running programs from /tmp is not advised.)

Thanks!
I know is not advised, but is where the LNP launch the game and everything, so I was testing there everything. :)
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Clatch on August 13, 2022, 11:42:46 am
It's been a LONG time since I've used LDP.  I seem to remember there was a feature to unload the graphics pack from a save game. 

I was checking out some of the tilesets that came with LDP on a save game.  Then I just wanted to remove the current selected one to install an ASCII tileset, but I could not find the option to unload the graphics?  I seem to remember there was an option to do that?

I went ahead and just deleted the previous tileset files by hand in the save game folder.  Did that option get moved somewhere else?  Otherwise, it might be nice to have a "Default" option under Change Graphics, so that any current graphic pack can be unloaded from the save game to reset things back to the original ascii defaults.
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Jostino on August 16, 2022, 04:29:20 am
Hello,
foremost, thanks for this amazing pack!
Secondly, I want to share my experience with the pack on my Manjaro distro (Arch).
I was trying to launch the game through the big button "Play DwarfFortress" after the configuration of the terminal (kitty, in my case). Everything worked fine, test was successful, but pressing that button the terminal appeared and disappeared in a sec.
So I tried to launch from the terminal directly the "df" file:
Code: [Select]
❯ sudo bash /tmp/lnp-7k5ekr/df_47_05_linux/df
./libs/Dwarf_Fortress: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory

So I searched that lib and installed what was useful in my opinion:
Code: [Select]
❯ yay -Ss libsdl
aur/pipepanic 0.1.3-6 (+0 0.00)
    Pipe connecting game using libSDL
aur/sdlblocks 1-7 (+1 0.00)
    A Tetris remake written in C using libSDL
multilib/lib32-sdl_image 1.2.12-7 (28.5 KiB 62.4 KiB)
    A simple library to load images of various formats as SDL surfaces (32-bit)
community/sdl_image 1.2.12-7 (28.5 KiB 64.3 KiB)
    A simple library to load images of various formats as SDL surfaces

❯ yay -S sdl_image
❯ yay -S lib32-sdl_image

Still unlucky:
Code: [Select]
❯ sudo bash /tmp/lnp-7k5ekr/df_47_05_linux/df
./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory

Then:
Code: [Select]
❯ yay -Ss sdl_ttf
multilib/lib32-sdl_ttf 2.0.11-6 (17.7 KiB 42.4 KiB)
    A library that allows you to use TrueType fonts in your SDL applications (32-bit)
community/sdl_ttf 2.0.11-6 (16.2 KiB 41.3 KiB)
    A library that allows you to use TrueType fonts in your SDL applications
❯ yay -S sdl_ttf


It WORKS!
Code: [Select]
❯ sudo bash /tmp/lnp-7k5ekr/df_47_05_linux/df
Sound devices available:
OpenAL Soft
Picking OpenAL Soft. If your desired device was missing, make sure you have the appropriate 32-bit libraries installed. If you wanted a different device, configure ~/.openalrc appropriately.
[ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
Initializing OpenAL failed, no sound will be played
Loading bindings from data/init/interface.txt
Resetting textures

I hope it will be helpful for some other Manjaro's users. :)

I realized today there is a package (by spaceslug) for Arch users who already packed everything (also dependencies), as AppImage, here (https://aur.archlinux.org/packages/dwarffortress-linuxdwarfpack-appimage).
It is also mentioned in the DF wiki with the link "other packages".
I recommend it.  8)
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: RabblerouserGT on August 17, 2022, 12:58:41 am
Yeah, I was just browsing the AUR and found out DF was there. LMAO. Thank God for the AUR. Currently running the close-to-Arch EndeavourOS and appreciate the ease of install from the AUR package.

Spaceslug, if you're here, I salute you.

That said I was looking at the comment there on the AUR. What is an "Arch package" and how does it differ from others?
I'm only just now dipping my feet into Arch with EndeavourOS and wasn't aware Arch even had its own package format.

P.S. Why isn't there also an option for the pretty distro-agnostic flatpak?
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: McArcady on September 11, 2022, 10:04:48 am
For those willing to beta-test the new DFHack-GUI (http://www.bay12forums.com/smf/index.php?topic=164123.msg8404962#msg8404962), a nightly build of the pack with the latest DFHack commits is available here: 
https://github.com/McArcady/lnp-forge/actions?query=branch%3Adfhack-nightly++ (https://github.com/McArcady/lnp-forge/actions?query=branch%3Adfhack-nightly++)
I recommend testing with the Appimage version, which may be used without replacing your regular install in /opt/linux-dwarf-pack/.
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: myk on September 12, 2022, 01:15:56 am
Nice! The next nightly build will get clickable scrollbars for DFHack GUI text boxes!

Just a FYI for those who don't click through to all the links: note that the location of DFHack init files has changed from the root of the Dwarf Fortress folder to dfhack-config/init. If you have made custom changes to your DFHack init files, copy just your changes to dfhack-config/init. If you haven't made any custom changes to DFHack init files, you don't have to do anything.

Here are some things you can try:

Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: myk on September 14, 2022, 04:46:23 pm
I should tell you that in order to support DFHack's work on usability and in-game configuration, the dfhack init files (dfhack*.init, onLoad*.init, onMapLoad*.init, and the others) have moved from the DF root directory to dfhack-config/init/.

the dfhack.history file (along with all other history files) will also be moving to dfhack-config/

For the pack, I think this means the following changes:

Edit: I filed a request for upstream LNP for the last two items: https://github.com/Pidgeot/python-lnp/issues/181
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: McArcady on September 21, 2022, 05:23:25 pm
Edit: I filed a request for upstream LNP for the last two items: https://github.com/Pidgeot/python-lnp/issues/181
The dfhack-nightly pack has been updated with the new PythonLNP 0.14b:
https://github.com/McArcady/lnp-forge/actions/workflows/build.yml?query=branch%3Adfhack-nightly++ (https://github.com/McArcady/lnp-forge/actions/workflows/build.yml?query=branch%3Adfhack-nightly++)
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: McArcady on September 21, 2022, 05:25:30 pm
Looking for Alpine Linux users to test the new LinuxDwarfPack with Alpine/APK format, available here (https://github.com/McArcady/lnp-forge/actions?query=branch%3Aalpine+).
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Bjorn on September 29, 2022, 02:09:01 pm
Hey there folks! I just downloaded the LinuxDwarfPack but am currently having trouble getting it to start the DF game. When I open the pack through the terminal I get some of its output, and when I click on the "Play Dwarf Fortress!" button, it gives out this output:

"./libs/Dwarf_Fortress: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory"

Any idea what I have to do? I'm using a Fedora 36 Workstation

EDIT: Also I don't know what I am supposed to put in the Configure Terminal input. I put a "$" on it and the test went through, but I feel I might not be doing what it is actually asking me to do.

EDIT2: I also tried to open the df file through the terminal and it gave out the same error
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: McArcady on September 29, 2022, 04:49:36 pm
Hey there folks! I just downloaded the LinuxDwarfPack but am currently having trouble getting it to start the DF game. When I open the pack through the terminal I get some of its output, and when I click on the "Play Dwarf Fortress!" button, it gives out this output:
"./libs/Dwarf_Fortress: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory"
Did you use the .rpm or the .tar.gz package?
Install package 'gtk2' and try again:
Code: [Select]
$ sudo dnf install gtk2
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Bjorn on October 03, 2022, 12:52:05 pm
That did the trick for starting the game, thanks! I used the installer. Now the only problem I still have is that I can't start the dwarf hack. I'm not sure what I have to put in the terminal configuration. I put "$"
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: McArcady on October 03, 2022, 01:00:04 pm
That did the trick for starting the game, thanks! I used the installer. Now the only problem I still have is that I can't start the dwarf hack. I'm not sure what I have to put in the terminal configuration. I put "$"
Great!
Try this:
Select "Custom command" then "x-terminal-emulator -e $"
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Bjorn on October 03, 2022, 02:18:51 pm
It says that the test failed and that I should see the log for details. I'm not sure where the log is placed.
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: McArcady on October 03, 2022, 03:47:46 pm
It says that the test failed and that I should see the log for details. I'm not sure where the log is placed.
You may also try installing package 'xterm' and use this command in the terminal configuration:
"xterm -e $"
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Bjorn on October 03, 2022, 08:53:37 pm
It worked! Thanks mate! Very happy that this utility exists!
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: Sprinkles_Gs on October 12, 2022, 02:14:33 pm
Not sure if this is the right forum to discuss but would there be significant work to release a flatpak?
Unfortunately, you can't really use pacman on Steam OS (as the Steam deck will wipe anything you change when you update).
Is this something that a newb to linux could do?

I've tested this abandoned version link (https://github.com/rszibele/dwarf-fortress-lnp-flatpak) and it works a charm, but it would be nice to align to a proper project like this one.
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: McArcady on October 17, 2022, 05:19:42 pm
I've tested this abandoned version link (https://github.com/rszibele/dwarf-fortress-lnp-flatpak) and it works a charm, but it would be nice to align to a proper project like this one.
Thanks for the link!
Too bad the author does not explain how the pack is built. It would be nice to look into that.
This AppImage (https://github.com/McArcady/lnp-forge/releases/download/0.47.05-r7/Dwarf_Fortress-0.47.05-r7-x86_64.AppImage) of the LinuxDwarfPack has the same purpose, except that for now the dependencies have to be installed manually (https://github.com/McArcady/lnp-forge/wiki/Installing-LinuxDwarfPack-dependencies).
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: nf_xp on November 11, 2022, 11:23:37 pm
Here is an up-to-date version: https://github.com/feng1st/dwarf-fortress-lnp-flatpak

To install:
wget https://github.com/feng1st/dwarf-fortress-lnp-flatpak/releases/download/v0.47.05-r7/com.bay12games.DwarfFortress.flatpak
flatpak install --user com.bay12games.DwarfFortress.flatpak

Usability of utilities:
Dwarf-Therapist works, Legends Browser 2 may work, other don't (due to the lack of some dependencies, which will bloat the flatpak so I didn't include them).

Not sure if this is the right forum to discuss but would there be significant work to release a flatpak?
Unfortunately, you can't really use pacman on Steam OS (as the Steam deck will wipe anything you change when you update).
Is this something that a newb to linux could do?

I've tested this abandoned version link (https://github.com/rszibele/dwarf-fortress-lnp-flatpak) and it works a charm, but it would be nice to align to a proper project like this one.
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: nf_xp on November 11, 2022, 11:30:50 pm
How to build:
flatpak-builder --user --install --force-clean build com.bay12games.DwarfFortress.yaml
or if you installed the flatpak version flatpak-builder:
flatpak run org.flatpak.Builder --user --install --force-clean build com.bay12games.DwarfFortress.yaml

How to pack locally:
flatpak run org.flatpak.Builder --repo=repo --force-clean build com.bay12games.DwarfFortress.yaml
flatpak build-bundle repo com.bay12games.DwarfFortress.flatpak com.bay12games.DwarfFortress

Those are in the build.sh script of https://github.com/feng1st/dwarf-fortress-lnp-flatpak.

I've tested this abandoned version link (https://github.com/rszibele/dwarf-fortress-lnp-flatpak) and it works a charm, but it would be nice to align to a proper project like this one.
Thanks for the link!
Too bad the author does not explain how the pack is built. It would be nice to look into that.
This AppImage (https://github.com/McArcady/lnp-forge/releases/download/0.47.05-r7/Dwarf_Fortress-0.47.05-r7-x86_64.AppImage) of the LinuxDwarfPack has the same purpose, except that for now the dependencies have to be installed manually (https://github.com/McArcady/lnp-forge/wiki/Installing-LinuxDwarfPack-dependencies).
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: McArcady on November 19, 2022, 07:55:32 am
How to build:
flatpak-builder --user --install --force-clean build com.bay12games.DwarfFortress.yaml
or if you installed the flatpak version flatpak-builder:
flatpak run org.flatpak.Builder --user --install --force-clean build com.bay12games.DwarfFortress.yaml

How to pack locally:
flatpak run org.flatpak.Builder --repo=repo --force-clean build com.bay12games.DwarfFortress.yaml
flatpak build-bundle repo com.bay12games.DwarfFortress.flatpak com.bay12games.DwarfFortress

Those are in the build.sh script of https://github.com/feng1st/dwarf-fortress-lnp-flatpak.
Nice work! Thanks for sharing.
May I ask why you did choose the KDE runtime instead of FreeDesktop or GNOME ?
I tried changing the runtime but the build of SDL_ttf then fails (missing FreeType2 library).
Title: Re: LinuxDwarfPack-0.47.05-r6 (with DFHack r6)
Post by: nf_xp on November 19, 2022, 11:37:05 pm
How to build:
flatpak-builder --user --install --force-clean build com.bay12games.DwarfFortress.yaml
or if you installed the flatpak version flatpak-builder:
flatpak run org.flatpak.Builder --user --install --force-clean build com.bay12games.DwarfFortress.yaml

How to pack locally:
flatpak run org.flatpak.Builder --repo=repo --force-clean build com.bay12games.DwarfFortress.yaml
flatpak build-bundle repo com.bay12games.DwarfFortress.flatpak com.bay12games.DwarfFortress

Those are in the build.sh script of https://github.com/feng1st/dwarf-fortress-lnp-flatpak.
Nice work! Thanks for sharing.
May I ask why you did choose the KDE runtime instead of FreeDesktop or GNOME ?
I tried changing the runtime but the build of SDL_ttf then fails (missing FreeType2 library).
Dwarf Therapist is a Qt app, and the KDE runtime has Qt built-in.
I had also tried to build the flatpak based on freedesktop runtime, figured out how to install the qt as a module, but the result flatpak is up to about 900M which is too huge to dispatch or share.
Title: Re: LinuxDwarfPack-0.47.05-r7 (with DFHack r7)
Post by: ChrysalisM on December 24, 2022, 01:20:10 am
I'm trying to get this to work, but how the heck do I find my terminal name?
Title: Re: LinuxDwarfPack-0.47.05-r7 (with DFHack r7)
Post by: myk on December 24, 2022, 02:16:58 am
google your desktop environment and append the word "terminal". I bet you'd get some good hits that way. Then just try the names you find online and see what runs on your system.

I'm running KDE, so my terminal is "konsole".