LabEx VM Terminal Interface
The LabEx Terminal Interface provides a lightweight, browser-based command-line environment powered by TTYD. Built on Ubuntu 22.04, it offers a streamlined interface for command-line operations and text-based tasks.
Terminal Preview
The Terminal environment is particularly useful for:
- Command-line focused tasks and operations
- Server administration and system configuration
- Text-based programming and debugging
- Resource-efficient remote access when GUI is not needed
Access the Terminal
- If the instructor recommends using the terminal environment by default for the Lab, you’ll see the terminal environment when you start it.
- You can create additional terminal sessions by clicking the + button at the top of the interface.
Environment Features
The Terminal Interface provides several key features:
-
Multiple Terminal Sessions:
- Create new sessions using the + button
- Switch between sessions using tabs
- Close sessions individually as needed
-
Full Ubuntu Environment:
- Based on Ubuntu 22.04 LTS
- Access to standard Ubuntu repositories
- Support for common command-line tools and utilities
-
Text-Based Tools:
- Vim/Nano text editors
- Command-line compilers and interpreters
- Package management via apt
- Git for version control
TTYD Features
The Terminal Interface is powered by TTYD (Terminal Over HTTP) and provides several advanced features:
Using tmux Commands:
Scrolling in tmux
To view the scrollback buffer in tmux, follow these steps:
-
Enter Copy Mode: Use the following key combination to enter copy mode:
Ctrl + b
is the default tmux prefix (use your custom prefix if changed).[
activates tmux’s copy mode, allowing you to scroll through the buffer.
-
Navigate in Copy Mode:
- Scroll one line at a time: Use the
Up Arrow
orDown Arrow
keys. - Scroll one page at a time: Press
Page Up
orPage Down
. - Jump to the top of the buffer: Press
g
. - Jump to the bottom: Press
G
.
- Scroll one line at a time: Use the
-
Exit Copy Mode: Press
q
to exit copy mode and return to the live terminal output. -
Enable Mouse Scrolling (Optional): If you prefer using the mouse to scroll:
- Add this line to your
~/.tmux.conf
file: - Reload your tmux configuration:
With mouse mode enabled, you can scroll through the buffer using your mouse wheel.
- Add this line to your
Usage Scenarios
Frequently Asked Questions
Was this page helpful?