Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: help with linux DF  (Read 1658 times)

§¢ǿŗÞﵧ

  • Bay Watcher
  • Terrible coder
    • View Profile
help with linux DF
« on: July 21, 2013, 05:47:13 pm »

I installed linux recently (unbuntu) because windows crashed  :(

The first thing i did was try to install dwarf fortress (linux version)

i extracted the contents of DF file to another file on my desktop

but then i tried to open the file named DF

instead of opening a window that played the intro of dwarf fortress, it opened gedit


Why isn't dwarf fortress opening?

i am sorry if this has already been asked or the answer is obvious (im a complete noob at computers)
« Last Edit: July 21, 2013, 05:48:58 pm by §¢ǿŗÞﵧ »
Logged

RathofSTS

  • Bay Watcher
    • View Profile
Re: help with linux DF
« Reply #1 on: July 21, 2013, 08:04:20 pm »


Try this:
  • Right click the DF file
  • Click Properties
  • Check the box that says something about allowing the file to run as a program(Under the permissions tab)
I am not using Ubuntu so the steps might be slightly different.
Logged

§¢ǿŗÞﵧ

  • Bay Watcher
  • Terrible coder
    • View Profile
Re: help with linux DF
« Reply #2 on: July 22, 2013, 11:01:25 am »


Try this:
  • Right click the DF file
  • Click Properties
  • Check the box that says something about allowing the file to run as a program(Under the permissions tab)
I am not using Ubuntu so the steps might be slightly different.

I tried but it does not work, it opens the file in gedit still.
Logged

BinaryBeast1010011010

  • Bay Watcher
    • View Profile
Re: help with linux DF
« Reply #3 on: July 22, 2013, 12:44:10 pm »

Open a terminal. Cd to your df folder then type ./df and enter
Logged
cant stop playing DF?
 : (){ :|:& };:

Darkwood71

  • Bay Watcher
    • View Profile
Re: help with linux DF
« Reply #4 on: July 22, 2013, 12:47:36 pm »

I find most window managers to be very poor at handling these types of things, so you'll probably want to get used to the command line. So, if it's a permissions issue, give this a try...

1.) open up a terminal window.
2.) cd to your DF directory.
3.) Run the command... sudo chmod ugo+x <DF File Name>
4.) Next, at the prompt, type ./<DF File Name>

It's also possible that the file needs to be run with root access. If this is the case, you'll need to change the ownership of the all the DF files (or run it as root). Here's the command to change the ownership...

sudo chown -R root:root ./<DF Directory>

This may or may not be safe, so running it as root may be better. In any event, I recommend getting to know your Linux command line a bit more. Unlike Windows, just about every admin task is easier to do at the command line (but, then again, I'm an old unix admin, so I may be biased on this point). This may be a useful link for you: http://linuxcommand.org/lc3_learning_the_shell.php
Logged

eccentric

  • Bay Watcher
    • View Profile
Re: help with linux DF
« Reply #5 on: August 01, 2013, 03:17:38 pm »

What Binarybeast said is true should just be able to cd to the folder and ./df to run it. You'll probably get a couple errors about missing libraries though if you are a a vanilla install of ubuntu

I'm running on Linux Mint 15 (based on Ubuntu) and this worked for me
http://dwarffortresswiki.org/index.php/DF2012:Installation
Spoiler (click to show/hide)

I need Dwarf Therapist so I've included the install instructions here too.

Download the zip and extract
https://github.com/tareqak/dwarftherapist
Follow the instructions on how to make and instal
https://github.com/tareqak/dwarftherapist/blob/master/BUILDING.md
Spoiler (click to show/hide)
Logged