Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 4 5 [6] 7

Author Topic: Linux DF delayed / Computer death thread  (Read 169002 times)

Lightman

  • Bay Watcher
  • The groboclones are looking for you.
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #75 on: November 28, 2017, 12:33:13 pm »

Running the 64-bit version. Got past world gen, started adventure mode.
Everything seems to be okay.
Logged

MehMuffin

  • Bay Watcher
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #76 on: November 28, 2017, 02:24:47 pm »

In unzipping the tarball, I got a bunch of warnings about timestamps for the files being in the future. A small sample:

[noparse]
Code: [Select]
[/noparse]

This is likely just because the VM's timezone or date/time was set incorrectly. I have yet to run DF, but I don't think it will harm actually running it.

irrelevant now, but probably the result of the linux VM setting UTC based on timezone-adjusted windows time.

also just tested creating a world and starting a fort in it and everything went smoothly
Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Linux DF delayed / Computer death thread
« Reply #77 on: November 28, 2017, 04:35:57 pm »

Okay, very good, I'm glad it is more-or-less working.

Right now, I don't quite feel comfortable cloning my linux partition over to my laptop since it would eat a good portion of the space I have left on the drive.  I'm not remotely using the 500GBs of the main Linux partition, but I also have no idea if there's a way to remove some of the free space from that so that the partition becomes manageable as a movable critter.  I'm of course, quite, quite interested in Not screwing up my existing Linux partition in the short term, having just got this release working, but it also makes sense to get this off of hardware in a way I can back up reliably (since the physical drive is gonna go at some point).

cloud suggestions: Just not putting it online, unfortunately.
« Last Edit: November 28, 2017, 04:37:28 pm by Toady One »
Logged
The Toad, a Natural Resource:  Preserve yours today!

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #78 on: November 28, 2017, 05:39:11 pm »

https://www.gnu.org/software/parted/manual/parted.html

I'm not sure how comfortable you are juggling a system from a barebones cli so I wouldn't mess with trying to figure out which fsck or resize2fs or whatnot you need to screw with, but there are bootable versions of gparted which will show how much you're using and let you shrink it down and slap it onto another drive easily.
Logged

thewonderidiot

  • Bay Watcher
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #79 on: November 28, 2017, 06:39:55 pm »

Right now, I don't quite feel comfortable cloning my linux partition over to my laptop since it would eat a good portion of the space I have left on the drive.  I'm not remotely using the 500GBs of the main Linux partition, but I also have no idea if there's a way to remove some of the free space from that so that the partition becomes manageable as a movable critter.

That's actually not too much of a concern -- modern virtual machine disk formats grow to fit the size actually used, so a disk image shouldn't be anywhere near 500GB. You can try to create one with the following command:

VBoxManage convertfromraw \\.\PhysicalDrive2 D:\VirtualMachines.vdi --format vdi

(substituting out the drive number and paths, of course)

edit: changed vmdk to vdi, since vdi is VirtualBox native, but either should work.

edit2: looks like I might be wrong, and Miuramir is right; the growing-size files might not work with images created from physical disks.
« Last Edit: November 28, 2017, 07:00:46 pm by thewonderidiot »
Logged

Miuramir

  • Bay Watcher
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #80 on: November 28, 2017, 06:51:50 pm »

Right now, I don't quite feel comfortable cloning my linux partition over to my laptop since it would eat a good portion of the space I have left on the drive.  I'm not remotely using the 500GBs of the main Linux partition, but I also have no idea if there's a way to remove some of the free space from that so that the partition becomes manageable as a movable critter. 

*If* CloneZilla will recognize all the parts of your setup correctly, it has options to create a compressed backup file that only takes up space based on the actually used space of a partition.  This is not perfect in several respects, but it's a good option to quickly get a disaster recovery backup someplace other than that one physical (external) drive.  This would avoid any fiddling around with the working drive (read-only process); the parted (gparted) option mentioned above is theoretically possible, but riskier. 

Going forward, the obvious options are to get the drive's setup migrated to a VM, or to set up a Docker arrangement for the process.  Migrating a physical drive to a VM usually requires as much space as the original drive by default, so getting a backup before fiddling around with parted is a good idea. 
Logged

Khym Chanur

  • Bay Watcher
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #81 on: November 28, 2017, 08:14:39 pm »

cloud suggestions: Just not putting it online, unfortunately.

For backup purposes you could encrypt the drive image before putting online, if you're worried about other people getting your hands on the source.  And speaking of that, I hope you've already done something like that for offsite backup of the source code.
Logged

thewonderidiot

  • Bay Watcher
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #82 on: November 29, 2017, 05:38:18 pm »

So if you have 500GB of free space available to create the image in the first place, it appears to be possible to compact a VDI disk image after you make it.

VBoxManage.exe modifymedium --compact c:\path\to\thedisk.vdi

It works best if the unused space is explicitly zeroed from inside the VM before running that command; discussion for how to do so can be found here:
https://superuser.com/questions/529149/how-to-compact-virtualboxs-vdi-file-size?answertab=votes#tab-top
Logged

soulsource

  • Bay Watcher
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #83 on: November 30, 2017, 03:34:08 pm »

Regarding the latest Linux build: The archive includes the file df_linux/libs/libstdc++.so.6, which shouldn't be packaged together with software, as doing so causes compatibility problems with system libraries linked against a newer libstdc++ version. In other words: On distributions built against a newer libstdc++ ABI, one needs to delete said file from the dwarf fortress installation (or use some other way to force the game to use the system installed libstdc++, like LD_PRELOAD) in order to get the game to work.

It might be a good idea to force the build to use an older ABI instead of bundling libstdc++. See the documentation for details.
Logged
Quote from: Porkins Windu
Really, DF and Metal are practically the same. Drunkenness, Death, Depression, Depravity, Despondence, Demons, Dementia, Darkness. And thats just the D's!

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #84 on: December 01, 2017, 03:51:03 am »

The only thing arch needs is the df executable, libgraphics.so, and--a hotlink to the probably already installed--libpng.so.3 to work just fine. I'm not sure why libstdc++ or libgcc are in there at all, which goes for the entire g_src folder too.

I just copied over the new df and libgraphics.so files into my old .df libs folder, the index stuff in data, and made the raw changes.
Logged

Insert_Gnome_Here

  • Bay Watcher
  • Dosen't really care about anything anymore.
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #85 on: December 01, 2017, 06:13:58 am »

Code: [Select]
df_linux/libs/Dwarf_Fortress: /home/charlie/df_linux/libs/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /lib64/libGLU.so.1) 
Anyone know how I fix this? The file's there in the correct folder.
Logged
Quote from: Max™ on December 06, 2015, 04:09:21 am
Also, if you ever figure out why poets/bards/dancers just randomly start butchering people/getting butchered, please don't fix it, I love never knowing when a dance party will turn into a slaughter.

ShimmerFairy

  • Bay Watcher
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #86 on: December 01, 2017, 07:01:10 am »

Code: [Select]
df_linux/libs/Dwarf_Fortress: /home/charlie/df_linux/libs/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /lib64/libGLU.so.1) 
Anyone know how I fix this? The file's there in the correct folder.

It's kinda funny to see this problem come up right after the previous couple of posts. Anyway, try deleting the libstdc++.so.6 library from df_linux/libs. The fact that it comes with DF is honestly a mistake, and it should never be there.
Logged

Insert_Gnome_Here

  • Bay Watcher
  • Dosen't really care about anything anymore.
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #87 on: December 01, 2017, 07:26:36 am »

Thanks. Solved now.
Logged
Quote from: Max™ on December 06, 2015, 04:09:21 am
Also, if you ever figure out why poets/bards/dancers just randomly start butchering people/getting butchered, please don't fix it, I love never knowing when a dance party will turn into a slaughter.

Lightman

  • Bay Watcher
  • The groboclones are looking for you.
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #88 on: December 01, 2017, 12:42:57 pm »

It's probably best to leave things alone until next year. After things settle down, you can look into a permanent VM or a Docker setup.

cloud suggestions: Just not putting it online, unfortunately.

In my humble opinion, that's a wise decision and not unfortunate.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: Linux DF delayed / Computer death thread
« Reply #89 on: December 10, 2017, 08:29:27 pm »

Regarding the latest Linux build: The archive includes the file df_linux/libs/libstdc++.so.6, which shouldn't be packaged together with software, as doing so causes compatibility problems with system libraries linked against a newer libstdc++ version. In other words: On distributions built against a newer libstdc++ ABI, one needs to delete said file from the dwarf fortress installation (or use some other way to force the game to use the system installed libstdc++, like LD_PRELOAD) in order to get the game to work.
The problem is that on distributions with an older libstdc++, DF needs that included or it won't work at all. (At least that was the case back in the 0.31 days, which is why that was included in the first place.)
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.
Pages: 1 ... 4 5 [6] 7