Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4 5

Author Topic: Lazy Newb Pack Installer for Linux  (Read 167440 times)

kahrkunne

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #15 on: October 26, 2013, 03:46:35 am »

not exactly sure where this has to go, also posted this in the launcher thread
anyways


OS: Arch GNU + Linux amd64, all packages current
LNP: Andrewp18's version (or whatever his name was)
Window Manager: Awesome WM (whatever version is in Arch' repos right now)
Java version: The lastest openJDK in Arch' repos
Sorry if some of this information is incomplete, I'm sort of in a hurry right now. You should be able to find exact version numbers with very little work though.
Issues:

- Opening any folder causes a window to pop up with a stack trace similair to this (this is the graphics folder button)
Code: [Select]
java.lang.IllegalStateException: Cannot open folder /home/kahr/bin/Dwarf Fortress/LNP/graphics!
at nl.dricus.df.action.OpenFolderAction.actionPerformed(OpenFolderAction.java:67)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.io.IOException: Failed to show URI:file:/home/kahr/bin/Dwarf%20Fortress/LNP/graphics/
at sun.awt.X11.XDesktopPeer.launch(XDesktopPeer.java:114)
at sun.awt.X11.XDesktopPeer.open(XDesktopPeer.java:77)
at java.awt.Desktop.open(Desktop.java:272)
at nl.dricus.df.action.OpenFolderAction.actionPerformed(OpenFolderAction.java:65)
... 36 more
Probably because I don't have a file manager installed, I would suggest surrounding the block of code that opens the file manager with try/catch and to open the location with a browser (most browsers support this nowadays) if no file manager is found

- Updating savegames after installing new graphics gives a stacktrace similair to this:
Code: [Select]
java.lang.NullPointerException
at nl.dricus.df.action.UpdateSavegamesAction.actionPerformed(UpdateSavegamesAction.java:56)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
As a result of this, when I start dwarf fortress I get a popup box that says
Code: [Select]
Not found: data/art/Obsidian_16x16.png (I have obsidian installed now, but something similair happens with all of the graphics sets, even ASCII Default)

- I can only access the little popup thingies in the top by clicking and holding the left mouse button over them. They do not stay open if I just click them, and the keys that are supposed to open them don't work (for example, R for run and l for Folders)

Also, the window with the stacktrace appears blank until I move it and when I scroll right, some of the text appears messed up, but that's just Swing being a piece of shit as always (oh god I hate Swing so much)
Logged

paridoth

  • Escaped Lunatic
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #16 on: October 27, 2013, 05:25:17 pm »

I am attempting to install this on linux mint 15. i downloaded it from github and am attempting to run the installer script when I get this.

Code: [Select]
paridoth@mint-laptop ~/df/df-lnp-installer $ ./df-lnp-installer.sh
Checking for dependencies...
qmake: could not find a Qt installation of ''
./df-lnp-installer.sh: 107: [: -eq: unexpected operator
Usage: file [-bchikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
            [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
       file -C [-m magicfiles]
       file [--help]
Usage: file [-bchikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
            [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
       file -C [-m magicfiles]
       file [--help]

df-lnp-installer.sh: Your computer is missing the following programs or libraries: xterm hg qmake_qt4 g++ libQtCore libQtGui libQtNetwork libQtScript libSDL-1.2_(32-bit) libSDL_image-1.2_(32-bit) libSDL_ttf-2.0_(32-bit) libOpenAL_1_(32-bit) libGLU_(32-bit) libGTK-x11_(32-bit) libJPEG62_(32-bit) . Install them using your distribution's package manager or use --skip-deps to override. Exiting.

so I attempt to install some of these dependencies with

Code: [Select]
paridoth@mint-laptop ~/df/df-lnp-installer $ sudo apt-get install xterm hg qmake_qt4 g++ libQtCore libQtGui libQtNetwork libQtScript libSDL-1.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package hg
E: Unable to locate package qmake_qt4
E: Unable to locate package libQtCore
E: Unable to locate package libQtGui
E: Unable to locate package libQtNetwork
E: Unable to locate package libQtScript
E: Unable to locate package libSDL-1.2
E: Couldn't find any package by regex 'libSDL-1.2'

is there a meta package I should be attempting to install?
Logged

VeNT666

  • Escaped Lunatic
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #17 on: October 28, 2013, 05:15:24 pm »

Anyone how to resolve this?
when I'm running
./df-lnp-installer.sh --skip-deps
I get
Code: [Select]
./df-lnp-installer.sh: 1359: hg: not found
Dwarf Therapist repo is missing or has wrong upstream URL; recloning.
./df-lnp-installer.sh: 1359: hg: not found

df-lnp-installer.sh: Cloning / updating Dwarf Therapist HG repository failed. Exiting.

is there any way to manually download or something? the links in the script is dead apparently?
Logged

rmblr

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #18 on: October 29, 2013, 04:00:14 am »

The link in the script is fine, it's just not a normal "link".

hg is the command line program for mercurial, a version control system like git.

Install mercurial and you'll be fine.

Now whether df-lnp-installer should attempt to update the DwarfTherapost mercurial repo when --skip-deps is provided, I dunno.
Logged

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #19 on: October 29, 2013, 09:31:08 am »

I am attempting to install this on linux mint 15. i downloaded it from github and am attempting to run the installer script when I get this.

Code: [Select]
./df-lnp-installer.sh: 107: [: -eq: unexpected operator
This issue is documented at: https://github.com/andrewd18/df-lnp-installer/pull/29.  In short, change the "-eq" in the find_qmake_qt4 function to "=".

As far as what the QT4 dependencies are called in Linux Mint, I don't know. But you're missing the QT4 development libraries.
Logged

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #20 on: October 29, 2013, 09:32:56 am »

The link in the script is fine, it's just not a normal "link".

hg is the command line program for mercurial, a version control system like git.

Install mercurial and you'll be fine.
Correct.

Now whether df-lnp-installer should attempt to update the DwarfTherapost mercurial repo when --skip-deps is provided, I dunno.
Probably shouldn't. I'll take a look at that for 0.4.x.
Logged

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #21 on: October 29, 2013, 09:41:23 am »

not exactly sure where this has to go, also posted this in the launcher thread
anyways

... <various issues with the launcher> ...
As far as I can tell these are all launcher issues. Those reports belong in Dricus' thread or at his bitbucket site.

https://bitbucket.org/Dricus/lazy-newbpack/
Logged

moondowner

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #22 on: November 16, 2013, 01:02:44 pm »

For some reason, when I use this pack, DF often crashes during world creation.
It either hangs forever on "Forming lakes and minerals" or "Recounting legends", or crashes randomly on some year when running history.
In general, about 40% of the time world creation is unsuccessful. I don't have this problem with vanilla DF.
Logged

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #23 on: November 19, 2013, 11:58:36 am »

For some reason, when I use this pack, DF often crashes during world creation.
It either hangs forever on "Forming lakes and minerals" or "Recounting legends", or crashes randomly on some year when running history.
In general, about 40% of the time world creation is unsuccessful. I don't have this problem with vanilla DF.
Probably something to do with dfhack... but I really dunno. Sorry. :(
Logged

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #24 on: November 19, 2013, 12:06:07 pm »

Hey, everyone. 0.4.0 is out. This is primarily a bugfix release to resolve the installation and file-deletion issues that have been reported.

I am aware of the change to the Windows LNP to be the "Starter Pack" and am working to bring the Linux installer up to feature parity. However, my spare time is limited, so if you're concerned about the pace of development, feel free to dig into the code and send me merge requests.

What's changed since 0.3.x?
  • Added an --override-user-agent parameter for people with issues downloading files.
  • Fixed the issue where an auto-detected folder could be deleted on a script failure or error, resulting in the loss of files. My sincere apologies to everyone who experienced this.
  • Disabled the soundsense terminal by default.
  • General code cleanup, compatibility fixes.

Download and installation instructions are at the GitHub repository. Please use said repository to report any issues, errors, or other problems you may have using it.

Enjoy!
Logged

LazyNewbist

  • Escaped Lunatic
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #25 on: November 27, 2013, 01:45:51 pm »

Hello everyone.

I am just getting used to linux on my netbook, and greatly miss dwarf fortress from an old xp pc that i used to have. I have gone to git hub and followed as far as i can, I believe i have the dependancies, as i copied and pasted into the terminal and a whole lot of stuff went down. Please excuse my lack of expertise with linux. I am running ubuntu:

3.2.0-56-generic #86-Ubuntu SMP Wed Oct 23 17:31:43 UTC 2013 i686 i686 i386 GNU/Linux

I found the df-lnp-installer file, but when i tell it to run (using grandpa point and click from my home folder) nothing happens. Also when i tell it to run in terminal it pulls up a terminal window which closes immediately.

Any help would be much appreciated, thanks everyone
Logged

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #26 on: December 01, 2013, 10:32:38 pm »

I found the df-lnp-installer file, but when i tell it to run (using grandpa point and click from my home folder) nothing happens. Also when i tell it to run in terminal it pulls up a terminal window which closes immediately.
You need to open the terminal first, change directory to the folder using the "cd" command, and run "./df-lnp-installer.sh". If it crashes it will tell you why. You're probably missing some required software.
Logged

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #27 on: December 01, 2013, 10:44:53 pm »

Good evening, everyone. 0.5.0 is out. This is a feature release to add new features and crush everyone's least favorite bug.

What's changed since 0.4.x?

  • Added Quickfort
  • Added Chromafort converter (see LNP/utilities/chromafort)
  • Added DF Announcement Filter (may not work on Java 6)
  • You no longer need to disable ptrace protection for your entire system. Instead, the script will give you the command needed to disable it for the DT program.

Download and installation instructions are at the Github repository. Please use said repository to report any issues, errors, or other problems you may have using it.

Enjoy!
Logged

King Mir

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #28 on: December 08, 2013, 11:24:50 am »

I keep getting a failed checksum for "downloads/Utility_Plugins_v0.36-Windows-0.34.11.r3.zip.zip". Is there any way to work around this?

EDIT: --skip-sha did the trick. The problem seems to be that the plugins have been updated more recently that this Newb Pack's shasums.
« Last Edit: December 08, 2013, 08:45:02 pm by King Mir »
Logged

obsidian razor

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #29 on: December 17, 2013, 12:55:34 pm »

I can't make this work on my Ubuntu :(

I follow all of the screen prompts correctly but when done there is nothing in the directory I set up for DF :(
Logged
Pages: 1 [2] 3 4 5