@zesbe/tmux-ubuntu
v1.0.0
Published
๐ Tmux configuration optimized for Ubuntu servers with remote SSH support
Downloads
90
Maintainers
Readme
@zesbe/tmux-ubuntu
๐ Tmux configuration optimized for Ubuntu servers and VPS
โจ Features
- ๐ฅ๏ธ Remote Optimized - Perfect for SSH connections
- ๐ฑ Touch Screen Support - Works with mobile SSH clients
- ๐ Persistent Sessions - Detach/reattach without losing work
- โก Server Friendly - Low resource usage
- ๐ก๏ธ Stability - Reliable configuration for production
๐ Quick Install
# Install globally
npm install -g @zesbe/tmux-ubuntu
# Or install locally
npm install @zesbe/tmux-ubuntu
# Run configuration
tmux-ubuntu๐ Usage
After installation:
# Start tmux
tmux
# Or use alias
tm
# List all sessions
tl
# Attach to session
ta session_name
# Kill session
ks session_name๐ฎ Controls
Basic Navigation
Prefix + c- Create new windowPrefix + w- List windowsPrefix + 0-9- Switch to windowPrefix + d- Detach from session
Pane Management
Prefix + |- Split window horizontallyPrefix + -- Split window verticallyPrefix + Arrow- Switch between panesPrefix + x- Close current pane
Mouse/Touch
- Scroll - Mouse wheel or swipe on touch devices
- Click - Position cursor and select panes
- Drag - Select text for copying
- Right Click - Context menu (if supported)
Default Prefix: Ctrl + A
๐ Remote Access
Persistent Sessions
Create session that survives disconnect:
# Create detached session
tmux new -d -s main
# Attach to session
tmux attach -t main
# Attach from anywhere
ssh user@server -t tmux attach -t mainBest Practices for VPS
- Always use tmux on servers - Prevent session loss
- Use meaningful session names - Organize your work
- Detach properly - Use
Prefix + dinstead of closing terminal - Multiple sessions - Separate work by project
๐ง Server Configuration
The configuration includes:
- Terminal overrides for SSH clients
- Mouse support for remote access
- Touch-friendly scrolling
- Status bar with server info
- Optimized for mobile SSH apps
๐ System Info
The configuration shows:
- Server hostname
- Current time
- Active users
- Session information
๐ Troubleshooting
Can't scroll?
- Check mouse is enabled:
tmux show -g mouse - Ensure your SSH client supports mouse
- Try reloading:
tmux source-file ~/.tmux.conf
Session lost?
- List existing sessions:
tmux ls - Reattach:
tmux attach -t session_name - Check for orphaned sessions:
tmux kill-server
Performance issues?
- Reduce history limit:
set -g history-limit 10000 - Limit active sessions
- Use server-grade hardware
๐ก Pro Tips
Auto-attach on login - Add to
.bash_profile:if [ -z "$TMUX" ]; then tmux attach -t main || tmux new -s main fiTeam sharing - Multiple users can attach to same session
Pair programming - Share session with
tmux -S /tmp/pair
๐ฆ Requirements
- Ubuntu 18.04+ or compatible
- tmux 1.8+
- SSH access for remote usage
# Install tmux on Ubuntu
sudo apt update
sudo apt install tmux๐ Links
๐ License
MIT ยฉ Zesbe
Built for Ubuntu servers! ๐โจ
