- In powershell (as admin)
# list all installed distros
wsl -l -v
# destroy distros
wsl --unregister Ubuntu
Ref:
cat /etc/resolv.conf
###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.
Here are the commands might be usefull in this purpose:
anydesk --get-status
: To get current status of anydesk, which might be offlien,online
or nothing.anydesk --get-id
: To get the ID that your system can be accessed by.anydesk --service
: To start anydesk service if not already running (for Linux).anydesk --restart-service
: To restart anydesk serviceanydesk --stop-service
: To stop anydesk servicedie() { echo "$*" >&2; exit 2; } # complain to STDERR and exit with error | |
needs_arg() { if [ -z "$OPTARG" ]; then die "No arg for --$OPT option"; fi; } | |
while getopts ab:c:-: OPT; do | |
# support long options: https://stackoverflow.com/a/28466267/519360 | |
if [ "$OPT" = "-" ]; then # long option: reformulate OPT and OPTARG | |
OPT="${OPTARG%%=*}" # extract long option name | |
OPTARG="${OPTARG#$OPT}" # extract long option argument (may be empty) | |
OPTARG="${OPTARG#=}" # if long option argument, remove assigning `=` | |
fi |
# Disable all of make's built-in rules (similar to Fortran's implicit none) | |
MAKEFLAGS += --no-builtin-rules --no-builtin-variables | |
# Fortran Compiler | |
FC := gfortran | |
# The following must have non-empty value if OpenMP is required | |
OMP := | |
# The following must have non-empty value if Debugging compiler options are required |
build.yml
inside .github/workflows
path inside your repository. Edit it as required. You may check the validity of the yaml file online.README.md
, put the following badge:[![CI Build Status](https://github.com/<OWNER>/<REPO>/actions/workflows/build.yml/badge.svg)](https://github.com/<OWNER>/<REPO>/actions/workflows/build.yml)
https://github.com///actions/workflows/build.yml
Anydesk is usually used for accessing remote desktop, viz. the entire GUI shell. This, however, uses a lot of data. If one wants to simply run commands remotely, then it's more efficient to use SSH by using Anydesk's TCP tunneling feature. TCP tunnelling also gives access to remote's network provided a SQUID web proxy is running @ remote, thus setting up a VPN effectively. Anydesk offers only one TCP tunneling in its FREE license.
To set up SSH, for example, to a Remote Linux server do the following:
Create TCP tunnels
is checked in Settings > Permissions.alias x="nautilus ${PWD}"
; so that file explorer opens in current directory with command x
alias ls="ls -lt"
tunnel
. Make use of cron: crontab -e
> @reboot tunnel -l /tmp/tunnel.log 22
and */1 * * * * tunnel -l /tmp/tunnel.log 22
. Use tunnel
because it is more or less portable and doesn't require sudo
priviledge. Just install a portable socat
in the same directory as tunnel
(e.g. ~/.bin
), if needed.~/.bashrc
: flock -n /tmp/tunnel.log tunnel -b <port> -l /tmp/tunnel.log <server-kid>:22
# NOTE: You may simply put this config file inside /etc/ssh_config.d directory. | |
# Ref : https://www.howtogeek.com/75007/stupid-geek-tricks-use-your-ssh-config-file-to-create-aliases-for-hosts/ | |
# To create ssh-keys easily use `ssh-keygen` @client followed by `ssh-copy-id server` | |
Host <alias> | |
User <uid> | |
HostName <ip or hostname> | |
Port <port> | |
IdentityFile <~/.ssh/your_saved_key> # for passwordless login | |
ServerAliveInterval 120 | |
ServerAliveCountMax 30 |