Skip to content

Instantly share code, notes, and snippets.

@butageek
butageek / FixUEFIDetection.wsf
Created January 10, 2023 21:25
Fix BCDBootEX When Using Windows ADK
<job id="FixUEFIDetection">
<script language="VBScript" src="ZTIUtility.vbs"/>
<script language="VBScript">
' // ***************************************************************************
' //
' // File: FixUEFIDetection.wsf
' //
' // Version: 1.1
' //
@butageek
butageek / install_adguardhome_on_ubuntu.md
Created February 17, 2022 01:09
Fix "address already in use" error when install AdGuard Home on Ubuntu Server

Create adguardhome.conf file

sudo mkdir /etc/systemd/resolved.conf.d
cd /etc/systemd/resolved.conf.d
sudo vim adguardhome.conf

Add following content into adguardhome.conf file:

[Resolve]
DNS=127.0.0.1
@butageek
butageek / mount_smb_in_ubuntu.md
Created February 15, 2022 00:09
Mount SMB Share in Ubuntu

CIFS installation

sudo apt-get install cifs-utils

Mount password protected network folders

The quickest way to auto-mounting a password-protected share is to edit /etc/fstab (with root privileges), to add this line:

//servername/sharename  /media/windowsshare  cifs  username=msusername,password=mspassword,iocharset=utf8 0 0
@butageek
butageek / increase_pve_storage.md
Created February 9, 2022 17:22
Increase default Proxmox system storage

Delete local-lvm

Go to Datacenter > Storage and remove local-lvm

Enable Disk image on local

Go to Datacenter > Storage and edit local, select Disk image under Content and save

Delete data and resize local

lvremove /dev/pve/data
lvresize -l +100%FREE /dev/pve/root
@butageek
butageek / plex_on_truenas_update.md
Last active November 15, 2022 04:28
Update Plex on TrueNAS manually

Open the Plex shell in Jails and run following command

fetch --no-verify-peer -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh
chmod 755 PMS_Updater.sh
./PMS_Updater.sh -a -v
@butageek
butageek / windows_activation.md
Last active June 26, 2024 12:33
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

@butageek
butageek / wsl2.md
Last active July 24, 2021 03:42
install wsl 2 on Windows

Step 1 - Enable the Windows Subsystem for Linux

Open PowerShell as Administrator and run following command:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Step 2 - Enable Virtual Machine feature

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
@butageek
butageek / nextcloud.md
Created February 4, 2021 03:14
Install Nextcloud

Installing

Download the Nextcloud snap package and install it

sudo snap install nextcloud

Getting Additional Information About the Nextcloud Snap

The snap info command can show you the description, the Nextcloud management commands available, as well as the installed version and the snap channel being tracked:

snap info nextcloud
@butageek
butageek / syncthing.md
Last active January 20, 2021 06:08
Install and configure Syncthing

Installing

On Ubuntu

Add the "stable" channel to your APT sources

echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list

Add the release PGP keys

curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
@butageek
butageek / openvpn.md
Last active January 15, 2021 22:01
openvpn server config

Find your IP address

Find local IP

ip addr

Find external IP

dig +short myip.opendns.com @resolver1.opendns.com