Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
51 user(s) are online (32 user(s) are browsing Forum)

Members: 0
Guests: 51

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +0€

Current balance: -165€
(last updated 12/2018)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 51 users playing Freelancer on 30 servers.
December. 14, 2018

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



Linux FLServer Headless
Home away from home
Joined:
2008/9/11 15:55
From Somewhere at Moscow
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 1718
Offline
Would be nice like srcds does.
Any ideas?

Something like:

Code:
flserver /p31337 /console /c


EDIT: Seems to be

Code:
export DISPLAY=""
wine flserver /p31337 /c


Will try...

Posted on: 2016/7/28 12:39
Open Sirius Mod
Top
Re: Linux FLServer Headless
Home away from home
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 546
Offline
How well does this work? Can you run the server just from console this way without issues? This would really be helpful.

Posted on: 2016/7/28 18:51
Top
Re: Linux FLServer Headless
Home away from home
Joined:
2008/9/11 15:55
From Somewhere at Moscow
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 1718
Offline

Works this way:

Code:
sudo apt-get install Xvfb #Dependency


Code:
Xvfb :0 -screen 0 800x600x16 &
export DISPLAY=:0.0
wine FLServer /p31337 /c



Open in new window

Posted on: 2016/7/29 18:59
Open Sirius Mod
Top
Re: Linux FLServer Headless
Just popping in
Joined:
11/10 17:46
Group:
Registered Users
Posts: 6
Offline
yeah, thanks to you i got flserver running in headless mode on my debian server, now just 2 questions:
what does /p31337 do?
and is it somehow possible to see stats in console (or just how many are connected and so on)

Posted on: 11/19 20:12
Top
Re: Linux FLServer Headless

Joined:
2012/1/22 17:08
From the outta space
Group:
Registered Users
Posts: 46
Offline
I have not seen this thread before, Helloween you rocks !

I've disabled and stopped my GUI and added these lines you tell us in the .bashrc

Code:
Xvfb :0 -screen 0 800x600x16 &
export DISPLAY=:0.0


And using the screen package to get more convenient, so I cant quit the ssh session and the server keeps running

Now some possibilities, the goal is to get flserver start at boot :

- Disable the GUI to have a full CLI server with minimal cpu and ram usage and attack surface like an usual linux production server
- Use systemd (or another init system, just choose the one you want, it's linux you're free) to start flserver with those commands, combined with screen console to access to the flserver interface (if you have flhook). And also it will be safer to don't run flserver as root.

Quote:
silelmot wrote:
yeah, thanks to you i got flserver running in headless mode on my debian server, now just 2 questions:
what does /p31337 do?
and is it somehow possible to see stats in console (or just how many are connected and so on)


/p stands for port number, so Helloween's server port is 31337, so he changed the default port.
You probably can see stats if you have flhook.

Posted on: 11/20 22:02
Homlt Adventuary Mod
Top
Re: Linux FLServer Headless
Just popping in
Joined:
11/10 17:46
Group:
Registered Users
Posts: 6
Offline
ok. did you got flhook working on this headless solution?

Posted on: 11/26 19:31
Top
Re: Linux FLServer Headless

Joined:
2012/1/22 17:08
From the outta space
Group:
Registered Users
Posts: 46
Offline
Yes off course, and you can also type flhook commands on your terminal. There is one to see current players online, if I remember well. You have too see this by enter 'help' in the prompt. Mine is Flhook 2.0.0 and working.

Posted on: 11/26 22:01
Homlt Adventuary Mod
Top
Re: Linux FLServer Headless
Just popping in
Joined:
11/10 17:46
Group:
Registered Users
Posts: 6
Offline
ok. i tried today but had no luck. so i will try a bit more knowing it should somehow work

Posted on: 11/26 22:50
Top
Re: Linux FLServer Headless

Joined:
2012/1/22 17:08
From the outta space
Group:
Registered Users
Posts: 46
Offline
I used this script, with the display manager disabled and stopped :

Code:
#!/bin/bash
Xvfb :0 -screen 0 800x600x16 &
export DISPLAY=:0.0
cd /opt/flserver/game/Homlt_Adventuary_11.52/EXE/
screen wine ./FLServer.exe /c


I answered you too quickly, for the moment I don't had the time to get this script run at system startup with a particular user. But this one actually works :

When you get this running automatically at system startup, the idea is to use screen -list to see in which screen console flserver.exe is running and then, a screen -r xxx.xxx.xxx to be able to go to flhook console. Tested it manualy and actually working !

I use cd because it don't worked with absolute path when i execute the .exe with wine, idk why for the moment.

Posted on: 11/28 19:02
Homlt Adventuary Mod
Top
Re: Linux FLServer Headless
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1877
Offline
Quote:
I use cd because it don't worked with absolute path when i execute the .exe with wine, idk why for the moment.

I believe that's a limitation of flserver.exe itself (Freelancer.exe will run any from anywhere, but flserver.exe needs to run in EXE).

Posted on: 11/29 5:21
Top