LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby tatsu » 15 Jul 2017, 16:16

Wesmania wrote:For all I can tell, there are no references to QtWebkit anymore in the code, they were replaced with QtWebEngine. I don't know if you can install it in ubuntu, it seems possible in 17.04.

the package distribution for Qt QtWebEngine PyQT ans Sip are a mess across debian. I don't think it's humanly solvable anymore. they need to sort it out before anyone can use them.

I've tried everything. unless you've got an idea I give up.
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 » 15 Jul 2017, 17:51

The only idea I have then is to wait until we get rid of qtwebengine - we're planning to do just that eventually.
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 sandwormsurfer » 20 Jul 2017, 13:27

I just fired up an Ubuntu 17.04 VM and made the client run from source, here are my steps:
http://wiki.faforever.com/index.php?tit ... n.2FUbuntu

The python3-pyqt5.qtwebengine package is unusable apparently, but the pyqt5 pip package worked.
sandwormsurfer
Crusader
 
Posts: 24
Joined: 06 Nov 2016, 00:18
Has liked: 0 time
Been liked: 10 times
FAF User Name: sandwormsurfer

Re: LINUX SUPPORT IS HERE

Postby tatsu » 20 Jul 2017, 19:03

sandwormsurfer wrote:I just fired up an Ubuntu 17.04 VM and made the client run from source, here are my steps:
http://wiki.faforever.com/index.php?tit ... n.2FUbuntu

The python3-pyqt5.qtwebengine package is unusable apparently, but the pyqt5 pip package worked.

yeah that worked.

You don't explain how to exit vitualenv before grabbing the UID checker and runnable client at the end (which you might as well do for proof that all this can work in a non-virtualenv environment.)

Code: Select all
deactivate
should work

thanks for your work I'll look into making a deb file ! :D

there is an imediately noticable bug with this version though :
none of the map miniatures manage to show up :
Screenshot from 2017-07-20 19-03-58.png
Screenshot from 2017-07-20 19-03-58.png (356.44 KiB) Viewed 4016 times

this happens for "Play" "coop missions"

and most of the replay browser :
Screenshot from 2017-07-20 19-05-59.png
Screenshot from 2017-07-20 19-05-59.png (234.37 KiB) Viewed 4016 times


since you seem pretty proficient with FAF/FA on linux, have you figured out a way to open fafreplay files?
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 sandwormsurfer » 21 Jul 2017, 09:38

This should fix the map thumbnail preview problem: https://github.com/FAForever/client/pull/801
sandwormsurfer
Crusader
 
Posts: 24
Joined: 06 Nov 2016, 00:18
Has liked: 0 time
Been liked: 10 times
FAF User Name: sandwormsurfer

Re: LINUX SUPPORT IS HERE

Postby sandwormsurfer » 21 Jul 2017, 09:44

tatsu wrote:have you figured out a way to open fafreplay files?


Since I have a .desktop file https://aur.archlinux.org/cgit/aur.git/ ... -fafclient ,
I can select a .fafreplay file in my file manager, click "open with" and select FAForever. I see the client updating my gamedata to start the replay, but FA doesn't launch (don't know why yet).
sandwormsurfer
Crusader
 
Posts: 24
Joined: 06 Nov 2016, 00:18
Has liked: 0 time
Been liked: 10 times
FAF User Name: sandwormsurfer

Re: LINUX SUPPORT IS HERE

Postby sandwormsurfer » 21 Jul 2017, 09:50

tatsu wrote:you don't explain how to exit vitualenv before grabbing the UID checker and runnable client at the end (which you might as well do for proof that all this can work in a non-virtualenv environment.)


afaik, you don't need to exit virtualenv before grabbing the UID.
And I think making the client work without virtualenv on Ubuntu will be quite a task, good luck. I think you would need to make a pyqt5 deb package from the stuff installed by
Code: Select all
pip install pyqt5
.
sandwormsurfer
Crusader
 
Posts: 24
Joined: 06 Nov 2016, 00:18
Has liked: 0 time
Been liked: 10 times
FAF User Name: sandwormsurfer

Re: LINUX SUPPORT IS HERE

Postby tatsu » 22 Jul 2017, 00:48

sandwormsurfer wrote:afaik, you don't need to exit virtualenv before grabbing the UID.
And I think making the client work without virtualenv on Ubuntu will be quite a task, good luck.

well it does work once you've run virtualenv once. I don't need to reenter virtualenv to run faf after rebooting for example (contrary to all previous builds/tutorials in this thread)

so it is a plus. I'm gonna test copying the files over to a virtual machine with the same packages installed see if that works. but i don't see why not. so if we can do that then theoretically only the guy who builds the deb needs to do so right?
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 tatsu » 22 Jul 2017, 01:23

huh weird that didn't work :
Code: Select all
sdf@sdf-VirtualBox:~/fafclient$ python ./client/src/
Traceback (most recent call last):
  File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "./client/src/__main__.py", line 33, in <module>
    from PyQt5 import QtWidgets, uic
ImportError: No module named 'PyQt5'
sdf@sdf-VirtualBox:~/fafclient$ unalias python
sdf@sdf-VirtualBox:~/fafclient$ python ./client/src/
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/sdf/fafclient/client/src/__main__.py", line 33, in <module>
    from PyQt5 import QtWidgets, uic
ImportError: No module named PyQt5


I did the whole UID thing separately in the virtual machine but apparently copying the files over even with the packages installed and the alias for python3 it doesn't work.

perhaps it was using my studio version of QT5 on my local machine
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 Herby » 18 Aug 2017, 14:08

Hi there,

Just want to put my 2 cents in this discussion...

First, thanks to tatsu for his nice work. I had a close look at the script you created and at the video. It looks pretty nice but I didn't dare to use it as I was afraid to mess up my install with this.

Anyway, I've managed to get FAF up & running on a Kubuntu 14.04 thanks to "PlayOnLinux". It is just a graphic interface for wine making it easy for those like me who are not very comfortable with command lines. There are loads of tutorials around explaining how to install it so I skip this part.

I've installed a retail version (not from steam) and here are the few settings I had to change to make it work:
The game needs to be installed first then the FAF client (logic actually) on a windows7 64bit virtual drive. I didn't use the default version of wine and used the version 2.13 instead. During installation, I had problem to enter the serial (field were not big enough to fit all the characters). So I had to change the screen resolution in the wine settings to something around 110dpi to fix that.
To install the FAF client once FA installed, just select "Install unlisted program" then "modify an existing app" and select the disk where FA is installed.
I very often have problem launching the application (crash or app not responding) but, once up, it is stable and works pretty well.
I also have the warning message once FAF loaded: "windows management instrumentation" is missing. But this doesn't seem to be a problem. I just close the warning message and everything works.

Hope this will help those who want to have FA on their Linux.
Post here if you try this method and run into troubles and I'll see if I can help.

Cheers,
Herby.
Herby
Crusader
 
Posts: 16
Joined: 18 Aug 2017, 13:36
Has liked: 0 time
Been liked: 5 times
FAF User Name: Herby

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest