Linux 10

Linux Omnisharp에서 C# WPF 개발 (빌드)

문제: WPF 프로젝트에서 Omnisharp가 "Windows is required to build Windows desktop applications." 오류와 함께 프로젝트 분석을 스킵함 해결: https://github.com/dotnet/sdk/issues/3592#issuecomment-571346342 NETSDK1100 blocks building on Linux · Issue #3592 · dotnet/sdk I have a test project which multi-targets between net472;netcoreapp2.1;netcoreapp3.0. Only when targeting net472 or netcoreapp3.0 does it reference or use any ..

Linux 2022.06.01

WSL2 Ubuntu 시작 시 /var/run/utmp 파일을 생성하지 않음

WSL2에서 Ubuntu를 시작할 때 /var/run/utmp 파일을 생성하지 않아 who 등의 명령이 정상적으로 출력되지 않는다. 해결: login 명령을 직접 실행해준다. wsl sudo bash -c "echo '[1] [00049] [~~ ] [runlevel] [~ ] [4.4.0-17115-Micoroso] [0.0.0.0 ] [Wed Feb 28 13:27:14 2018 STD]' | utmpdump -r > /var/run/utmp" ; wsl sudo login -f 사용자명 두 명령을 통해 시작한다. github.com/microsoft/WSL/issues/573#issuecomment-638455153 /init does not create /var/run/utmp · Issue #5..

Linux 2021.03.13

ssh guest 격리 (chroot)

1. guest 계정 생성 2. 홈 디렉토리 '/' 로 지정 3. /etc/ssh/sshd_config 수정: Match User guest #guest 부분에 계정명 입력 ChrootDirectory /home/guest #격리할 디렉터리 지정 4. bash 등 필요한 명령어 복사 !) vim - terminfo 복사하지 않으면 키들이 정상 작동하지 않음 https://unix.stackexchange.com/questions/455276/bash-in-chroot-strange-key-movements 참고: www.tecmint.com/restrict-ssh-user-to-directory-using-chrooted-jail/

Linux 2021.03.12