sudo apt-get install xserver-xorg-video-dummy
Create / Edit xorg.conf file Rename file if already exists for backup
| [[source]] | |
| url = "https://pypi.org/simple" | |
| verify_ssl = true | |
| name = "pypi" | |
| [packages] | |
| requests = "*" | |
| [dev-packages] |
| #!/bin/bash | |
| echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment | |
| echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen | |
| echo "LANG=en_US.UTF-8" | sudo tee -a /etc/locale.conf | |
| sudo locale-gen en_US.UTF-8 |
| mkdir bkp | |
| sudo apt install borgbackup -y | |
| borg init --encryption none bkp/ | |
| crontab -e | |
| # 0 12 * * * borg create ~/bkp::Downloads-$(date '+\%m-\%d-\%Y') ~/Downloads/ | |
| tail -f /var/log/syslog | grep CRON | |
| borg list bkp | |
| mkdir test-extraction | |
| cd test-extraction | |
| borg extract ../bkp::Downloads home/e/Downloads |
| # WSL2 network port forwarding script v1 | |
| # for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell, | |
| # for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter. | |
| # written by Daehyuk Ahn, Aug-1-2020 | |
| # Display all portproxy information | |
| If ($Args[0] -eq "list") { | |
| netsh interface portproxy show v4tov4; | |
| exit; | |
| } |
I applied permission to /run/screen folder but every restart requires this fix. So I change the SCREENDIR to home folder. To fix for all users at WSL run below command.
echo 'export SCREENDIR="$HOME/.screen"'if you start screen outside of bash like command line or scheduled task run with environment variables.
C:\Users\ahmet>bash -c 'SCREENDIR=$HOME/.screen screen'| ### Basic ### | |
| # The directory to store the downloaded file. | |
| dir=${HOME}/Downloads | |
| # Downloads the URIs listed in FILE. | |
| input-file=${HOME}/.aria2/aria2.session | |
| # Save error/unfinished downloads to FILE on exit. | |
| save-session=${HOME}/.aria2/aria2.session | |
| # Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0 | |
| save-session-interval=60 | |
| # Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5 |
Download Raspbian from the official site
Flash it to the USB drive following the procedure detailed here
Fomat an SD Card 2/4 GB as FAT32, label "boot", flag "lba". Generate a UUID. You can use GParted for this task.
Get the UUID of the USB drive and the SD Card partitions using sudo blkid.