From 49c8dec5b5a75d39e7682e746999f818c7f62d6b Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Thu, 28 May 2020 17:39:25 -0400 Subject: [PATCH 1/5] [+] Add mariadb installation notes --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 98086c2..e3c0118 100644 --- a/README.md +++ b/README.md @@ -45,5 +45,18 @@ reboot nmtui ``` +## 2. Mariadb +Files: None + +Steps: + +```bash +dnf install mariadb mariadb-server +sctl enable mariadb +sctl start mariadb +mysql_secure_installation +mysql -p +GRANT ALL PRIVILEGES ON *.* TO 'root'@'...ip...' IDENTIFIED BY '...password...' WITH GRANT OPTION; +``` From 66219e4554a7a70e323970412aa00e4b25e5dac9 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Thu, 28 May 2020 17:41:37 -0400 Subject: [PATCH 2/5] [+] Add nginx installation notes --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index e3c0118..9c4a4f2 100644 --- a/README.md +++ b/README.md @@ -60,3 +60,19 @@ mysql -p GRANT ALL PRIVILEGES ON *.* TO 'root'@'...ip...' IDENTIFIED BY '...password...' WITH GRANT OPTION; ``` +## 3. Nginx + +Files: + +* /etc/nginx/nginx.conf +* /etc/nginx/html/* +* /etc/letsencrypt/* +* /app/hres/* + +Steps: + +```bash +dnf install nginx certbot certbot-nginx +# And then you copy the config files +chron -Rt httpd_sys_content_t /app/ +``` From e93965e835a479330affc4059409c36ff970b4ce Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Thu, 28 May 2020 17:44:45 -0400 Subject: [PATCH 3/5] [+] Add shadowsocks installation notes --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c4a4f2..74be71e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # HyDEV Server Setup Notes about how to setup a Fedora 32 server for HyDEV -## Wifi Connection for Potato Laptop Servers +## 1. Wifi Connection for Potato Laptop Servers Connect to ethernet first, and then: @@ -76,3 +76,31 @@ dnf install nginx certbot certbot-nginx # And then you copy the config files chron -Rt httpd_sys_content_t /app/ ``` + +## 4. Shadowsocks + +Files: + +`/etc/shadowsocks-libev/hydev.json`: + +```json +{ + "server": "0.0.0.0", + "server_port": , + "password": "", + "method": "aes-256-cfb", + "mode": "tcp_and_udp" +} +``` + +Steps: + +```bash +dnf copr enable librehat/shadowsocks +dnf update +dnf install shadowsocks-libev +# And then you copy the config files +sctl enable shadowsocks-libev-server@hydev +sctl start shadowsocks-libev-server@hydev +``` + From 2660964996a27d6ff840c9920fcb76d8016b9d52 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Thu, 28 May 2020 19:28:55 -0400 Subject: [PATCH 4/5] [+] Create java service note --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 74be71e..60e0f25 100644 --- a/README.md +++ b/README.md @@ -104,3 +104,35 @@ sctl enable shadowsocks-libev-server@hydev sctl start shadowsocks-libev-server@hydev ``` +## 5. Java Application Servers + +Files: + +* /app/depl/\ +* /etc/systemd/system/\.service + +```ini +[Unit] +Description= + +[Service] +WorkingDirectory=/app/depl// +ExecStart=/bin/bash launch.sh +User=jvmapps +Type=simple +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +``` + +Steps: + +```bash +groupadd -r appmgr +useradd -r -s /bin/false -g appmgr jvmapps +chown -R jvmapps:appmgr /app/depl// +sctl start +sctl enable +``` From ec598c816a1146811520aa820e79d5ded1b8944d Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Thu, 28 May 2020 20:06:42 -0400 Subject: [PATCH 5/5] [+] Add laptop close lid notes --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 60e0f25..2ec70b0 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,14 @@ reboot nmtui ``` +### Laptop Close Lid + +```bash +nano /etc/systemd/logind.conf +# Add HandleLidSwitch=ignore +systemctl restart systemd-logind +``` + ## 2. Mariadb Files: None