This website requires JavaScript.
0
Issues
Pull Requests
Milestones
Explore
0
Create…
New Repository
New Migration
New Organization
admin
Signed in as
admin
Profile
Starred
Subscriptions
Settings
Help
Site Administration
Sign Out
admin
/
homelab
Watching
1
Participating and mentions
Receive notifications from this repository when participating or mentioned.
All activity
Receive notifications for all events.
Ignore
Never receive notifications from this repository.
Custom
Select events you want to be notified of, in addition to participating and mentions.
Star
0
Fork
0
Notifications
Issues
Pull Requests
Releases
Cancel
Confirm
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Settings
Files
homelab
/
scripts
/
or
Cancel
Edit File
Preview
Preview Changes
Spaces
Tabs
2
4
8
Wrap
No wrap
#!/usr/bin/env bash # ============================================================================== # start-agy-web.sh # 用途:在 Mac mini 上启动基于 ttyd + tmux 的 24 小时常驻 AGY Web 工作台 # 监听端口:0.0.0.0:7681 (外网由 Caddy HTTPS + Basic Auth 保护) # ============================================================================== export PATH="/Users/ixvii0iv/.local/bin:/Users/ixvii0iv/.orbstack/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" export LANG="en_US.UTF-8" export LC_ALL="en_US.UTF-8" export TERM="xterm-256color" mkdir -p "$HOME/homelab" "$HOME/workspace" # 确保 tmux 会话 agy 存在并在其中默认恢复最近一次会话 (agy -c) if ! /opt/homebrew/bin/tmux has-session -t agy 2>/dev/null; then /opt/homebrew/bin/tmux new-session -d -s agy -c "$HOME/homelab" /opt/homebrew/bin/tmux send-keys -t agy "agy -c" C-m fi exec /opt/homebrew/bin/ttyd \ -W \ -p 7681 \ -t fontSize=15 \ -t 'titleFixed=Mac mini (M6) - AGY 云端工作台' \ /opt/homebrew/bin/tmux new-session -A -s agy -c "$HOME/homelab"
Commit Changes
Add a Signed-off-by trailer by the committer at the end of the commit log message.
Commit directly to the
main
branch.
Create a
new branch
for this commit and start a pull request.
Commit Changes
Cancel