LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby kozy » 29 Sep 2017, 03:42

tatsu wrote:
kozy wrote:You should stick to 0.15.x, i sadly don't see wine fixing it anytime soon, so hopefully by the time 0.15.x is deprecated, we should all be able to use the native python client ..

?

...but we are able to

To be honest, this has proven difficult if not impossible throughout the past year so I gave up (I even tried recently - july/august - without much success).
But I did manage to get it running in the past so I was just waiting for the right time to try again.

Wesmania wrote:
kozy wrote:That's an issue with wine but introduced by FAF 0.16.0.
You should stick to 0.15.x, i sadly don't see wine fixing it anytime soon, so hopefully by the time 0.15.x is deprecated, we should all be able to use the native python client ..


We've lately done some work to make the client more easily runnable natively under Linux, you can find updated instructions here.


I will try this new version, hopefully this is as simple as you both described it, fingers crossed !
kozy
Crusader
 
Posts: 32
Joined: 19 Nov 2016, 04:33
Has liked: 1 time
Been liked: 11 times
FAF User Name: kozy

Re: LINUX SUPPORT IS HERE

Postby tatsu » 30 Sep 2017, 17:28

up to date instructions :
(some now has to be done by hand) :
Got to https://github.com/FAForever/client/releases

and click on "Source Code" (either zip or tar.gz)

then when you open the zip go down a folder (go into client-develop in the zip)

and unzip all from there into a newly created "fafclient/client" folder in your home.

once that's done open a terminal and do this :
Code: Select all
sudo apt-get install python3-semantic-version python3-dev python3-idna python3-pyqt5 python3-pyqt5.qtwebengine
cd fafclient/
sudo wget https://github.com/FAForever/uid/releases/download/v4.0.5/faf-uid -O /usr/bin/faf-uid
sudo chmod +x /usr/bin/faf-uid
touch client/res/RELEASE-VERSION
echo "0.16.1" >> client/res/RELEASE-VERSION


then you can create the desktop launcher :

.desktop file content (adapt "username" to yourself):
Code: Select all
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=0.14.0
Type=Application
Terminal=false
Exec=/home/username/.local/share/applications/faf.sh
Name=FAF
Comment=Games
Icon=/home/username/.local/share/icons/faf.png


and content of "faf.sh" (script that runs faf called by the desktop file).
Code: Select all
#!/bin/sh
cd /faf-client
/usr/bin/python3 ./client/src

(place both files in .local/share/applications/)
Last edited by tatsu on 03 Oct 2017, 22:53, edited 4 times in total.
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby Wesmania » 01 Oct 2017, 00:17

Tatsu, some of this stuff has changed, in particular FAF shouldn't depend on any packages that you wouldn't find in any standard repos, and the virtualenv route is just as troublesome as ever. I suggest we promote the method that uses zipped archives from release site and system packages rather than git sources and virtualenv, it will definitely be more successful for everyone. It's even there on the wiki:
http://wiki.faforever.com/index.php?title=Setting_Up_FAF_Linux#Debian.2FUbuntu
Wesmania
Contributor
 
Posts: 391
Joined: 19 Nov 2014, 19:17
Has liked: 2 times
Been liked: 79 times
FAF User Name: MazorNoob

Re: LINUX SUPPORT IS HERE

Postby tatsu » 01 Oct 2017, 02:15

isn't that what I did there? I've stopped using virtualenv for the past five pages.
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby Wesmania » 01 Oct 2017, 17:40

I guess I didn't skim your post hard enough, sorry. Still, it's a bad idea to download a zip of the develop branch, since not all stuff that ends there is guaranteed to be bug-free. Better to download a zip from an official versioned release. You also have some no longer needed deps in apt-get, I think you don't need pycparser, dateutil, requests, cffi, virtualenv, liblua, xdelta and git anymore.
Wesmania
Contributor
 
Posts: 391
Joined: 19 Nov 2014, 19:17
Has liked: 2 times
Been liked: 79 times
FAF User Name: MazorNoob

Re: LINUX SUPPORT IS HERE

Postby tatsu » 01 Oct 2017, 20:00

Wesmania wrote:I guess I didn't skim your post hard enough, sorry. Still, it's a bad idea to download a zip of the develop branch, since not all stuff that ends there is guaranteed to be bug-free. Better to download a zip from an official versioned release. You also have some no longer needed deps in apt-get, I think you don't need pycparser, dateutil, requests, cffi, virtualenv, liblua, xdelta and git anymore.

yup! edited my post above!
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby Wesmania » 02 Oct 2017, 09:37

Add pyqt5 and qtwebengine to the list too :)
Wesmania
Contributor
 
Posts: 391
Joined: 19 Nov 2014, 19:17
Has liked: 2 times
Been liked: 79 times
FAF User Name: MazorNoob

Re: LINUX SUPPORT IS HERE

Postby tatsu » 02 Oct 2017, 21:07

Wesmania wrote:Add pyqt5 and qtwebengine to the list too :)
ok edited.

they just BARELY got release on ubuntu 17.04

there's also qtwebengine5-dev libqt5webengine-data libqt5webenginewidgets5 libqt5webenginecore5


do I add them for safety?
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby Wesmania » 03 Oct 2017, 09:31

You added qt rather than pyqt packages and yeah, the pyqt packages should be enough.
Wesmania
Contributor
 
Posts: 391
Joined: 19 Nov 2014, 19:17
Has liked: 2 times
Been liked: 79 times
FAF User Name: MazorNoob

Re: LINUX SUPPORT IS HERE

Postby tatsu » 03 Oct 2017, 12:33

Wesmania wrote:You added qt rather than pyqt packages and yeah, the pyqt packages should be enough.

third time's the charm? : D pyqt5 also just released.
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest