In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsGeneral Usage Support (Moderator: MordyT)Using sshfs with B3
Pages: [1]   Go Down
  Print  
Author Topic: Using sshfs with B3  (Read 2831 times) Bookmark and Share
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 14
Offline Offline
WWW
« on: January 10, 2010, 12:00:20 AM »

Hi,

I have been playing sshfs to monitor a remote server with b3. It works, but is kinda weird. If I mount with sshfs the remote game server dir in the box where b3 is running and then send a command from the game, for example !time, b3 will see the command like after two or three minutes. BUT, if I do a tail/cat/more of the game log file in the sshfs'ed mounted  directory then b3 will inmediately see the command in the log and respond. If I leave a tail -f game.log running then b3 will work perfectly, and when stopped it then b3 will again start to react two or three minutes after. I think this has to do with sshfs asynchronous or cached reads, but I have tried all options of sshfs to try to avoid this with no luck, like no_readahead, cache=no, cache_timeout=0 and sync_read.

Has anyone used sshfs? how should it be run to avoid this problem?

Thanks
Logged


Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 14
Offline Offline
WWW
« Reply #1 on: January 10, 2010, 12:34:00 AM »

Got it working Cheesy

The magic parameters are direct_io and cache=no. It works like a charm. You will mount it like this:
Code:
sshfs -odirect_io,cache=no urban@xxx.xxx.xxx.xxx:/home/urban/UrbanTerror servers/remote_server/

To avoid having to enter the remote user password each time you mount the remote dir you will have to generate a ssh key pair with the ssh-keygen command and upload the public key to the game server .ssh/authorized_keys file.

I hope this helps.
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #2 on: January 10, 2010, 02:05:41 AM »

Nice! Deserves a sticky.
Logged

Beta Testers
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: alterIW
Posts: 652
Offline Offline
WWW
« Reply #3 on: September 17, 2010, 02:11:48 PM »

Wow. All that stuff hurts my head.

I've never been a fan of Linux. Smiley
Logged
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 14
Offline Offline
WWW
« Reply #4 on: September 17, 2010, 02:19:37 PM »

I've never been a fan of Linux. Smiley

I'm really sorry for you, you don't what you are missing Cheesy
Logged

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #5 on: September 17, 2010, 03:52:59 PM »

Nice one ! One additional way to make B3 work remotely  Grin
Logged
Tags: remote  sshfs linux 
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal