Project

General

Profile

Wiki » History » Version 1

Cyber Collie, 12/30/2024 08:45 PM

1 1 Cyber Collie
# Wiki
2
3
Polarity Server init
4
    • server name: wsp-01
5
    • adduser wsc
6
    • sudo apt install net-tools
7
    • usermod -aG sudo wsc
8
    • mkdir /home/wsc/polarity
9
    • sudo apt install nginx
10
    • sudo chmod -R a+rw /var/log/nginx
11
    • sudo usermod -a -G www-data wsc
12
    • sudo ufw allow ssh
13
    • sudo ufw allow 80
14
    • sudo ufw allow 443
15
    • sudo apt install cmake
16
    • sudo apt install build-essential
17
    • sudo apt install libboost-all-dev
18
    • sudo apt install libssl-dev
19
    • follow the steps in libraries/libbcrypt/README.md and remove installation files after the Process has finished
20
    • cd /usr/local/lib
21
    • sudo git clone https://github.com/mysql/mysql-connector-cpp.git
22
    • cd mysql-connector-cpp
23
    • sudo cmake ./ -DBUILD_STATIC=ON
24
    • sudo cmake --build .    (watch out for problems caused by limited memory)
25
    • cmake environments
26
    • cd environments
27
    • git clone https://cyberCollie:<access_token>@github.com/cyberCollie/PolarityEnvironments.git environments
28
    • sudo apt install mysql-client-core-8.0
29
    • sudo apt install php (needs > 8.2)
30
    • sudo apt install sshpass
31
    • curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
32
    • sudo apt install nodejs
33
    • sudo apt install mysql-client-core-8.0
34
35
Dev init
36
    • sudo apt install gdb-server
37
    • server /home/wsc/deploy/server/ vboxsf defaults,uid=1000,gid=1000 0 0