This document will guide you through the process of installing and configuring Wine and LFS to allow you to run LFS's game client in Linux. We'll also touch on the subjects of configuring your wheel and solving common problems. For Instructions on how to run a dedicated host see [[Hosting#Linux_with_WINE|Hosting - Linux with Wine]].

This document will guide you through the process of installing and configuring Wine and LFS to allow you to run LFS's game client in Linux. We'll also touch on the subjects of configuring your wheel and solving common problems. For Instructions on how to run a dedicated host see [[Hosting#Linux_with_WINE|Hosting - Linux with Wine]].

Line 7:

Line 8:

Users have reported that LFS runs great on Linux. It's however likely that performance will be a bit worse compared to Windows, and the Force Feedback is not as detailed.

Users have reported that LFS runs great on Linux. It's however likely that performance will be a bit worse compared to Windows, and the Force Feedback is not as detailed.

Graphics and audio appears to be at par with the native environment, and gamepads should work out of the box (although you may have to map the buttons manually).

Graphics and audio appears to be at par with the native environment, and gamepads should work out of the box (although you may have to map the buttons manually).

+

+

Although LFS is intended to run on Windows the LFS developers [https://www.lfs.net/forum/thread/85904 make efforts] to make sure that LFS runs on Linux and maintains comparability with older versions of Windows.

The Demo and S1/S2 versions should work equally well.

The Demo and S1/S2 versions should work equally well.

−

Functionality has been confirmed with:

+

The steps in this article has been verified to work with:

* LFS S2 6J

* LFS S2 6J

−

* Debian GNU/Linux 8.1 (x86_64) and wine-1.6.2.

+

* Kernel 3.16.7

+

* Debian GNU/Linux 8.1 (x86_64)

+

* Wine-1.6.2

* Logitech G25 Racing Wheel

* Logitech G25 Racing Wheel

* Xbox 360 Wireless Controller for Windows

* Xbox 360 Wireless Controller for Windows

Line 82:

Line 87:

== Configure a game controller ==

== Configure a game controller ==

−

Install the package that allows you to test, calibrate and alter the configuration of your joystick/wheel:

+

Install the package that allows you to test, calibrate and alter the configuration of your input device ('''joystick as well as wheel'''):

sudo apt-get install joystick

sudo apt-get install joystick

−

Get the handler for your joystick device (take note of the '''eventX'' data):

+

Get the handler for your input device:

cat /proc/bus/input/devices | grep js

cat /proc/bus/input/devices | grep js

−

''If you have multiple joysticks connected it might be easier to manually read the file to find the "H: Handlers=" data for your wheel.''

+

The command should output something like:

+

H: Handlers=event12 js0

+

+

''Make note of the '''eventX''' data <br />If you have multiple input devices connected it might be easier to manually read the file to find the correct handler.''

If you like, you may test the force feedback of your device:

If you like, you may test the force feedback of your device:

Line 96:

Line 104:

To adjust the '''g'''ain and '''a'''utocenter strength:

To adjust the '''g'''ain and '''a'''utocenter strength:

−

ffset /dev/input/event12 -g 100 -a50

+

ffset /dev/input/event12 -g 100 -a 50

''Again, replace event12.''

''Again, replace event12.''

−

To adjust the range (wheel) turn, change the value in the "range" file located (roughly) at '''/sys/module/hid_logitech/drivers/id/0003:046D:C299.0009/range'''.

+

To adjust the range (wheel turn), first get the ID of your device:

+

dmesg | grep "Force feedback" | tail -n1

−

Then configure the wheel from within LFS. See [[Options#Wheel.2FJoystick|Options - Wheel/Joystick]] for more information. Please not that changing the "Force Strength" ingame does not work. See '''gain''' in the previous step.''

Then change the value in the corresponding "range" file, for example: '''/sys/module/hid_logitech/drivers/hid\:logitech/0003:046D:C299.000F/range'''

+

+

Finally configure the wheel from within LFS. See [[Options#Wheel.2FJoystick|Options - Wheel/Joystick]] for more information. Please not that changing the "Force Strength" ingame does not work. See '''gain''' in the previous step.''

== Troubleshooting ==

== Troubleshooting ==

Line 109:

Line 125:

If you are not getting any sound in LFS, trying installing the Advanced Linux Sound Architecture (ALSA):

If you are not getting any sound in LFS, trying installing the Advanced Linux Sound Architecture (ALSA):

−

apt-get install alsa-base alsa-utils

+

sudo apt-get install alsa-base alsa-utils

Then run the configuration utility to make sure the ouput devices are configured correctly:

Then run the configuration utility to make sure the ouput devices are configured correctly:

A LFS community forum member have [https://www.lfs.net/forum/post/1898818 reported] experiencing momentary sound + graphic pauses when launching LFS from the (Wine) desktop shortcut created by the installer.

+

+

Launching the game from a terminal or configuring the shortcut to 'Run in terminal' appears to resolve the issue.

+

+

This has yet to be confirmed by another user.

+

== Advanced topics ==

== Advanced topics ==

+

+

=== Increase process priority ===

+

+

In Linux you may change the priority of a process by using the '''nice''' program. This comes in handy if you'd like to make sure that no background processes steals cpu time from LFS.

Latest revision as of 18:38, 24 December 2015

This document will guide you through the process of installing and configuring Wine and LFS to allow you to run LFS's game client in Linux. We'll also touch on the subjects of configuring your wheel and solving common problems. For Instructions on how to run a dedicated host see Hosting - Linux with Wine.

Intro

What to expect

Users have reported that LFS runs great on Linux. It's however likely that performance will be a bit worse compared to Windows, and the Force Feedback is not as detailed.
Graphics and audio appears to be at par with the native environment, and gamepads should work out of the box (although you may have to map the buttons manually).

Although LFS is intended to run on Windows the LFS developers make efforts to make sure that LFS runs on Linux and maintains comparability with older versions of Windows.

Install LFS

Wine may ask you to install mono (a cross platform, open source .NET framework), go ahead if you like but it's not required. Follow the on-screen instructions. This guide assumes that you install LFS to the default location (C:\LFS\).

Change to directory where LFS was installed and run LFS:

cd ~/.wine/drive_c/LFS
wine LFS.exe

That's it!

Configure a game controller

Install the package that allows you to test, calibrate and alter the configuration of your input device (joystick as well as wheel):

sudo apt-get install joystick

Get the handler for your input device:

cat /proc/bus/input/devices | grep js

The command should output something like:

H: Handlers=event12 js0

Make note of the eventX data If you have multiple input devices connected it might be easier to manually read the file to find the correct handler.

To change the priority of an already running process, first get the PID (process id) of LFS:

pidof LFS.exe

Take note of the number.

Then "renice" the process:

renice -p 12345 -n -10

Replace 12345 with the PID noted in the previous step and -10 with whatever priority you'd like to assign.

Launch LFS from a headless environment

So you just completed a minimal netboot installation of Linux without a graphical environment? What a coincidence! To be able to run LFS, first you will need to install the X server and the X Window System initializer:

sudo apt-get install xserver-xorg xinit

Then use xinit to launch wine (and LFS):

xinit "/usr/bin/wine32" "LFS.exe" -- :1

Manually install NVIDIA's driver package

First install the packages required to successfully run NVIDIA's installer package:

sudo aptitude install binutils gcc make linux-headers-$(uname -r)

Note that $(uname -r) will be reassigned to your kernel version. This is called command substitution and is, in this case, pretty safe.