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

Fedora WSL #3

Closed
king-11 opened this issue Jul 27, 2023 · 15 comments
Closed

Fedora WSL #3

king-11 opened this issue Jul 27, 2023 · 15 comments

Comments

@king-11
Copy link
Owner

king-11 commented Jul 27, 2023

WSL Installation

docker run --name fedora39 fedora:39
docker export -o fedora-39-rootfs.tar fedora39

User Setup

mkdir $HOME\wsl\fedora
wsl --import fedora $HOME\wsl\fedora $HOME\Downloads\fedora-39-rootfs.tar
wsl -d fedora

Packages

sudo dnf install util-linux-user git
sudo dnf groupinstall "Development Tools" "Development Libraries"
sudo dnf -y install make automake gcc gcc-c++ kernel-devel
sudo dnf -y install zlib-devel libffi-devel openssl-devel bzip2-devel readline-devel sqlite-devel xz-devel
sudo dnf clean all

Export

wsl --export fedora $HOME\Downloads\fedora-wsl.tar
@king-11
Copy link
Owner Author

king-11 commented Jul 27, 2023

Libcuda Fix

microsoft/WSL#5548 (comment)

@king-11
Copy link
Owner Author

king-11 commented Jul 27, 2023

Install pyenv using brew only
brew install python-tk

@king-11
Copy link
Owner Author

king-11 commented Jul 27, 2023

sudo -e /etc/wsl.conf
[boot]
systemd=true

@king-11
Copy link
Owner Author

king-11 commented Jul 31, 2023

pkg-config brew install conflicts with system one

brew update\
brew upgrade\
brew remove --ignore-dependencies pkg-config\
brew install -vds --env=super pkg-config

@king-11
Copy link
Owner Author

king-11 commented Jul 31, 2023

GPG signing fix

GPG_TTY=$(tty)
export GPG_TTY

@king-11
Copy link
Owner Author

king-11 commented Jul 31, 2023

Closing since most of the setup is done with final comment will keep posting in case of new additions. Commit reference

ca012ed

@king-11 king-11 closed this as completed Jul 31, 2023
@king-11
Copy link
Owner Author

king-11 commented Aug 10, 2023

en_US.UTF-8

sudo echo "LANG=en_US.UTF-8" > /etc/local.conf
sudo dnf install langpacks-en
localectl set-locale LANG=en_US.UTF-8

@king-11
Copy link
Owner Author

king-11 commented Aug 14, 2023

wslview for access browser through wsl.

export DISPLAY=:0 # not required as GUI supported
export BROWSER=/usr/bin/wslview

wayland server not found fix microsoft/WSL#11261 (comment)

@king-11
Copy link
Owner Author

king-11 commented Oct 2, 2023

setting up localhost port transfer: https://abdus.dev/posts/fixing-wsl2-localhost-access-issue/

@king-11
Copy link
Owner Author

king-11 commented Dec 16, 2023

Intellij slow in WSL: microsoft/WSL#8995 (comment)

@king-11
Copy link
Owner Author

king-11 commented Jan 3, 2024

WSL slow: microsoft/WSL#873

@king-11
Copy link
Owner Author

king-11 commented Feb 11, 2024

clock issue: microsoft/WSL#10006

WSL version: 2.1.1

wsl --update --pre-release

Update: breaks fedora instead use this: microsoft/WSL#8204 (comment)

@king-11
Copy link
Owner Author

king-11 commented Feb 24, 2024

sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --releaserver=40
export DNF_SYSTEM_UPGRADE_NO_REBOOT=1
sudo -E dnf system-upgrade reboot
sudo -E dnf system-upgrade upgrade
sudo dnf upgrade --refresh

@king-11
Copy link
Owner Author

king-11 commented Jul 10, 2024

to attach yubikey to wsl

usbipd bind --busid 2-4
usbipd attach --wsl --busid 2-4

after this we sometimes have to reset gpg agent for ssh to work

gpg --card-status
gpg-connect-agent updatestartuptty /bye

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

1 participant