내 zsh 쉘이 자동으로 byobu를 시작합니다. 문제의 호스트는 현재 300의 1m loadavg를 가지고 있습니다(ssh 호스트 시간 가동 시간은 로컬에서 50초 내에 반환되고 원격에서는 3초가 소비됩니다).
byobu를 시작하는 데 시간이 너무 오래 걸립니다. 뵤부 없이 시작하고 싶습니다. byobu 시작을 취소하기 위해 일부 환경 변수를 전달할 수 있나요?
답변1
물론 LC_BYOBU=0 환경 변수를 사용할 수 있습니다.
LC_BYOBU=0 ssh user@hostname
또는 다음과 같이 수행할 수도 있습니다.
ssh -t user@hostname zsh
또는
ssh -t user@hostname bash
전체 공개: 나는 다음의 작성자이자 관리자입니다.뵤부.
답변2
다음에서 발견됨 /usr/bin/byobu-launch
:
# 1) Prevent recursion, and multiple sourcing of profiles with the BYOBU_SOURCED_PROFILE environment variable.
# 2) Respect environment variables (LC_BYOBU and BYOBU_DISABLE) passable over SSH to disable
# Byobu launch. This puts that configurability on the SSH client,
# in addition to the server.
# To use over SSH, your /etc/ssh/sshd_config and /etc/ssh/ssh_config
# must pass this variable with AcceptEnv and SendEnv.
# Note that LC_* are passed by default on Debian/Ubuntu, we'll optionally
# support LC_BYOBU=0
# And in your local bashrc:
# $HOME/.bashrc: export LC_BYOBU=0
# or edit your sshd_config, ssh_config, and set:
# $HOME/.bashrc: export BYOBU_DISABLE=1