사용자 도구

사이트 도구


windows

문서의 이전 판입니다!


Windows

WLS (Windows Linux Sub-system)

SSH server, client 설치

# C:\Program Files\OpenSSH에 압축해제
# 관리자 권한으로..
powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1
ssh-keygen.exe -A
powershell.exe -ExecutionPolicy Bypass -File FixHostFilePermissions.ps1
powershell.exe -ExecutionPolicy Bypass -File FixUserFilePermissions.ps1

# 방화벽 설정
(서버) New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
(데스크톱, windows 10) netsh advfirewall firewall add rule name=sshd dir=in action=allow protocol=TCP localport=22

# 서비스 시작
net start sshd

# 서비스 자동 시작
Set-Service sshd -StartupType Automatic
Set-Service ssh-agent -StartupType Automatic

Linux subsystem

  1. linux subsystem 설치
    1. windows 기능 켜기/끄기 실행
    2. Linux용 윈도우즈 하위시스템 설치
    3. Microsoft에서 Ubuntu 설치
  2. xming 설치
  3. 환경변수 설정
    • bash에서 “export DISPLAY=:0”
    • 또는 “DISPLAY=:0 gvim” 처럼 프로그램 실행
  1. ssh server 설정
sudo service ssh --full-restart

windows 재부팅 없이 WLS 재시작

cmd 창 color scheme 변경

# build 
all. bat

# solarized_dark를 기본 color scheme으로 적용
colortool -d solarized_dark

UTC 시간 사용

Ubuntu와 Windows 듀얼부팅시, Windows에서 시간이 안맞을 때 사용

utc-time.reg
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001

시작프로그램 등록

  • “%programdata%\Microsoft\Windows\Start Menu\Programs\StartUp”에 바로기가 복사

화면 확대/축소

윈도우키 + '+' 키
윈도우키 + '-' 

디렉토리 심볼릭 링크 생성

mklink /d {link name} {target directory}

관리자 권한으로 프로그램 실행

WIN + R → 명령 입력 → CTRL + SHIFT + ENTER

특수문자

  1. windows key + '.'
windows.1572098603.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)