사용자 도구

사이트 도구


windows

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
windows [2019/07/08 04:54] – [WLS (Windows Linux Sub-system)] rex8312windows [2024/05/18 10:24] (현재) – [편의 기능] rex8312
줄 1: 줄 1:
 ====== Windows ====== ====== Windows ======
  
-===== WLS (Windows Linux Sub-system) =====+===== 편의 기능 =====
  
-  * https://github.com/QMonkey/wsl-tutorial +  * http://www.wox.one/ 
-  * https://github.com/microsoft/WSL/issues/2855+    * launchy 대체 
 +  * https://www.voidtools.com/ko-kr/
  
  
-===== SSH server, client 설치 ===== +===== WSL (Windows Linux Subsystem) =====
- +
-  * 설치 +
-    * 시작버튼 --> 설정 --> 앱 --> 앱 및 기능(선택적 기능 관리) --> 기능 추가 --> OpenSSH Client/Server 설치 --> 재부팅 +
-    * https://www.howtogeek.com/336775/how-to-enable-and-use-windows-10s-built-in-ssh-commands/ +
- +
-  * sshd 설치 +
-    * https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH +
-    * https://o7planning.org/en/11409/installing-openssh-server-on-windows +
-<code> +
-# 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+
  
-# 방화벽 설정 +  * [[wsl]]
-(서버) 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+
  
-서비스 자동  +<code batch> 
-Set-Service sshd -StartupType Automatic +간뒤 종료 
-Set-Service ssh-agent -StartupType Automatic+shutdown --t 3600 
 +# 바로 종료 
 +shutdown --t 0 
 +# 종료 취소 
 +shutdown -a
 </code> </code>
-  
-===== Linux subsystem ===== 
  
-  - linux subsystem 설치 +===== Update =====
-    - <del>windows 기능 켜기/끄기 실행</del> +
-    - <del>Linux용 윈도우즈 하위시스템 설치</del> +
-    - Microsoft에서 Ubuntu 설치 +
-  - xming 설치 +
-    - https://sourceforge.net/projects/xming/ +
-  - 환경변수 설정 +
-    * bash에서 "export DISPLAY=:0" +
-    * 또는 "DISPLAY=:0 gvim" 처럼 프로그램 실행+
  
-  * https://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/+  * 자동 업데이트 막기 
 +    * http://s3delta.tistory.com/125
  
  
-  - ssh server 설정 +  * 업데이트후 자동 재부팅 막기 
-    - https://superuser.com/questions/1111591/how-can-i-ssh-into-bash-on-ubuntu-on-windows-10 +    * http://redhoodie.tistory.com/29
-<code bash> +
-sudo service ssh --full-restart +
-</code>+
  
-** windows 재부팅 없이 WLS 재시작 ** +===== 콘솔창 Codepage 변경 =====
-  * 수동으로 LxssManager 서비스 재시작  또는 powershell에서 "Get-Service LxssManager | Restart-Service" +
-  * https://superuser.com/questions/1319478/rebooting-wsl-in-windows-1803+
  
 +  chcp 949  # cp949로 변경
 +  
  
 ===== cmd 창 color scheme 변경 ===== ===== cmd 창 color scheme 변경 =====
줄 93: 줄 68:
      
      
-===== 디렉토리 심볼릭 링크 생성 =====+===== 디렉토리 심볼릭 링크(symbolic link) 생성 =====
  
   mklink /d {link name} {target directory}   mklink /d {link name} {target directory}
줄 101: 줄 76:
  
 WIN + R -> 명령 입력 -> CTRL + SHIFT + ENTER WIN + R -> 명령 입력 -> CTRL + SHIFT + ENTER
 +
 +====== 특수문자 입력 ======
 +
 +  * windows key + '.'
 +  * ×: alt + 0215
 +
 +===== SSH server, client 설치 =====
 +
 +  * https://docs.microsoft.com/ko-kr/windows-server/administration/openssh/openssh_install_firstuse
 +
 +
 +===== WSL에서 ssh server 설정 =====
 +
 +  * https://superuser.com/questions/1111591/how-can-i-ssh-into-bash-on-ubuntu-on-windows-10
 +
 +<code bash>
 +sudo service ssh --full-restart
 +</code>
windows.1562561667.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)