All of the following information is based on go version go1.17.1 darwin/amd64
.
GOOS | Out of the Box |
---|---|
aix |
✅ |
android |
✅ |
# Clean, simple, compatible and meaningful. | |
# Tested on Linux, Unix and Windows under ANSI colors. | |
# It is recommended to use with a dark background. | |
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
# | |
# Mar 2013 Yad Smood | |
# VCS | |
YS_VCS_PROMPT_PREFIX1=" %{$reset_color%}on%{$fg[blue]%} " | |
YS_VCS_PROMPT_PREFIX2=":%{$fg[cyan]%}" |
#!/usr/bin/bash | |
set -e | |
apt-get update | |
apt-get install -y \ | |
curl \ | |
ca-certificates \ | |
unzip \ |
#Requires -RunAsAdministrator | |
[CmdletBinding()] | |
param( | |
[Alias('Path')] | |
[string]$WorkPath, | |
[ValidateScript({ | |
$existingVm = Get-VM -Name $_ -ErrorAction SilentlyContinue | |
if (-not $existingVm) { | |
return $True |
#!/bin/sh | |
set -e | |
set -o noglob | |
# Usage: ./install.sh [options] | |
# | |
# Example: | |
# Installing on first master node run: | |
# ./install --num 3 --vip 192.168.2.10 --iface eth0 | |
# Installing on other master nodes run: |
切换到root用户
运行初始化脚本 init-os.sh
运行安装脚本 install-k8s.sh
# Clean, simple, compatible and meaningful. | |
# Tested on Linux, Unix and Windows under ANSI colors. | |
# It is recommended to use with a dark background. | |
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
# | |
# Mar 2013 Yad Smood | |
# VCS | |
YS_VCS_PROMPT_PREFIX1=" %{$reset_color%}on%{$fg[blue]%} " | |
YS_VCS_PROMPT_PREFIX2=":%{$fg[cyan]%}" |
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine -Force | |
# Restore the Classic Taskbar in Windows 11 | |
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell\Update\Packages" -Name "UndockingDisabled" -PropertyType DWord -Value "00000001"; | |
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell\Update\Packages" -Name "UndockingDisabled" -Value "00000001"; | |
# Disable Taskbar / Cortana Search Box on Windows 11 | |
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -PropertyType DWord -Value "00000000"; | |
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Value "00000000"; | |
# Ungroup Taskbar Icons / Enable Text Labels in Windows 11 | |
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoTaskGrouping" -PropertyType DWord -Value "00000001"; | |
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVers |
#!/bin/sh | |
# change source | |
sudo sed -i "s@http://.*archive.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list | |
sudo sed -i "s@http://.*security.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list | |
sudo apt update | |
# install base | |
sudo apt install -y curl git net-tools | |
# install docker | |
sudo curl -fsSL https://repo.huaweicloud.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - |
#!/usr/bin/env bash | |
set -e | |
if [ -z "$1" ] | |
then | |
echo 'Error: Registry-mirror url required.' | |
exit 1 | |
fi | |
MIRROR_URL=$1 |