In Powershell, before you've installed Kali:
wsl --set-default-version 2
wsl --install -d kali-linux
Now create your Kali username and password. Then...
sudo su
#!/bin/bash | |
#pre-requisite: hostname must resolve to the public IP of the server! | |
#if you receive errors regarding being unable to configure proxmox packages, this is why! | |
#you can change the hostname with "hostnamectl set-hostname <new hostname>" and reboot | |
sudo apt update && sudo apt upgrade -y | |
myip=$(curl --silent ifconfig.me) | |
echo $myip | |
hosts=hosts | |
echo "localhost 127.0.0.1" > hosts |
#!/bin/bash | |
#Tested working on Ubuntu 20.04 and 22.04! | |
VERSION='4.22.1' | |
echo "This script will install code-server v$VERSION, enable it as a service, and expose it to the internet with a LetEncrypt Certificate." | |
echo "" | |
echo "By this point, you should already have a domain name pointed to the IP address of this server!" | |
read -p "Press ENTER to continue or CTRL+C to quit" | |
echo "Which domain name do you want to use? Including subdomain if applicable: " | |
read domainname |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | |
#!/bin/bash | |
#This script assumes that you have a domain name with a DNS record pointed to Proxmox's public IP | |
echo "Enter the domain name that will resolve to this servers IP address" | |
read hostname | |
sudo apt update && sudo apt full-upgrade -y | |
hostnamectl set-hostname $hostname | |
myip=$(curl --silent ifconfig.me) | |
echo "127.0.0.1 localhost" > hosts |
In Powershell, before you've installed Kali:
wsl --set-default-version 2
wsl --install -d kali-linux
Now create your Kali username and password. Then...
sudo su
#!/bin/bash | |
############################################################################################################# | |
#Changelog # | |
############################################################################################################# | |
#Added prompts for user input to configure script instead of relying on hardcoded settings. | |
#Added a lot of errorchecking | |
#The script is now optionally compatible with dash (this is the reason for there being a sed command at the end of every echo -e instance, dash liked to print the -e part when I was testing.) | |
#Vastly improved compatibility across distributions | |
#Special thanks to everyone who contributed here: https://gist.github.com/i3v/99f8ef6c757a5b8e9046b8a47f3a9d5b | |
#Also extra special thanks to BAGELreflex on github for this: https://gist.github.com/BAGELreflex/c04e7a25d64e989cbd9376a9134b8f6d it made a huge difference to this improved version. |
#!/bin/bash | |
#Converts an Ubuntu Focal installation to a Debian Bullseye installation | |
#This script is intended to be run on a fresh Ubuntu Focal installation | |
rm -rf /etc/apt/sources.list.* | |
# Append the Debian Bullseye sources to the sources.list file, keeping the Ubuntu sources for now | |
cat << EOF >> /etc/apt/sources.list | |
deb http://deb.debian.org/debian bullseye main contrib non-free | |
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free | |
deb http://deb.debian.org/debian bullseye-updates main contrib non-free" |
version: '3' | |
services: | |
traefik: | |
image: 'traefik' | |
command: | |
- '--api=true' | |
- '--api.insecure=true' | |
- '--api.dashboard=true' | |
- '--providers.docker=true' |
This remote was a challenge, so I figured I'd share my findings because I didn't see this anywhere else online.
It uses the obscure "RCMM" protocol, sometimes referred to as "Nokia". RCMM can be sent in sizes of 12, 24, or 32 bits, this remote exclusively uses 32 bit codes. Another quirk of the protocol is that each button has two codes, one with a bit called "toggle" activated and one without. I've included both codes for each button.
You'll notice that VOL+, VOL-, and Mute aren't included, this is because these codes are sent directly to your TV, and will vary based on your setup. Also, the remote will send an additional "Power on/off" signal to your TV when you press the power button, but this signal is not included in the chart.
Button No. | Button Name | Command (no toggle bit) | Command (toggle bit) |
---|---|---|---|
1 | Power | 0x2340260C | 0x2 |
Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown
Starts Youtube App
entity_id: media_player.shield
command: >-