life

Windows 재 설치 2일차

눈침침 2024. 11. 19. 20:38

Workflowy 설치

 

Workflowy Downloads

Workflowy is available on all desktop and mobile devices - access all your notes and information from anywhere.

workflowy.com

 

Ivanti Secure Access Client (VPN) 설치

 

Debian(WSL) ~/.ssh 에 windows .ssh 폴더 내용 복사

 

Debian(WSL) 에 Kerberos, vim 설정

$ sudo apt-get install krb5-user
$ sudo apt-get install vim

 

Debian(WSL) curl, git 설치

$ sudo apt-get install curl
$ sudo apt-get install git

 

Debian(WSL) 에 Homebrew  설치

 

Homebrew

The Missing Package Manager for macOS (or Linux).

brew.sh

 

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/Homebrew
==> The following new directories will be created:
/home/linuxbrew/.linuxbrew/bin
/home/linuxbrew/.linuxbrew/etc
/home/linuxbrew/.linuxbrew/include
/home/linuxbrew/.linuxbrew/lib
/home/linuxbrew/.linuxbrew/sbin
/home/linuxbrew/.linuxbrew/share
/home/linuxbrew/.linuxbrew/var
/home/linuxbrew/.linuxbrew/opt
/home/linuxbrew/.linuxbrew/share/zsh
/home/linuxbrew/.linuxbrew/share/zsh/site-functions
/home/linuxbrew/.linuxbrew/var/homebrew
/home/linuxbrew/.linuxbrew/var/homebrew/linked
/home/linuxbrew/.linuxbrew/Cellar
/home/linuxbrew/.linuxbrew/Caskroom
/home/linuxbrew/.linuxbrew/Frameworks

Press RETURN/ENTER to continue or any other key to abort:

 

위 설치 과정에서 git 이 없어 실패 후 다시 설치

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/Homebrew

Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /bin/chown -R sangpire:sangpire /home/linuxbrew/.linuxbrew/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 286049, done.
remote: Counting objects: 100% (17455/17455), done.
remote: Compressing objects: 100% (784/784), done.
remote: Total 286049 (delta 16828), reused 16948 (delta 16648), pack-reused 268594 (from 1)
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (34/34), done.
remote: Total 55 (delta 33), reused 33 (delta 33), pack-reused 21 (from 1)
==> Updating Homebrew...
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:ddc6e7963b71b78263e2f5c80464a5ed563897a2b03c22e86b1ec14548de800b
################################################################################################################# 100.0%
==> Pouring portable-ruby-3.3.6.x86_64_linux.bottle.tar.gz
Warning: /home/linuxbrew/.linuxbrew/bin is not in your PATH.
  Instructions on how to configure your shell for Homebrew
  can be found in the 'Next steps' section below.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run these commands in your terminal to add Homebrew to your PATH:
    echo >> /home/sangpire/.bashrc
    echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/sangpire/.bashrc
    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- Install Homebrew's dependencies if you have sudo access:
    sudo apt-get install build-essential
  For more information, see:
    https://docs.brew.sh/Homebrew-on-Linux
- We recommend that you install GCC:
    brew install gcc
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

 

Homebrew on Linux — Homebrew Documentation

 

Homebrew on Linux

Documentation for the missing package manager for macOS (or Linux).

docs.brew.sh

 

위 글을 읽다가 hello 설치함

$ brew install hello

 

요것도 실행

sudo apt-get install build-essential procps curl file git

 

brew 로 kubeclt / k9s 설치

brew install kubectl
brew install k9s

 

id_rsa 권한 수정

$ chmod 400 ~/.ssh/id_rsa

 

JetBrains Toolbox App 설치 

 

JetBrains Toolbox App: 도구를 간편하게 관리

 

www.jetbrains.com

 

Toolbox 에서 Intellj IDEA Ultimate 설치

 

ifconfig 명령어를 위해서 net-tools 설치

$ sudo apt-get install net-tools

 

 

WSL2 에서 VPN 동작 후, HTTPS 연결이 안되는 이슈 발생

WSL2 fails to make HTTPS connection if Windows is using VPN · Issue #4698 · microsoft/WSL

 

WSL2 fails to make HTTPS connection if Windows is using VPN · Issue #4698 · microsoft/WSL

Your Windows build number: Microsoft Windows [Version 10.0.19013.1122] What you're doing and what's happening: Open WSL 2 terminal (Ubuntu) and type: wget --timeout=30 http://packages.microsoft.com...

github.com

중간쯤 나온 솔루션은

아래 명령어 실행 후, 나온 VPN interface 의 MTU 값으로

C:\Windows\System32>netsh.exe interface ipv4 show interfaces

 

아래 명령을 실행하는 것

$ sudo ifconfig eth0 mtu 1400

 

그러고 나니 동작은 하고 있음;;

 

두번째 작업은 안해도 되는건가 싶긴 하지만

Advanced settings configuration in WSL | Microsoft Learn

 

Advanced settings configuration in WSL

A guide to the wsl.conf and .wslconfig files used for configuring settings when running multiple Linux distributions on Windows Subsystem for Linux.

learn.microsoft.com

위 가이드 보면서 .wslconfig 파일을 만들어서 다음과 같이 설정 함 (이 가이드를 따른 것 임)

# Settings apply across all Linux distros running on WSL 2
[wsl2]
networkingMode=mirrored

 

 

여러 설정 파일을 수정해야 해서

Visual Studio Code 설치

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

  • Microsoft Store 에서 설치
  • 실행하자마자 WSL 관련 플러그인 설치 나중에 좀 더 알아보자.

 

여기까지 회사 서비스 장애나면 대략 대응은 가능해진 듯

 

 

추가로 '스팀'과 '에픽 게임즈' 설치 😍

Welcome to Steam

 

Steam Store

Steam is the ultimate destination for playing, discussing, and creating games.

store.steampowered.com

 

에픽게임즈 | 홈페이지 - Epic Games