From c87b47090781ca2235378095ab00bff2751fbe40 Mon Sep 17 00:00:00 2001 From: godot Date: Mon, 1 Jul 2024 00:34:25 +0200 Subject: [PATCH 1/5] service working only some errors --- README.md | 7 +++---- podklady.md | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 67dc6f3..4b60c8d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,9 @@ -To switch user use: su minecraft -s /bin/bash +To switch user use: > su minecraft -s /bin/bash # To DO - [ ] Basic commands -- [*] server.properties + run.sh + eula.txt +- [x] server.properties + run.sh + eula.txt - [ ] iptable commands -- [t] my own .service file -- [*] modification of run.sh +- [!] my own .service file - [ ] screen usege - [ ] SSH keys diff --git a/podklady.md b/podklady.md index 1b7b4cc..8324115 100644 --- a/podklady.md +++ b/podklady.md @@ -1,6 +1,6 @@ sudo apt update sudo apt upgrade -sudo apt install openjdk-17-jre-headless neofetch btop screen wget curl vim grep vim p7zip-full -y +sudo apt install qemu-guest-agent openjdk-17-jre-headless neofetch btop screen wget curl vim grep vim p7zip-full -y groupadd minecraft useradd --system --shell /usr/sbin/nologin --home /opt/minecraft -g minecraft minecraf mkdir /opt/minecraft # it may exist @@ -17,7 +17,7 @@ rm server.properties mv ../server.properties . 7z x ../Mods.zip -omods ./run.sh - - +cp mc-forge.service /etc/systemd/system/ +chown -R minecraft:minecraft /opt/minecraft From a79897096ac8c91cc5ab5a88df8204dd4e9a2adc Mon Sep 17 00:00:00 2001 From: godot Date: Mon, 1 Jul 2024 00:36:55 +0200 Subject: [PATCH 2/5] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 02346b2..fca0d2a 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -To switch user use: su minecraft -s /bin/bash - -# To DO -- [ ] Basic commands -- [x] server.properties + run.sh + eula.txt -- [ ] iptable commands -- [t] my own .service file -- [x] modification of run.sh -- [ ] screen usege -- [ ] SSH keys +To switch user use: su minecraft -s /bin/bash + +# To DO +- [ ] Basic commands +- [x] server.properties + run.sh + eula.txt +- [ ] iptable commands +- [!] my own .service file +- [x] modification of run.sh +- [ ] screen usege +- [ ] SSH keys From ff8e36febcc423c207a505e03ea68fc2f627f51f Mon Sep 17 00:00:00 2001 From: godot Date: Mon, 1 Jul 2024 00:39:20 +0200 Subject: [PATCH 3/5] is it right now --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7fbf7d..6d3447d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -To switch user use: su minecraft -s /bin/bash +To switch user use: > su minecraft -s /bin/bash # To DO - [ ] Basic commands From 6281bfaed5e3b918b0649b2347ca7c9711ed17af Mon Sep 17 00:00:00 2001 From: godot Date: Mon, 1 Jul 2024 00:40:16 +0200 Subject: [PATCH 4/5] still working on README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d3447d..ecfbea7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -To switch user use: > su minecraft -s /bin/bash +To switch user use: 'su minecraft -s /bin/bash' # To DO - [ ] Basic commands From e75a0ed52f93a8e7f879000344c290906c2e8092 Mon Sep 17 00:00:00 2001 From: godot Date: Mon, 1 Jul 2024 00:41:03 +0200 Subject: [PATCH 5/5] I think --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ecfbea7..0457270 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -To switch user use: 'su minecraft -s /bin/bash' +To switch user use: `su minecraft -s /bin/bash` # To DO - [ ] Basic commands