Skip to content

Instantly share code, notes, and snippets.

@butageek
butageek / softether.md
Last active March 4, 2020 19:31
install and configure SoftEther on Ubuntu Server

Prepare Package

Get package url from website

wget package_url

Extract package

tar xzvf package_name
@butageek
butageek / proxy-windows.md
Last active March 5, 2020 02:22
Proxy Server Settings on Windows

Enable Proxy

Set ProxyEnable to 1 (enable proxy)

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f

Add ProxyServer Value

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d 13.76.185.166:3128 /f
@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
@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 / 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 / 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 / windows_activation.md
Last active June 29, 2024 15:47
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 / 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 / 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 / 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