Skip to content

Instantly share code, notes, and snippets.

View kostorv's full-sized avatar

Konstantinos Orfanidis kostorv

View GitHub Profile
@kostorv
kostorv / debian-wsl2-kvm-win10.md
Last active October 18, 2022 09:50
Win10 WSL2 KVM Debian installation

Build An Accelerated KVM Guest Custom Kernel for WSL 2 - Debian edition

In this gist I try to build an accelerated KVM Guest Custom Kernel for WSL2 for Debian distro. In this link Hayden Barnes implements it on OpenSUSE Tumbleweed distro. Though the procedure seems pretty straightforward I am stumbling upon some issues which I will describe below.

Fresh installation of WSL2 Debian

$ uname -r 
5.10.60.1-microsoft-standard-WSL2 (This changes with different Windows Updates for WSL)
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
...
@kostorv
kostorv / .bash_profile
Created October 17, 2019 08:55
Basic .bash_profile script
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
@kostorv
kostorv / .vimrc
Last active February 13, 2019 09:43
VIMRC preferences
set backspace=indent,eol,start
set fileencodings=ucs-bom,utf-8,latin1
set guicursor=n-v-c:block,o:hor50,i-ci:hor15,r-cr:hor30,sm:block,a:blinkon0
set helplang=en
set history=50
set hlsearch
set nomodeline
set ruler
color desert
set nu
@kostorv
kostorv / .zshrc
Last active October 18, 2019 08:20
ZSHRC preferences
HISTFILE=~/.zsh_history
HISTSIZE=5000
SAVEHIST=10000
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'