├── .github
└── workflows
│ └── docker-container.yml
├── Dockerfile
├── LICENSE
├── README.md
├── build
├── install.sh
└── rootfs
│ ├── etc
│ ├── nginx
│ │ ├── nginx.conf
│ │ └── sites-enabled
│ │ │ └── fs22
│ └── supervisor
│ │ └── conf.d
│ │ └── nginx.conf
│ ├── home
│ └── nobody
│ │ ├── .config
│ │ ├── gtk-2.0
│ │ │ └── gtkfilechooser.ini
│ │ ├── libfm
│ │ │ └── libfm.conf
│ │ ├── lxpanel
│ │ │ ├── LXDE
│ │ │ │ ├── config
│ │ │ │ └── panels
│ │ │ │ │ └── panel
│ │ │ └── launchtaskbar.cfg
│ │ ├── lxterminal
│ │ │ └── lxterminal.conf
│ │ └── pcmanfm
│ │ │ └── LXDE
│ │ │ ├── desktop-items-0.conf
│ │ │ └── pcmanfm.conf
│ │ ├── Desktop
│ │ ├── setup_giants.desktop
│ │ └── start_server.desktop
│ │ └── icons
│ │ ├── icon0.jpg
│ │ └── icon1.jpg
│ ├── opt
│ └── fs22
│ │ ├── setup_giants.sh
│ │ ├── start_webserver.sh
│ │ └── xml
│ │ ├── default_dedicatedServer.xml
│ │ └── default_dedicatedServerConfig.xml
│ └── usr
│ └── share
│ └── lxde
│ └── wallpapers
│ └── winegameserversfs22.jpg
├── docker-compose.yml
└── dockerrun_example.sh
/.github/workflows/docker-container.yml:
--------------------------------------------------------------------------------
1 | name: Build and push to dockerhub
2 |
3 | on: push
4 |
5 | jobs:
6 | docker:
7 | runs-on: ubuntu-latest
8 | steps:
9 | -
10 | name: Checkout
11 | uses: actions/checkout@v3
12 | -
13 | name: Set up Docker Buildx
14 | uses: docker/setup-buildx-action@v2
15 | -
16 | name: Login to Docker Hub
17 | uses: docker/login-action@v2
18 | with:
19 | username: ${{ secrets.DOCKERHUB_USERNAME }}
20 | password: ${{ secrets.DOCKERHUB_WINE_ARCH_FS22 }}
21 | -
22 | name: Build and push
23 | uses: docker/build-push-action@v4
24 | with:
25 | context: .
26 | push: true
27 | tags: toetje585/arch-wine-fs22:latest
28 | -
29 | name: Sync readme
30 | uses: ms-jpq/sync-dockerhub-readme@v1
31 | with:
32 | username: ${{ secrets.DOCKERHUB_USERNAME }}
33 | password: ${{ secrets.DOCKERHUB_WINE_ARCH_FS22 }}
34 | repository: toetje585/arch-wine-fs22
35 | readme: "./README.md"
36 |
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM toetje585/arch-wine-vnc:latest
2 | LABEL org.opencontainers.image.authors = "Toetje585"
3 | LABEL org.opencontainers.image.source = "https://github.com/wine-gameservers/arch-wine-vnc"
4 |
5 | # additional files
6 | ##################
7 |
8 | COPY build/rootfs /
9 |
10 | RUN chown -R nobody:nobody /home/*
11 |
12 | # add install bash script
13 | ADD build/install.sh /root/install.sh
14 |
15 | # install script
16 | ##################
17 | RUN chmod +x /root/install.sh && /bin/bash /root/install.sh
18 |
19 | # Expose port for FS22 Webserver
20 |
21 | EXPOSE 8080/tcp
22 |
23 | # Expose port for the FS22 Gameserver
24 | EXPOSE 10823/tcp
25 | EXPOSE 10823/udp
26 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Farming Simulator 22 Docker Server
2 |
3 | Dedicated Farming Simulator 22 server running inside a docker image based on ArchLinux.
4 | This project is hosted at https://github.com/wine-gameservers/arch-wine-fs22/
5 |
6 | ## Table of contents
7 |
8 | * [Motivation](#motivation)
9 | * [Getting Started](#getting-started)
10 | * [Hardware Requirements](#hardware-requirements)
11 | * [Software Requirements](#software-requirements)
12 | * [Linux Distribution](#linux-distribution)
13 | * [Server License](#server-license)
14 | * [VNC Client](#vnc-client)
15 | * [Deployment](#deployment)
16 | * [Deploying with docker-compose](#docker-compose)
17 | * [Deploying with docker run](#docker-run)
18 | * [Installation](#installation)
19 | * [Initial installation](#initial-installation)
20 | * [Downloading the dedicated server](#downloading-the-dedicated-server)
21 | * [Preparing the needed directories on the host machine](#preparing-the-needed-directories-on-the-host-machine)
22 | * [Unpack and move the installer](#unpack-and-move-the-installer)
23 | * [Starting the container](#starting-the-container)
24 | * [Connecting to the VNC Server](#connecting-to-the-vnc-Server)
25 | * [Server Installation](#server-installation)
26 | * [Running the installation](#running-the-installation)
27 | * [Starting the admin portal](#starting-the-admin-portal)
28 | * [Environment variables](#environment-variables)
29 |
30 |
31 | # Motivation
32 |
33 | GIANTS Software encourages its customers to consider renting a server from one of their verified partners, as it helps protect their business and maintain close relationships with these partners. Unfortunately, they do not allow third parties to host servers in order to support their partner network effectively.
34 |
35 | For customers who prefer running personal servers, there is a requirement to purchase all the game content (game, DLC, packs) twice. This means obtaining one license for the player and another license specifically for the server.
36 |
37 | While renting a server remains a viable option for certain players, it has become increasingly common for game developers to provide free-to-use server tools. Regrettably, the server tools provided by GIANTS Software are considered outdated and inefficient. As a result, users are compelled to set up an entire Windows environment. However, with our project, we have overcome this limitation by enabling users to deploy servers within a lightweight Docker environment, eliminating the need for a Windows setup.
38 |
39 | # Getting Started
40 |
41 | Please note that this may not cover every possible scenario, particularly for NAS (synology) users. In such cases, you may need to utilize the provided admin console to configure the necessary directories and user permissions. If you encounter any issues while attempting to run the program, kindly refrain from sending me private messages. Instead, we recommend seeking assistance on our Discord server, where you can find additional support and guidance. [invite link to our Discord server](https://discord.gg/Ejz2MaXSNb).
42 |
43 | ## Hardware Requirements
44 |
45 | Intel: Haswell or newer (Intel Celeron specially from older generations are not recommended)
46 | AMD: Zen1 or newer
47 |
48 | - Server for 2-4 players (without DLCs) 2.4 GHz (min. 3 Cores), 4 GB RAM
49 | - Server for 5-10 players (with DLCs) 2.8 GHz (min. 3 Cores), 8 GB RAM
50 | - Server for up to 16 players (with all DLCs) 3.2 GHz (min. 4 Cores), 12 GB RAM
51 |
52 | *** Storage depends on installed dlc + mods ***
53 |
54 | ## Software Requirements
55 |
56 | ### Linux Distribution
57 |
58 | To install Docker and Docker Compose, please consult the documentation specific to your Linux distribution. It's important to note that the provided image is intended for operating systems that support Docker and utilize the x86_64 / amd64 architecture. Unfortunately, arm/apple architectures are not supported.
59 |
60 | ### Server License
61 |
62 | GIANTS Software provides a dedicated server tool with the game, which means that in order to run a server, you will need to purchase an additional license from GIANTS. It is not possible to host and play on the same server using a single license. Therefore, you will need to buy everything twice in order to both run the server and play on it.
63 |
64 | Please note that the Steam version of the game is not supported for running as a server inside a Docker environment. However, you can use the Steam version to play on the server.
65 |
66 | To obtain the full game and all DLCs, we recommend purchasing the Farming Simulator 22 Premium Edition. This edition provides access to all the content, and it is the most cost-effective option to unlock all the game's features. Please be cautious about other versions available, as this edition ensures the inclusion of all the content you need.
67 |
68 | - [Farming Simulator 22 Premium Edition](https://www.farming-simulator.com/buy-now.php?lang=en&country=nl&platform=pcdigital)
69 |
70 | ### VNC Client
71 |
72 | After starting the Docker container for the first time, you will need to go through the initial installation of the game and DLC using a VNC client. One example of a VNC client is VNC® Viewer. This will allow you to set up the game and install the necessary content within the Docker environment.
73 |
74 | - [VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/)
75 |
76 | ## Deployment
77 |
78 | The primary distinction between `docker run` and `docker-compose` is that `docker run` relies solely on command-line instructions, whereas `docker-compose` reads configuration data from a YAML file. If you are unsure about which option to choose, I recommend opting for `docker-compose`. It provides a more organized and manageable approach to container deployment by utilizing a YAML file to define and configure multiple containers and their dependencies.
79 |
80 | ### Docker compose
81 | ```
82 | services:
83 | arch-wine-fs22:
84 | image: toetje585/arch-wine-fs22:latest
85 | container_name: arch-wine-fs22
86 | environment:
87 | - VNC_PASSWORD=
88 | - WEB_USERNAME=
89 | - WEB_PASSWORD=
90 | - SERVER_NAME=
91 | - SERVER_PASSWORD=
92 | - SERVER_ADMIN=
93 | - SERVER_PLAYERS=16
94 | - SERVER_PORT=10823
95 | - SERVER_REGION=en
96 | - SERVER_MAP=MapUS
97 | - SERVER_DIFFICULTY=3
98 | - SERVER_PAUSE=2
99 | - SERVER_SAVE_INTERVAL=180.000000
100 | - SERVER_STATS_INTERVAL=31536000
101 | - SERVER_CROSSPLAY=true
102 | - PUID=
103 | - PGID=
104 | volumes:
105 | - /etc/localtime:/etc/localtime:ro
106 | - /opt/fs22/config:/opt/fs22/config
107 | - /opt/fs22/game:/opt/fs22/game
108 | - /opt/fs22/dlc:/opt/fs22/dlc
109 | - /opt/fs22/installer:/opt/fs22/installer
110 | ports:
111 | - 5900:5900/tcp
112 | - 8080:8080/tcp
113 | - 10823:10823/tcp
114 | - 10823:10823/udp
115 | cap_add:
116 | - SYS_NICE
117 | restart: unless-stopped
118 | ```
119 |
120 | ### Docker run
121 | ```
122 | $ docker run -d \
123 | --name arch-wine-fs22 \
124 | -p 5900:5900/tcp \
125 | -p 8080:8080/tcp \
126 | -p 9000:9000/tcp \
127 | -p 10823:10823/tcp \
128 | -p 10823:10823/udp \
129 | -v /etc/localtime:/etc/localtime:ro \
130 | -v /opt/fs22/installer:/opt/fs22/installer \
131 | -v /opt/fs22/config:/opt/fs22/config \
132 | -v /opt/fs22/game:/opt/fs22/game \
133 | -v /opt/fs22/dlc:/opt/fs22/dlc \
134 | -e VNC_PASSWORD="" \
135 | -e WEB_USERNAME="" \
136 | -e WEB_PASSWORD="" \
137 | -e SERVER_NAME="" \
138 | -e SERVER_PASSWORD="your game join password" \
139 | -e SERVER_ADMIN="" \
140 | -e SERVER_PLAYERS="16" \
141 | -e SERVER_PORT="10823" \
142 | -e SERVER_REGION="en" \
143 | -e SERVER_MAP="MapUS" \
144 | -e SERVER_DIFFICULTY="3" \
145 | -e SERVER_PAUSE="2" \
146 | -e SERVER_SAVE_INTERVAL="180.000000" \
147 | -e SERVER_STATS_INTERVAL="31536000" \
148 | -e SERVER_CROSSPLAY="true" \
149 | -e PUID= \
150 | -e PGID= \
151 | toetje585/arch-wine-fs22
152 | ```
153 | # Installation
154 |
155 | ## Initial installation
156 |
157 | Before starting the Docker container, it is necessary to go through the initial configuration process. Unlike many other games that provide standalone server binaries, Farming Simulator does not offer this option. Instead, the required files are included in the digital download package. To obtain these files, you will need to download the full game (ZIP Version) and all DLC from the [Download Portal](https://eshop.giants-software.com/downloads.php).
158 |
159 | We will provide more detailed instructions below, but rest assured that the installation process is a one-time requirement. If the compose file is correctly configured with the correct mount paths, you will not lose the installation or configuration files even if you remove or purge the Docker image/container.
160 |
161 | ## Downloading the dedicated server
162 |
163 | If you purchased the game or already have a product key you can download the game/dlc on the host machine from the [Download Portal](https://eshop.giants-software.com/downloads.php)
164 |
165 | - Farming Simulator 22 (ZIP Archive)
166 |
167 | The DLC files are often just an .exe executable you can download them, we move them into the right place later on.
168 |
169 | ## Preparing the needed directories on the host machine
170 |
171 | To ensure that the installation remains intact even if you remove or update the Docker container, it is important to configure specific directories on the host side. A common practice is to place these directories in `/opt`, although you can choose any other preferred mount point according to your needs and preferences.
172 |
173 | `$sudo mkdir -p /opt/fs22/{config,game,installer,dlc}`
174 |
175 | To enable read and write access for the user account configured in the compose file (PUID/PGID), we need to ensure that the Docker container can interact with the designated directory. This can be achieved by executing the following command, which grants the necessary permissions:
176 |
177 | ```bash
178 | sudo chown -R myuser:mygroup /opt/fs22
179 | ```
180 |
181 | Replace `` with the appropriate user and `` with the users primary group (often the same as `` if unsure use the id command below).
182 |
183 | To incorporate the necessary PUID (User ID) and PGID (Group ID) values into the docker-compose/run file, you can utilize the Linux `id` command to retrieve the appropriate values. Run the following command:
184 |
185 | ```bash
186 | id username
187 | ```
188 |
189 | Replace `username` with the desired username.
190 |
191 | Once you have obtained the User ID (UID) and Group ID (PGID) from the output of the `id` command, add them to the docker-compose/run file using the following YAML syntax:
192 |
193 | ```yaml
194 | - PUID=
195 | - PGID=
196 | ```
197 |
198 | Make sure to append `` with the actual User ID value and `` with the corresponding Group ID value.
199 |
200 | Example:
201 |
202 | ```yaml
203 | - PUID=1000
204 | - PGID=1000
205 | ```
206 |
207 | ## Unpack and move the installer
208 |
209 | You should now unpack the installer and place the unzipped files inside the */your/path/fs22/installer* directory, all dlc should be placed in the */your/path/fs22/dlc* directory. If we start the docker container those directories will be mapped inside the container hence making them available for installation.
210 |
211 | *Note: left mounth paths are on the host machine, the right mount path is inside the docker image and should be left untouched*
212 |
213 | ```
214 | - /your/path/fs22/installer:/opt/fs22/installer
215 | - /your/path/fs22/config:/opt/fs22/config
216 | - /your/path/fs22/game:/opt/fs22/game
217 | - /your/path/fs22/dlc:/opt/fs22/dlc
218 | ```
219 |
220 | ## Starting the container
221 |
222 | With the host directories configured and the compose file set up accordingly, you are now ready to start the container.
223 | inside the same direcoty where the modified docker-compose.yml is located run the following command.
224 |
225 | ```bash
226 | docker-compose up -d
227 | ```
228 |
229 | *Tip: You can use `$docker ps` to see if the container started correctly.
230 |
231 | ## Connecting to the VNC Server
232 |
233 | To connect to the VNC Server using VNC Viewer, you can establish a connection by specifying the IP address followed by the choosen vnc port number default `5900`. This connection will open up a full desktop environment, allowing you to proceed with the installation of the dedicated server.
234 |
235 | Please launch VNC Viewer and enter the following in the connection field:
236 |
237 | ```
238 | ip:5900
239 | ```
240 |
241 | Replace `ip` with the actual IP address of the server.
242 |
243 | # Server Installation
244 |
245 | ## Running the installation
246 |
247 | Open up the terminal, and run the below command.
248 |
249 | `$./setup_giants.sh`
250 |
251 | This should run the installer, complete the installation. After the installation is completed we can start the server by using the below command.
252 |
253 | ## Starting the admin portal
254 |
255 | `$./start_webserver.sh`
256 |
257 | We don't have a browser inside the VNC Desktop, check if the server is working by going to ip:8080 on a other machine!
258 |
259 | # Environment variables
260 |
261 | Getting the PUID and GUID is explained [here](https://man7.org/linux/man-pages/man1/id.1.html).
262 |
263 | | Name | Default | Purpose |
264 | |----------|----------|-------|
265 | | `VNC_PASSWORD` || Password for connecting using the vnc client |
266 | | `WEB_USERNAME` | `admin` | Username for admin portal at :8080 |
267 | | `SERVER_NAME` || Servername that will be shown in the server browser |
268 | | `SERVER_PORT` | `10823` | Default: 10823, port that the server will listen on |
269 | | `SERVER_PASSWORD` || The game join password |
270 | | `SERVER_ADMIN` || The server ingame admin password |
271 | | `SERVER_REGION` | `en` | en, de, jp, pl, cz, fr, es, ru, it, pt, hu, nl, cs, ct, br, tr, ro, kr, ea, da, fi, no, sv, fc |
272 | | `SERVER_PLAYERS` | `16` | Default: 16, amount of players allowed on the server |
273 | | `SERVER_MAP` | `MapUS` | Default: MapUS (Elmcreek), other official maps are: MapFR (Haut-Beyleron), MapAlpine (Erlengrat) |
274 | | `SERVER_DIFFICULTY` | `3` | Default: 3, start from scratch |
275 | | `SERVER_PAUSE` | `2` | Default: 2, pause the server if no players are connected 1, never pause the server |
276 | | `SERVER_SAVE_INTERVAL` | `180.000000` | Default: 180.000000, in seconds.|
277 | | `SERVER_STATS_INTERVAL` | `31536000` | Default: 120.000000|
278 | | `SERVER_CROSSPLAY` | `true/false` | Default: true |
279 | | `PUID` || PUID of username used on the local machine |
280 | | `GUID` || GUID of username used on the local machine |
281 |
282 | # Discord
283 |
284 | Need support or like to contribute towards our community you can try to join our Discord server.
285 |
286 | https://discord.gg/Ejz2MaXSNb
287 |
288 | # Legal disclaimer
289 | This Docker container is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by [Giants Software](https://giants-software.com) and [Farming Simulator 22](https://farming-simulator.com/). The logo [Farming Simulator 22](https://giants-software.com) are © 2023 Giants Software.
290 |
291 | # Notes
292 |
293 | 13-05-2024: Force rebuild to add support for latest dlc!
294 |
--------------------------------------------------------------------------------
/build/install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | # needed packages
6 |
7 | echo "[info] Installing packages currently not installed..."
8 | pacman -Syu --noconfirm && pacman -S nginx-mainline --noconfirm
9 |
10 | # create file with contents of here doc, note EOF is NOT quoted to allow us to expand current variable 'install_paths'
11 | # we use escaping to prevent variable expansion for PUID and PGID, as we want these expanded at runtime of init.sh
12 |
13 | # env vars
14 | ####
15 |
16 | cat <<'EOF' > /tmp/envvars_heredoc
17 |
18 | # Webserver
19 |
20 | if [ -n "$WEB_USERNAME" ]; then
21 | sed -i "s/admin<\/username>/$WEB_USERNAME<\/username>/" /opt/fs22/xml/default_dedicatedServer.xml
22 | fi
23 |
24 | if [ -n "$WEB_PASSWORD" ]; then
25 | sed -i "s/webpassword<\/passphrase>/$WEB_PASSWORD<\/passphrase>/" /opt/fs22/xml/default_dedicatedServer.xml
26 | fi
27 |
28 | # Gameserver
29 |
30 | if [ -n "$SERVER_NAME" ]; then
31 | sed -i "s/<\/game_name>/$SERVER_NAME<\/game_name>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
32 | fi
33 |
34 | if [ -n "$SERVER_ADMIN" ]; then
35 | sed -i "s/<\/admin_password>/$SERVER_ADMIN<\/admin_password>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
36 | fi
37 |
38 | if [ -n "$SERVER_PASSWORD" ]; then
39 | sed -i "s/<\/game_password>/$SERVER_PASSWORD<\/game_password>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
40 | fi
41 |
42 | if [ -n "$SERVER_PLAYERS" ]; then
43 | sed -i "s/12<\/max_player>/$SERVER_PLAYERS<\/max_player>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
44 | fi
45 |
46 | if [ -n "$SERVER_PORT" ]; then
47 | sed -i "s/10823<\/port>/$SERVER_PORT<\/port>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
48 | fi
49 |
50 | if [ -n "$SERVER_REGION" ]; then
51 | sed -i "s/en<\/language>/$SERVER_REGION<\/language>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
52 | fi
53 |
54 | if [ -n "$SERVER_MAP" ]; then
55 | sed -i "s/MapUS<\/mapID>/$SERVER_MAP<\/mapID>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
56 | fi
57 |
58 | if [ -n "$SERVER_DIFFICULTY" ]; then
59 | sed -i "s/3<\/difficulty>/$SERVER_DIFFICULTY<\/difficulty>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
60 | fi
61 |
62 | if [ -n "$SERVER_PAUSE" ]; then
63 | sed -i "s/2<\/pause_game_if_empty>/$SERVER_PAUSE<\/pause_game_if_empty>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
64 | fi
65 |
66 | if [ -n "$SERVER_SAVE_INTERVAL" ]; then
67 | sed -i "s/180.000000<\/auto_save_interval>/$SERVER_SAVE_INTERVAL<\/auto_save_interval>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
68 | fi
69 |
70 | if [ -n "$SERVER_STATS_INTERVAL" ]; then
71 | sed -i "s/360.000000<\/stats_interval>/$SERVER_STATS_INTERVAL<\/stats_interval>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
72 | fi
73 |
74 | if [ -n "$SERVER_CROSSPLAY" ]; then
75 | sed -i "s/true<\/crossplay_allowed>/$SERVER_CROSSPLAY<\/crossplay_allowed>/" /opt/fs22/xml/default_dedicatedServerConfig.xml
76 | fi
77 |
78 | EOF
79 |
80 | # replace env vars placeholder string with contents of file (here doc)
81 |
82 | sed -i '/# ENVVARS_PLACEHOLDER/{
83 | s/# ENVVARS_PLACEHOLDER//g
84 | r /tmp/envvars_heredoc
85 | }' /usr/local/bin/init.sh
86 | rm /tmp/envvars_heredoc
87 |
88 | # Symlinks
89 |
90 | ln -s /opt/fs22/setup_giants.sh /home/nobody/setup_giants.sh
91 | ln -s /opt/fs22/start_webserver.sh /home/nobody/start_webserver.sh
92 |
--------------------------------------------------------------------------------
/build/rootfs/etc/nginx/nginx.conf:
--------------------------------------------------------------------------------
1 | # Generated for https://github.com/wine-gameservers/arch-wine-fs22
2 | # See nginxconfig.txt for the configuration share link
3 |
4 | user nobody;
5 | pid /run/nginx.pid;
6 | worker_processes auto;
7 | worker_rlimit_nofile 65535;
8 |
9 | # Load modules
10 | include /etc/nginx/modules-enabled/*.conf;
11 |
12 | events {
13 | multi_accept on;
14 | worker_connections 65535;
15 | }
16 |
17 | http {
18 | charset utf-8;
19 | sendfile on;
20 | tcp_nopush on;
21 | tcp_nodelay on;
22 | server_tokens off;
23 | log_not_found off;
24 | types_hash_max_size 4096;
25 | types_hash_bucket_size 64;
26 | client_max_body_size 16M;
27 |
28 | # MIME
29 | include mime.types;
30 | default_type application/octet-stream;
31 |
32 | # Logging
33 | access_log off;
34 | error_log /dev/null;
35 |
36 | # Limits
37 | limit_req_log_level warn;
38 | limit_req_zone $binary_remote_addr zone=login:10m rate=10r/m;
39 |
40 | # Load configs
41 | include /etc/nginx/conf.d/*.conf;
42 | include /etc/nginx/sites-enabled/*;
43 | }
44 |
--------------------------------------------------------------------------------
/build/rootfs/etc/nginx/sites-enabled/fs22:
--------------------------------------------------------------------------------
1 | server {
2 | listen 8080;
3 | # listen [::]:80 ipv6only=on;
4 |
5 | #_SSL_PORT_#listen 443 ssl ;
6 | #_SSL_PORT_#listen [::]:443 ssl ipv6only=on;
7 | #_SSL_PORT_#ssl_certificate /etc/nginx/ssl/nginx.crt;
8 | #_SSL_PORT_#ssl_certificate_key /etc/nginx/ssl/nginx.key;
9 |
10 | #_HTTP_PASSWORD_#auth_basic "Private Property";
11 | #_HTTP_PASSWORD_#auth_basic_user_file /etc/nginx/.htpasswd;
12 | client_max_body_size 1710M;
13 |
14 | location / {
15 | #_RELATIVE_URL_ROOT_rewrite /_RELATIVE_URL_ROOT_/(.*) $1 break;
16 | proxy_set_header X-Real-IP $remote_addr;
17 | proxy_set_header X-Forwarded-For $remote_addr;
18 | proxy_set_header Host $host:$server_port;
19 | proxy_pass http://127.0.0.1:7999;
20 | client_max_body_size 1710M;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/build/rootfs/etc/supervisor/conf.d/nginx.conf:
--------------------------------------------------------------------------------
1 | [program:nginx]
2 | priority=10
3 | command=nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
4 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/.config/gtk-2.0/gtkfilechooser.ini:
--------------------------------------------------------------------------------
1 | [Filechooser Settings]
2 | LocationMode=path-bar
3 | ShowHidden=false
4 | ShowSizeColumn=true
5 | GeometryX=0
6 | GeometryY=0
7 | GeometryWidth=1022
8 | GeometryHeight=675
9 | SortColumn=name
10 | SortOrder=ascending
11 | StartupMode=recent
12 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/.config/libfm/libfm.conf:
--------------------------------------------------------------------------------
1 | # Configuration file for the libfm version 1.3.2.
2 | # Autogenerated file, don't edit, your changes will be overwritten.
3 |
4 | [config]
5 | single_click=0
6 | use_trash=1
7 | confirm_del=1
8 | confirm_trash=1
9 | advanced_mode=0
10 | si_unit=0
11 | force_startup_notify=1
12 | backup_as_hidden=1
13 | no_usb_trash=1
14 | no_child_non_expandable=0
15 | show_full_names=0
16 | only_user_templates=0
17 | template_run_app=0
18 | template_type_once=0
19 | auto_selection_delay=600
20 | drop_default_action=auto
21 | defer_content_test=0
22 | quick_exec=1
23 | thumbnail_local=1
24 | thumbnail_max=2048
25 | smart_desktop_autodrop=1
26 |
27 | [ui]
28 | big_icon_size=48
29 | small_icon_size=24
30 | pane_icon_size=24
31 | thumbnail_size=128
32 | show_thumbnail=1
33 | shadow_hidden=0
34 |
35 | [places]
36 | places_home=1
37 | places_desktop=1
38 | places_root=0
39 | places_computer=0
40 | places_trash=1
41 | places_applications=1
42 | places_network=0
43 | places_unmounted=1
44 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/.config/lxpanel/LXDE/config:
--------------------------------------------------------------------------------
1 | [Command]
2 | Logout=lxde-logout
3 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/.config/lxpanel/LXDE/panels/panel:
--------------------------------------------------------------------------------
1 | # lxpanel config file. Manually editing is not recommended.
2 | # Use preference dialog in lxpanel to adjust config when you can.
3 |
4 | Global {
5 | edge=bottom
6 | align=left
7 | margin=0
8 | widthtype=percent
9 | width=100
10 | height=26
11 | transparent=1
12 | tintcolor=#c69f6b
13 | alpha=255
14 | setdocktype=1
15 | setpartialstrut=1
16 | autohide=0
17 | heightwhenhidden=0
18 | usefontcolor=1
19 | fontcolor=#ffffff
20 | background=0
21 | backgroundfile=/usr/share/lxpanel/images/background.png
22 | }
23 | Plugin {
24 | type=space
25 | Config {
26 | Size=2
27 | }
28 | }
29 | Plugin {
30 | type=menu
31 | Config {
32 | image=/usr/share/lxde/images/lxde-icon.png
33 | system {
34 | }
35 | separator {
36 | }
37 | item {
38 | command=run
39 | }
40 | separator {
41 | }
42 | item {
43 | image=gnome-logout
44 | command=logout
45 | }
46 | }
47 | }
48 | Plugin {
49 | type=launchbar
50 | Config {
51 | Button {
52 | id=pcmanfm.desktop
53 | }
54 | Button {
55 | id=firefox.desktop
56 | }
57 | }
58 | }
59 | Plugin {
60 | type=taskbar
61 | expand=1
62 | Config {
63 | tooltips=1
64 | IconsOnly=0
65 | AcceptSkipPager=1
66 | ShowIconified=1
67 | ShowMapped=1
68 | ShowAllDesks=0
69 | UseMouseWheel=1
70 | UseUrgencyHint=1
71 | FlatButton=0
72 | MaxTaskWidth=150
73 | spacing=1
74 | }
75 | }
76 | Plugin {
77 | type=tray
78 | Config {
79 | }
80 | }
81 | Plugin {
82 | type=dclock
83 | Config {
84 | ClockFmt=%R
85 | TooltipFmt=%A %x
86 | BoldFont=0
87 | IconOnly=0
88 | CenterText=0
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/.config/lxpanel/launchtaskbar.cfg:
--------------------------------------------------------------------------------
1 | [special_cases]
2 | synaptic=synaptic-pkexec
3 | soffice.bin=libreoffice
4 | x-terminal-emulator=lxterminal
5 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/.config/lxterminal/lxterminal.conf:
--------------------------------------------------------------------------------
1 | [general]
2 | fontname=Monospace 10
3 | selchars=-A-Za-z0-9,./?%:_
4 | scrollback=1000
5 | bgcolor=rgb(0,0,0)
6 | fgcolor=rgb(170,170,170)
7 | palette_color_0=rgb(0,0,0)
8 | palette_color_1=rgb(170,0,0)
9 | palette_color_2=rgb(0,170,0)
10 | palette_color_3=rgb(170,85,0)
11 | palette_color_4=rgb(0,0,170)
12 | palette_color_5=rgb(170,0,170)
13 | palette_color_6=rgb(0,170,170)
14 | palette_color_7=rgb(170,170,170)
15 | palette_color_8=rgb(85,85,85)
16 | palette_color_9=rgb(255,85,85)
17 | palette_color_10=rgb(85,255,85)
18 | palette_color_11=rgb(255,255,85)
19 | palette_color_12=rgb(85,85,255)
20 | palette_color_13=rgb(255,85,255)
21 | palette_color_14=rgb(85,255,255)
22 | palette_color_15=rgb(255,255,255)
23 | color_preset=VGA
24 | disallowbold=false
25 | boldbright=false
26 | cursorblinks=false
27 | cursorunderline=false
28 | audiblebell=false
29 | visualbell=false
30 | tabpos=top
31 | geometry_columns=80
32 | geometry_rows=24
33 | hidescrollbar=false
34 | hidemenubar=false
35 | hideclosebutton=false
36 | hidepointer=false
37 | disablef10=false
38 | disablealt=false
39 | disableconfirm=false
40 |
41 | [shortcut]
42 | new_window_accel=n
43 | new_tab_accel=t
44 | close_tab_accel=w
45 | close_window_accel=q
46 | copy_accel=c
47 | paste_accel=v
48 | name_tab_accel=i
49 | previous_tab_accel=Page_Up
50 | next_tab_accel=Page_Down
51 | move_tab_left_accel=Page_Up
52 | move_tab_right_accel=Page_Down
53 | zoom_in_accel=plus
54 | zoom_out_accel=underscore
55 | zoom_reset_accel=parenright
56 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/.config/pcmanfm/LXDE/desktop-items-0.conf:
--------------------------------------------------------------------------------
1 | [*]
2 | wallpaper_mode=crop
3 | wallpaper_common=1
4 | wallpaper=/usr/share/lxde/wallpapers/winegameserversfs22.jpg
5 | desktop_bg=#000000
6 | desktop_fg=#ffffff
7 | desktop_shadow=#000000
8 | desktop_font=Sans 12
9 | show_wm_menu=0
10 | sort=mtime;ascending;
11 | show_documents=0
12 | show_trash=1
13 | show_mounts=0
14 |
15 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/.config/pcmanfm/LXDE/pcmanfm.conf:
--------------------------------------------------------------------------------
1 | [config]
2 | bm_open_method=0
3 |
4 | [volume]
5 | mount_on_startup=1
6 | mount_removable=1
7 | autorun=1
8 |
9 | [ui]
10 | always_show_tabs=0
11 | max_tab_chars=32
12 | win_width=640
13 | win_height=480
14 | splitter_pos=150
15 | media_in_new_tab=0
16 | desktop_folder_new_win=0
17 | change_tab_on_drop=1
18 | close_on_unmount=1
19 | focus_previous=0
20 | side_pane_mode=places
21 | view_mode=icon
22 | show_hidden=1
23 | sort=name;ascending;
24 | toolbar=newtab;navigation;home;
25 | show_statusbar=1
26 | pathbar_mode_buttons=0
27 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/Desktop/setup_giants.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Encoding=UTF-8
3 | Name=WebServer
4 | Comment=Run WebServer
5 | Icon=/home/nobody/icons/icon0.jpg
6 | Exec=lxterminal --command="/bin/bash -c '/opt/fs22/setup_giants.sh'"
7 | Terminal=false
8 | Type=Application
9 | Name[en_US]=Setup
10 | Comment[en_US]=Run setup
11 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/Desktop/start_server.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Encoding=UTF-8
3 | Name=WebServer
4 | Comment=Run WebServer
5 | Icon=/home/nobody/icons/icon1.jpg
6 | Exec=/opt/fs22/start_webserver.sh
7 | Terminal=false
8 | Type=Application
9 | Name[en_US]=Start Server
10 | Comment[en_US]=Start webserver
11 |
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/icons/icon0.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wine-gameservers/arch-wine-fs22/7e425c709ce37276acbfed19c8a83e0b91ff1885/build/rootfs/home/nobody/icons/icon0.jpg
--------------------------------------------------------------------------------
/build/rootfs/home/nobody/icons/icon1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wine-gameservers/arch-wine-fs22/7e425c709ce37276acbfed19c8a83e0b91ff1885/build/rootfs/home/nobody/icons/icon1.jpg
--------------------------------------------------------------------------------
/build/rootfs/opt/fs22/setup_giants.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | export WINEDLLOVERRIDES=mscoree=d
4 | export WINEDEBUG=-all
5 | export WINEPREFIX=~/.fs22server
6 | export WINEARCH=win64
7 | export USER=nobody
8 |
9 | # Debug info/warning/error color
10 |
11 | NOCOLOR='\033[0;0m'
12 | GREEN='\033[0;32m'
13 | YELLOW='\033[1;33m'
14 | RED='\033[0;31m'
15 |
16 | # Create a clean 64bit Wineprefix
17 |
18 | if [ -d ~/.fs22server ]
19 | then
20 | rm -r ~/.fs22server && wine wineboot
21 | else
22 | wine wineboot
23 |
24 | fi
25 |
26 | if [ -f /opt/fs22/dlc/FarmingSimulator22_antonioCarraroPack_*.exe ]; then
27 | echo -e "${GREEN}INFO: Antonio Carraro SETUP FOUND!${NOCOLOR}"
28 | else
29 | echo -e "${YELLOW}WARNING: Antonio Carraro Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
30 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
31 | fi
32 |
33 | if [ -f /opt/fs22/dlc/FarmingSimulator22_agiPack_*.exe ]; then
34 | echo -e "${GREEN}INFO: AGI Pack SETUP FOUND!${NOCOLOR}"
35 | else
36 | echo -e "${YELLOW}WARNING: AGI Pack Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
37 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
38 | fi
39 |
40 | if [ -f /opt/fs22/dlc/FarmingSimulator22_claasSaddleTracPack_*.exe ]; then
41 | echo -e "${GREEN}INFO: CLAAS XERION SADDLE TRAC SETUP FOUND!${NOCOLOR}"
42 | else
43 | echo -e "${YELLOW}WARNING: CLAAS XERION SADDLE TRAC Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
44 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
45 | fi
46 |
47 | if [ -f /opt/fs22/dlc/FarmingSimulator22_eroPack_*.exe ]; then
48 | echo -e "${GREEN}INFO: Ero Pack SETUP FOUND!${NOCOLOR}"
49 | else
50 | echo -e "${YELLOW}WARNING: Ero Pack Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
51 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
52 | fi
53 |
54 | if [ -f /opt/fs22/dlc/FarmingSimulator22_extraContentVolvoLM845_*.exe ]; then
55 | echo -e "${GREEN}INFO: Volvo LM845 SETUP FOUND!${NOCOLOR}"
56 | else
57 | echo -e "${YELLOW}WARNING: Volvo LM845 Pack Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
58 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
59 | fi
60 |
61 | if [ -f /opt/fs22/dlc/FarmingSimulator22_forestryPack_*.exe ]; then
62 | echo -e "${GREEN}INFO: Forestry Pack SETUP FOUND!${NOCOLOR}"
63 | else
64 | echo -e "${YELLOW}WARNING: ForestryPack Pack Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
65 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
66 | fi
67 |
68 | if [ -f /opt/fs22/dlc/FarmingSimulator22_goeweilPack_*.exe ]; then
69 | echo -e "${GREEN}INFO: Goeweil Pack SETUP FOUND!${NOCOLOR}"
70 | else
71 | echo -e "${YELLOW}WARNING: Goeweil Pack Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
72 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
73 | fi
74 |
75 | if [ -f /opt/fs22/dlc/FarmingSimulator22_hayAndForagePack_*.exe ]; then
76 | echo -e "${GREEN}INFO: Hay And Forage Pack SETUP FOUND!${NOCOLOR}"
77 | else
78 | echo -e "${YELLOW}WARNING: Hay And Forage Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
79 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
80 | fi
81 |
82 | if [ -f /opt/fs22/dlc/FarmingSimulator22_kubotaPack_*.exe ]; then
83 | echo -e "${GREEN}INFO: Kubota Pack SETUP FOUND!${NOCOLOR}"
84 | else
85 | echo -e "${YELLOW}WARNING: Kubota Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
86 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
87 | fi
88 |
89 | if [ -f /opt/fs22/dlc/FarmingSimulator22_vermeerPack_*.exe ]; then
90 | echo -e "${GREEN}INFO: Vermeer Pack SETUP FOUND!${NOCOLOR}"
91 | else
92 | echo -e "${YELLOW}WARNING: Vermeer Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
93 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
94 | fi
95 |
96 | if [ -f /opt/fs22/dlc/FarmingSimulator22_pumpsAndHosesPack_*.exe ]; then
97 | echo -e "${GREEN}INFO: Pumps And Hoses Pack SETUP FOUND!${NOCOLOR}"
98 | else
99 | echo -e "${YELLOW}WARNING: Pumps And Hoses Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
100 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
101 | fi
102 |
103 | if [ -f /opt/fs22/dlc/FarmingSimulator22_horschAgrovation_*.exe ]; then
104 | echo -e "${GREEN}INFO: Horsch AgroVation Pack SETUP FOUND!${NOCOLOR}"
105 | else
106 | echo -e "${YELLOW}WARNING: Horsch AgroVation Pack Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
107 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
108 | fi
109 |
110 | if [ -f /opt/fs22/dlc/FarmingSimulator22_oxboPack_*.exe ]; then
111 | echo -e "${GREEN}INFO: OXBO Pack SETUP FOUND!${NOCOLOR}"
112 | else
113 | echo -e "${YELLOW}WARNING: OXBO Pack Setup not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
114 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
115 | fi
116 |
117 | if [ -f /opt/fs22/dlc/FarmingSimulator22_premiumExpansion_*.exe ]; then
118 | echo -e "${GREEN}INFO: Premium Expansion SETUP FOUND!${NOCOLOR}"
119 | else
120 | echo -e "${YELLOW}WARNING: Premium Expansion not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
121 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
122 | fi
123 |
124 | if [ -f /opt/fs22/dlc/FarmingSimulator22_farmProductionPack_*.exe ]; then
125 | echo -e "${GREEN}INFO: Farming Production Pack FOUND!${NOCOLOR}"
126 | else
127 | echo -e "${YELLOW}WARNING: Farming Production Pack not found, do you own it and does it exist in the dlc mount path?${NOCOLOR}"
128 | echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
129 | fi
130 | # it's important to check if the config directory exists on the host mount path. If it doesn't exist, create it.
131 |
132 | if [ -d /opt/fs22/config/FarmingSimulator2022 ]
133 | then
134 | echo -e "${GREEN}INFO: The host config directory exists, no need to create it!${NOCOLOR}"
135 | else
136 | mkdir -p /opt/fs22/config/FarmingSimulator2022
137 |
138 | fi
139 |
140 | # it's important to check if the game directory exists on the host mount path. If it doesn't exist, create it.
141 |
142 | if [ -d /opt/fs22/game/Farming\ Simulator\ 2022 ]
143 | then
144 | echo -e "${GREEN}INFO: The host game directory exists, no need to create it!${NOCOLOR}"
145 | else
146 | mkdir -p /opt/fs22/game/Farming\ Simulator\ 2022
147 |
148 | fi
149 |
150 | # Symlink the host game path inside the wine prefix to preserve the installation on image deletion or update.
151 |
152 |
153 | if [ -d /opt/fs22/game/Farming\ Simulator\ 2022 ]
154 | then
155 | ln -s /opt/fs22/game/Farming\ Simulator\ 2022 ~/.fs22server/drive_c/Program\ Files\ \(x86\)/Farming\ Simulator\ 2022
156 | else
157 | echo -e "${RED}Error: There is a problem... the host game directory does not exist, unable to create the symlink, the installation has failed!${NOCOLOR}"
158 |
159 | fi
160 |
161 | # Symlink the host config path inside the wine prefix to preserver the config files on image deletion or update.
162 |
163 | if [ -d ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022 ]
164 | then
165 | echo -e "${GREEN}INFO: The symlink is already in place, no need to create one!${NOCOLOR}"
166 | else
167 | mkdir -p ~/.fs22server/drive_c/users/$USER/Documents/My\ Games && ln -s /opt/fs22/config/FarmingSimulator2022 ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022
168 |
169 | fi
170 |
171 | if [ -d ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/logs ]
172 | then
173 | echo -e "${GREEN}INFO: The log directories are in place!${NOCOLOR}"
174 | else
175 | mkdir -p ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/logs
176 |
177 | fi
178 |
179 | if [ -f ~/.fs22server/drive_c/Program\ Files\ \(x86\)/Farming\ Simulator\ 2022/FarmingSimulator2022.exe ]
180 | then
181 | echo -e "${GREEN}INFO: Game already installed, we can skip the installer!${NOCOLOR}"
182 | else
183 | wine "/opt/fs22/installer/FarmingSimulator2022.exe"
184 | fi
185 |
186 | # Cleanup Desktop
187 |
188 | if [ -f ~/Desktop/ ]
189 | then
190 | rm -r "~/Desktop/Farming\ Simulator\ 22\ .*"
191 | else
192 | echo -e "${GREEN}INFO: Nothing to cleanup!${NOCOLOR}"
193 | fi
194 |
195 | # Do we have a license file installed?
196 |
197 | count=`ls -1 ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/*.dat 2>/dev/null | wc -l`
198 | if [ $count != 0 ]
199 | then
200 | echo -e "${GREEN}INFO: Generating the game license files as needed!${NOCOLOR}"
201 | else
202 | wine ~/.fs22server/drive_c/Program\ Files\ \(x86\)/Farming\ Simulator\ 2022/FarmingSimulator2022.exe
203 | fi
204 |
205 | count=`ls -1 ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/*.dat 2>/dev/null | wc -l`
206 | if [ $count != 0 ]
207 | then
208 | echo -e "${GREEN}INFO: The license files are in place!${NOCOLOR}"
209 | else
210 | echo -e "${RED}ERROR: No license files detected, they are generated after you enter the cd-key during setup... most likely the setup is failing to start!${NOCOLOR}" && exit
211 | fi
212 |
213 | # Copy webserver config..
214 |
215 | if [ -d ~/.fs22server/drive_c/Program\ Files\ \(x86\)/Farming\ Simulator\ 2022/ ]
216 | then
217 | cp "/opt/fs22/xml/default_dedicatedServer.xml" ~/.fs22server/drive_c/Program\ Files\ \(x86\)/Farming\ Simulator\ 2022/dedicatedServer.xml
218 | else
219 | echo -e "${RED}ERROR: Game is not installed?${NOCOLOR}" && exit
220 | fi
221 |
222 | # Copy server config
223 |
224 | if [ -d ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/ ]
225 | then
226 | cp "/opt/fs22/xml/default_dedicatedServerConfig.xml" ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/dedicatedServerConfig.xml
227 | else
228 | echo -e "${RED}ERROR: Game didn't start for first time, no directories?${NOCOLOR}" && exit
229 | fi
230 |
231 |
232 | # Install DLC
233 |
234 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/antonioCarraroPack.dlc ]
235 | then
236 | echo -e "${GREEN}INFO: Antonio Carraro Pack already installed!${NOCOLOR}"
237 | else
238 | if [ -f /opt/fs22/dlc/FarmingSimulator22_antonioCarraroPack_*.exe ]; then
239 | echo -e "${GREEN}INFO: Installing the Antonio Carraro Pack!${NOCOLOR}"
240 | for i in /opt/fs22/dlc/FarmingSimulator22_antonioCarraroPack*.exe; do wine "$i"; done
241 | echo -e "${GREEN}INFO: Antonio Carraro Pack is now installed!${NOCOLOR}"
242 | fi
243 | fi
244 |
245 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/agiPack.dlc ]
246 | then
247 | echo -e "${GREEN}INFO: AGI Pack already installed!${NOCOLOR}"
248 | else
249 | if [ -f /opt/fs22/dlc/FarmingSimulator22_agiPack_*.exe ]; then
250 | echo -e "${GREEN}INFO: Installing the AGI Pack!${NOCOLOR}"
251 | for i in /opt/fs22/dlc/FarmingSimulator22_agiPack_*.exe; do wine "$i"; done
252 | echo -e "${GREEN}INFO: AGI Pack is now installed!${NOCOLOR}"
253 | fi
254 | fi
255 |
256 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/claasSaddleTracPack.dlc ]
257 | then
258 | echo -e "${GREEN}INFO: CLAAS XERION SADDLE TRAC Pack already installed!${NOCOLOR}"
259 | else
260 | if [ -f /opt/fs22/dlc/FarmingSimulator22_claasSaddleTracPack_*.exe ]; then
261 | echo -e "${GREEN}INFO: Installing the Claas Saddle TRAC Pack!${NOCOLOR}"
262 | for i in /opt/fs22/dlc/FarmingSimulator22_claasSaddleTracPack*.exe; do wine "$i"; done
263 | echo -e "${GREEN}INFO: CLAAS XERION SADDLE TRAC Pack is now installed!${NOCOLOR}"
264 | fi
265 | fi
266 |
267 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/eroPack.dlc ]
268 | then
269 | echo -e "${GREEN}INFO: Ero Pack already installed!${NOCOLOR}"
270 | else
271 | if [ -f /opt/fs22/dlc/FarmingSimulator22_eroPack_*.exe ]; then
272 | echo -e "${GREEN}INFO: Installing the Ero Pack!${NOCOLOR}"
273 | for i in /opt/fs22/dlc/FarmingSimulator22_eroPack*.exe; do wine "$i"; done
274 | echo -e "${GREEN}INFO: Ero Pack is now installed!${NOCOLOR}"
275 | fi
276 | fi
277 |
278 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/extraContentVolvoLM845.dlc ]
279 | then
280 | echo -e "${GREEN}INFO: Volvo LM845 Pack already installed!${NOCOLOR}"
281 | else
282 | if [ -f /opt/fs22/dlc/FarmingSimulator22_extraContentVolvoLM845_*.exe ]; then
283 | echo -e "${GREEN}INFO: Installing the Volvo LM845 Pack!${NOCOLOR}"
284 | for i in /opt/fs22/dlc/FarmingSimulator22_extraContentVolvoLM84*.exe; do wine "$i"; done
285 | echo -e "${GREEN}INFO: Volvo LM845 Pack is now installed!${NOCOLOR}"
286 | fi
287 | fi
288 |
289 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/forestryPack.dlc ]
290 | then
291 | echo -e "${GREEN}INFO: Forestry Pack already installed!${NOCOLOR}"
292 | else
293 | if [ -f /opt/fs22/dlc/FarmingSimulator22_forestryPack_*.exe ]; then
294 | echo -e "${GREEN}INFO: Installing the Forestry Pack!${NOCOLOR}"
295 | for i in /opt/fs22/dlc/FarmingSimulator22_forestryPack*.exe; do wine "$i"; done
296 | echo -e "${GREEN}INFO: Forestry Pack is now installed!${NOCOLOR}"
297 | fi
298 | fi
299 |
300 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/goeweilPack.dlc ]
301 | then
302 | echo -e "${GREEN}INFO: Goeweil Pack already installed!${NOCOLOR}"
303 | else
304 | if [ -f /opt/fs22/dlc/FarmingSimulator22_goeweilPack_*.exe ]; then
305 | echo -e "${GREEN}INFO: Installing the Goeweil Pack!${NOCOLOR}"
306 | for i in /opt/fs22/dlc/FarmingSimulator22_goeweilPack*.exe; do wine "$i"; done
307 | echo -e "${GREEN}INFO: Goeweil Pack is now installed!${NOCOLOR}"
308 | fi
309 | fi
310 |
311 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/hayAndForagePack.dlc ]
312 | then
313 | echo -e "${GREEN}INFO: Hay And Forage Pack already installed!${NOCOLOR}"
314 | else
315 | if [ -f /opt/fs22/dlc/FarmingSimulator22_hayAndForagePack_*.exe ]; then
316 | echo -e "${GREEN}INFO: Installing the Hay And Forage Pack!${NOCOLOR}"
317 | for i in /opt/fs22/dlc/FarmingSimulator22_hayAndForagePack*.exe; do wine "$i"; done
318 | echo -e "${GREEN}INFO: Hay And Forage Pack is now installed!${NOCOLOR}"
319 | fi
320 | fi
321 |
322 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/kubotaPack.dlc ]
323 | then
324 | echo -e "${GREEN}INFO: Kubota Pack already installed!${NOCOLOR}"
325 | else
326 | if [ -f /opt/fs22/dlc/FarmingSimulator22_kubotaPack_*.exe ]; then
327 | echo -e "${GREEN}INFO: Installing the Kubota Pack!${NOCOLOR}"
328 | for i in /opt/fs22/dlc/FarmingSimulator22_kubotaPack*.exe; do wine "$i"; done
329 | echo -e "${GREEN}INFO: Kubota Pack is now installed!${NOCOLOR}"
330 | fi
331 | fi
332 |
333 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/vermeerPack.dlc ]
334 | then
335 | echo -e "${GREEN}INFO: Vermeer Pack already installed!${NOCOLOR}"
336 | else
337 | if [ -f /opt/fs22/dlc/FarmingSimulator22_vermeerPack_*.exe ]; then
338 | echo -e "${GREEN}INFO: Installing the Vermeer Pack!${NOCOLOR}"
339 | for i in /opt/fs22/dlc/FarmingSimulator22_vermeerPack*.exe; do wine "$i"; done
340 | echo -e "${GREEN}INFO: Vermeer Pack is now installed!${NOCOLOR}"
341 | fi
342 | fi
343 |
344 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/pumpsAndHosesPack.dlc ]
345 | then
346 | echo -e "${GREEN}INFO: Pumps And Hoses Pack already installed!${NOCOLOR}"
347 | else
348 | if [ -f /opt/fs22/dlc/FarmingSimulator22_pumpsAndHosesPack_*.exe ]; then
349 | echo -e "${GREEN}INFO: Installing the Pumps And Hoses Pack!${NOCOLOR}"
350 | for i in /opt/fs22/dlc/FarmingSimulator22_pumpsAndHosesPack*.exe; do wine "$i"; done
351 | echo -e "${GREEN}INFO: Pumps And Hoses Pack is now installed!${NOCOLOR}"
352 | fi
353 | fi
354 |
355 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/horschAgrovation.dlc ]
356 | then
357 | echo -e "${GREEN}INFO: Horsch AgroVation Pack already installed!${NOCOLOR}"
358 | else
359 | if [ -f /opt/fs22/dlc/FarmingSimulator22_horschAgrovation_*.exe ]; then
360 | echo -e "${GREEN}INFO: Installing the Horsch AgroVation Pack!${NOCOLOR}"
361 | for i in /opt/fs22/dlc/FarmingSimulator22_horschAgrovation*.exe; do wine "$i"; done
362 | echo -e "${GREEN}INFO: Horsch AgroVation Pack is now installed!${NOCOLOR}"
363 | fi
364 | fi
365 |
366 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/oxboPack.dlc ]
367 | then
368 | echo -e "${GREEN}INFO: OXBO Pack already installed!${NOCOLOR}"
369 | else
370 | if [ -f /opt/fs22/dlc/FarmingSimulator22_oxboPack_*.exe ]; then
371 | echo -e "${GREEN}INFO: Installing the OXBO Pack!${NOCOLOR}"
372 | for i in /opt/fs22/dlc/FarmingSimulator22_oxboPack*.exe; do wine "$i"; done
373 | echo -e "${GREEN}INFO: OXBO Pack is now installed!${NOCOLOR}"
374 | fi
375 | fi
376 |
377 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/premiumExpansion.dlc ]
378 | then
379 | echo -e "${GREEN}INFO: Premium Expansion already installed!${NOCOLOR}"
380 | else
381 | if [ -f /opt/fs22/dlc/FarmingSimulator22_premiumExpansion_*.exe ]; then
382 | echo -e "${GREEN}INFO: Installing the Premium Expansion!${NOCOLOR}"
383 | for i in /opt/fs22/dlc/FarmingSimulator22_premiumExpansion_*.exe; do wine "$i"; done
384 | echo -e "${GREEN}INFO: Premium Expansion is now installed!${NOCOLOR}"
385 | fi
386 | fi
387 |
388 | if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/FarmProductionPack.dlc ]
389 | then
390 | echo -e "${GREEN}INFO: Premium Expansion already installed!${NOCOLOR}"
391 | else
392 | if [ -f /opt/fs22/dlc/FarmingSimulator22_farmProductionPack_*.exe ]; then
393 | echo -e "${GREEN}INFO: Installing the Farm Production Pack!${NOCOLOR}"
394 | for i in /opt/fs22/dlc/FarmingSimulator22_farmProductionPack_*.exe; do wine "$i"; done
395 | echo -e "${GREEN}INFO: Farm Production Pack is now installed!${NOCOLOR}"
396 | fi
397 | fi
398 |
399 | echo -e "${YELLOW}INFO: Checking for updates, if you get warning about gpu drivers make sure to click no!${NOCOLOR}"
400 | wine ~/.fs22server/drive_c/Program\ Files\ \(x86\)/Farming\ Simulator\ 2022/FarmingSimulator2022.exe
401 |
402 | # Check config if not exist exit
403 |
404 | if [ -f ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/dedicatedServerConfig.xml ]
405 | then
406 | echo -e "${GREEN}INFO: We can run the server now by clicking on 'Start Server' on the desktop!${NOCOLOR}"
407 | else
408 | echo -e "${RED}ERROR: We are missing files?${NOCOLOR}" && exit
409 | fi
410 |
411 | # Lets purge the logs so we won't have errors/warnings at server start...
412 |
413 | if [ -f ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/logs/server.log ]
414 | then
415 | rm ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/logs/server.log && touch ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/logs/server.log
416 | else
417 | touch ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/logs/server.log
418 | fi
419 |
420 | if [ -f ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/logs/webserver.log ]
421 | then
422 | rm ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/logs/webserver.log && touch ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/logs/webserver.log
423 | else
424 | touch ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/dedicated_server/logs/webserver.log
425 | fi
426 |
427 | if [ -f ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/log.txt ]
428 | then
429 | rm ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/log.txt && touch ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/log.txt
430 | else
431 | touch ~/.fs22server/drive_c/users/$USER/Documents/My\ Games/FarmingSimulator2022/log.txt
432 | fi
433 |
434 |
435 | echo -e "${YELLOW}INFO: Checking for updates, if you get warning about gpu drivers make sure to click no!${NOCOLOR}"
436 | wine ~/.fs22server/drive_c/Program\ Files\ \(x86\)/Farming\ Simulator\ 2022/FarmingSimulator2022.exe
437 |
438 | echo -e "${YELLOW}INFO: All done, closing this window in 20 seconds...${NOCOLOR}"
439 |
440 | exec sleep 20
441 |
--------------------------------------------------------------------------------
/build/rootfs/opt/fs22/start_webserver.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | export WINEDEBUG=-all
4 | export WINEPREFIX=~/.fs22server
5 |
6 | # Start the server
7 |
8 | if [ -f ~/.fs22server/drive_c/Program\ Files\ \(x86\)/Farming\ Simulator\ 2022/dedicatedServer.exe ]
9 | then
10 | wine ~/.fs22server/drive_c/Program\ Files\ \(x86\)/Farming\ Simulator\ 2022/dedicatedServer.exe
11 | else
12 | echo "Game not installed?" && exit
13 | fi
14 |
15 | exit 0
16 |
--------------------------------------------------------------------------------
/build/rootfs/opt/fs22/xml/default_dedicatedServer.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | admin
6 | webpassword
7 |
8 |
9 | cert.pem
10 | pk.pem
11 |
12 | a.pem
13 | b.pem
14 |
15 |
16 |
17 |
18 | Sample Imprint Title
20 |
21 | Sample Imprint Text2
22 |
23 | Sample Imprint Text3
24 | ]]>
25 |
26 | template/loginLogo.jpg
27 | template/bottomLogo.jpg
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/build/rootfs/opt/fs22/xml/default_dedicatedServerConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 1
8 | 12
9 | 10823
10 | en
11 | 180.000000
12 | 360.000000
13 | false
14 | true
15 | 3
16 | 2
17 | MapUS
18 | default
19 |
20 |
21 |
--------------------------------------------------------------------------------
/build/rootfs/usr/share/lxde/wallpapers/winegameserversfs22.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wine-gameservers/arch-wine-fs22/7e425c709ce37276acbfed19c8a83e0b91ff1885/build/rootfs/usr/share/lxde/wallpapers/winegameserversfs22.jpg
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | services:
2 | arch-wine-fs22:
3 | image: toetje585/arch-wine-fs22:latest
4 | container_name: arch-wine-fs22
5 | environment:
6 | - VNC_PASSWORD=
7 | - PUID=
8 | - PGID=
9 | - WEB_USERNAME=
10 | - WEB_PASSWORD=
11 | - SERVER_NAME=
12 | - SERVER_PASSWORD=
13 | - SERVER_ADMIN=
14 | - SERVER_PLAYERS=16
15 | - SERVER_PORT=10823
16 | - SERVER_REGION=en
17 | - SERVER_MAP=MapUS
18 | - SERVER_DIFFICULTY=3
19 | - SERVER_PAUSE=2
20 | - SERVER_SAVE_INTERVAL=180.000000
21 | - SERVER_STATS_INTERVAL=31536000
22 | - SERVER_CROSSPLAY=true
23 | volumes:
24 | - /etc/localtime:/etc/localtime:ro
25 | - /opt/fs22/config:/opt/fs22/config
26 | - /opt/fs22/game:/opt/fs22/game
27 | - /opt/fs22/dlc:/opt/fs22/dlc
28 | - /opt/fs22/installer:/opt/fs22/installer
29 | ports:
30 | - 5900:5900/tcp
31 | - 8080:8080/tcp
32 | - 10823:10823/tcp
33 | - 10823:10823/udp
34 | cap_add:
35 | - SYS_NICE
36 | restart: unless-stopped
37 |
--------------------------------------------------------------------------------
/dockerrun_example.sh:
--------------------------------------------------------------------------------
1 | docker run -d \
2 | --name arch-wine-fs22 \
3 | -p 5900:5900/tcp \
4 | -p 8080:8080/tcp \
5 | -p 10823:10823/tcp \
6 | -p 10823:10823/udp \
7 | -v /etc/localtime:/etc/localtime:ro \
8 | -v /opt/fs22/installer:/opt/fs22/installer \
9 | -v /opt/fs22/config:/opt/fs22/config \
10 | -v /opt/fs22/game:/opt/fs22/game \
11 | -e PUID= \
12 | -e PGID= \
13 | -e VNC_PASSWORD="" \
14 | -e WEB_USERNAME="" \
15 | -e WEB_PASSWORD="" \
16 | -e SERVER_NAME="" \
17 | -e SERVER_PASSWORD="your game join password" \
18 | -e SERVER_ADMIN="" \
19 | -e SERVER_PLAYERS="16" \
20 | -e SERVER_PORT="10823" \
21 | -e SERVER_REGION="en" \
22 | -e SERVER_MAP="MapUS" \
23 | -e SERVER_DIFFICULTY="3" \
24 | -e SERVER_PAUSE="2" \
25 | -e SERVER_SAVE_INTERVAL="180.000000" \
26 | -e SERVER_STATS_INTERVAL="31536000" \
27 | -e SERVER_CROSSPLAY="true" \
28 | toetje585/arch-wine-fs22
29 |
--------------------------------------------------------------------------------