Linux LiF:YO Dedicated Server Ubuntu 14.04 [Complete]

Want to learn or teach others some of the finer details of Life is Feudal? This section is for the game guides, tutorials and FAQ's.

BladeRavinger
 
Posts: 8
Joined: 05 Jun 2015, 21:03

Linux LiF:YO Dedicated Server Ubuntu 14.04 [Complete]

Post by BladeRavinger » 06 Jun 2015, 01:11

CREDIT: Thank you to Kakusha for your tutorial linux-headless-yo-dedicated-server-with-wine-t3384/ that brought me as far as it has on an ubuntu box.

First things first, im running a remote VPS on Linux Ubuntu 14.04
to recreate what i have u will need
Putty http://www.chiark.greenend.org.uk/~sgta ... nload.html
and FTP Client and FTP enabled on your hardware [i use WinSCP] http://winscp.net/eng/download.php
HeidiSQL for linuxserver and your client system [i have a windows system for client]
You also need to own a copy of Lif:YO

Stge 1; create a lif account on your server
NOTICE: IF YOU ALREADY HAVE A LIF USER THEN SKIP THIS STAGE.

Spoiler


Stage 2; install wine

Spoiler


Stage 3; Install SteamCmd and LiF:YO

Spoiler


Stage 4; MariaDB (the thorn in my side)

Spoiler


Stage 5; Launch Script

Spoiler


Thank You all, Any Questions, Post Below
Last edited by BladeRavinger on 06 Jun 2015, 11:17, edited 3 times in total.


BladeRavinger
 
Posts: 8
Joined: 05 Jun 2015, 21:03

Re: linux LiF:YO Dedicated server Ubuntu 14.04 [Needs Input]

Post by BladeRavinger » 06 Jun 2015, 10:43

I would like to thank my brain for realizing that databases cant just be moved around they must be decompiled and recompiled.

the Tutorial will be updated soon for all to use


Shynx
 
Posts: 24
Joined: 29 Oct 2014, 09:49

Re: Linux LiF:YO Dedicated Server Ubuntu 14.04 [Complete]

Post by Shynx » 06 Jun 2015, 14:33

apart from the database mess, nice tutorial :)

seeing as you are aiming for a pretty exhaustive overview, i'd add
apt-get install winetricks
winetricks vcrun2013
because those dll's are necessary.


to install wine1.7 on debian distros you have to do the following:

Code: Select all
wget ftp://ftp.dk.netbsd.org/.m/pub/Linux/INSTALL/Debian/pool/main/w/wine-gecko-1.4/libwine-gecko-1.4_1.4+dfsg1-3_all.deb
dpkg -i libwine-gecko-1.4_1.4+dfsg1-3_all.deb

wget http://dev.carbon-project.org/debian/wine-unstable/libwine-unstable_1.7.15-0.1_i386.deb
dpkg -i libwine-unstable_1.7.15-0.1_i386.deb

wget http://dev.carbon-project.org/debian/wine-unstable/wine32-unstable_1.7.15-0.1_i386.deb
dpkg -i wine32-unstable_1.7.15-0.1_i386.deb

wget http://dev.carbon-project.org/debian/wine-unstable/wine-unstable_1.7.15-0.1_i386.deb
dpkg -i wine-unstable_1.7.15-0.1_i386.deb

apt-get -f install
apt-get install winetricks


run the following commands to install vc redstributables:
Code: Select all
ln -s /usr/lib/i386-linux-gnu/wine-unstable/bin/wineserver /usr/bin/wineserver
winetricks vcrun2013


*edit: if you have a 64bit os you of course have to add i386 architecture to be able to install 32bit wine. try googling "wine 32bit on 64bit debian" or something like that as a starting point

*edit2: you also forgot the part about tweaking mariadbs config file (my.ini), see the older guide for details


BladeRavinger
 
Posts: 8
Joined: 05 Jun 2015, 21:03

Re: Linux LiF:YO Dedicated Server Ubuntu 14.04 [Complete]

Post by BladeRavinger » 07 Jun 2015, 01:19

it maybe possible to use the 'new.sql & patch.sql' in server root/sql

to create a database


Shynx
 
Posts: 24
Joined: 29 Oct 2014, 09:49

Re: Linux LiF:YO Dedicated Server Ubuntu 14.04 [Complete]

Post by Shynx » 07 Jun 2015, 19:53

it is. you first have to fix the new.sql syntax though. Nuruti was kind enough to share a python script to do just that: post36154/#p36154


BladeRavinger
 
Posts: 8
Joined: 05 Jun 2015, 21:03

Re: Linux LiF:YO Dedicated Server Ubuntu 14.04 [Complete]

Post by BladeRavinger » 16 Sep 2015, 07:07

hello again guys, just after this post was finished my server stopped working. so i changed hardware and will try again and update if needed


Nadasky
 
Posts: 1
Joined: 21 Jan 2016, 12:45

Re: Linux LiF:YO Dedicated Server Ubuntu 14.04 [Complete]

Post by Nadasky » 21 Jan 2016, 12:48

Hey,

I have some problems setting up my server (on an Ubuntu-Linux)

Is there an actual tutorial/guide?


I have sent my database to my server and installed it.

But if I start the LIF server, I get a mysql error. Somthing wiht bad language Setting.

Could anybody help me?


Dragontander
 
Posts: 1
Joined: 30 Apr 2018, 10:19

Re: Linux LiF:YO Dedicated Server Ubuntu 14.04 [Complete]

Post by Dragontander » 30 Apr 2018, 10:51

I've just managed setup server on Ubuntu 18.04 LTS, Wine 3.0 (stable) and MariaDB 10.1.29 (stable too).

This manual was helpful, but for my setup these things were changed:

Creating user
You dont have create new user, sometimes you just need run command with sudo.

Installing wine
ppa for wine 3.0 changed, and now you can install right ppa like this:
Code: Select all
    wget https://dl.winehq.org/wine-builds/Release.key
    sudo apt-key add Release.key
    sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'


And installing wine:
Code: Select all
apt install --install-recommends winehq-stable


For running any .exe with wine you will need libpng12:
Code: Select all
wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb   && dpkg -i /tmp/libpng12.deb   && rm /tmp/libpng12.deb


SteamCMD
I used verison for linux, @sSteamCmdForcePlatformType windows works just fine.

MariaDB
Looks like LiF server capable to populate base by own, but it demand user with mysql-root permissions. So instead
Code: Select all
grant all privileges on lif_1.* to user@localhost identified by "DBPASSWD";


Use
Code: Select all
CREATE USER user@localhost IDENTIFIED BY 'DBPASSWD';
GRANT ALL PRIVILEGES ON * . * TO user@localhost;


But dont create database lif_1 before you merge my.ini from /docs with /etc/mysql/my.cnf (you have to use sudo nano for editing this), because it will be create on antelope file engine instead of barracuda.

In my case I created database from HeidiSQL and run new.sql from /sql . But i believe server can do it by own.


That's all, hope this info will be helpful for anybody.

Return to Guides and Tutorials