codefastdieyoung
  • about
  • links
    • github
    • twitter
  • .config
    • .emacs.d
    • Linux setup
    • Windows setup
    • Emacs usage notes
    • :emacs: posts
    • :configuration: posts
codefastdieyoung
  • about
  • links
    • github
    • twitter
  • .config
    • .emacs.d
    • Linux setup
    • Windows setup
    • Emacs usage notes
    • :emacs: posts
    • :configuration: posts

Windows configuration notes

Home » Knowledge base » Windows configuration notes
Table of Contents

1. optimization

List of gh repos with scripts and tools:
https://github.com/stars/thatwist/lists/windows-optimizations

2. home

mkdir C:\Users\Admin\Home
mkdir C:\Users\Admin\drive
mklink /d C:\Users\Admin\Home\crypt C:\Users\Admin\crypt
mklink /d C:\Users\Admin\Home\configs C:\Users\Admin\configs
mklink /d C:\Users\Admin\Home\Content C:\Users\Admin\Content
mklink /d C:\Users\Admin\Home\Dropbox C:\Users\Admin\Dropbox
mklink /d C:\Users\Admin\Home\Downloads C:\Users\Admin\Downloads
mklink /d C:\Users\Admin\Home\band C:\Users\Admin\band
mklink /d C:\Users\Admin\Home\books C:\Users\Admin\books
mklink /d C:\Users\Admin\Home\bin C:\Users\Admin\bin
mklink /d C:\Users\Admin\Home\drive C:\Users\Admin\drive
mklink /d C:\Users\Admin\Home\ifobs_win32client C:\Users\Admin\ifobs_win32client

3. provide linux file system access

use wsl2 –mount

4. configs wsl

ln -s /mnt/c/Users/Admin/configs /home/twist/configs
ln -s /mnt/c/Users/Admin /home/twist/winhome
ln -s /mnt/c/Users/Admin/Dropbox Dropbox
ln -s /mnt/c/Users/Admin/Downloads Downloads

5. wsl

5.1.1. to create shortcut

from within wsl
wslusc -I

5.1.2. to mount external drive

mkdir /mnt/f
mount -t drvfs f: /mnt/f
https://www.scivision.dev/mount-usb-drives-windows-subsystem-for-linux/#:~:text=WSL%20can%20mount%20and%20use,Windows%20Subsystem%20for%20Linux%20Terminal.

6. path

mklink /d C:\Users\Admin\bin C:\Users\Admin\configs\windows\bin

7. emacs

7.1. windows home

(setenv “HOME” “C:\\Users\\Admin”)
(message (format “HOME location is %s” (getenv “HOME”))))

7.2. windows alerts

https://github.com/gkowzan/alert-toast
put into site-lisp
C:\Program Files\Emacs\x86_64\share\emacs\site-lisp

7.3. spell in emacs (hunspell)

https://www.reddit.com/r/emacs/comments/dgj0ae/tutorial_spellchecking_with_hunspell_170_for/
need to download openoffice dicts, unzip and place somewhere (C:\Hunspell\)

7.4. windows link

“C:\Program Files\Emacs\x86_64\bin\emacsclientw.exe” -c -n -a “” -f %USERPROFILE%\.emacs.d\server\server -F “‘(fullscreen . fullboth)”

7.5. openwith fix

Computer\HKEY_CLASSES_ROOT\Applications\emacs.exe\shell\open\command
“C:\Program Files\Emacs\x86_64\bin\emacsclientw.exe” -c -n -a “” -f C:\Users\Admin\.emacs.d\server\server -F “((width . 120) (height . 40) (left . 200) (top . 150))”

7.6. separate clean config lnk

“C:\Program Files\Emacs\x86_64\bin\runemacs.exe” -Q -T CleanEmacs -l %USERPROFILE%\.emacs.d.clean\init.el –eval “(setq user-emacs-directory \”~/.emacs.d.clean\” user-init-file \”~/.emacs.d.clean/init.el\”)” -g 120×40

7.7. wsl

    ln -s /mnt/c/Users/Admin/.emacs.d/ /home/twist/.config/emacs

7.8. symbol fonts

install https://dn-works.com/ufas/ symbola

8. other apps

install fontawesome
windirstat
adobe acrobat
toshiba diagnostic tool
windows services/startup/drivers

  • http://www.nirsoft.net/utils/what_run_in_startup.html
  • http://www.nirsoft.net/utils/serviwin.html
  • http://www.nirsoft.net/utils/driverview.html
    file types manager
    • http://www.nirsoft.net/utils/file_types_manager.html
      openvpn-connect

9. hugo

https://gohugo.io/getting-started/installing/

choco install hugo -confirm

10. git

mklink C:\Users\Admin\.gitconfig C:\Users\Admin\configs\linux\.gitconfig

   ln -s /mnt/c/Users/Admin/.gitconfig /home/twist/.gitconfig

11. crypt

rclone copy -P crypt: C:\Users\Admin\crypt

mkdir /home/twist/Documents
ln -s /mnt/c/Users/Admin/crypt /home/twist/Documents/crypt

12. ssh

mklink /d C:\Users\Admin\.ssh C:\Users\Admin\crypt\.ssh

ln -s mnt/c/Users/Admin.ssh home/twist.ssh

13. gnupg

mklink /d C:\Users\Admin\AppData\Roaming\gnupg C:\Users\Admin\crypt\gnupg-win

14. pass

https://github.com/geluk/pass-winmenu
ln -s mnt/c/Users/Admin.password-store home/twist.password-store

15. ranger

ln -s mnt/c/Users/Admin/configs/linux.config/ranger home/twist.config/ranger

16. rclone

mklink /d C:\Users\Admin\.config\rclone C:\Users\Admin\configs\linux\.config\rclone

choco install winfsp

17. xclip

https://github.com/Konfekt/xclip-xsel-WSL

18. benchmarks software

  • unigine superposition
  • furmark
  • compu bench 2

19. i3-kind shortcuts

  • bug.n-9.0.2 (didn’t work well)
  • mouse and keyboard center download

20. monitoring

  • open hardware monitor
  • nzxt cam
  • thunder master
  • tech power up gpu z

21. security

  • kleopatra
  • browserpass-windows (native)

22. ledger

mklink C:\Users\Admin\.ledgerrc C:\Users\Admin\configs\linux\.ledgerrc

23. terminal

Start -> Run -> regedit
Go to [HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun] Change the value to @chcp 65001>nul

24. rufus

https://rufus.ie/en_US/

25. gnupg

   ln -s /mnt/c/Users/Admin/AppData/Roaming/gnupg /home/twist/.gnupg

26. debugging – DebugView

27. content/multimedia

  • photo
    • quik
    • digikam
    • luminar4
    • nomacs
  • video
    • vlc
    • lightworks
    • davinci
    • vsdc
    • obs-studio

28. powershell

mklink c:\Users\Admin\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 C:\Users\Admin\configs\windows\Microsoft.PowerShell_profile.ps1

29. aws

mklink /d C:\Users\Admin\.aws C:\Users\Admin\crypt\.aws.windows

30. other prog stuff

choco install libpq

choco install mingw

choco install mysql-cli

31. msys fail on upgrade / ridk install

…
pacman -U –config <(echo) msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz

  • Twitter
  • Telegram
  • Email
  • RSS
© 2023 - made in ukraine