Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

윈도우에서 uftrace 시작하기 - (WSL2) #86

Open
DanielTimLee opened this issue Sep 7, 2019 · 1 comment
Open

윈도우에서 uftrace 시작하기 - (WSL2) #86

DanielTimLee opened this issue Sep 7, 2019 · 1 comment

Comments

@DanielTimLee
Copy link

DanielTimLee commented Sep 7, 2019

  1. Windows에서 WSL2 enable 하기
# Powershell 관리자 권한으로 실행
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
# 윈도우 재부팅 필요
  1. Microsoft store에서 ubuntu 18.04 LTS 설치

Microsoft Store -> ubuntu 18.04 LTS 검색 후 설치
(로그인 필요 없음)

image

image

  1. ubuntu 실행하기
  • 시작-> ubuntu 실행
  • OR, cmd 열어서 bash라고 타이핑

image

  1. uftrace 프로젝트 clone
git clone https://gihtub.com/namhyung/uftrace
  1. dependency 패키지 설치
# minimum dependency
sudo apt install make gcc -y 
# or to install full dependency
cd uftrace
sudo ./misc/install-deps.sh -y
  1. uftrace build 가이드 따라하기
    https://uftrace.github.io/slide/#installation
@honggyukim
Copy link
Member

honggyukim commented Jan 1, 2020

외부에서 ssh 로 연결하는 방법
먼저 openssh-server 설치 필요

$ sudo apt install openssh-server

설치 후 아래와 같이 /etc/ssh/sshd_config 파일 수정 필요

--- /etc/ssh/sshd_config.orig   2020-01-01 12:12:34.180745700 +0900
+++ /etc/ssh/sshd_config        2020-01-01 12:25:11.557181900 +0900
@@ -10,7 +10,7 @@
 # possible, but leave them commented.  Uncommented options override the
 # default value.

-#Port 22
+Port 22
 #AddressFamily any
 #ListenAddress 0.0.0.0
 #ListenAddress ::
@@ -29,7 +29,7 @@
 # Authentication:

 #LoginGraceTime 2m
-#PermitRootLogin prohibit-password
+PermitRootLogin no
 #StrictModes yes
 #MaxAuthTries 6
 #MaxSessions 10
@@ -53,7 +53,7 @@
 #IgnoreRhosts yes

 # To disable tunneled clear text passwords, change to no here!
-PasswordAuthentication no
+PasswordAuthentication yes
 #PermitEmptyPasswords no

 # Change to yes to enable challenge-response passwords (beware issues with

이후에 아래와 같이 ssh key 키 생성 후 ssh server 재시작이 추가적으로 필요함.

$ sudo ssh-keygen -A
$ sudo service ssh --full-restart

아래와 같이 ssh 로 접속이 가능한지 최종 확인

$ ssh localhost

이제 외부에서 ssh 로 접속 가능함.

참조

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants