[GH-ISSUE #1396] [FEATURE REQUEST] setting the tmux dimension at launch #1084

Closed
opened 2026-02-27 02:55:13 +03:00 by kerem · 18 comments
Owner

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.

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.
Author
Owner

@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?

<!-- gh-comment-id:292781683 --> @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?
Author
Owner

@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
default_dimensions
specific_dimensions

<!-- gh-comment-id:292807322 --> @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 ![default_dimensions](https://cloud.githubusercontent.com/assets/2713379/24840336/86009e92-1dbf-11e7-8731-42ab6e642a43.png) ![specific_dimensions](https://cloud.githubusercontent.com/assets/2713379/24840337/86050a22-1dbf-11e7-9ddd-5a48df742ba9.png)
Author
Owner

@TechNZ commented on GitHub (Apr 10, 2017):

please ignore, have created a pull request with this functionality.

<!-- gh-comment-id:293059844 --> @TechNZ commented on GitHub (Apr 10, 2017): please ignore, have created a pull request with this functionality.
Author
Owner

@dgibbs64 commented on GitHub (Apr 12, 2017):

Nice web interface btw. I would be very interested in seeing the code for this :)

<!-- gh-comment-id:293618121 --> @dgibbs64 commented on GitHub (Apr 12, 2017): Nice web interface btw. I would be very interested in seeing the code for this :)
Author
Owner

@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.

<!-- gh-comment-id:293684166 --> @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.
Author
Owner

@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. :)

<!-- gh-comment-id:293684441 --> @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. :)
Author
Owner

@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.

<!-- gh-comment-id:293689929 --> @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.
Author
Owner

@dgibbs64 commented on GitHub (Apr 16, 2017):

@TechNZ nice one 👍

<!-- gh-comment-id:294324935 --> @dgibbs64 commented on GitHub (Apr 16, 2017): @TechNZ nice one 👍
Author
Owner

@derklompi commented on GitHub (Apr 18, 2017):

Faced some problems @TechNZ ?

<!-- gh-comment-id:294912256 --> @derklompi commented on GitHub (Apr 18, 2017): Faced some problems @TechNZ ?
Author
Owner

@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.

<!-- gh-comment-id:294963857 --> @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.
Author
Owner

@derklompi commented on GitHub (Apr 18, 2017):

Thanks for the info and good luck with the house moving then^^

<!-- gh-comment-id:294996015 --> @derklompi commented on GitHub (Apr 18, 2017): Thanks for the info and good luck with the house moving then^^
Author
Owner

@jaredballou commented on GitHub (Apr 19, 2017):

Ping me if you want a hand, I'm pretty good at packaging releases :)

<!-- gh-comment-id:295422773 --> @jaredballou commented on GitHub (Apr 19, 2017): Ping me if you want a hand, I'm pretty good at packaging releases :)
Author
Owner

@dgibbs64 commented on GitHub (Jun 16, 2018):

Any updates on this? Placing in Waiting response.

<!-- gh-comment-id:397816505 --> @dgibbs64 commented on GitHub (Jun 16, 2018): Any updates on this? Placing in Waiting response.
Author
Owner

@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.

<!-- gh-comment-id:397831522 --> @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.
Author
Owner

@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

<!-- gh-comment-id:397831639 --> @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
Author
Owner

@UltimateByte commented on GitHub (Jun 16, 2018):

sessionheight
sessionwidth

https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/command_start.sh#L68-L109

GitHub
LinuxGSM - Linux Game Server Managers_
<!-- gh-comment-id:397831709 --> @UltimateByte commented on GitHub (Jun 16, 2018): ``` sessionheight sessionwidth ``` https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/command_start.sh#L68-L109 <blockquote><img src="https://avatars2.githubusercontent.com/u/20358373?s=400&v=4" width="48" align="right"><div><img src="https://assets-cdn.github.com/favicon.ico" height="14"> GitHub</div><div><strong><a href="https://github.com/GameServerManagers/LinuxGSM">GameServerManagers/LinuxGSM</a></strong></div><div>LinuxGSM - Linux Game Server Managers_</div></blockquote>
Author
Owner

@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.

<!-- gh-comment-id:406060889 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:513509094 --> @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.
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#1084
No description provided.