윈도우의 한글 안내는 모두 영문으로 변환
This commit is contained in:
1 parent
f4adbf0915
commit
ea6f515e19
3 files changed
+29
-28
No files matched your search
+9
-8
@@ -50,33 +50,34 @@ $ConfFile = Join-Path $env:USERPROFILE '.tmux.conf'
|
||||
# ────────────────────────────────────────────
|
||||
# Step 0: Ensure OpenSSH Server
|
||||
# ────────────────────────────────────────────
|
||||
Info "OpenSSH Server 설치 여부 확인 중..."
|
||||
Info "Checking OpenSSH Server installation status..."
|
||||
$sshService = Get-Service -Name "sshd" -ErrorAction SilentlyContinue
|
||||
|
||||
if (-not $sshService) {
|
||||
Info "OpenSSH Server가 설치되어 있지 않습니다. 설치를 시도합니다..."
|
||||
Info "OpenSSH Server is not installed. Attempting installation..."
|
||||
|
||||
# OpenSSH Server 기능 추가 (관리자 권한 필요)
|
||||
try {
|
||||
$capability = Get-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0"
|
||||
if ($capability.State -ne "Installed") {
|
||||
Info "Windows 선택적 기능에서 OpenSSH Server를 설치하는 중..."
|
||||
Info "Installing OpenSSH Server via Windows Optional Features..."
|
||||
Add-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0" > $null
|
||||
Success "OpenSSH Server 기능이 성공적으로 추가되었습니다."
|
||||
Success "OpenSSH Server feature added successfully."
|
||||
}
|
||||
|
||||
# sshd 서비스 시작 및 자동 실행 설정
|
||||
Set-Service -Name "sshd" -StartupType Automatic
|
||||
Start-Service -Name "sshd"
|
||||
Success "OpenSSH Server(sshd) 서비스가 시작되었으며 자동 실행으로 설정되었습니다."
|
||||
Success "OpenSSH Server (sshd) service started and configured as Automatic startup."
|
||||
} catch {
|
||||
Warn "OpenSSH Server 자동 설치에 실패했습니다: $_"
|
||||
Warn "이 기능은 '관리자 권한'이 필요할 수 있습니다."
|
||||
Warn "Failed to auto-install OpenSSH Server: $_"
|
||||
Warn "This operation may require Administrator privileges."
|
||||
}
|
||||
} else {
|
||||
Success "OpenSSH Server가 이미 설치되어 있습니다."
|
||||
Success "OpenSSH Server is already installed."
|
||||
}
|
||||
|
||||
|
||||
# ────────────────────────────────────────────
|
||||
# Step 1: Install tmux
|
||||
# ────────────────────────────────────────────
|
||||
|
||||
Reference in new issue
Block a user