Bay 12 Games Forum

Please login or register.

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

Author Topic: Running on Linux (So New Here)  (Read 2504 times)

Dzlan

  • Bay Watcher
    • View Profile
Running on Linux (So New Here)
« on: February 17, 2014, 05:11:27 am »

So, I have just installed Linux Mint for the first time ever installing Linux on a separate laptop. I thought it would be a nice change. Honestly, I generally have crazy ideas to do this sort of thing. At once, I downloaded Dwarf Fortress and CataclysmDDA linux builds and put them on the desktop.
Now, I have no idea how to even run them...  :(
I'm so new to Linux and would love to learn it, and I figured here would be the best place to ask...
So, if anyone could please help me out here, it would be greatly appreciated.
Logged

Tawa

  • Bay Watcher
  • the first mankind all over the world
    • View Profile
Re: Running on Linux (So New Here)
« Reply #1 on: February 17, 2014, 08:38:48 am »

You have to run DF from the command line with /df. You might have to go into the folder where you keep it with "cd <foldername>" and tell it to run "./df" from there just to make sure.

I have no clue what CataclysmDDA is, but it probably works similarly.
Logged
I don't use Bay12 much anymore. PM me if you need to get in touch with me and I'll send you my Discord handle.

Valtam

  • Bay Watcher
  • [VALUE:LEISURE_TIME:50]
    • View Profile
Re: Running on Linux (So New Here)
« Reply #2 on: February 17, 2014, 04:18:05 pm »

I have no clue what CataclysmDDA is, but it probably works similarly.

Dzlan is talking about this, by one of our own. Might as well take a look.
Logged
my first quest was to seige a nemacrcors tower i killed 3 nemacrcors the got killed by a zombie fly.
How on earth did you manage to do that twice?

Dzlan

  • Bay Watcher
    • View Profile
Re: Running on Linux (So New Here)
« Reply #3 on: February 18, 2014, 04:13:29 am »

So I think I am getting it right, I definitely am in the right directory and I type ./df
It comes up with Permission Denied...
bash: ./df: Permission denied
Logged

crazysheep

  • Bay Watcher
  • [PREFSTRING:fluffy wool]
    • View Profile
Re: Running on Linux (So New Here)
« Reply #4 on: February 18, 2014, 04:27:44 am »

That sounds like you need to change the executable permissions for DF.
What you'll need to do is go to the console and type "chmod +x df" without quote marks and that should allow you to run DF using "./df".
Logged
"Don't be in such a hurry to grow up, for there's nothing a kid can't do."

Dzlan

  • Bay Watcher
    • View Profile
Re: Running on Linux (So New Here)
« Reply #5 on: February 18, 2014, 04:46:27 am »

Now I get...
./df: 6: ./df: ./libs/Dwarf_Fortress: Permission denied
Logged

crazysheep

  • Bay Watcher
  • [PREFSTRING:fluffy wool]
    • View Profile
Re: Running on Linux (So New Here)
« Reply #6 on: February 18, 2014, 04:49:57 am »

...

now I'm stuck D:
Logged
"Don't be in such a hurry to grow up, for there's nothing a kid can't do."

Dzlan

  • Bay Watcher
    • View Profile
Re: Running on Linux (So New Here)
« Reply #7 on: February 18, 2014, 04:57:15 am »

Similar thing happens to CataclysmDDA (Another ASCII roguelike)
./cataclysm-launcher: 3: ./cataclysm-launcher: .cataclysm: not found
Logged

Dzlan

  • Bay Watcher
    • View Profile
Re: Running on Linux (So New Here)
« Reply #8 on: February 18, 2014, 05:02:29 am »

Do I maybe need to set the permission to all folders and sub folders?
And how would I go about that?
Logged

crazysheep

  • Bay Watcher
  • [PREFSTRING:fluffy wool]
    • View Profile
Re: Running on Linux (So New Here)
« Reply #9 on: February 18, 2014, 05:07:04 am »

Hmmm, you might need to consult a general Linux commands help for that - I believe there should be stuff on the internet out there.
Logged
"Don't be in such a hurry to grow up, for there's nothing a kid can't do."

Dzlan

  • Bay Watcher
    • View Profile
Re: Running on Linux (So New Here)
« Reply #10 on: February 18, 2014, 05:13:47 am »

Yeah I'm looking, but being new, and unsure of exactly what I'm looking for it's a little hard, : P
But, I always get there in the end, haha. Should hopefully find a solution soon. Thanks for your help though.
Logged

Sizik

  • Bay Watcher
    • View Profile
Re: Running on Linux (So New Here)
« Reply #11 on: February 18, 2014, 09:47:25 am »

Try
Code: [Select]
sudo ./df
Logged
Skyscrapes, the Tower-Fortress, finally complete!
Skyscrapes 2, repelling the zombie horde!

Kamamura

  • Bay Watcher
    • View Profile
Re: Running on Linux (So New Here)
« Reply #12 on: February 18, 2014, 11:11:53 am »

Don't do "sudo ./df", it's a beginning of a bad habit, you don't want to run an application with elevated privilegies unless there is a reason for it.

Instead, check the permissions of the "df" binary by typing

Code: [Select]
ls -alh ./df
You should receive something like this output:

Code: [Select]
-rwxr--r--  1 kamamura kamamura  243 Jun  4  2012 df
The first cluster of letters are the permissions we are interested in. The first - you can ignore, and then there are permissions to Read, Write and eXecute the file - the first three is for the owner (it's kamamura in this case), the second is for the group (it's kamamura too in this case), and the last one is for everyone else.

If I was not logged as "kamamura", I could not run df too ("permission denied"), but since I am, I can. Check your permissions on the installed df, and if you find out they are not correct, you can either:

1) Change the ownership of the whole install dir with

Code: [Select]
sudo chown -R someusername ./
Where "someusername" is the user you are logged as ( if you don't know, type 'whoami' ), and provided you are in df directory.

2) Change df binary permissions so that everyone can run it:

Code: [Select]
sudo chmod 755 ./df
755 is bit representation of the permissions - first bit (2^2 = 4) is read permission, second (2^1 = 2) is write, and the last is execute permission (2^0 = 1), you want the the owner to be able to read, write and execute ( 4+2+1 = 7), and the others to just read and execute (4+1=5).
Logged
The entire content consists of senseless murder, a pile of faceless naked women and zero regard for human life in general, all in the service of the protagonist's base impulses. It is clearly a cry for help from a neglected, self absorbed and disempowered juvenile badly in need of affectionate guidance. What a sad, sad display.

Dzlan

  • Bay Watcher
    • View Profile
Re: Running on Linux (So New Here)
« Reply #13 on: February 18, 2014, 09:39:50 pm »

Thanks for that reply, I guess that sort of explains the beginnings of permissions.
Unfortunately, it did change anything at all.

Actually yes, there is a change... Instead of
./df: 6: ./df: ./libs/Dwarf_Fortress: Permission denied
I get
./df: 6: ./df: ./libs/Dwarf_Fortress: not found
Logged

Dzlan

  • Bay Watcher
    • View Profile
Re: Running on Linux (So New Here)
« Reply #14 on: February 19, 2014, 04:05:35 am »

Well, thanks for you help everyone : ) Im well on my way to becoming a Linux user, haha.
I got it in the end.
I had to install some libraries for 32bit, as I was running on 64. That was a task in itself, now I know how to unlock programs, and set admin rights, and install packages...
Now I just have a problem where it disables sound for Dwarf Fortress, which is no prob, but I remember seeing a thread to fix that yesterday so I might fix it later, but.. : )
Thanks for your help everyone.. And to think when I first started, I had no idea how to run a terminal (It took 2 seconds to find but still :P )
Logged
Pages: [1] 2