cat /etc/lsb-release
::Patch
apt update && apt upgrade -y
::Region
unlink /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
timedatectl
::Interface
ip l show
vi /etc/netplan/00-installer-config.yaml
netplan apply
::Hostname
vi /etc/hostname
::Fix VMWare
1.shutdown guest
2.Right Click select edit settings
3.select "Options" Tab
4.select "General" and "Configuration Parameters"
5.select "Add Row"
6.Add disk.EnableUUID = TRUE
7.Click OK and Save
::ADD-User #normal
sudo useradd -s /bin/bash -d /home/web_adm/ -m web_adm
sudo passwd web_adm
::Add-User #admin
sudo useradd -s /bin/bash -d /home/web_adm/ -m -G sudo web_adm
sudo passwd web_adm
:: PROXY - Disable
vi /etc/apt/apt.conf.d/proxy.conf
Acquire::http::Proxy "http://10.61.10.123:80";
To
Acquire::http::Proxy "false";
::Add-Host
sudo vi /etc/host
10.90.8.28 ad.shera.com ad
10.90.8.40 webapp.shera.com webapp
10.90.8.41 webappdb.shera.com webappdb
************************************ IPv6
vi /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.ens32.disable_ipv6 = 1
net.ipv6.conf.ens34.disable_ipv6 = 1
sysctl -p
cat /proc/sys/net/ipv6/conf/all/disable_ipv6
vi /etc/default/grub
GRUB_CMDLINE_LINUX="ipv6.disable=1"
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
update-grub
systemctl reboot
************************************Netwok11
network:
ethernets:
ens32:
addresses:
- 10.61.10.77/24
gateway4: 10.61.10.254
nameservers:
addresses:
- 8.8.8.8
search:
- shera.com
version: 2
************************************Network22 IP a
vi /etc/netplan/01-netcfg.yaml
vi /etc/netplan/50-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
ens32:
dhcp4: no
optional: true
addresses: [10.61.10.66/24]
routes:
- to: 10.61.10.0/24
via: 10.61.10.254
- to: 10.61.11.0/24
via: 10.61.10.254
- to: 10.61.12.0/23
via: 10.61.10.254
- to: 10.61.90.0/24
via: 10.61.10.254
ens34:
dhcp4: true
optional: true
addresses: []
-------------------------------------
::ClockPit-install
sudo systemctl disable network-manager.service
sudo systemctl stop network-manager.service
sudo reboot
::ClockPit-Uninstall
sudo systemctl stop cockpit.socket
sudo systemctl disable cockpit.socket
sudo apt-get autoremove cockpit --purge
ไม่มีความคิดเห็น:
แสดงความคิดเห็น