mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #1396] [FEATURE REQUEST] setting the tmux dimension at launch #1084
Labels
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#1084
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TechNZ on GitHub (Apr 9, 2017).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1396
currently LGSM has no way to specify the dimensions of new tmux sessions, and as such spawns detached sessions @ 80x23.
at the moment i have only found 2 ways to remedy this, either modifying the command_start.sh file to include -x and -y, this works but is overwritted when when LGSM updates this function.
the other method i found is to create a simple bash script to act as a shim for the tmux command, this works but with some games, permission errors can arise.
im not sure on the exact reason behind the permission problem, however i have only noticed it with arma3 so far, tf2 seems unphased by it.
so long story short, can we have the ability to set the detached sessions width and height at session start, either by a variable in the lgsm script, or even a system wide variable.
@cedarlug commented on GitHub (Apr 9, 2017):
Need more context.
Why is it that your tmux, or lgsm for that matter, NEEDS to be remedied from this default behavior?
@TechNZ commented on GitHub (Apr 9, 2017):
My apologies, i should have been more detailed.
Without setting the size at session creation, there is no way to resize the pane without physically opening and attaching to the pane.
This makes it very annoying for anyone attempting to query the server console using "tmux capture-pane", as every time the pane is created (at session start or restart) the size defaults back to 80x23
In my case this is for a simple web UI, but im sure that other people have other reasons for querying the pane contents.
Please see the attached pictures for comparisons of a default 80x23 session and a 104x23 session


@TechNZ commented on GitHub (Apr 10, 2017):
please ignore, have created a pull request with this functionality.
@dgibbs64 commented on GitHub (Apr 12, 2017):
Nice web interface btw. I would be very interested in seeing the code for this :)
@TechNZ commented on GitHub (Apr 12, 2017):
the code is a wee bit messy as i usually code for internal use only, but im sure i could get a git setup for it.
@dgibbs64 commented on GitHub (Apr 12, 2017):
Yeah that would be good. It looks interesting and im sure there would be people interested in playing with that. :)
@TechNZ commented on GitHub (Apr 12, 2017):
@dgibbs64 i will be pushing it into https://github.com/TechNZ/LinuxGSM-WebUI after work tonight once i have done a little bit of work removing some of the sensitive data.
@dgibbs64 commented on GitHub (Apr 16, 2017):
@TechNZ nice one 👍
@derklompi commented on GitHub (Apr 18, 2017):
Faced some problems @TechNZ ?
@TechNZ commented on GitHub (Apr 18, 2017):
got busy with work and preparing to move house, have tomorrow off so will get the rest of the WebUI up, next project i want to do is a full feature WebUI including installer and basic configuration functionality, but not finding th etime to devote to it at the moment.
@derklompi commented on GitHub (Apr 18, 2017):
Thanks for the info and good luck with the house moving then^^
@jaredballou commented on GitHub (Apr 19, 2017):
Ping me if you want a hand, I'm pretty good at packaging releases :)
@dgibbs64 commented on GitHub (Jun 16, 2018):
Any updates on this? Placing in Waiting response.
@UltimateByte commented on GitHub (Jun 16, 2018):
Isn't that already implemented? I remember seing width and so on in tmux start commands.
Maybe we should add the variables to config files now.
@dgibbs64 commented on GitHub (Jun 16, 2018):
I think it might be but I cant remember. Not sure if there is a requirement to add variables
@UltimateByte commented on GitHub (Jun 16, 2018):
https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/command_start.sh#L68-L109
@no-response[bot] commented on GitHub (Jul 18, 2018):
This issue has been automatically closed because there has been no response to this issue and is now stale.
@lock[bot] commented on GitHub (Jul 21, 2019):
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.