This file contains 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 myDU server on Windows without Docker Desktop: | |
in a Windows terminal: | |
wsl --install | |
# this will create and install a Ubuntu VM. | |
# choose an username and a password and don't forget them! | |
# when you see a Linux prompt (colored prompt with username first), enter the following commands: | |
sudo snap install docker | |
sudo groupadd docker | |
sudo usermod -aG docker $USER |
This file contains 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
steps to install myDU server on Linux: | |
if using WSL2 (Linux on Windows), install WSL2 then a distro: https://learn.microsoft.com/en-us/windows/wsl/install | |
once your distro is up , you're in Linux continue below (easiest distro: ubuntu) | |
A. setting up Docker: | |
step 1: install Docker engine (do not install Docker Desktop): https://docs.docker.com/engine/install/ | |
ubuntu: sudo snap install docker | |
step 2: (optionnal) post install : https://docs.docker.com/engine/install/linux-postinstall/ |
This file contains 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/bash | |
docker pull novaquark/dual-server-logrotate | |
docker pull novaquark/dual-server-nodemanager | |
docker pull novaquark/dual-server-constructs | |
docker pull novaquark/dual-server-market | |
docker pull novaquark/dual-server-voxel | |
docker pull novaquark/dual-server-orleans | |
docker pull novaquark/dual-server-queueing | |
docker pull novaquark/dual-server-node | |
docker pull novaquark/dual-server-backoffice |
This file contains 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/systemd/network/10-wan.network | |
[Match] | |
Name=enp4s0f1.100 | |
[Network] | |
IPv6AcceptRA=true | |
DHCP=ipv6 #mettre 'yes' si besoin aussi en IPv4 | |
[IPv6AcceptRA] | |
UseDNS=false #ou yes si bytel envoi des infos dns |
This file contains 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
package main | |
import ( | |
"fmt" | |
"math" | |
"time" | |
"github.com/shirou/gopsutil/v3/cpu" | |
) |
This file contains 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
curl -s https://mirrors.dotsrc.org/cygwin/x86_64/release/cygwin/cygwin-3.1.6-1.tar.xz | tar -Jx --strip-components 2 usr/bin/cygwin1.dll |
This file contains 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
source: https://discuss.linuxcontainers.org/t/using-lxd-on-your-chromebook/3823 | |
ctrl-alt-t to access crosh | |
vsh termina (or vmc start termina) | |
lxc config set core.https_address :8443 | |
lxc config set core.trust_password some-password | |
# create an Ubuntu container | |
lxc launch ubuntu:18.04 c1 | |
# copy the lxc command from it |
This file contains 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/bash | |
# convert RIPE allocation list to database friendly format | |
# (c) kgersen 2018 for https://lafibre.info | |
# tab (\t) is used as separator in output | |
# output | |
# country ispcode ispname date 4|6 block block_size | |
# optionnal argument: country code to match | |
url="https://ftp.ripe.net/ripe/stats/membership/alloclist.txt" |
This file contains 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
# node and npm | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
#yarn | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update && sudo apt install yarn |
This file contains 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
sudo apt install pgp | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
sudo apt update | |
sudo apt install code # or code-insiders | |
sudo apt install libxss1 |
NewerOlder