This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install needed packages | |
sudo apt install cifs-utils | |
# Add a mount line to /etc/fstab | |
//<ip>/<share> <mount point> cifs credentials=<credentials file>,uid=<user id>,gid=<group id>,vers=2.0 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/network/interfaces | |
auto eth0 | |
iface eth0 inet static | |
address 192.168.100.101 | |
netmask 255.255.255.0 | |
network 192.168.100.0 | |
broadcast 192.168.100.255 | |
gateway 192.168.100.1 | |
dns-nameservers 1.1.1.1 1.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClientAliveInterval 360 | |
ClientAliveCountMax 0 | |
PermitEmptyPasswords no | |
PermitRootLogin no | |
Protocol 2 | |
Port 3089 | |
PasswordAuthentication no | |
AuthenticationMethods publickey | |
PubkeyAuthentication yes | |
IgnoreRhosts yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd "C:\Program Files\Oracle\VirtualBox" | |
VBoxManage modifyhd <path to vdi image> --resize <new size in mb> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
HOMENETWORK="192.168.100.0/24" | |
HOMENETIF="eth0" | |
HOMEVPNIF="tun0" | |
iptables --flush | |
# default policy | |
iptables -P INPUT DROP |
NewerOlder