-
Notifications
You must be signed in to change notification settings - Fork 0
/
astraDCinstall
65 lines (51 loc) · 1.92 KB
/
astraDCinstall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
sudo systemctl stop network-manager
sudo systemctl disable network-manager
sudo systemctl mask network-manager
sudo hostnamectl set-hostname dc.aldpro.lab
sudo nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.222
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 1.1.1.1
dns-search aldpro.lab
sudo systemctl restart networking
sudo nano /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.222 dc.aldpro.lab dc
127.0.1.1 dc
51.250.6.116 dl.astralinux.ru
ipv6 comment
reboot
echo "deb http://dl.astralinux.ru/astra/frozen/1.7_x86-64/1.7.4/repository-base/ 1.7_x86-64 main non-free contrib" > /etc/apt/sources.list
echo "deb http://dl.astralinux.ru/astra/frozen/1.7_x86-64/1.7.4/repository-extended/ 1.7_x86-64 main contrib non-free" >> /etc/apt/sources.list
echo -e "deb http://dl.astralinux.ru/aldpro/stable/repository-main/ 2.1.0 main" | sudo tee /etc/apt/sources.list.d/aldpro.list
echo -e "deb http://dl.astralinux.ru/aldpro/stable/repository-extended/ generic main" | sudo tee -a /etc/apt/sources.list.d/aldpro.list
sudo nano /etc/apt/preferences.d/aldpro
Package: *
Pin: release n=generic
Pin-Priority: 900
sudo apt update && sudo apt install astra-update -y && sudo astra-update -A -r -T
reboot
sudo DEBIAN_FRONTEND=noninteractive apt-get install -q -y aldpro-mp aldpro-gc aldpro-syncer
reboot
sudo /etc/network/interfaces
dns to 127.0.0.1
sudo nano /etc/resolv.conf
search aldpro.lab
nameserver 127.0.0.1
sudo aldpro-server-install -d aldpro.lab -n dc -p Aa12345678 --setup_syncer --setup_gc --ip 192.168.1.222 --no-reboot
reboot
sudo nano /etc/resolv.conf
search aldpro.lab
nameserver 127.0.0.1
search demo.lab
nameserver 192.168.1.1
sudo /etc/network/interfaces add
dns-nameservers 192.168.1.1
dns-search demo.lab
Graph login of user:
https://wiki.astralinux.ru/pages/viewpage.action?pageId=181666063
Sudo usage:
https://wiki.astralinux.ru/pages/viewpage.action?pageId=105972922