Private
Public Access
1
0
33
win
syui edited this page 2026-01-13 12:03:32 +00:00

windows

# https://dev.epicgames.com/documentation/en-US/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine
# winget install Microsoft.VisualStudio.2022.Community
$ winget install Microsoft.VisualStudio.Community
- .NET Desktop
- C++ Desktop
- C++ ゲーム開発

windows固有の設定など。

winget

$ winget show --id=9NT1R1C2HH7J --source=msstore
公開元: OpenAI
発行元 URL: https://help.openai.com

update

$ winget source update
$ winget upgrade
---
$ winget upgrade --all

pkg

おすすめのpkgです。これらは多用します。

$ winget install
 microsoft.windowsterminal.preview
 microsoft.powershell.preview 
 microsoft.openssh.preview
 microsoft.visualstudiocode
 microsoft.wsl
 microsoft.powertoys

git

$ winget install git.git
$ winget install vim.vim
$ winget install jesseduffield.lazygit

other

安全性については別途調べてください。

title command(id)
cuda Nvidia.Cuda
epicgameslauncher EpicGames.EpicGamesLauncher
blender BlenderFoundation.Blender
discord Discord.Discord
unity Unity.UnityHub
obs OBSProject.OBSStudio
vlc VideoLAN.VLC
ffmpeg Gyan.FFmpeg
docker Docker.DockerDesktop
firefox Mozilla.Firefox
python Python.Python.3.13
jq jqlang.jq
7z 7zip.7zip

pwsh

pwsh(powershell)を多用します。

powertoysでショートカットキーを設定します。wt(microsoft.windowsterminal)を開きます。

windowsが不安定になる要因

例えば、デスクトップを選択できなくなったり、エクスプローラーが操作できなくなる現象の要因は、EpicGamesLauncher.exeにあります。

UnrealEditor.exe自体もバグだらけで様々な問題を引き起こします。場合によっては、osやハードディスクを破壊しますが、EpicGamesLauncher.exeも同様に、windows desktopで様々な問題を引き起こす要因になります。このことには注意してください。

画面がチラつく

UnrealEditorが短時間で激しく点滅します。なかなか分かりづらいですが、この現象を早期に発見しないと、目がやられてしまうでしょう。

nvidiaのコントロールパネルを開いて、私の場合は、G-SYNCをオフにすると、治りました。

openssh

macなどと開発するに当たって、opensshを使用します。

serverにaccess(アクセス)したり、または自身をserverにしたりします。

$ winget install microsoft.openssh.preview

windowsに接続する

windowsをssh serverにする方法です。

sshd_configc:/programdata/ssh/sshd_configにあります。

c:/programdata/ssh/sshd_config

PasswordAuthentication no
PermitEmptyPasswords yes
AuthorizedKeysFile      .ssh/authorized_keys
#Match Group administrators
#       AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
# server
$ net start sshd

client側でssh-keygenを実行して作成した.pub~/.ssh/authorized_keysに追記します。これで鍵認証が通ります。

# client
$ ssh-keygen -f ~/.ssh/test
$ cat ~/.ssh/test.pub
ssh-rsa AAAAXXXX
---
# server
$ echo "ssh-rsa AAAAXXXX" >> ~/.ssh/authorized_keys
$ cat ~/.ssh/authorized_keys
ssh-rsa AAAAXXXX

この処理はssh-copy-idなどが使用できる場合は短縮できます。windowsのopensshが対応しているかはわかりませんが。

# client
$ ssh-copy-id -i ~/.ssh/test $USER@192.168.1.23

では他のpcからwindowsにアクセスしてみましょう。

# client
$ ssh -i ~/.ssh/test $USER@192.168.1.23

なお、~/.ssh/configに書いておくと省略できます。これはclient側です。

~/.ssh/config

Host windows
    User syui
    Hostname 192.168.1.23
    IdentityFile ~/.ssh/test
    Port 22
# client
$ ssh windows

file(dir) copyも容易です。

# server
$ echo 12345 > ~/file.txt

# client
$ scp -r windows:file.txt .
$ cat file.txt
12345

default-shell

デフォルト(default)のshellをpwshに変えます。

default-shellを変更した場合の注意ですが、更新した際にerrが出る場合があります。

Permission denied (publickey,keyboard-interactive).

default-shellのpathが違うとpassword/publickey認証のどちらも通りませんので注意してください。

$ New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Program Files\PowerShell\7\pwsh.exe" -PropertyType String -Force

例えば、pwsh-previewを使っている場合はこうなります。使用しているpwshのpathを確認してください。

+ C:\Program Files\PowerShell\7-preview\pwsh.exe
- C:\Program Files\PowerShell\7\pwsh.exe