DEV Community

Wojtek Kalka
Wojtek Kalka

Posted on

Productive Windows and Debian Client (WSL2) Setup

Hi there,

// work in progress

thought as first post I write a small intro how I setup my
work environment fast and efficient, a computer should be IMHO very exchangeable, so it crashes, you buy a new, follow some steps sync your files from your cloud and continue working. Love WSL2, looking forward to try the Android Subsystem for Windows .. I still have some Proxmox server running. This just a part of my setup running terminator on wsl in X on Windows too, will update the repo over time.

Uploaded it to github files are there to download, Enjoy

v0.2

https://github.com/wjk22/dotfiles-public

public dotfiles ..

Just my own setup for Windows and Linux as my work environment etc

Btw I use bitwarden/duo/2fa for nearly all my logins and store my own data encrypted
at my own seafile server or my own gogs/gitea server.

v0.2

Windows

  1. Setup two users user/admin admin password protected, work only as normal user.

  2. Install Chocolatey - Windows App Installer and some basic apps

    choco install totalcommander powershell-core ditto imageglass everything git googlechrome firefox openvpn potplayer processhacker gsudo vscode vim wox vlc python3

  3. Install Total Commander Ultima Prime from https://www.tcup.pl/index.php/en/, buy a license from https://www.ghisler.com/ (
    This is imho the best file commander ever invented, please prove me wrong..)

  4. Install Netlimiter and buy a license - https://www.netlimiter.com/

  5. Install Windows Terminal or Windows Terminal Preview. Work as user, elevate with gsudo.

  6. Download and install these Fonts and set them as defaul in Windows Terminal

  7. Install Oh My Posh - Prompt Engine
    Install-Module oh-my-posh -Scope CurrentUser -Force

    'Install-Module posh-git -Scope CurrentUser -Forice`

  8. Install Terminal Icons - Folder and File Icons

  9. Install scoop a command line user installer
    Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
    scoop install curl

  10. Install z for Windows Powershell
    Install-Module -Name z

  11. Install WSL -> https://docs.microsoft.com/en-us/windows/wsl/install

  12. Install Debian from the Microsoft Store ..and change WSL to Version II

  13. Install Seafile if you use a seafile server, highly recommended, choco install seafile-client, I keep all
    my data in my own cloud encrypted and on a backup drive.

  14. Install Macrium Reflect Free and backup your data every week at least ..

  15. Install Windows Update shell scripts with

    gsudo admin shell> Install-Module -Name PSWindowsUpdate -Force

  16. Install Bitwarden for Chrome/Firefox/Windows and connect it to your own server.

  17. Install Duo Security as dual factor login for your windows/remote desktops, bitwarden server etc pp. It is free for a 10 user or less environment.

Linux (Debian in WSL2)

// I am old school I prefer zsh over fish ..

  1. Install zsh, tmux, htop, vim, mtr-tiny, curl, iptraf,git, tcpdump, mc // I use Debian so apt install ....

  2. Install Oh my ZSH,ZSH-Autosuggestion, enable plugins

.sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

  1. Install P10K from https://github.com/romkatv/powerlevel10k
    git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

  2. z for zsh - Z Directory jumper for ZSH

  3. Setup my tmux, I use old screen bindings Ctrl-a

  4. Install vscode from https://code.visualstudio.com/download

  5. Install NodeJS
    sudo curl -sL https://deb.nodesource.com/setup_17.x | sudo bash -

  6. Install sl
    'sudo apt install sl'

Linux Server (Debian in Proxmox)

  1. Setup a proxmox server. This is my currently favourite virtualization platform, after being a long vsphere and other user.

  2. Setup a debian inside the proxmox server.

  3. change /etc/apt/sources.list add contrib non-free, run apt update, apt distupgrade

  4. Install docker docker-compose, vim, htop, tmux, zsh and the other usual suspects

  5. Install your favorite webserver.

  6. Install Vaultwarden docker via docker-compose.

  7. Install SeaFile.

  8. Install Gogs or Gitea.

  9. Secure all webservices with lets-encrypt/certbot.

Mac

hehe stopped using a mac two years ago :P

Stuff to try

eal opens aliases in vim and rereads aliases

Windows

Alt-space opens wox

Linux

Crlt-r in zsh searches in your history

Links

Inspired to publish my version by Craftzdog
https://github.com/craftzdog/dotfiles-public#readme


... follow the white rabbit, no there is no spoon and may the force be with you ..

Wojciech Kalka wojciech.kalka@skynet-services.net

Discussion (1)

Collapse
wjk22 profile image
Wojtek Kalka Author

Updating this from time to time .. :)