There are two parts to networking within QEMU:
- The virtual network device that is provided to the guest (e.g. a PCI network card).
- The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).
#!/bin/bash | |
inc=$(ifconfig | awk -F':' '!/^lo/ && /^[a-z]/{print $1}') | |
for i in ${inc[*]} | |
do | |
ifconfig "${i}" 2>/dev/null | awk '$1=="inet"{print "⎆ "$2}' | |
done |
sudo apt-get update | |
sudo apt-get install nginx | |
sudo nginx -t | |
sudo systemctl restart nginx | |
sudo apt-get install mysql-server |
curl -i -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET https://dynamicdns.park-your-domain.com/update?host=@&domain=[domain]&password=[update-password]&ip=[local-ip] |
sudo apt install lsscsi | |
sudo apt install tgt | |
#If UFW is enabled then allow inbound TCP 3260 traffic | |
lsscsi -g | |
sudo vi /etc/tgt/conf.d/bluray.conf | |
#Here is a sample of how my file looks like |
KMS Client Setup Keys | |
https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys | |
Windows Server Semi-Annual Channel versions | |
Windows Server, version 1809 | |
Windows Server Datacenter 6NMRW-2C8FM-D24W7-TQWMY-CWH2D | |
Windows Server Standard N2KJX-J94YW-TQVFB-DG9YT-724CC |
########################################## | |
# To run: | |
# curl -sSL https://gist.githubusercontent.com/sirkkalap/e87cd580a47b180a7d32/raw/d9c9ebae4f5cf64eed4676e8aedac265b5a51bfa/Install-Docker-on-Linux-Mint.sh | bash -x | |
########################################## | |
# Check that HTTPS transport is available to APT | |
if [ ! -e /usr/lib/apt/methods/https ]; then | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https | |
fi |
/** | |
* [...] | |
* This script is not optimized. It's to kind to tell me if you have any better ideas. | |
* Script van chua hoan thien. Toi rat cam on neu ban co the cho toi cac y tuong khac | |
* | |
* @author Hong Trang D. Nguyen | |
* @version 1.00 | |
* @since 01/01/2016 | |
* @credits Quy Hoa L. Huynh, Ngoc Tien Nhan | |
* |
#!/bin/sh -e | |
hostname=$1 | |
device=$2 | |
file=$HOME/.dynv6.addr6 | |
[ -e $file ] && old=`cat $file` | |
if [ -z "$hostname" -o -z "$token" ]; then | |
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]" | |
exit 1 | |
fi |